]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: defer test IBs on the rings at boot (V3)
authorShirish S <shirish.s@amd.com>
Mon, 16 Apr 2018 06:47:57 +0000 (12:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:21 +0000 (13:43 -0500)
commit4c6cb94b869920e1cdc4b42edede0e922e363eb7
tree3ce57e7cf61d6c61e6716358d7b9fcf7f9bafd0a
parentad32a693dca7223d973528d52270e7db4a81e12e
drm/amdgpu: defer test IBs on the rings at boot (V3)

amdgpu_ib_ring_tests() runs test IB's on rings at boot
contributes to ~500 ms of amdgpu driver's boot time.

This patch defers it and ensures that its executed
in amdgpu_info_ioctl() if it wasn't scheduled.

V2: Use queue_delayed_work() & flush_delayed_work().
V3: removed usage of separate wq, ensure ib tests is
    run before enabling clockgating.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Christian König <christian.koenig@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_kms.c