* [meta-raspberrypi][PATCH v3 01/14] rpi-default-providers.inc: change default providers to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 02/14] rpi-base.inc: add vc4-kms-v3d to the overlays " Herve Jourdain
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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 cabbd43..0bc8838 100644
--- a/conf/machine/include/rpi-default-providers.inc
+++ b/conf/machine/include/rpi-default-providers.inc
@@ -3,8 +3,8 @@
PREFERRED_PROVIDER_virtual/kernel ?= "linux-raspberrypi"
PREFERRED_PROVIDER_u-boot ?= "u-boot-rpi"
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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 02/14] rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 01/14] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 03/14] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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 2c9d8e0..23f8619 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -59,6 +59,7 @@ KERNEL_DEVICETREE_OVERLAYS_DTBO = " \
overlays/w1-gpio.dtbo \
overlays/w1-gpio-pullup.dtbo \
overlays/pi3-miniuart-bt.dtbo \
+ overlays/vc4-kms-v3d.dtbo \
"
def cmpver_strings(ver1, ver2, truevalue, falsevalue):
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-raspberrypi][PATCH v3 03/14] raspberrypi.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 01/14] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 02/14] rpi-base.inc: add vc4-kms-v3d to the overlays " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 04/14] raspberrypi0.conf: " Herve Jourdain
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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 0f95f1a..b369c67 100644
--- a/conf/machine/raspberrypi.conf
+++ b/conf/machine/raspberrypi.conf
@@ -8,3 +8,5 @@ require conf/machine/include/tune-arm1176jzf-s.inc
include conf/machine/include/rpi-base.inc
SERIAL_CONSOLE = "115200 ttyAMA0"
+VC4_CMA_SIZE_raspberrypi ?= "cma-64"
+
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-raspberrypi][PATCH v3 04/14] raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (2 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 03/14] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 05/14] raspberrypi2.conf: " Herve Jourdain
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 05/14] raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (3 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 04/14] raspberrypi0.conf: " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 06/14] raspberrypi3.conf: " Herve Jourdain
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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 b6346e6..3a82d66 100644
--- a/conf/machine/raspberrypi2.conf
+++ b/conf/machine/raspberrypi2.conf
@@ -8,3 +8,5 @@ require conf/machine/include/tune-cortexa7.inc
include conf/machine/include/rpi-base.inc
SERIAL_CONSOLE = "115200 ttyAMA0"
+VC4_CMA_SIZE ?= "cma-256"
+
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-raspberrypi][PATCH v3 06/14] raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (4 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 05/14] raspberrypi2.conf: " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 07/14] rpi-config_git.bb: add v4c overlay to config.txt " Herve Jourdain
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 07/14] rpi-config_git.bb: add v4c overlay to config.txt to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (5 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 06/14] raspberrypi3.conf: " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 08/14] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 08/14] wayland/weston_%.bbappend: modify configuration options to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (6 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 07/14] rpi-config_git.bb: add v4c overlay to config.txt " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 09/14] weston/weston_%.bbappend: " Herve Jourdain
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 09/14] weston/weston_%.bbappend: modify configuration options to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (7 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 08/14] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 10/14] mesa_%.bbappend: new file to add the correct " Herve Jourdain
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 10/14] mesa_%.bbappend: new file to add the correct configuration options to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (8 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 09/14] weston/weston_%.bbappend: " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 11/14] linux-rpi.inc: add the configuration options required " Herve Jourdain
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 11/14] linux-rpi.inc: add the configuration options required to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (9 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 10/14] mesa_%.bbappend: new file to add the correct " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 12/14] firmware.inc: bump version " Herve Jourdain
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 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 1755685..c120dbd 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] 16+ messages in thread* [meta-raspberrypi][PATCH v3 12/14] firmware.inc: bump version to support vc4graphics
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (10 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 11/14] linux-rpi.inc: add the configuration options required " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 13/14] linux-raspberrypi_4.4.bb: bump the kernel revision to 4.4.10 to support vc4graphics (including renderD128 device) Herve Jourdain
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 UTC (permalink / raw)
To: yocto
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
recipes-bsp/common/firmware.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-bsp/common/firmware.inc b/recipes-bsp/common/firmware.inc
index bf11e4c..b467fc6 100644
--- a/recipes-bsp/common/firmware.inc
+++ b/recipes-bsp/common/firmware.inc
@@ -1,5 +1,5 @@
-RPIFW_SRCREV ?= "3816e1ce1e6ebc6d2bf0596dbd52849e16aa7e94"
-RPIFW_DATE ?= "20160512"
+RPIFW_SRCREV ?= "c17fa41b8e8321d891230f97837fee98feebc1ac"
+RPIFW_DATE ?= "20160513"
RPIFW_SRC_URI ?= "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master"
RPIFW_S ?= "${WORKDIR}/git"
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-raspberrypi][PATCH v3 13/14] linux-raspberrypi_4.4.bb: bump the kernel revision to 4.4.10 to support vc4graphics (including renderD128 device)
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (11 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 12/14] firmware.inc: bump version " Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 14/14] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device Herve Jourdain
2016-07-15 19:25 ` [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Carlos Alberto Lopez Perez
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 UTC (permalink / raw)
To: yocto
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
recipes-kernel/linux/linux-raspberrypi_4.4.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-kernel/linux/linux-raspberrypi_4.4.bb b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
index 789fef1..02016fe 100644
--- a/recipes-kernel/linux/linux-raspberrypi_4.4.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
@@ -1,8 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
-LINUX_VERSION ?= "4.4.9"
+LINUX_VERSION ?= "4.4.10"
-SRCREV = "3b440738b5c1adc3ec3ee72ceca799d1b8d264df"
+SRCREV = "d7646fd3757515dfda0fd4ecd33212d175786ac4"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
file://0001-fix-dtbo-rules.patch \
"
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [meta-raspberrypi][PATCH v3 14/14] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (12 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 13/14] linux-raspberrypi_4.4.bb: bump the kernel revision to 4.4.10 to support vc4graphics (including renderD128 device) Herve Jourdain
@ 2016-05-30 20:49 ` Herve Jourdain
2016-07-15 19:25 ` [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Carlos Alberto Lopez Perez
14 siblings, 0 replies; 16+ messages in thread
From: Herve Jourdain @ 2016-05-30 20:49 UTC (permalink / raw)
To: yocto
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
---
.../0002-vc4-ioctl-rendering-allow.patch | 23 ++++++++++++++++++++++
recipes-kernel/linux/linux-raspberrypi_4.4.bb | 1 +
2 files changed, 24 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..823ffd8
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
@@ -0,0 +1,23 @@
+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 02016fe..ba0973d 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.10"
SRCREV = "d7646fd3757515dfda0fd4ecd33212d175786ac4"
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] 16+ messages in thread* Re: [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver
2016-05-30 20:49 [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver Herve Jourdain
` (13 preceding siblings ...)
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 14/14] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device Herve Jourdain
@ 2016-07-15 19:25 ` Carlos Alberto Lopez Perez
14 siblings, 0 replies; 16+ messages in thread
From: Carlos Alberto Lopez Perez @ 2016-07-15 19:25 UTC (permalink / raw)
To: Herve Jourdain, yocto
[-- Attachment #1.1: Type: text/plain, Size: 2242 bytes --]
On 30/05/16 22:49, Herve Jourdain wrote:
> This v3 series addresses the following issues with the v2 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.
>
Hi.
I tested this and works fine.
So +1 vote to merge this.
> It was tested with wayland/weston, without the support for X11.
I'm ataching here a minor patch that adds support for X11.
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] 16+ messages in thread