* [PATCH] drm/amdgpu: Add error message for DAC setup failure
@ 2020-10-06 6:05 Shashank Sharma
2020-10-07 9:17 ` Nirmoy
0 siblings, 1 reply; 2+ messages in thread
From: Shashank Sharma @ 2020-10-06 6:05 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher, Shashank Sharma
This patch adds a return value check and an error message to
highlight the DAC setup failure case during encoder DPMS
operation.
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
---
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
index 1e94a9b652f7..3779f933564b 100644
--- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
+++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
@@ -341,8 +341,8 @@ amdgpu_atombios_encoder_setup_dac(struct drm_encoder *encoder, int action)
args.ucDacStandard = ATOM_DAC1_PS2;
args.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10);
- amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
-
+ if (amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args))
+ DRM_ERROR("AMDGPU: dac setup failed\n");
}
static u8 amdgpu_atombios_encoder_get_bpc(struct drm_encoder *encoder)
--
2.25.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amdgpu: Add error message for DAC setup failure
2020-10-06 6:05 [PATCH] drm/amdgpu: Add error message for DAC setup failure Shashank Sharma
@ 2020-10-07 9:17 ` Nirmoy
0 siblings, 0 replies; 2+ messages in thread
From: Nirmoy @ 2020-10-07 9:17 UTC (permalink / raw)
To: amd-gfx
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
On 10/6/20 8:05 AM, Shashank Sharma wrote:
> This patch adds a return value check and an error message to
> highlight the DAC setup failure case during encoder DPMS
> operation.
>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
> index 1e94a9b652f7..3779f933564b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
> +++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
> @@ -341,8 +341,8 @@ amdgpu_atombios_encoder_setup_dac(struct drm_encoder *encoder, int action)
> args.ucDacStandard = ATOM_DAC1_PS2;
> args.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10);
>
> - amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args);
> -
> + if (amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args))
> + DRM_ERROR("AMDGPU: dac setup failed\n");
> }
>
> static u8 amdgpu_atombios_encoder_get_bpc(struct drm_encoder *encoder)
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-07 9:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06 6:05 [PATCH] drm/amdgpu: Add error message for DAC setup failure Shashank Sharma
2020-10-07 9:17 ` Nirmoy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.