All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] platform/x86/amd/hsmp: Fix potential issues during async probing of ACPI driver
@ 2025-07-23  5:12 Suma Hegde
  2025-07-23  5:12 ` [PATCH v2 1/4] platform/x86/amd/hsmp: Use mutex to synchronize ACPI based probe Suma Hegde
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Suma Hegde @ 2025-07-23  5:12 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: ilpo.jarvinen, hdegoede, Suma Hegde

This patch series aims to resolve potential issues that may occur
when asynchronous probing is enabled in HSMP ACPI driver.

* The first patch introduces a mutex to safeguard shared data across
  multiple ACPI probes and removals.

* The second patch implements reference counting to ensure that
  hsmp_pdev->sock allocation is freed, and the miscellaneous device
  is deregistered only after all socket removal calls are completed.

* The third patch relocates the initialization of hsmp_pdev.num_sockets to
  hsmp.c.

* The fourth patch adds a check for sock->dev in hsmp_send_message() to
  prevent access to the hsmp_pdev->sock structure when it is not yet
  initialized or has been removed, which could occur during partial
  probing or removal.

Suma Hegde (4):
  platform/x86/amd/hsmp: Use mutex to synchronize ACPI based probe
  platform/x86/amd/hsmp: Add reference counter to track ACPI probe and
    removal
  platform/x86/amd/hsmp: Move initialization of num_sockets to
    hsmp_common_init()
  platform/x86/amd/hsmp: Ensure initialization of the sock struct in
    hsmp_send_message()

 drivers/platform/x86/amd/hsmp/acpi.c | 34 +++++++++++++++-------------
 drivers/platform/x86/amd/hsmp/hsmp.c | 33 +++++++++++++++++++++++++++
 drivers/platform/x86/amd/hsmp/hsmp.h |  2 +-
 drivers/platform/x86/amd/hsmp/plat.c | 18 ++++-----------
 4 files changed, 56 insertions(+), 31 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-08-19  8:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23  5:12 [PATCH v2 0/4] platform/x86/amd/hsmp: Fix potential issues during async probing of ACPI driver Suma Hegde
2025-07-23  5:12 ` [PATCH v2 1/4] platform/x86/amd/hsmp: Use mutex to synchronize ACPI based probe Suma Hegde
2025-08-19  8:23   ` Ilpo Järvinen
2025-07-23  5:12 ` [PATCH v2 2/4] platform/x86/amd/hsmp: Add reference counter to track ACPI probe and removal Suma Hegde
2025-07-23  7:17   ` Ilpo Järvinen
2025-07-23  5:12 ` [PATCH v2 3/4] platform/x86/amd/hsmp: Move initialization of num_sockets to hsmp_common_init() Suma Hegde
2025-07-23  5:12 ` [PATCH v2 4/4] platform/x86/amd/hsmp: Ensure initialization of the sock struct in hsmp_send_message() Suma Hegde
2025-07-23  7:10   ` Ilpo Järvinen
2025-07-24  9:20     ` Suma Hegde
2025-08-02 12:31       ` Suma Hegde
2025-08-19  8:21         ` Ilpo Järvinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.