[coreboot-gerrit] New patch to review for coreboot: 610516e imgtec/pistachio: DDR row/bank/column mapping

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Tue Apr 21 15:19:16 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9916

-gerrit

commit 610516e1d65a25c649f593c4f9416b2cd989b2aa
Author: Ionela Voinescu <ionela.voinescu at imgtec.com>
Date:   Mon Mar 30 11:59:10 2015 +0100

    imgtec/pistachio: DDR row/bank/column mapping
    
    The DRAM configuration register, apart from holding the
    device density and width also has a rudimentary address
    mapping scheme. Currently this is set to the default
    Bank/Row/Column. This means that the memory is segmented
    into 8 chunks, each with a page detector. If all the
    activity is in one section of memory then the other 7
    page detectors could be idle.
    Changing this to Row/Bank/Column would concatenate the
    page detectors meaning that all 8 could be used by a
    single initiator. This may not gain anything in a
    synthetic bandwidth test but could yield extra performance
    in a real world application or benchmark.
    
    BRANCH=none
    BUG=chrome-os-partner:37087
    TEST=tested on Pistachio bring up board -> DDR initialized
         properly; all access to DDR works properly in
         Coreboot ramstage, Depthcharge and Linux;
         no performance tests were ran so far.
    
    Change-Id: I22d86bf3b679ed63884d7436d9d7bbaf1726f640
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
    Original-Commit-Id: e852ed42afcdc2062a0037144bab723227cb1f1f
    Original-Change-Id: If90b0cf5ce86db5e3d6d362873d22d4269e3a49f
    Original-Signed-off-by: Ionela Voinescu <ionela.voinescu at imgtec.com>
    Original-Reviewed-on: https://chromium-review.googlesource.com/264340
    Original-Reviewed-by: James Hartley <james.hartley at imgtec.com>
    Original-Reviewed-by: David Hendricks <dhendrix at chromium.org>
---
 src/soc/imgtec/pistachio/ddr2_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/soc/imgtec/pistachio/ddr2_init.c b/src/soc/imgtec/pistachio/ddr2_init.c
index ad5cf88..66b8778 100644
--- a/src/soc/imgtec/pistachio/ddr2_init.c
+++ b/src/soc/imgtec/pistachio/ddr2_init.c
@@ -510,10 +510,10 @@ int init_ddr2(void)
 	 * 5:2  Density 2Gb = 5
 	 * 6    Dram Type (MDDR/LPDDR2) Only  0
 	 * 7    Reserved 0
-	 * 10:8 Address Map R/B/C = 0
+	 * 10:8 Address Map R/B/C = 1
 	 * 31:11 Reserved
 	 */
-	write32(DDR_PCTL + DDR_PCTL_DCFG_OFFSET, 0x00000016);
+	write32(DDR_PCTL + DDR_PCTL_DCFG_OFFSET, 0x00000116);
 	/* PCFG_0 : Port 0 AXI config  */
 	if (BL8)
 		write32(DDR_PCTL + DDR_PCTL_PCFG0_OFFSET, 0x000800A0);



More information about the coreboot-gerrit mailing list