mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: narmstrong@baylibre.com (Neil Armstrong)
To: linus-amlogic@lists.infradead.org
Subject: Regression in drm: drm/fbdev doesn't initialize if set to triple buffer
Date: Mon, 10 Sep 2018 15:54:53 +0200	[thread overview]
Message-ID: <2bca95ba-90d3-ec32-8600-aa48d32c8314@baylibre.com> (raw)
In-Reply-To: <d104b771-2999-d56b-ec4e-b792211d55d1@gmail.com>

Hi,

Thanks for reporting this issue.

On 08/09/2018 18:48, MOHAMMAD RASIM wrote:
> Hi,
> 
> I've an issue where the drm_meson driver doesn't work, it used to work in earlier 4.18 release and stopped working after about 4.18-rc3.
> 
> My board is videostrong k2 pro (S905 SoC), I use the meson-gxbb-p201 device tree.
> 
> on the latest 4.19 tree the board boots fine but the drm driver doesn't work, and spits the following error in dmesg
> 
> [??? 2.489825] meson-drm d0100000.vpu: Queued 3 outputs on vpu
> [??? 2.494685] meson-drm d0100000.vpu: Failed to create d0100000.vpu debugfs directory
> [??? 2.502051] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [??? 2.508668] [drm] No driver support for vblank timestamp query.
> [??? 2.573756] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops)
> [??? 2.695917] meson-drm d0100000.vpu: [drm:drm_fb_helper_fbdev_setup] *ERROR* Failed to set fbdev configuration
> [??? 2.700310] meson-drm d0100000.vpu: master bind failed: -22
> [??? 2.705747] meson-drm: probe of d0100000.vpu failed with error -22
> 
> Digging deeper into the problem revealed that the problem is related to the CONFIG_DRM_FBDEV_OVERALLOC option, If I set it to 100 or 200 it works fine and the drm driver works ( or by passing drm_kms_helper.drm_fbdev_overalloc=200 in the bootargs). The problem reappears when setting it to 300.
> 
> Bisecting shows that the first bad commit that introduced this regression is this: 244007ecb6bb94fa4e9b9a969fa86f2ad86ec543

This commit points when the DRM driver has been switched to the generic fbdev emulation.

Do you use the CONFIG_DRM_FBDEV_OVERALLOC to use the fbdev libMali ?

if yes, it won't work anymore since the generic fbdev emulation does not export the fbdev smem physical address anymore.

The solution is to switch to the GBM libMali and drop any fbdev legacy code.

> 
> Another problem that I face and might be related is that the sometimes the boot get stuck on the following lines:
> 
> [??? 2.501539] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [??? 2.508158] [drm] No driver support for vblank timestamp query.
> 
> This problem is random and can't always reproduced, sometimes it takes a few reboots to get the board to boot pass those lines.

Weird, can you elaborate on you complete linux version, patches and HW ?

> 
> Regards
> 

Neil

  reply	other threads:[~2018-09-10 13:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-08 16:48 MOHAMMAD RASIM
2018-09-10 13:54 ` Neil Armstrong [this message]
2018-09-13 16:25   ` MOHAMMAD RASIM

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=2bca95ba-90d3-ec32-8600-aa48d32c8314@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=linus-amlogic@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®