From: "piotr.lewicki" <piotr.lewicki@elfin.de>
To: Herve Jourdain <herve.jourdain@neuf.fr>, yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH v2 00/13] Support for VC4 graphics driver
Date: Tue, 24 May 2016 13:08:14 +0200 [thread overview]
Message-ID: <5744361E.3030607@elfin.de> (raw)
In-Reply-To: <02ac01d1b5a9$0149cf90$03dd6eb0$@neuf.fr>
On 24.05.2016 12:42, Herve Jourdain wrote:
> Hi Piotr,
Hi,
There were issues with patches 02, 07 and 12.
02- due to different overlay naming (overlays/vc4-kms-v3d-overlay.dtb
instead of overlays/vc4-kms-v3d.dtbo) and 07 and 12 due to bump of
linux-raspberrypi from 4.4.8 to 4.4.9 (on master).
> I know that the omxplayer would not build at this time, because VC4 and
> userland will conflict, and currently omxplayer depends on userland.
> I will check if it can be supported with VC4 driver enabled, but for the
> moment it's true I disabled it in my build.
>
> Regarding your patches:
> 1. Are you using linux kernel 4.4? You should set
> PREFERRED_VERSION_linux-raspberrypi = "4.4.%" somewhere, either in your
> distro configuration file, or your local.conf.
> If you do so, it should get kernel 4.4.10, which requires .dtbo files
> for overlay. As mentioned in the patch, support for VC4 in 4.1 is not
> stable, and therefore not supported.
I did that :-)
> 2. I've seen only one TODO, did you make only one modification?
There were issues with patches 02, 07 and 12.
02- due to different overlay naming (overlays/vc4-kms-v3d-overlay.dtb
instead of overlays/vc4-kms-v3d.dtbo) and 07 and 12 due to bump of
linux-raspberrypi from 4.4.8 to 4.4.9 (on master).
Now I see that 02 whas not necessary- I just missed the patch you
provided earlier.
> 3. There are other patches that are needed to be applied, before this patch
> series is applied: 2 for .dtbo support (1 in meta-raspberrypi, 1 in meta), 1
> for mesa (to allow packaging with empty DRI).
Ok. I didn't know. Can you confirm that I have the right patches?
Patch for meta is from thread "[yocto] [PATCH v2 0/1] Support for .dtbo
files for dtb overlays"?
Patch for meta-raspberrypi is "[yocto] [meta-raspberrypi][PATCH 0/8]
Support for vc4 graphics driver"?
Patch for mesa is part of those patches above?
> I'll take a look at the omxplayer issue as soon as I can, in the meanwhile I
> recommend to not use it...
This would be great. Thank you.
>
> Herve
>
> -----Original Message-----
> From: piotr.lewicki [mailto:piotr.lewicki@elfin.de]
> Sent: mardi 24 mai 2016 11:59
> To: Herve Jourdain <herve.jourdain@neuf.fr>; yocto@yoctoproject.org
> Subject: Re: [yocto] [meta-raspberrypi][PATCH v2 00/13] Support for VC4
> graphics driver
>
> I have tried these patches, but there were some hunks and errors during
> applying to current master revision
> (69840c0bbe03c2e61601e2377c8e2adc264e0478).
> Building 'rpi-hwup-image' passed, but while building 'rpi-test-image'
> (omxplayer recipe) I have noticed some errors due to missing files:
> - IL/OMX_Core.h
> - VG/openvg.h
> - bcm_host.h
>
> I'm attaching omxplayer_build_errors.txt with build log and my patch with
> changes created by Herve (adapted to current master revision) -
> Support_for_VC4_graphics_driver.patch (Herve- if you decide to use that and
> resend v3 of patches - please remove my TODO from
> "conf/machine/include/rpi-base.inc"
>
> Could you take a look at that and help me resolve those issues?
>
>
> I currently have a problem that I'm forced to use Raspbian because playing
> FHD/1080p videos with omxplayer from Yocto runs choppy (I'm not sure if
> that's the right word, but playback is not smooth) while with Raspbian it
> works perfect.
> Do you think that enabling VC4 graphics driver can solve my issue?
> Did any of you experienced similar problems? Do you have some other solution
> or do you know what's the cause of this?
>
>
> Thanks,
> Piotr Lewicki
>
>
> On 20.05.2016 13:51, Herve Jourdain wrote:
>> This v2 series addresses the following issues with the first 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 (13):
>> 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
>> firmware.inc: bump version 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-raspberrypi_4.4.bb: bump the kernel revision to 4.4.10 to
>> support vc4graphics
>> linux-rpi.inc: add the configuration options required to support
>> vc4graphics
>>
>> 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-bsp/common/firmware.inc | 4 ++--
>> recipes-graphics/mesa/mesa_%.bbappend | 4 ++++
>> recipes-graphics/wayland/weston_%.bbappend | 6 ++----
>> recipes-graphics/weston/weston_%.bbappend | 13 +++++++------
>> recipes-kernel/linux/linux-raspberrypi_4.4.bb | 4 ++--
>> recipes-kernel/linux/linux-rpi.inc | 10 ++++++++++
>> 13 files changed, 49 insertions(+), 19 deletions(-)
>> create mode 100644 recipes-graphics/mesa/mesa_%.bbappend
>>
>
Thanks,
Piotr Lewicki
next prev parent reply other threads:[~2016-05-24 11:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 11:51 [meta-raspberrypi][PATCH v2 00/13] Support for VC4 graphics driver Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 01/13] rpi-default-providers.inc: change default providers to support vc4graphics Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 02/13] rpi-base.inc: add vc4-kms-v3d to the overlays " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 03/13] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 04/13] raspberrypi0.conf: " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 05/13] raspberrypi2.conf: " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 06/13] raspberrypi3.conf: " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 07/13] firmware.inc: bump version " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 08/13] rpi-config_git.bb: add v4c overlay to config.txt " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 09/13] wayland/weston_%.bbappend: modify configuration options " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 10/13] weston/weston_%.bbappend: " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 11/13] mesa_%.bbappend: new file to add the correct " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 12/13] linux-raspberrypi_4.4.bb: bump the kernel revision to 4.4.10 " Herve Jourdain
2016-05-20 11:51 ` [meta-raspberrypi][PATCH v2 13/13] linux-rpi.inc: add the configuration options required " Herve Jourdain
2016-05-20 15:54 ` [meta-raspberrypi][PATCH v2 00/13] Support for VC4 graphics driver Khem Raj
2016-05-24 9:59 ` piotr.lewicki
2016-05-24 10:42 ` Herve Jourdain
2016-05-24 11:08 ` piotr.lewicki [this message]
2016-05-24 12:06 ` Herve Jourdain
2016-05-24 12:27 ` piotr.lewicki
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=5744361E.3030607@elfin.de \
--to=piotr.lewicki@elfin.de \
--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.