From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"David Airlie" <airlied@gmail.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Harry Wentland" <harry.wentland@amd.com>,
"Leo Li" <sunpeng.li@amd.com>,
"Rodrigo Siqueira" <Rodrigo.Siqueira@amd.com>,
"Matt Hartley" <matt.hartley@gmail.com>,
"Kieran Levin" <ktl@framework.net>,
"Hans de Goede" <hdegoede@redhat.com>,
"Jani Nikula" <jani.nikula@linux.intel.com>,
"Xinhui Pan" <Xinhui.Pan@amd.com>,
"Jonathan Corbet" <corbet@lwn.net>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, "Dustin Howett" <dustin@howett.net>,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v5 2/4] drm/amd/display: Add support for minimum backlight quirk
Date: Thu, 22 Aug 2024 08:14:08 +0200 [thread overview]
Message-ID: <f516b4af-0dac-4607-bdab-e4c83395fe04@t-8ch.de> (raw)
In-Reply-To: <269b2e72-2f93-4415-a56e-77536f373b22@amd.com>
On 2024-08-21 15:54:14+0000, Mario Limonciello wrote:
> On 8/18/2024 01:56, Thomas Weißschuh wrote:
> > Not all platforms provide correct PWM backlight capabilities through ATIF.
>
> I don't think correct is an accurate term here. How about 'optimial'?
Looks typoed to me :-)
What about this?
Not all platforms provide the full range of PWM backlight capabilities
supported by the hardware through ATIF.
> > Use the generic drm panel minimum backlight quirk infrastructure to
> > override the capabilities where necessary.
> >
> > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> > Tested-by: Dustin L. Howett <dustin@howett.net>
>
> The code looks fine to me but please wait for an ack from someone on the AMD
> display team.
>
> Also, I would like to see comments about the testing with panel power
> savings enabled to avoid a conflict.
Ack.
>
> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> > ---
> > drivers/gpu/drm/amd/amdgpu/Kconfig | 1 +
> > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 ++++++++++
> > 2 files changed, 11 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
> > index 0051fb1b437f..655c10aef2e3 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
> > +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
> > @@ -23,6 +23,7 @@ config DRM_AMDGPU
> > select DRM_BUDDY
> > select DRM_SUBALLOC_HELPER
> > select DRM_EXEC
> > + select DRM_PANEL_BACKLIGHT_QUIRKS
> > # amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
> > # ACPI_VIDEO's dependencies must also be selected.
> > select INPUT if ACPI
> > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> > index 983a977632ff..056960ea335c 100644
> > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> > @@ -93,6 +93,7 @@
> > #include <drm/drm_fourcc.h>
> > #include <drm/drm_edid.h>
> > #include <drm/drm_eld.h>
> > +#include <drm/drm_utils.h>
> > #include <drm/drm_vblank.h>
> > #include <drm/drm_audio_component.h>
> > #include <drm/drm_gem_atomic_helper.h>
> > @@ -3333,6 +3334,8 @@ static void update_connector_ext_caps(struct amdgpu_dm_connector *aconnector)
> > struct drm_connector *conn_base;
> > struct amdgpu_device *adev;
> > struct drm_luminance_range_info *luminance_range;
> > + const struct drm_edid *drm_edid;
> > + int min_input_signal_override;
> > if (aconnector->bl_idx == -1 ||
> > aconnector->dc_link->connector_signal != SIGNAL_TYPE_EDP)
> > @@ -3367,6 +3370,13 @@ static void update_connector_ext_caps(struct amdgpu_dm_connector *aconnector)
> > caps->aux_min_input_signal = 0;
> > caps->aux_max_input_signal = 512;
> > }
> > +
> > + drm_edid = drm_edid_alloc(aconnector->edid,
> > + EDID_LENGTH * (aconnector->edid->extensions + 1));
> > + min_input_signal_override = drm_get_panel_min_brightness_quirk(drm_edid);
> > + drm_edid_free(drm_edid);
> > + if (min_input_signal_override >= 0)
> > + caps->min_input_signal = min_input_signal_override;
> > }
> > void amdgpu_dm_update_connector_after_detect(
> >
>
next prev parent reply other threads:[~2024-08-22 7:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-18 6:56 [PATCH v5 0/4] drm: Minimum backlight overrides and implementation for amdgpu Thomas Weißschuh
2024-08-18 6:56 ` [PATCH v5 1/4] drm: Add panel backlight quirks Thomas Weißschuh
2024-08-21 20:51 ` Mario Limonciello
2024-08-22 6:12 ` Thomas Weißschuh
2024-08-22 13:34 ` Mario Limonciello
2024-08-18 6:56 ` [PATCH v5 2/4] drm/amd/display: Add support for minimum backlight quirk Thomas Weißschuh
2024-08-21 20:54 ` Mario Limonciello
2024-08-22 6:14 ` Thomas Weißschuh [this message]
2024-08-22 13:34 ` Mario Limonciello
2024-08-18 6:56 ` [PATCH v5 3/4] drm: panel-backlight-quirks: Add Framework 13 matte panel Thomas Weißschuh
2024-08-21 20:54 ` Mario Limonciello
2024-08-18 6:56 ` [PATCH v5 4/4] drm: panel-backlight-quirks: Add Framework 13 glossy and 2.8k panels Thomas Weißschuh
2024-08-21 20:55 ` Mario Limonciello
2024-08-21 20:45 ` [PATCH v5 0/4] drm: Minimum backlight overrides and implementation for amdgpu Mario Limonciello
2024-08-22 6:09 ` Thomas Weißschuh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f516b4af-0dac-4607-bdab-e4c83395fe04@t-8ch.de \
--to=linux@weissschuh.net \
--cc=Rodrigo.Siqueira@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=corbet@lwn.net \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=dustin@howett.net \
--cc=harry.wentland@amd.com \
--cc=hdegoede@redhat.com \
--cc=jani.nikula@linux.intel.com \
--cc=ktl@framework.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mario.limonciello@amd.com \
--cc=matt.hartley@gmail.com \
--cc=mripard@kernel.org \
--cc=sunpeng.li@amd.com \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox