]> asedeno.scripts.mit.edu Git - linux.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)
commit9950cda2a0187314c3cd6a86415ab9050074c5f8
tree914f0f1660b69eff416a5924292cc035bb90e823
parent04f618eb3b81ac20daea791766e9f4cb71f1f32b
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