* [igt-dev] [PATCH i-g-t] lib/igt_draw: Fix bo leak in gpu draw routines
@ 2018-02-28 9:14 Maarten Lankhorst
2018-02-28 9:22 ` Chris Wilson
2018-02-28 11:34 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
0 siblings, 2 replies; 4+ messages in thread
From: Maarten Lankhorst @ 2018-02-28 9:14 UTC (permalink / raw)
To: igt-dev
gem_handle_to_libdrm_bo creates a new handle through the use of flink,
which makes kms_frontbuffer_tracking through a single run not complete
when it starts leaking 50MB objects. Add the missing bo_unref to kill
the duplicated handle and fix the leaks!
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
lib/igt_draw.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/igt_draw.c b/lib/igt_draw.c
index 8f8238292fb5..4c2b0fd9925f 100644
--- a/lib/igt_draw.c
+++ b/lib/igt_draw.c
@@ -557,6 +557,7 @@ static void draw_rect_blt(int fd, struct cmd_data *cmd_data,
intel_batchbuffer_flush(batch);
intel_batchbuffer_free(batch);
+ drm_intel_bo_unreference(dst);
}
static void draw_rect_render(int fd, struct cmd_data *cmd_data,
@@ -624,6 +625,8 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data,
rect->h, &dst_buf, adjusted_dst_x, rect->y);
intel_batchbuffer_free(batch);
+ drm_intel_bo_unreference(src);
+ drm_intel_bo_unreference(dst);
gem_close(fd, tmp.handle);
}
--
2.16.2
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] lib/igt_draw: Fix bo leak in gpu draw routines
2018-02-28 9:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Fix bo leak in gpu draw routines Maarten Lankhorst
@ 2018-02-28 9:22 ` Chris Wilson
2018-02-28 10:04 ` Maarten Lankhorst
2018-02-28 11:34 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
1 sibling, 1 reply; 4+ messages in thread
From: Chris Wilson @ 2018-02-28 9:22 UTC (permalink / raw)
To: Maarten Lankhorst, igt-dev
Quoting Maarten Lankhorst (2018-02-28 09:14:03)
> gem_handle_to_libdrm_bo creates a new handle through the use of flink,
> which makes kms_frontbuffer_tracking through a single run not complete
> when it starts leaking 50MB objects. Add the missing bo_unref to kill
> the duplicated handle and fix the leaks!
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
3 gem_handle_to_libdrm_bo, 3 unrefs.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] lib/igt_draw: Fix bo leak in gpu draw routines
2018-02-28 9:22 ` Chris Wilson
@ 2018-02-28 10:04 ` Maarten Lankhorst
0 siblings, 0 replies; 4+ messages in thread
From: Maarten Lankhorst @ 2018-02-28 10:04 UTC (permalink / raw)
To: Chris Wilson, igt-dev
Op 28-02-18 om 10:22 schreef Chris Wilson:
> Quoting Maarten Lankhorst (2018-02-28 09:14:03)
>> gem_handle_to_libdrm_bo creates a new handle through the use of flink,
>> which makes kms_frontbuffer_tracking through a single run not complete
>> when it starts leaking 50MB objects. Add the missing bo_unref to kill
>> the duplicated handle and fix the leaks!
>>
>> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> 3 gem_handle_to_libdrm_bo, 3 unrefs.
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
> -Chris
Thanks, pushed. :)
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_draw: Fix bo leak in gpu draw routines
2018-02-28 9:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Fix bo leak in gpu draw routines Maarten Lankhorst
2018-02-28 9:22 ` Chris Wilson
@ 2018-02-28 11:34 ` Patchwork
1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-02-28 11:34 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: igt-dev
== Series Details ==
Series: lib/igt_draw: Fix bo leak in gpu draw routines
URL : https://patchwork.freedesktop.org/series/39096/
State : failure
== Summary ==
Series 39096 revision 1 was fully merged or fully failed: no git log
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-28 11:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 9:14 [igt-dev] [PATCH i-g-t] lib/igt_draw: Fix bo leak in gpu draw routines Maarten Lankhorst
2018-02-28 9:22 ` Chris Wilson
2018-02-28 10:04 ` Maarten Lankhorst
2018-02-28 11:34 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.