Skip to content

drm/amd/display: keep custom brightness curve in userspace domain

Andrei Rusu de Castro amd-gfx dri-devel lkml stable 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v24 patches 2 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- rebase onto amd-staging-drm-next (77f548b12);
- drop v2 patches 3 and 4, which changed the PWM path to the power module; "drm/amd/display: map PWM brightness through custom backlight curve" has since reworked that path;
- describe which panels still reach the helper: AUX panels with a custom curve, and PWM panels on stable kernels before the power module.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/amd/display: keep custom brightness curve in userspace domaindrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_backlight.c drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_backlight.h drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_backlight_test.c+22 -240 replies
2/2drm/amd/display: test custom brightness with non-zero minimumdrivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_backlight_test.c+264 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] drm/amd/display: keep custom brightness curve in userspace domain

convert_custom_brightness() adds the firmware minimum before convert_brightness_from_user() applies it again, so a zero request through a custom curve never reaches the panel minimum. Patch 1 keeps the curve output in the userspace domain. Patch 2 adds KUnit coverage with a non-zero firmware minimum.

Changes in v3:

- rebase onto amd-staging-drm-next (77f548b12);
- drop v2 patches 3 and 4, which changed the PWM path to the power module; "drm/amd/display: map PWM brightness through custom backlight curve" has since reworked that path;
- describe which panels still reach the helper: AUX panels with a custom curve, and PWM panels on stable kernels before the power module.

The amdgpu_dm KUnit suites were run under UML on this base with and without the series: 1897 and 1906 cases, all passing; the backlight suite goes from 70 to 79 cases. The rebase and the test runs were LLM-assisted.

v2: https://lore.kernel.org/r/[email protected]

Andrei Rusu de Castro (2):
drm/amd/display: keep custom brightness curve in userspace domain drm/amd/display: test custom brightness with non-zero minimum

 .../display/amdgpu_dm/amdgpu_dm_backlight.c   |  13 +-
 .../display/amdgpu_dm/amdgpu_dm_backlight.h   |   3 +-
 .../tests/amdgpu_dm_backlight_test.c          | 294 +++++++++++++++++-
 3 files changed, 286 insertions(+), 24 deletions(-)

base-commit: 77f548b127c6de34ce271fa09ba270cb1ef9f2da

Signature · 1 line
2.56.0