From patchwork Mon Apr 15 17:28:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Singh Rawat X-Patchwork-Id: 10901281 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 8F1461515 for ; Mon, 15 Apr 2019 17:28:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72A2D28958 for ; Mon, 15 Apr 2019 17:28:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66B7628961; Mon, 15 Apr 2019 17:28:22 +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 4D2C828958 for ; Mon, 15 Apr 2019 17:28:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3563389836; Mon, 15 Apr 2019 17:28:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770079.outbound.protection.outlook.com [40.107.77.79]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FC0E89836 for ; Mon, 15 Apr 2019 17:28:15 +0000 (UTC) Received: from BYAPR05MB5240.namprd05.prod.outlook.com (20.177.231.90) by BYAPR05MB6327.namprd05.prod.outlook.com (20.178.197.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.9; Mon, 15 Apr 2019 17:28:05 +0000 Received: from BYAPR05MB5240.namprd05.prod.outlook.com ([fe80::94c2:bff2:36b7:53b7]) by BYAPR05MB5240.namprd05.prod.outlook.com ([fe80::94c2:bff2:36b7:53b7%4]) with mapi id 15.20.1813.009; Mon, 15 Apr 2019 17:28:05 +0000 From: Deepak Singh Rawat To: "dri-devel@lists.freedesktop.org" Subject: [PATCH] drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only Thread-Topic: [PATCH] drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only Thread-Index: AQHU87CVZ7Wd6J7ReUCKVy33eRTZPA== Date: Mon, 15 Apr 2019 17:28:05 +0000 Message-ID: <20190415172814.9840-1-drawat@vmware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR06CA0054.namprd06.prod.outlook.com (2603:10b6:a03:14b::31) To BYAPR05MB5240.namprd05.prod.outlook.com (2603:10b6:a03:9f::26) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-originating-ip: [66.170.99.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e6234f67-50af-478d-1f1e-08d6c1c7b7e1 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:BYAPR05MB6327; x-ms-traffictypediagnostic: BYAPR05MB6327: x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-microsoft-antispam-prvs: x-forefront-prvs: 000800954F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(366004)(136003)(376002)(396003)(199004)(189003)(14444005)(256004)(14454004)(316002)(53936002)(7736002)(6436002)(1076003)(305945005)(386003)(97736004)(102836004)(6506007)(107886003)(4744005)(478600001)(99286004)(54906003)(68736007)(26005)(2616005)(2906002)(6486002)(6916009)(476003)(5640700003)(6512007)(2501003)(486006)(2351001)(5660300002)(71190400001)(71200400001)(186003)(36756003)(106356001)(4326008)(50226002)(8676002)(8936002)(86362001)(81166006)(105586002)(25786009)(81156014)(52116002)(66066001)(3846002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR05MB6327; H:BYAPR05MB5240.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ZOovwXJ0cbbpraRDjQ6FGK16IitLiFxKG7yx41Gp308spEMBN25Tc76XY7KA8jEdMk63cnHyv0frinAOrCg6e8xttVqU94K1viD3nFkE8oDdCMBphOY5830/FBHdrS/ogMWaAfgeOj7+h1LPDB5rw3ZLJHo0CU+Jb8skjXCGNu7hPXpg1mSANdt4uzMMmBwWxUENEEId4XqWX1StdMXz4+y2XnYv1Nd77JjrnUpfOFdLqeG3rg1aDqsE54S1iMUakf6jDt4f38tQFBro8ervLwH1UYGGDDF+5/IdjgRxNdEGHqZ4Use8H8qy6E3NqqIUtV65T0gUBShw2zsq+iNwYgOaTCmEanvJMyui2wbCd/GWkg6Z4YjZNVp8qvLD/v/AhXrUtfJx9bmNKfllHPnE1y5vRfg2qA4rygQyFIeZBDk= MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6234f67-50af-478d-1f1e-08d6c1c7b7e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2019 17:28:05.2494 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB6327 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yq5NjXdJ3F15eDXTYBRSUjJhhKHLqsvSkdee/CzDUP8=; b=a/oHQ7kpI2fwpGVKEBmn7bTukPJ8duBdg5Ek8dWh71oNd2b0AB3Ghku6Nfvp7AL72eTiaswUa5pxanGonv80NjuQY2SYy6HjPhdWSouYRD1aoksZfA8nQqcYX5IoOQnpJadKLrLMiCZ07UkSIL46+6on1SV2lUPGWI3jXJZLNzI= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=drawat@vmware.com; 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: Deepak Singh Rawat , Linux-graphics-maintainer Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Plane property "FB_DAMAGE_CLIPS" can only be used by atomic aware user-space, so no point exposing it otherwise. Signed-off-by: Deepak Rawat Fixes: d3b21767821e ("drm: Add a new plane property to send damage during plane update") Reviewed-by: Daniel Vetter --- drivers/gpu/drm/drm_mode_config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_mode_config.c b/drivers/gpu/drm/drm_mode_config.c index 4a1c2023ccf0..1a346ae1599d 100644 --- a/drivers/gpu/drm/drm_mode_config.c +++ b/drivers/gpu/drm/drm_mode_config.c @@ -297,8 +297,9 @@ static int drm_mode_create_standard_properties(struct drm_device *dev) return -ENOMEM; dev->mode_config.prop_crtc_id = prop; - prop = drm_property_create(dev, DRM_MODE_PROP_BLOB, "FB_DAMAGE_CLIPS", - 0); + prop = drm_property_create(dev, + DRM_MODE_PROP_ATOMIC | DRM_MODE_PROP_BLOB, + "FB_DAMAGE_CLIPS", 0); if (!prop) return -ENOMEM; dev->mode_config.prop_fb_damage_clips = prop;