Raspberry-Pi-OS-64bit icon indicating copy to clipboard operation
Raspberry-Pi-OS-64bit copied to clipboard

Bug

Open Heyman980 opened this issue 5 years ago • 13 comments

I changed the gpu memory and when I restarted it, it refused to boot and gave me a bunch of errors.

Heyman980 avatar Jul 23 '20 19:07 Heyman980

Do you think it might be helpful to say which model of Pi you are running it on, with how much memory, and what you set gpu_mem to? Maybe?

pelwell avatar Jul 23 '20 19:07 pelwell

Pi4 4gb, I don't remember the gpu memory I set it to.

Heyman980 avatar Jul 23 '20 19:07 Heyman980

That's kind of important.

pelwell avatar Jul 23 '20 19:07 pelwell

I know...

Heyman980 avatar Jul 23 '20 19:07 Heyman980

I erased the card and am trying to write the os again. I will try steadily increasing the gpu memory until the same crash happens. Then, I will copy the error message.

Heyman980 avatar Jul 23 '20 19:07 Heyman980

All memory that needs to be accessed by the VPU and some of the older hardware blocks has to fit into the first 1GB. On a Pi 4 we usually carve out 256MB for this shared area. I think things might start to struggle with gpu_mem much greater than 256 - 512 perhaps?

But why do you want a large gpu_mem on the 4? The graphics stack runs on the ARM and the improved graphics hardware can address any part of RAM for textures etc.

pelwell avatar Jul 23 '20 19:07 pelwell

I wanted it because it removed a small glitch in the output when scrolling.

Heyman980 avatar Jul 23 '20 19:07 Heyman980

I moved it up to 720, it crashed again. The message is the attachment.

Heyman980 avatar Jul 23 '20 21:07 Heyman980

DSCN2143

Heyman980 avatar Jul 23 '20 21:07 Heyman980

1024 - 720 - 256 isn't a lot of space for anything else.

pelwell avatar Jul 23 '20 21:07 pelwell

Yeah

Heyman980 avatar Jul 24 '20 02:07 Heyman980

Like the overclock settings, gpu_mem is a power-user control that should be used with caution. Making it impossible to choose an invalid value without preventing you from using some valid values requires information that the firmware doesn't have or shouldn't need to care about. This is a "won't fix".

pelwell avatar Jul 24 '20 05:07 pelwell

https://www.raspberrypi.org/documentation/configuration/config-txt/memory.md also clearly says "It is possible to set gpu_mem to larger values, however this should be avoided since it can cause problems, such as preventing Linux from booting."

lurch avatar Jul 24 '20 08:07 lurch