[RFC,03/40] drm/amd/display: introduce Steam Deck color features to AMD display driver
Message ID | 20230423141051.702990-4-mwen@igalia.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2222123vqo; Sun, 23 Apr 2023 07:26:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZETOjyE8h6NsFLQYtyHwVVn2X/JGGA0kqS1k1GbjCkVCWNfMJwWBDRjy16arHPIcfRMDpS X-Received: by 2002:a05:6a00:23c4:b0:626:29ed:941f with SMTP id g4-20020a056a0023c400b0062629ed941fmr15710520pfc.5.1682259960388; Sun, 23 Apr 2023 07:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682259960; cv=none; d=google.com; s=arc-20160816; b=pQz7Z9iEkT6tGDeca02md5GrLZafD9VT5GV48jBNcy6xBtfoGZ2Xw9mC3wl0lfZ0Mi 04GRwL6hbMa4PgxpYMOIT3PoTypp+Yl9VlXaWIJ21zWXlrAv32NpHl5xKuFmdGtf2GZ9 aSIEOErN+AhtoB6U0K8qCU54woU2a9HHfGQbqN3qVVRLZGcg1FcECoAMn/B0prdL8tC9 1nIW5b7v7VB7KSKfFIGSAwgI2DTHYla7yC0c+2sRejnw3f3886IiOi84h1qVJdjjYgPh A1nz3Xd9h2tTNhT3gS6a4yTB0XZyfztIyhjj48bSUWrvsnDCnRtvptTjdWGc6DV5twoQ 1nuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t2oXYPnyQYeafj80rDPPBk4DJ8Bih7Zw8inrjzwVK2k=; b=l6WvUwUGjf733jWV8O09wuKqGrOyMwO83ZDAgiN9FTMmb+lcCKNfGnzu98hwBBpo8w SuoI9XHBJ7SAXKw5vDv1lbB6zbGdaEbR8D3qRhpvDQbMdPoSiB5n3WRvvZc0jL4xOg3H ZOvaRB5GXklzI96qzNk8i87+g/PxQxm+xizO17nk+u/nZhzo6RAr+KuDZf26hSpd9/R6 aDplztwe8hs/1NYp1OMyZ6kg5J1/cO3VksOuIW+cY3RigfmoIj/z/yyiLIgfhre0mF1c IE2W4+Zt9ukJCe6fkDvy+FXmlnhaE8RaSLEY1yocda5fmpAERKN7MWdWEhC/Pf03BS+m 9Okw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=aP6aQ5wQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0050be58cbaf7si9512790pgh.733.2023.04.23.07.25.46; Sun, 23 Apr 2023 07:26:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=aP6aQ5wQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbjDWOMR (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Sun, 23 Apr 2023 10:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjDWOMM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 23 Apr 2023 10:12:12 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0FE127 for <linux-kernel@vger.kernel.org>; Sun, 23 Apr 2023 07:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=t2oXYPnyQYeafj80rDPPBk4DJ8Bih7Zw8inrjzwVK2k=; b=aP6aQ5wQasUVq+wLWIjGodQt00 LxejcRVm0NGApRky08NWdEeUpFtwqFGXZfG1nFO+TauDItvUKPJRf4yCfAHbqZI8qYIEhweQNuAZs e2PLcbfp7TVVKU3ZcyHGOl72JvMeTc5Qm5FPNTzGdGWbDtWZ8XSr2FqwIykOJrbQz2CaR9WsQma54 5DUODHpMMNwr+CNxJPFDVcIAq0sWsEWcq2cASJvjU51Dt697lL0odeA0v97oRsyGj3YvynKp/EeG8 3CGyaECE2hrwsRGd1wZtCOcoA67uI+hnGrVSX2jH5VuebhzdRABy7cjpsiXFDDSU//wlF63/I3guE WxIN7RFQ==; Received: from nat-wifi.fi.muni.cz ([147.251.43.9] helo=killbill.fi.muni.cz) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pqaRe-00ANVs-Kv; Sun, 23 Apr 2023 16:12:02 +0200 From: Melissa Wen <mwen@igalia.com> To: amd-gfx@lists.freedesktop.org, Harry Wentland <harry.wentland@amd.com>, Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>, sunpeng.li@amd.com, Alex Deucher <alexander.deucher@amd.com>, dri-devel@lists.freedesktop.org, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: Joshua Ashton <joshua@froggi.es>, Sebastian Wick <sebastian.wick@redhat.com>, Xaver Hugl <xaver.hugl@gmail.com>, Shashank Sharma <Shashank.Sharma@amd.com>, Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>, sungjoon.kim@amd.com, Alex Hung <alex.hung@amd.com>, Melissa Wen <mwen@igalia.com>, linux-kernel@vger.kernel.org Subject: [RFC PATCH 03/40] drm/amd/display: introduce Steam Deck color features to AMD display driver Date: Sun, 23 Apr 2023 13:10:15 -0100 Message-Id: <20230423141051.702990-4-mwen@igalia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230423141051.702990-1-mwen@igalia.com> References: <20230423141051.702990-1-mwen@igalia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763977420482728633?= X-GMAIL-MSGID: =?utf-8?q?1763977420482728633?= |
Series |
drm/amd/display: add AMD driver-specific properties for color mgmt
|
|
Commit Message
Melissa Wen
April 23, 2023, 2:10 p.m. UTC
We are enabling a large set of color calibration features to enhance KMS color mgmt but these properties are specific of AMD display HW, and cannot be provided by other vendors. Therefore, set a config option to enable AMD driver-private properties used on Steam Deck color mgmt pipeline. Co-developed-by: Joshua Ashton <joshua@froggi.es> Signed-off-by: Joshua Ashton <joshua@froggi.es> Signed-off-by: Melissa Wen <mwen@igalia.com> --- drivers/gpu/drm/amd/display/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
On 4/23/23 10:10, Melissa Wen wrote: > We are enabling a large set of color calibration features to enhance KMS > color mgmt but these properties are specific of AMD display HW, and > cannot be provided by other vendors. Therefore, set a config option to > enable AMD driver-private properties used on Steam Deck color mgmt > pipeline. > > Co-developed-by: Joshua Ashton <joshua@froggi.es> > Signed-off-by: Joshua Ashton <joshua@froggi.es> > Signed-off-by: Melissa Wen <mwen@igalia.com> > --- > drivers/gpu/drm/amd/display/Kconfig | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > index 06b438217c61..c45a8deb1098 100644 > --- a/drivers/gpu/drm/amd/display/Kconfig > +++ b/drivers/gpu/drm/amd/display/Kconfig > @@ -53,5 +53,11 @@ config DRM_AMD_SECURE_DISPLAY > of crc of specific region via debugfs. > Cooperate with specific DMCU FW. > > +config STEAM_DECK > + bool "Enable color calibration features for Steam Deck" > + depends on DRM_AMD_DC > + help > + Choose this option if you want to use AMDGPU features for broader > + color management support on Steam Deck. > If we can drop this (i.e. don't offer a CONFIG_ option to allow enablement of the uAPI, but build with -DCONFIG_STEAM_DECK) it would go a long way to keep us from requiring to support this forever. Harry > endmenu
On 05/08, Harry Wentland wrote: > On 4/23/23 10:10, Melissa Wen wrote: > > We are enabling a large set of color calibration features to enhance KMS > > color mgmt but these properties are specific of AMD display HW, and > > cannot be provided by other vendors. Therefore, set a config option to > > enable AMD driver-private properties used on Steam Deck color mgmt > > pipeline. > > > > Co-developed-by: Joshua Ashton <joshua@froggi.es> > > Signed-off-by: Joshua Ashton <joshua@froggi.es> > > Signed-off-by: Melissa Wen <mwen@igalia.com> > > --- > > drivers/gpu/drm/amd/display/Kconfig | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > > index 06b438217c61..c45a8deb1098 100644 > > --- a/drivers/gpu/drm/amd/display/Kconfig > > +++ b/drivers/gpu/drm/amd/display/Kconfig > > @@ -53,5 +53,11 @@ config DRM_AMD_SECURE_DISPLAY > > of crc of specific region via debugfs. > > Cooperate with specific DMCU FW. > > > > +config STEAM_DECK > > + bool "Enable color calibration features for Steam Deck" > > + depends on DRM_AMD_DC > > + help > > + Choose this option if you want to use AMDGPU features for broader > > + color management support on Steam Deck. > > > > If we can drop this (i.e. don't offer a CONFIG_ option to allow enablement of > the uAPI, but build with -DCONFIG_STEAM_DECK) it would go a long way to keep > us from requiring to support this forever. I see, I'll follow this path. Still on that, I've changed CONFIG_STEAM_DECK (too generic) to CONFIG_DRM_AMD_COLOR_STEAMDECK. Does it sound better? Thanks, Melissa > > Harry > > > endmenu > >
I think the idea is that we wouldn't have a config option so it doesn't inherently become linux kernel uAPI? Then we can just build our SteamOS kernels with that definiton set. On Tue, 9 May 2023 at 16:26, Melissa Wen <mwen@igalia.com> wrote: > > On 05/08, Harry Wentland wrote: > > On 4/23/23 10:10, Melissa Wen wrote: > > > We are enabling a large set of color calibration features to enhance KMS > > > color mgmt but these properties are specific of AMD display HW, and > > > cannot be provided by other vendors. Therefore, set a config option to > > > enable AMD driver-private properties used on Steam Deck color mgmt > > > pipeline. > > > > > > Co-developed-by: Joshua Ashton <joshua@froggi.es> > > > Signed-off-by: Joshua Ashton <joshua@froggi.es> > > > Signed-off-by: Melissa Wen <mwen@igalia.com> > > > --- > > > drivers/gpu/drm/amd/display/Kconfig | 6 ++++++ > > > 1 file changed, 6 insertions(+) > > > > > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > > > index 06b438217c61..c45a8deb1098 100644 > > > --- a/drivers/gpu/drm/amd/display/Kconfig > > > +++ b/drivers/gpu/drm/amd/display/Kconfig > > > @@ -53,5 +53,11 @@ config DRM_AMD_SECURE_DISPLAY > > > of crc of specific region via debugfs. > > > Cooperate with specific DMCU FW. > > > > > > +config STEAM_DECK > > > + bool "Enable color calibration features for Steam Deck" > > > + depends on DRM_AMD_DC > > > + help > > > + Choose this option if you want to use AMDGPU features for broader > > > + color management support on Steam Deck. > > > > > > > If we can drop this (i.e. don't offer a CONFIG_ option to allow enablement of > > the uAPI, but build with -DCONFIG_STEAM_DECK) it would go a long way to keep > > us from requiring to support this forever. > > I see, I'll follow this path. Still on that, I've changed > CONFIG_STEAM_DECK (too generic) to CONFIG_DRM_AMD_COLOR_STEAMDECK. > Does it sound better? > > Thanks, > > Melissa > > > > > Harry > > > > > endmenu > > > >
On 5/9/23 12:52, Joshua Ashton wrote: > I think the idea is that we wouldn't have a config option so it > doesn't inherently become linux kernel uAPI? > > Then we can just build our SteamOS kernels with that definiton set. > That's the idea. Would that work for you? Harry > On Tue, 9 May 2023 at 16:26, Melissa Wen <mwen@igalia.com> wrote: >> >> On 05/08, Harry Wentland wrote: >>> On 4/23/23 10:10, Melissa Wen wrote: >>>> We are enabling a large set of color calibration features to enhance KMS >>>> color mgmt but these properties are specific of AMD display HW, and >>>> cannot be provided by other vendors. Therefore, set a config option to >>>> enable AMD driver-private properties used on Steam Deck color mgmt >>>> pipeline. >>>> >>>> Co-developed-by: Joshua Ashton <joshua@froggi.es> >>>> Signed-off-by: Joshua Ashton <joshua@froggi.es> >>>> Signed-off-by: Melissa Wen <mwen@igalia.com> >>>> --- >>>> drivers/gpu/drm/amd/display/Kconfig | 6 ++++++ >>>> 1 file changed, 6 insertions(+) >>>> >>>> diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig >>>> index 06b438217c61..c45a8deb1098 100644 >>>> --- a/drivers/gpu/drm/amd/display/Kconfig >>>> +++ b/drivers/gpu/drm/amd/display/Kconfig >>>> @@ -53,5 +53,11 @@ config DRM_AMD_SECURE_DISPLAY >>>> of crc of specific region via debugfs. >>>> Cooperate with specific DMCU FW. >>>> >>>> +config STEAM_DECK >>>> + bool "Enable color calibration features for Steam Deck" >>>> + depends on DRM_AMD_DC >>>> + help >>>> + Choose this option if you want to use AMDGPU features for broader >>>> + color management support on Steam Deck. >>>> >>> >>> If we can drop this (i.e. don't offer a CONFIG_ option to allow enablement of >>> the uAPI, but build with -DCONFIG_STEAM_DECK) it would go a long way to keep >>> us from requiring to support this forever. >> >> I see, I'll follow this path. Still on that, I've changed >> CONFIG_STEAM_DECK (too generic) to CONFIG_DRM_AMD_COLOR_STEAMDECK. >> Does it sound better? >> >> Thanks, >> >> Melissa >> >>> >>> Harry >>> >>>> endmenu >>> >>>
On 5/9/23 12:23, Melissa Wen wrote: > On 05/08, Harry Wentland wrote: >> On 4/23/23 10:10, Melissa Wen wrote: >>> We are enabling a large set of color calibration features to enhance KMS >>> color mgmt but these properties are specific of AMD display HW, and >>> cannot be provided by other vendors. Therefore, set a config option to >>> enable AMD driver-private properties used on Steam Deck color mgmt >>> pipeline. >>> >>> Co-developed-by: Joshua Ashton <joshua@froggi.es> >>> Signed-off-by: Joshua Ashton <joshua@froggi.es> >>> Signed-off-by: Melissa Wen <mwen@igalia.com> >>> --- >>> drivers/gpu/drm/amd/display/Kconfig | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig >>> index 06b438217c61..c45a8deb1098 100644 >>> --- a/drivers/gpu/drm/amd/display/Kconfig >>> +++ b/drivers/gpu/drm/amd/display/Kconfig >>> @@ -53,5 +53,11 @@ config DRM_AMD_SECURE_DISPLAY >>> of crc of specific region via debugfs. >>> Cooperate with specific DMCU FW. >>> >>> +config STEAM_DECK >>> + bool "Enable color calibration features for Steam Deck" >>> + depends on DRM_AMD_DC >>> + help >>> + Choose this option if you want to use AMDGPU features for broader >>> + color management support on Steam Deck. >>> >> >> If we can drop this (i.e. don't offer a CONFIG_ option to allow enablement of >> the uAPI, but build with -DCONFIG_STEAM_DECK) it would go a long way to keep >> us from requiring to support this forever. > > I see, I'll follow this path. Still on that, I've changed > CONFIG_STEAM_DECK (too generic) to CONFIG_DRM_AMD_COLOR_STEAMDECK. I'm not sure I like the steamdeck name in there. There's nothing inherently in this API that's only for the steamdeck. Harry > Does it sound better? > > Thanks, > > Melissa > >> >> Harry >> >>> endmenu >> >>
diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index 06b438217c61..c45a8deb1098 100644 --- a/drivers/gpu/drm/amd/display/Kconfig +++ b/drivers/gpu/drm/amd/display/Kconfig @@ -53,5 +53,11 @@ config DRM_AMD_SECURE_DISPLAY of crc of specific region via debugfs. Cooperate with specific DMCU FW. +config STEAM_DECK + bool "Enable color calibration features for Steam Deck" + depends on DRM_AMD_DC + help + Choose this option if you want to use AMDGPU features for broader + color management support on Steam Deck. endmenu