All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Alberto Lopez Perez <clopez@igalia.com>
To: Herve Jourdain <herve.jourdain@neuf.fr>, yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH v3 00/14] Support for VC4 graphics driver
Date: Fri, 15 Jul 2016 21:25:39 +0200	[thread overview]
Message-ID: <578938B3.9010506@igalia.com> (raw)
In-Reply-To: <1464641363-88572-1-git-send-email-herve.jourdain@neuf.fr>


[-- 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 --]

      parent reply	other threads:[~2016-07-15 19:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` [meta-raspberrypi][PATCH v3 03/14] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 04/14] raspberrypi0.conf: " Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 05/14] raspberrypi2.conf: " Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 06/14] raspberrypi3.conf: " 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
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 08/14] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 09/14] weston/weston_%.bbappend: " Herve Jourdain
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 ` [meta-raspberrypi][PATCH v3 11/14] linux-rpi.inc: add the configuration options required " Herve Jourdain
2016-05-30 20:49 ` [meta-raspberrypi][PATCH v3 12/14] firmware.inc: bump version " 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
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=578938B3.9010506@igalia.com \
    --to=clopez@igalia.com \
    --cc=herve.jourdain@neuf.fr \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.