.. | .. |
---|
41 | 41 | * If we are asked to block we wait on all the oldest fence of all |
---|
42 | 42 | * rings. We just wait for any of those fence to complete. |
---|
43 | 43 | */ |
---|
44 | | -#include <drm/drmP.h> |
---|
| 44 | + |
---|
45 | 45 | #include "amdgpu.h" |
---|
46 | 46 | |
---|
47 | 47 | static void amdgpu_sa_bo_remove_locked(struct amdgpu_sa_bo *sa_bo); |
---|
.. | .. |
---|
226 | 226 | for (i = 0; i < AMDGPU_SA_NUM_FENCE_LISTS; ++i) { |
---|
227 | 227 | struct amdgpu_sa_bo *sa_bo; |
---|
228 | 228 | |
---|
| 229 | + fences[i] = NULL; |
---|
| 230 | + |
---|
229 | 231 | if (list_empty(&sa_manager->flist[i])) |
---|
230 | 232 | continue; |
---|
231 | 233 | |
---|
.. | .. |
---|
296 | 298 | |
---|
297 | 299 | spin_lock(&sa_manager->wq.lock); |
---|
298 | 300 | 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) |
---|
301 | 302 | tries[i] = 0; |
---|
302 | | - } |
---|
303 | 303 | |
---|
304 | 304 | do { |
---|
305 | 305 | amdgpu_sa_bo_try_free(sa_manager); |
---|
.. | .. |
---|
388 | 388 | soffset, eoffset, eoffset - soffset); |
---|
389 | 389 | |
---|
390 | 390 | 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", |
---|
392 | 392 | i->fence->seqno, i->fence->context); |
---|
393 | 393 | |
---|
394 | 394 | seq_printf(m, "\n"); |
---|