package/sunxi-mali-mainline-driver: update help section to make it work on Linux >= 4.20
PATCH 1/1 package/sunxi-mali-mainline-driver: update help section to make it work on Linux >= 4.20
On Linux version >= 4.20 we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 to make this driver to work.
--- package/sunxi-mali-mainline-driver/Config.in | 3 +++ 1 file changed, 3 insertions(+)
package/sunxi-mali-mainline-driver/Config.in +3 -0
@@ -25,5 +25,8 @@ config BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER starting from Linux Kernel >= 4.20 following options must be enabled: - CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM + and following kernel command-line must be passed: + `drm_kms_helper.drm_leak_fbdev_smem=1` + since drm_kms_helper.drm_leak_fbdev_smem is set to 0 by default https://github.com/mripard/sunxi-mali/blob/master/README.md
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines · Giulio Benetti
On Linux version >= 4.20 we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 to make this driver to work.
Signed-off-by Giulio Benetti <[email protected]>--- package/sunxi-mali-mainline-driver/Config.in | 3 +++ 1 file changed, 3 insertions(+)package/sunxi-mali-mainline-driver/Config.in +0
-0
package/sunxi-mali-mainline-driver/Config.in config BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER · line 32
Quoted 8 lines
package/sunxi-mali-mainline-driver/Config.in +3
-0@@ -25,5 +25,8 @@ config BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER starting from Linux Kernel >= 4.20 following options must be enabled: - CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM + and following kernel command-line must be passed: + `drm_kms_helper.drm_leak_fbdev_smem=1` + since drm_kms_helper.drm_leak_fbdev_smem is set to 0 by default https://github.com/mripard/sunxi-mali/blob/master/README.md
This also needs drm_kms_helper.drm_fbdev_overalloc=200 at least too as olinuxino patch:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I'm going to send a v2 patch for this.
Sorry again for the noise
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/sunxi-mali-mainline-driver: update help section to make it work on Linux >= 4.20
On Linux version >= 4.20 in order to have mali working we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 and at least drm_kms_helper.drm_fbdev_overalloc=200 to have a double buffer fbdev.
---V1->V2:
* add double buffer too
--- package/sunxi-mali-mainline-driver/Config.in | 6 ++++++ 1 file changed, 6 insertions(+)
package/sunxi-mali-mainline-driver/Config.in +6 -0
@@ -25,5 +25,11 @@ config BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER starting from Linux Kernel >= 4.20 following options must be enabled: - CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM + and following kernel command-line must be passed: + `drm_kms_helper.drm_leak_fbdev_smem = 1` + since drm_kms_helper.drm_leak_fbdev_smem is set to 0 by default + `drm_kms_helper.drm_fbdev_overalloc >= 200` + since the driver requires at least double buffering and fails to + work with the default value(100). https://github.com/mripard/sunxi-mali/blob/master/README.md
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedQuoted 11 lines · On Fri, 15 Oct 2021 10:16:01 +0200 Giulio Benetti…
On Linux version >= 4.20 in order to have mali working we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 and at least drm_kms_helper.drm_fbdev_overalloc=200 to have a double buffer fbdev.
Signed-off-by Giulio Benetti <[email protected]>---
V1->V2:
* add double buffer too--- package/sunxi-mali-mainline-driver/Config.in | 6 ++++++ 1 file changed, 6 insertions(+)
Applied to master with some reformatting tweaks. Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
On Linux version >= 4.20 in order to have mali working we need to pass drm_kms_helper.drm_leak_fbdev_smem=1 and at least drm_kms_helper.drm_fbdev_overalloc=200 to have a double buffer fbdev.
Signed-off-by Giulio Benetti <[email protected]>
Committed to 2021.02.x and 2021.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot