答复: [PATCH 2/2] drm/amdgpu/acpi: skip backlight events for DC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Those two patches are Reviewed-by: Jim Qu <Jim.Qu at amd.com>



Thanks
JimQu

________________________________________
å??件人: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> 代表 Alex Deucher <alexdeucher at gmail.com>
å??é??æ?¶é?´: 2018å¹´7æ??19æ?¥ 22:35:53
�件人: amd-gfx at lists.freedesktop.org
æ??é??: Deucher, Alexander
主�: [PATCH 2/2] drm/amdgpu/acpi: skip backlight events for DC

No change in behavior, just bail sooner.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
index 455617813ec4..353993218f21 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
@@ -389,7 +389,9 @@ static int amdgpu_atif_handler(struct amdgpu_device *adev,

                DRM_DEBUG_DRIVER("ATIF: %d pending SBIOS requests\n", count);

-               if (req.pending & ATIF_PANEL_BRIGHTNESS_CHANGE_REQUEST) {
+               /* todo: add DC handling */
+               if ((req.pending & ATIF_PANEL_BRIGHTNESS_CHANGE_REQUEST) &&
+                   !amdgpu_device_has_dc_support(adev)) {
                        struct amdgpu_encoder *enc = atif->encoder_for_bl;

                        if (enc) {
--
2.13.6

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux