-
Notifications
You must be signed in to change notification settings - Fork 5.2k
ARM: bcm2708: overlay to set cma to 128M@128M #1431
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
Conversation
Added overlay to set cma-boot parameter to 128M@128M. This may be most helpful for system with 512MB when running vc4-kms Signed-off-by: Martin Sperl <[email protected]>
@pelwell I guess we should support arbitrary cma settings as dt parameters (which may require firmware changes). |
String manipulation would require firmware changes, but there is a new mechanism in the most recent firmware releases (kernel 4.1.21 - dea25fa - and later). An overlay can include both active and inactive fragments - an inactive fragment has a Recall that a DT parameter declaration is a sequence of
For example:
Here the parameter values are ignored, but the i2c-rtc overlay could be rewritten this way with each RTC declaration in its own fragment and using:
and
The usage here is slightly contrived because you don't need to allow the explicit offs, but the negation has allowed us to marek the three DS RTCs as being mutually exclusive (they all use address 0x68). Although this structure would make the i2c-rtc overlay file larger, because inactive fragments aren't merged the resulting DTB is smaller and cleaner. Old firmware will automatically ignore |
I will leave it up to you - in principle it is a problem during migration, as I assume that when we have completely switched to kms then these settings will go into the board-specific dts... I will leave it as is and up to you to decide how you want to manage this in the meantime. |
On the subject of changes in DT parameter handling, I've also recently removed the restriction that integer parameters may not create or extend and existing property. |
I'll create a new PR with vc4-kms-v3d parameters for a few CMA positions and sizes, to give people a chance to comment. |
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi#1431 Signed-off-by: Phil Elwell <[email protected]>
New pull request at #1434. |
Superseded by #1434, which is now merged. |
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
Example: dtoverlay=vc4-kms-v3d,cma-128 See: #1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: #1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: #1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Example: dtoverlay=vc4-kms-v3d,cma-128 See: raspberrypi/linux#1431 Signed-off-by: Phil Elwell <[email protected]>
Added overlay to set cma-boot parameter to 128M@128M.
This may be most helpful for system with 512MB when running vc4-kms
Signed-off-by: Martin Sperl [email protected]