[Intel-gfx] [PATCH] drm/i915/selftests: Follow up on increase timeout in i915_gem_contexts selftests

2021-12-03 Thread Bruce Chang
Follow up on patch https://patchwork.freedesktop.org/patch/446832/ Different platforms will take a bit longer while GuC is enabled, so increase the timeout and also add some margin in i915_gem_context selftest. Signed-off-by: Bruce Chang Cc: Matthew Brost Cc: John Harrison --- drivers/gpu

[Intel-gfx] [PATCH] drm/i915/selftests: Follow up on increase timeout in i915_gem_contexts selftests

2021-12-06 Thread Bruce Chang
Follow up on commit 5e076529e265 ("drm/i915/selftests: Increase timeout in i915_gem_contexts selftests") So we went from 200 msec to 1sec in that commit, and now we are going to 10sec as timeout. Signed-off-by: Bruce Chang Reviewed-by: Matthew Brost Cc: John Harrison --- drivers/gp

[Intel-gfx] [PATCH] drm/i915: Fix a bug calling sleep function in atomic context

2019-11-12 Thread Bruce Chang
ERNEL flag which can go to sleep. This is why the bug got reported. So, changed to non atomic version instead. Signed-off-by: Bruce Chang --- drivers/gpu/drm/i915/i915_gpu_error.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c

[Intel-gfx] [PATCH] drm/i915: Fix a bug calling sleep function in atomic context

2019-11-13 Thread Bruce Chang
ERNEL flag which can go to sleep. This is why the bug got reported. So, changed to non atomic version instead. Signed-off-by: Bruce Chang Reviewed-by: Brian Welty Fixes: 895d8ebeaa924 ("drm/i915: error capture with no ggtt slot") --- drivers/gpu/drm/i915/i915_gpu_error.c | 8 ---

[Intel-gfx] [PATCH] drm/i915: Fix a bug calling sleep function in atomic context

2019-11-13 Thread Bruce Chang
to use non atomic version of functions like io_mapping_map_wc/kmap, or 2) make compress_page run in atomic context. But it is not a good idea to run slow compression in atomic context, so, 1) above is preferred solution which is the implementation of this patch. Signed-off

[Intel-gfx] [PATCH] drm/i915: Fix a bug calling sleep function in atomic context

2019-11-13 Thread Bruce Chang
mic context but after that, compress_page calls pool_alloc with GFP_KERNEL flag which can potentially go to sleep. In order to fix this issue, we either 1) not enter into atomic context, i.e., to use non atomic version of functions like io_mapping_map_wc/kmap, or