]> 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)
commit3f07f6119d2eaa126c66adec45c4e483fe3cb8c8
tree914f0f1660b69eff416a5924292cc035bb90e823
parentb27e0151253e822596c13633e0acde018ca088e9
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