From: Maxime Ripard Subject: Re: [PATCH 05/20] drm/meson: Use drm_fbdev_generic_setup() Date: Wed, 12 Sep 2018 11:56:57 +0200 Message-ID: <20180912095657.rxrqcwfdpegwy4zd@flea> References: <20180908134648.2582-1-noralf@tronnes.org> <20180908134648.2582-6-noralf@tronnes.org> <9ad6c0b1-3f3d-7fcd-3cb2-ac87149b3411@baylibre.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1162964035==" Return-path: Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id AF2216E4EE for ; Wed, 12 Sep 2018 09:57:08 +0000 (UTC) In-Reply-To: <9ad6c0b1-3f3d-7fcd-3cb2-ac87149b3411@baylibre.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Neil Armstrong Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1162964035== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="blei7vl4auxeewa7" Content-Disposition: inline --blei7vl4auxeewa7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 12, 2018 at 11:48:34AM +0200, Neil Armstrong wrote: > Hi Noralf, >=20 > On 08/09/2018 15:46, Noralf Tr=F8nnes wrote: > > The CMA helper is already using the drm_fb_helper_generic_probe part of > > the generic fbdev emulation. This patch makes full use of the generic > > fbdev emulation by using its drm_client callbacks. This means that > > drm_mode_config_funcs->output_poll_changed and drm_driver->lastclose are > > now handled by the emulation code. Additionally fbdev unregister happens > > automatically on drm_dev_unregister(). > >=20 > > The drm_fbdev_generic_setup() call is put after drm_dev_register() in t= he > > driver. This is done to highlight the fact that fbdev emulation is an > > internal client that makes use of the driver, it is not part of the > > driver as such. If fbdev setup fails, an error is printed, but the driv= er > > succeeds probing. >=20 > I can't really ack/nack this move, on one side it's great to have a > generic fbdev emulation instead of the old fbdev code, but on the > other side the Amlogic platform (like allwinner, samsung, rockchip, > ...) still relies on an Fbdev variant of the libMali that uses > smem_start... >=20 > I know it's dirty and fbdev based code should be legacy now, but I > consider it like an user-space breakage... >=20 > I'll be happy if ARM provided it's Mali vendors a Fbdev libMali that > could use FBINFO_HIDE_SMEM_START and allocate BO's from the DRM > driver, it won't be the case and it will never be the case until the > Lima projects finalizes. >=20 > So for me it's a no-go until Lima lands upstream in Linux *and* Mesa. My feelings exactly. If the choice is between reducing the DRM driver by a couple of dozens of lines or keeping the mali working, I'll pick the latter, every single day. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --blei7vl4auxeewa7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAluY4ugACgkQ0rTAlCFN r3R8oA//ZgzO4j4l2GJnqW5T4en8ezgv5cf3zw/2hSiKsr6FPTMae29JjdNrQanL BNfYSWC93SMl0PjqU1LB3l5KF5q1ceyu5k+/Acjn9QtvbHAKpP8ie5PTZlt/JISk nL8+5G3yN76PedS3/CnqTP3BzpGYAd0So5VWixATm4pNctKTsk7SrVuz0VqhnPBy 9eanpgNOs2le8ippaaiA/00iCT6NmSQeSbTpXSq5WYMSeFaQ2ra+cKRwtRDt6tw6 ifFIdNiY1ncu5UIFTpXiigsn1VZMVGJltnuvp/5J/L4ut9/sH2MQVR4j3cgsoc49 q1WuDel6nagTkAG66AESeKhfreMXsH9t7cB+rIOV4KOVZAd/Bj1LFKqeaa96/x1a rbOSItmJSqiimDwVhJS9YFEe3MlTqaPmP/v0fTYCBAi0qvOfHo3MRWWMtLLQ3Ktr AunoytsqjNtrB8L3uMAV2LvAwb0515eA8z45jvveGjcRFo6Os7kmpU+WcGJqUJAq 0nLDZLYL9Hl07HwnveVuWqKIoSHXVkCufsh5l0oftJbJmyilkCpJtQ7jrMRvFuGQ QMIaYQDZIkErFAq5Jriuet4V4n3Rrmpl7I+GOIbs+6d+9I2BB2CyArQAIun0qL7f hl+ljgrdXoSUFdzrrofdGrGcQTkyBzDLMqkOgzqlLv7Z4syO0eo= =1ObD -----END PGP SIGNATURE----- --blei7vl4auxeewa7-- --===============1162964035== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1162964035==--