Jetson TK1 - RAM specification clarification

Thank you for the instructions.

I followed your flow step by step, but my board still does not work with the doubled RAM.
May I have your suggestions on the following?

  1. how to check and configure Memory split 3G user / 1G kernel?
  2. tried to add “CONFIG_ZONE_DMA” into the configuration file, but “CONFIG_ZONE_DMA” seemed not enabled - how to enable “CONFIG_ZONE_DMA”?
  3. I used your “SDRAM[0].McEmemCfg” setting but the board cannot be initiated after the change. I found a specific parameter change to cause that - “SDRAM[0].McEmemCfg” changed from “0x00000800” to “0x00001000”. (Other parameters change does not have this impact.) Do I need to modify other setting for this?

Thank you.

Hey yushanwu, I forgot to check this thread for replies. In case you didn’t get it working yet:

It’s in Kernel Features > Memory split.

Add

select ZONE_DMA if ARM_LPAE

to arch/arm/mach-tegra/Kconfig. I forgot to add that bit to the patch.

Did you use the whole BCT file I provide? It changes multiple settings compared to the 2GB BCT, all of which are required to successfully run with the 4GB configuration (on my hardware). You can also try the BCT provided by NVIDIA.

Hi lgeek, we got the system to recognize 4GB three days ago but the network did not work then. We finally found the key you indicated below (select ZONE_DMA if ARM_LPAE) yesterday. The board seems fine with 4GB DRAM now. We are doing some tests to make sure. Thank you for the help. We followed your steps to make it… (Oh we used the NVidia BCT.)

Hello All,

We have got our own design of tegra tk1, we have 4GB DDR fitted, I have applied patches mentioned lgeek and also updated Kconfig file arch/arm/mach-tegra/Kconfig to select ZONE_DMA if ARM_LPAE. I
also able to detect 3.9 GB of RAM in Linux after applying above changes, the problem i am facing
is i am getting EMC errors, I am attaching the kernel trace dump below. Please let me know if anybody faced the below issue relating to 4GB DDR RAM.

