From patchwork Tue Sep 11 16:13:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kazlauskas, Nicholas" X-Patchwork-Id: 10595845 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 7144414BD for ; Tue, 11 Sep 2018 16:14:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F31C28EF9 for ; Tue, 11 Sep 2018 16:14:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5386E28F5A; Tue, 11 Sep 2018 16:14:06 +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=BAD_ENC_HEADER,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 D69AC28EF9 for ; Tue, 11 Sep 2018 16:14:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43F4D6E3B5; Tue, 11 Sep 2018 16:14:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720074.outbound.protection.outlook.com [40.107.72.74]) by gabe.freedesktop.org (Postfix) with ESMTPS id A54136E3B5; Tue, 11 Sep 2018 16:14:02 +0000 (UTC) Received: from SN1PR12CA0067.namprd12.prod.outlook.com (2603:10b6:802:20::38) by DM3PR12MB0747.namprd12.prod.outlook.com (2a01:111:e400:5984::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.17; Tue, 11 Sep 2018 16:14:00 +0000 Received: from CO1NAM03FT031.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::208) by SN1PR12CA0067.outlook.office365.com (2603:10b6:802:20::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.16 via Frontend Transport; Tue, 11 Sep 2018 16:13:59 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT031.mail.protection.outlook.com (10.152.80.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1143.11 via Frontend Transport; Tue, 11 Sep 2018 16:13:59 +0000 Received: from kazbox.amd.com (10.180.168.240) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.389.1; Tue, 11 Sep 2018 11:13:57 -0500 From: Nicholas Kazlauskas To: , Subject: [PATCH 1/9] drm: Add variable refresh rate properties to DRM connector Date: Tue, 11 Sep 2018 12:13:25 -0400 Message-ID: <20180911161333.5334-2-nicholas.kazlauskas@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180911161333.5334-1-nicholas.kazlauskas@amd.com> References: <20180911161333.5334-1-nicholas.kazlauskas@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(396003)(136003)(2980300002)(428003)(189003)(199004)(110136005)(186003)(8936002)(8676002)(76176011)(7696005)(51416003)(356003)(47776003)(305945005)(50466002)(50226002)(77096007)(26005)(68736007)(5660300001)(97736004)(6666003)(2906002)(1076002)(106466001)(105586002)(104016004)(36756003)(81156014)(72206003)(48376002)(53416004)(11346002)(478600001)(53936002)(486006)(54906003)(16586007)(126002)(2616005)(4326008)(316002)(81166006)(44832011)(446003)(336012)(86362001)(5024004)(575784001)(476003)(426003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR12MB0747; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT031; 1:AotV6y5I5HBYNNAuPZ321h+cZ1QdwyPc6qyz/npT/HuM6gQD4TwcqSYbkMAuyeHyCD8sZcqn+ZE/A/PLi7Sb1NopDayHb2uNr4NLwnK1AKdgl7ae/UxhG2UYzVezf08g X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd7a66b8-2fd4-4768-0994-08d618019541 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060); SRVR:DM3PR12MB0747; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0747; 3:1JpZURGfoI0j1c3hrhSrOxCsmJv8ynq5ORz11OxxSjOy8ZbOCQT6ZKB6hhQrl/Vos9IKScKnrBsNWIS0O9/6CN1WILK0cdQFvy/cMmguwH2m7cATZqpPgv41YGM/agoDpnMhfWCbX5StWPmilC3IEhqP7J3GFLvyk4vkxiZPvhWWgYMBs8pQrGiXwhPdcDOCQwWf6Gxex1JlSgCRjioGm7INQGVlQeJQaqUWnT5E/Ew30rqDqNRkk2IJg0zPdkX9k5+WAS6duJrS97sAQoDZTsHJMf7GxQSzVXb/5NC+OCBLzv504rNuvGvHzugZQmWs7jEw7nkvkP9VpodVW9KZStjmhSHIGq3E1SfBcaG1mpo=; 25:UCiDmoxliNwKP1g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LOtJqZn+G6M7NMXdywuiukLe0w00WMWeIrO0NIVlYLFSS9g4LfZLTbIxcXU5Ledc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93003095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050); SRVR:DM3PR12MB0747; BCL:0; PCL:0; RULEID:; SRVR:DM3PR12MB0747; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0747; 4:hmeNPA6Bp7VhfcduJdsYgj9NpVFBGtacajARAoIXZEF3b5a7Gt3EXZzAKdFrpXWCF9SnlCOkiZW6u/Jl6LhvwrCvFt4yWVqKh3ld5P/MBqJA1CZUb5GfcwZ+hN4wLVFCVeZoQofOlLloNTOyLqmDTn3spDAFCXUg0QcEwpGvYk1jF4/Ri3puGFV2nNnkpaE5yaZyVfv3Rsk66xGggqVBlVPZTwPunSY5mF9rct6K3KLc3yxESyW5uSJTCB9XYzgKfAS07TyueagZIkc9JzkcpK2q0ClGp8JHJqBl6tROpXXNkaKt6UasPxYHi+ReSQTS X-Forefront-PRVS: 0792DBEAD0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR12MB0747; 23:dhz1TwgCqkc70Mi1xmvEUH6EsTkIK0aYr2G6m/YwS?= UX0UQgiOpyCbfJToGHIOH8mt1nRite6VzJY29AWG+j9CPBMiT/wbvfovcyuNmLPR0S9OLwPGvSEv/JjFEDeqO/IS3UaUcJk6iq+mRmxHMa3vWKHKjN4+FR2dXYIAXFtArWTFRIxY+cOrehqXGPMigs3dIr2KjgvxJjOQ5HeEjDvC7j2nkQuRgJZjqS0/ozY1vu4f9UxN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7ug6Vg5chX00uheoKPhthsB1/iHl2jZrdsZoixM3FE7wjPmS3UWxc1MhH04tF2oaDR3NdVa1wTckzlg73TVe7GirI4pp6I0+9YCrd6RkJWk2zgN6uC+hxppc69gy1XovD4gqfmrhJI14PquFoaE8K3lyVKM+NJGR48pMyi2vHnqisBTMMqRW0qZs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0747; 20:jMws1O2f4iBc3IRTJywNK8dyBlyesN0+tKjl+CIA+9ZOgUuOEwkAtdXRC5kkse7NpdGQ2M3Tyvz99mDy1hatteJDL1efsj3A2+tK2WyvhtRvrR+acTMM5yQzt5lnMPxj2959N58l20CaQJq67s+TmtPITmQyWiDF0F+SPALkD4aTDpGbF2Zf4lGUmuczbB/FiZC/k1GlYwy6O/lMY10YNusTWweJJ2t5+rsDRfZWP2zDdpXCYO35c0PaS+tZJjpJ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 16:13:59.4011 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd7a66b8-2fd4-4768-0994-08d618019541 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR12MB0747 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: nicolai.haehnle@amd.com, michel@daenzer.net, Christian.Koenig@amd.com, manasi.d.navare@intel.com, Alexander.Deucher@amd.com, Nicholas Kazlauskas , Marek.Olsak@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Modern monitor hardware is capable of supporting variable refresh rates and adaptive sync technologies. The properties for querying and controlling these features should be exposed on the DRM connector. This patch introduces two new properties for variable refresh rate support: - variable_refresh_capable - variable_refresh_enabled These are optional properties that can be added to a DRM connector dynamically by using drm_connector_attach_variable_refresh_properties. DRM drivers should set variable_refresh_capable as applicable for their hardware. The property variable_refresh_enabled as a userspace controlled option. Change-Id: I5f60f8b57534e1d3dacda4c64c6c9106b42f4439 Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/drm_atomic.c | 9 +++++++++ drivers/gpu/drm/drm_connector.c | 35 +++++++++++++++++++++++++++++++++ include/drm/drm_connector.h | 27 +++++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index d0478abc01bd..2f89ab0fac87 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c @@ -1403,6 +1403,11 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector, state->content_type = val; } else if (property == connector->scaling_mode_property) { state->scaling_mode = val; + } else if (property == connector->variable_refresh_capable_property) { + DRM_DEBUG_KMS("only drivers can set variable_refresh_capable\n"); + return -EINVAL; + } else if (property == connector->variable_refresh_enabled_property) { + state->variable_refresh_enabled = val; } else if (property == connector->content_protection_property) { if (val == DRM_MODE_CONTENT_PROTECTION_ENABLED) { DRM_DEBUG_KMS("only drivers can set CP Enabled\n"); @@ -1508,6 +1513,10 @@ drm_atomic_connector_get_property(struct drm_connector *connector, *val = state->content_type; } else if (property == connector->scaling_mode_property) { *val = state->scaling_mode; + } else if (property == connector->variable_refresh_capable_property) { + *val = state->variable_refresh_capable; + } else if (property == connector->variable_refresh_enabled_property) { + *val = state->variable_refresh_enabled; } else if (property == connector->content_protection_property) { *val = state->content_protection; } else if (property == config->writeback_fb_id_property) { diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 6011d769d50b..37fb33fa77b9 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -1250,6 +1250,41 @@ int drm_mode_create_scaling_mode_property(struct drm_device *dev) } EXPORT_SYMBOL(drm_mode_create_scaling_mode_property); +/** + * drm_connector_attach_variable_refresh_properties - creates and attaches + * properties for connectors that support adaptive refresh + * @connector: connector to create adaptive refresh properties on + */ +int drm_connector_attach_variable_refresh_properties( + struct drm_connector *connector) +{ + struct drm_device *dev = connector->dev; + struct drm_property *prop; + + if (!connector->variable_refresh_capable_property) { + prop = drm_property_create_bool(dev, 0, + "variable_refresh_capable"); + if (!prop) + return -ENOMEM; + + connector->variable_refresh_capable_property = prop; + drm_object_attach_property(&connector->base, prop, 0); + } + + if (!connector->variable_refresh_enabled_property) { + prop = drm_property_create_bool(dev, 0, + "variable_refresh_enabled"); + if (!prop) + return -ENOMEM; + + connector->variable_refresh_enabled_property = prop; + drm_object_attach_property(&connector->base, prop, 0); + } + + return 0; +} +EXPORT_SYMBOL(drm_connector_attach_variable_refresh_properties); + /** * drm_connector_attach_scaling_mode_property - attach atomic scaling mode property * @connector: connector to attach scaling mode property on. diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index 97ea41dc678f..105a127e9191 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -448,6 +448,18 @@ struct drm_connector_state { */ unsigned int content_protection; + /** + * @variable_refresh_enabled: Connector property used to check + * if variable refresh is supported on the device. + */ + bool variable_refresh_capable; + + /** + * @variable_refresh_enabled: Connector property used to check + * if variable refresh is enabled. + */ + bool variable_refresh_enabled; + /** * @writeback_job: Writeback job for writeback connectors * @@ -909,6 +921,19 @@ struct drm_connector { */ struct drm_property *scaling_mode_property; + /** + * @variable_refresh_capable_property: Optional property for + * querying hardware support for variable refresh. + */ + struct drm_property *variable_refresh_capable_property; + + /** + * @variable_refresh_enabled_property: Optional property for + * enabling or disabling support for variable refresh + * on the connector. + */ + struct drm_property *variable_refresh_enabled_property; + /** * @content_protection_property: DRM ENUM property for content * protection. See drm_connector_attach_content_protection_property(). @@ -1182,6 +1207,8 @@ int drm_mode_create_scaling_mode_property(struct drm_device *dev); int drm_connector_attach_content_type_property(struct drm_connector *dev); int drm_connector_attach_scaling_mode_property(struct drm_connector *connector, u32 scaling_mode_mask); +int drm_connector_attach_variable_refresh_properties( + struct drm_connector *connector); int drm_connector_attach_content_protection_property( struct drm_connector *connector); int drm_mode_create_aspect_ratio_property(struct drm_device *dev);