* [PATCH] drm/selftests/mm: Insert cond_resched() between insert modes
@ 2017-11-07 10:41 Chris Wilson
2017-11-07 12:51 ` Joonas Lahtinen
0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2017-11-07 10:41 UTC (permalink / raw)
To: dri-devel; +Cc: intel-gfx
kbuilder has begun running the selftests and reported a soft-lockup
inside __igt_insert(), so break up the test loop over different modes
with another call to cond_resched().
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
drivers/gpu/drm/selftests/test-drm_mm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/selftests/test-drm_mm.c b/drivers/gpu/drm/selftests/test-drm_mm.c
index 86eb4c185a28..7cc935d7b7aa 100644
--- a/drivers/gpu/drm/selftests/test-drm_mm.c
+++ b/drivers/gpu/drm/selftests/test-drm_mm.c
@@ -682,6 +682,8 @@ static int __igt_insert(unsigned int count, u64 size, bool replace)
drm_mm_for_each_node_safe(node, next, &mm)
drm_mm_remove_node(node);
DRM_MM_BUG_ON(!drm_mm_clean(&mm));
+
+ cond_resched();
}
ret = 0;
@@ -944,6 +946,8 @@ static int __igt_insert_range(unsigned int count, u64 size, u64 start, u64 end)
drm_mm_for_each_node_safe(node, next, &mm)
drm_mm_remove_node(node);
DRM_MM_BUG_ON(!drm_mm_clean(&mm));
+
+ cond_resched();
}
ret = 0;
@@ -1068,6 +1072,7 @@ static int igt_align(void *ignored)
drm_mm_for_each_node_safe(node, next, &mm)
drm_mm_remove_node(node);
DRM_MM_BUG_ON(!drm_mm_clean(&mm));
+
cond_resched();
}
--
2.15.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/selftests/mm: Insert cond_resched() between insert modes
2017-11-07 10:41 [PATCH] drm/selftests/mm: Insert cond_resched() between insert modes Chris Wilson
@ 2017-11-07 12:51 ` Joonas Lahtinen
2017-11-07 14:29 ` Joonas Lahtinen
0 siblings, 1 reply; 3+ messages in thread
From: Joonas Lahtinen @ 2017-11-07 12:51 UTC (permalink / raw)
To: Chris Wilson, dri-devel; +Cc: intel-gfx
On Tue, 2017-11-07 at 10:41 +0000, Chris Wilson wrote:
> kbuilder has begun running the selftests and reported a soft-lockup
> inside __igt_insert(), so break up the test loop over different modes
> with another call to cond_resched().
>
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/selftests/mm: Insert cond_resched() between insert modes
2017-11-07 12:51 ` Joonas Lahtinen
@ 2017-11-07 14:29 ` Joonas Lahtinen
0 siblings, 0 replies; 3+ messages in thread
From: Joonas Lahtinen @ 2017-11-07 14:29 UTC (permalink / raw)
To: Chris Wilson, dri-devel; +Cc: intel-gfx
On Tue, 2017-11-07 at 14:51 +0200, Joonas Lahtinen wrote:
> On Tue, 2017-11-07 at 10:41 +0000, Chris Wilson wrote:
> > kbuilder has begun running the selftests and reported a soft-lockup
> > inside __igt_insert(), so break up the test loop over different
> > modes
> > with another call to cond_resched().
> >
> > Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
>
> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Pushed to drm-misc-next, thanks for the patch.
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-07 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-07 10:41 [PATCH] drm/selftests/mm: Insert cond_resched() between insert modes Chris Wilson
2017-11-07 12:51 ` Joonas Lahtinen
2017-11-07 14:29 ` Joonas Lahtinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).