[ 6.278766] ------------[ cut here ]------------
[ 6.285007] WARNING: at /home/girish/tegra_linux/tegra_kernel/kernel/drivers/platform/tegra/mc/mcerr.c:240 tegra_mc_error_isr+0x264/0x29c()
[ 6.300907] [mcerr] Unknown error! intr sig: 0x00010440
[ 6.307884] Modules linked in:
[ 6.312724] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.10.40 #1
[ 6.321563] [] (unwind_backtrace+0x0/0x140) from [] (show_stack+0x18/0x1c)
[ 6.333947] [] (show_stack+0x18/0x1c) from [] (warn_slowpath_common+0x54/0x70)
[ 6.346704] [] (warn_slowpath_common+0x54/0x70) from [] (warn_slowpath_fmt+0x38/0x48)
[ 6.360211] [] (warn_slowpath_fmt+0x38/0x48) from [] (tegra_mc_error_isr+0x264/0x29c)
[ 6.373848] [] (tegra_mc_error_isr+0x264/0x29c) from [] (handle_irq_event_percpu+0x74/0x2ac)
[ 6.388227] [] (handle_irq_event_percpu+0x74/0x2ac) from [] (handle_irq_event+0x44/0x64)
[ 6.402400] [] (handle_irq_event+0x44/0x64) from [] (handle_fasteoi_irq+0xac/0x180)
[ 6.416248] [] (handle_fasteoi_irq+0xac/0x180) from [] (generic_handle_irq+0x34/0x48)
[ 6.430385] [] (generic_handle_irq+0x34/0x48) from [] (handle_IRQ+0x40/0x98)
[ 6.443818] [] (handle_IRQ+0x40/0x98) from [] (gic_handle_irq+0x40/0x160)
[ 6.457049] [] (gic_handle_irq+0x40/0x160) from [] (__irq_svc+0x40/0x70)
[ 6.470216] Exception stack(0xc0c11ed0 to 0xc0c11f18)
[ 6.477663] 1ec0: c0c11f20 00000000 00000000 000f4240
[ 6.490595] 1ee0: 000030b9 00000000 00000000 c40367f0 c0c11f18 c0d49b20 c40343e8 c0864760
[ 6.503492] 1f00: 3b9ac9ff c0c11f18 c02c36e4 c0040368 20000113 ffffffff
[ 6.512507] [] (__irq_svc+0x40/0x70) from [] (tegra_idle_enter_clock_gating+0x6c/0x7c)
[ 6.526886] [] (tegra_idle_enter_clock_gating+0x6c/0x7c) from [] (cpuidle_enter_state+0x48/0x104)
[ 6.542230] [] (cpuidle_enter_state+0x48/0x104) from [] (cpuidle_idle_call+0x158/0x298)
[ 6.556693] [] (cpuidle_idle_call+0x158/0x298) from [] (arch_cpu_idle+0x10/0x40)
[ 6.570541] [] (arch_cpu_idle+0x10/0x40) from [] (cpu_idle_loop+0x9c/0x23c)
[ 6.583948] [] (cpu_idle_loop+0x9c/0x23c) from [] (start_kernel+0x270/0x2c0)
[ 6.597441] [] (start_kernel+0x270/0x2c0) from [<80008084>] (0x80008084)
[ 6.609692] —[ end trace eb3a2c0d681f6c84 ]—
[ 6.616675] mc-err: [mcerr] (ppcs) csr_ppcsahbslvr: EMEM decode error on PDE or PTE entry
[ 6.629455] mc-err: [mcerr] status = 0x6000701e; addr = 0xffffffc0
[ 6.635726] mc-err: [mcerr] secure: no, access-type: read, SMMU fault: nr-nw-s
[ 6.650108] mc-err: [mcerr] (ppcs) csr_ppcsahbslvr: EMEM decode error on PDE or PTE entry
[ 6.662943] mc-err: [mcerr] status = 0x6000701e; addr = 0xffffffc0
[ 6.669213] mc-err: [mcerr] secure: no, access-type: read, SMMU fault: nr-nw-s
[ 6.683640] mc-err: [mcerr] (ppcs) csr_ppcsahbslvr: EMEM decode error on PDE or PTE entry
[ 6.696393] mc-err: [mcerr] status = 0x6000701e; addr = 0xffffffc0
[ 6.702664] mc-err: [mcerr] secure: no, access-type: read, SMMU fault: nr-nw-s
[ 6.716939] mc-err: Too many MC errors; throttling prints
[ 12.590290] Unable to handle kernel NULL pointer dereference at virtual address 00000060
[ 12.602441] pgd = c0003000
[ 12.607197] [00000060] *pgd=80000080004003, *pmd=00000000
[ 12.614751] Internal error: Oops: 206 [#1] PREEMPT SMP ARM
[ 12.622356] Modules linked in:
[ 12.627497] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.10.40 #1
[ 12.636554] task: c0c4e7c0 ti: c0c10000 task.ti: c0c10000
[ 12.644014] PC is at qtd_copy_status+0x1c/0x118
[ 12.650559] LR is at qh_completions+0x310/0x51c
[ 12.657037] pc : [] lr : [] psr: 80000193
[ 12.657037] sp : c0c11d10 ip : e9bbc508 fp : ffffff8d
[ 12.672395] r10: ec0a0060 r9 : 00000000 r8 : c0d57cc8
[ 12.679534] r7 : 00000000 r6 : ec0a2060 r5 : e9f1e740 r4 : 00000000
[ 12.687959] r3 : 00000000 r2 : e3130010 r1 : 00000000 r0 : e9bbc508
[ 12.696333] Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 12.707314] Control: 30c5387d Table: 80003000 DAC: fffffffd
[ 12.714858]
[ 12.714858] PC: 0xc0573850:
[ 12.722479] 3850 e2833001 e59f204c e2800048 ebf585f2 eafffff3 e59f0038 e1d022ba e3120004
[ 12.734177] 3870 0affffef e5151108 e2833001 e59f2028 e2800018 ebf585e8 eaffffe9 e5151108
[ 12.746033] 3890 e2833001 e59f2014 e2800030 ebf585e2 eaffffda c0d57cc8 c0ab3748 c0ab36f8
[ 12.757934] 38b0 c0ab3724 e92d4030 e24dd00c e92d4000 e8bd4000 e7e14453 e1a0c000 e3540002
[ 12.769988] 38d0 15915060 17ee0853 10822005 10602002 15812060 e5912010 e3520000 13e00072
[ 12.782173] 38f0 1a000025 e7ee2853 e3520000 03e00072 1a000029 e3130040 0a00001f e3130010
[ 12.794454] 3910 13e0004a 1a00001c e3130b03 13e0001f 1a000019 e3130004 1a000019 e3130020
[ 12.806883] 3930 1a000019 e3130008 0a000015 e59f0078 e1d037b2 e3130004 0a000011 e5912030
[ 12.819379]
[ 12.819379] LR: 0xc05791ec:
[ 12.827684] 91ec e59d0020 e5992000 e1590000 e58d2024 0a00003c e3540000 e2496040 e5967048
[ 12.840156] 920c 0a00000b e5941048 e1570001 0a000003 e1a0200b e59d0018 e3e0b072 ebfff359
[ 12.852666] 922c e59dc018 e1a01004 e1c423d8 e59c01a0 ebef3a79 e59d9024 eaffff7b e37b0073
[ 12.865329] 924c e3a00001 e58d001c 1affffcf e1a03004 e59d0018 e1a01007 e596204c ebffe991
[ 12.878085] 926c e3700079 e1a03000 0a000019 e3700073 1a00004d e1a0b003 eaffffc3 e3a02001
[ 12.890838] 928c e58d201c eaffffbe e3a03001 e58d301c eaffffbb e3a0c001 e58dc01c eaffffb8
[ 12.903597] 92ac e7e13454 e3530001 1affffb5 e5963004 e3130001 e59d301c 03a03001 e58d301c
[ 12.916389] 92cc eaffffaf e2850014 e5d53044 e58d0020 eaffff46 e5963004 e3130001 13e0b072
[ 12.929229]
[ 12.929229] SP: 0xc0c11c90:
[ 12.937725] 1c90 fffb9d33 00000000 0000b7f8 c06633cc e9f660b8 00000000 e9f660b0 00000000
[ 12.950236] 1cb0 c05738d0 80000193 ffffffff c0c11cfc c0d57cc8 c000ed18 e9bbc508 00000000
[ 12.962747] 1cd0 e3130010 00000000 00000000 e9f1e740 ec0a2060 00000000 c0d57cc8 00000000
[ 12.975491] 1cf0 ec0a0060 ffffff8d e9bbc508 c0c11d10 c057926c c05738d0 80000193 ffffffff
[ 12.988329] 1d10 e9f1e740 ec0a2060 00000000 00000000 e9f1e740 c057926c 00000060 00000002
[ 13.001166] 1d30 00000000 fffb9f28 c0c10000 e9bbc564 e9bbc508 00000000 e9f1e754 c4034b50
[ 13.014002] 1d50 00100100 ec0a20c0 e9bbc400 00000001 c0d49828 e9bbc508 e9bbc608 e9f1e740
[ 13.026837] 1d70 e9f1e754 00000000 e9bbc5c4 ece04769 60000193 c057a4a8 0000000a e9bbc508
[ 13.039674]
[ 13.039674] IP: 0xe9bbc488:
[ 13.048166] c488 ffffffff 00000000 00000000 00000000 00000000 00000000 e9b18680 ffffffe0
[ 13.060679] c4a8 e9bbc4a8 e9bbc4a8 c0560dfc c08ca7ac e9b15690 00000021 0000006b 00000081
[ 13.073193] c4c8 fe008000 00000000 7d008000 00000000 00004000 00000000 00000000 e9bcccc0
[ 13.085936] c4e8 00000000 00000000 e9bc1640 e9bc15c0 e9bc1540 e9bc14c0 00000001 00000000
[ 13.098775] c508 00000063 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 13.111612] c528 00000000 00000000 00000000 00000000 00000000 00000000 9f48dce8 00000002
[ 13.124452] c548 00000000 00000000 9f965b73 00000002 ecd0d401 00000002 e9bbc560 c4034b50
[ 13.137292] c568 00000000 00000000 ece01641 00000002 ecd0d401 00000002 c0578acc c40349b8
[ 13.150134]
[ 13.150134] R0: 0xe9bbc488:
[ 13.158636] c488 ffffffff 00000000 00000000 00000000 00000000 00000000 e9b18680 ffffffe0
[ 13.171150] c4a8 e9bbc4a8 e9bbc4a8 c0560dfc c08ca7ac e9b15690 00000021 0000006b 00000081
[ 13.183667] c4c8 fe008000 00000000 7d008000 00000000 00004000 00000000 00000000 e9bcccc0
[ 13.196413] c4e8 00000000 00000000 e9bc1640 e9bc15c0 e9bc1540 e9bc14c0 00000001 00000000
[ 13.209248] c508 00000063 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 13.222086] c528 00000000 00000000 00000000 00000000 00000000 00000000 9f48dce8 00000002
[ 13.234925] c548 00000000 00000000 9f965b73 00000002 ecd0d401 00000002 e9bbc560 c4034b50
[ 13.247765] c568 00000000 00000000 ece01641 00000002 ecd0d401 00000002 c0578acc c40349b8
[ 13.260604]
[ 13.260604] R2: 0xe312ff90:
[ 13.269102] ff90 41882217 30009610 e0840951 54029702 5002220e b054b118 881cf552 952c291c
[ 13.281614] ffb0 52980040 ad8800c4 476c0160 c4a18814 748c304c 0b18544e 39896254 50381044
[ 13.294124] ffd0 c2200554 b42c8160 90e23460 0762b31c 10c05540 49544403 800c8081 3033a595
[ 13.306866] fff0 d210002b 6113304c 50468105 74907410 b9a07848 02dc1054 a6a850f4 90045050
[ 13.319706] 0010 0420d05c 8741333e a28e7212 04a96581 3c4e1614 38168433 24560451 500ce594
[ 13.332543] 0030 5c52a050 6072187b 6070a139 c0545e1a 64168010 9c135cd9 41118110 74180013
[ 13.345383] 0050 050580c1 4a34912b 10580865 44845249 22284124 4861d014 402a315c 02244014
[ 13.358221] 0070 04a6a041 8105705b 0326e045 832e401a 62f05579 24820058 46080452 26004788
[ 13.371060]
[ 13.371060] R5: 0xe9f1e6c0:
[ 13.379555] e6c0 75c6f46f b315bdf3 7419fd7f 77e5dda3 3c85ffb1 a4ff745f f7b5b775 b9ee77f8
[ 13.392064] e6e0 fd3a75df dfe2fb6d ffec7ffc cbfc9ccc f7bedbf7 95f6797e f2fff975 fed77c7e
[ 13.404575] e700 f35d2798 dd72bdde ebfeb6b7 f57c769f dbdfb6de 739bef15 f74e2eef ff5b8ff7
[ 13.417314] e720 fff5efbc fb9b71df e0d77b5d 23c6fdfe baffddb0 ef69fd9f feecbafb d9d5e1bb
[ 13.430153] e740 ec0a0060 00000000 80027060 00000000 00000000 ec0a20a0 ec0a2160 00000000
[ 13.442993] e760 00000000 ec0a20c0 00100100 00200200 00000000 00000005 00000000 00000000
[ 13.455834] e780 e9f1d800 00000001 00000000 00000000 00000000 00000000 00000000 00000000
[ 13.468673] e7a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 13.481517]
[ 13.481517] R6: 0xec0a1fe0:
[ 13.490015] 1fe0 ******** ******** ******** ******** ******** ******** ******** ********
[ 13.502550] 2000 43474244 0000d272 0000d284 2020205b 00000000 00000000 00000000 07700720
[ 13.515076] 2020 4c20676e 78756e69 206e6f20 73796870 e5842000 e5931044 e5841018 e5980308
[ 13.527831] 2040 4c20676e 78756e69 206e6f20 73796870 07650754 076d0761 07200720 07500749
[ 13.540684] 2060 43474244 0000d389 0000d39b 2020205b 07200720 07200720 07200720 07310720
[ 13.553537] 2080 43474244 0000d3e6 0000d3f8 2020205b 00000000 00000000 00000000 074e0720
[ 13.566388] 20a0 4c20676e 78756e69 206e6f20 73796870 07610766 0769076d 0779076c 07700720
[ 13.579239] 20c0 4c20676e 78756e69 206e6f20 73796870 07200720 07200720 07200720 07650775
[ 13.592095]
[ 13.592095] R8: 0xc0d57c48:
[ 13.600593] 7c48 00000330 00000000 c0ab3588 c08ca744 c0ab3594 c0ab3368 0000033c 00000000
[ 13.613115] 7c68 c0ab3588 c08ca718 c0ab3594 c0ab33bc 0000019a 00000000 c0ab3588 c08ca718
[ 13.625634] 7c88 c0ab3594 c0ab33d4 000001a2 00000000 c0ab3588 c08ca718 c0ab3594 c0ab33e8
[ 13.638379] 7ca8 000001a9 00000000 c0ab3588 c08ca718 c0ab3594 c0ab33fc 000001af 00000000
[ 13.651223] 7cc8 c0ab40c0 c08ca8d0 c0ab3e74 c0ab3688 00000529 00000000 c0ab40c0 c08ca934
[ 13.664064] 7ce8 c0ab4144 c0ab36f8 00000242 00000000 c0ab40c0 c08ca934 c0ab4144 c0ab3724
[ 13.676905] 7d08 00000247 00000000 c0ab40c0 c08ca934 c0ab4144 c0ab3748 00000253 00000000
[ 13.689745] 7d28 c0ab40c0 c08ca970 c0ab3c38 c0ab3770 000000ee 00000000 c0ab40c0 c08ca980
[ 13.702590]
[ 13.702590] R10: 0xec09ffe0:
[ 13.711180] ffe0 ******** ******** ******** ******** ******** ******** ******** ********
[ 13.723711] 0000 43474244 0000d8a1 0000d8b3 2020205b 00000000 00000000 00000000 00000000
[ 13.736242] 0020 4c20676e 78756e69 206e6f20 73796870 07200720 07200720 07200720 07200720
[ 13.748999] 0040 4c20676e 78756e69 206e6f20 73796870 07310732 07300739 075d0738 0767075f
[ 13.761849] 0060 43474244 0000d9b8 0000d9ca 2020205b 07200720 07200720 07200720 07200720
[ 13.774702] 0080 43474244 0000da15 0000da27 2020205b 00000000 00000000 00000000 00000000
[ 13.787553] 00a0 4c20676e 78756e69 206e6f20 73796870 00000000 00000000 00000000 07650774
[ 13.800406] 00c0 4c20676e 78756e69 206e6f20 73796870 07200720 07200720 07200720 07200720
[ 13.813261] Process swapper/0 (pid: 0, stack limit = 0xc0c10238)
[ 13.821543] Stack: (0xc0c11d10 to 0xc0c12000)
[ 13.828128] 1d00: e9f1e740 ec0a2060 00000000 00000000
[ 13.840664] 1d20: e9f1e740 c057926c 00000060 00000002 00000000 fffb9f28 c0c10000 e9bbc564
[ 13.853160] 1d40: e9bbc508 00000000 e9f1e754 c4034b50 00100100 ec0a20c0 e9bbc400 00000001
[ 13.865894] 1d60: c0d49828 e9bbc508 e9bbc608 e9f1e740 e9f1e754 00000000 e9bbc5c4 ece04769
[ 13.878719] 1d80: 60000193 c057a4a8 0000000a e9bbc508 c0c11dac 00000002 c08ca75c c0578b60
[ 13.891554] 1da0: ece04769 00000002 c40349c4 00000200 00000000 e9bbc560 c0c11e38 c40349b8
[ 13.904395] 1dc0: c0c11e38 ffffffff c0578acc c4034980 00000001 c00948b8 fffb9d47 c4034980
[ 13.917236] 1de0: c4034980 c4034980 00000000 c0c11e38 ffffffff 00000000 7fffffff c0095824
[ 13.930081] 1e00: 00000000 00000000 ece04287 00000002 ffffffff 7fffffff ece04287 00000002
[ 13.942928] 1e20: ece02ff9 c4034a20 c4034a58 c4034a90 ece04287 00000002 ece04287 00000002
[ 13.955781] 1e40: 20000193 c0c0d37c ea405740 0000001d c0c13740 c403ac40 c0cf04e0 c40343e8
[ 13.968642] 1e60: c0864760 c06282a8 c0628278 c00dba0c c0c0d37c 0000001d 00000000 c0c11ed0
[ 13.981557] 1e80: c0c10000 fd842000 c40343e8 c00d7f04 000003c0 c000fbb4 0000001d fd84200c
[ 13.994586] 1ea0: c0c46668 c0008524 c02c36e4 c0040368 20000113 ffffffff c0c11f04 c0c11f18
[ 14.007654] 1ec0: c0d49b20 c40343e8 c0864760 c000ed80 c0c11f20 00000000 00000000 000f4240
[ 14.020725] 1ee0: 00000006 00000000 00000000 c40367f0 c0c11f18 c0d49b20 c40343e8 c0864760
[ 14.033798] 1f00: 3b9ac9ff c0c11f18 c02c36e4 c0040368 20000113 ffffffff ece01206 00000002
[ 14.046866] 1f20: 00000000 00000006 ecdff7fb 00000002 c40367f0 00000000 c0c11f40 c0606a0c
[ 14.059934] 1f40: ecdff7fb 00000002 ffffffff c40367f0 c0c10000 c40367f0 c0c10000 00000000
[ 14.073002] 1f60: c40343e8 00000000 c0ddb6a0 c0606c20 00000000 00000000 01400000 c0c10000
[ 14.086066] 1f80: 00000001 c0c4548c c0c4f72c c0c4541c c0d49b20 c0d49b20 c0864760 c0010158
[ 14.099131] 1fa0: 0012f19c c00b6748 c0865ab0 c0c462c8 00000001 00000000 c0c4f72c 80007000
[ 14.112197] 1fc0: 413fc0f3 00000000 00000000 c0b8ea70 ffffffff ffffffff c0b8e530 00000000
[ 14.125263] 1fe0: 00000000 c0bdc9f0 30c7387d c0c453e8 c0bdc9ec 80008084 00000000 00000000
[ 14.138343] [] (qtd_copy_status+0x1c/0x118) from [] (qh_completions+0x310/0x51c)
[ 14.152391] [] (qh_completions+0x310/0x51c) from [] (ehci_work+0x88/0x1e8)
[ 14.165916] [] (ehci_work+0x88/0x1e8) from [] (ehci_hrtimer_func+0x94/0x10c)
[ 14.179620] [] (ehci_hrtimer_func+0x94/0x10c) from [] (__run_hrtimer+0x84/0x28c)
[ 14.193677] [] (__run_hrtimer+0x84/0x28c) from [] (hrtimer_interrupt+0x124/0x328)
[ 14.207824] [] (hrtimer_interrupt+0x124/0x328) from [] (arch_timer_handler_phys+0x30/0x38)
[ 14.222770] [] (arch_timer_handler_phys+0x30/0x38) from [] (handle_percpu_devid_irq+0x80/0x18c)
[ 14.238151] [] (handle_percpu_devid_irq+0x80/0x18c) from [] (generic_handle_irq+0x34/0x48)
[ 14.253096] [] (generic_handle_irq+0x34/0x48) from [] (handle_IRQ+0x40/0x98)
[ 14.266814] [] (handle_IRQ+0x40/0x98) from [] (gic_handle_irq+0x40/0x160)
[ 14.280269] [] (gic_handle_irq+0x40/0x160) from [] (__irq_svc+0x40/0x70)
[ 14.293631] Exception stack(0xc0c11ed0 to 0xc0c11f18)
[ 14.301130] 1ec0: c0c11f20 00000000 00000000 000f4240
[ 14.314108] 1ee0: 00000006 00000000 00000000 c40367f0 c0c11f18 c0d49b20 c40343e8 c0864760
[ 14.327043] 1f00: 3b9ac9ff c0c11f18 c02c36e4 c0040368 20000113 ffffffff
[ 14.336073] [] (__irq_svc+0x40/0x70) from [] (tegra_idle_enter_clock_gating+0x6c/0x7c)
[ 14.350476] [] (tegra_idle_enter_clock_gating+0x6c/0x7c) from [] (cpuidle_enter_state+0x48/0x104)
[ 14.365841] [] (cpuidle_enter_state+0x48/0x104) from [] (cpuidle_idle_call+0x158/0x298)
[ 14.380325] [] (cpuidle_idle_call+0x158/0x298) from [] (arch_cpu_idle+0x10/0x40)
[ 14.394191] [] (arch_cpu_idle+0x10/0x40) from [] (cpu_idle_loop+0x9c/0x23c)
[ 14.407611] [] (cpu_idle_loop+0x9c/0x23c) from [] (start_kernel+0x270/0x2c0)
[ 14.421129] [] (start_kernel+0x270/0x2c0) from [<80008084>] (0x80008084)
[ 14.433414] Code: e8bd4000 e7e14453 e1a0c000 e3540002 (15915060)
[ 14.441881] —[ end trace eb3a2c0d681f6c86 ]—
[ 14.464557] Kernel panic - not syncing: Fatal exception in interrupt
[ 14.473246] CPU1: stopping
[ 14.478231] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D W 3.10.40 #1
[ 14.487529] [] (unwind_backtrace+0x0/0x140) from [] (show_stack+0x18/0x1c)
[ 14.500731] [] (show_stack+0x18/0x1c) from [] (handle_IPI+0x178/0x1a8)
[ 14.513619] [] (handle_IPI+0x178/0x1a8) from [] (gic_handle_irq+0x7c/0x160)
[ 14.526982] [] (gic_handle_irq+0x7c/0x160) from [] (__irq_svc+0x40/0x70)
[ 14.540083] Exception stack(0xea68fec0 to 0xea68ff08)
[ 14.547465] fec0: ea68ff10 00000001 00000001 000f4240 0016144d 00000000 00000000 c403f7f0
[ 14.560240] fee0: ea68ff08 c0d49b20 c403d3e8 c0864760 00000000 ea68ff08 c02c36e4 c0040368
[ 14.573007] ff00: 20000113 ffffffff
[ 14.578744] [] (__irq_svc+0x40/0x70) from [] (tegra_idle_enter_clock_gating+0x6c/0x7c)
[ 14.592873] [] (tegra_idle_enter_clock_gating+0x6c/0x7c) from [] (tegra_idle_enter_pd+0x58/0x260)
[ 14.607972] [] (tegra_idle_enter_pd+0x58/0x260) from [] (cpuidle_enter_state+0x48/0x104)
[ 14.622291] [] (cpuidle_enter_state+0x48/0x104) from [] (cpuidle_idle_call+0x158/0x298)
[ 14.636614] [] (cpuidle_idle_call+0x158/0x298) from [] (arch_cpu_idle+0x10/0x40)
[ 14.650413] [] (arch_cpu_idle+0x10/0x40) from [] (cpu_idle_loop+0x9c/0x23c)
[ 14.663823] [] (cpu_idle_loop+0x9c/0x23c) from [<8084bbe4>] (0x8084bbe4)
[ 14.676085] CPU3: stopping
[ 14.681120] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D W 3.10.40 #1
[ 14.690445] [] (unwind_backtrace+0x0/0x140) from [] (show_stack+0x18/0x1c)
[ 14.703653] [] (show_stack+0x18/0x1c) from [] (handle_IPI+0x178/0x1a8)
[ 14.716573] [] (handle_IPI+0x178/0x1a8) from [] (gic_handle_irq+0x7c/0x160)
[ 14.729957] [] (gic_handle_irq+0x7c/0x160) from [] (__irq_svc+0x40/0x70)
[ 14.743117] Exception stack(0xea693ec0 to 0xea693f08)
[ 14.750562] 3ec0: ea693f10 00000000 00000000 000f4240 0000b757 00000000 00000000 c40517f0
[ 14.763463] 3ee0: ea693f08 c0d49b20 c404f3e8 c0864760 3b9ac9ff ea693f08 c02c36e4 c0040368
[ 14.776348] 3f00: 20000113 ffffffff
[ 14.782154] [] (__irq_svc+0x40/0x70) from [] (tegra_idle_enter_clock_gating+0x6c/0x7c)
[ 14.796417] [] (tegra_idle_enter_clock_gating+0x6c/0x7c) from [] (tegra_idle_enter_pd+0x58/0x260)
[ 14.811653] [] (tegra_idle_enter_pd+0x58/0x260) from [] (cpuidle_enter_state+0x48/0x104)
[ 14.826102] [] (cpuidle_enter_state+0x48/0x104) from [] (cpuidle_idle_call+0x158/0x298)
[ 14.840460] [] (cpuidle_idle_call+0x158/0x298) from [] (arch_cpu_idle+0x10/0x40)
[ 14.854349] [] (arch_cpu_idle+0x10/0x40) from [] (cpu_idle_loop+0x9c/0x23c)
[ 14.867845] [] (cpu_idle_loop+0x9c/0x23c) from [<8084bbe4>] (0x8084bbe4)
[ 14.880187] CPU2: stopping
[ 14.885330] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G D W 3.10.40 #1
[ 14.894756] [] (unwind_backtrace+0x0/0x140) from [] (show_stack+0x18/0x1c)
[ 14.908150] [] (show_stack+0x18/0x1c) from [] (handle_IPI+0x178/0x1a8)
[ 14.921277] [] (handle_IPI+0x178/0x1a8) from [] (gic_handle_irq+0x7c/0x160)
[ 14.934849] [] (gic_handle_irq+0x7c/0x160) from [] (__irq_svc+0x40/0x70)
[ 14.948202] Exception stack(0xea691ec0 to 0xea691f08)
[ 14.955749] 1ec0: ea691f10 00000001 00000001 000f4240 001cd071 00000000 00000000 c40487f0
[ 14.968840] 1ee0: ea691f08 c0d49b20 c40463e8 c0864760 00000000 ea691f08 c02c36e4 c0040368
[ 14.981927] 1f00: 20000113 ffffffff
[ 14.987835] [] (__irq_svc+0x40/0x70) from [] (tegra_idle_enter_clock_gating+0x6c/0x7c)
[ 15.002294] [] (tegra_idle_enter_clock_gating+0x6c/0x7c) from [] (tegra_idle_enter_pd+0x58/0x260)
[ 15.017718] [] (tegra_idle_enter_pd+0x58/0x260) from [] (cpuidle_enter_state+0x48/0x104)
[ 15.032352] [] (cpuidle_enter_state+0x48/0x104) from [] (cpuidle_idle_call+0x158/0x298)
[ 15.046905] [] (cpuidle_idle_call+0x158/0x298) from [] (arch_cpu_idle+0x10/0x40)
[ 15.060980] [] (arch_cpu_idle+0x10/0x40) from [] (cpu_idle_loop+0x9c/0x23c)
[ 15.074684] [] (cpu_idle_loop+0x9c/0x23c) from [<8084bbe4>] (0x8084bbe4)

