-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'x86_misc_for_v6.14_rc1' of git://git.kernel.org/pub/scm/li…
…nux/kernel/git/tip/tip Pull misc x86 updates from Borislav Petkov: - The first part of a restructuring of AMD's representation of a northbridge which is legacy now, and the creation of the new AMD node concept which represents the Zen architecture of having a collection of I/O devices within an SoC. Those nodes comprise the so-called data fabric on Zen. This has at least one practical advantage of not having to add a PCI ID each time a new data fabric PCI device releases. Eventually, the lot more uniform provider of data fabric functionality amd_node.c will be used by all the drivers which need it - Smaller cleanups * tag 'x86_misc_for_v6.14_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/amd_node: Use defines for SMN register offsets x86/amd_node: Remove dependency on AMD_NB x86/amd_node: Update __amd_smn_rw() error paths x86/amd_nb: Move SMN access code to a new amd_node driver x86/amd_nb, hwmon: (k10temp): Simplify amd_pci_dev_to_node_id() x86/amd_nb: Simplify function 3 search x86/amd_nb: Use topology info to get AMD node count x86/amd_nb: Simplify root device search x86/amd_nb: Simplify function 4 search x86: Start moving AMD node functionality out of AMD_NB x86/amd_nb: Clean up early_is_amd_nb() x86/amd_nb: Restrict init function to AMD-based systems x86/mtrr: Rename mtrr_overwrite_state() to guest_force_mtrr_state()
- Loading branch information
Showing
24 changed files
with
317 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* AMD Node helper functions and common defines | ||
* | ||
* Copyright (c) 2024, Advanced Micro Devices, Inc. | ||
* All Rights Reserved. | ||
* | ||
* Author: Yazen Ghannam <Yazen.Ghannam@amd.com> | ||
* | ||
* Note: | ||
* Items in this file may only be used in a single place. | ||
* However, it's prudent to keep all AMD Node functionality | ||
* in a unified place rather than spreading throughout the | ||
* kernel. | ||
*/ | ||
|
||
#ifndef _ASM_X86_AMD_NODE_H_ | ||
#define _ASM_X86_AMD_NODE_H_ | ||
|
||
#include <linux/pci.h> | ||
|
||
#define MAX_AMD_NUM_NODES 8 | ||
#define AMD_NODE0_PCI_SLOT 0x18 | ||
|
||
struct pci_dev *amd_node_get_func(u16 node, u8 func); | ||
struct pci_dev *amd_node_get_root(u16 node); | ||
|
||
static inline u16 amd_num_nodes(void) | ||
{ | ||
return topology_amd_nodes_per_pkg() * topology_max_packages(); | ||
} | ||
|
||
int __must_check amd_smn_read(u16 node, u32 address, u32 *value); | ||
int __must_check amd_smn_write(u16 node, u32 address, u32 value); | ||
|
||
#endif /*_ASM_X86_AMD_NODE_H_*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.