diff options
| author | Muralidhara M K <muralidhara.mk@amd.com> | 2026-07-23 15:16:51 +0530 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-07-24 19:12:09 +0300 |
| commit | 9c40a57258f6cb4109de46467966498e6f90ece6 (patch) | |
| tree | 3155c15c2e3c54a1cc286aa722288f041787dfbc /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 5029bff09e79ad80883c5ee2828b8c4a263cf3dd (diff) | |
platform/x86/amd/hsmp: Serialize ACPI HSMP probe and remove with an rwsem
Add hsmp_sock_rwsem and export it, then hold it for write across ACPI
probe, remove and init_acpi() so concurrent per-socket platform probes
cannot race the is_probed handshake or the one-time socket-array
allocation. Use lockdep_assert_held_write() in init_acpi() to catch
incorrect locking under lockdep.
An rw_semaphore is used rather than a plain mutex because an upcoming
change adds a read side so data-plane messages run concurrently with each
other while probe/remove hold it for write to drain in-flight messages.
Introducing it as an rwsem now keeps the lock type stable across that
change.
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Link: https://patch.msgid.link/20260723094656.3806028-2-muralidhara.mk@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