Thanks
Hari

We have a 4GB SDRAM custom board use MT41K512M16HA chip
I compiler kernel with below funtion,
System Type - Full 4GB physical memory support
System Type - Support for the LPAE
Kernel features - Memory split is 3G user / 1G kernel
the 2GB is working.
when i change kernel parameters, the boot kernel stop,not read kernel
mem=2015M@2048M > mem=2048M@4096M ;ddr_die=2048M@2048M > ddr_die=2048M@4096M

how can i check error about kernel?

sorry my english

We have a 4GB SDRAM custom board use MT41K512M16HA chip
I compiler kernel with below funtion,
System Type - Full 4GB physical memory support
System Type - Support for the LPAE
Kernel features - Memory split is 3G user / 1G kernel
the 2GB is working.
when i change kernel parameters, the boot kernel stop,not read kernel
mem=2015M@2048M > mem=2048M@4096M ;ddr_die=2048M@2048M > ddr_die=2048M@4096M

how can i check error about kernel?

sorry my english

We have a 4GB SDRAM custom board use M741K512M16HA chip
I compiler kernel with below funtion,
System Type - Full 4GB physical memory support
System Type - Support for the LPAE
Kernel features - Memory split is 3G user / 1G kernel
the 2GB is working.
when i change kernel parameters, the boot kernel stop,not read kernel
mem=2015M@2048M > mem=2048M@4096M ;ddr_die=2048M@2048M > ddr_die=2048M@4096M

