Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3639403pxf; Mon, 29 Mar 2021 07:38:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfjCeOtFINz8IDOluOFbfPRDUpq/zTvztXhgLkOA0HbDEipM+apoTskowW7H19NNiyn0np X-Received: by 2002:a05:6402:2ce:: with SMTP id b14mr28788363edx.13.1617028689224; Mon, 29 Mar 2021 07:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617028689; cv=none; d=google.com; s=arc-20160816; b=h8vsqQNPF05ftdlUhYauDmcwP6VQYQVa3KjSYd4Hc206nxHDEp/KJLzdQRuwe8YK6B yULI53BQt1gkrbWfT38q1LjrYm5UW8WXdfg6jxbWyknG8ORt9q/MinAwGmlVgewyoDzx b0vt2bBPkJbe7KS1uIYHNakjm1lUSAMv5hOTi48eEJsRCYU3gTw3B8D9Db7kjb6paoUb E9F5mmLX/Ez8fmDhFKj5N3QI34i4shz+6+lf5ZDMepyhmQcVEzZtk+U8MwJpuTh5JsoX +xbIeMHXFFdiiDRp78az/haaMA5NWqD5kowNkoa27KvJCY28ElJ94KHFh8Z1yhca1wJs 4AKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=m1x7qkeXn/hByih9f1Ls4Wtzy4s/AO+YUDm9O2yD2co=; b=aNAZfQNCdMB5a87Agzww4cBejT3pZWKZwTUrAE1kUnKijlMfvHBwURw5rtwjGkYJMR 5MxDlZDMoKal5u6y9+nML2bWOU00S0goe4/IJ1I8YWqG/z9Fj/jJpmPtp8O1YqXj025I UcSbalfm9De697qvDT87nMqXM54CcTCcIuGnhFY8TRg7mj4CCxydp7gYgYtUkHCXLMei mUk9owSl2w8bFkgUrUYQeA9Orv/oBQ5Zp/wRUkGmALY+SgTZ2GuutNn/C5kGw8KA477W T8W2jP7nI8KAkEr+ZU20dFs4a53l50YyyYAOlJvVMMGoQEhWydAbg9aDyzFH+qKNbF3/ 6ghw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNmUmT2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si14110635edi.363.2021.03.29.07.37.45; Mon, 29 Mar 2021 07:38:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNmUmT2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbhC2Of5 (ORCPT + 99 others); Mon, 29 Mar 2021 10:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbhC2Ofr (ORCPT ); Mon, 29 Mar 2021 10:35:47 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 989C1C061574; Mon, 29 Mar 2021 07:35:46 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 184so16171249ljf.9; Mon, 29 Mar 2021 07:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=m1x7qkeXn/hByih9f1Ls4Wtzy4s/AO+YUDm9O2yD2co=; b=XNmUmT2AuJqL3daZRBsOCLd/wj1scH/Tr13kjsb4aTKAucRiyl49VXv+KxQGJg0ueF ZqF9RZnhle+4heONe+K9NwmDsJg4zVkB3yxqrrQ8CnPjfGMg7HMVbj9beDLh+cHTYgAd hCdQiT6Fn/AG3rYBkv8aXebjl3J2t+VB1jiB3BwDfN9AQJ5YUx0ZYEyPqXKe7F4XaADs p6DwN7ehVMMTiwonRo1XZJjUpNtLR8MVs1zoWE0Q2OK5OgDE3VT2uKMUSmBDcshIpTOn R84o2Wxwquy5BXjIvohdmQKhSd8CZYurjrFe608KfddsTykGDrejNUjPAxCsX0ySh5g0 v1fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=m1x7qkeXn/hByih9f1Ls4Wtzy4s/AO+YUDm9O2yD2co=; b=edHhjprFfr8E2cQa0r7hUECAPgNKo0PdP+SnUh3jdHiEI+idg9YwDjjBIDCiUShqFZ aj9rC+QRG2BTVEncfn+iXD+oGtxE2xDlSriqmXVsL0BWTO0M9MgSKFO3Uo9cQoDaRKxg OpyI3TBDevHQO1DYysh/LajUtpsAe/3RcvbGCcfmpINpHOmNy0j9SGhFfJwbzPhL3izu wD0SR30yxgPoq9xfuiz3U29Wxnr6j9+cpbmP04b7ZlPWuGYLQrRp9nOwKH79PjGF09ik YYRYpATMK5yCGxHa3XYgAwJI2fIuKgmiKxqmS3JOp+/D30gsU6oOyj7zV8+dxAmNpmv8 lw3w== X-Gm-Message-State: AOAM532XjpTELgm6PeggQXOZO4NjDUFuWbilbdFrWO5IXq/Iw1RNn6Au 392/iad8A79eDhg2I47sEqI= X-Received: by 2002:a2e:87d8:: with SMTP id v24mr17567883ljj.387.1617028545041; Mon, 29 Mar 2021 07:35:45 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id b9sm1856028lfo.237.2021.03.29.07.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 07:35:44 -0700 (PDT) Date: Mon, 29 Mar 2021 17:35:41 +0300 From: Pekka Paalanen To: Paul Cercueil Cc: Simon Ser , Thomas Zimmermann , David Airlie , linux-kernel@vger.kernel.org, od@zcrc.me, dri-devel@lists.freedesktop.org, stable@vger.kernel.org Subject: Re: [PATCH] drm: DON'T require each CRTC to have a unique primary plane Message-ID: <20210329173541.00b301ea@eldfell> In-Reply-To: References: <20210327112214.10252-1-paul@crapouillou.net> <1J_tcDPSAZW23jPO8ApyzgINcVRRWcNyFP0LvrSFVIMbZB9lH6lCWvh2ByU9rNt6bj6xpgRgv8n0hBKhXAvXNfLBGfTIsvbhYuHW3IIDd7Y=@emersion.fr> <24LMQQ.CRNKYEI6GB2T1@crapouillou.net> <20210329111533.47e44f72@eldfell> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/fR.=hEM3/j_hKrnsh3EjOJN"; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/fR.=hEM3/j_hKrnsh3EjOJN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 29 Mar 2021 12:41:00 +0100 Paul Cercueil wrote: > Hi, >=20 > Le lun. 29 mars 2021 =C3=A0 11:15, Pekka Paalanen a= =20 > =C3=A9crit : > > On Sat, 27 Mar 2021 11:26:26 +0000 > > Paul Cercueil wrote: > > =20 > >> It has two mutually exclusive background planes (same Z level) + one > >> overlay plane. =20 > >=20 > > What's the difference between the two background planes? > >=20 > > How will generic userspace know to pick the "right" one? =20 >=20 > First primary plane cannot scale, supports RGB and C8. Second primary=20 > plane goes through the IPU, and as such can scale and convert pixel=20 > formats; it supports RGB, non-planar YUV, and multi-planar YUV. >=20 > Right now the userspace apps we have will simply pick the first one=20 > that fits the bill. What would be the downside of exposing just one "virtual" primary plane, and then have the driver pick one of the two hardware planes as appropriate per modeset? Thanks, pq > >> Le sam. 27 mars 2021 =C3=A0 11:24, Simon Ser a= =20 > >> =C3=A9crit > >> : =20 > >> > On Saturday, March 27th, 2021 at 12:22 PM, Paul Cercueil > >> > wrote: > >> > =20 > >> >> The ingenic-drm driver has two mutually exclusive primary planes > >> >> already; so the fact that a CRTC must have one and only one =20 > >> primary =20 > >> >> plane is an invalid assumption. =20 > >> > > >> > Why does this driver expose two primary planes, if it only has a > >> > single > >> > CRTC? =20 > >>=20 > >>=20 > >> _______________________________________________ > >> dri-devel mailing list > >> dri-devel@lists.freedesktop.org > >> https://lists.freedesktop.org/mailman/listinfo/dri-devel =20 > > =20 >=20 >=20 --Sig_/fR.=hEM3/j_hKrnsh3EjOJN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmBh5b0ACgkQI1/ltBGq qqcpcRAAs1a0IDl6xxB5DTNPOLZyQ7AJDT7ctuzZg+ncVnmVeqbz/6t6llDJ5ncT XYu/FBvAq7mTV3PIjzLNi6kRp615ACSlgAJ8jQ5JEflKHwaw99OVOz01exKJUK81 tzdbL+Vqeh4X6WGVb6jqWhCWiUiZhlNf0ztHfhZ20N76dmFqgOvVCfCBLH2WYpin M2J9P8/EJUdmT9O/0dVgb08B7TGrjL4Jazoj7BSGhuloAL9DovPWi6Qw2Ir72TUM 5Vkj6XqmT14+6CBUci+tBz/v5dUUuTrsEb6a+Mosx9AEC8YHz0ua9IxhGVXsOTCv 8lTVFvYtapg4NQmc28VA8AkhvITEiJGZCHRP8H4lFHkmGjUNXXkWjkJKMZsEYL3c Qx4TN72CIACbjirsmtm01m/uS4zqJo0lz96ZgPjzg0+GaqBccQCWygG8VKga9U5X BWcPNuzOIFTlOOGwfyMjOIqgt+JvC+DQlkg8Ch7p/wIzRHvnJDf0RoeZsU5zzio7 /diSITyoHk7r0z40IUA5W+WVQRls8MtH0Ytq1qoEhz308+kOEft4DQa/wQ/I85Ki /teScjJaLSvfwJHdGTVA0pewfre8AtS0/DHiD2waBYZXftQdr0Tx4ynlX7580zUU blqEzXM/SpTJqX2pGHeppPy9BWXjB1dnU9PZCPTTRQe3zDuv9rk= =hKzE -----END PGP SIGNATURE----- --Sig_/fR.=hEM3/j_hKrnsh3EjOJN--