with patch.erratum414 it stops here (next patches don'tmake it get further,
but they're needed according to documentation, don't break anything for me and 
I still don't have 
a solution for booting, so I'm keeping them there in case they fix something.

testx = 5a5a5a5a                                                                
Copying data from cache to RAM -- switching to use RAM as stack... Done         
testx = 5a5a5a5a                                                                
Disabling cache as ram now                                                      
Clearing initial memory region: Done                                            
Loading stage image.                                                            
Check CBFS header at fffffd2e                                                   
magic is 4f524243                                                               
Found CBFS header at fffffd2e                                                   
Check fallback/romstage                                                         
CBFS: follow chain: fff00000 + 38 + 15b41 + align -> fff15b80                   
Check fallback/coreboot_ram                                                     
Stage: loading fallback/coreboot_ram @ 0x200000 (1114112 bytes), entry @ 0x20000


Signed off by: Xavi Drudis Ferran <xdru...@tinet.cat>
documented workaround erratum 414, see
Revision Guide for AMD Family10h processors (#41322) rev 3.74 June 2010

apply after patch.erratum372


diff -ru ../coreboot-p2/src/northbridge/amd/amdmct/mct_ddr3/mct_d.h 
./src/northbridge/amd/amdmct/mct_ddr3/mct_d.h
--- ../coreboot-p2/src/northbridge/amd/amdmct/mct_ddr3/mct_d.h  2010-08-19 
09:11:18.000000000 +0200
+++ ./src/northbridge/amd/amdmct/mct_ddr3/mct_d.h       2010-08-19 
19:11:05.000000000 +0200
@@ -118,6 +118,7 @@
 #define TestFail               2       /* func 2, offset 40h-5C, bit 2*/
 #define DqsRcvEnTrain          18      /* func 2, offset 78h, bit 18*/
 #define EnDramInit             31      /* func 2, offset 7Ch, bit 31*/
+#define PchgPDModeSel           23      /* func 2, offset 84h, bit 23 */
 #define DisAutoRefresh         18      /* func 2, offset 8Ch, bit 18*/
 #define InitDram               0       /* func 2, offset 90h, bit 0*/
 #define BurstLength32          10      /* func 2, offset 90h, bit 10*/
@@ -128,6 +129,7 @@
 #define MemClkFreqVal          3       /* func 2, offset 94h, bit 3*/
 #define RDqsEn                 12      /* func 2, offset 94h, bit 12*/
 #define DisDramInterface       14      /* func 2, offset 94h, bit 14*/
+#define PowerDownEn            15      /* func 2, offset 94h, bit 15*/
 #define DctAccessWrite         30      /* func 2, offset 98h, bit 30*/
 #define DctAccessDone          31      /* func 2, offset 98h, bit 31*/
 #define MemClrStatus           0       /* func 2, offset A0h, bit 0*/
diff -ru ../coreboot-p2/src/northbridge/amd/amdmct/wrappers/mcti_d.c 
./src/northbridge/amd/amdmct/wrappers/mcti_d.c
--- ../coreboot-p2/src/northbridge/amd/amdmct/wrappers/mcti_d.c 2010-08-19 
09:11:18.000000000 +0200
+++ ./src/northbridge/amd/amdmct/wrappers/mcti_d.c      2010-08-19 
19:11:49.000000000 +0200
@@ -415,6 +415,23 @@
                wrmsr(NB_CFG_MSR, msr);
         }
 }
+
+static void vErratum414(struct DCTStatStruc *pDCTstat)
+{
+     int dct=0;
+    for(; dct < 2 ; dct++) 
+    {
+        int dRAMConfigHi = Get_NB32(pDCTstat->dev_dct,0x94 + (0x100 * dct)); 
+        int powerDown =  dRAMConfigHi && (1 << PowerDownEn ) ;
+        int ddr3 = dRAMConfigHi && (1 << Ddr3Mode ) ;
+        int dRAMMRS = Get_NB32(pDCTstat->dev_dct,0x84 + (0x100 * dct));
+        int pchgPDModeSel = dRAMMRS && (1 << PchgPDModeSel ) ;
+       if (powerDown && ddr3 && pchgPDModeSel ) 
+       {
+         Set_NB32(pDCTstat->dev_dct,0x84 + (0x100 * dct), dRAMMRS & ~(1 << 
PchgPDModeSel) );
+       }
+    }
+}
 #endif
 
 
@@ -425,6 +442,7 @@
        if (pDCTstatA->LogicalCPUID & AMD_DRBH_Cx) {
                vErrata350(pMCTstat, pDCTstatA);
                vErratum372(pDCTstatA);
+               vErratum414(pDCTstatA);
        }
 #endif
 }

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to