From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 C2A7E224B1E for ; Wed, 28 Jan 2026 12:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769601744; cv=none; b=Rfpb98SSbCfo5TnHo6lhCZw1a7oAmx+RQDOWwwdlDs3N/bVcwlSZLRAbG0PqiktGmHESG3+sG3JcxmRVpxUbxdQESgT5UIrVWoA12C3hOhlyRE9SNluRIDpIq1tRtpr2BksJiTKh0q/eL/UpaF9GGcluqrAu+FlNMYmmLWcltCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769601744; c=relaxed/simple; bh=jcpAdFW8m2DWGJ4WfifcR7DYUonhKwmr4xe7E6D6YHQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HRCVqUzJ9SdD8eX7zKgKJXCboCXBZ13zy97ACN+F8IVwwnNnp4iGDFQSmlNpmwuWecpKQVgM5Oaji/em8uyiZNA9FvH7g/6fjjDhBUDU562S1JrD+su0xippxSKerds/tWVYaGsYuHjgNHacoN5ngmbh2I0huRgjvar7lJrqngc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=X8cv1/nq; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="X8cv1/nq" Received: from pendragon.ideasonboard.com (2001-14ba-703d-e500--2a1.rev.dnainternet.fi [IPv6:2001:14ba:703d:e500::2a1]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 2B5E8581; Wed, 28 Jan 2026 13:01:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1769601703; bh=jcpAdFW8m2DWGJ4WfifcR7DYUonhKwmr4xe7E6D6YHQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X8cv1/nq70IPREvnbg4dc+s7r2XTBANiSLpC4GBcr1k21qqIW5mUSVtamI6Dwo14Y zMOxw/0rEwUWOTPhv67kM8uMD7yDF7RjVCwUCYzuCnQE5mb/3BZZ4gF8XpZ8adeKEa fiUsohguM1pPIHuyDKNC8VCProOF1au9HQ6GZHb4= Date: Wed, 28 Jan 2026 14:02:18 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: Vishal Sagar , Anatoliy Klymenko , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Michal Simek , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dmitry Baryshkov , Pekka Paalanen , Pekka Paalanen Subject: Re: [PATCH v7 04/11] drm/fourcc: Add DRM_FORMAT_Y10_P32 Message-ID: <20260128120218.GG2558360@killaraus> References: <20251201-xilinx-formats-v7-0-1e1558adfefc@ideasonboard.com> <20251201-xilinx-formats-v7-4-1e1558adfefc@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20251201-xilinx-formats-v7-4-1e1558adfefc@ideasonboard.com> On Mon, Dec 01, 2025 at 02:18:46PM +0200, Tomi Valkeinen wrote: > Add Y10_P32, a 10 bit greyscale format, with 3 pixels packed into > 32-bit container. > > The fourcc for the format is 'YPA4', which comes from Y - Y only, P - > packed, A - 10 (as in 0xA), 4 - 4 bytes. > > Reviewed-by: Vishal Sagar > Reviewed-by: Pekka Paalanen > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/drm_fourcc.c | 3 +++ > include/uapi/drm/drm_fourcc.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c > index a39b9d7a5b62..0d222f6c1a30 100644 > --- a/drivers/gpu/drm/drm_fourcc.c > +++ b/drivers/gpu/drm/drm_fourcc.c > @@ -388,6 +388,9 @@ const struct drm_format_info *__drm_format_info(u32 format) > { .format = DRM_FORMAT_XV20, .depth = 0, .num_planes = 2, > .char_per_block = { 4, 8, 0 }, .block_w = { 3, 3, 0 }, .block_h = { 1, 1, 0 }, > .hsub = 2, .vsub = 1, .is_yuv = true }, > + { .format = DRM_FORMAT_Y10_P32, .depth = 0, .num_planes = 1, > + .char_per_block = { 4, 0, 0 }, .block_w = { 3, 0, 0 }, .block_h = { 1, 0, 0 }, > + .hsub = 1, .vsub = 1, .is_yuv = true }, > }; > > unsigned int i; > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h > index 5cfc188c4e72..0fd99ae32a06 100644 > --- a/include/uapi/drm/drm_fourcc.h > +++ b/include/uapi/drm/drm_fourcc.h > @@ -469,6 +469,7 @@ extern "C" { > */ > > #define DRM_FORMAT_Y8 fourcc_code('G', 'R', 'E', 'Y') /* 8-bit Y-only */ > +#define DRM_FORMAT_Y10_P32 fourcc_code('Y', 'P', 'A', '4') /* [31:0] x:Y2:Y1:Y0 2:10:10:10 little endian */ > > /* > * Format Modifiers: -- Regards, Laurent Pinchart