Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2320004imc; Tue, 12 Mar 2019 11:17:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpprtbhRP3Y9xO9hHv5GMSnZ0wueRgeXKhc1g6NxnumXnCB6UQRg1ouxUZJJIw5VobKMvA X-Received: by 2002:a63:bd51:: with SMTP id d17mr6937468pgp.117.1552414672587; Tue, 12 Mar 2019 11:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552414672; cv=none; d=google.com; s=arc-20160816; b=kNtTt9fFcKnkRGYzJaP3joibWDNh1kark2y/0XoIvCoE0KduH+Ms383wPafCjRzDUo YQjBloUGfU/9xTdPvjhy1dHLhTC9E7Gug+5o3Y4/1VOYw9J3EQePGP5n1soWbYO38zFb 3az1Iz2j+5Ca9Hr4KvjljozuIN8uQzdXoMol6W3hiPoEBTTRdQ7ROWevalsvA4l8aqgk sptiOPW3OKbHxL3CmJPogi2xJZkachRR7LKfYFSxsLvxuX/G+FRchQFwP669ZL+XzTqC DSBQOIiQOG9+us9OAf6kozkGRrA7mahV19ctcTj6B9qiQ8JhKDk6rPQk3SCrVoN80FmV Y2SA== 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=qUVm6FrEM58cDY4wGE65id+qa2lGmJePZnMQxhBU2xw=; b=pLQ7o6UXHb0C5pmohe5YEPb1RAaiAoYzqgepMWxJntBHCDVO/DNTRWT5y4q2Ay5+OY QRMSzKOlhepNKn1+itAR2FQNmkSWYH8sPLiZqGQVAZTYfKgbibV3ddBGYDwPk/PMO+pl 3sqXU+te8kGdOyFnkbmy1Jsl9k3yGa56cujzgK1QvA5mx7ZU8iWVFLOlNlXv7YUjuRVT e1snUbVbJDKSIGe4trzzWVQ6W8CvUja6xpwjez4Jl4Dc/wuv1fvQ1hW/RdQ258s1c+9P /GZoYC//4Z8Y0PPm1YyBqSW8mdaTeupjLw+tnr9H6INPvRqi11fgBuHdjQ+jMkVqp1Iy 6v2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=II4sap+H; 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 j7si8899514plb.349.2019.03.12.11.17.36; Tue, 12 Mar 2019 11:17:52 -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=II4sap+H; 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 S1727835AbfCLSQv (ORCPT + 99 others); Tue, 12 Mar 2019 14:16:51 -0400 Received: from mail-eopbgr150088.outbound.protection.outlook.com ([40.107.15.88]:52547 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727218AbfCLSQZ (ORCPT ); Tue, 12 Mar 2019 14:16:25 -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=qUVm6FrEM58cDY4wGE65id+qa2lGmJePZnMQxhBU2xw=; b=II4sap+H7+Ymydk9phpLmM6hIqnHElFWqCSXXhPG94GvhkZb7J1ra2ICGB0RmVOWx9Q1JEl5pRh8D0lgAyQEZecPAdw38KtQgZPQs0hZRwPMDy6fwVkwarDuL7EacaOCdUd3YhZhcuAuktBSS33DDtM407+s+7PM7q3G7vH1d1k= 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:16 +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:16 +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 07/10] drm/arm/malidp:- Writeback framebuffer does not support any modifiers Thread-Topic: [PATCH v4 07/10] drm/arm/malidp:- Writeback framebuffer does not support any modifiers Thread-Index: AQHU2P+u+q3aNL5u6kCjW9T3xbK3zg== Date: Tue, 12 Mar 2019 18:16:16 +0000 Message-ID: <1552414556-5756-7-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: e1804616-1b81-4245-214f-08d6a716d11f 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)(14444005)(2906002)(97736004)(68736007)(476003)(446003)(2201001)(50226002)(36756003)(6436002)(44832011)(86362001)(316002)(486006)(6486002)(11346002)(2616005)(478600001)(71200400001)(71190400001)(25786009)(110136005)(7736002)(72206003)(305945005)(66066001)(26005)(921003)(1121003)(309714004);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: 6MrcEls4rL8xqywusQeKoP5B4KoduF7509v2Y4M0fN5NyC1xMZw38kkDbGRdU2y5AG7ho6FqU2Ta48tUe/NBVl0+4QueHXNASfQVncREVIxzSDEgfVjROifXDC/x6N6m90TCfFiKhSqpKAIzg2FQ2ljI0QJb03FScxuGiTrY1wOGiCo0Omz9b7Odo2AgclbmqSBjz0fl1GqKvzoj4aUmUyNC3yEdxrvXo4NukcN9UobAD9+gRIbkdZSBvKGTRYp9JR7vaAwWAj6lvaOiF/LHyJtddkZnvPFMqiXo8UPPgl8lsprFgaIXtO83zhdofc7XRAG0q6kkmKB7COoQv2JTJ39NpbK7+2h2A4i1Ahk0a3E8nCzDnrWc3rXFnE7S1VztyxOcL/NDyasZZIeFr2jOBtHM1Og//BJ+SlYoeQX4u4Q= 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: e1804616-1b81-4245-214f-08d6a716d11f X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 18:16:16.2043 (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 In malidp, the writeback pipeline does not support writing crtc output to a framebuffer with modifiers ie the memory writeback content is devoid of any compression or tiling, etc. So we have added a commit check in memory writeback encoder helper function to validate if the framebuffer has any modifier and if so, return EINVAL. 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_mw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/arm/malidp_mw.c b/drivers/gpu/drm/arm/malidp_m= w.c index 28cd351..2865f7a 100644 --- a/drivers/gpu/drm/arm/malidp_mw.c +++ b/drivers/gpu/drm/arm/malidp_mw.c @@ -141,6 +141,11 @@ malidp_mw_encoder_atomic_check(struct drm_encoder *enc= oder, return -EINVAL; } =20 + if (fb->modifier) { + DRM_DEBUG_KMS("Writeback framebuffer does not support modifiers\n"); + return -EINVAL; + } + mw_state->format =3D malidp_hw_get_format_id(&malidp->dev->hw->map, SE_MEMWRITE, fb->format->format, !!fb->modifier); --=20 2.7.4