hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
....@@ -41,7 +41,7 @@
4141 * If we are asked to block we wait on all the oldest fence of all
4242 * rings. We just wait for any of those fence to complete.
4343 */
44
-#include <drm/drmP.h>
44
+
4545 #include "amdgpu.h"
4646
4747 static void amdgpu_sa_bo_remove_locked(struct amdgpu_sa_bo *sa_bo);
....@@ -226,6 +226,8 @@
226226 for (i = 0; i < AMDGPU_SA_NUM_FENCE_LISTS; ++i) {
227227 struct amdgpu_sa_bo *sa_bo;
228228
229
+ fences[i] = NULL;
230
+
229231 if (list_empty(&sa_manager->flist[i]))
230232 continue;
231233
....@@ -296,10 +298,8 @@
296298
297299 spin_lock(&sa_manager->wq.lock);
298300 do {
299
- for (i = 0; i < AMDGPU_SA_NUM_FENCE_LISTS; ++i) {
300
- fences[i] = NULL;
301
+ for (i = 0; i < AMDGPU_SA_NUM_FENCE_LISTS; ++i)
301302 tries[i] = 0;
302
- }
303303
304304 do {
305305 amdgpu_sa_bo_try_free(sa_manager);
....@@ -388,7 +388,7 @@
388388 soffset, eoffset, eoffset - soffset);
389389
390390 if (i->fence)
391
- seq_printf(m, " protected by 0x%08x on context %llu",
391
+ seq_printf(m, " protected by 0x%016llx on context %llu",
392392 i->fence->seqno, i->fence->context);
393393
394394 seq_printf(m, "\n");