Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp990766imu; Fri, 11 Jan 2019 12:50:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN6IUfQeY0p/qlCLW2g9cKsCidjzUmbOWCcU7c9uoN4ZTglqy7NrpGztRkcSl7OhywdKaLXA X-Received: by 2002:a65:4049:: with SMTP id h9mr14484096pgp.304.1547239859861; Fri, 11 Jan 2019 12:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547239859; cv=none; d=google.com; s=arc-20160816; b=VBHomkMwUmDZ5j6liBjtjfNgUovWnPP54anGoFHPM6QaH/rNO3DWI9Q27lKWO1hNAd IIA5+JA/KwC8cGGmuewSjyszzYjp/3s8H1MxfFmqvjltOSjNpTirYuy0Pnu8pTVJJD+7 DehWLuGPTgO52uE84eHyFjEAWHc5SM2++GvrNhWFoxrrGzLgs/MDNz5L63MM9DJGe8Tu f2vAgyPwv9Gp8KMLZCtn+F2FZIdKdeeaenMttevcX+Bjbr4ZacthG6skMXkUASHMJzmM aDwG0EQDCe59bWYy6RgZOjqbYVpf2DGnyV7BOzO1bg0sRDemhePl9+WgoLqXpBpTnlSR qwVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=6wMgXafFFUFrYlvDEIj9E0faaXZqSGprP2QKOPJRqGA=; b=kH8CSz6eTrCxghGmadXxQAT3ATpc7l56KTR3Wpr+1lJ+fbop/Qk3hHRrM+SsSe2Q+E pCk7Y/FAe0pARTJC+1LW9zo2DHH8FDTFCfwF0orTpbTP6ZJNJmz5IN7iVskJ5UQmugR5 5nZj+QOyUqpyjX+UpKu2+10zPnx+ImaeSKifFzK7iXroMjhteoLUjJvMs9ljz99t4ueA OVB8gbLefG4l7Zrtl947NuOambDSdzPXNkxtGnd3wo8f5/CWR8qoh74YVTeOxSwdMSbl itypflA6z1Q6zCO28v/mTUfCCYcrNPy+ejWIXZemDNXwRy4to1Z3wbxHL6VSDDsYzeeC RafA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si72575201pla.361.2019.01.11.12.50.44; Fri, 11 Jan 2019 12:50:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732779AbfAKPyT (ORCPT + 99 others); Fri, 11 Jan 2019 10:54:19 -0500 Received: from mail.bootlin.com ([62.4.15.54]:59189 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730850AbfAKPyS (ORCPT ); Fri, 11 Jan 2019 10:54:18 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id C2CF6209BC; Fri, 11 Jan 2019 16:54:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-45-241.w90-88.abo.wanadoo.fr [90.88.163.241]) by mail.bootlin.com (Postfix) with ESMTPSA id 95F6B2074D; Fri, 11 Jan 2019 16:54:16 +0100 (CET) Date: Fri, 11 Jan 2019 16:54:16 +0100 From: Maxime Ripard To: Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maarten Lankhorst , Eric Anholt , Sean Paul , David Airlie , Thomas Petazzoni Subject: Re: [PATCH] drm: Auto-set allow_fb_modifiers when given modifiers at plane init Message-ID: <20190111155416.otv563wki5rzhp4u@flea> References: <20190104085610.5829-1-paul.kocialkowski@bootlin.com> <20190107104916.GJ21184@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="35vpbccfsjw7nhln" Content-Disposition: inline In-Reply-To: <20190107104916.GJ21184@phenom.ffwll.local> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --35vpbccfsjw7nhln Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 07, 2019 at 11:49:16AM +0100, Daniel Vetter wrote: > On Fri, Jan 04, 2019 at 09:56:10AM +0100, Paul Kocialkowski wrote: > > When drivers pass non-empty lists of modifiers for initializing their > > planes, we can infer that they allow framebuffer modifiers and set the > > driver's allow_fb_modifiers mode config element. > >=20 > > In case the allow_fb_modifiers element was not set (some drivers tend > > to set them after registering planes), the modifiers will still be > > registered but won't be available to userspace unless the flag is set > > later. However in that case, the IN_FORMATS blob won't be created. > >=20 > > In order to avoid this case and generally reduce the trouble associated > > with the flag, always set allow_fb_modifiers when a non-empty list of > > format modifiers is passed at plane init. > >=20 > > Signed-off-by: Paul Kocialkowski >=20 > The automatic primary plane drm_crtc_init() creates doesn't set this, so > looks correct in all cases. >=20 > Reviewed-by: Daniel Vetter >=20 > (boolin.com has a bunch of drm-misc committers, so I'll leave pushing to > them). Applied, Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --35vpbccfsjw7nhln Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXDi8KAAKCRDj7w1vZxhR xeM8AQDB9O4Fg8A3CxY2GJsmFp1+ISyTd1kgJbLcB7c58IQtxwEAr8Eqeq40Xgzf yzjEdWojD0xRb1/8xYstm23q9tYszQ4= =HckO -----END PGP SIGNATURE----- --35vpbccfsjw7nhln--