Add support for 4.1 kernel with vc4 DRM/KMS driver
v2 cover Add support for 4.1 kernel with vc4 DRM/KMS driver
Hello Andrei,
This series adds support for Eric Anholt's v4.1 kernel, that has support for the vc4 DRM/KMS driver. Which is the new open source graphics driver stack for the Raspberry Pi to be used instead of the userland driver.
This is a second version of the series which addresses feedback provided by Andreas Müller, Khem Raj, Petter Mabäcker and you. The first version of the series can be found at [0]. Some of the v1 patches have already been picked and are now in the meta-raspberrypi master branch.
The v4.1 kernel is under heavy development so is a work-in-progress and should not be used in production. That's why it's not set as the default virtual/kernel provider but the user can change the default providers in case wants to use the VC4 driver.
But even when it's still a development kernel, having the recipe in the meta-raspberrypi will allow people to test it. We have been using it in the Tizen RPi2 port [1] for some time. The patches in the series are for:
Patch 1/4 allows to set the mask_gpu_interrupt0 option in config.txt
Patch 2/4 adds a recipe for the 4.1 and some patches to make it stable
Patch 3/4 Documents how to switch the default providers for vc4 gfx stack
Patch 4/4 Adds a section to the README that explains that two gfx stacks are available and that the user can change the default providers.
As discussed in v1, the following has to be added in local.conf to build:
KERNEL_DEVICETREE = " \
bcm2708-rpi-b.dtb \
bcm2708-rpi-b-plus.dtb \
bcm2709-rpi-2-b.dtb \
\
overlays/hifiberry-amp-overlay.dtb \
overlays/hifiberry-dac-overlay.dtb \
overlays/hifiberry-dacplus-overlay.dtb \
overlays/hifiberry-digi-overlay.dtb \
overlays/iqaudio-dac-overlay.dtb \
overlays/iqaudio-dacplus-overlay.dtb \
overlays/lirc-rpi-overlay.dtb \
overlays/pps-gpio-overlay.dtb \
overlays/w1-gpio-overlay.dtb \
overlays/w1-gpio-pullup-overlay.dtb \
"[0]: https://www.mail-archive.com/[email protected]/msg25164.html
[1]: http://blogs.s-osg.org/tizen-rpi2-now-supporting-3d-acceleration/
Best regards,
Javier
Changes in v2:
- Fix commit message about mask GPU irq option. Suggested by Andrei Gherzan.
- Add a linux-raspberrypi-vc4 recipe insted of a linux-raspberrypi one. Suggested by Petter Mabäcker, Andreas Müller and Andrei Gherzan.
- Split the readme change in a separate patch. Suggested by Andrei Gherzan.
- Don't make the vc4 patches inclusion conditional since will always be needed when choosing the recipe. Suggested by Andrei Gherzan.
- Don't add a feature and allow users to change the default provider manually aided by a comment. Suggested by Andreas Müller and Andrei Gherzan.
Derek Foreman (3):
rpi-config: Allow to mask GPU irqs
linux-raspberrypi: Add a 4.1 linux kernel with vc4 support
rpi-default-providers: Document how to switch providers for vc4 gfx
stack
Javier Martinez Canillas (1):
README: Add a section about graphic stacks
README | 31 ++++-- conf/machine/include/rpi-default-providers.inc | 10 ++ recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++ ..._defconfig-Enable-config-options-for-vc4-.patch | 48 +++++++++ ...-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch | 85 +++++++++++++++ .../0003-drm-vc4-Use-the-fbdev_cma-helpers.patch | 115 +++++++++++++++++++++ .../0004-drm-vc4-Allow-vblank-to-be-disabled.patch | 26 +++++ .../0005-drm-vc4-Disable-KMS-operations.patch | 95 +++++++++++++++++ .../linux/linux-raspberrypi-vc4/defconfig | 1 + recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb | 12 +++ 10 files changed, 421 insertions(+), 8 deletions(-) create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0001-ARM-bcm2709_defconfig-Enable-config-options-for-vc4-.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0002-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0003-drm-vc4-Use-the-fbdev_cma-helpers.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0004-drm-vc4-Allow-vblank-to-be-disabled.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0005-drm-vc4-Disable-KMS-operations.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/defconfig create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb
Signature · 1 line
2.4.3
PATCH v2 1/4 rpi-config: Allow to mask GPU irqs
From: Derek Foreman <[email protected]>
The rpi firmware has support for a mask_gpu_interrupt option that can be defined in the boot/config.txt file. The option makes the VPU not handle certain interrupts such as V3D. This option is needed by the VC4 DRM/KMS driver but it is not possible to set it from the meta-raspberrypi layer.
---
Changes in v2:
- Fix commit message about mask GPU irq option. Suggested by Andrei Gherzan.
README | 22 ++++++++++++++-------- recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++ 2 files changed, 20 insertions(+), 8 deletions(-)
README +14 -8
@@ -20,10 +20,11 @@ Contents: 2.F. Optional - Video camera support with V4L2 drivers 2.G. Optional - Enable offline compositing support 2.H. Optional - Enable kgdb over console support - 2.I. Images - 2.J. Boot to U-Boot - 2.K. Image with Initramfs - 2.L. Device tree support + 2.I. Optional - Mask GPU interrupts + 2.J. Images + 2.K. Boot to U-Boot + 2.L. Image with Initramfs + 2.M. Device tree support 3. Extra apps 3.A. omxplayer 4. Source code and mirrors
@@ -145,7 +146,12 @@ To add the kdbg over console (kgdboc) parameter to the kernel command line, set this variable in local.conf: ENABLE_KGDB = "1" -2.I. Images +2.I. Optional - Mask GPU interrupts +=================================== +To mask the GPU interrupts, set in your local.conf +MASK_GPU_INTERRUPT = "0x400" + +2.J. Images =========== * rpi-hwup-image Hardware up image
@@ -155,7 +161,7 @@ ENABLE_KGDB = "1" Image based on rpi-basic-image which includes most of the packages in this layer and some media samples. -2.J. Boot to U-Boot +2.K. Boot to U-Boot =================== To have u-boot load kernel image, set in your local.conf KERNEL_IMAGETYPE = "uImage"
@@ -163,7 +169,7 @@ KERNEL_IMAGETYPE = "uImage" This will make kernel.img be u-boot image which will load uImage. By default, kernel.img is the actual kernel image (ex. Image). -2.K. Image with Initramfs +2.L. Image with Initramfs ========================= To build an initramfs image : * Set this 3 kernel variables (in linux-raspberrypi.inc for example)
@@ -176,7 +182,7 @@ To build an initramfs image : * Set the meta-rasberrypi variable (in raspberrypi.conf for example) - KERNEL_INITRAMFS = "-initramfs" -2.L. Device tree support +2.M. Device tree support ========================= Device tree for RPi is only supported when using linux-raspberrypi 3.18+ kernels.
recipes-bsp/bootfiles/rpi-config_git.bb +6 -0
@@ -66,6 +66,12 @@ do_deploy() { echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt fi + + # Mask GPU interrupts + if [ -n "${MASK_GPU_INTERRUPT}" ]; then + echo "# Mask GPU interrupts" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "mask_gpu_interrupt0=${MASK_GPU_INTERRUPT}" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi } addtask deploy before do_package after do_install
Signature · 1 line
2.4.3
PATCH v2 2/4 linux-raspberrypi: Add a 4.1 linux kernel with vc4 support
In reply to Javier Martinez CanillasFrom: Derek Foreman <[email protected]>
This adds Eric Anholt's WIP kernel with dri/kms/3d support for the GPU on the rpi2. Adding a recipe that tracks this kernel, will make it easier to test this setup.
This recipe should only used for testing purposes for now, so it will not be set as the default but can be chosen by changing the default providers.
---
Changes in v2:
- Add a linux-raspberrypi-vc4 recipe insted of a linux-raspberrypi one. Suggested by Petter Mabäcker, Andreas Müller and Andrei Gherzan.
- Split the readme change in a separate patch. Suggested by Andrei Gherzan.
- Don't make the vc4 patches inclusion conditional since will always be needed when choosing the recipe. Suggested by Andrei Gherzan.
..._defconfig-Enable-config-options-for-vc4-.patch | 48 +++++++++ ...-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch | 85 +++++++++++++++ .../0003-drm-vc4-Use-the-fbdev_cma-helpers.patch | 115 +++++++++++++++++++++ .../0004-drm-vc4-Allow-vblank-to-be-disabled.patch | 26 +++++ .../0005-drm-vc4-Disable-KMS-operations.patch | 95 +++++++++++++++++ .../linux/linux-raspberrypi-vc4/defconfig | 1 + recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb | 12 +++ 7 files changed, 382 insertions(+) create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0001-ARM-bcm2709_defconfig-Enable-config-options-for-vc4-.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0002-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0003-drm-vc4-Use-the-fbdev_cma-helpers.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0004-drm-vc4-Allow-vblank-to-be-disabled.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0005-drm-vc4-Disable-KMS-operations.patch create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/defconfig create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb
recipes-kernel/linux/linux-raspberrypi-vc4/0001-ARM-bcm2709_defconfig-Enable-config-options-for-vc4-.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 5908700d3cb88114002aa66f920e91961ebe91e4 Mon Sep 17 00:00:00 2001 +From: Derek Foreman <[email protected]> +Date: Fri, 24 Jul 2015 01:58:31 +0200 +Subject: [PATCH 1/5] ARM: bcm2709_defconfig: Enable config options for vc4 + support + +Add the needed Kconfig symbols to build Eric Anholt's WIP kernel +4.1 Linux kernel with vc4 dri/kms/3d support. Also increase CMA +size from 5 MiB to 256 MiB as that is needed by the driver. + +Signed-off-by: Derek Foreman <[email protected]> +--- + arch/arm/configs/bcm2709_defconfig | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index a3067bfb610f..7891bb17df57 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -39,6 +39,7 @@ CONFIG_MAC_PARTITION=y + CONFIG_CFQ_GROUP_IOSCHED=y + CONFIG_ARCH_BCM2709=y + CONFIG_BCM2709_DT=y ++# CONFIG_VDSO is not set + # CONFIG_CACHE_L2X0 is not set + CONFIG_SMP=y + CONFIG_HAVE_ARM_ARCH_TIMER=y +@@ -388,7 +389,7 @@ CONFIG_NFC_PN533=m + CONFIG_DEVTMPFS=y + CONFIG_DEVTMPFS_MOUNT=y + CONFIG_DMA_CMA=y +-CONFIG_CMA_SIZE_MBYTES=5 ++CONFIG_CMA_SIZE_MBYTES=256 + CONFIG_BLK_DEV_LOOP=y + CONFIG_BLK_DEV_CRYPTOLOOP=m + CONFIG_BLK_DEV_DRBD=m +@@ -771,6 +772,8 @@ CONFIG_VIDEO_TW9906=m + CONFIG_VIDEO_OV7640=m + CONFIG_VIDEO_MT9V011=m + CONFIG_FB=y ++CONFIG_DRM=y ++CONFIG_DRM_VC4=y + CONFIG_FB_BCM2708=y + CONFIG_FB_SSD1307=m + # CONFIG_BACKLIGHT_GENERIC is not set +-- +2.4.3 +
recipes-kernel/linux/linux-raspberrypi-vc4/0002-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch new file +85 -0
85 lines not on this page · raw message
recipes-kernel/linux/linux-raspberrypi-vc4/0003-drm-vc4-Use-the-fbdev_cma-helpers.patch new file +115 -0
115 lines not on this page · raw message
recipes-kernel/linux/linux-raspberrypi-vc4/0004-drm-vc4-Allow-vblank-to-be-disabled.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 4388ed0f2d66399a6ad3133b91bd438cdb25e37b Mon Sep 17 00:00:00 2001 +From: Derek Foreman <[email protected]> +Date: Thu, 2 Jul 2015 11:20:21 -0500 +Subject: [PATCH 4/5] drm/vc4: Allow vblank to be disabled + +Signed-off-by: Derek Foreman <[email protected]> +--- + drivers/gpu/drm/vc4/vc4_kms.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c +index cb18d8f0e387..1473df9ef4a1 100644 +--- a/drivers/gpu/drm/vc4/vc4_kms.c ++++ b/drivers/gpu/drm/vc4/vc4_kms.c +@@ -218,6 +218,8 @@ vc4_kms_load(struct drm_device *dev) + dev->mode_config.funcs = &vc4_mode_funcs; + dev->mode_config.preferred_depth = 24; + ++ dev->vblank_disable_allowed = true; ++ + ret = vc4_init_modeset_objects(dev); + if (ret) + goto fail; +-- +2.4.3 +
recipes-kernel/linux/linux-raspberrypi-vc4/0005-drm-vc4-Disable-KMS-operations.patch new file +95 -0
95 lines not on this page · raw message
recipes-kernel/linux/linux-raspberrypi-vc4/defconfig new file +1 -0
@@ -0,0 +1 @@ +# Dummy file to get through do_kernel_configme.
recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb new file +12 -0
@@ -0,0 +1,12 @@ +LINUX_VERSION ?= "4.1.0" + +SRCREV = "07009cab090ade3dd180e8a55d590b1a00072eed" +SRC_URI = "git://github.com/anholt/linux.git;protocol=git;branch=vc4-kms-v3d-rpi2 \ + file://0001-ARM-bcm2709_defconfig-Enable-config-options-for-vc4-.patch \ + file://0002-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch \ + file://0003-drm-vc4-Use-the-fbdev_cma-helpers.patch \ + file://0004-drm-vc4-Allow-vblank-to-be-disabled.patch \ + file://0005-drm-vc4-Disable-KMS-operations.patch \ + " + +require linux-raspberrypi.inc
Signature · 1 line
2.4.3
PATCH v2 3/4 rpi-default-providers: Document how to switch providers for vc4 gfx stack
In reply to Javier Martinez CanillasFrom: Derek Foreman <[email protected]>
The Raspberry Pi boards can use one of two graphics stacks: The "userland" user-space driver or the VC4 drm/kms kernel driver. This patch documents how the user user can choose if the VC4 driver has to be used instead and set the right preferred providers for that case.
---
Changes in v2:
- Don't add a feature and allow users to change the default provider manually aided by a comment. Suggested by Andreas Müller and Andrei Gherzan.
conf/machine/include/rpi-default-providers.inc | 10 ++++++++++ 1 file changed, 10 insertions(+)
conf/machine/include/rpi-default-providers.inc +10 -0
@@ -8,3 +8,13 @@ PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" PREFERRED_PROVIDER_jpeg = "jpeg" + +# To use a kernel with the VC4 DRM/KMS driver instead, comment the +# virtual kernel, egl, libgles2, libgl and mesa preferred provider +# above and uncomment the following lines. +# +# PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi-vc4" +# PREFERRED_PROVIDER_virtual/egl ?= "mesa" +# PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" +# PREFERRED_PROVIDER_virtual/libgl ?= "mesa" +# PREFERRED_PROVIDER_virtual/mesa ?= "mesa"
Signature · 1 line
2.4.3
PATCH v2 4/4 README: Add a section about graphic stacks
In reply to Javier Martinez CanillasThis patch adds to the README a section that explains the RPi can different graphics stacks and that the user can choose by manually changing providers.
---
Changes in v2: None
README | 9 +++++++++ 1 file changed, 9 insertions(+)
README +9 -0
@@ -25,6 +25,7 @@ Contents: 2.K. Boot to U-Boot 2.L. Image with Initramfs 2.M. Device tree support + 2.O. Graphic stacks 3. Extra apps 3.A. omxplayer 4. Source code and mirrors
@@ -195,6 +196,14 @@ kernels. NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for older kernel versions. +2.O. Graphic stacks +=================== +The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesa providers. +This is explained in the conf/machine/include/rpi-default-providers.inc file. + 3. Extra apps =============
Signature · 1 line
2.4.3
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Quoted 33 lines · Javier Martinez Canillas
This patch adds to the README a section that explains the RPi can different graphics stacks and that the user can choose by manually changing providers.
Signed-off-by Javier Martinez Canillas <[email protected]>---
Changes in v2: None
README | 9 +++++++++
1 file changed, 9 insertions(+)README +1
-0@@ -25,6 +25,7 @@ Contents: 2.K. Boot to U-Boot 2.L. Image with Initramfs 2.M. Device tree support + 2.O. Graphic stacks3. Extra apps
3.A. omxplayer
4. Source code and mirrorsREADME +0
-0@@ -195,6 +196,14 @@ kernels.NOTE:
KERNEL_DEVICETREEis default enabled for kernel >= 3.18 and always disabled for
older kernel versions.+2.O. Graphic stacks
+===================
README kernels. · line 206
Quoted 6 lines
README +6
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesa providers. +This is explained in the conf/machine/include/rpi-default-providers.inc file. +
you may want to add pointer to the commented out code that you have added to select them in rpi-default-providers.inc
Quoted 6 lines
3. Extra apps
=============--
2.4.3
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Hello,
Quoted 43 lines · Khem Raj
Quoted 2 lines
On Aug 13, 2015, at 10:07 AM, Javier Martinez Canillas <
Quoted 2 lines · [email protected] <javascript:;>> wrote:
This patch adds to the README a section that explains the RPi can
different
Quoted 1 line
graphics stacks and that the user can choose by manually changing
providers.
Quoted 2 lines
Signed-off-by Javier Martinez Canillas <[email protected]<javascript:;>>
Quoted 21 lines
---
Changes in v2: None
README | 9 +++++++++
1 file changed, 9 insertions(+)README +1
-0@@ -25,6 +25,7 @@ Contents: 2.K. Boot to U-Boot 2.L. Image with Initramfs 2.M. Device tree support + 2.O. Graphic stacks3. Extra apps
3.A. omxplayer
4. Source code and mirrorsREADME +0
-0@@ -195,6 +196,14 @@ kernels.Quoted 1 line
NOTE:
KERNEL_DEVICETREEis default enabled for kernel >= 3.18 and alwaysdisabled for
README kernels.
Quoted 8 lines
older kernel versions.
+2.O. Graphic stacks
+===================README +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 8 lines
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.inc
It would be nice to have some detailed info on what and where to comment out the configuration.
--
Andrei Gherzan
Signature · 2 lines
-- Andrei Gherzan
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Hello Andrei and Khem,
Thanks a lot for your feedback.
Quoted 51 lines · Andrei Gherzan
Hello,
Quoted 47 lines · Khem Raj
Quoted 2 lines
On Aug 13, 2015, at 10:07 AM, Javier Martinez Canillas <
Quoted 2 lines · [email protected] <javascript:;>> wrote:
This patch adds to the README a section that explains the RPi can
different
Quoted 1 line
graphics stacks and that the user can choose by manually changing
providers.
Quoted 2 lines
Signed-off-by Javier Martinez Canillas <[email protected]<javascript:;>>
Quoted 21 lines
---
Changes in v2: None
README | 9 +++++++++
1 file changed, 9 insertions(+)README +1
-0@@ -25,6 +25,7 @@ Contents: 2.K. Boot to U-Boot 2.L. Image with Initramfs 2.M. Device tree support + 2.O. Graphic stacks3. Extra apps
3.A. omxplayer
4. Source code and mirrorsREADME +0
-0@@ -195,6 +196,14 @@ kernels.Quoted 1 line
NOTE:
KERNEL_DEVICETREEis default enabled for kernel >= 3.18 and alwaysdisabled for
README kernels.
Quoted 8 lines
older kernel versions.
+2.O. Graphic stacks
+===================README +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Quoted 4 lines
--
Andrei Gherzan
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 21 lines
Quoted 12 lines
Quoted 12 lines
README kernels.
Quoted 7 lines
+2.O. Graphic stacks
+===================README +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
Quoted 8 lines
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Gentle ping about this. Thanks!
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Hello Javier,
Quoted 38 lines · Javier Martinez Canillas
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 29 lines
Quoted 12 lines
Quoted 12 lines
README kernels.
Quoted 7 lines
+2.O. Graphic stacks
+===================README +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Really sorry on this late reply. So my only recommendation is to move things you wrote in 3/4 in the 4/4 (README). Basically you would describe what a user needs to overwrite as providers in order to use VC4 as graphics stack.
As well, how do you handle the devicetrees for 4.1? Aren't changed in 4+?
Quoted 7 lines
Gentle ping about this. Thanks!
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
--
Andrei Gherzan
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Hello Andrei,
Quoted 37 lines · Andrei Gherzan
Hello Javier,
Quoted 34 lines · Javier Martinez Canillas
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 26 lines
Quoted 12 lines
Quoted 12 lines
README kernels.
Quoted 7 lines
+2.O. Graphic stacks
+===================README +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Really sorry on this late reply. So my only recommendation is to move things
No worries, I've also been very busy with other stuff.
Quoted 3 lines
you wrote in 3/4 in the 4/4 (README). Basically you would describe what a user needs to overwrite as providers in order to use VC4 as graphics stack.
Ok, I'm traveling to Korea next week for KLF and KS so I'll probably resend a v3 (addressing your suggestions) later next week when I'm back.
Quoted 2 lines
As well, how do you handle the devicetrees for 4.1? Aren't changed in 4+?
For now, I'm defining a KERNEL_DEVICETREE in my conf/local.conf file since that is what was agreed with Petter Mabäcker on v1 of this series [0 and I also mentioned in the cover letter [1].
But the new device tree overlay dir layout is not only for 4+ but also it is used in the latest version of the older branches. So once all recipes' SRCREV are bumped, overwriting the variable won't be necessary anymore.
Quoted 11 lines
Quoted 7 lines
Gentle ping about this. Thanks!
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America--
Andrei Gherzan
[0]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/025961.html
[1]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/026151.html
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Quoted 79 lines · Javier Martinez Canillas
Hello Andrei,
Quoted 37 lines · Andrei Gherzan
Hello Javier,
Quoted 34 lines · Javier Martinez Canillas
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 26 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 7 lines
+2.O. Graphic stacks
+===================(quoted diff) +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Really sorry on this late reply. So my only recommendation is to move things
No worries, I've also been very busy with other stuff.
Quoted 3 lines
you wrote in 3/4 in the 4/4 (README). Basically you would describe what a user needs to overwrite as providers in order to use VC4 as graphics stack.
Ok, I'm traveling to Korea next week for KLF and KS so I'll probably resend a v3 (addressing your suggestions) later next week when I'm back.
Quoted 2 lines
As well, how do you handle the devicetrees for 4.1? Aren't changed in 4+?
For now, I'm defining a
KERNEL_DEVICETREEin myconf/local.conffile since that is what was agreed with Petter Mabäcker on v1 of this series [0 and I also mentioned in the cover letter [1].But the new device tree overlay dir layout is not only for 4+ but also it is used in the latest version of the older branches. So once all recipes' SRCREV are bumped, overwriting the variable won't be necessary anymore.
Quoted 11 lines
Quoted 7 lines
Gentle ping about this. Thanks!
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America--
Andrei Gherzan
Quoted 8 lines
[0]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/025961.html
[1]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/026151.htmlBest regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
When reworking: If I am not mistaken there is a chance that modesetting will work when using latest kernel versions from Eric Anholt. So would you mind to rebase the patches to these changes? I would again play tester role.
Andreas
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Hello Andreas,
Quoted 89 lines · Andreas Müller
Quoted 79 lines · Javier Martinez Canillas
Hello Andrei,
Quoted 37 lines · Andrei Gherzan
Hello Javier,
Quoted 34 lines · Javier Martinez Canillas
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 26 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 7 lines
+2.O. Graphic stacks
+===================(quoted diff) +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Really sorry on this late reply. So my only recommendation is to move things
No worries, I've also been very busy with other stuff.
Quoted 3 lines
you wrote in 3/4 in the 4/4 (README). Basically you would describe what a user needs to overwrite as providers in order to use VC4 as graphics stack.
Ok, I'm traveling to Korea next week for KLF and KS so I'll probably resend a v3 (addressing your suggestions) later next week when I'm back.
Quoted 2 lines
As well, how do you handle the devicetrees for 4.1? Aren't changed in 4+?
For now, I'm defining a
KERNEL_DEVICETREEin myconf/local.conffile since that is what was agreed with Petter Mabäcker on v1 of this series [0 and I also mentioned in the cover letter [1].But the new device tree overlay dir layout is not only for 4+ but also it is used in the latest version of the older branches. So once all recipes' SRCREV are bumped, overwriting the variable won't be necessary anymore.
Quoted 11 lines
Quoted 7 lines
Gentle ping about this. Thanks!
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America--
Andrei GherzanQuoted 8 lines
[0]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/025961.html
[1]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/026151.htmlBest regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
Quoted 5 lines
When reworking: If I am not mistaken there is a chance that modesetting will work when using latest kernel versions from Eric Anholt. So would you mind to rebase the patches to these changes? I would again play tester role.
Yes, I will. I know Derek was also playing with Eric's latest branch so I'll coordinate with him and bump the sha-1 id if necessary.
Quoted 2 lines
Andreas
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Quoted 92 lines · Javier Martinez Canillas
Hello Andreas,
Quoted 89 lines · Andreas Müller
Quoted 87 lines · Javier Martinez Canillas
Hello Andrei,
Quoted 37 lines · Andrei Gherzan
Hello Javier,
Quoted 34 lines · Javier Martinez Canillas
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 26 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 7 lines
+2.O. Graphic stacks
+===================(quoted diff) +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Really sorry on this late reply. So my only recommendation is to move things
No worries, I've also been very busy with other stuff.
Quoted 3 lines
you wrote in 3/4 in the 4/4 (README). Basically you would describe what a user needs to overwrite as providers in order to use VC4 as graphics stack.
Ok, I'm traveling to Korea next week for KLF and KS so I'll probably resend a v3 (addressing your suggestions) later next week when I'm back.
Quoted 2 lines
As well, how do you handle the devicetrees for 4.1? Aren't changed in 4+?
For now, I'm defining a
KERNEL_DEVICETREEin myconf/local.conffile since that is what was agreed with Petter Mabäcker on v1 of this series [0 and I also mentioned in the cover letter [1].But the new device tree overlay dir layout is not only for 4+ but also it is used in the latest version of the older branches. So once all recipes' SRCREV are bumped, overwriting the variable won't be necessary anymore.
Quoted 11 lines
Quoted 7 lines
Gentle ping about this. Thanks!
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America--
Andrei Gherzan[0]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/025961.html
[1]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/026151.htmlBest regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
Quoted 9 lines
Quoted 5 lines
When reworking: If I am not mistaken there is a chance that modesetting will work when using latest kernel versions from Eric Anholt. So would you mind to rebase the patches to these changes? I would again play tester role.
Yes, I will. I know Derek was also playing with Eric's latest branch so I'll coordinate with him and bump the sha-1 id if necessary.
In the meanwhile I will add 4.X support. Finally?
--
Andrei Gherzan
Re: [meta-raspberrypi][PATCH v2 4/4] README: Add a section about graphic stacks
Quoted 100 lines · Andrei Gherzan
Quoted 98 lines · Javier Martinez Canillas
Hello Andreas,
Quoted 94 lines · Andreas Müller
Quoted 79 lines · Javier Martinez Canillas
Hello Andrei,
Quoted 37 lines · Andrei Gherzan
Hello Javier,
Quoted 34 lines · Javier Martinez Canillas
Hello,
Quoted 2 lines · Javier Martinez Canillas
Quoted 1 line · Andrei Gherzan
On Thursday, August 13, 2015, Khem Raj <[email protected]> wrote:
[snip]
Quoted 26 lines
Quoted 12 lines
Quoted 12 lines
Review
Quoted 7 lines
+2.O. Graphic stacks
+===================(quoted diff) +4
-0+The Raspberry Pi boards can use one of two graphics stacks: The userland +user-space driver or the vc4 DRM/KMS kernel driver. By default userland +is used since the vc4 is still experimental. But this can be changed by +modifying the defaults for the kernel, egl, gles2, libgl and mesaproviders.
Quoted 1 line
+This is explained in the conf/machine/include/rpi-default-providers.inc
file.
Quoted 1 line
+
Quoted 8 lines
Quoted 4 lines
you may want to add pointer to the commented out code that you have added to select them
in rpi-default-providers.incIt would be nice to have some detailed info on what and where to comment out the configuration.
On patch 3/4 I added that documentation to rpi-default-providers but didn't add it to the README and instead pointed out to rpi-default-providers to have a level of indirection in case the providers change and to not have duplicated information but I will add it to the README as well.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Do you have comments on the other patches in the series so I can address all of them before re-spinning?
Really sorry on this late reply. So my only recommendation is to move things
No worries, I've also been very busy with other stuff.
Quoted 3 lines
you wrote in 3/4 in the 4/4 (README). Basically you would describe what a user needs to overwrite as providers in order to use VC4 as graphics stack.
Ok, I'm traveling to Korea next week for KLF and KS so I'll probably resend a v3 (addressing your suggestions) later next week when I'm back.
Quoted 2 lines
As well, how do you handle the devicetrees for 4.1? Aren't changed in 4+?
For now, I'm defining a
KERNEL_DEVICETREEin myconf/local.conffile since that is what was agreed with Petter Mabäcker on v1 of this series [0 and I also mentioned in the cover letter [1].But the new device tree overlay dir layout is not only for 4+ but also it is used in the latest version of the older branches. So once all recipes' SRCREV are bumped, overwriting the variable won't be necessary anymore.
Quoted 11 lines
Quoted 7 lines
Gentle ping about this. Thanks!
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America--
Andrei GherzanQuoted 8 lines
[0]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/025961.html
[1]: https://lists.yoctoproject.org/pipermail/yocto/2015-August/026151.htmlBest regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research AmericaWhen reworking: If I am not mistaken there is a chance that modesetting will work when using latest kernel versions from Eric Anholt. So would you mind to rebase the patches to these changes? I would again play tester role.
Quoted 8 lines
Quoted 3 lines
Yes, I will. I know Derek was also playing with Eric's latest branch so I'll coordinate with him and bump the sha-1 id if necessary.
In the meanwhile I will add 4.X support. Finally?
--
Andrei Gherzan
Done. Waiting for the next patch set of VC4. Thanks.
--
Andrei Gherzan