All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
@ 2016-07-21 12:32 Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 01/12] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
                   ` (15 more replies)
  0 siblings, 16 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

v4 series:
a. rebased
b. Upstream-Status added to the patch to the VC4 driver (needed only for kernel 4.4, accepted upstream in 4.7)

v3 series:
a. patch rebased
b. new revision of kernel, to get a version of the VC4 graphics driver that handles render nodes
c. patch to the VC4 driver to enable proper working of the render nodes (need to add authorization for IOCTLs)

v2 series:
a. Fix the 4.4.10 kernel revision
b. Effectively add vc4-kms-v3d overlay to the list of overlays to build (forgotten previously)
c. Make the parameter to the v4c-kms-v3d overlay configurable
d. Add default values for the cma parameter to the v4c-kms-v3d overlay, depending on the board (and the memory it has)

This patch series enables the support for the VC4 graphics driver from Eric Anholt.
There was a previous patch series by Javier Martinez Canillas, but it required use of a different kernel.
VC4 is now supported in the raspberrypi official kernel, at least for 4.4.9+.
The support in 4.1 exists, but it is NOT STABLE, so it has been deemed unreasonable to support VC4 with 4.1 kernels.

THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and later.

This patch series proposes to support VC4 by only adding 'vc4graphics' to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all the necessary configuration/changes to use the VC4 driver, including mesa/wayland/weston currently, and adding the overlay required.
In order for this series to work, some previous patches are needed (support for .dtbo, and fix of the mesa packaging when there is no DRI driver).
The memory reserved for the VC4 driver has default values depending on the version of the board used, but it can be configured by setting VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192', 'cma-128', 'cma-96', 'cma-64').
'cma-256' is the recommended value, but it might not be possible on boards with 512MB or DRAM, or less...
'cma-64' is known to not being able to support FHD/1080p.

It was tested with wayland/weston, without the support for X11.

This patch series depends on two other patch series previously posted, that enable the support for .dtbo overlay files.

Herve Jourdain (12):
  rpi-default-providers.inc: change default providers to support
    vc4graphics
  rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
  raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
    vc4graphics
  raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
    vc4graphics
  raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
    vc4graphics
  raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
    vc4graphics
  rpi-config_git.bb: add v4c overlay to config.txt to support
    vc4graphics
  wayland/weston_%.bbappend: modify configuration options to support
    vc4graphics
  weston/weston_%.bbappend: modify configuration options to support
    vc4graphics
  mesa_%.bbappend: new file to add the correct configuration options to
    support vc4graphics
  linux-rpi.inc: add the configuration options required to support
    vc4graphics
  linux-raspberrypi-4.4: add patch to enable proper operation of
    renderD128 device

 conf/machine/include/rpi-base.inc                  |  1 +
 conf/machine/include/rpi-default-providers.inc     |  8 +++---
 conf/machine/raspberrypi.conf                      |  2 ++
 conf/machine/raspberrypi0.conf                     |  2 ++
 conf/machine/raspberrypi2.conf                     |  2 ++
 conf/machine/raspberrypi3.conf                     |  2 ++
 recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
 recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
 recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
 recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
 .../0002-vc4-ioctl-rendering-allow.patch           | 29 ++++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
 recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
 13 files changed, 75 insertions(+), 15 deletions(-)
 create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch

-- 
2.7.4



^ permalink raw reply	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 01/12] rpi-default-providers.inc: change default providers to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 02/12] rpi-base.inc: add vc4-kms-v3d to the overlays " Herve Jourdain
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 conf/machine/include/rpi-default-providers.inc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc
index 359870d..078e9d6 100644
--- a/conf/machine/include/rpi-default-providers.inc
+++ b/conf/machine/include/rpi-default-providers.inc
@@ -2,8 +2,8 @@
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-raspberrypi"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
-PREFERRED_PROVIDER_virtual/egl ?= "userland"
-PREFERRED_PROVIDER_virtual/libgles2 ?= "userland"
-PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
-PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
+PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}"
+PREFERRED_PROVIDER_virtual/libgles2 ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}"
+PREFERRED_PROVIDER_virtual/libgl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}"
+PREFERRED_PROVIDER_virtual/mesa ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}"
 PREFERRED_PROVIDER_jpeg ?= "jpeg"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 02/12] rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 01/12] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 03/12] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index 47eb23b..aabc131 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -37,6 +37,7 @@ KERNEL_DEVICETREE ?= " \
     overlays/w1-gpio.dtbo \
     overlays/w1-gpio-pullup.dtbo \
     overlays/pi3-miniuart-bt.dtbo \
+    overlays/vc4-kms-v3d.dtbo \
     "
 KERNEL_IMAGETYPE ?= "Image"
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 03/12] raspberrypi.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 01/12] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 02/12] rpi-base.inc: add vc4-kms-v3d to the overlays " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 04/12] raspberrypi0.conf: " Herve Jourdain
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 conf/machine/raspberrypi.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf
index 72beeb8..df8194c 100644
--- a/conf/machine/raspberrypi.conf
+++ b/conf/machine/raspberrypi.conf
@@ -10,3 +10,5 @@ include conf/machine/include/rpi-base.inc
 SERIAL_CONSOLE = "115200 ttyAMA0"
 
 UBOOT_MACHINE = "rpi_config"
+VC4_CMA_SIZE_raspberrypi ?= "cma-64"
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 04/12] raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (2 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 03/12] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 05/12] raspberrypi2.conf: " Herve Jourdain
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 conf/machine/raspberrypi0.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/raspberrypi0.conf b/conf/machine/raspberrypi0.conf
index ccf9ae7..0df9121 100644
--- a/conf/machine/raspberrypi0.conf
+++ b/conf/machine/raspberrypi0.conf
@@ -6,3 +6,5 @@ MACHINEOVERRIDES = "raspberrypi:${MACHINE}"
 include conf/machine/raspberrypi.conf
 
 SERIAL_CONSOLE = "115200 ttyAMA0"
+VC4_CMA_SIZE ?= "cma-128"
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 05/12] raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (3 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 04/12] raspberrypi0.conf: " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 06/12] raspberrypi3.conf: " Herve Jourdain
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 conf/machine/raspberrypi2.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/raspberrypi2.conf b/conf/machine/raspberrypi2.conf
index d50ef70..3f13dc0 100644
--- a/conf/machine/raspberrypi2.conf
+++ b/conf/machine/raspberrypi2.conf
@@ -10,3 +10,5 @@ include conf/machine/include/rpi-base.inc
 SERIAL_CONSOLE = "115200 ttyAMA0"
 
 UBOOT_MACHINE = "rpi_2_config"
+VC4_CMA_SIZE ?= "cma-256"
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 06/12] raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (4 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 05/12] raspberrypi2.conf: " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 07/12] rpi-config_git.bb: add v4c overlay to config.txt " Herve Jourdain
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 conf/machine/raspberrypi3.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf
index cb6056e..438c6e6 100644
--- a/conf/machine/raspberrypi3.conf
+++ b/conf/machine/raspberrypi3.conf
@@ -9,3 +9,5 @@ MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-brcm43430"
 include conf/machine/raspberrypi2.conf
 
 SERIAL_CONSOLE = "115200 ttyS0"
+VC4_CMA_SIZE ?= "cma-256"
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 07/12] rpi-config_git.bb: add v4c overlay to config.txt to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (5 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 06/12] raspberrypi3.conf: " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 08/12] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 recipes-bsp/bootfiles/rpi-config_git.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index 4bc8eb7..f610718 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -13,12 +13,14 @@ SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
 
 S = "${WORKDIR}/git"
 
-PR = "r4"
+PR = "r5"
 
 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
 PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
 PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
 
+VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
+
 inherit deploy
 
 do_deploy() {
@@ -102,6 +104,12 @@ do_deploy() {
         echo "# Enable UART" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
         echo "enable_uart=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
     fi
+
+    # VC4 Graphics support
+    if [ "${VC4GRAPHICS}" = "1" ]; then
+        echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
 }
 
 addtask deploy before do_package after do_install
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 08/12] wayland/weston_%.bbappend: modify configuration options to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (6 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 07/12] rpi-config_git.bb: add v4c overlay to config.txt " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 09/12] weston/weston_%.bbappend: " Herve Jourdain
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 recipes-graphics/wayland/weston_%.bbappend | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index c3a7421..57b8079 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -1,4 +1,2 @@
-EXTRA_OECONF_append_rpi = "\
-        --enable-rpi-compositor \
-        WESTON_NATIVE_BACKEND=rpi-backend.so \
-       "
+EXTRA_OECONF_append_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' --enable-rpi-compositor WESTON_NATIVE_BACKEND=rpi-backend.so', d)}"
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 09/12] weston/weston_%.bbappend: modify configuration options to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (7 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 08/12] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 10/12] mesa_%.bbappend: new file to add the correct " Herve Jourdain
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 recipes-graphics/weston/weston_%.bbappend | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/recipes-graphics/weston/weston_%.bbappend b/recipes-graphics/weston/weston_%.bbappend
index 3ec311d..70f4360 100644
--- a/recipes-graphics/weston/weston_%.bbappend
+++ b/recipes-graphics/weston/weston_%.bbappend
@@ -1,7 +1,8 @@
-EXTRA_OECONF += "--enable-rpi-compositor \
-             --disable-resize-optimization \
-             --disable-setuid-install \
-             --disable-xwayland-test \
-             --disable-simple-egl-clients \
-             WESTON_NATIVE_BACKEND=rpi-backend.so \
+PACKAGECONFIG_rpi_remove = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', ' fbdev', '', d)}"
+EXTRA_OECONF += "--disable-xwayland-test \
+                 --disable-simple-egl-clients \
 "
+EXTRA_OECONF += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', '--enable-rpi-compositor', d)}"
+EXTRA_OECONF += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', '--disable-resize-optimization', d)}"
+EXTRA_OECONF += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', '--disable-setuid-install', d)}"
+EXTRA_OECONF += "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'WESTON_NATIVE_BACKEND=rpi-backend.so', d)}"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 10/12] mesa_%.bbappend: new file to add the correct configuration options to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (8 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 09/12] weston/weston_%.bbappend: " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 11/12] linux-rpi.inc: add the configuration options required " Herve Jourdain
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 recipes-graphics/mesa/mesa_%.bbappend | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 recipes-graphics/mesa/mesa_%.bbappend

diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
new file mode 100644
index 0000000..b182388
--- /dev/null
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -0,0 +1,4 @@
+PACKAGECONFIG_append_rpi = " gallium"
+GALLIUMDRIVERS_rpi = "vc4"
+DRIDRIVERS_rpi = ""
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 11/12] linux-rpi.inc: add the configuration options required to support vc4graphics
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (9 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 10/12] mesa_%.bbappend: new file to add the correct " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 12/12] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device Herve Jourdain
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 recipes-kernel/linux/linux-rpi.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/recipes-kernel/linux/linux-rpi.inc b/recipes-kernel/linux/linux-rpi.inc
index 4b65fc2..3eeefee 100644
--- a/recipes-kernel/linux/linux-rpi.inc
+++ b/recipes-kernel/linux/linux-rpi.inc
@@ -111,6 +111,16 @@ do_configure_prepend() {
     # Activate CONFIG_LEGACY_PTYS
     kernel_configure_variable LEGACY_PTYS y
 
+    # Activate the configuration options for VC4
+    VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
+    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_VC4 y
+        kernel_configure_variable FB_BCM2708 n
+    fi
+
     # Keep this the last line
     # Remove all modified configs and add the rest to .config
     sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [meta-raspberrypi][PATCH v4 12/12] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (10 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 11/12] linux-rpi.inc: add the configuration options required " Herve Jourdain
@ 2016-07-21 12:32 ` Herve Jourdain
  2016-07-22 16:41 ` [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Carlos Alberto Lopez Perez
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 22+ messages in thread
From: Herve Jourdain @ 2016-07-21 12:32 UTC (permalink / raw)
  To: yocto

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
 .../0002-vc4-ioctl-rendering-allow.patch           | 29 ++++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
 2 files changed, 30 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch

diff --git a/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch b/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
new file mode 100644
index 0000000..59d0ed7
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
@@ -0,0 +1,29 @@
+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 <herve.jourdain@neuf.fr>
+---
+
+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),
+ };
diff --git a/recipes-kernel/linux/linux-raspberrypi_4.4.bb b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
index b13925c..8fe5330 100644
--- a/recipes-kernel/linux/linux-raspberrypi_4.4.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
@@ -5,5 +5,6 @@ LINUX_VERSION ?= "4.4.13"
 SRCREV = "680be5e27a9593cf26079c6e5744a04cc2809d13"
 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.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (11 preceding siblings ...)
  2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 12/12] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device Herve Jourdain
@ 2016-07-22 16:41 ` Carlos Alberto Lopez Perez
  2016-07-29  1:36   ` Khem Raj
  2016-07-29  1:36 ` Khem Raj
                   ` (2 subsequent siblings)
  15 siblings, 1 reply; 22+ messages in thread
From: Carlos Alberto Lopez Perez @ 2016-07-22 16:41 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 4670 bytes --]

On 21/07/16 14:32, Herve Jourdain wrote:
> v4 series:
> a. rebased
> b. Upstream-Status added to the patch to the VC4 driver (needed only for kernel 4.4, accepted upstream in 4.7)
> 
> v3 series:
> a. patch rebased
> b. new revision of kernel, to get a version of the VC4 graphics driver that handles render nodes
> c. patch to the VC4 driver to enable proper working of the render nodes (need to add authorization for IOCTLs)
> 
> v2 series:
> a. Fix the 4.4.10 kernel revision
> b. Effectively add vc4-kms-v3d overlay to the list of overlays to build (forgotten previously)
> c. Make the parameter to the v4c-kms-v3d overlay configurable
> d. Add default values for the cma parameter to the v4c-kms-v3d overlay, depending on the board (and the memory it has)
> 
> This patch series enables the support for the VC4 graphics driver from Eric Anholt.
> There was a previous patch series by Javier Martinez Canillas, but it required use of a different kernel.
> VC4 is now supported in the raspberrypi official kernel, at least for 4.4.9+.
> The support in 4.1 exists, but it is NOT STABLE, so it has been deemed unreasonable to support VC4 with 4.1 kernels.
> 
> THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and later.
> 
> This patch series proposes to support VC4 by only adding 'vc4graphics' to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all the necessary configuration/changes to use the VC4 driver, including mesa/wayland/weston currently, and adding the overlay required.
> In order for this series to work, some previous patches are needed (support for .dtbo, and fix of the mesa packaging when there is no DRI driver).
> The memory reserved for the VC4 driver has default values depending on the version of the board used, but it can be configured by setting VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192', 'cma-128', 'cma-96', 'cma-64').
> 'cma-256' is the recommended value, but it might not be possible on boards with 512MB or DRAM, or less...
> 'cma-64' is known to not being able to support FHD/1080p.
> 
> It was tested with wayland/weston, without the support for X11.
> 


I have a follow-up patch adding support for X11 that I will send once
this is merged.


> This patch series depends on two other patch series previously posted, that enable the support for .dtbo overlay files.
> 
> Herve Jourdain (12):
>   rpi-default-providers.inc: change default providers to support
>     vc4graphics
>   rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
>   raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   rpi-config_git.bb: add v4c overlay to config.txt to support
>     vc4graphics
>   wayland/weston_%.bbappend: modify configuration options to support
>     vc4graphics
>   weston/weston_%.bbappend: modify configuration options to support
>     vc4graphics
>   mesa_%.bbappend: new file to add the correct configuration options to
>     support vc4graphics
>   linux-rpi.inc: add the configuration options required to support
>     vc4graphics
>   linux-raspberrypi-4.4: add patch to enable proper operation of
>     renderD128 device
> 
>  conf/machine/include/rpi-base.inc                  |  1 +
>  conf/machine/include/rpi-default-providers.inc     |  8 +++---
>  conf/machine/raspberrypi.conf                      |  2 ++
>  conf/machine/raspberrypi0.conf                     |  2 ++
>  conf/machine/raspberrypi2.conf                     |  2 ++
>  conf/machine/raspberrypi3.conf                     |  2 ++
>  recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
>  recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
>  recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
>  recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
>  .../0002-vc4-ioctl-rendering-allow.patch           | 29 ++++++++++++++++++++++
>  recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
>  recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
>  13 files changed, 75 insertions(+), 15 deletions(-)
>  create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
>  create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
> 

Tested-by: Carlos Alberto Lopez Perez <clopez@igalia.com>



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (12 preceding siblings ...)
  2016-07-22 16:41 ` [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Carlos Alberto Lopez Perez
@ 2016-07-29  1:36 ` Khem Raj
  2016-07-31 18:52 ` Andrei Gherzan
  2016-09-21 16:04 ` Andrei Gherzan
  15 siblings, 0 replies; 22+ messages in thread
From: Khem Raj @ 2016-07-29  1:36 UTC (permalink / raw)
  To: Herve Jourdain; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4780 bytes --]


> On Jul 21, 2016, at 5:32 AM, Herve Jourdain <herve.jourdain@neuf.fr> wrote:
> 
> v4 series:
> a. rebased
> b. Upstream-Status added to the patch to the VC4 driver (needed only for kernel 4.4, accepted upstream in 4.7)
> 
> v3 series:
> a. patch rebased
> b. new revision of kernel, to get a version of the VC4 graphics driver that handles render nodes
> c. patch to the VC4 driver to enable proper working of the render nodes (need to add authorization for IOCTLs)
> 
> v2 series:
> a. Fix the 4.4.10 kernel revision
> b. Effectively add vc4-kms-v3d overlay to the list of overlays to build (forgotten previously)
> c. Make the parameter to the v4c-kms-v3d overlay configurable
> d. Add default values for the cma parameter to the v4c-kms-v3d overlay, depending on the board (and the memory it has)
> 
> This patch series enables the support for the VC4 graphics driver from Eric Anholt.
> There was a previous patch series by Javier Martinez Canillas, but it required use of a different kernel.
> VC4 is now supported in the raspberrypi official kernel, at least for 4.4.9+.
> The support in 4.1 exists, but it is NOT STABLE, so it has been deemed unreasonable to support VC4 with 4.1 kernels.
> 
> THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and later.
> 
> This patch series proposes to support VC4 by only adding 'vc4graphics' to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all the necessary configuration/changes to use the VC4 driver, including mesa/wayland/weston currently, and adding the overlay required.
> In order for this series to work, some previous patches are needed (support for .dtbo, and fix of the mesa packaging when there is no DRI driver).
> The memory reserved for the VC4 driver has default values depending on the version of the board used, but it can be configured by setting VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192', 'cma-128', 'cma-96', 'cma-64').
> 'cma-256' is the recommended value, but it might not be possible on boards with 512MB or DRAM, or less...
> 'cma-64' is known to not being able to support FHD/1080p.
> 
> It was tested with wayland/weston, without the support for X11.
> 
> This patch series depends on two other patch series previously posted, that enable the support for .dtbo overlay files.

I have staged this series into

https://github.com/kraj/meta-raspberrypi kraj/master

> 
> Herve Jourdain (12):
>  rpi-default-providers.inc: change default providers to support
>    vc4graphics
>  rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
>  raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
>    vc4graphics
>  raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
>    vc4graphics
>  raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
>    vc4graphics
>  raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
>    vc4graphics
>  rpi-config_git.bb: add v4c overlay to config.txt to support
>    vc4graphics
>  wayland/weston_%.bbappend: modify configuration options to support
>    vc4graphics
>  weston/weston_%.bbappend: modify configuration options to support
>    vc4graphics
>  mesa_%.bbappend: new file to add the correct configuration options to
>    support vc4graphics
>  linux-rpi.inc: add the configuration options required to support
>    vc4graphics
>  linux-raspberrypi-4.4: add patch to enable proper operation of
>    renderD128 device
> 
> conf/machine/include/rpi-base.inc                  |  1 +
> conf/machine/include/rpi-default-providers.inc     |  8 +++---
> conf/machine/raspberrypi.conf                      |  2 ++
> conf/machine/raspberrypi0.conf                     |  2 ++
> conf/machine/raspberrypi2.conf                     |  2 ++
> conf/machine/raspberrypi3.conf                     |  2 ++
> recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
> recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
> recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
> recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
> .../0002-vc4-ioctl-rendering-allow.patch           | 29 ++++++++++++++++++++++
> recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
> recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
> 13 files changed, 75 insertions(+), 15 deletions(-)
> create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
> create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
> 
> --
> 2.7.4
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-22 16:41 ` [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Carlos Alberto Lopez Perez
@ 2016-07-29  1:36   ` Khem Raj
  2016-07-29 13:32     ` Carlos Alberto Lopez Perez
  0 siblings, 1 reply; 22+ messages in thread
From: Khem Raj @ 2016-07-29  1:36 UTC (permalink / raw)
  To: Carlos Alberto Lopez Perez; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2462 bytes --]


> On Jul 22, 2016, at 9:41 AM, Carlos Alberto Lopez Perez <clopez@igalia.com> wrote:
> 
> On 21/07/16 14:32, Herve Jourdain wrote:
>> v4 series:
>> a. rebased
>> b. Upstream-Status added to the patch to the VC4 driver (needed only for kernel 4.4, accepted upstream in 4.7)
>> 
>> v3 series:
>> a. patch rebased
>> b. new revision of kernel, to get a version of the VC4 graphics driver that handles render nodes
>> c. patch to the VC4 driver to enable proper working of the render nodes (need to add authorization for IOCTLs)
>> 
>> v2 series:
>> a. Fix the 4.4.10 kernel revision
>> b. Effectively add vc4-kms-v3d overlay to the list of overlays to build (forgotten previously)
>> c. Make the parameter to the v4c-kms-v3d overlay configurable
>> d. Add default values for the cma parameter to the v4c-kms-v3d overlay, depending on the board (and the memory it has)
>> 
>> This patch series enables the support for the VC4 graphics driver from Eric Anholt.
>> There was a previous patch series by Javier Martinez Canillas, but it required use of a different kernel.
>> VC4 is now supported in the raspberrypi official kernel, at least for 4.4.9+.
>> The support in 4.1 exists, but it is NOT STABLE, so it has been deemed unreasonable to support VC4 with 4.1 kernels.
>> 
>> THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and later.
>> 
>> This patch series proposes to support VC4 by only adding 'vc4graphics' to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all the necessary configuration/changes to use the VC4 driver, including mesa/wayland/weston currently, and adding the overlay required.
>> In order for this series to work, some previous patches are needed (support for .dtbo, and fix of the mesa packaging when there is no DRI driver).
>> The memory reserved for the VC4 driver has default values depending on the version of the board used, but it can be configured by setting VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192', 'cma-128', 'cma-96', 'cma-64').
>> 'cma-256' is the recommended value, but it might not be possible on boards with 512MB or DRAM, or less...
>> 'cma-64' is known to not being able to support FHD/1080p.
>> 
>> It was tested with wayland/weston, without the support for X11.
>> 
> 
> 
> I have a follow-up patch adding support for X11 that I will send once
> this is merged.
> 

Can you send the patch to the list please.

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-29  1:36   ` Khem Raj
@ 2016-07-29 13:32     ` Carlos Alberto Lopez Perez
  2016-07-30  4:59       ` Khem Raj
  0 siblings, 1 reply; 22+ messages in thread
From: Carlos Alberto Lopez Perez @ 2016-07-29 13:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 318 bytes --]

On 29/07/16 03:36, Khem Raj wrote:
>>> It was tested with wayland/weston, without the support for X11.
>>>
>>
>>
>> I have a follow-up patch adding support for X11 that I will send once
>> this is merged.
>>
> 
> Can you send the patch to the list please.
> 

Find it attached in this e-mail.

Regards.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: vc4graphics-Support-X11-with-the-VC4-driver.patch --]
[-- Type: text/x-diff; name="vc4graphics-Support-X11-with-the-VC4-driver.patch", Size: 1487 bytes --]

From 7058846569c3769c3e3c8a4de25a123ab56a289f Mon Sep 17 00:00:00 2001
From: Carlos Alberto Lopez Perez <clopez@igalia.com>
Date: Fri, 15 Jul 2016 21:22:00 +0200
Subject: [PATCH] vc4graphics: Support X11 with the VC4 driver.

  * We need to use the X11 modesetting driver with VC4.

  * We need to build at least the mesa swrast DRI driver.
   (its already the default so don't overwrite it to empty)

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
---
 conf/machine/include/rpi-base.inc     | 2 +-
 recipes-graphics/mesa/mesa_%.bbappend | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index 34b90e8..3311074 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -12,7 +12,7 @@ XSERVER = " \
     xf86-input-evdev \
     xf86-input-mouse \
     xf86-input-keyboard \
-    xf86-video-fbdev \
+    ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
     "
 
 # Really supported starting from linux-raspberrypi 3.18.y only
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index b182388..9c5df99 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -1,4 +1,2 @@
 PACKAGECONFIG_append_rpi = " gallium"
 GALLIUMDRIVERS_rpi = "vc4"
-DRIDRIVERS_rpi = ""
-
-- 
2.1.4


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-29 13:32     ` Carlos Alberto Lopez Perez
@ 2016-07-30  4:59       ` Khem Raj
  0 siblings, 0 replies; 22+ messages in thread
From: Khem Raj @ 2016-07-30  4:59 UTC (permalink / raw)
  To: Carlos Alberto Lopez Perez; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]


> On Jul 29, 2016, at 6:32 AM, Carlos Alberto Lopez Perez <clopez@igalia.com> wrote:
> 
> On 29/07/16 03:36, Khem Raj wrote:
>>>> It was tested with wayland/weston, without the support for X11.
>>>> 
>>> 
>>> 
>>> I have a follow-up patch adding support for X11 that I will send once
>>> this is merged.
>>> 
>> 
>> Can you send the patch to the list please.
>> 
> 
> Find it attached in this e-mail.
> 
> Regards.
> <vc4graphics-Support-X11-with-the-VC4-driver.patch>

Thanks. I have staged it to kraj/master

-Khem

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (13 preceding siblings ...)
  2016-07-29  1:36 ` Khem Raj
@ 2016-07-31 18:52 ` Andrei Gherzan
  2016-07-31 19:56   ` Khem Raj
  2016-09-21 16:04 ` Andrei Gherzan
  15 siblings, 1 reply; 22+ messages in thread
From: Andrei Gherzan @ 2016-07-31 18:52 UTC (permalink / raw)
  To: Herve Jourdain; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4899 bytes --]

On Thu, Jul 21, 2016 at 08:32:05PM +0800, Herve Jourdain wrote:
> v4 series:
> a. rebased
> b. Upstream-Status added to the patch to the VC4 driver (needed only for kernel 4.4, accepted upstream in 4.7)
>
> v3 series:
> a. patch rebased
> b. new revision of kernel, to get a version of the VC4 graphics driver that handles render nodes
> c. patch to the VC4 driver to enable proper working of the render nodes (need to add authorization for IOCTLs)
>
> v2 series:
> a. Fix the 4.4.10 kernel revision
> b. Effectively add vc4-kms-v3d overlay to the list of overlays to build (forgotten previously)
> c. Make the parameter to the v4c-kms-v3d overlay configurable
> d. Add default values for the cma parameter to the v4c-kms-v3d overlay, depending on the board (and the memory it has)
>
> This patch series enables the support for the VC4 graphics driver from Eric Anholt.
> There was a previous patch series by Javier Martinez Canillas, but it required use of a different kernel.
> VC4 is now supported in the raspberrypi official kernel, at least for 4.4.9+.
> The support in 4.1 exists, but it is NOT STABLE, so it has been deemed unreasonable to support VC4 with 4.1 kernels.
>
> THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and later.
>
> This patch series proposes to support VC4 by only adding 'vc4graphics' to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all the necessary configuration/changes to use the VC4 driver, including mesa/wayland/weston currently, and adding the overlay required.
> In order for this series to work, some previous patches are needed (support for .dtbo, and fix of the mesa packaging when there is no DRI driver).
> The memory reserved for the VC4 driver has default values depending on the version of the board used, but it can be configured by setting VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192', 'cma-128', 'cma-96', 'cma-64').
> 'cma-256' is the recommended value, but it might not be possible on boards with 512MB or DRAM, or less...
> 'cma-64' is known to not being able to support FHD/1080p.
>
> It was tested with wayland/weston, without the support for X11.
>
> This patch series depends on two other patch series previously posted, that enable the support for .dtbo overlay files.
>
> Herve Jourdain (12):
>   rpi-default-providers.inc: change default providers to support
>     vc4graphics
>   rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
>   raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   rpi-config_git.bb: add v4c overlay to config.txt to support
>     vc4graphics
>   wayland/weston_%.bbappend: modify configuration options to support
>     vc4graphics
>   weston/weston_%.bbappend: modify configuration options to support
>     vc4graphics
>   mesa_%.bbappend: new file to add the correct configuration options to
>     support vc4graphics
>   linux-rpi.inc: add the configuration options required to support
>     vc4graphics
>   linux-raspberrypi-4.4: add patch to enable proper operation of
>     renderD128 device
>
>  conf/machine/include/rpi-base.inc                  |  1 +
>  conf/machine/include/rpi-default-providers.inc     |  8 +++---
>  conf/machine/raspberrypi.conf                      |  2 ++
>  conf/machine/raspberrypi0.conf                     |  2 ++
>  conf/machine/raspberrypi2.conf                     |  2 ++
>  conf/machine/raspberrypi3.conf                     |  2 ++
>  recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
>  recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
>  recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
>  recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
>  .../0002-vc4-ioctl-rendering-allow.patch           | 29 ++++++++++++++++++++++
>  recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
>  recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
>  13 files changed, 75 insertions(+), 15 deletions(-)
>  create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
>  create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
>
> --
> 2.7.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

I would have wanted to merge this but they depend on dtbo support which
doesn't have the required bits in oe.core. So I can't merge this until
that lands in oe-core.

Regards,

--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-31 18:52 ` Andrei Gherzan
@ 2016-07-31 19:56   ` Khem Raj
  2016-08-10 11:29     ` Andreas Müller
  0 siblings, 1 reply; 22+ messages in thread
From: Khem Raj @ 2016-07-31 19:56 UTC (permalink / raw)
  To: Andrei Gherzan; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 5411 bytes --]

