On 3/17/22 12:35, Alex Deucher wrote:
Sorry for jumping in here, but I can't seem to find the original thread with this comment. amdgpu_atombios_encoder_init_backlight() is not applicable to these systems. That is the old pre-DC code path. You want amdgpu_dm_register_backlight_device() for modern hardware.
Oops, thanks for the correction. Alex Dinu: see the above for the correct code path to disable to test whether not registering the amdgpu backlight device helps. I have some other things to attend to, so it will be a little while before I can get you the instrumented driver I mentioned in one of my replies to Hans, but hopefully we'll be able to figure something out to actually switch the backlight control to EC without having to do a suspend/resume cycle.