Hi all
i have enabled 64MB SD-RAM in RZ/A2M board with ISSI sdram part this is working perfectly fine, i want to use another SDRAM part i.e of etron which is of same pin compatible,same hardware and clock configuration as ISSI SDRAM, i removed ISSI SDRAM and replaced with etron SDRAM but i am getting this issue plz help me resolving this issue.
U-Boot 2017.05-g1473d59-dirty (Jan 21 2020 - 18:33:22 +0530)
CPU: Renesas Electronics CPU rev 0.0
Board: RZA2MEVB
I2C: ready
DRAM: 4 MiB
MMC: sh-sdhi: 0, sh-sdhi: 1
SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB
In: serial_sh
Out: serial_sh
Err: serial_sh
SPI Flash Memory Map
------------------------------------
Start Size
u-boot: 0x00000000 0x080000
env: 0x00080000 0x010000
DT: 0x000C0000 0x010000
Kernel: 0x00200000 0x050000
rootfs: 0x00800000 0xFFC00000
ON SW6
+---------------------+
| = = = = = |
| = = |
| 1 2 3 4 5 6 7 8 9 0 | Please make sure your sub-board matches
+---------------------+ these switch settings.
SW6-1 set to SDRAM
SW6-2 set to Audio
SW6-3 set to DRP
SW6-4 set to CEU
SW6-5 set to Ether2
SW6-6 set to VDC6
SW6-7 set to VDC6
Net: sh_eth
Hit any key to stop autoboot: 0
=> run xsa_boot
Current Mode: Fast Read Mode (3-byte Addr)
SF: Detected mx25l51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB
New Mode: Quad I/O Read Mode (4-byte Addr)
Booting Linux...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.19-g32a837b-dirty (mahesh@mahesh-ThinkPad-E470) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 Tue9
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=50c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: RZA2MEVB
[ 0.000000] debug: ignoring loglevel setting.
[ 0.000000] earlycon: scif0 at MMIO 0xe8008000 (options '115200n8')
[ 0.000000] bootconsole [scif0] enabled
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: ignore_loglevel earlycon rootfstype=axfs root=/dev/null rootflags=physaddr=0x20800000
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] BUG: Bad page state in process swapper pfn:0c001
[ 0.000000] page:c3f7b020 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7b024 c3f7b024 00000000 00000000 00000000 ffffff7f 00000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.19-g32a837b-dirty #6
[ 0.000000] Hardware name: Generic R7S9210 (Flattened Device Tree)
[ 0.000000] [<bf8089fd>] (unwind_backtrace) from [<bf807bdb>] (show_stack+0xb/0xc)
[ 0.000000] [<bf807bdb>] (show_stack) from [<bf84047f>] (bad_page+0x9b/0xb4)
[ 0.000000] [<bf84047f>] (bad_page) from [<bf840c1d>] (__free_pages_ok+0x209/0x2d0)
[ 0.000000] [<bf840c1d>] (__free_pages_ok) from [<bfb72b67>] (free_all_bootmem+0xdb/0x11c)
[ 0.000000] [<bfb72b67>] (free_all_bootmem) from [<bfb6d36d>] (mem_init+0x41/0x19c)
[ 0.000000] [<bfb6d36d>] (mem_init) from [<bfb6abf1>] (start_kernel+0x115/0x280)
[ 0.000000] [<bfb6abf1>] (start_kernel) from [<00000000>] ( (null))
[ 0.000000] Disabling lock debugging due to kernel taint
[ 0.000000] BUG: Bad page state in process swapper pfn:0c003
[ 0.000000] page:c3f7b060 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7b064 c3f7b064 00000000 00000000 00000000 ffffff7f 00000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 4.19.19-g32a837b-dirty #6
[ 0.000000] Hardware name: Generic R7S9210 (Flattened Device Tree)
[ 0.000000] [<bf8089fd>] (unwind_backtrace) from [<bf807bdb>] (show_stack+0xb/0xc)
[ 0.000000] [<bf807bdb>] (show_stack) from [<bf84047f>] (bad_page+0x9b/0xb4)
[ 0.000000] [<bf84047f>] (bad_page) from [<bf840c1d>] (__free_pages_ok+0x209/0x2d0)
[ 0.000000] [<bf840c1d>] (__free_pages_ok) from [<bfb72b67>] (free_all_bootmem+0xdb/0x11c)
[ 0.000000] [<bfb72b67>] (free_all_bootmem) from [<bfb6d36d>] (mem_init+0x41/0x19c)
[ 0.000000] [<bfb6d36d>] (mem_init) from [<bfb6abf1>] (start_kernel+0x115/0x280)
[ 0.000000] [<bfb6abf1>] (start_kernel) from [<00000000>] ( (null))
[ 0.000000] BUG: Bad page state in process swapper pfn:0c000
[ 0.000000] page:c3f7b000 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7b004 c3f7b004 00000000 00000000 00000000 ffffff7f 00000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 4.19.19-g32a837b-dirty #6
[ 0.000000] Hardware name: Generic R7S9210 (Flattened Device Tree)
[ 0.000000] [<bf8089fd>] (unwind_backtrace) from [<bf807bdb>] (show_stack+0xb/0xc)
[ 0.000000] [<bf807bdb>] (show_stack) from [<bf84047f>] (bad_page+0x9b/0xb4)
[ 0.000000] [<bf84047f>] (bad_page) from [<bf840a77>] (__free_pages_ok+0x63/0x2d0)
[ 0.000000] [<bf840a77>] (__free_pages_ok) from [<bfb72b67>] (free_all_bootmem+0xdb/0x11c)
[ 0.000000] [<bfb72b67>] (free_all_bootmem) from [<bfb6d36d>] (mem_init+0x41/0x19c)
[ 0.000000] [<bfb6d36d>] (mem_init) from [<bfb6abf1>] (start_kernel+0x115/0x280)
[ 0.000000] [<bfb6abf1>] (start_kernel) from [<00000000>] ( (null))
[ 0.000000] BUG: Bad page state in process swapper pfn:0c084
[ 0.000000] page:c3f7c080 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7c084 c3f7c084 00000000 00000000 00000000 ffffff7f 00000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 4.19.19-g32a837b-dirty #6
[ 0.000000] Hardware name: Generic R7S9210 (Flattened Device Tree)
[ 0.000000] [<bf8089fd>] (unwind_backtrace) from [<bf807bdb>] (show_stack+0xb/0xc)
[ 0.000000] [<bf807bdb>] (show_stack) from [<bf84047f>] (bad_page+0x9b/0xb4)
[ 0.000000] [<bf84047f>] (bad_page) from [<bf840a77>] (__free_pages_ok+0x63/0x2d0)
[ 0.000000] [<bf840a77>] (__free_pages_ok) from [<bfb72b67>] (free_all_bootmem+0xdb/0x11c)
[ 0.000000] [<bfb72b67>] (free_all_bootmem) from [<bfb6d36d>] (mem_init+0x41/0x19c)
[ 0.000000] [<bfb6d36d>] (mem_init) from [<bfb6abf1>] (start_kernel+0x115/0x280)
[ 0.000000] [<bfb6abf1>] (start_kernel) from [<00000000>] ( (null))
[ 0.000000] BUG: Bad page state in process swapper pfn:0c08e
[ 0.000000] page:c3f7c1c0 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7c1c4 c3f7c1c4 00000000 00000000 00000000 ffffff7f 00000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 4.19.19-g32a837b-dirty #6
[ 0.000000] Hardware name: Generic R7S9210 (Flattened Device Tree)
[ 0.000000] [<bf8089fd>] (unwind_backtrace) from [<bf807bdb>] (show_stack+0xb/0xc)
[ 0.000000] [<bf807bdb>] (show_stack) from [<bf84047f>] (bad_page+0x9b/0xb4)
[ 0.000000] [<bf84047f>] (bad_page) from [<bf840c1d>] (__free_pages_ok+0x209/0x2d0)
[ 0.000000] [<bf840c1d>] (__free_pages_ok) from [<bfb72b67>] (free_all_bootmem+0xdb/0x11c)
[ 0.000000] [<bfb72b67>] (free_all_bootmem) from [<bfb6d36d>] (mem_init+0x41/0x19c)
[ 0.000000] [<bfb6d36d>] (mem_init) from [<bfb6abf1>] (start_kernel+0x115/0x280)
[ 0.000000] [<bfb6abf1>] (start_kernel) from [<00000000>] ( (null))
[ 0.000000] BUG: Bad page state in process swapper pfn:0c096
[ 0.000000] page:c3f7c2c0 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7c2c4 c3f7c2c4 00000000 00000000 00000000 ffffff7f 00000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 4.19.19-g32a837b-dirty #6
[ 0.000000] Hardware name: Generic R7S9210 (Flattened Device Tree)
[ 0.000000] [<bf8089fd>] (unwind_backtrace) from [<bf807bdb>] (show_stack+0xb/0xc)
[ 0.000000] [<bf807bdb>] (show_stack) from [<bf84047f>] (bad_page+0x9b/0xb4)
[ 0.000000] [<bf84047f>] (bad_page) from [<bf840c1d>] (__free_pages_ok+0x209/0x2d0)
[ 0.000000] [<bf840c1d>] (__free_pages_ok) from [<bfb72b67>] (free_all_bootmem+0xdb/0x11c)
[ 0.000000] [<bfb72b67>] (free_all_bootmem) from [<bfb6d36d>] (mem_init+0x41/0x19c)
[ 0.000000] [<bfb6d36d>] (mem_init) from [<bfb6abf1>] (start_kernel+0x115/0x280)
[ 0.000000] [<bfb6abf1>] (start_kernel) from [<00000000>] ( (null))
[ 0.000000] BUG: Bad page state in process swapper pfn:0c097
[ 0.000000] page:c3f7c2e0 count:0 mapcount:-128 mapping:00000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 00000000 c3f7c2e4 c3f7c2e4 00000000 00000000 00000000 ffffff7f 00000000
i have also checked memory location of the SDRAM it was able to read/write
=> md C000000 20
0c000000: 99999999 99999999 9999999b 99999999 ................
0c000010: 99999999 99999999 99999999 99991999 ................
0c000020: 99999999 99999999 99999999 99999999 ................
0c000030: 999d9999 99999999 91999999 19999999 ................
0c000040: 99999999 99999999 99199999 99999999 ................
0c000050: 9999999d 99999999 d9999999 99999999 ................
0c000060: 99999999 99999999 99999999 9b9999d9 ................
0c000070: 99999999 99999989 99999999 99999999 ................
=> mw C000000 CCCC 128
=> md C000000 20
0c000000: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000010: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000020: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000030: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000040: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000050: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000060: 0000cccc 0000cccc 0000cccc 0000cccc ................
0c000070: 0000cccc 0000cccc 0000cccc 0000cccc ................
i am not understanding this issue plz help me resolving this issue