From patchwork Thu Nov 1 15:11:29 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: 10664083 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 E2B65157A for ; Thu, 1 Nov 2018 15:11:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D46892C039 for ; Thu, 1 Nov 2018 15:11:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D25092BF9E; Thu, 1 Nov 2018 15:11:36 +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=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 6C77A2C00C for ; Thu, 1 Nov 2018 15:11:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 505B66E393; Thu, 1 Nov 2018 15:11:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30080.outbound.protection.outlook.com [40.107.3.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6C2D86E392 for ; Thu, 1 Nov 2018 15:11:32 +0000 (UTC) Received: from DB6PR0802MB2551.eurprd08.prod.outlook.com (10.172.251.149) by DB6PR0802MB2246.eurprd08.prod.outlook.com (10.172.227.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.25; Thu, 1 Nov 2018 15:11:29 +0000 Received: from DB6PR0802MB2551.eurprd08.prod.outlook.com ([fe80::19ca:93bb:bc0:985a]) by DB6PR0802MB2551.eurprd08.prod.outlook.com ([fe80::19ca:93bb:bc0:985a%7]) with mapi id 15.20.1273.027; Thu, 1 Nov 2018 15:11:29 +0000 From: Alexandru-Cosmin Gheorghe To: "seanpaul@chromium.org" , "airlied@linux.ie" , "dri-devel@lists.freedesktop.org" , Liviu Dudau , Brian Starkey , "malidp@foss.arm.com" , "maxime.ripard@bootlin.com" , "maarten.lankhorst@linux.intel.com" , Ayan Halder , "daniel.vetter@ffwll.ch" , "james qian wang (Arm Technology China)" Subject: [RESEND v7 0/7] Add method to describe tile/bit_level_packed formats Thread-Topic: [RESEND v7 0/7] Add method to describe tile/bit_level_packed formats Thread-Index: AQHUcfUq9iRkU6JyNEGC/xMQPrvKYg== Date: Thu, 1 Nov 2018 15:11:29 +0000 Message-ID: <20181101151051.1509-1-alexandru-cosmin.gheorghe@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0001.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::13) To DB6PR0802MB2551.eurprd08.prod.outlook.com (2603:10a6:4:a1::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [217.140.106.51] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR0802MB2246; 6:mDt5f/nA/i2J7B2UzVpl7ygRVyuEAOL/VMCKOhZ6D6mbRtHJa8AyVsOQrorXFnZloVPzA49ou8JMkJ9Ugui7Lnnp167hHm7AZZcI1gxVW0Lgsl1vcUcFe41mx0G51mXfdiPp5uR5iO4ut4Zrxymcor4j6dUbdAcKgZiyiVLyvOCHAOodnMU5iG6e8WTE8CEuCavMk9tLy9ko877EtG6mmLovgG75XsoWk4MXAoMKuUw9JflL2kX5JTZ5tzTPhW0OMefP1MW6GuYJPuNqyvhUzg3GCH8enB38ti2TjSjVgUSQaUBYimvNQPuHqxW6qhe22KSkG6El/azHFMOaHzQrcr/lus+DNvLaJr7Os9NyGEcdahDc41tvytwigVeivaSiOyvvJPBr0L064FsdN5DrC2qkRrtdpcVHREozY0zLLLzW6zftZ0WBJfIuHWj5VARbb2xtZuILDjF35Ko81/Ldog==; 5:w6D7zLWhWxgxpZLBdxhO6aqdWG3Dev5JXQQs40S81Vz7hfLfvW5j/HF4mzRPZkD4ydCrkMcdWkqQamBBTbvVj/ZRxhr6d8H8opju2Q7G/boYA/BEQa9mraCm2Dx/gtasetGonJKiK/4bBXdS8Uh365yetap13cuXdPXA6n/BhtA=; 7:LbTa//0fa+4e7KEcZsqFGqYVEfwYT5AR5RQVpy0lUyR9I+S3Mb6NAns6xL95zj0P0mOmZl2nTDYFxHQO+br+ZkKieBLZPNAez9Kv0viiz3Lam3UjEjhC6OwtgaE/ogqwd1xagdNkC2u+8wDMKpGNSA== x-ms-office365-filtering-correlation-id: dbced0df-ff15-4853-2f2a-08d6400c4c9b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB6PR0802MB2246; x-ms-traffictypediagnostic: DB6PR0802MB2246: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:DB6PR0802MB2246; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0802MB2246; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(396003)(136003)(39860400002)(189003)(199004)(66066001)(68736007)(486006)(106356001)(6486002)(53936002)(105586002)(97736004)(6436002)(5250100002)(25786009)(8936002)(6512007)(36756003)(4326008)(2501003)(81156014)(478600001)(6116002)(316002)(6506007)(386003)(3846002)(6636002)(1076002)(110136005)(102836004)(86362001)(71190400001)(2201001)(71200400001)(72206003)(5660300001)(8676002)(81166006)(14454004)(186003)(256004)(2616005)(2900100001)(476003)(52116002)(54906003)(2906002)(99286004)(305945005)(26005)(7736002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2246; H:DB6PR0802MB2551.eurprd08.prod.outlook.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-antispam-message-info: efeI0pV4HhzQx1osbn4e9CK0ywXepzxNdH46ysb8r+EYGKBJXG7Z72L7vU8WzQZYVgBWOKyxwhU6npVYutxh5BIJpiCdnNRJAy0D+CEwksvelZI5Zzrqe1KGT0/6XPEGZkW5M8zEmc59w6mcUFNJ2Bs+9O93mfvnxuANPafmaSN3ot+EbRspuOxIdMz+5tMhJ+Z7oyIT0RCYkGEqOX1DM8WncmW1Wyd2Xt/zLPabLmYBRItr4KWPVIhzrE39HAzaDSJWEiM64hFrhjGSatEb43K5sQ6hiC81lqVdAHhRafnapk/GqA6dNyIr9HFbsHeYjm0LZy5UAI+wxoOSe7fpqvI8CTjOSaSGTqLNKcjIg9o= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbced0df-ff15-4853-2f2a-08d6400c4c9b X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 15:11:29.1740 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2246 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 , Alexandru-Cosmin Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Basically, just a resend before I merge these patches in drm-misc-next. Changes since v6: - Collected Reviewed-by. - Fixed author, seems dim it's not smart enough to know "Alexandru Gheorghe" is the same with Alexandru-Cosmin Gheorghe :). - Fixed conflicts against latest drm-misc-next. - Dropped the patches that added the fourccs for AFBC only, that should be merged when driver implementation is ready. Alexandru Gheorghe (7): drm/fourcc: Add char_per_block, block_w and block_h in drm_format_info drm/fourcc: Add fourcc for Mali linear tiled formats drm: mali-dp: Enable Mali-DP tiled buffer formats drm: Extend framebuffer_check to handle formats with cpp/char_per_block 0 drm/selftests: Add tests for drm_format_info* helpers drm: Add macro to export functions only when CONFIG_DRM_DEBUG_SELFTEST is enabled drm/selftests: Add tests for drm_internal_framebuffer_create drivers/gpu/drm/arm/malidp_hw.c | 14 +- drivers/gpu/drm/arm/malidp_planes.c | 28 +- drivers/gpu/drm/drm_fb_cma_helper.c | 20 +- drivers/gpu/drm/drm_fb_helper.c | 6 + drivers/gpu/drm/drm_fourcc.c | 74 ++++ drivers/gpu/drm/drm_framebuffer.c | 13 +- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 2 +- drivers/gpu/drm/selftests/Makefile | 3 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 4 + drivers/gpu/drm/selftests/test-drm_format.c | 280 ++++++++++++++ .../gpu/drm/selftests/test-drm_framebuffer.c | 344 ++++++++++++++++++ .../drm/selftests/test-drm_modeset_common.h | 4 + include/drm/drmP.h | 6 + include/drm/drm_fourcc.h | 61 +++- include/uapi/drm/drm_fourcc.h | 14 + 15 files changed, 857 insertions(+), 16 deletions(-) create mode 100644 drivers/gpu/drm/selftests/test-drm_format.c create mode 100644 drivers/gpu/drm/selftests/test-drm_framebuffer.c