From patchwork Tue Nov 28 02:27:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyun Kwon X-Patchwork-Id: 10078551 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 91AB56028E for ; Tue, 28 Nov 2017 02:41:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8046F290D5 for ; Tue, 28 Nov 2017 02:41:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7294E290E8; Tue, 28 Nov 2017 02:41:56 +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 EE8C3290D5 for ; Tue, 28 Nov 2017 02:41:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 21C826E424; Tue, 28 Nov 2017 02:41:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 852 seconds by postgrey-1.35 at gabe; Tue, 28 Nov 2017 02:41:53 UTC Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0043.outbound.protection.outlook.com [104.47.32.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 86C436E424 for ; Tue, 28 Nov 2017 02:41:53 +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=FlhurKCZwfLy3DokcV9HBzF2ezqxu6Tzjbpi0AIkvB0=; b=UsG5cA/mxeE8GZQhWy8QuUgDgWwKtYGQkNVL253RYGjLMwITqQh5IGXIhzvvjyKGMKKFy79AoPjL5kiVSmOL+aE19I032JR8r/doAm2naP7Ar226hAmiTm5rWQT1Fab5NIoXYCGALX5THVxDEM2BS+HtjYjaQQoTySk6fwJDt8Q= Received: from MWHPR0201CA0086.namprd02.prod.outlook.com (10.167.161.27) by BN6PR02MB3266.namprd02.prod.outlook.com (10.161.152.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 02:27:39 +0000 Received: from CY1NAM02FT028.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::206) by MWHPR0201CA0086.outlook.office365.com (2603:10b6:301:75::27) 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.100) 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.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT028.mail.protection.outlook.com (10.152.75.132) 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]:44452 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eJVcW-0003NY-Qm; 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-0000GC-K5; 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 vAS2RZNe025651; 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-0000G3-Eq; Mon, 27 Nov 2017 18:27:35 -0800 Received: by xsjhyunkubuntu (Postfix, from userid 13638) id 6E3392C6874; Mon, 27 Nov 2017 18:27:35 -0800 (PST) From: Hyun Kwon To: Daniel Vetter , Jani Nikula , Sean Paul , David Airlie , Subject: [PATCH 3/3] drm: fourcc: Update DRM Framework with new fourcc codes Date: Mon, 27 Nov 2017 18:27:33 -0800 Message-ID: <1511836053-9489-4-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.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(39860400002)(2980300002)(438002)(199003)(189002)(52956003)(4326008)(106002)(107886003)(45336002)(356003)(6266002)(46386002)(48376002)(47776003)(50226002)(50466002)(81156014)(81166006)(305945005)(8936002)(8676002)(5660300001)(103686004)(63266004)(189998001)(110136005)(478600001)(54906003)(106466001)(36756003)(42186006)(33646002)(16586007)(90966002)(51416003)(2906002)(2950100002)(50986999)(316002)(76176999)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB3266; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT028; 1:UpMEm/0Yko32DpugY2iA7yDWm+nJGUGQT8xyPm095CQwJkI0gw6zQhJAMW5SSokU23kCKRnmyLHtoHBvmdsoF0dRrPRb8Fl7IR0JuQB5acYR6zzxYhKdassxRNPFmeiI MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e3d02678-9766-406b-8915-08d5360797a6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:BN6PR02MB3266; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3266; 3:vYkYSVmknFM0jjJFDHvPx/hq78fMECwmo5C8atRc5u4JbsujL52WqQ8rhUpsZwfO7KdUcQ4CS44SfTD+GYoPzvtjHF2weOKlTXI7eG5vGPQwKGUWr9jOrJgk8UkKgi4jEnzukH0jAPsX2dsvmbnaTWdvNKykNWu2ccodrG0iVL9Zr0n5xAExZMTyVgKV+gs0y5uecjNpE3Ujf+B0NYmkzp3dJXSa8nJayA1NI8eNByi/Do8UvAfjWzNRgzDAFA6/GVzh1fYGqRyd4VcAUSxdr4ouMqmcd6AsXoG/cIGvssJAx9s5KH7Wp3WGdWNu3b4ZaSd5SXJKjVLnXjepuJPxx70UfHfkhmooTcH5VUkoa4c=; 25:SLuWcIyWlJ8H2ISPYVtSgf5KmAeR9puYikFPoRZ2H0yxSX13P1hjnUffeySf9VlP3f892HF/xxgFT/3sITgyV1gcRu+lwSAQ0Mus3uI5YGcbgw5Y2F1Ksg0BQml8NqG2cmAvFiGSyVWu3mWUwCiunCPN8dINGKRQEUPaGoiPSRYihL9bKj4CiplVAcen5Q51iTYmNt2OXqRO+UpyMVCP6Z7IadL2QSkag0dkeD0vxEE01Clkl+XYpCN8XIOtyjvw+/+kK50NxZoZlj1iuUyuo95VlU54ia4CZ8YCjzRgTZIUTjfNQmz+t/l3dslZKTECqxBkR6XkS+341XlWZsXmRg== X-MS-TrafficTypeDiagnostic: BN6PR02MB3266: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3266; 31:TPpeJ62KrQmR7lb43Y3hHB7vdYeHQLohbhVzLVry6DbfNrbl8VPrK2BcwWFT6pCI4ztKjOvKv3+ew/5IE4eTndDW9C6iGQ+hbZVq+zNKK91tmjAN7ZjlOGUqJzUjRbNqiCzRx857OvU03HMpTeia0jjplL6sF7z3DIjunrvnxxs7nfFpOoyedq/TEg67RswULO70Y9rvx3HYhZ2qDjnerH7YZUAN/1ymvZ2ZZFO6htw=; 20:2VakBReUMzsVxpyur6z19WLbJ0Kkevp2pJTzm7qikiA7DBeSzsHiyzmjuPdrJD1V2IgGWXnrGpuqw1cAVAqVIFmgCO19+LvGNrY5yqnsXxvWog3Zu89beSlFEhSrYBbMl2dfcN+c+gUTHZ9oYFkB5H6sjPya13TD5FbxRaURIr1B802JlRD3bh/4jwwrM7KD6RwopyX//Jo5zZHTlbURrYp96d/1C07JtplGHLEm+GIDWlBkOklwb+vqcf2dk4SDjJEIPl13FnB3B1yPhGJjAsIL8HqAZ2Pduijk1feOymNqd8vHoctO3FtNG5BWuUgoni/U4Zg/AjYJISsWFVUU17AA+Yb09mS3zU5sJkHK/RnHoMCvU3xpTrk7Zoy5jBzFhu54BkJIwrXNp+u/22N5QcpU1+NmtM6aKBdV+S3wIiooueuY8aCqOQXxROj+VP/6OvU8K2wmn9+EkgO3u7NYl8dLgDho4hGncuquiyFIztV8A9i+CwZIKaOKeO3zQbQw 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)(3002001)(10201501046)(3231022)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN6PR02MB3266; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR02MB3266; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3266; 4:DX9BpLXsdI17znjU3BGXjMvVLQaEyCzgV5E2vBXJB1ZMNTwmf9IyC+BYn4mi5bZ84lU5bu3Sn6hC0wk780IT6MiEvCknU+F3O5d7CSUreSSUu8ot8GOUZne+4TitiLAMk8CTRB/uIv8+NjCEHeQ/q+fKsV3uH+XWlq4rPRTeGjO9DK480DgqNMPL16co8/up6f6GfxT//GprqFJjoM4octZ3B0QHU0EVYlXVegU1SfPvS6mEDtfEtAvtsm8BpV0xzpvDDqx44F5oBDdj6aKvkItq3fMnAX6lsBJKgAhBrQwi3roT48eIgMA04HopgLY5 X-Forefront-PRVS: 0505147DDB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR02MB3266; 23:BWYmlcyQfFxrmeJCKz40JPFGliMs3bfxKnbOVcrdp?= =?us-ascii?Q?jhxerYz856s/jv3wOLK95RT/mceEKnfRvf6N9J26t5a8CnvQzlhtd1rMr52f?= =?us-ascii?Q?LF+ASl2vWH1V0iRU8/mhqEq/AByrHRj5O/lLxPO+EAs0G6Zqos1iwInuaas0?= =?us-ascii?Q?RE67qRbxWdrSTbGIY78ZQkwFiU+G/uS4DEHN8U1LRA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Tenant-OriginalArrivalTime: 28 Nov 2017 02:27:37.4737 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3d02678-9766-406b-8915-08d5360797a6 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.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB3266 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 New fourcc codes have been added to support new YUV semi-planar and packed formats (including greyscale) needed by new Xilinx Video IP. This patch includes recognition of these new formats in the DRM framework library functions. Signed-off-by: Jeffrey Mouroux Signed-off-by: Hyun Kwon --- drivers/gpu/drm/drm_fourcc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 52afb5e..70342b3 100644 --- a/drivers/gpu/drm/drm_fourcc.c +++ b/drivers/gpu/drm/drm_fourcc.c @@ -168,11 +168,18 @@ const struct drm_format_info *__drm_format_info(u32 format) { .format = DRM_FORMAT_NV61, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .cpp_scale = { 1, 1 }, .hsub = 2, .vsub = 1, .padding_scale = { 1, 1 } }, { .format = DRM_FORMAT_NV24, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, { .format = DRM_FORMAT_NV42, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, + { .format = DRM_FORMAT_XV15, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .cpp_scale = { 10, 8 }, .hsub = 2, .vsub = 2, .padding_scale = { 32, 30 } }, + { .format = DRM_FORMAT_XV20, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .cpp_scale = { 10, 8 }, .hsub = 2, .vsub = 1, .padding_scale = { 32, 30 } }, { .format = DRM_FORMAT_YUYV, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 2, .vsub = 1, .padding_scale = { 1, 1 } }, { .format = DRM_FORMAT_YVYU, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 2, .vsub = 1, .padding_scale = { 1, 1 } }, { .format = DRM_FORMAT_UYVY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 2, .vsub = 1, .padding_scale = { 1, 1 } }, { .format = DRM_FORMAT_VYUY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 2, .vsub = 1, .padding_scale = { 1, 1 } }, { .format = DRM_FORMAT_AYUV, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, + { .format = DRM_FORMAT_VUY888, .depth = 0, .num_planes = 1, .cpp = { 3, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, + { .format = DRM_FORMAT_XVUY8888, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, + { .format = DRM_FORMAT_XVUY2101010, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, + { .format = DRM_FORMAT_Y8, .depth = 0, .num_planes = 1, .cpp = { 1, 0, 0 }, .cpp_scale = { 1, 1 }, .hsub = 1, .vsub = 1, .padding_scale = { 1, 1 } }, + { .format = DRM_FORMAT_Y10, .depth = 0, .num_planes = 1, .cpp = { 1, 0, 0 }, .cpp_scale = { 10, 8 }, .hsub = 1, .vsub = 1, .padding_scale = { 32, 30 } }, }; unsigned int i;