Timothy Pearson (tpearson(a)raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11972
-gerrit
commit b0f077d87170eea2d2010b82dc225069b59aeaca
Author: Timothy Pearson <tpearson(a)raptorengineeringinc.com>
Date: Tue Jun 2 20:18:44 2015 -0500
cpu/amd/family_10h-family_15h: Increase BSP stack size
The additional local data storage requirements of the full DDR3
DRAM training algorithm make a BSP stack overrun a distint
possibility. Increase the BSP stack size to compensate.
Change-Id: I51af31442f2b77cb64a4b788751ccc7186acb283
Signed-off-by: Timothy Pearson <tpearson(a)raptorengineeringinc.com>
---
src/cpu/amd/family_10h-family_15h/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cpu/amd/family_10h-family_15h/Kconfig b/src/cpu/amd/family_10h-family_15h/Kconfig
index 7c47e27..81b1d1e 100644
--- a/src/cpu/amd/family_10h-family_15h/Kconfig
+++ b/src/cpu/amd/family_10h-family_15h/Kconfig
@@ -33,7 +33,7 @@ config DCACHE_RAM_SIZE
config DCACHE_BSP_STACK_SIZE
hex
- default 0x2000
+ default 0x4000
config DCACHE_BSP_STACK_SLUSH
hex
Urja Rannikko (urjaman(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12359
-gerrit
commit dc5558631c582e87f1652a74eb4779f35bbc83e1
Author: Urja Rannikko <urjaman(a)gmail.com>
Date: Sat Nov 7 15:40:56 2015 +0200
amd/model_fxx: fix code style in FID&VID support check
This is in AP code, fixed in preparation for copying
the same check to BSP.
Change-Id: I0750919d9fdb3d4e6666221ad82097e0c479cf14
Signed-off-by: Urja Rannikko <urjaman(a)gmail.com>
---
src/cpu/amd/model_fxx/fidvid.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/cpu/amd/model_fxx/fidvid.c b/src/cpu/amd/model_fxx/fidvid.c
index a005c46..9851e65 100644
--- a/src/cpu/amd/model_fxx/fidvid.c
+++ b/src/cpu/amd/model_fxx/fidvid.c
@@ -356,9 +356,8 @@ static void init_fidvid_ap(unsigned bsp_apicid, unsigned apicid)
u32 fid_max;
int loop;
- if((cpuid_edx(0x80000007)&0x06)!=0x06) {
+ if ((cpuid_edx(0x80000007) & 0x06) != 0x06)
return; /* FID/VID change not supported */
- }
msr = rdmsr(0xc0010042);
fid_max = ((msr.lo >> 16) & 0x3f); /* max fid */
Jonathan A. Kollasch (jakllsch(a)kollasch.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10983
-gerrit
commit d197418240de5ba8075b9100e25ac557e2e82789
Author: Jonathan A. Kollasch <jakllsch(a)kollasch.net>
Date: Mon Jul 20 07:43:32 2015 -0500
amdfam10/northbridge: fix amdfam10_scan_chain()
Fixes two issues introduced recently:
- The subordinate bus limit was reduced from essentially unlimited
(0xfc) to 0 additional busses. This caused config space of
subordinate busses of a non-primary HT IO chain to become
unrouted (and thus invisible) during initial scan.
Introduced in I41aeb80121f120641b65759c8502150ce89caa30 and
I297de09dcf93511acece4441593ef958a390fddb and reinforced in
subsequent related changes.
- The HTcap+0x14 register is *not* the same on K8 and 10h. 10h
has isochronous HT link buffer controls where K8 had bus numbers.
Introduced in I41aeb80121f120641b65759c8502150ce89caa30
These two issues resulted in the non-primary IO chain not having
resources allocated to subordinate busses due to the devices being
invisible during initial scan, and for MMIO accesses to devices on
the base bus of the non-primary chain to stall the whole machine,
presumably due to invalid HT buffer allocations.
Change-Id: I7a1f51bd91ab3dae6ed1c447209b36003830f3dc
Signed-off-by: Jonathan A. Kollasch <jakllsch(a)kollasch.net>
---
src/northbridge/amd/amdfam10/northbridge.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/northbridge/amd/amdfam10/northbridge.c b/src/northbridge/amd/amdfam10/northbridge.c
index d1803ae..1a7bc08 100644
--- a/src/northbridge/amd/amdfam10/northbridge.c
+++ b/src/northbridge/amd/amdfam10/northbridge.c
@@ -157,7 +157,6 @@ static void set_vga_enable_reg(u32 nodeid, u32 linkn)
}
typedef enum {
- HT_ROUTE_CLOSE,
HT_ROUTE_SCAN,
HT_ROUTE_FINAL,
} scan_state;
@@ -181,17 +180,8 @@ static void ht_route_link(struct bus *link, scan_state mode)
* not correctly configured
*/
busses = pci_read_config32(link->dev, link->cap + 0x14);
- busses &= 0xff000000;
- busses |= parent->secondary & 0xff;
- if (mode == HT_ROUTE_CLOSE) {
- busses |= 0xfeff << 8;
- } else if (mode == HT_ROUTE_SCAN) {
- busses |= ((u32) link->secondary & 0xff) << 8;
- busses |= 0xfc << 16;
- } else if (mode == HT_ROUTE_FINAL) {
- busses |= ((u32) link->secondary & 0xff) << 8;
- busses |= ((u32) link->subordinate & 0xff) << 16;
- }
+ busses &= 0xffff00ff;
+ busses |= ((u32) link->secondary & 0xff) << 8;
pci_write_config32(link->dev, link->cap + 0x14, busses);
if (mode == HT_ROUTE_FINAL) {
@@ -251,6 +241,7 @@ static void amd_g34_fixup(struct bus *link, device_t dev)
static void amdfam10_scan_chain(struct bus *link)
{
unsigned int next_unitid;
+ uint16_t sub;
/* See if there is an available configuration space mapping
* register in function 1.
@@ -266,7 +257,10 @@ static void amdfam10_scan_chain(struct bus *link)
ht_route_link(link, HT_ROUTE_SCAN);
/* set the config map space */
+ sub = link->subordinate;
+ link->subordinate = 0xfc;
set_config_map_reg(link);
+ link->subordinate = sub;
/* Now we can scan all of the subordinate busses i.e. the
* chain on the hypertranport link
Urja Rannikko (urjaman(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12359
-gerrit
commit adfc9d17e6910ceb657ccf2a7a26d85331928850
Author: Urja Rannikko <urjaman(a)gmail.com>
Date: Sat Nov 7 15:40:56 2015 +0200
amd/model_fxx: fix code style in FID&VID support check
This was in AP code, fixed in preparation for adding
the same check for BSP.
Change-Id: I0750919d9fdb3d4e6666221ad82097e0c479cf14
Signed-off-by: Urja Rannikko <urjaman(a)gmail.com>
---
src/cpu/amd/model_fxx/fidvid.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/cpu/amd/model_fxx/fidvid.c b/src/cpu/amd/model_fxx/fidvid.c
index a005c46..9851e65 100644
--- a/src/cpu/amd/model_fxx/fidvid.c
+++ b/src/cpu/amd/model_fxx/fidvid.c
@@ -356,9 +356,8 @@ static void init_fidvid_ap(unsigned bsp_apicid, unsigned apicid)
u32 fid_max;
int loop;
- if((cpuid_edx(0x80000007)&0x06)!=0x06) {
+ if ((cpuid_edx(0x80000007) & 0x06) != 0x06)
return; /* FID/VID change not supported */
- }
msr = rdmsr(0xc0010042);
fid_max = ((msr.lo >> 16) & 0x3f); /* max fid */