how can i check error about kernel?

sorry my english

Hello, nuu9323226:
To support 4G RAM in Jetson, you may have to do more than re-configuring kernel.

  1. Kernel part
    1.1 DVFS table @ arch/arm/mach-tegra/board-ardbeg-memory.c must be updated according the DDR chip used.
    1.2 CONFIG_ARM_LPAE must be enabled in kernel configuration.
    1.3 Another little patch for ethernet driver @ drivers/net/ethernet/realtek/r8169.c must be applied, otherwise the network may fail to work.
  2. extlinux.conf must be changed to add mem and ddr_die, like mem=2048M@4096M, ddr_die=2048M@4096M.
  3. BCT with the new DDR chip must be applied during flashing.

br
Chenjian

Based on R21.4 and follow the topic previous provide information to do,
After change extlinux.conf’s mem and ddr_die to mem=2048M@4096M ddr_die=2048M@4096M.
Then got below log: "

U-Boot SPL 2014.10-rc2-dirty (Nov 04 2015 - 17:34:02)

U-Boot 2014.10-rc2-dirty (Nov 04 2015 - 17:34:02)

TEGRA124
Board: NVIDIA Jetson TK1
I2C: ready
DRAM: 4 GiB
MMC: Tegra SD/MMC: 0, Tegra SD/MMC: 1
*** Warning - bad CRC, using default environment

tegra-pcie: PCI regions:
tegra-pcie: I/O: 0x12000000-0x12010000
tegra-pcie: non-prefetchable memory: 0x13000000-0x20000000
tegra-pcie: prefetchable memory: 0x20000000-0x40000000
tegra-pcie: 2x1, 1x1 configuration
tegra-pcie: probing port 0, using 2 lanes
tegra-pcie: link 0 down, retrying
tegra-pcie: link 0 down, retrying
tegra-pcie: link 0 down, retrying
tegra-pcie: link 0 down, ignoring
tegra-pcie: probing port 1, using 1 lanes
In: serial
Out: serial
Err: serial
Net: RTL8169#0
Warning: RTL8169#0 using MAC address from net device

Hit any key to stop autoboot: 0
MMC: no card present
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0…
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
813 bytes read in 171 ms (3.9 KiB/s)
Jetson-TK1 eMMC boot options
1: primary kernel
Enter choice: 1: primary kernel
Retrieving file: /boot/zImage
6027848 bytes read in 200 ms (28.7 MiB/s)
append: console=ttyS0,115200n8 console=tty1 no_console_suspend=1 lp0_vec=2064@0xf46ff000 mem=2048M@4096M memtype=255 ddr_die=2048M@4096M section=256M pmuboard=0x0177:0x0000:0x02:0x43:0x00 tsec=32M@3913M otf_key=c75e5bb91eb3bd947560357b64422f85 usbcore.old_scheme_first=1 core_edp_mv=1150 core_edp_ma=4000 tegraid=40.1.1.0.0 debug_uartport=lsport,3 power_supply=Adapter audio_codec=rt5640 modem_id=0 android.kerneltype=normal fbcon=map:1 commchip_id=0 usb_port_owner_info=0 lane_owner_info=6 emc_max_dvfs=0 touch_id=0@0 board_info=0x0177:0x0000:0x02:0x43:0x00 root=/dev/mmcblk0p1 rw rootwait tegraboot=sdmmc gpt
Retrieving file: /boot/tegra124-jetson_tk1-pm375-000-c00-00.dtb
59669 bytes read in 118 ms (493.2 KiB/s)
Kernel image @ 0x81000000 [ 0x000000 - 0x5bfa48 ]

Flattened Device Tree blob at 82000000

Booting using the fdt blob at 0x82000000
Using Device Tree in place at 82000000, end 82011914

Starting kernel …

"
=> Kernel halt!

How to correct transfer DRAM size 4G from U-boot to kernel?
Or how to correct setup DRAM size 4G in kernel?

Several requests have been made for >= 4GB RAM support for Tegra K1. While we don’t provide support for this configuration, there are patches to enable LPAE in your kernel for experimentation purpose, please check the details in following link:

[url]https://devtalk.nvidia.com/default/topic/924464/?comment=4836941[/url]

Thanks

Hi jachen,
May I know where can I find this path for r8169?

Many Thanks.
Frank

Hi FrankPCP,

Would yo please file a new topic with clear description for what issue you met, then we can help to provide the suggestion?

Thanks

Hi kayccc,
I have created a new topic.
[url]https://devtalk.nvidia.com/default/topic/1033050/jetson-tk1/the-patch-for-r8169-with-4gb-ram/[/url]

Many Thanks