]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Only clear dumb buffers if ring is enabled
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 11 Mar 2019 18:16:29 +0000 (14:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:57 +0000 (15:36 -0500)
commitd01bf1a6f38c5d16019e56329c69f73831d076bf
tree603074c7ec09556b80a850962dde2ccaa0573ba2
parent941027bca463d6dc4ccaa771631b9dbdfd22f7e2
drm/amdgpu: Only clear dumb buffers if ring is enabled

The buffers should be cleared when possible but we also don't want
buffer creation to fail in the rare case where the ring isn't ready
during the call. This could happen during some suspend/resume sequences.

Cc: Christian König <ckoenig.leichtzumerken@gmail.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c