From aaceeae95ab9b9a9401df074faccbd5fbd23a950 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 16 Nov 2023 18:05:35 +0100 Subject: nb/amd/pi/00730F01/northbridge: always return 1 in get_node_nums This APU is always a single-node system and bits 4..6 of the node ID register D18F0x60 are also marked as reserved in BKDG #52740 Rev 3.05. On an APU2 board with quad-core APU, this register reads back 0x00030000 which results in a value of 1 to be returned from get_node_nums, so this patch doesn't change behavior, but stops using reserved bits. TEST=PC Engines APU2 still boots and doesn't show any new problems Signed-off-by: Felix Held Change-Id: I65ed1124c0ca8e7eba54ff53dc626d35cd5e2e58 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79603 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/northbridge/amd/pi/00730F01/northbridge.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/pi/00730F01/northbridge.c b/src/northbridge/amd/pi/00730F01/northbridge.c index 9d92162f2c..27e08c8650 100644 --- a/src/northbridge/amd/pi/00730F01/northbridge.c +++ b/src/northbridge/amd/pi/00730F01/northbridge.c @@ -40,21 +40,9 @@ static struct device *get_node_pci(u32 nodeid, u32 fn) return pcidev_on_root(DEV_CDB + nodeid, fn); } -static struct device *get_mc_dev(void) -{ - return pcidev_on_root(DEV_CDB, 0); -} - static unsigned int get_node_nums(void) { - static unsigned int node_nums; - - if (node_nums) - return node_nums; - - node_nums = ((pci_read_config32(get_mc_dev(), 0x60) >> 4) & 7) + 1; //NodeCnt[2:0] - - return node_nums; + return 1; } static void get_fx_devs(void) -- cgit v1.2.3