On Jul 31, 2016 12:54 PM, "Andrei Gherzan" <andrei@gherzan.ro> wrote:
>
> On Thu, Jul 21, 2016 at 08:32:05PM +0800, Herve Jourdain wrote:
> > v4 series:
> > a. rebased
> > b. Upstream-Status added to the patch to the VC4 driver (needed only
for kernel 4.4, accepted upstream in 4.7)
> >
> > v3 series:
> > a. patch rebased
> > b. new revision of kernel, to get a version of the VC4 graphics driver
that handles render nodes
> > c. patch to the VC4 driver to enable proper working of the render nodes
(need to add authorization for IOCTLs)
> >
> > v2 series:
> > a. Fix the 4.4.10 kernel revision
> > b. Effectively add vc4-kms-v3d overlay to the list of overlays to build
(forgotten previously)
> > c. Make the parameter to the v4c-kms-v3d overlay configurable
> > d. Add default values for the cma parameter to the v4c-kms-v3d overlay,
depending on the board (and the memory it has)
> >
> > This patch series enables the support for the VC4 graphics driver from
Eric Anholt.
> > There was a previous patch series by Javier Martinez Canillas, but it
required use of a different kernel.
> > VC4 is now supported in the raspberrypi official kernel, at least for
4.4.9+.
> > The support in 4.1 exists, but it is NOT STABLE, so it has been deemed
unreasonable to support VC4 with 4.1 kernels.
> >
> > THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and
later.
> >
> > This patch series proposes to support VC4 by only adding 'vc4graphics'
to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all
the necessary configuration/changes to use the VC4 driver, including
mesa/wayland/weston currently, and adding the overlay required.
> > In order for this series to work, some previous patches are needed
(support for .dtbo, and fix of the mesa packaging when there is no DRI
driver).
> > The memory reserved for the VC4 driver has default values depending on
the version of the board used, but it can be configured by setting
VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192',
'cma-128', 'cma-96', 'cma-64').
> > 'cma-256' is the recommended value, but it might not be possible on
boards with 512MB or DRAM, or less...
> > 'cma-64' is known to not being able to support FHD/1080p.
> >
> > It was tested with wayland/weston, without the support for X11.
> >
> > This patch series depends on two other patch series previously posted,
that enable the support for .dtbo overlay files.
> >
> > Herve Jourdain (12):
> >   rpi-default-providers.inc: change default providers to support
> >     vc4graphics
> >   rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
> >   raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
> >     vc4graphics
> >   raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
> >     vc4graphics
> >   raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
> >     vc4graphics
> >   raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
> >     vc4graphics
> >   rpi-config_git.bb: add v4c overlay to config.txt to support
> >     vc4graphics
> >   wayland/weston_%.bbappend: modify configuration options to support
> >     vc4graphics
> >   weston/weston_%.bbappend: modify configuration options to support
> >     vc4graphics
> >   mesa_%.bbappend: new file to add the correct configuration options to
> >     support vc4graphics
> >   linux-rpi.inc: add the configuration options required to support
> >     vc4graphics
> >   linux-raspberrypi-4.4: add patch to enable proper operation of
> >     renderD128 device
> >
> >  conf/machine/include/rpi-base.inc                  |  1 +
> >  conf/machine/include/rpi-default-providers.inc     |  8 +++---
> >  conf/machine/raspberrypi.conf                      |  2 ++
> >  conf/machine/raspberrypi0.conf                     |  2 ++
> >  conf/machine/raspberrypi2.conf                     |  2 ++
> >  conf/machine/raspberrypi3.conf                     |  2 ++
> >  recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
> >  recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
> >  recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
> >  recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
> >  .../0002-vc4-ioctl-rendering-allow.patch           | 29
++++++++++++++++++++++
> >  recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
> >  recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
> >  13 files changed, 75 insertions(+), 15 deletions(-)
> >  create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
> >  create mode 100644
recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
> >
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
> I would have wanted to merge this but they depend on dtbo support which
> doesn't have the required bits in oe.core. So I can't merge this until
> that lands in oe-core.

