[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250107222847.3300430-1-yazen.ghannam@amd.com>
Date: Tue, 7 Jan 2025 22:28:35 +0000
From: Yazen Ghannam <yazen.ghannam@....com>
To: <yazen.ghannam@....com>, <x86@...nel.org>, Tony Luck
<tony.luck@...el.com>, Mario Limonciello <mario.limonciello@....com>, "Bjorn
Helgaas" <bhelgaas@...gle.com>, Jean Delvare <jdelvare@...e.com>, "Guenter
Roeck" <linux@...ck-us.net>, Shyam Sundar S K <Shyam-sundar.S-k@....com>,
"Hans de Goede" <hdegoede@...hat.com>, Ilpo Järvinen
<ilpo.jarvinen@...ux.intel.com>, Naveen Krishna Chatradhi
<naveenkrishna.chatradhi@....com>, Suma Hegde <suma.hegde@....com>
CC: <linux-kernel@...r.kernel.org>, <linux-edac@...r.kernel.org>,
<linux-pci@...r.kernel.org>, <linux-hwmon@...r.kernel.org>,
<platform-driver-x86@...r.kernel.org>
Subject: [PATCH v3 00/12] AMD NB and SMN rework
Hi all,
This revision is based the following branch:
https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=tip-x86-misc
The only major change from the branch is in patch 6.
("x86/amd_nb: Use topology info to get AMD node count")
A check is added to verify that all nodes have a 'misc' device. This is
to catch any unexpected system configurations including running inside a
virtual guest where the node devices aren't exposed. The commit message
is also updated.
Thanks,
Yazen
Link:
https://lore.kernel.org/r/20241206161210.163701-1-yazen.ghannam@amd.com
Major changes
v2->v3:
* Based on public branch from Boris.
* Add check for not finding any 'misc' devices during init.
v1->v2:
* Rebase HSMP changes on latest upstream rework.
* Keep Node and SMN code together.
Mario Limonciello (2):
x86/amd_nb, hwmon: (k10temp): Simplify amd_pci_dev_to_node_id()
x86/amd_nb: Move SMN access code to a new amd_node driver
Yazen Ghannam (10):
x86/amd_nb: Restrict init function to AMD-based systems
x86/amd_nb: Clean up early_is_amd_nb()
x86: Start moving AMD node functionality out of AMD_NB
x86/amd_nb: Simplify function 4 search
x86/amd_nb: Simplify root device search
x86/amd_nb: Use topology info to get AMD node count
x86/amd_nb: Simplify function 3 search
x86/amd_node: Update __amd_smn_rw() error paths
x86/amd_node: Remove dependency on AMD_NB
x86/amd_node: Use defines for SMN register offsets
MAINTAINERS | 8 +
arch/x86/Kconfig | 4 +
arch/x86/include/asm/amd_nb.h | 22 +-
arch/x86/include/asm/amd_node.h | 36 ++++
arch/x86/kernel/Makefile | 1 +
arch/x86/kernel/amd_nb.c | 300 ++-------------------------
arch/x86/kernel/amd_node.c | 215 +++++++++++++++++++
arch/x86/pci/fixup.c | 4 +-
drivers/edac/Kconfig | 1 +
drivers/edac/amd64_edac.c | 1 +
drivers/hwmon/Kconfig | 2 +-
drivers/hwmon/k10temp.c | 7 +-
drivers/platform/x86/amd/pmc/Kconfig | 2 +-
drivers/platform/x86/amd/pmc/pmc.c | 3 +-
drivers/platform/x86/amd/pmf/Kconfig | 2 +-
drivers/platform/x86/amd/pmf/core.c | 2 +-
drivers/ras/amd/atl/Kconfig | 1 +
drivers/ras/amd/atl/internal.h | 1 +
18 files changed, 304 insertions(+), 308 deletions(-)
create mode 100644 arch/x86/include/asm/amd_node.h
create mode 100644 arch/x86/kernel/amd_node.c
--
2.43.0
Powered by blists - more mailing lists