diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-16 10:00:58 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-18 11:52:44 +0100 |
| commit | 293f43c80c0027ff9299036c24218ac705ce584e (patch) | |
| tree | 1e5787f35f002409ed6dc99f95c89277f36d3f73 /tools/perf/scripts/python/bin | |
| parent | drm/i915/gt: Show engine properties in the pretty printer (diff) | |
| download | linux-293f43c80c0027ff9299036c24218ac705ce584e.tar.gz linux-293f43c80c0027ff9299036c24218ac705ce584e.zip | |
drm/i915: Break up error capture compression loops with cond_resched()
As the error capture will compress user buffers as directed to by the
user, it can take an arbitrary amount of time and space. Break up the
compression loops with a call to cond_resched(), that will allow other
processes to schedule (avoiding the soft lockups) and also serve as a
warning should we try to make this loop atomic in the future.
Testcase: igt/gem_exec_capture/many-*
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200916090059.3189-2-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
