Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6827728imu; Mon, 3 Dec 2018 03:33:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uqev1IhRR/VZq6UEiOK1Kkt4Hl9A2U+BW5VBKT/c4Z+//69uYB2Hw1A7F1gReDz4lrH0Is X-Received: by 2002:a62:b9a:: with SMTP id 26mr15727418pfl.196.1543836826571; Mon, 03 Dec 2018 03:33:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543836826; cv=none; d=google.com; s=arc-20160816; b=laD/tcBKjFOISM5YZNqmAa5tyMK2+vzOTQNhSDP+qK+NZJvfvAvPj3HRLD9UQTlhWx D24eoLe9YCUoUbgnWW0NBc7MCp3TG4wmcfbmH1mlT0LhSs4zY2i1TdrgcHDm5buDRj8x 1cZ1ZuG0wAwhHFlSuv4G/UevPiLw4bCTSfzc/eRgY4KfPc3k8IP5NRhKfxNucXAYsiPF Ix7dBoAPriYer+8J4Ycurr0yquD7PhjvK2eN/1X5goQdmNpJD95+i/Lq+pR90G1OptHn Y7o6ZeA/yN8fgGPa7pzO/sUu/14Gfc0270vmcYXXbwIlGvHq/HEsF9ED96fG5v2qkogT s6Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:nodisclaimer :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=r6drDhfkvq8nS3oZxav6jhfnEcxitoDa29CcdfJF95I=; b=Dp8a6wLAQJEo1STASsTr2kLXfvSCDfzDNiNEpqBssx+1UcVBFLDsc1lGpfJPaAVy2O F6Y41JU2IoHT0qMDgZQUhIK5EWh5TjCNNQo5SFOqZRaNrsKJkpOEI/RL4kgl0g+LEaOV QXf68hZ0JK1iPOM+FqlepS/c8mSirWrHmZWjt8rOND/0CFzjU9jyILDpkgW421NkGrOP IKNmwqAQ2PvBW/Gj3S2XBqtLmSThr17Chn75Bo7YG9aIJlYiLCL9OicsoRXdK5Ifd700 IZpffvMHIhoIWFjkMpjaWwGJ8yU8OFUzBnDG4TVgORQJ/e9q0NnMCviYzZc5aNSoidod Lp9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=Lk8pboFD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si13214175pgn.258.2018.12.03.03.33.31; Mon, 03 Dec 2018 03:33:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=Lk8pboFD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbeLCLcw (ORCPT + 99 others); Mon, 3 Dec 2018 06:32:52 -0500 Received: from mail-eopbgr20042.outbound.protection.outlook.com ([40.107.2.42]:52592 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726386AbeLCLcv (ORCPT ); Mon, 3 Dec 2018 06:32:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r6drDhfkvq8nS3oZxav6jhfnEcxitoDa29CcdfJF95I=; b=Lk8pboFDQbvVUI9hxqx6NS1ZEiECNZg3x9L7CbyfmLLMprSSApfjoqUkhtvyo/PMWcRyJ2wS0xelBdP8tGC5VDaNFywzELipIAcWXHIr2TmxNM8eYWbh5Q8REgrq0qqrKKnmKoh6/aU8Pl3GkqjXij6wSOp2vZyJ738vQ2i5hIQ= Received: from AM0PR08MB3891.eurprd08.prod.outlook.com (20.178.82.147) by AM0PR08MB3491.eurprd08.prod.outlook.com (20.177.108.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18; Mon, 3 Dec 2018 11:32:00 +0000 Received: from AM0PR08MB3891.eurprd08.prod.outlook.com ([fe80::896a:710:2a8c:e2fa]) by AM0PR08MB3891.eurprd08.prod.outlook.com ([fe80::896a:710:2a8c:e2fa%6]) with mapi id 15.20.1382.020; Mon, 3 Dec 2018 11:32:00 +0000 From: Ayan Halder To: Ayan Halder , Liviu Dudau , Brian Starkey , "malidp@foss.arm.com" , "airlied@linux.ie" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "maarten.lankhorst@linux.intel.com" , "corbet@lwn.net" , "mchehab+samsung@kernel.org" , "gregkh@linuxfoundation.org" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "nicolas.ferre@microchip.com" , "arnd@arndb.de" , "linux-doc@vger.kernel.org" CC: nd Subject: [RFC AFBC 06/12] drm/arm/malidp:- Added support for new YUV formats for DP500, DP550 and DP650 Thread-Topic: [RFC AFBC 06/12] drm/arm/malidp:- Added support for new YUV formats for DP500, DP550 and DP650 Thread-Index: AQHUivvODNv595J0pU+YPcE059kyEA== Date: Mon, 3 Dec 2018 11:32:00 +0000 Message-ID: <1543836703-8491-7-git-send-email-ayan.halder@arm.com> References: <1543836703-8491-1-git-send-email-ayan.halder@arm.com> In-Reply-To: <1543836703-8491-1-git-send-email-ayan.halder@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0279.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::27) To AM0PR08MB3891.eurprd08.prod.outlook.com (2603:10a6:208:109::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ayan.Halder@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [217.140.106.55] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR08MB3491;6:7SwkAWzQ7mi0Ht704PRLrDUzkVfUtOkg63EXBtqHu5NNI5qvcUIxDCLiUOg9GWxRIUYKElK5VUkmKTje+uw3CV8S0PvBdEAZ5yJBl9nouRaS6Aeiv44Nsl9U52N61+Fzgah3ZMiGt1veTU/5NRgIPj8V42cPvP4LSF/jdG8B4PN6kpIQMIsJGOt3+7nImlZgZF0y4RX5RPSUkSLcRhXCI4Kj0H4WMPYXsvQyUEz58Uiu58UdqFQEe7EbDYRrvEridLkjJZyWada/Fzt4FGMAlYAfxIUENW0J4h68khPCm3SBeJpH4pcW3ofULeUc538WYCMHcRe76fBQO3X3P/JMA6Xg0yBfEyRb+pPIxivPqi6BqIMdfAonetlejoSQtc2NkSBFLWA7VFlhwkQKwe9Co48uNh2IXFlotyCqRWfJ5v27HOPB25GxlBF+VxNPCWZVRTmiRcAJr8PK6930cY3q0A==;5:UBMOOopCUizkpgi7uBUdTJYnA9UdGm62ozlyH/0jFJ8VQrkNHsDjU8WvWaPI/t49G391jMbdTFWrlU9c68JB14jLkXooefwBFwRmYNT2I7Tv65RfooGmzXV2pvIrgG0X5/z3pB9kd5j+BGsHYqVYEmUk3VyIJVHoUz2Do/D4Ir8=;7:vtdlW3XW/APY8GN6mS6LF1UWT7dh00Z3seLhpDpAwKpc0aL9hNi2q2N+MV1Q+Op9uRp9QRNMW6ljZ9LI19qoxTZGuS+Qfl1vea7DqK0DZcBDWpLhoKTEobObxh2Yxb7QYI2yJYtd4OWBJsknDLOlyQ== x-ms-office365-filtering-correlation-id: ccb35a34-a322-4e35-6537-08d65912f0af x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR08MB3491; x-ms-traffictypediagnostic: AM0PR08MB3491: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231455)(999002)(944501493)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:AM0PR08MB3491;BCL:0;PCL:0;RULEID:;SRVR:AM0PR08MB3491; x-forefront-prvs: 08756AC3C8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(376002)(136003)(346002)(366004)(199004)(189003)(99286004)(4326008)(71190400001)(97736004)(36756003)(71200400001)(106356001)(6486002)(68736007)(72206003)(256004)(14454004)(66066001)(478600001)(7416002)(5660300001)(81166006)(8936002)(7736002)(25786009)(2201001)(81156014)(305945005)(3846002)(6116002)(26005)(102836004)(316002)(186003)(6436002)(11346002)(486006)(2906002)(2501003)(8676002)(14444005)(575784001)(966005)(2616005)(44832011)(476003)(6512007)(6306002)(105586002)(217873002)(53936002)(52116002)(446003)(386003)(6506007)(86362001)(110136005)(76176011)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR08MB3491;H:AM0PR08MB3891.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 8e3avU2jIBZWCZ9uZ+qXH1RCkWpnEXYw5l2UbY0Wq1dDazXXl8oamz+M8W9Yuupm3hNPIL39mLfm3UiIaB9sNJbzhAhWBcIbSuFH3acICqYWyf9BBv9k8efdE329+phufX5TBA7S2CseerkYcctrmoYLa6lA3hxZvNKJIXStYUMx3RUnsqYWJtbsTXSQP2Av+3u3crc71E/IaYJmmO4jMLvoLnIlTHXibGy1vVnlYjsTpe6FQalR3wVOPqKxv2l/STK4g+F991JPuodeLxcvk1nMu1kxHvFgnM6Fv2/s1BcXAgqeb/0RdbsS7knsBCOeSTpZNSuQA9GCuqG89OAwMH7pzoO4d9IQK5YVQzTuEPI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccb35a34-a322-4e35-6537-08d65912f0af X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Dec 2018 11:32:00.5366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3491 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have added some new formats to be supported on DP500/DP550/DP650. Signed-off-by: Ayan Kumar Halder Depends on :- https://patchwork.kernel.org/patch/10460063/ --- drivers/gpu/drm/arm/malidp_hw.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_h= w.c index 55d379b..25ac5890 100644 --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -49,6 +49,12 @@ static const struct malidp_format_id malidp500_de_format= s[] =3D { { DRM_FORMAT_YUYV, DE_VIDEO1, 13 }, { DRM_FORMAT_NV12, DE_VIDEO1 | SE_MEMWRITE, 14 }, { DRM_FORMAT_YUV420, DE_VIDEO1, 15 }, + { DRM_FORMAT_XYUV8888, DE_VIDEO1, 16 }, + /* These are supported with AFBC only */ + { DRM_FORMAT_YUV420_8BIT, DE_VIDEO1, 14 }, + { DRM_FORMAT_VUY888, DE_VIDEO1, 16 }, + { DRM_FORMAT_VUY101010, DE_VIDEO1, 17 }, + { DRM_FORMAT_YUV420_10BIT, DE_VIDEO1, 18 } }; =20 #define MALIDP_ID(__group, __format) \ @@ -74,11 +80,25 @@ static const struct malidp_format_id malidp500_de_forma= ts[] =3D { { 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= ) }, \ + /* This is only supported with linear modifier */ \ + { DRM_FORMAT_XYUV8888, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 0) },\ + /* This is only supported with AFBC modifier */ \ + { DRM_FORMAT_VUY888, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 0) }, \ { DRM_FORMAT_YUYV, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 2) }, \ + /* This is only supported with linear modifier */ \ { DRM_FORMAT_UYVY, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 3) }, \ { DRM_FORMAT_NV12, DE_VIDEO1 | DE_VIDEO2 | SE_MEMWRITE, MALIDP_ID(5, 6) }= , \ + /* This is only supported with AFBC modifier */ \ + { DRM_FORMAT_YUV420_8BIT, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 6) }, \ { DRM_FORMAT_YUV420, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(5, 7) }, \ - { DRM_FORMAT_X0L2, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 6)} + /* This is only supported with linear modifier */ \ + { DRM_FORMAT_XVYU2101010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 0)}, \ + /* This is only supported with AFBC modifier */ \ + { DRM_FORMAT_VUY101010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 0)}, \ + { DRM_FORMAT_X0L2, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 6)}, \ + /* This is only supported with AFBC modifier */ \ + { DRM_FORMAT_YUV420_10BIT, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 7)}, \ + { DRM_FORMAT_P010, DE_VIDEO1 | DE_VIDEO2, MALIDP_ID(6, 7)} =20 static const struct malidp_format_id malidp550_de_formats[] =3D { MALIDP_COMMON_FORMATS, --=20 2.7.4