From 4fd0ff75f342bf8d6ec5565449d5c504b2b0af6d Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 29 Oct 2018 18:14:47 +0000 Subject: [PATCH] intel/sanitize_gpu: add debug message on mmap fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli --- src/intel/tools/intel_sanitize_gpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.30.2