projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70be8b3
)
drm/i915/error: Fixup inactive/active counting
author
Chris Wilson
<
[email protected]
>
Tue, 5 Jun 2018 16:06:23 +0000
(17:06 +0100)
committer
Chris Wilson
<
[email protected]
>
Tue, 5 Jun 2018 18:23:33 +0000
(19:23 +0100)
The inactive counter was over the active list, and vice versa.
Fortuitously this should not cause a problem in practice as they shared
the same array and clamped the number of entries they would write.
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Cc: Mika Kuoppala <
[email protected]
>
Cc: Matthew Auld <
[email protected]
>
Reviewed-by: Matthew Auld <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_gpu_error.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gpu_error.c
b/drivers/gpu/drm/i915/i915_gpu_error.c
index 47721437a4c58d17b68813c0b9087ff3dda00922..6702776303bfd0ad0c4ea963a768681baeb81660 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/
drivers/gpu/drm/i915/i915_gpu_error.c
@@
-1570,11
+1570,11
@@
static void capture_pinned_buffers(struct i915_gpu_state *error)
int count_inactive, count_active;
count_inactive = 0;
- list_for_each_entry(vma, &vm->active_list, vm_link)
+ list_for_each_entry(vma, &vm->
in
active_list, vm_link)
count_inactive++;
count_active = 0;
- list_for_each_entry(vma, &vm->
in
active_list, vm_link)
+ list_for_each_entry(vma, &vm->active_list, vm_link)
count_active++;
bo = NULL;