mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
drm/amd/display: Log details when failing to register HPD IRQ
This should help diagnose HPD IRQ related issues in the future. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Link: https://patch.msgid.link/20260821215059.312868-2-timur.kristof@gmail.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
52536ce677
commit
9e8bcfde00
@@ -1735,7 +1735,9 @@ int amdgpu_dm_register_hpd_handlers(struct amdgpu_device *adev)
|
||||
if (int_params.irq_source == DC_IRQ_SOURCE_INVALID ||
|
||||
int_params.irq_source < DC_IRQ_SOURCE_HPD1 ||
|
||||
int_params.irq_source > DC_IRQ_SOURCE_HPD6) {
|
||||
drm_err(adev_to_drm(adev), "Failed to register hpd irq!\n");
|
||||
drm_err(adev_to_drm(adev),
|
||||
"Failed to register hpd irq %u for %s!\n",
|
||||
int_params.irq_source, connector->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1753,7 +1755,9 @@ int amdgpu_dm_register_hpd_handlers(struct amdgpu_device *adev)
|
||||
if (int_params.irq_source == DC_IRQ_SOURCE_INVALID ||
|
||||
int_params.irq_source < DC_IRQ_SOURCE_HPD1RX ||
|
||||
int_params.irq_source > DC_IRQ_SOURCE_HPD6RX) {
|
||||
drm_err(adev_to_drm(adev), "Failed to register hpd rx irq!\n");
|
||||
drm_err(adev_to_drm(adev),
|
||||
"Failed to register hpd rx irq %u for %s!\n",
|
||||
int_params.irq_source, connector->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user