All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Anholt <eric@anholt.net>
To: Stefan Wahren <stefan.wahren@i2se.com>,
	Stefan Schake <stschake@gmail.com>,
	Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: David Airlie <airlied@linux.ie>,
	Daniel Vetter <daniel.vetter@intel.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [BUG] drm/vc4: *ERROR* [PLANE:67:plane-20] flip_done timed out
Date: Sat, 10 Feb 2018 17:24:34 +0000	[thread overview]
Message-ID: <873728dagd.fsf@anholt.net> (raw)
In-Reply-To: <1014341980.173127.1518278243060@email.1und1.de>


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

Stefan Wahren <stefan.wahren@i2se.com> writes:

> Hi, i'm having problems while booting Raspberry Pi 1 B (Linux 4.15,
> bcm2835_defconfig) on my display, which is connected via HDMI. Mostly
> the screen stays black and i'm getting the following warnings via
> debug UART. Sometimes after disconnecting HDMI, i'm getting the
> expected screen.
>
> [    3.253930] vc4-drm soc:gpu: bound 20902000.hdmi (ops vc4_hdmi_ops)
> [    3.283413] vc4-drm soc:gpu: bound 20806000.vec (ops vc4_vec_ops)
> [    3.310306] vc4-drm soc:gpu: bound 20400000.hvs (ops vc4_hvs_ops)
> [    3.339131] vc4-drm soc:gpu: bound 20206000.pixelvalve (ops vc4_crtc_ops)
> [    3.368727] vc4-drm soc:gpu: bound 20207000.pixelvalve (ops vc4_crtc_ops)
> [    3.397935] vc4-drm soc:gpu: bound 20807000.pixelvalve (ops vc4_crtc_ops)
> [    3.450306] vc4-drm soc:gpu: bound 20c00000.v3d (ops vc4_v3d_ops)
> [    3.475686] checking generic (e330000 8ca000) vs hw (0 ffffffff)
> [    3.475700] fb: switching to vc4drmfb from simple
> [    3.499714] Console: switching to colour dummy device 80x30
> [    3.520255] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
> [    3.527030] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [    3.533779] [drm] Driver supports precise vblank timestamp query.
> [    3.647269] ------------[ cut here ]------------
> [    3.647320] WARNING: CPU: 0 PID: 10 at drivers/gpu/drm/drm_atomic_helper.c:1349 drm_atomic_helper_wait_for_vblanks+0x1fc/0x21c
> [    3.647328] [CRTC:68:crtc-2] vblank wait timed out
> [    3.647333] Modules linked in:
> [    3.647354] CPU: 0 PID: 10 Comm: kworker/0:1 Not tainted 4.15.0+ #2
> [    3.647358] Hardware name: BCM2835
> [    3.647383] Workqueue: events deferred_probe_work_func
> [    3.647429] [<c010fd80>] (unwind_backtrace) from [<c010d0dc>] (show_stack+0x20/0x24)
> [    3.647459] [<c010d0dc>] (show_stack) from [<c07914f4>] (dump_stack+0x20/0x28)
> [    3.647488] [<c07914f4>] (dump_stack) from [<c011f620>] (__warn+0xec/0x104)
> [    3.647509] [<c011f620>] (__warn) from [<c011f680>] (warn_slowpath_fmt+0x48/0x50)
> [    3.647532] [<c011f680>] (warn_slowpath_fmt) from [<c044b564>] (drm_atomic_helper_wait_for_vblanks+0x1fc/0x21c)
> [    3.647556] [<c044b564>] (drm_atomic_helper_wait_for_vblanks) from [<c04815e4>] (vc4_atomic_complete_commit+0x80/0xb8)

Boris's clk series (https://patchwork.kernel.org/patch/10207161/) from
Thursday was trying to fix some of this type of failure.

> Additionally after 10 minutes there are memleaks like this:
>
> unreferenced object 0xc8cb5c00 (size 64):
>   comm "kworker/0:1", pid 10, jiffies 4294937654 (age 881.050s)
>   hex dump (first 32 bytes):
>     10 e0 ca c8 01 00 00 00 00 00 00 00 0c 5c cb c8  .............\..
>     0c 5c cb c8 ff ff ff ff 18 5c cb c8 18 5c cb c8  .\.......\...\..
>   backtrace:
>     [<7c3bc269>] kmemleak_alloc+0x78/0xc0
>     [<c58d2bd1>] kmem_cache_alloc_trace+0xfc/0x1e4
>     [<6ecb9de5>] drm_atomic_helper_setup_commit+0xa4/0x3b8
>     [<e4fdc746>] vc4_atomic_commit+0x30/0x11c
>     [<ab19bb72>] drm_atomic_commit+0x54/0x68

I expect this is just waiting for this commit to trickle in:

commit 1c6ceeee6ebbcdf9839dbce00719162591180524
Author: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Date:   Wed Jan 17 12:51:08 2018 +0100

    drm/atomic: Fix memleak on ERESTARTSYS during non-blocking commits

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

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2018-02-10 17:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-10 15:57 [BUG] drm/vc4: *ERROR* [PLANE:67:plane-20] flip_done timed out Stefan Wahren
2018-02-10 16:40 ` Boris Brezillon
2018-02-10 17:18   ` Stefan Wahren
2018-02-12  9:16     ` Boris Brezillon
2018-02-10 17:24 ` Eric Anholt [this message]
2018-02-10 18:06   ` Stefan Wahren

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=873728dagd.fsf@anholt.net \
    --to=eric@anholt.net \
    --cc=airlied@linux.ie \
    --cc=boris.brezillon@free-electrons.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=stefan.wahren@i2se.com \
    --cc=stschake@gmail.com \
    /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.