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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:55:39 +0000 (22:55 -0400)
commit7d9c70d23550eb86a1bec1954ccaa8d6ec3a3328
tree62dfccb03d9080ab898f8aa183a09de1c94dfb4e
parent29b4c589b43d8dc0c0a5342cd2ac5da6ec1116b5
drm/amdgpu: remove unsafe optimization to drop preamble ib

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c