X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH 0/7] platform/x86: Add ACPI probing support for HSMP
@ 2023-12-12 10:36 Suma Hegde
  2023-12-12 10:36 ` [PATCH 1/7] platform/x86: Move hsmp_test to probe Suma Hegde
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Suma Hegde @ 2023-12-12 10:36 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: hdegoede, ilpo.jarvinen, Suma Hegde

The first 5 patches restructure the code to make it easier
to support ACPI and platform device based probing.

The 6th patch adds the ACPI support, reading the ACPI table
and decoding the data.

The 7th patch adds support for non-ACPI based probing on
family 0x1A and model 0x00-0x0F as we support both methods.

Patch 1:
In case of ACPI based probing, mailbox registers are read from
ACPI table which is possible only in the probe(). So, message
HSMP_TEST will not succeed during platform init time.
Hence, move hsmp_test() to probe.

Patch 2:
Cache pci device object of root complex in struct hsmp_socket.
This will make amd_hsmp_rdrw() work with both the methods.

Patch 3:
Move platform_device_alloc() and add() to a function to make
it easier to add a condition check for non acpi.

Patch 4: 
Create struct hsmp_mbaddr_info to contain all the mailbox register
information for ACPI and non-ACPI methods.

Patch 5:
Move struct device pointer to struct hsmp_socket to isolate
multiple probes in multi socket system.

Patch 6:
Convert probe to ACPI based probing with maintinaing support for
platform device probing.

Patch 7:
Support non-ACPI based BIOS on family 0x1A model 0~Fh.

Suma Hegde (7):
  platform/x86: Move hsmp_test to probe
  platform/x86: Cache pci_dev in struct hsmp_socket
  platform/x86: Create static func to handle platdev
  platform/x86: Define a struct to hold mailbox regs
  platform/x86: Move dev from platdev to hsmp_socket
  platform/x86: Convert to ACPI based probing
  platform/x86: Non-ACPI support for AMD F1A_M00~0Fh

 drivers/platform/x86/amd/hsmp.c | 481 ++++++++++++++++++++++++++------
 1 file changed, 390 insertions(+), 91 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-12-18 13:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 10:36 [PATCH 0/7] platform/x86: Add ACPI probing support for HSMP Suma Hegde
2023-12-12 10:36 ` [PATCH 1/7] platform/x86: Move hsmp_test to probe Suma Hegde
2023-12-18 12:32   ` Hans de Goede
2023-12-12 10:36 ` [PATCH 2/7] platform/x86: Cache pci_dev in struct hsmp_socket Suma Hegde
2023-12-18 12:34   ` Hans de Goede
2023-12-12 10:36 ` [PATCH 3/7] platform/x86: Create static func to handle platdev Suma Hegde
2023-12-18 13:29   ` Hans de Goede
2023-12-12 10:36 ` [PATCH 4/7] platform/x86: Define a struct to hold mailbox regs Suma Hegde
2023-12-18 13:32   ` Hans de Goede
2023-12-12 10:36 ` [PATCH 5/7] platform/x86: Move dev from platdev to hsmp_socket Suma Hegde
2023-12-18 13:34   ` Hans de Goede
2023-12-12 10:36 ` [PATCH 6/7] platform/x86: Convert to ACPI based probing Suma Hegde
2023-12-18 13:54   ` Hans de Goede
2023-12-12 10:36 ` [PATCH] platform/x86: Non-ACPI support for AMD F1A~M0Fh Suma Hegde
2023-12-18 13:55   ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox