-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.12.7 problems with GPU_MEM=16 in config.txt #503
Comments
Does it work for you with 3.10.y kernel? |
I believe I may see a similar issue with 3.12 (a93bfa0) and 3.13(6928683), but it is not necessarily related to GPU_MEM=16, but in my case to:
cmdline.txt: as recommended in: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=19334&start=125
So it may be related to this in some respect resulting in DMA memory not being allocateable. But then: the same settings work with a 3.11(8f768c5) kernel One surprising thing though: access to everything other Device on the USB is working fine (via the serial console) - only the USB NIC code seems to fail... Martin |
P.s: only removing:
makes the device boot without any of those "exceptions/traces" and only then network is working - otherwise there are no packets received, but TX counters goes up for DHCP, but I am not sure if the packets really get on the wire... |
And if you look at the very early details it shows: a difference between 3.11
and 3.13:
You see the missing newline in the message "initial,..." which results in a concatenated subsequent line (which should get fixed) and then the vc_cma_dma_declare_contiguous error for the 3.13 kernel? So something VERY early during the initialization fails already... (and it is the same error for 3.12) |
It is still not booting fully in 3.13.y kernels if GPU_MEM is reduced to 16. 3.10.y kernels are OK |
I'm not seeing this just booted and:
Do you have any config.txt settings or cmdline.txt settings that are non-default? |
See my comments about CMA setup - hence - non-fixed memory split... |
CMA is not officially supported. I was asking @amtssp who I believe isn't using CMA. |
OK - that is something new, which you may want to document somewhere. |
@msperl If someone who knows CMA well and understands what causes these alloc failures wants to help get it working, then we'd be interested in getting it working well. |
I tried it on mine with gpu_mem=16 and it booted to gpu_mem=128 Here the example for the setting of 31MB for GPU:
This could indicate that it is no longer allowed to run with GPU_MEM<32M with newer versions of the firmware and the issue of @amtssp is related to a FW version that still allowed it but triggered a bug in USB... |
@msperl but my log shows gpu_mem=16 is supported by latest firmware/kernel. |
the only thing that i override is kernel=... to use my compiled kernel - independently to what the rpi-update does provide... But disabling start_x=1 (which gets enabled with the camera) gets me back to 16MB... |
Yes of course. There are three start files, a cutdown one (start_cd.elf), a normal one (start.elf) and an extended one (start_x.elf). |
…f-two channels firmware: hdmi: Allow hdmi channel map to be overridden with a gencmd firmware: audioplus: limit sample rates to ones supported by hardware firmware: mailbox: Add property to get memory handle from dispmanx resource See: #257 firmware: Allow interrupts to be masked from GPU (e.g. when arm is handling them) See: #257 firmware: memory reduction of cutdown firmware (saves about 1M) See: raspberrypi/linux#503
…f-two channels firmware: hdmi: Allow hdmi channel map to be overridden with a gencmd firmware: audioplus: limit sample rates to ones supported by hardware firmware: mailbox: Add property to get memory handle from dispmanx resource See: raspberrypi/firmware#257 firmware: Allow interrupts to be masked from GPU (e.g. when arm is handling them) See: raspberrypi/firmware#257 firmware: memory reduction of cutdown firmware (saves about 1M) See: raspberrypi/linux#503
@amtssp |
Sorry for my late reply. If I use gpu_mem=32 it boots fully and everything is fine. |
Can you connect a serial console and see what you get on the console when booting Alternatively if you do not have a serial console at hand you can try the following: then reboot with and then after some time with your "blinking" led boot back again with then check
This would indicate that the kernel is booting far enough to get to a point where it can log its boot-messages to SD-card. Then please share all those If you do not see the first boot, then we need to get the output from the serial console. |
@amtssp |
@popcornmix I will try to find time to test the 3.12.23 later. No I don't use CMA |
Anything non-default in cmdline.txt or config.txt? |
Closing as no reponse from OP. If gpu_mem=16 is still broken then post a comment explaining what configuration this was used with. |
What about cma nowadays? @popcornmix is it now supported or not? The wiki links to this github issue. However we are now on a newer kernel and we have got new hardware ready. I think CMA can be a great feature, so how far is the development? Maybe one could open a new ticket for that? |
CMA is not supported. |
…f-two channels firmware: hdmi: Allow hdmi channel map to be overridden with a gencmd firmware: audioplus: limit sample rates to ones supported by hardware firmware: mailbox: Add property to get memory handle from dispmanx resource See: raspberrypi#257 firmware: Allow interrupts to be masked from GPU (e.g. when arm is handling them) See: raspberrypi#257 firmware: memory reduction of cutdown firmware (saves about 1M) See: raspberrypi/linux#503
[ Upstream commit 022e9d6 ] In the macsec_changelink(), "struct macsec_tx_sa tx_sc" is used to store "macsec_secy.tx_sc". But, the struct type of tx_sc is macsec_tx_sc, not macsec_tx_sa. So, the macsec_tx_sc should be used instead. Test commands: ip link add dummy0 type dummy ip link add macsec0 link dummy0 type macsec ip link set macsec0 type macsec encrypt off Splat looks like: [61119.963483][ T9335] ================================================================== [61119.964709][ T9335] BUG: KASAN: slab-out-of-bounds in macsec_changelink.part.34+0xb6/0x200 [macsec] [61119.965787][ T9335] Read of size 160 at addr ffff888020d69c68 by task ip/9335 [61119.966699][ T9335] [61119.966979][ T9335] CPU: 0 PID: 9335 Comm: ip Not tainted 5.6.0+ #503 [61119.967791][ T9335] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [61119.968914][ T9335] Call Trace: [61119.969324][ T9335] dump_stack+0x96/0xdb [61119.969809][ T9335] ? macsec_changelink.part.34+0xb6/0x200 [macsec] [61119.970554][ T9335] print_address_description.constprop.5+0x1be/0x360 [61119.971294][ T9335] ? macsec_changelink.part.34+0xb6/0x200 [macsec] [61119.971973][ T9335] ? macsec_changelink.part.34+0xb6/0x200 [macsec] [61119.972703][ T9335] __kasan_report+0x12a/0x170 [61119.973323][ T9335] ? macsec_changelink.part.34+0xb6/0x200 [macsec] [61119.973942][ T9335] kasan_report+0xe/0x20 [61119.974397][ T9335] check_memory_region+0x149/0x1a0 [61119.974866][ T9335] memcpy+0x1f/0x50 [61119.975209][ T9335] macsec_changelink.part.34+0xb6/0x200 [macsec] [61119.975825][ T9335] ? macsec_get_stats64+0x3e0/0x3e0 [macsec] [61119.976451][ T9335] ? kernel_text_address+0x111/0x120 [61119.976990][ T9335] ? pskb_expand_head+0x25f/0xe10 [61119.977503][ T9335] ? stack_trace_save+0x82/0xb0 [61119.977986][ T9335] ? memset+0x1f/0x40 [61119.978397][ T9335] ? __nla_validate_parse+0x98/0x1ab0 [61119.978936][ T9335] ? macsec_alloc_tfm+0x90/0x90 [macsec] [61119.979511][ T9335] ? __kasan_slab_free+0x111/0x150 [61119.980021][ T9335] ? kfree+0xce/0x2f0 [61119.980700][ T9335] ? netlink_trim+0x196/0x1f0 [61119.981420][ T9335] ? nla_memcpy+0x90/0x90 [61119.982036][ T9335] ? register_lock_class+0x19e0/0x19e0 [61119.982776][ T9335] ? memcpy+0x34/0x50 [61119.983327][ T9335] __rtnl_newlink+0x922/0x1270 [ ... ] Fixes: 3cf3227 ("net: macsec: hardware offloading infrastructure") Signed-off-by: Taehee Yoo <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Hi
3.12.6 and 3.12.7 kernels won't fully boot if GPU_MEM in config.txt is reduced to 16 MB.
Maybe it is booting, however, only the raspberry image is present on the screen in the top left corner. No keyboard input is shown.
However, the LEDs seems to indicate that that the kernel has booted, but I'm unable to produce any text on the screen.
The text was updated successfully, but these errors were encountered: