From patchwork Tue Aug 21 18:30:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10572295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59747109C for ; Tue, 21 Aug 2018 18:31:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4578B2AD9B for ; Tue, 21 Aug 2018 18:31:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 432E92AD9E; Tue, 21 Aug 2018 18:31:24 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 EDFA82AD0F for ; Tue, 21 Aug 2018 18:31:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E89806E36B; Tue, 21 Aug 2018 18:31:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70054.outbound.protection.outlook.com [40.107.7.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 968DE6E370 for ; Tue, 21 Aug 2018 18:31:21 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.106.49) by AM5PR0802MB2548.eurprd08.prod.outlook.com (2603:10a6:203:a1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.23; Tue, 21 Aug 2018 18:31:14 +0000 From: Alexandru Gheorghe To: seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, ayan.halder@arm.com, daniel.vetter@ffwll.ch Subject: [PATCH v2 5/5] drm: mali-dp: Enable mali specific buffer formats Date: Tue, 21 Aug 2018 19:30:04 +0100 Message-Id: <20180821183004.6775-6-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180821183004.6775-1-alexandru-cosmin.gheorghe@arm.com> References: <20180821183004.6775-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.106.49] X-ClientProxiedBy: MWHPR2001CA0020.namprd20.prod.outlook.com (2603:10b6:301:15::30) To AM5PR0802MB2548.eurprd08.prod.outlook.com (2603:10a6:203:a1::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c27dcf18-523c-4a09-8545-08d6079449ab X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0802MB2548; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2548; 3:ACfvCQGaxdKSVHTwPZ8ojM4TFgF2we0ky0n6i1vwV9jX1oAJBVP743ZCnGnzBf2Mw1CNsOwxaHAKNFlCKTT+DSjz7pbAL46sH8yGjfqy+H0vMYP+9F2tJCUgGOzNhQIyHQoOLS68Eff4WDTjLwkOiW6oEsfXavAEcyL7dendzeTlyXPzUzssROXPjwG65Vee6kXwn0Z1V2jNk/9qCddDZ10Yt31tNx1txpTc6xGCdwYrMPDC+l84XkJ4t07wbDyJ; 25:JoOFu/Uk3mE4ZnivFBA1hHn4eSTt1gk7EgtDQmXWZ4ctaWkQCsKM+GjrNEvqtfRwRp2EIIpnjq+YF5ErEsWvbDfBTcVPorP5oIhAyRY9bR1aOcACB0wrnWIRXe4yqLAn8JOe9qaztF/PKxo7N9rTKyLeobLNDroZDIoF10uZRuGF8jl11yeSOQt4sOdet688378YLGEJybq1ixnfyjnIJlxder4Vwg2uhURmyi5GCNdmZihHAHHCW+BY4uUruJsQ4K07UC7K9JbUt4DCAuJTtJNPXmOidnLDBgCbQ5bBAVUx3WbWCLu6zUEH7Sd/OxTkj7U0BJmWELnEXT5vUkKA9g==; 31:+cK98tulEhDQAisQzY9b3otj64o+R437M+/uCGadX4Xps1uVnrWWH1rPOiuUyc4UF9zNfvfD0BErz1b96YfU12r6gyIyxnwi6Ksy1/zK9g/nSKN2/gOlgzGB1YG5bL0B+5OJUpR1b4A1IJ/7McZ4g9RR0dwZdo2IVcWe8V9jzsagldUcUT//1eiidY178mdFsZ9ezgU1XVegY9r/G6qd29HszUP7WPvEYJV0vxxEvaQ= X-MS-TrafficTypeDiagnostic: AM5PR0802MB2548: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2548; 20:nKbWnfX1d3sR0RUlo0c4cOLAeKEbH26C3chWasAGScJkm12oX2sOqYnNJZQZvSgBPos6WDBgfiqexXkihRvYH3rKDnQBXPV3R0LzvPhKo/Uxo8fq+S2HrGLoVIzeFpKspwIgp3E9kDF9V2cPkPxVgB1GjuPzoU6jdq0aB02zFPCg55zwvWX4+1xSb8HZLMnWxXx5+GI7RNSiC475SXofvd4Va/EOzWfaY85gT/nsafxYnhU/sFDWFl2rk0HLz4sa7Kpyl40bN68HH7vwKGq1w180WY51H22JMtO/uotvWk/mjj4bGNxtKU0pKMKFyf0m2pKobZZEcnRywp9J9bRLbQ==; 4:hMQcnmpCjWO9Nqydy4jDg2RwsaTESt+uJyYal+XIUgbQHhU+WK3qQECjYF9cX/s28E1uCw+0pqUaRJh83vGdmBnbHAVwjuam8fftKT9ZdaYdrOtvhOZqmprsrFA14FSzKR44FrALuAl9aXhlhVcAjpiVmY1Tw3uyhq3rFFz7hbIrxY7IwHLmza/cic+jiMedViCPzyMCUUlfzmok+VV+BdSkZ32pYugZ00/UyPI6TkLoT3nqIQPaL1AG72FTL2SCP59Nuy3myzCuvXeeMsXt9nU7tzfzIXjrex/9EqDnUz6hAgiKJGJpXE3EuFnSjYqs X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699016); SRVR:AM5PR0802MB2548; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0802MB2548; X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(136003)(396003)(376002)(366004)(189003)(199004)(8676002)(68736007)(72206003)(97736004)(50226002)(36756003)(106356001)(53936002)(6666003)(105586002)(47776003)(16586007)(316002)(6116002)(575784001)(66066001)(2906002)(86362001)(8936002)(3846002)(478600001)(4326008)(1076002)(25786009)(6486002)(7736002)(81156014)(81166006)(476003)(76176011)(50466002)(26005)(186003)(11346002)(2616005)(48376002)(51416003)(486006)(7696005)(956004)(52116002)(446003)(386003)(16526019)(5660300001)(14444005)(305945005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0802MB2548; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0802MB2548; 23:anZPh+kX6UO1FuV4gWBe1rROWwtVyKousNBq3EC?= aiL39yLbWx8Sr35hOm25IQFCH1Bctwi7KkDSNIsbRxqrVb/J+DntYjORbL3wNQuq9z1KjVQcAdc1+TWLLJB+I+7mU3cfT5drq08xPdTe+JO/aZH/exBktYBqI3KBa5xfdvwyVc+ynie8tx3cp/z79q69OFPzklp9R9IEpL48EJrbQRDJF23PSizQA1xdtsKSIbDDq76wS3nY5V15emPdtN1llMZEc1wgE9+6gSq4ZGJ1Y+f+Ct0IQAxx9vXZzwhLWhxJy4uhD81gwWZr2rKK91v8y6vax79gMmnKkh8jV3DBqi+m9i5SuE9/FNgHk+HXL+5dNjdhpnEFOZ71NdFtbsxE/OHugZjOThxoxS1SU73PeCVJ6Qa2ogMsl2SXeOqRVYfeJwktxfb4xQqkAGU7ODm+jyOLtehWHNNNReeb0TCEDFbZxyY7MOUfH0S0FWw+HWGE1YvZQoQxD9ubpfOdPv+Qp1bX9X3+b6/v9bBoW/5R11xT7d203eJbaavj7H4wyOJs2p1mBYUlq+LYW+LsKmI2hmC6kHUJCnJhT6lCBbTQAVTW3XynaMICLr/8zGuvCmHp/YaT74c8kCVza/oxxkfe7hAbewpXu0n8ClQ1IYwO9utdT4INvgsxAndn/+rR0y55MEFWJlsg0mWac5pHRNQOAsGUGlndEpL55Lm8GRebT1awzPuHy46PcwvQopIEj91Z3uby45ZO7oazm0ikwQnzkcQCP07d5z87tkx1p+oTlKgo4A41SUfY2Wr2q30CmQ69PdferuAZ1waxV9rIpf/k9woVBvJ4+vr9D6Tl6y2AmamrIT16mrKcPwkGdWK5brTBsG4MSee+vRWZvliYoUkJ6v/+ugEKRj+F2BOUYYACGZOKk8YTwSwSKHQ2NiLEsZJ4k3AHfXX66Scx1IH6n0qw4F7xFO7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mcO3yO9Vl48JbKLqMYHxoQ4EOHFfdyjbX9luVOiraqeu8cGZiP9BomqGjchyLwgZuxYDqFYBT7Ld7fZPbLmtXT9qmgsY6Bf+ugymygto0RoxSA==; 5:sf7gmCe/RDF6Q/CSzQrBoK38gyi/8z4PJ901l90KWJjcSejsCWvdOIb89SdJGIttg3BbN+6AMIYiZ2iijgmWFjcXaY5vxa1hj/adCtaVIo4LefBMd0B3dNR7sagt5lPf3ZBSW5sbVxRycaA6MY27S12ysR+xQHpAt/BRwVDhEwQ=; 7:9AiLqeFhxcOW3ZXdl5JPNX6j6QZmFkIvYd2WsCdGupYhMfJXdOzyJt9zj9QXZJRk3PXKXRg5fGcjjQodSfWbB3Ddw5dUvP662aa/ZqjyFiUqX3momnrizpmFY356UDvMCXILWsCArhTzoB9DPbROM2PgA7X4xZ1870BNvB53RHK0yMtOtNWDqltSo+Me5mTXEp4dQ/9uz2Pao543m5J31YAZD61mYf3KAon6LB1qfd6Q9PSoWhbFTaXv+L7NI0rU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2018 18:31:14.9939 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c27dcf18-523c-4a09-8545-08d6079449ab X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2548 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Enable the following formats - DRM_FORMAT_XYUV8888 - DRM_FORMAT_XVYU2101010 - DRM_FORMAT_X0L0 - DRM_FORMAT_X0L2 - DRM_FORMAT_P010 Signed-off-by: Alexandru Gheorghe --- drivers/gpu/drm/arm/malidp_hw.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c index c94a4422e0e9..472cae76e19b 100644 --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -74,10 +74,15 @@ static const struct malidp_format_id malidp500_de_formats[] = { { DRM_FORMAT_ABGR1555, DE_VIDEO1 | DE_GRAPHICS1 | DE_VIDEO2, MALIDP_ID(4, 1) }, \ { DRM_FORMAT_RGB565, DE_VIDEO1 | DE_GRAPHICS1 | DE_VIDEO2, MALIDP_ID(4, 2) }, \ { DRM_FORMAT_BGR565, DE_VIDEO1 | DE_GRAPHICS1 | DE_VIDEO2, MALIDP_ID(4, 3) }, \ + { DRM_FORMAT_XYUV8888, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 0) }, \ { DRM_FORMAT_YUYV, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 2) }, \ { DRM_FORMAT_UYVY, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 3) }, \ + { DRM_FORMAT_X0L0, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 4)}, \ { DRM_FORMAT_NV12, DE_VIDEO1 | DE_VIDEO2 | SE_MEMWRITE, MALIDP_ID(5, 6) }, \ - { DRM_FORMAT_YUV420, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 7) } + { DRM_FORMAT_YUV420, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 7) }, \ + { DRM_FORMAT_XVYU2101010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 0)}, \ + { DRM_FORMAT_X0L2, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 6)}, \ + { DRM_FORMAT_P010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 7)} static const struct malidp_format_id malidp550_de_formats[] = { MALIDP_COMMON_FORMATS,