From: Tomi Valkeinen Subject: Re: [PATCH 07/36] drm/omap: Init fbdev emulation only when we have displays Date: Fri, 9 Dec 2016 13:13:11 +0200 Message-ID: References: <1480504658-11775-1-git-send-email-tomi.valkeinen@ti.com> <1480504658-11775-8-git-send-email-tomi.valkeinen@ti.com> <20161130134630.4q6lpfe56tpfyrhu@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0878845533==" Return-path: Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id EFAB16E0D5 for ; Fri, 9 Dec 2016 11:13:16 +0000 (UTC) In-Reply-To: <20161130134630.4q6lpfe56tpfyrhu@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter Cc: Peter Ujfalusi , Laurent Pinchart , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0878845533== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4OQOkvl6GlEhaxd3JSM4cPX57JlLsNp7v" --4OQOkvl6GlEhaxd3JSM4cPX57JlLsNp7v Content-Type: multipart/mixed; boundary="AcQRDXtvrqEBKkKf0uescEX7cJg43bVxB"; protected-headers="v1" From: Tomi Valkeinen To: Daniel Vetter Cc: dri-devel@lists.freedesktop.org, Laurent Pinchart , Peter Ujfalusi Message-ID: Subject: Re: [PATCH 07/36] drm/omap: Init fbdev emulation only when we have displays References: <1480504658-11775-1-git-send-email-tomi.valkeinen@ti.com> <1480504658-11775-8-git-send-email-tomi.valkeinen@ti.com> <20161130134630.4q6lpfe56tpfyrhu@phenom.ffwll.local> In-Reply-To: <20161130134630.4q6lpfe56tpfyrhu@phenom.ffwll.local> --AcQRDXtvrqEBKkKf0uescEX7cJg43bVxB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 30/11/16 15:46, Daniel Vetter wrote: > On Wed, Nov 30, 2016 at 01:17:09PM +0200, Tomi Valkeinen wrote: >> From: Peter Ujfalusi >> >> Do not try to init the fbdev if either num_crtcs or num_connectors is = 0. >> In this case we do not have display so the fbdev init would fail anywa= ys. >> >> Signed-off-by: Peter Ujfalusi >> Signed-off-by: Tomi Valkeinen >> --- >> drivers/gpu/drm/omapdrm/omap_fbdev.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/om= apdrm/omap_fbdev.c >> index 8d8ac173f55d..2b045262f8ad 100644 >> --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c >> +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c >> @@ -255,6 +255,9 @@ struct drm_fb_helper *omap_fbdev_init(struct drm_d= evice *dev) >> struct drm_fb_helper *helper; >> int ret =3D 0; >> =20 >> + if (!priv->num_crtcs || !priv->num_connectors) >> + return NULL; >=20 > Thierry Redding had patches to implement this in a generic fashion in t= he > fbdev emulation (just wait with fbdev init until the first screen shows= > up). Would be great to polish up that work (I've reviewed the original > series already) and land it, instead of driver hacks forever. >=20 > https://patchwork.freedesktop.org/patch/91448/ This is not doing the same thing, or at least the point is not the same. OMAP DSS has writeback support, which can be used in a plain memory-to-memory mode (not yet in the mainline, though). The need for this patch came up when people tried to use WB on boards that don't have any displays. So this was not about deferred setup but skipping fbdev totally if we don't have any display outputs. Tomi --AcQRDXtvrqEBKkKf0uescEX7cJg43bVxB-- --4OQOkvl6GlEhaxd3JSM4cPX57JlLsNp7v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYSpHHAAoJEPo9qoy8lh71FuAP/iVxcX474YbLWD/vlCJGV8RI 6cIxMLGN4ierCDT61VRiDgLhPMWUbqB0g7Vn2hYCMkv2O2+s7fLXQ1Pts/GD8LhY 1dB1Y20b2Kam0254mi+njLc0HGlp5zKJgXHWOXtw1ruHFYiFagzsUwSt4EDlvzdH czvNTJnZCRhqpbccsx9G+sMUBIesEcmDvwCij++jqtrDXqxFwOfs/0W7dH30w6R0 VaZZhBDoJS4ZQKFg9laChkB4HH/hkkHfjtEQ1KpysKkKGk6WO22+e1zWPmx7iK0Y 2PSYGc7lA0ooAsAyJ/Ep0WVUT3dpTeMxswHMpi9UTxWI5b7Dep8iUp85/tF6t0IC fedUWy7CCDFmqB29rZjVyvJwYAA/znI3uwi7n5cpwCZdKCjT2wuVeApJ7Z96bA5N qO1R65oqcsChM2JviNBVmsduoHAVT+Cntd58g9RGrnyOAkmcjvoZX7GzacgTFA0Q 3XAD4+jk2epiAfYsqlIoU/5oGKQ6l4dXThPgeXuxyHnQg6Qk9gv58EXJXZr9++Px aVtBT4HcwyP8dKkV6efuDvIU9RJUz8wlLcZdrBmfQZh3tcM/mqSGryArdhcRrp6r Xa4WUn98MEVP6rrb7/p4aVVpDzRr+dLoEGgjxuIIwDPIpLUhnEck7Sktl2PjdFTz eNOx/zsbvJdNretIecs7 =XfFj -----END PGP SIGNATURE----- --4OQOkvl6GlEhaxd3JSM4cPX57JlLsNp7v-- --===============0878845533== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0878845533==--