AnsweredAssumed Answered

ddr memory (4 GB) mapped to 0x1_0000_0000 does not work

Question asked by sharath kumar on Aug 9, 2019
Latest reply on Aug 20, 2019 by Yiping Wang

Hi , 
we have a board with p2041 with 4GB memory 

 

we are using uboot and linux 

 

when we map ddr memory to 0x0 address ( #define CONFIG_SYS_DDR_SDRAM_BASE 0) u-boot come up and linux is booting 
when we map ddr memory to 0x1_0000_0000 address (#define CONFIG_SYS_DDR_SDRAM_BASE 0x100000000UL) u-boot is crashing. access to ddr memory address range is not working even from BDI debugger 

 

can you tell apart from changing the "CONFIG_SYS_DDR_SDRAM_BASE" value should we do any other changes? 

 

attached is the dumps from BDI ( in non working case) 

 

tlb entries, "entry 3 is for ddr memory" 

 

0 : 00 fffff000 4KB V 0 -> 00_fffff000 0000 -I-G- R--RWX 
1 : 00 b0000000 16MB V 0 -> 00_b0000000 0000 -I-G- R--RW- 
2 : 00 f8000000 64MB V 0 -> 00_f8000000 0000 W--G- ---R-X 
3 : 00 00000000 1GB V 0 -> 01_00000000 0000 --M-- R--RWX 
4 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
5 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
6 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
7 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
8 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
9 : 00 b1000000 1MB V 0 -> 00_b1000000 0000 ----- R--RW- 
10 : 00 b1100000 1MB V 0 -> 00_b1100000 0000 -I-G- R--RW- 
11 : 00 b1200000 1MB V 0 -> 00_b1200000 0000 ----- R--RW- 
12 : 00 b1300000 1MB V 0 -> 00_b1300000 0000 -I-G- R--RW- 
13 : 00 f0000000 4MB V 0 -> 0f_00000000 0000 -I-G- R--RW- 
14 : 00 00000000 1KB - 0 -> 00_00000000 0000 ----- ------ 
15 : 00 00000000 1KB - 0 -> 00_00000000 0000 ----- ------ 
16 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
17 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
18 : 00 d0000000 64MB V 0 -> 00_d0000000 0000 -I-G- R--RWX 
19 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 
20 : 00 fffff000 1KB - 0 -> 00_fffff000 0000 ---G- R--RWX 

 

LAW entry for DDR: 

 

UB-P2040#0>md 0xb0000de0 
0_b0000de0 : 00000000 00000000 00000000 00000000 ................ 
0_b0000df0 : 00000001 00000000 8100001f 00000000 ................ 

 

ddr controller register value: 

 

UB-P2040#0>md 0xb0008000 
0_b0008000 : 010001ff 00000000 010001ff 00000000 ................ 
0_b0008010 : 00000000 00000000 00000000 00000000 ................ 
0_b0008020 : 00000000 00000000 00000000 00000000 ................ 
0_b0008030 : 00000000 00000000 00000000 00000000 ................ 
0_b0008040 : 00000000 00000000 00000000 00000000 ................ 
0_b0008050 : 00000000 00000000 00000000 00000000 ................ 
0_b0008060 : 00000000 00000000 00000000 00000000 ................ 
0_b0008070 : 00000000 00000000 00000000 00000000 ................ 
0_b0008080 : 80044302 80004302 00000000 00000000 ..C...C.........

Outcomes