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)
commit5ff980439d9423bc40538fc54fff132654489651
treefdc59c56953583a8047da37164122abbcf3cc030
parentf3972b531d36a09bdc01dcf00b9a369e076cb563
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