drm/amdgpu: remove unsafe optimization to drop preamble ib
authorJiansong Chen <Jiansong.Chen@amd.com>
Thu, 13 May 2021 02:56:50 +0000 (10:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:45 +0000 (09:44 +0200)
commit8fa6473a61ecc9972ad543d8ba1d927d442d1f67
tree70e5762ec8294bcab3c5314a145f0b7a04a4e77d
parentc5b518f4b98dbb2bc31b6a55e6aaa1e0e2948f2e
drm/amdgpu: remove unsafe optimization to drop preamble ib

[ Upstream commit 7d9c70d23550eb86a1bec1954ccaa8d6ec3a3328 ]

Take the situation with gfxoff, the optimization may cause
corrupt CE ram contents. In addition emit_cntxcntl callback
has similar optimization which firmware can handle properly
even for power feature.

Signed-off-by: Jiansong Chen <Jiansong.Chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c