Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "Deucher, Alexander" <Alexander.Deucher@amd.com>,
	"maarten.lankhorst@linux.intel.com"
	<maarten.lankhorst@linux.intel.com>,
	"mripard@kernel.org" <mripard@kernel.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"daniel@ffwll.ch" <daniel@ffwll.ch>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Koenig, Christian" <Christian.Koenig@amd.com>,
	"Pan, Xinhui" <Xinhui.Pan@amd.com>
Subject: Re: [PATCH 1/9] drm/amdgpu: Use backlight power constants
Date: Thu, 8 Aug 2024 07:19:10 +0200	[thread overview]
Message-ID: <d9918867-83fe-4859-84fe-684433cd5619@suse.de> (raw)
In-Reply-To: <CADnq5_NyVDp2kGK1t-XLyvF0qQL+3NNY+hCeRD8MOeY7wbApEg@mail.gmail.com>

Hi

Am 07.08.24 um 21:47 schrieb Alex Deucher:
> On Tue, Aug 6, 2024 at 3:06 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>> Hi
>>
>> Am 05.08.24 um 21:00 schrieb Deucher, Alexander:
>>> [Public]
>>>
>>>> -----Original Message-----
>>>> From: Thomas Zimmermann <tzimmermann@suse.de>
>>>> Sent: Wednesday, July 31, 2024 8:17 AM
>>>> To: maarten.lankhorst@linux.intel.com; mripard@kernel.org;
>>>> airlied@gmail.com; daniel@ffwll.ch
>>>> Cc: amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; intel-
>>>> gfx@lists.freedesktop.org; intel-xe@lists.freedesktop.org; Thomas
>>>> Zimmermann <tzimmermann@suse.de>; Deucher, Alexander
>>>> <Alexander.Deucher@amd.com>; Koenig, Christian
>>>> <Christian.Koenig@amd.com>; Pan, Xinhui <Xinhui.Pan@amd.com>
>>>> Subject: [PATCH 1/9] drm/amdgpu: Use backlight power constants
>>>>
>>>> Replace FB_BLANK_ constants with their counterparts from the backlight
>>>> subsystem. The values are identical, so there's no change in functionality or
>>>> semantics.
>>>>
>>>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>>>> Cc: Alex Deucher <alexander.deucher@amd.com>
>>>> Cc: "Christian König" <christian.koenig@amd.com>
>>>> Cc: Xinhui Pan <Xinhui.Pan@amd.com>
>>> This patch and the radeon patch are:
>>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>>>
>>> Feel free to take them via whatever tree makes sense if you are trying to keep the patches together, or let me know if you want me to pick them up.
>> Thank you for the reviews. Please pick up both patches into the rsp AMD
>> trees. The i915 patch already went into Intel trees and the rest of the
>> series will go into drm-misc.
> What changes do these depend on?  BACKLIGHT_POWER_ON isn't declared in
> my -next tree yet.  Might be easier to just run them through drm-misc
> if that's where the change is.

The constants are in commit a1cacb8a8e70 ("backlight: Add 
BACKLIGHT_POWER_ constants for power states"), available in v6.11-rc1 
and later.

Please let me know if I should take the AMD patches into drm-misc-next.

Best regards
Thomas

>
> Alex
>
>> Best regards
>> Thomas
>>
>>> Thanks,
>>>
>>> Alex
>>>
>>>> ---
>>>>    drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 2 +-
>>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
>>>> b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
>>>> index 25feab188dfe..650ec95bb40a 100644
>>>> --- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
>>>> +++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
>>>> @@ -215,7 +215,7 @@ void
>>>> amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder
>>>> *amdgpu_encode
>>>>         dig->bl_dev = bd;
>>>>
>>>>         bd->props.brightness =
>>>> amdgpu_atombios_encoder_get_backlight_brightness(bd);
>>>> -     bd->props.power = FB_BLANK_UNBLANK;
>>>> +     bd->props.power = BACKLIGHT_POWER_ON;
>>>>         backlight_update_status(bd);
>>>>
>>>>         DRM_INFO("amdgpu atom DIG backlight initialized\n");
>>>> --
>>>> 2.45.2
>> --
>> --
>> Thomas Zimmermann
>> Graphics Driver Developer
>> SUSE Software Solutions Germany GmbH
>> Frankenstrasse 146, 90461 Nuernberg, Germany
>> GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
>> HRB 36809 (AG Nuernberg)
>>

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)


  reply	other threads:[~2024-08-08  5:19 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-31 12:17 [PATCH 0/9] drm: Use backlight power constants Thomas Zimmermann
2024-07-31 12:17 ` [PATCH 1/9] drm/amdgpu: " Thomas Zimmermann
2024-08-05 19:00   ` Deucher, Alexander
2024-08-06  7:06     ` Thomas Zimmermann
2024-08-07 19:47       ` Alex Deucher
2024-08-08  5:19         ` Thomas Zimmermann [this message]
2024-08-08 13:19           ` Alex Deucher
2024-07-31 12:17 ` [PATCH 2/9] drm/i915: " Thomas Zimmermann
2024-07-31 12:56   ` Jani Nikula
2024-07-31 13:00     ` Thomas Zimmermann
2024-08-01 11:52       ` Jani Nikula
2024-07-31 12:17 ` [PATCH 3/9] drm/panel: panel-novatak-nt35510: " Thomas Zimmermann
2024-08-01 22:37   ` Jessica Zhang
2024-08-23 15:40   ` Linus Walleij
2024-07-31 12:17 ` [PATCH 4/9] drm/panel: panel-orisetech-otm8009a: " Thomas Zimmermann
2024-08-01 22:41   ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 5/9] drm/panel: panel-samsung-s6e63j0x03: " Thomas Zimmermann
2024-08-01 22:41   ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 6/9] drm/panel: panel-samsung-s6e3ha2: " Thomas Zimmermann
2024-08-01 22:46   ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 7/9] drm/panel: panel-sony-acx565akm: " Thomas Zimmermann
2024-08-01 22:46   ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 8/9] drm/radeon: " Thomas Zimmermann
2024-07-31 12:17 ` [PATCH 9/9] drm/tilcdc: " Thomas Zimmermann
2024-08-15  7:59   ` Thomas Zimmermann
2024-08-15  8:07     ` Tomi Valkeinen
2024-08-15  8:08       ` Thomas Zimmermann
2024-07-31 13:02 ` ✗ Fi.CI.SPARSE: warning for drm: " Patchwork
2024-07-31 13:11 ` ✓ Fi.CI.BAT: success " Patchwork
2024-08-01  5:24 ` ✓ Fi.CI.IGT: " Patchwork
2024-08-02  7:00 ` [PATCH 9/9] drm/tilcdc: " jyri.sarha

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=d9918867-83fe-4859-84fe-684433cd5619@suse.de \
    --to=tzimmermann@suse.de \
    --cc=Alexander.Deucher@amd.com \
    --cc=Christian.Koenig@amd.com \
    --cc=Xinhui.Pan@amd.com \
    --cc=airlied@gmail.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    /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