drm/amdgpu: fix GFXOFF on Picasso and Raven2
authorAaron Liu <aaron.liu@amd.com>
Tue, 27 Aug 2019 14:59:45 +0000 (22:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Aug 2019 15:38:40 +0000 (10:38 -0500)
commitc072b0c24e6b8a1951b26b3a575e9e0491bd7bfe
tree1a68ff670fa09388b9c4459b6c4fe68b6163df1c
parent2ddb134d97633e96b8020fd054e00ecddfdbb5f1
drm/amdgpu: fix GFXOFF on Picasso and Raven2

For picasso(adev->pdev->device == 0x15d8)&raven2(adev->rev_id >= 0x8),
firmware is sufficient to support gfxoff.
In commit 98f58ada2d37e, for picasso&raven2,
return directly and cause gfxoff disabled.

Fixes: 98f58ada2d37 ("drm/amdgpu/gfx9: update pg_flags after determining if gfx off is possible")
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c