OSDN Git Service

drm/amdgpu: pin the csb buffer on hw init v2
authorEvan Quan <evan.quan@amd.com>
Wed, 4 Jul 2018 08:21:52 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:44:08 +0000 (14:44 -0500)
commit137dc4b9060e99a22dce59b42ca71912cf0180f3
tree327587ca5021a2393a3b5ed7c757a9a5d0d15c2f
parent0d7f824b3342c774ea18062f5f0f39d542947c34
drm/amdgpu: pin the csb buffer on hw init v2

Without this pin, the csb buffer will be filled with inconsistent
data after S3 resume. And that will causes gfx hang on gfxoff
exit since this csb will be executed then.

v2: fit amdgpu_bo_pin change(take one less argument)

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c