Let's wait for few days. I have staged it in my guthub tree. Until then
>
> Regards,
>
> --
> Andrei Gherzan
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 7028 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-31 19:56   ` Khem Raj
@ 2016-08-10 11:29     ` Andreas Müller
  0 siblings, 0 replies; 22+ messages in thread
From: Andreas Müller @ 2016-08-10 11:29 UTC (permalink / raw)
  To: Khem Raj; +Cc: Yocto Project

On Sun, Jul 31, 2016 at 9:56 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Jul 31, 2016 12:54 PM, "Andrei Gherzan" <andrei@gherzan.ro> wrote:
>>
>> On Thu, Jul 21, 2016 at 08:32:05PM +0800, Herve Jourdain wrote:
>> > v4 series:
>> > a. rebased
>> > b. Upstream-Status added to the patch to the VC4 driver (needed only for
>> > kernel 4.4, accepted upstream in 4.7)
>> >
>> > v3 series:
>> > a. patch rebased
>> > b. new revision of kernel, to get a version of the VC4 graphics driver
>> > that handles render nodes
>> > c. patch to the VC4 driver to enable proper working of the render nodes
>> > (need to add authorization for IOCTLs)
>> >
>> > v2 series:
>> > a. Fix the 4.4.10 kernel revision
>> > b. Effectively add vc4-kms-v3d overlay to the list of overlays to build
>> > (forgotten previously)
>> > c. Make the parameter to the v4c-kms-v3d overlay configurable
>> > d. Add default values for the cma parameter to the v4c-kms-v3d overlay,
>> > depending on the board (and the memory it has)
>> >
>> > This patch series enables the support for the VC4 graphics driver from
>> > Eric Anholt.
>> > There was a previous patch series by Javier Martinez Canillas, but it
>> > required use of a different kernel.
>> > VC4 is now supported in the raspberrypi official kernel, at least for
>> > 4.4.9+.
>> > The support in 4.1 exists, but it is NOT STABLE, so it has been deemed
>> > unreasonable to support VC4 with 4.1 kernels.
>> >
>> > THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and
>> > later.
>> >
>> > This patch series proposes to support VC4 by only adding 'vc4graphics'
>> > to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all
>> > the necessary configuration/changes to use the VC4 driver, including
>> > mesa/wayland/weston currently, and adding the overlay required.
>> > In order for this series to work, some previous patches are needed
>> > (support for .dtbo, and fix of the mesa packaging when there is no DRI
>> > driver).
>> > The memory reserved for the VC4 driver has default values depending on
>> > the version of the board used, but it can be configured by setting
>> > VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192',
>> > 'cma-128', 'cma-96', 'cma-64').
>> > 'cma-256' is the recommended value, but it might not be possible on
>> > boards with 512MB or DRAM, or less...
>> > 'cma-64' is known to not being able to support FHD/1080p.
>> >
>> > It was tested with wayland/weston, without the support for X11.
>> >
>> > This patch series depends on two other patch series previously posted,
>> > that enable the support for .dtbo overlay files.
>> >
>> > Herve Jourdain (12):
>> >   rpi-default-providers.inc: change default providers to support
>> >     vc4graphics
>> >   rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
>> >   raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
>> >     vc4graphics
>> >   raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
>> >     vc4graphics
>> >   raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
>> >     vc4graphics
>> >   raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
>> >     vc4graphics
>> >   rpi-config_git.bb: add v4c overlay to config.txt to support
>> >     vc4graphics
>> >   wayland/weston_%.bbappend: modify configuration options to support
>> >     vc4graphics
>> >   weston/weston_%.bbappend: modify configuration options to support
>> >     vc4graphics
>> >   mesa_%.bbappend: new file to add the correct configuration options to
>> >     support vc4graphics
>> >   linux-rpi.inc: add the configuration options required to support
>> >     vc4graphics
>> >   linux-raspberrypi-4.4: add patch to enable proper operation of
>> >     renderD128 device
>> >
>> >  conf/machine/include/rpi-base.inc                  |  1 +
>> >  conf/machine/include/rpi-default-providers.inc     |  8 +++---
>> >  conf/machine/raspberrypi.conf                      |  2 ++
>> >  conf/machine/raspberrypi0.conf                     |  2 ++
>> >  conf/machine/raspberrypi2.conf                     |  2 ++
>> >  conf/machine/raspberrypi3.conf                     |  2 ++
>> >  recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
>> >  recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
>> >  recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
>> >  recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
>> >  .../0002-vc4-ioctl-rendering-allow.patch           | 29
>> > ++++++++++++++++++++++
>> >  recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
>> >  recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
>> >  13 files changed, 75 insertions(+), 15 deletions(-)
>> >  create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
>> >  create mode 100644
>> > recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
>> >
>> > --
>> > 2.7.4
>> >
>> > --
>> > _______________________________________________
>> > yocto mailing list
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>> I would have wanted to merge this but they depend on dtbo support which
>> doesn't have the required bits in oe.core. So I can't merge this until
>> that lands in oe-core.
>
> Let's wait for few days. I have staged it in my guthub tree. Until then
>>
>> Regards,
>>
>> --
>> Andrei Gherzan
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
If I am not mistaken, dtbo patch is now in oe-core.

