From patchwork Tue Nov 28 02:27:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyun Kwon X-Patchwork-Id: 10078553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E236F6028E for ; Tue, 28 Nov 2017 02:42:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2C8A290D5 for ; Tue, 28 Nov 2017 02:42:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7375290EC; Tue, 28 Nov 2017 02:42:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1E381290D5 for ; Tue, 28 Nov 2017 02:42:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D24B6E427; Tue, 28 Nov 2017 02:42:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 909 seconds by postgrey-1.35 at gabe; Tue, 28 Nov 2017 02:42:50 UTC Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0075.outbound.protection.outlook.com [104.47.36.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id BF7CB6E427 for ; Tue, 28 Nov 2017 02:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4u48mazRI0/La3XtPF+Zq1gksPaK57xQoDLhWAxVBvY=; b=u/sUVAWnQyqcvN65IDJhfHuSmppxgOx3rzUPfOy7uHxvHCe7lrDFDn67mCh8VBlMCPV3BQ9QxjAYbIfQhTDv3bwaNZG+xIaGmddEGDPUyO+B5itSc8VmGYuAex6STIEUwY8p5BRcc/DJE8jEnb1XBNHvtgbGaKIUQcCVxSHrpZI= Received: from MWHPR0201CA0032.namprd02.prod.outlook.com (2603:10b6:301:74::45) by DM2PR02MB1339.namprd02.prod.outlook.com (2a01:111:e400:50c8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Tue, 28 Nov 2017 02:27:38 +0000 Received: from BL2NAM02FT025.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::205) by MWHPR0201CA0032.outlook.office365.com (2603:10b6:301:74::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Tue, 28 Nov 2017 02:27:38 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; monstr.eu; dkim=none (message not signed) header.d=none;monstr.eu; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT025.mail.protection.outlook.com (10.152.77.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.239.4 via Frontend Transport; Tue, 28 Nov 2017 02:27:37 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1eJVcW-0000Un-QF; Mon, 27 Nov 2017 18:27:36 -0800 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eJVcW-0000GB-Kz; Mon, 27 Nov 2017 18:27:36 -0800 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vAS2RZuL025650; Mon, 27 Nov 2017 18:27:35 -0800 Received: from [172.19.2.244] (helo=xsjhyunkubuntu) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eJVcV-0000G2-Eg; Mon, 27 Nov 2017 18:27:35 -0800 Received: by xsjhyunkubuntu (Postfix, from userid 13638) id 69D7F2C6871; Mon, 27 Nov 2017 18:27:35 -0800 (PST) From: Hyun Kwon To: Daniel Vetter , Jani Nikula , Sean Paul , David Airlie , Subject: [PATCH 2/3] uapi: drm: New fourcc codes needed by Xilinx Video IP Date: Mon, 27 Nov 2017 18:27:32 -0800 Message-ID: <1511836053-9489-3-git-send-email-hyun.kwon@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511836053-9489-1-git-send-email-hyun.kwon@xilinx.com> References: <1511836053-9489-1-git-send-email-hyun.kwon@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23494.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(346002)(376002)(2980300002)(438002)(189002)(199003)(106002)(316002)(50466002)(48376002)(8936002)(81156014)(81166006)(76176999)(63266004)(36756003)(50986999)(305945005)(356003)(8676002)(2950100002)(5660300001)(45336002)(42186006)(107886003)(46386002)(478600001)(6666003)(33646002)(51416003)(6266002)(2906002)(52956003)(54906003)(4326008)(103686004)(90966002)(47776003)(50226002)(106466001)(110136005)(16586007)(189998001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1339; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT025; 1:qSlDCuJGW8IxadMbAJ+Z3E/DPn/uV7cetpbEiaQLGQSPfBq/zE9p79XRRtXu8JMv83Ek9E31slYvaABwdatT8NF3jm9u5W0Y6RMzG8Ffc36yjI66iHjLWD641tIU0zwE MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1474d27d-86c2-498e-dee8-08d536079776 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:DM2PR02MB1339; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1339; 3:EVyX7esZUbRu15I1xAdMH4BflZAFt10lGNKHFqSBPDx70Lkb0ho25uLfZ8ftzk/JR9Uift0Z6NHD9IIElT/P8jFk+uNJ3tpAwpDWle4sxZYg9fC9gbZ9MsS5PRsc9a57S0yPQjyqfKHmzRFbVnCHXOL5srmsnl/ZK+BjptXEAUbu2hcJfJYtdcb9Q+Go0B/ZTuaUKouawqwWP7AWNvtYTDFw38/vjt4cOllZ7GsptsDNe4QHA97QyXfoeC+OIdvq5eeC5CpRSprk5nl806gLGkrVpNaeUyWgvtQlrjm8loswdc33DQZ1T0NSIMiN+JgfdIXS9b+PnNsCg4ejMHyJ3HIf8gaHLU6V7jbkpOeCEg4=; 25:y10hpyuCNsCwluMxGYu6ktKP6g1z1C5DM5j+IxdzOMtjpfK9/SsIm1iOT2/FqJVxVy5cYWQk3skYIx6/D/kyqpykEvJaNtvLAmnOGn93/zSmfGaRTB59P3g8sD2N0OcknhqJMnNIa+U83P4mmw92RftDdRHw2Ns5+IH+gPql+5TUoT4fFK6vrP7O53v8KHZWi/Ld6Rh4800j9Gd8BI4rEwuUy5rknI5vDXUkId7y/VK4sTcIePMaOWmiph3Hs72ykNaAy0LejtOHBSpEjV77/aIMbe/JzuZ1TTvP+t4JpUvO7vEBTe+YxmX0pe0QBdzyQBpjqhz9qtPLyJ5n2JLaQw== X-MS-TrafficTypeDiagnostic: DM2PR02MB1339: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1339; 31:v4BH9TGpx3pnUFbZKa0CxtgyAH5KhSCk55v3Fc6LaYIhFoBXEYJotWwxGibzV8JUjxqGSyapo51et5+15nq9zcPFkF/4net3g7l75pAAV4YJDchNbc104YuM1XMrs/xxGItqkRcCX+QlI0zTva7I8FWDIaS4XXtOwcOdAPqp5f2U94vObJ+56lKnCMbrQJtYM12LW5B3x2riy7CmFv6obOvU/lPeGZV8X+4qXSNXOw4=; 20:DsD2v24ZOGgDl9ym7WhAki6NDAYB0pbf7sgpvw9v9i+zbfwtCMdvfN1hAlxm1MlMMzemdrcD/EFkGwsTs9JBqliCLTMup+ypugZ/8C2xvAcJKaS+C2s9BUY4jn/IyO2l32gsCquopqwkMZZPYUFEh4zk8aHo09otTQRjZ8+Sot3Zl55I7ZEO1xA6L2SWKttUaME4uCNuLNuWhk1/6rslXhzNtLaTGyFR6n59ARN7itzfmL9nSpis9QLMoRT4i1o7UbbLxxn8S2BXxlJZk2CCfKosUqpKUWw0fxjVKMRNrpJ5g1cSejPdBKn+VEQEgloeEvsJjyAedasRFhlERbL5llITvYbwnALllof94RrrdPwTwS8T/nVmIsgsbB39V9PNxWgndRdnUp+abOdMvex3KTk4jYN/M+B3I3h18bQeG/XL2FvyZJlXlfT2bjf5lZbDKAf2Ai+26axWTNzB23vyAtSORJKXIsoiotHkIa3iccXTUs78EuOTIZIi6UxEEe8O X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(3231022)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123560025)(20161123562025)(20161123564025)(6072148)(201708071742011); SRVR:DM2PR02MB1339; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM2PR02MB1339; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1339; 4:G4VC1K9XAX7PH7jdhEOBgpXTjnLGB9pfF4bS2Eh8u10jEfU/PSolwu5ZgmWopR5hJDwal4DUJ6MhDfLKkO5wPMOMf/LLjZ19bIRmlrz7PS8b5+xWllhFl86heQ3m5VDH4ibYunx06Fa6VsAEfASzHu0YYpSnLAlrISlkFLMYUVLP5WawpihBZljj2gq/aCYwiXMG6geM6MhKvSUSWVucCeD0MdC1TLX+ILaoxEzG8OlcL3JUTXWBDtbm421NinRxbA/82JpqCOSqOG4W/uBxiFzAKaVmfxRG/zvwg2APFbhryRrKjouz8/C98GBkqA+u X-Forefront-PRVS: 0505147DDB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR02MB1339; 23:wjFt/vw1e8OAVrEUr69hUB7qXB4di6CBWrIu7dVpO?= =?us-ascii?Q?4ehsEugHEZITwb4K9P0/a7CpuRkegca8Z64rp3i/5POpvdb3mkl/XyN2Y8mp?= =?us-ascii?Q?z00dQPtS6OshlzRvhloXSWuUbJz/k9yAqLRH2SO/2eYXnlc/3XOskvWmWBJI?= =?us-ascii?Q?fHkW2bmo2EMKNpOyvMvvtJqXmRjthpQNkb0dqy8XZ5sL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?rhbIzeN99WRKrxI6+a1vQ0wh3jk?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1339; 6:jiaEFGqgxg69p/6CgH6kcqvlBaAzYkK8X9R08tJB/xQKjcy/OhXpc8NrhlCtq7J/62CTc9JEBjIKctzaqz0PlnpjVmdw7OpNQ5ZgltMq/w3tu/IlTQL2qiQwV1CaqVNClPZp20vC/n8i442V4mS2bObfK+fIyEKZPiPWt/HVX0SbeqS8EG4WQ5Lm35+ocjxvuk3NSYVg0t2ksArEU+k7vN44ejc7FR6lpYgV6mUKz2N58MeHe0qV6NIpGHEK2ihSxue7X0uY1AQn+h7NxKzOw4KCozV/SVGdWnMUoNg3hMnmhODlpC0P9P/Ja6dogcALWX3P4As8EOIvMo7aT68AP16TC9VMUAdXiiT/+iORM6E=; 5:AQr2vktzeode6hvHS4MVAMbZdjo7XmRlUIikzk1Ze/YXZXgM8YGsrJ8yQCaegm61Kj8RbiP3CUwNB5OTQettBPwWl77Da3krMW1WcbsKXf3YzfyntYDyB2oCjEXYZsV0/pUIFcfIfrSa7scEeAZ1aZHyB0TlQdDySqSvRRy/9mM=; 24:mZrBCfIkryqVcgkADVZhopHDYB4YDegq/zWBq8VN2SKGmDJ2wkrkS0NSaxyphu3sHQEDKGuUGPuW7ATGZM48mvGG/pS49PMrm6e5O3doa/4=; 7:nstkuIIUTX0550QzlJ5VUh14R8e4TqehCLL1zvZRWcYlXLrX3CDFREGE5V+jJAnBlUJAVffQh+0VN3guG++6bnmabhs1HEGweXOqLGdzFg17syfRfbl0dKd5J9UUxaJTPPy23dy1AuQ6KNtBA0H4AN8dtewU94cI/TiledhCXk6CSxAeEH1Ybo05h47WGxBcz/nhZuoyEFdGCOgHnmsfaEbyqDxHYc7XQAguuFbdAonPL690TOHW5fxU+kiLubhC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 02:27:37.4739 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1474d27d-86c2-498e-dee8-08d536079776 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB1339 Cc: Michal Simek , Hyun Kwon , Laurent Pinchart , Satish Kumar Nagireddy , Jeffrey Mouroux X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Jeffrey Mouroux The Xilinx Video Mixer and Xilinx Video Framebuffer DMA IP support video memory formats that are not represented in the current DRM fourcc library. This patch adds those missing fourcc codes. Signed-off-by: Jeffrey Mouroux Signed-off-by: Hyun Kwon --- include/uapi/drm/drm_fourcc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 3ad838d..83806d5 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -112,6 +112,13 @@ extern "C" { #define DRM_FORMAT_VYUY fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */ #define DRM_FORMAT_AYUV fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */ +#define DRM_FORMAT_VUY888 fourcc_code('V', 'U', '2', '4') /* [23:0] Cr:Cb:Y little endian */ +#define DRM_FORMAT_XVUY8888 fourcc_code('X', 'V', '2', '4') /* [31:0] x:Cr:Cb:Y 8:8:8:8 little endian */ +#define DRM_FORMAT_XVUY2101010 fourcc_code('X', 'V', '3', '0') /* [31:0] x:Cr:Cb:Y 2:10:10:10 little endian */ + +/* Grey scale */ +#define DRM_FORMAT_Y8 fourcc_code('G', 'R', 'E', 'Y') /* 8-bit packed greyscale Y:Y:Y:Y 8:8:8:8 */ +#define DRM_FORMAT_Y10 fourcc_code('Y', '1', '0', ' ') /* 10-bit packed greyscale X:Y:Y:Y 2:10:10:10 */ /* * 2 plane RGB + A @@ -140,6 +147,8 @@ extern "C" { #define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled Cb:Cr plane */ #define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4') /* non-subsampled Cr:Cb plane */ #define DRM_FORMAT_NV42 fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */ +#define DRM_FORMAT_XV15 fourcc_code('X', 'V', '1', '5') /* 2x2 subsampled Cr:Cb plane 2:10:10:10 */ +#define DRM_FORMAT_XV20 fourcc_code('X', 'V', '2', '0') /* 2x1 subsampled Cr:Cb plane 2:10:10:10 */ /* * 3 plane YCbCr