Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp399201lqb; Thu, 29 Feb 2024 04:37:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6MX18aP7Phmge6HhV2MPpg1zfuVgv4zoOD/7v3sWF+p+6znC0iQHWEqhkkYDQzOxj8Z/r6JOiWgm5ehGaqJEGuYBYQMdJmo9VxhWMag== X-Google-Smtp-Source: AGHT+IFCRNAgTboFnmLa4TUdpswzcauH5gVPflqJm00qkSLf0t1t1Ls44vMnhsEJHdMa5zO9al+k X-Received: by 2002:a05:6a20:6597:b0:1a0:f3d0:15af with SMTP id p23-20020a056a20659700b001a0f3d015afmr1951983pzh.34.1709210237282; Thu, 29 Feb 2024 04:37:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709210237; cv=pass; d=google.com; s=arc-20160816; b=CE+QLkivnxjlqIRjwgW5mJ4Ovmz5LD54bHuJCh23s0i/fPb7Wrs6w3ftiPijPlbC2X gMIBkBkhvcM0hCutr4NHiz6O+SnevVc+PbBlWJF4WKpTIrH9e6hVJIfqbAukPNHK34sW C7ZB3d7bGJwSzoJZOTZfKW/5TiPV2Bi42+4k/215Gm3skSEBZkzQsarOR0DLtlLEDnky XtZ/P9tF50CJRDv8cyONnyRPCU7t3Yq1OX8VV2y4SmaS+DRVvrDd3ZLBXcXeI9lSwY5E coSo3UkR8/wR4u+tvMA1nTKLjkF9qDSSIcmrug0vFdGmW7+bk5nKYzbSaxscyM/1ELxf /NrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nobUW/vlU2kiIFUHETaFWwk6nm362DyCbuOhOcakNok=; fh=bQVeEsjM48kdTC+Wknd6G9LjrO9idjfnPCqvYjmOFSI=; b=dw82vt3ZwU5B9KM/hB+Fw3Cukxhib/4R05LkV5Ys+4aVuBCT0vEOTe0+u+epFcs29U wY6FDy1GvB4R++rNdc4HHm7j0ywPMUEVhqYJT2EdN493e+fRdfABHV4rrUf1OKOExkoE h9Ffv0IwT0yKnOWu6p769TXmWebFmoQBaj41EORptKOwJ1u05rofdCzEq0InO6t8WjQ+ dJP5lVh3eFOpqOT+zHrZberHGGK7kuaM9UoWqABvbllPhGmi3Xr3PO6sKg4UDuDw3sQN rudMuSC3+Tdn1UkXvw6zyukJvJgGKGLun556P6W7qINfRoUfRfUMNEbslGcy1gI85xn+ upVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jJtylRnJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-86698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i26-20020a63221a000000b005d8be4c1250si1274080pgi.554.2024.02.29.04.37.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 04:37:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jJtylRnJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-86698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 80710B24ED5 for ; Thu, 29 Feb 2024 12:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB5337D3E7; Thu, 29 Feb 2024 12:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="jJtylRnJ" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 543737D3E4 for ; Thu, 29 Feb 2024 12:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709209471; cv=none; b=BOFj4NH79fEFVQjWlk/KegK7pqsvlo8r3w71Uewurbb/U3mPWAmAHAMg1ukg+ot83jGPDxk0FV+SeT/QdMRK74gRJsaVEMbTeABt0bv59gSriDzB7WyaQySE+yXeLoS1eaAe4l2DIab5gxhiBoQ00dbmNI5AsqXTbwszN1zK2Eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709209471; c=relaxed/simple; bh=WVJjUmqwSs0zHzDuQ7kxu0V6KK/JG5zakTpPNxqRQT8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NrUjY1OUYQDM/B0VMVQGH18Y75gLQbowNcd8mOArDHS+wrxkk8lLDXw2WJKmrZoZV0dsX9y4vg5Acp3IkVQEuIbjOGAyUmVzZzWFbsQV3yXTY9iHGg+BEDtCqSP1iGsq8JwwG3P5CEByjBK955uxhSalumIYv4fpw9S9WnTb7tw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=jJtylRnJ; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709209468; bh=WVJjUmqwSs0zHzDuQ7kxu0V6KK/JG5zakTpPNxqRQT8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jJtylRnJWya2iGcxS101Ea2GDKznb3HCoC83fPA/1fB88nTpvRnRncN2Wl6G4gt1z Sr61mxQqKrdU8+ZHx+4KAW3ZRPCWBsq/BiznMRY06Twul/2xPY5Kme/l3H2a0NYS1E BtQyRaSzDLEg2YCtzFWrT8gf93PuSnhyFjHiqvDA/SMIDrOcie2lFsoSd84sW4eB+d ZRn6sH5lXqvD43Oz4x3nEL8zfpWO1B2XPDzv7CiEbfo1gH+DjxQyB+yF2zlTvDqPsZ vpJAJfUt6x6U/9/z+5xVnVS2939NVYZQpLPP83jHkAVouU2mzuWDAgGlsNlyAOJZBe a4f/QhHEYw7fg== Received: from eldfell (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pq) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 7484E3782089; Thu, 29 Feb 2024 12:24:27 +0000 (UTC) Date: Thu, 29 Feb 2024 14:24:26 +0200 From: Pekka Paalanen To: Louis Chauvet Cc: Rodrigo Siqueira , Melissa Wen , =?UTF-8?B?TWHDrXJh?= Canal , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , arthurgrillo@riseup.net, Jonathan Corbet , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com Subject: Re: [PATCH v2 7/9] drm/vkms: Add range and encoding properties to pixel_read function Message-ID: <20240229142426.274ae199.pekka.paalanen@collabora.com> In-Reply-To: References: <20240223-yuv-v2-0-aa6be2827bb7@bootlin.com> <20240223-yuv-v2-7-aa6be2827bb7@bootlin.com> <20240226142343.459f23f7.pekka.paalanen@collabora.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/ljQln9QAxq5Lg3l3VqhE1oZ"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/ljQln9QAxq5Lg3l3VqhE1oZ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 27 Feb 2024 16:02:10 +0100 Louis Chauvet wrote: > (same as for PATCHv2 6/9, I took the patch from Arthur with no=20 > modifications) >=20 > Le 26/02/24 - 14:23, Pekka Paalanen a =C3=A9crit : > > On Fri, 23 Feb 2024 12:37:27 +0100 > > Louis Chauvet wrote: > > =20 > > > From: Arthur Grillo > > >=20 > > > Create range and encoding properties. This should be noop, as none of > > > the conversion functions need those properties. =20 > >=20 > > None of the conversion function needs this? How can one say so? > > The previous patch is making use of them already, AFAICT? =20 >=20 > It's my fault, I mixed the commits (in Arthur's series, "Add range..." wa= s=20 > before "Add YUV support"), but for me it makes no sens to have the color= =20 > property without the support in the driver. Ah, so if there was no YUV support, these properties would never affect anything. Ok, I see where that is coming from. >=20 > Maybe it's better just to merge "Add range..." with "Add YUV support"? >=20 > > How is this a noop? Is it not exposing new UAPI from VKMS? =20 >=20 > It's not a no-op from userspace, but from the driver side, yes. If it all is already hooked up and handled in the driver, then say just that? "Now that the driver internally handles these quantization ranges and YUV encoding matrices, expose the UAPI for setting them." And fix the commit summary line too, nothing "pixel_read" here. Thanks, pq >=20 > Kind regards, > Louis Chauvet >=20 > > Thanks, > > pq > > =20 > > >=20 > > > Signed-off-by: Arthur Grillo > > > [Louis Chauvet: retained only relevant parts] > > > Signed-off-by: Louis Chauvet > > > --- > > > drivers/gpu/drm/vkms/vkms_plane.c | 9 +++++++++ > > > 1 file changed, 9 insertions(+) > > >=20 > > > diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms= /vkms_plane.c > > > index 427ca67c60ce..95dfde297377 100644 > > > --- a/drivers/gpu/drm/vkms/vkms_plane.c > > > +++ b/drivers/gpu/drm/vkms/vkms_plane.c > > > @@ -228,5 +228,14 @@ struct vkms_plane *vkms_plane_init(struct vkms_d= evice *vkmsdev, > > > drm_plane_create_rotation_property(&plane->base, DRM_MODE_ROTATE_0, > > > DRM_MODE_ROTATE_MASK | DRM_MODE_REFLECT_MASK); > > > =20 > > > + drm_plane_create_color_properties(&plane->base, > > > + BIT(DRM_COLOR_YCBCR_BT601) | > > > + BIT(DRM_COLOR_YCBCR_BT709) | > > > + BIT(DRM_COLOR_YCBCR_BT2020), > > > + BIT(DRM_COLOR_YCBCR_LIMITED_RANGE) | > > > + BIT(DRM_COLOR_YCBCR_FULL_RANGE), > > > + DRM_COLOR_YCBCR_BT601, > > > + DRM_COLOR_YCBCR_FULL_RANGE); > > > + > > > return plane; > > > } > > > =20 > > =20 >=20 >=20 >=20 --Sig_/ljQln9QAxq5Lg3l3VqhE1oZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmXgd3oACgkQI1/ltBGq qqesIA//SDMTOE8sWnysIBZUdRItd5TZ91ZmqNqtS+ii91KVr/D8x2O4rcBSnSUz V7Mvp8wbg/SB+t8wQkTHray5MPOrZG15c57GcmjcCQlXkE5DnfsERW+COscvjJ/R KjKN1iI+7xiK4ryAfZ9sSYlcmI5n3hbRu7+WtKtfdL6kAbwBSoJxZq7eCf+l4XrD 0opqh+xsubyLm12HKAMO4igf/CGu5MDwqzBgHDlj0pF4mOwuwGlni5ckV3EUXYLq jkXlvXy/SKqikfJUQTnGagAug7lZN3Zgk8CnrZyd/L1bV0wAUA7flx9Shbzn/2Ot hAy1XVNmKdw2Wj0NuSXXxnkOrm0CQKadOwH5OEEHj+BdlElncKFuNoPjrR7hBNBB 6U+q8hY0WHqQwJ5SQqGvf8Oim8LTXrka3lyAQ2H1hIqxJPtRx5bEsu+rmPOFzdge 7pWSOLi5sf6XlzcBuKwZsZgQJVdXW6FFyB+iQ4GLQ/0++DY04xbcmWRsK5hl4qdt VrR5QXFVI5vF59fQraPeMyFdZPaaiqMVZsdpU68GUgUXNNqyndufxq9yvE1L8KNB EBUIGoy6p/R+W2bd9H5iF3ZHFHU/qcumz4lZA6OxGqAtigRyKa53qzFfSnic2I08 L49A7+kTN6iHXzGrm5/wbEnQsOgt14c42mvApmlVrjC5kyfWGjg= =TZsZ -----END PGP SIGNATURE----- --Sig_/ljQln9QAxq5Lg3l3VqhE1oZ--