Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2320690imc; Tue, 12 Mar 2019 11:18:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1vsLZH7HLyFGMtaIsFz8d8oKXBo1/b30OXReMsqg0wOGfl6P2EhqVstOl1dLWyZdmHoEN X-Received: by 2002:a17:902:31c3:: with SMTP id x61mr40521533plb.113.1552414721415; Tue, 12 Mar 2019 11:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552414721; cv=none; d=google.com; s=arc-20160816; b=XLfxYEvMJrU4ryOELsNCMnt9LIPXxAhIxeuKH6g4UeRDwo9xVCi+qrlRy+8AyZF+9X kvGqwR3EtxwXrltqt20I2IXlMUzrNnIH96CNoTqanIn+bjkXe3xLpvSQ0U1in9FHI/0H RPXFmdRvXc22BpJ1VT/krld2oVS3rtlDczlxbmj/FAGDRcjtOAM9485MI1PXewUrNnI2 8pNTdiTJqfEZ56KlFYr1PQc1lomVJjawmSRX6sYMe1ppIzQQLzG91MPWr926pgUMKnug dzwnBvfES3KLEHAFHvgCZ4SivQ0wFJZ69QycE762mpj+OcfpQkJs5WMaKig52SF2wSuN vL5w== 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 :nodisclaimer:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=4FdoyH16zPNlSN1MgahwgLV80Vj2k45cwN7bSejvm6E=; b=CXdbGJFUBeShzMGfEmQ1Q0XUg3IucBi4mOekx+6vGDhKljDXCWcYhPMenQ2B5JUm+w 158KSTclm9i4F6ZBn+bSgoItCh7E8dSAnvX1HAx22aN4RrTiuOeWX89gdJ5M/HzxkF8k JWJ+O9TX9YmNTZhhg/uW9YIljODubJwKIpDydJNGnE2moL+IgLdCSv3D3l4JR88TJyM8 4ivWNo3aidl0GrsmgjVzP2mKD/Q80d+fiaJ2YC0tbKCpN3bIcHqn8HUlDyBB/7MHIPMW orm5BSdwLMkMCj/QRrYdWEIN/QH18nf3Lj2d0Mmr3HYF7HkxKBu/LjR469Fi4D5mn7hp 7p0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=A5SYVFAq; 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 l10si8638008pfi.230.2019.03.12.11.18.25; Tue, 12 Mar 2019 11:18:41 -0700 (PDT) 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=A5SYVFAq; 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 S1727859AbfCLSQl (ORCPT + 99 others); Tue, 12 Mar 2019 14:16:41 -0400 Received: from mail-eopbgr150058.outbound.protection.outlook.com ([40.107.15.58]:15491 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726809AbfCLSQ2 (ORCPT ); Tue, 12 Mar 2019 14:16:28 -0400 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=4FdoyH16zPNlSN1MgahwgLV80Vj2k45cwN7bSejvm6E=; b=A5SYVFAqHxw09YrBsU2fqAsgm/4niQwgx8ru/H4IV1yk8mltT7JXLOdaovWDUULnR3TH1nTlTLMncAxapnMfpJkGm76NASV+6JEfacWaScqHBdjVB+P6j+UbZEE/BgUpjP2m25VdLxobgzUbsbJehk/HmBVSLUOYz9Tkklbr+y8= Received: from AM0PR08MB3891.eurprd08.prod.outlook.com (20.178.82.147) by AM0PR08MB5138.eurprd08.prod.outlook.com (10.255.30.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Tue, 12 Mar 2019 18:16:18 +0000 Received: from AM0PR08MB3891.eurprd08.prod.outlook.com ([fe80::28b7:8370:ebf7:591c]) by AM0PR08MB3891.eurprd08.prod.outlook.com ([fe80::28b7:8370:ebf7:591c%4]) with mapi id 15.20.1686.021; Tue, 12 Mar 2019 18:16:18 +0000 From: Ayan Halder To: Ayan Halder , Liviu Dudau , Brian Starkey , "malidp@foss.arm.com" , "maarten.lankhorst@linux.intel.com" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "airlied@linux.ie" , "daniel@ffwll.ch" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "alyssa@rosenzweig.io" CC: nd Subject: [PATCH v4 09/10] drm/arm/malidp:- Disregard the pitch alignment constraint for AFBC framebuffer. Thread-Topic: [PATCH v4 09/10] drm/arm/malidp:- Disregard the pitch alignment constraint for AFBC framebuffer. Thread-Index: AQHU2P+vZgoq8mmCOUS97nt3iAxjUg== Date: Tue, 12 Mar 2019 18:16:18 +0000 Message-ID: <1552414556-5756-9-git-send-email-ayan.halder@arm.com> References: <1552414556-5756-1-git-send-email-ayan.halder@arm.com> In-Reply-To: <1552414556-5756-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: LO2P265CA0188.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a::32) 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-mailer: git-send-email 2.7.4 x-originating-ip: [217.140.106.55] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 346417f4-c35e-4f0c-f25a-08d6a716d240 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR08MB5138; x-ms-traffictypediagnostic: AM0PR08MB5138: nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 09749A275C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(396003)(346002)(376002)(366004)(199004)(189003)(2501003)(8936002)(6116002)(76176011)(4326008)(3846002)(53936002)(81156014)(81166006)(106356001)(8676002)(6512007)(102836004)(14454004)(105586002)(386003)(186003)(6506007)(256004)(99286004)(5660300002)(52116002)(2906002)(97736004)(68736007)(476003)(446003)(2201001)(50226002)(36756003)(6436002)(44832011)(86362001)(316002)(486006)(6486002)(11346002)(2616005)(478600001)(71200400001)(45080400002)(71190400001)(25786009)(110136005)(7736002)(72206003)(305945005)(66066001)(26005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR08MB5138;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: j/SGHJzNsYGPCiK9+p7UWAE0LlZWuiwLmh0FMzfJ6u6HY4eRslDjo4saWdS5aUYGCgwLNd8bTYiIOJL6tTieg2BrJBFB7cYETEsYir8FUxzrqU7Sx7S767JFnsrH28VlpRSZXtlPfJUDK6BxXS1M+3F3ZpN6PYhNc8TydpIRuDXhJNQW1+gDuXFpBGSYBIUH2dAu5gJqVU5t//Uz006JH+Y0zeqYejQFp01Q+7OPHWeIdCuYICYYc9QAGHHP3Sr3Z3vgCrNoesxEeaDPtDaaxfxdQHEyWAvj5g9VCINxur3G5rVAQE4+Q49rJxkLT7Rc+eh8Ec8DQIB9fAIbGw2BI7YPQL6y1/truK/S2f6hJwGYAWjP1oL0KfeOcSxOIb27I2BxSffN4pIAkxr9ShcTXiJI7OIecw+L7MoyxfoUvFs= 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: 346417f4-c35e-4f0c-f25a-08d6a716d240 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 18:16:18.1306 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5138 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ayan Kumar Halder Considering the fact that some of the AFBC specific pixel formats are expre= ssed in bits per pixel (ie bpp which is not byte aligned), the pitch (ie width *= bpp) is not guaranteed to be aligned to burst size (ie 8 or 16 bytes). For example, DRM_FORMAT_VUY101010 is 30 bits per pixel. For a framebuffer o= f width 32 pixels, the pitch will be 120 bytes which is not aligned to burst = size (ie 16 bytes) for DP650. Changes since v3 (series): - Added the ack - Rebased on the latest drm-misc-next Signed-off-by: Ayan Kumar halder Acked-by: Liviu Dudau Acked-by: Alyssa Rosenzweig --- drivers/gpu/drm/arm/malidp_planes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/mali= dp_planes.c index 3dc8a6f..044bf7f 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -531,8 +531,8 @@ static int malidp_de_plane_check(struct drm_plane *plan= e, for (i =3D 0; i < ms->n_planes; i++) { u8 alignment =3D malidp_hw_get_pitch_align(mp->hwdev, rotated); =20 - if ((fb->pitches[i] * drm_format_info_block_height(fb->format, i)) - & (alignment - 1)) { + if (((fb->pitches[i] * drm_format_info_block_height(fb->format, i)) + & (alignment - 1)) && !(fb->modifier)) { DRM_DEBUG_KMS("Invalid pitch %u for plane %d\n", fb->pitches[i], i); return -EINVAL; --=20 2.7.4