All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <javier@osg.samsung.com>
To: "Andreas Müller" <schnitzeltony@googlemail.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
	Derek Foreman <derekf@osg.samsung.com>,
	Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Subject: Re: [meta-raspberrypi][PATCH 5/5] rpi-default-providers: Switch providers according to used gfx stack
Date: Thu, 13 Aug 2015 09:22:31 +0200	[thread overview]
Message-ID: <55CC45B7.4010603@osg.samsung.com> (raw)
In-Reply-To: <CALbNGRRpXGJ6HwkTNu-sZFn3_qPdc4s9n=o-TWVTyfKiAxnHZw@mail.gmail.com>

Hello Andreas,

On 08/12/2015 10:22 PM, Andreas Müller wrote:
> On Wed, Aug 12, 2015 at 7:15 PM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
>> FYI: I managed to get the vc4 driver loaded (should be in my repo
>> branch vc4-2). With this I get some repeating kernel error messages
>> (don't have them here). I am sure that I read something about these
>> messages when preparing vc4 (yes I started similar before you sent
>> patches).
>>

Awesome, I tried to get it working yesterday but couldn't. Good work!

>> Hope I have some energy left tonight to check further and let you know...
>>
>>From xorg perspective all looks fine
> 
> [595923.730] (II) modeset(0): [DRI2] Setup complete
> [595923.730] (II) modeset(0): [DRI2]   DRI driver: vc4
> [595923.730] (II) modeset(0): [DRI2]   VDPAU driver: vc4
> [595923.740] (--) RandR disabled
> [595923.745] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
> [595923.745] (II) AIGLX: enabled GLX_ARB_create_context
> [595923.745] (II) AIGLX: enabled GLX_ARB_create_context_profile
> [595923.745] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
> [595923.745] (II) AIGLX: enabled GLX_INTEL_swap_event
> [595923.745] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
> [595923.745] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
> [595923.745] (II) AIGLX: enabled GLX_ARB_fbconfig_float
> [595923.745] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
> [595923.747] (II) AIGLX: Loaded and initialized vc4
> [595923.747] (II) GLX: Initialized DRI2 GL provider for screen 0
> [595923.782] (II) modeset(0): Setting screen physical size to 338 x 270
> 
> but kernel complains periodically ~6s with
> 
> [   36.814922] [drm:vc4_submit_cl_ioctl] *ERROR* Rendering requires
> BOs to validate
> [   43.060516] [drm:vc4_submit_cl_ioctl] *ERROR* Rendering requires
> BOs to validate
> [   49.325115] [drm:vc4_submit_cl_ioctl] *ERROR* Rendering requires
> BOs to validate
> [   55.558433] [drm:vc4_submit_cl_ioctl] *ERROR* Rendering requires
> BOs to validate
>

Yes, I was able to reproduce the issue. My X -verbose output:

http://hastebin.com/onovosojuw.md

> Will check what this message want me to say - anybody out there with
> helping hints?
>

No clue. I was looking and the error is in the VC4_SUBMIT_CL ioctl cmd
handler (vc4_submit_cl_ioctl) in drivers/gpu/drm/vc4/vc4_gem.c.

AFAIU bo_handle_count is supposed to always be > 0 but somehow mesa is
passing 0 on it.

The ioctl call is in vc4_flush (src/gallium/drivers/vc4/vc4_context.c)
in mesa. So it seems this is a mesa issue. I've asked Eric Anholt in
#dri-devel on IRC if his kernel is supposed to work with mesa 10.5.8
or if there is a minimum version / sha1 that is needed.

> Andreas
> 

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America


  reply	other threads:[~2015-08-13  7:22 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30  8:34 [meta-raspberrypi][PATCH 0/5] Add support for 4.1 kernel with vc4 DRM/KMS driver Javier Martinez Canillas
2015-07-30  8:34 ` [meta-raspberrypi][PATCH 1/5] linux-raspberrypi.inc: Make kgdboc kernel param optional Javier Martinez Canillas
2015-08-09 22:37   ` Andrei Gherzan
2015-07-30  8:34 ` [meta-raspberrypi][PATCH 2/5] rpi-config: Allow to mask GPU irqs Javier Martinez Canillas
2015-08-09 22:44   ` Andrei Gherzan
2015-08-10  7:48     ` Javier Martinez Canillas
2015-08-10 21:27       ` Andrei Gherzan
2015-07-30  8:34 ` [meta-raspberrypi][PATCH 3/5] sdcard_image-rpi.bbclass: Allocate more space for boot partition Javier Martinez Canillas
2015-08-09 21:17   ` Andreas Müller
2015-08-09 21:18     ` Andreas Müller
2015-08-09 21:57   ` Andrei Gherzan
2015-07-30  8:34 ` [meta-raspberrypi][PATCH 4/5] linux-raspberrypi: Add a 4.1 linux kernel with vc4 support Javier Martinez Canillas
2015-08-09 22:54   ` Andrei Gherzan
2015-08-10  7:59     ` Javier Martinez Canillas
2015-08-10 21:35       ` Andrei Gherzan
2015-07-30  8:34 ` [meta-raspberrypi][PATCH 5/5] rpi-default-providers: Switch providers according to used gfx stack Javier Martinez Canillas
2015-08-03 20:14   ` Andreas Müller
2015-08-04 16:17     ` Javier Martinez Canillas
2015-08-04 16:55       ` Andreas Müller
2015-08-05  6:25         ` Javier Martinez Canillas
2015-08-04 19:01   ` Khem Raj
2015-08-05  6:34     ` Javier Martinez Canillas
2015-08-06  2:54       ` Khem Raj
2015-08-06  6:59         ` Javier Martinez Canillas
2015-08-06  7:41           ` Andreas Müller
2015-08-07 10:45             ` Javier Martinez Canillas
2015-08-07 11:30               ` Andreas Müller
2015-08-07 11:32                 ` Javier Martinez Canillas
2015-08-09 23:05           ` Andrei Gherzan
2015-08-09 23:37             ` Andreas Müller
2015-08-10  8:22               ` Javier Martinez Canillas
2015-08-10 21:30                 ` Andrei Gherzan
2015-08-12 14:59                 ` Javier Martinez Canillas
2015-08-12 17:15                   ` Andreas Müller
2015-08-12 20:22                     ` Andreas Müller
2015-08-13  7:22                       ` Javier Martinez Canillas [this message]
2015-08-13 15:43                         ` Javier Martinez Canillas
2015-08-13 16:00                           ` Andreas Müller
2015-08-13 16:20                             ` Javier Martinez Canillas
2015-08-10  8:04             ` Javier Martinez Canillas
2015-08-04  9:16 ` [meta-raspberrypi][PATCH 0/5] Add support for 4.1 kernel with vc4 DRM/KMS driver Petter Mabäcker
2015-08-04 16:07   ` Javier Martinez Canillas
2015-08-05 20:48     ` Petter Mabäcker
2015-08-06  7:03       ` Javier Martinez Canillas
2015-08-09 23:01         ` Andrei Gherzan
2015-08-10  8:02           ` Javier Martinez Canillas
2015-08-10 21:34             ` Andrei Gherzan
2015-08-10 21:54               ` Javier Martinez Canillas
2015-08-10 22:00                 ` Andrei Gherzan

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=55CC45B7.4010603@osg.samsung.com \
    --to=javier@osg.samsung.com \
    --cc=derekf@osg.samsung.com \
    --cc=mchehab@osg.samsung.com \
    --cc=schnitzeltony@googlemail.com \
    --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.