From: Suma Hegde <suma.hegde@amd.com>
To: <platform-driver-x86@vger.kernel.org>
Cc: <ilpo.jarvinen@linux.intel.com>, <hdegoede@redhat.com>,
Suma Hegde <suma.hegde@amd.com>
Subject: [PATCH v2 0/7] platform/x86: Add ACPI probing support for HSMP
Date: Wed, 20 Dec 2023 16:55:21 +0000 [thread overview]
Message-ID: <20231220165528.1351200-1-suma.hegde@amd.com> (raw)
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 | 501 ++++++++++++++++++++++++++------
1 file changed, 410 insertions(+), 91 deletions(-)
--
2.25.1
next reply other threads:[~2023-12-20 16:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-20 16:55 Suma Hegde [this message]
2023-12-20 16:55 ` [PATCH v2 1/7] platform/x86: Move hsmp_test to probe Suma Hegde
2023-12-20 17:04 ` Ilpo Järvinen
2023-12-20 16:55 ` [PATCH v2 2/7] platform/x86: Cache pci_dev in struct hsmp_socket Suma Hegde
2023-12-20 17:00 ` Ilpo Järvinen
2023-12-20 16:55 ` [PATCH v2 3/7] platform/x86: Create static func to handle platdev Suma Hegde
2023-12-20 17:08 ` Ilpo Järvinen
2023-12-20 16:55 ` [PATCH v2 4/7] platform/x86: Define a struct to hold mailbox regs Suma Hegde
2023-12-20 17:12 ` Ilpo Järvinen
2023-12-20 16:55 ` [PATCH v2 5/7] platform/x86: Move dev from platdev to hsmp_socket Suma Hegde
2023-12-20 17:18 ` Ilpo Järvinen
2023-12-20 17:20 ` Ilpo Järvinen
2023-12-20 16:55 ` [PATCH v2 6/7] platform/x86: Convert to ACPI based probing Suma Hegde
2023-12-20 17:34 ` Ilpo Järvinen
2023-12-21 10:27 ` Hegde, Suma
2023-12-20 16:55 ` [PATCH v2 7/7] platform/x86: Non-ACPI support for AMD F1A_M00~0Fh Suma Hegde
2023-12-20 17:40 ` Ilpo Järvinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231220165528.1351200-1-suma.hegde@amd.com \
--to=suma.hegde@amd.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox