]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:imple mqd soft ini/fini
authorMonk Liu <Monk.Liu@amd.com>
Mon, 6 Feb 2017 08:28:53 +0000 (16:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:52:42 +0000 (23:52 -0400)
commitbbc564de90f27b54ea4c1033d19c1af8b9b5e760
treefdc59c56953583a8047da37164122abbcf3cc030
parent8605150bc80b0e325e9345ec190901d03caf3e40
drm/amdgpu:imple mqd soft ini/fini

this is for SRIOV fix:
mqd soft init/fini will be invoked by sw_init to
allocate BO for compute MQD resource, instead of
original scheme that hw_init allocates MQD.

because if hw_init allocates MQD, then resume will
allocate MQD, and that lead to memory leak after
driver recovered from hang.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c