Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp773477img; Tue, 26 Feb 2019 08:22:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IZB85mxSfJUu6JisVOjiSJ1HaGdyXJ+lpwn7TeJGPocadAjajgQdaaKszux9aJALS+QyNs1 X-Received: by 2002:a62:e017:: with SMTP id f23mr26580287pfh.152.1551198121493; Tue, 26 Feb 2019 08:22:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551198121; cv=none; d=google.com; s=arc-20160816; b=UoloQlv2aO2dDsT9ppvaxdN1sVKW8hnkSVHco++0COZ5ayStW2w4Z736MTpemtCAZG 9OtlUhhdNn++d76jU+bF5hboY9Ss85V4Dh9oofeO1djhKrvLS22bEcCCK2OnaYLkIgTx eFAfXjU+uhedkvcg5SCeLtUABfcRNITPpBZezfwc54uosUyBMR9RDPCbJEqji7f5vUdj iiL3LVCHeXZx1W2JV//s0CRyqsvNqc3C7QOmTG2cgk0Yvag3uKq1oMpBtKlqWTCINzfs HAcOqftCeQ2gJw/wnmtrgBIuOXn7rUn9luvcguLGAAXcv+ZzAVUyddDn7zdBbK8ZrCJf SfTw== 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=NCvjvxRYhuY0SvB1vNzKgYMGI898imZNUT9UDgs1vHI=; b=Vvwepf7wrzn4KxtKf/8r6fJzaNci3I0Zl2GRkTLxOQzwe+HbeEbZ7S7O+GR2/eA9Ib 179TWeP1L77LjHsPigeoKeMyeNykQsB+NvaYYQpsmKgMZK0e9yLAu5vWB34FL6f+fPxs mu4TpXmcpQzR8ekLIyX28SMD3RAF1Xi7CfB2afzrhkFRHiSICPCj8sMz++xn4px4HBfh AvmfnTZlm1kyeF//P208q5tLFiNZLgfV/FCJeNe6t5jO/yu3BX/aLSmvXQw8oRl5ZNnu 7utvTLSw36YW2dhl3UN3aVz12iJbBU5THKh6Bz1cSU39a7F3nKkakHhhRnMMfxYrWVmT GhFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=CGA5dnDW; 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 d2si13154785pla.81.2019.02.26.08.21.46; Tue, 26 Feb 2019 08:22:01 -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=CGA5dnDW; 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 S1728736AbfBZQVJ (ORCPT + 99 others); Tue, 26 Feb 2019 11:21:09 -0500 Received: from mail-eopbgr30060.outbound.protection.outlook.com ([40.107.3.60]:63296 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728668AbfBZQVG (ORCPT ); Tue, 26 Feb 2019 11:21:06 -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=NCvjvxRYhuY0SvB1vNzKgYMGI898imZNUT9UDgs1vHI=; b=CGA5dnDWpWKKQvjqjlHq0NPhjDn/VIPspIX3dtCKYPmkqTV3yK4xylpszhKUE3YrL5Bwm+Db1zM5uO/2PP/vyV3axzO4Bg0QBwhHma2x+T8QSVTqBdqt7eShZOkUELEsL7jdcd6pRAWnqi7jKXuLC9gpuQjncc+j31ZzMUuWFQg= Received: from AM0PR08MB3891.eurprd08.prod.outlook.com (20.178.82.147) by AM0PR08MB3682.eurprd08.prod.outlook.com (20.178.21.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Tue, 26 Feb 2019 16:20:58 +0000 Received: from AM0PR08MB3891.eurprd08.prod.outlook.com ([fe80::910a:5553:5cd9:6b41]) by AM0PR08MB3891.eurprd08.prod.outlook.com ([fe80::910a:5553:5cd9:6b41%4]) with mapi id 15.20.1643.019; Tue, 26 Feb 2019 16:20:58 +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" CC: nd Subject: [PATCH 07/10] drm/arm/malidp:- Writeback framebuffer does not support any modifiers Thread-Topic: [PATCH 07/10] drm/arm/malidp:- Writeback framebuffer does not support any modifiers Thread-Index: AQHUze9B968JoGHcgkazxxZzNLshmg== Date: Tue, 26 Feb 2019 16:20:58 +0000 Message-ID: <1551198042-4314-8-git-send-email-ayan.halder@arm.com> References: <1551198042-4314-1-git-send-email-ayan.halder@arm.com> In-Reply-To: <1551198042-4314-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: LO2P265CA0244.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::16) 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: 19a7491c-8aba-4a9c-529b-08d69c0663f2 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:AM0PR08MB3682; x-ms-traffictypediagnostic: AM0PR08MB3682: nodisclaimer: True x-microsoft-exchange-diagnostics: 1;AM0PR08MB3682;20:tQfb0VCRg1XN0fdaOprGACQiTeoNSNHAWdLPHGydenoiyqjUf8M/9TBgRBp8r6Ev2ItMcihePkH+CGIA1aEcsWBW9gGdn/QWZtIt7GzbQ7dM94tM/hJfo9e7OPofDqF8IIBME5zoNrceRXdqxV3RwFcEcH8Q5qGDITUaIsQTF7I= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(346002)(376002)(39860400002)(136003)(199004)(189003)(6116002)(8936002)(50226002)(76176011)(2906002)(99286004)(36756003)(25786009)(2501003)(97736004)(52116002)(3846002)(4326008)(68736007)(11346002)(256004)(14444005)(6486002)(446003)(6436002)(478600001)(44832011)(2616005)(486006)(476003)(26005)(105586002)(186003)(53936002)(6512007)(66066001)(7736002)(305945005)(102836004)(316002)(110136005)(71190400001)(81156014)(81166006)(71200400001)(386003)(6506007)(14454004)(5660300002)(106356001)(2201001)(86362001)(72206003)(8676002)(921003)(1121003)(309714004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR08MB3682;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: zwDHDanXBdU8zSD4I3GeUoQHzhzsaSbWwjXg+KYKK5vH1xB4WSwwdwh9w6k5gexgtvjV+XadQes7ImLIocJUlWs2bl3Ln5Mh9O03pc2B1PC2G/nKk5uBM78hdaLag23kWzThCXxRNkIpa80tQyS0pXZKt98lbLznLQfUXqMDQO7nvgjUX/hxC0qIpvJsIUGLDizsrFd/A3Qke0rJ5BdHWtibjw+ftLpItQ2NnPoL1zBT8AIboSTOOwluoYEu2DA3JJdronq30YRKp227onuOUXKpll/1BrXeLLUNwZGopZD7rRpkE/Uk+AEojSZhKORdnXr/7wSwSbfCmpFWf31Lxyw0zmurXg4JpARSBONWkYf2dXtPAHHLjr201i+azJ8IJvwdygMivmA+z8M+u4BQtFV3x1B45ShJDl4leKjYDsw= 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: 19a7491c-8aba-4a9c-529b-08d69c0663f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 16:20:57.8164 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3682 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. Signed-off-by: Ayan Kumar halder Acked-by: Liviu Dudau --- 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