[PATCH] BACKPORT: drm/amdgpu/disply: set num_crtc earlier

2022-05-30 Thread Ryan Lin
m/amd/display/amdgpu_dm/amdgpu_dm.c [Ryan Lin: Fixed the conflict, remove the non-main changed part of this patch] --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_d

[PATCH v5] drm/amdgpu: Disable ABM when AC mode

2022-05-17 Thread Ryan Lin
f the setting abm disabled from DC to amdgpu_dm. Signed-off-by: Ryan Lin --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c| 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 17 + drivers/gpu/drm/amd/display/dc/c

[PATCH v4] drm/amdgpu: Disable ABM when AC mode

2022-04-27 Thread Ryan Lin
Disable ABM feature when the system is running on AC mode to get the more perfect contrast of the display. v2: remove "UPSTREAM" from the subject. v3: adv->pm.ac_power updating by amd gpu_acpi_event_handler. V4: Add the file I lost to fix the build error. Signed-off-by: Ryan Lin

[PATCH v3] drm/amdgpu: Disable ABM when AC mode

2022-04-26 Thread Ryan Lin
Disable ABM feature when the system is running on AC mode to get the more perfect contrast of the display. v2: remove "UPSTREAM" from the subject. v3: adv->pm.ac_power updating by amd gpu_acpi_event_handler. Signed-off-by: Ryan Lin --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp

[PATCH v2] drm/amdgpu: fix that issue that the number of the crtc of the 3250c is not correct

2022-03-29 Thread Ryan Lin
that number of the crtc has been fixed at 4. Needs to set the num_crtc to 3 for 3250c platform. v2: - remove unnecessary comments and Id Signed-off-by: Ryan Lin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

drm/amdgpu: Disable ABM when AC mode

2022-03-29 Thread Ryan Lin
Disable ABM feature when the system is running on AC mode to get the more perfect contrast of the display. v2: remove "UPSTREAM" from the subject. Signed-off-by: Ryan Lin --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 1

[PATCH v2 3/25] drm/amdgpu: Disable ABM when AC mode

2022-03-25 Thread Ryan Lin
Disable ABM feature when the system is running on AC mode to get the more perfect contrast of the display. Signed-off-by: Ryan Lin --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 1 + drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 58

[PATCH] UPSTREAM: drm/amdgpu: Disable ABM when AC mode

2022-03-24 Thread Ryan Lin
Disable ABM feature when the system is running on AC mode to get the more perfect contrast of the display. Signed-off-by: Ryan Lin --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 1 + drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 58