public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/16] AMD NB and SMN rework
@ 2024-12-06 16:11 Yazen Ghannam
  2024-12-06 16:11 ` [PATCH v2 01/16] x86/mce/amd: Remove shared threshold bank plumbing Yazen Ghannam
                   ` (16 more replies)
  0 siblings, 17 replies; 33+ messages in thread
From: Yazen Ghannam @ 2024-12-06 16:11 UTC (permalink / raw)
  To: yazen.ghannam, x86, Tony Luck, Mario Limonciello, Bjorn Helgaas,
	Jean Delvare, Guenter Roeck, Clemens Ladisch, Shyam Sundar S K,
	Hans de Goede, Ilpo Järvinen, Naveen Krishna Chatradhi,
	Suma Hegde
  Cc: linux-kernel, linux-edac, linux-pci, linux-hwmon,
	platform-driver-x86

Hi all,

The theme of this set is decoupling the "AMD node" concept from the
legacy northbridge support.

Additionally, AMD System Management Network (SMN) access code is
decoupled and expanded too.

Patches 1-3 begin reducing the scope of AMD_NB.

Patches 4-9 begin moving generic AMD node support out of AMD_NB.

Patches 10-13 move SMN support out of AMD_NB and do some refactoring.

Patch 14 has HSMP reuse SMN functionality.

Patches 15-16 address userspace access to SMN.

I say "begin" above because there is more to do here. Ultimately, AMD_NB
should only be needed for code used on legacy systems with northbridges.
Also, any and all SMN users in the kernel need to be updated to use the
central SMN code. Local solutions should be avoided.

Thanks,
Yazen

Link:
https://lore.kernel.org/r/20241023172150.659002-1-yazen.ghannam@amd.com

Major changes
v1->v2:
* Rebase HSMP changes on latest upstream rework.
* Keep Node and SMN code together.


Mario Limonciello (4):
  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
  x86/amd_node: Add SMN offsets to exclusive region access
  x86/amd_node: Add support for debugfs access to SMN registers

Yazen Ghannam (12):
  x86/mce/amd: Remove shared threshold bank plumbing
  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
  x86/amd_node, platform/x86/amd/hsmp: Have HSMP use SMN through
    AMD_NODE

 MAINTAINERS                           |   8 +
 arch/x86/Kconfig                      |   6 +-
 arch/x86/include/asm/amd_nb.h         |  53 +---
 arch/x86/include/asm/amd_node.h       |  39 +++
 arch/x86/kernel/Makefile              |   1 +
 arch/x86/kernel/amd_nb.c              | 294 +--------------------
 arch/x86/kernel/amd_node.c            | 364 ++++++++++++++++++++++++++
 arch/x86/kernel/cpu/mce/amd.c         | 127 ++-------
 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/hsmp/Kconfig |   2 +-
 drivers/platform/x86/amd/hsmp/acpi.c  |   7 +-
 drivers/platform/x86/amd/hsmp/hsmp.c  |   1 -
 drivers/platform/x86/amd/hsmp/hsmp.h  |   3 -
 drivers/platform/x86/amd/hsmp/plat.c  |  30 +--
 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 +
 24 files changed, 485 insertions(+), 476 deletions(-)
 create mode 100644 arch/x86/include/asm/amd_node.h
 create mode 100644 arch/x86/kernel/amd_node.c


base-commit: ae61116b291c9358e8de38bd3505e83b85be2d0d
prerequisite-patch-id: 0000000000000000000000000000000000000000
-- 
2.43.0


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

end of thread, other threads:[~2025-01-06 16:31 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 16:11 [PATCH v2 00/16] AMD NB and SMN rework Yazen Ghannam
2024-12-06 16:11 ` [PATCH v2 01/16] x86/mce/amd: Remove shared threshold bank plumbing Yazen Ghannam
2024-12-06 16:11 ` [PATCH v2 02/16] x86/amd_nb: Restrict init function to AMD-based systems Yazen Ghannam
2024-12-06 16:11 ` [PATCH v2 03/16] x86/amd_nb: Clean up early_is_amd_nb() Yazen Ghannam
2024-12-06 16:11 ` [PATCH v2 04/16] x86: Start moving AMD Node functionality out of AMD_NB Yazen Ghannam
2024-12-06 16:11 ` [PATCH v2 05/16] x86/amd_nb: Simplify function 4 search Yazen Ghannam
2024-12-06 16:11 ` [PATCH v2 06/16] x86/amd_nb: Simplify root device search Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 07/16] x86/amd_nb: Use topology info to get AMD node count Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 08/16] x86/amd_nb: Simplify function 3 search Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 09/16] x86/amd_nb, hwmon: (k10temp): Simplify amd_pci_dev_to_node_id() Yazen Ghannam
2024-12-06 16:38   ` Guenter Roeck
2024-12-06 16:12 ` [PATCH v2 10/16] x86/amd_nb: Move SMN access code to a new amd_node driver Yazen Ghannam
2024-12-09 13:35   ` Ilpo Järvinen
2024-12-06 16:12 ` [PATCH v2 11/16] x86/amd_node: Update __amd_smn_rw() error paths Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 12/16] x86/amd_node: Remove dependency on AMD_NB Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 13/16] x86/amd_node: Use defines for SMN register offsets Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 14/16] x86/amd_node, platform/x86/amd/hsmp: Have HSMP use SMN through AMD_NODE Yazen Ghannam
2024-12-09 13:32   ` Ilpo Järvinen
2024-12-11 16:13     ` Yazen Ghannam
2024-12-12 17:27   ` [PATCH v2.1] " Yazen Ghannam
2024-12-12 18:50     ` Ilpo Järvinen
2024-12-12 21:46       ` Yazen Ghannam
2024-12-16 13:57         ` Ilpo Järvinen
2024-12-13 15:22     ` [PATCH v2.2] " Yazen Ghannam
2024-12-14 10:05       ` Borislav Petkov
2024-12-16 18:33         ` Yazen Ghannam
2024-12-24  1:14           ` Suma Hegde
2025-01-02 20:04             ` Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 15/16] x86/amd_node: Add SMN offsets to exclusive region access Yazen Ghannam
2024-12-06 16:12 ` [PATCH v2 16/16] x86/amd_node: Add support for debugfs access to SMN registers Yazen Ghannam
2025-01-03 21:49 ` [PATCH v2 00/16] AMD NB and SMN rework Borislav Petkov
2025-01-06 15:38   ` Yazen Ghannam
2025-01-06 16:31     ` Yazen Ghannam

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