Andreas


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver
  2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
                   ` (14 preceding siblings ...)
  2016-07-31 18:52 ` Andrei Gherzan
@ 2016-09-21 16:04 ` Andrei Gherzan
  15 siblings, 0 replies; 22+ messages in thread
From: Andrei Gherzan @ 2016-09-21 16:04 UTC (permalink / raw)
  To: Herve Jourdain; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4770 bytes --]

On Thu, Jul 21, 2016 at 08:32:05PM +0800, Herve Jourdain wrote:
> v4 series:
> a. rebased
> b. Upstream-Status added to the patch to the VC4 driver (needed only for kernel 4.4, accepted upstream in 4.7)
>
> v3 series:
> a. patch rebased
> b. new revision of kernel, to get a version of the VC4 graphics driver that handles render nodes
> c. patch to the VC4 driver to enable proper working of the render nodes (need to add authorization for IOCTLs)
>
> v2 series:
> a. Fix the 4.4.10 kernel revision
> b. Effectively add vc4-kms-v3d overlay to the list of overlays to build (forgotten previously)
> c. Make the parameter to the v4c-kms-v3d overlay configurable
> d. Add default values for the cma parameter to the v4c-kms-v3d overlay, depending on the board (and the memory it has)
>
> This patch series enables the support for the VC4 graphics driver from Eric Anholt.
> There was a previous patch series by Javier Martinez Canillas, but it required use of a different kernel.
> VC4 is now supported in the raspberrypi official kernel, at least for 4.4.9+.
> The support in 4.1 exists, but it is NOT STABLE, so it has been deemed unreasonable to support VC4 with 4.1 kernels.
>
> THEREFORE, VC4 graphics is supported ONLY for kernel versions 4.4.9 and later.
>
> This patch series proposes to support VC4 by only adding 'vc4graphics' to MACHINE_FEATURES, for raspberrypi. If this is set, it will trigger all the necessary configuration/changes to use the VC4 driver, including mesa/wayland/weston currently, and adding the overlay required.
> In order for this series to work, some previous patches are needed (support for .dtbo, and fix of the mesa packaging when there is no DRI driver).
> The memory reserved for the VC4 driver has default values depending on the version of the board used, but it can be configured by setting VC4_CMA_SIZE to a value supported by the overlay ('cma-256', 'cma-192', 'cma-128', 'cma-96', 'cma-64').
> 'cma-256' is the recommended value, but it might not be possible on boards with 512MB or DRAM, or less...
> 'cma-64' is known to not being able to support FHD/1080p.
>
> It was tested with wayland/weston, without the support for X11.
>
> This patch series depends on two other patch series previously posted, that enable the support for .dtbo overlay files.
>
> Herve Jourdain (12):
>   rpi-default-providers.inc: change default providers to support
>     vc4graphics
>   rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
>   raspberrypi.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support
>     vc4graphics
>   rpi-config_git.bb: add v4c overlay to config.txt to support
>     vc4graphics
>   wayland/weston_%.bbappend: modify configuration options to support
>     vc4graphics
>   weston/weston_%.bbappend: modify configuration options to support
>     vc4graphics
>   mesa_%.bbappend: new file to add the correct configuration options to
>     support vc4graphics
>   linux-rpi.inc: add the configuration options required to support
>     vc4graphics
>   linux-raspberrypi-4.4: add patch to enable proper operation of
>     renderD128 device
>
>  conf/machine/include/rpi-base.inc                  |  1 +
>  conf/machine/include/rpi-default-providers.inc     |  8 +++---
>  conf/machine/raspberrypi.conf                      |  2 ++
>  conf/machine/raspberrypi0.conf                     |  2 ++
>  conf/machine/raspberrypi2.conf                     |  2 ++
>  conf/machine/raspberrypi3.conf                     |  2 ++
>  recipes-bsp/bootfiles/rpi-config_git.bb            | 10 +++++++-
>  recipes-graphics/mesa/mesa_%.bbappend              |  4 +++
>  recipes-graphics/wayland/weston_%.bbappend         |  6 ++---
>  recipes-graphics/weston/weston_%.bbappend          | 13 +++++-----
>  .../0002-vc4-ioctl-rendering-allow.patch           | 29 ++++++++++++++++++++++
>  recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
>  recipes-kernel/linux/linux-rpi.inc                 | 10 ++++++++
>  13 files changed, 75 insertions(+), 15 deletions(-)
>  create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
>  create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
>
> --
> 2.7.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

The entire patch set was merged to master. Thanks.

--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 817 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2016-09-21 16:04 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-21 12:32 [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 01/12] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 02/12] rpi-base.inc: add vc4-kms-v3d to the overlays " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 03/12] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 04/12] raspberrypi0.conf: " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 05/12] raspberrypi2.conf: " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 06/12] raspberrypi3.conf: " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 07/12] rpi-config_git.bb: add v4c overlay to config.txt " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 08/12] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 09/12] weston/weston_%.bbappend: " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 10/12] mesa_%.bbappend: new file to add the correct " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 11/12] linux-rpi.inc: add the configuration options required " Herve Jourdain
2016-07-21 12:32 ` [meta-raspberrypi][PATCH v4 12/12] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device Herve Jourdain
2016-07-22 16:41 ` [meta-raspberrypi][PATCH v4 00/12] Support for VC4 graphics driver Carlos Alberto Lopez Perez
2016-07-29  1:36   ` Khem Raj
2016-07-29 13:32     ` Carlos Alberto Lopez Perez
2016-07-30  4:59       ` Khem Raj
2016-07-29  1:36 ` Khem Raj
2016-07-31 18:52 ` Andrei Gherzan
2016-07-31 19:56   ` Khem Raj
2016-08-10 11:29     ` Andreas Müller
2016-09-21 16:04 ` Andrei Gherzan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.