Kernel update + VC4-enhancements
cover Kernel update + VC4-enhancements
Patches I am using for a while. If my images don't break for other issues I am able to run X11 and weston accelerated in one image. Had never a machine before able to do that.
Andreas Müller (6):
mesa: align for vc4
xorg align for vc4
vc4: why no framebuffer device?
linux-raspberrypi: update to 4.4.21
eglinfo-x11: align to VC4
rpi-base.inc: build vc4-fkms-v3d.dtbo
conf/machine/include/rpi-base.inc | 1 + recipes-graphics/eglinfo/eglinfo-x11_%.bbappend | 2 +- recipes-graphics/mesa/mesa_%.bbappend | 1 + .../xorg-xserver/xserver-xorg_%.bbappend | 9 +++++++ .../0002-vc4-ioctl-rendering-allow.patch | 29 ---------------------- recipes-kernel/linux/linux-raspberrypi_4.4.bb | 5 ++-- recipes-kernel/linux/linux-rpi.inc | 2 +- 7 files changed, 15 insertions(+), 34 deletions(-) create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend delete mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
Signature · 1 line
2.5.5
PATCH 1/6 mesa: align for vc4
--- recipes-graphics/mesa/mesa_%.bbappend | 1 + 1 file changed, 1 insertion(+)
recipes-graphics/mesa/mesa_%.bbappend +1 -0
@@ -1,2 +1,3 @@ PACKAGECONFIG_append_rpi = " gallium" GALLIUMDRIVERS_rpi = "vc4" +DRIDRIVERS_rpi = ""
Signature · 1 line
2.5.5
PATCH 2/6 xorg align for vc4
In reply to Andreas Müller--- recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend new file +9 -0
@@ -0,0 +1,9 @@ +OPENGL_PKGCFG = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'dri3 xshmfence glamor', '', d)}" + +# slightly modified to oe-core's default: add ${OPENGL_PKGCFG} +PACKAGECONFIG_rpi ?= " \ + dri2 udev ${XORG_CRYPTO} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri glx ${OPENGL_PKGCFG}', '', d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "xwayland", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)} \ +"
Signature · 1 line
2.5.5
PATCH 3/6 vc4: why no framebuffer device?
In reply to Andreas Müller--- recipes-kernel/linux/linux-rpi.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-rpi.inc +1 -1
@@ -116,7 +116,7 @@ do_configure_prepend() { if [ ${VC4GRAPHICS} = "1" ]; then kernel_configure_variable I2C_BCM2835 y kernel_configure_variable DRM y - kernel_configure_variable DRM_FBDEV_EMULATION n + kernel_configure_variable DRM_FBDEV_EMULATION y kernel_configure_variable DRM_VC4 y kernel_configure_variable FB_BCM2708 n fi
Signature · 1 line
2.5.5
PATCH 4/6 linux-raspberrypi: update to 4.4.21
In reply to Andreas MüllerThis version contains vc4_firmware_kms [1]
https://github.com/raspberrypi/linux/commit/598f79fb5a7ea1a6fbd37b9849e097dd0bea70fc
--- .../0002-vc4-ioctl-rendering-allow.patch | 29 ---------------------- recipes-kernel/linux/linux-raspberrypi_4.4.bb | 5 ++-- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch deleted +0 -29
@@ -1,29 +0,0 @@ -This patch has been accepted upstream in kernel 4.7-rc3 -But it has not yet been backported to 4.4... -Upstream-Status: Accepted [http://www.gossamer-threads.com/lists/linux/kernel/2459302] -Signed-off-by: Herve Jourdain <[email protected]> ---- - -diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c -index a5b68c1..14b5ec1 100644 ---- a/drivers/gpu/drm/vc4/vc4_drv.c -+++ b/drivers/gpu/drm/vc4/vc4_drv.c -@@ -75,12 +75,12 @@ static const struct file_operations vc4_drm_fops = { - }; - - static const struct drm_ioctl_desc vc4_drm_ioctls[] = { -- DRM_IOCTL_DEF_DRV(VC4_SUBMIT_CL, vc4_submit_cl_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_WAIT_SEQNO, vc4_wait_seqno_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_WAIT_BO, vc4_wait_bo_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_CREATE_BO, vc4_create_bo_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_MMAP_BO, vc4_mmap_bo_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_CREATE_SHADER_BO, vc4_create_shader_bo_ioctl, 0), -+ DRM_IOCTL_DEF_DRV(VC4_SUBMIT_CL, vc4_submit_cl_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_WAIT_SEQNO, vc4_wait_seqno_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_WAIT_BO, vc4_wait_bo_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_CREATE_BO, vc4_create_bo_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_MMAP_BO, vc4_mmap_bo_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_CREATE_SHADER_BO, vc4_create_shader_bo_ioctl, 0|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(VC4_GET_HANG_STATE, vc4_get_hang_state_ioctl, - DRM_ROOT_ONLY), - };
recipes-kernel/linux/linux-raspberrypi_4.4.bb +2 -3
@@ -1,10 +1,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.4.16" +LINUX_VERSION ?= "4.4.21" -SRCREV = "cff67c7e03f4333149f2a8f6eafd3bc44475114a" +SRCREV = "9669a50a3a8e4f33b4fe138277bc4407e1eab9b2" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \ file://0001-fix-dtbo-rules.patch \ - file://0002-vc4-ioctl-rendering-allow.patch \ " require linux-raspberrypi.inc
Signature · 1 line
2.5.5
PATCH 5/6 eglinfo-x11: align to VC4
In reply to Andreas Müller--- recipes-graphics/eglinfo/eglinfo-x11_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/eglinfo/eglinfo-x11_%.bbappend +1 -1
@@ -1,2 +1,2 @@ -EGLINFO_DEVICE_rpi = "raspberrypi" +EGLINFO_DEVICE_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', 'generic', 'raspberrypi', d)}" ASNEEDED = ""
Signature · 1 line
2.5.5
PATCH 6/6 rpi-base.inc: build vc4-fkms-v3d.dtbo
In reply to Andreas MüllerFor those who want to run closed source driver with mesa. See further details at [1]
[1] http://anholt.livejournal.com/47717.html
--- conf/machine/include/rpi-base.inc | 1 + 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
@@ -38,6 +38,7 @@ KERNEL_DEVICETREE ?= " \ overlays/w1-gpio-pullup.dtbo \ overlays/pi3-miniuart-bt.dtbo \ overlays/vc4-kms-v3d.dtbo \ + overlays/vc4-fkms-v3d.dtbo \ " KERNEL_IMAGETYPE ?= "Image"
Signature · 1 line
2.5.5
Re: [meta-raspberrypi][PATCH 6/6] rpi-base.inc: build vc4-fkms-v3d.dtbo
Quoted 15 lines · Andreas Müller
For those who want to run closed source driver with mesa. See further details at [1]
[1] http://anholt.livejournal.com/47717.html
Signed-off-by Andreas Müller <[email protected]>--- conf/machine/include/rpi-base.inc | 1 + 1 file changed, 1 insertion(+)conf/machine/include/rpi-base.inc +0
-0
conf/machine/include/rpi-base.inc KERNEL_DEVICETREE ?= " \ · line 41
Quoted 4 lines
conf/machine/include/rpi-base.inc +1
-0@@ -38,6 +38,7 @@ KERNEL_DEVICETREE ?= " \ overlays/w1-gpio-pullup.dtbo \ overlays/pi3-miniuart-bt.dtbo \ overlays/vc4-kms-v3d.dtbo \ + overlays/vc4-fkms-v3d.dtbo
There is a problem with this change. It seems like this dtb overlay is not availble in kernel version above 4.4. Don't know exactly why.
Quoted 11 lines
conf/machine/include/rpi-base.inc +0
-1" KERNEL_IMAGETYPE ?= "Image" --2.5.5
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
--
Andrei Gherzan
Re: [meta-raspberrypi][PATCH 4/6] linux-raspberrypi: update to 4.4.21
In reply to Andreas MüllerQuoted 51 lines · Andreas Müller
This version contains
vc4_firmware_kms[1]https://github.com/raspberrypi/linux/commit/598f79fb5a7ea1a6fbd37b9849e097dd0bea70fc
Signed-off-by Andreas Müller <[email protected]>--- .../0002-vc4-ioctl-rendering-allow.patch | 29 ---------------------- recipes-kernel/linux/linux-raspberrypi_4.4.bb | 5 ++-- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patchrecipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch deleted +0
-29@@ -1,29 +0,0 @@ -This patch has been accepted upstream in kernel 4.7-rc3 -But it has not yet been backported to 4.4... -Upstream-Status: Accepted [http://www.gossamer-threads.com/lists/linux/kernel/2459302] -Signed-off-by: Herve Jourdain <[email protected]> ---- - -diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c -index a5b68c1..14b5ec1 100644 ---- a/drivers/gpu/drm/vc4/vc4_drv.c -+++ b/drivers/gpu/drm/vc4/vc4_drv.c -@@ -75,12 +75,12 @@ static const struct file_operations vc4_drm_fops = { - }; - - static const struct drm_ioctl_desc vc4_drm_ioctls[] = { -- DRM_IOCTL_DEF_DRV(VC4_SUBMIT_CL, vc4_submit_cl_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_WAIT_SEQNO, vc4_wait_seqno_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_WAIT_BO, vc4_wait_bo_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_CREATE_BO, vc4_create_bo_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_MMAP_BO, vc4_mmap_bo_ioctl, 0), -- DRM_IOCTL_DEF_DRV(VC4_CREATE_SHADER_BO, vc4_create_shader_bo_ioctl, 0), -+ DRM_IOCTL_DEF_DRV(VC4_SUBMIT_CL, vc4_submit_cl_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_WAIT_SEQNO, vc4_wait_seqno_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_WAIT_BO, vc4_wait_bo_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_CREATE_BO, vc4_create_bo_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_MMAP_BO, vc4_mmap_bo_ioctl, 0|DRM_RENDER_ALLOW), -+ DRM_IOCTL_DEF_DRV(VC4_CREATE_SHADER_BO, vc4_create_shader_bo_ioctl, 0|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(VC4_GET_HANG_STATE, vc4_get_hang_state_ioctl, - DRM_ROOT_ONLY), - };recipes-kernel/linux/linux-raspberrypi_4.4.bb +0
-0
recipes-kernel/linux/linux-raspberrypi_4.4.bb line 3
Quoted 4 lines
recipes-kernel/linux/linux-raspberrypi_4.4.bb +1
-1@@ -1,10 +1,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.4.16" +LINUX_VERSION ?= "4.4.21"
Current master already has 4.4.23.
Quoted 11 lines
recipes-kernel/linux/linux-raspberrypi_4.4.bb +1
-3-SRCREV = "cff67c7e03f4333149f2a8f6eafd3bc44475114a" +SRCREV = "9669a50a3a8e4f33b4fe138277bc4407e1eab9b2" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \ file://0001-fix-dtbo-rules.patch \ - file://0002-vc4-ioctl-rendering-allow.patch \ " require linux-raspberrypi.inc --2.5.5
Quoted 5 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
--
Andrei Gherzan
Quoted 23 lines · Andreas Müller
Patches I am using for a while. If my images don't break for other issues I am able to run X11 and weston accelerated in one image. Had never a machine before able to do that.
Andreas Müller (6):
mesa: align for vc4
xorg align for vc4
vc4: why no framebuffer device?
linux-raspberrypi: update to 4.4.21
eglinfo-x11: align to VC4
rpi-base.inc: build vc4-fkms-v3d.dtboconf/machine/include/rpi-base.inc | 1 + recipes-graphics/eglinfo/eglinfo-x11_%.bbappend | 2 +- recipes-graphics/mesa/mesa_%.bbappend | 1 + .../xorg-xserver/xserver-xorg_%.bbappend | 9 +++++++ .../0002-vc4-ioctl-rendering-allow.patch | 29 ---------------------- recipes-kernel/linux/linux-raspberrypi_4.4.bb | 5 ++-- recipes-kernel/linux/linux-rpi.inc | 2 +- 7 files changed, 15 insertions(+), 34 deletions(-) create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend delete mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
Quoted 8 lines
--
2.5.5--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Patch 1,2,3 and 5 from this series were merge to master. Thank you.
--
Andrei Gherzan
Re: [meta-raspberrypi][PATCH 6/6] rpi-base.inc: build vc4-fkms-v3d.dtbo
In reply to Andrei GherzanQuoted 14 lines · Andrei Gherzan
Quoted 10 lines · Andreas Müller
For those who want to run closed source driver with mesa. See further details at [1]
[1] http://anholt.livejournal.com/47717.html
Signed-off-by Andreas Müller <[email protected]>---
conf/machine/include/rpi-base.inc | 1 +1 file changed, 1 insertion(+)
Quoted 13 lines
conf/machine/include/rpi-base.inc KERNEL_DEVICETREE ?= " \ · line 41
Quoted 9 lines
conf/machine/include/rpi-base.inc +1
-0@@ -38,6 +38,7 @@ KERNEL_DEVICETREE ?= " \ overlays/w1-gpio-pullup.dtbo \ overlays/pi3-miniuart-bt.dtbo \ overlays/vc4-kms-v3d.dtbo \ + overlays/vc4-fkms-v3d.dtboThere is a problem with this change. It seems like this dtb overlay is not availble in kernel version above 4.4. Don't know exactly why.
Interesting, did you apply latest firmware patch ?
Quoted 19 lines
Quoted 11 lines
conf/machine/include/rpi-base.inc +0
-0"
KERNEL_IMAGETYPE?= "Image"--
2.5.5--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
Andrei Gherzan
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [meta-raspberrypi][PATCH 6/6] rpi-base.inc: build vc4-fkms-v3d.dtbo
Quoted 28 lines · Khem Raj
Quoted 14 lines · Andrei Gherzan
Quoted 10 lines · Andreas Müller
For those who want to run closed source driver with mesa. See further details at [1]
[1] http://anholt.livejournal.com/47717.html
Signed-off-by Andreas Müller <[email protected]>---
conf/machine/include/rpi-base.inc | 1 +1 file changed, 1 insertion(+)Quoted 13 lines
conf/machine/include/rpi-base.inc KERNEL_DEVICETREE ?= " \ · line 41
Quoted 9 lines
conf/machine/include/rpi-base.inc +1
-0@@ -38,6 +38,7 @@ KERNEL_DEVICETREE ?= " \ overlays/w1-gpio-pullup.dtbo \ overlays/pi3-miniuart-bt.dtbo \ overlays/vc4-kms-v3d.dtbo \ + overlays/vc4-fkms-v3d.dtboThere is a problem with this change. It seems like this dtb overlay is not availble in kernel version above 4.4. Don't know exactly why.
Quoted 1 line
Interesting, did you apply latest firmware patch ?
You mean kernel update patch, right? No I haven't but the sources seem to not deploy this dtbo:
https://github.com/raspberrypi/linux/tree/rpi-4.8.y/arch/arm/boot/dts/overlays
Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
conf/machine/include/rpi-base.inc +0
-0"
KERNEL_IMAGETYPE?= "Image"--
2.5.5--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 8 lines
Quoted 7 lines
--
Andrei Gherzan
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
--
Andrei Gherzan
Re: [meta-raspberrypi][PATCH 6/6] rpi-base.inc: build vc4-fkms-v3d.dtbo
Quoted 32 lines · Andrei Gherzan
Quoted 28 lines · Khem Raj
Quoted 27 lines · Andrei Gherzan
Quoted 15 lines · Andreas Müller
For those who want to run closed source driver with mesa. See further details at [1]
[1] http://anholt.livejournal.com/47717.html
Signed-off-by Andreas Müller <[email protected]>---
conf/machine/include/rpi-base.inc | 1 +1 file changed, 1 insertion(+)conf/machine/include/rpi-base.inc +0
-0conf/machine/include/rpi-base.inc KERNEL_DEVICETREE ?= " \ · line 41
Quoted 4 lines
conf/machine/include/rpi-base.inc +1
-0@@ -38,6 +38,7 @@ KERNEL_DEVICETREE ?= " \ overlays/w1-gpio-pullup.dtbo \ overlays/pi3-miniuart-bt.dtbo \ overlays/vc4-kms-v3d.dtbo \ + overlays/vc4-fkms-v3d.dtboThere is a problem with this change. It seems like this dtb overlay is not availble in kernel version above 4.4. Don't know exactly why.
Quoted 5 lines
Quoted 1 line
Interesting, did you apply latest firmware patch ?
You mean kernel update patch, right? No I haven't but the sources seem to not deploy this dtbo:
https://github.com/raspberrypi/linux/tree/rpi-4.8.y/arch/arm/boot/dts/overlays
I see. I think it could be an oversight in 4.8
Quoted 27 lines
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
conf/machine/include/rpi-base.inc +0
-0"
KERNEL_IMAGETYPE?= "Image"--
2.5.5--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoQuoted 8 lines
Quoted 7 lines
--
Andrei Gherzan
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
Andrei Gherzan
Re: [meta-raspberrypi][PATCH 6/6] rpi-base.inc: build vc4-fkms-v3d.dtbo
Quoted 32 lines · Khem Raj
Quoted 32 lines · Andrei Gherzan
Quoted 28 lines · Khem Raj
Quoted 27 lines · Andrei Gherzan
Quoted 15 lines · Andreas Müller
For those who want to run closed source driver with mesa. See further details at [1]
[1] http://anholt.livejournal.com/47717.html
Signed-off-by Andreas Müller <[email protected]>---
conf/machine/include/rpi-base.inc | 1 +1 file changed, 1 insertion(+)conf/machine/include/rpi-base.inc +0
-0conf/machine/include/rpi-base.inc KERNEL_DEVICETREE ?= " \ · line 41
Quoted 4 lines
conf/machine/include/rpi-base.inc +1
-0@@ -38,6 +38,7 @@ KERNEL_DEVICETREE ?= " \ overlays/w1-gpio-pullup.dtbo \ overlays/pi3-miniuart-bt.dtbo \ overlays/vc4-kms-v3d.dtbo \ + overlays/vc4-fkms-v3d.dtboThere is a problem with this change. It seems like this dtb overlay is not availble in kernel version above 4.4. Don't know exactly why.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Interesting, did you apply latest firmware patch ?
You mean kernel update patch, right? No I haven't but the sources seem to not deploy this dtbo:
https://github.com/raspberrypi/linux/tree/rpi-4.8.y/arch/arm/boot/dts/overlaysI see. I think it could be an oversight in 4.8
Looks like indeed.
--
Andrei Gherzan