Ok, I understand now where the CMA default sizes come from but I don't
understand the rational behind them.

Default size specified in cma-overlay.dts:
                       /*
                         * The default size when using this overlay is 256 MB
                         * and should be kept as is for backwards
                         * compatibility.
                         */
                        size = <0x10000000>;

There are three vc4-kms-v3d overlays, one for Pi 5, one for Pi 4 and one for 
the rest. They all include cma-overlay.dts. But:
Pi 3: The size is *not* overridden, hence we get 256MB.
Pi 4: The size is overridden with 'size = <((512-4)*1024*1024)>;' -> 508MB.
Pi 5: The size is overridden with 'size = <(64*1024*1024)>;' -> 64MB.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060300

Title:
  KMS overlay causes OOM oops on 3A+

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/2060300/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to