aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-10-29 18:14:47 +0000
committerLionel Landwerlin <[email protected]>2018-11-05 15:45:08 +0000
commit4fd0ff75f342bf8d6ec5565449d5c504b2b0af6d (patch)
tree5088a3b7e18a53752d8db9f37f511288c928f4f6
parente400ac52e46a69ea643d35a64466f9a1bedee4fc (diff)
intel/sanitize_gpu: add debug message on mmap fail
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
-rw-r--r--src/intel/tools/intel_sanitize_gpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/tools/intel_sanitize_gpu.c b/src/intel/tools/intel_sanitize_gpu.c
index 4f1a2d2ead5..8f4f2ff8ec6 100644
--- a/src/intel/tools/intel_sanitize_gpu.c
+++ b/src/intel/tools/intel_sanitize_gpu.c
@@ -226,8 +226,10 @@ create_with_padding(int fd, struct drm_i915_gem_create *create)
};
ret = libc_ioctl(fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg);
- if (ret != 0)
+ if (ret != 0) {
+ intel_logd("Unable to map buffer %d for pad creation.\n", create->handle);
return 0;
+ }
noise_values = (uint8_t*) (uintptr_t) mmap_arg.addr_ptr;
fill_noise_buffer(noise_values, create->handle & 0xFF,