drm/amd/display: Disable ips before dc interrupt setting
authorRoman Li <Roman.Li@amd.com>
Mon, 22 Jan 2024 22:45:41 +0000 (17:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 19:58:03 +0000 (14:58 -0500)
commit67bbf55bd3c7816f2e65ae0c6c83d095b5d5446e
tree9f7c846631c551e5ee21dc24c7b084e02b59b03c
parentc0c48f0d61ff94864947aa12074f4614b7e989e5
drm/amd/display: Disable ips before dc interrupt setting

[Why]
While in IPS2 an access to dcn registers is not allowed.
If interrupt results in dc call, we should disable IPS.

[How]
Safeguard register access in IPS2 by disabling idle optimization
before calling dc interrupt setting api.

Signed-off-by: Roman Li <Roman.Li@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c