From: Sergio Callegari <sergio.callegari@gmail.com>
To: Sergio Callegari <sergio.callegari@gmail.com>
Cc: stable@vger.kernel.org
Subject: [REGRESSION] Please revert 1191285ecb42 from 7.1.y
Date: Mon, 10 Aug 2026 15:17:43 +0200 [thread overview]
Message-ID: <9c6acb62-4080-48e6-9ba2-d1c457c4ec88@gmail.com> (raw)
Hi again,
after having looked a bit more thoroughly into the matter, and having
gone through the relevant commits that introduced and subsequently
modified the AMD backlight brightness code paths, I would like to
suggest reverting commit
1191285ecb4233e5bf907da7e9394d7999055566
from the 7.1 stable series.
On affected AMD systems this change introduces a user-visible brightness
regression: values near the newly advertised maximum can wrap around to
the minimum brightness. On an ASUS G14, for example, brightness 64532
gives the expected maximum level, while 64533 immediately drops
actual_brightness to 0; max_brightness is advertised as 65535.
The previous max - min limit therefore appears to have been significant
to the existing conversion path. While commit 1191285 fixes an
inconsistency between actual_brightness and max_brightness, it exposes a
range that the current implementation does not handle correctly.
For stable kernels, reverting the commit seems to me the safest option:
it restores the previous behaviour and avoids introducing a broader
redesign into stable.
Longer term, I think the AMD backlight code would benefit from a proper
rework of the brightness coordinate systems. In particular, it seems
cleaner to expose a fixed logical DC range (e.g. 0..65535), map that
symmetrically onto the firmware/hardware [min, max] range, and keep the
firmware custom-curve 0..255 scale as a separate conversion where required.
That larger change could then be reviewed and tested upstream
independently of the stable regression fix.
Thanks,
Sergio
next reply other threads:[~2026-08-10 13:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 13:17 Sergio Callegari [this message]
2026-08-11 2:29 ` [REGRESSION] Please revert 1191285ecb42 from 7.1.y Greg KH
2026-08-11 5:24 ` Thorsten Leemhuis
2026-08-11 7:28 ` Sergio Callegari
2026-08-11 8:08 ` Greg KH
2026-08-11 12:26 ` Sergio Callegari
2026-08-11 17:25 ` Alex Deucher
2026-08-12 0:12 ` Greg KH
2026-08-12 14:49 ` Alex Deucher
2026-08-12 22:21 ` Sasha Levin
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=9c6acb62-4080-48e6-9ba2-d1c457c4ec88@gmail.com \
--to=sergio.callegari@gmail.com \
--cc=stable@vger.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