drm/amdgpu: toggle DF-Cstate to protect DF reg access
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 24 Feb 2020 08:47:23 +0000 (16:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:17:32 +0000 (14:17 -0500)
commit938065d4cb91c8e6c13c9c906490baca3427ae27
treefd199bedee88dd5dce8250ddbdfe0d74d54b6855
parent19744f5f2dff50290f0767a68c0dc418c1a59cec
drm/amdgpu: toggle DF-Cstate to protect DF reg access

driver needs to take DF out Cstate before any DF register
access. otherwise, the DF register may not be accessible.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c