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 17:25:20 +0000 (12:25 -0500)
commit41940ff50f6c347f3541163702566cd526200d98
treef93ab1033b44641151439f54088a564228d782af
parent317a3aaef94d73ba6be88aea11b41bb631b2d581
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c