]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: drop the drm irq pre/post/un install callbacks
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Jan 2018 00:05:36 +0000 (19:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:16 +0000 (14:18 -0500)
commitae2f80e9b204504cc534794383051db53bd0ed96
tree914f0f1660b69eff416a5924292cc035bb90e823
parent59acd0b718b707949a3146ec63695ff91b0db945
drm/amdgpu: drop the drm irq pre/post/un install callbacks

The preinstall callback didn't do anything because not all
of the IPs were initialized when it was called.

Move the postinstall setup into sequence in the driver.

The uninstall callback disabled all interrupt source, but
it got called too late in the driver sequence and caused problems
with IPs who already freed the relevant data structures.  Move
the call into the right place in the driver sequence.

Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Tested-By: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h