<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BSW][IGT] gem_userptr_blits@forbidden-operations"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97519">97519</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[BSW][IGT] gem_userptr_blits@forbidden-operations
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>luis.botello.ortega@intel.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>i915 platform</th>
          <td>BSW/CHT
          </td>
        </tr>

        <tr>
          <th>i915 features</th>
          <td>display/Other
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
=============================================
gem_userptr_blits subtest forbidden-operations fails

Steps to reproduce:
=============================================
#./gem_userptr_blits --run-subtest forbidden-operations

Software Configuration:
============================================
Kernel: 4.8.0-rc3 gb0658ce  from <a href="http://cgit.freedesktop.org/drm-intel/">http://cgit.freedesktop.org/drm-intel/</a>
libdrm-2.4.70-2 b214b05 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.0- 532 6e5bec2 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.697 12c14de from
git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.0-45 b27feb9 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.0-89 b53fad9 from
git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.15 a147ef2 from
<a href="http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git">http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git</a>

Hardware Configuration:
=============================================
Hardware: Acer Desktop
Motherboard: Aspire XC-704
CPU: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz (Family 6, Model 76, Stepping 3)
GPU:  IntelĀ® HD Graphics - Intel Corporation Device 22b1 (rev 21)
Memory card: 1 card 4GB Hynix HMT451S6BFR8APB
HDD: Western Digital WDC WD10EZEX-21M (1TB)

Software:
Bios: R01-A2
Linux distribution: Ubuntu 16.04 64 bits

IGT output
==================================================
IGT-Version: 1.15-gb0658ce (x86_64) (Linux: 4.8.0-rc3-nightly+ x86_64)
(gem_userptr_blits:7571) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_userptr_blits:7571) ioctl-wrappers-DEBUG: Test requirement passed: !(ret
== ENODEV && (flags & LOCAL_I915_USERPTR_UNSYNCHRONIZED) == 0 && !read_only)
(gem_userptr_blits:7571) DEBUG: Test requirement passed: !(ret == 0)
Aperture size is 4096 MiB
Total RAM is 3,739 MiB
(gem_userptr_blits:7571) igt-core-DEBUG: Starting subtest: forbidden-operations
(gem_userptr_blits:7571) ioctl-wrappers-DEBUG: Test requirement passed: !(ret
== ENODEV && (flags & LOCAL_I915_USERPTR_UNSYNCHRONIZED) == 0 && !read_only)
(gem_userptr_blits:7571) CRITICAL: Test assertion failure function
test_forbidden_ops, file gem_userptr_blits.c:606:
(gem_userptr_blits:7571) CRITICAL: Failed assertion: ret == 0 || errno ==
EINVAL
(gem_userptr_blits:7571) CRITICAL: Last errno: 14, Bad address
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x1f13]
  #2 [__libc_start_main+0xf0]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest forbidden-operations failed.
**** DEBUG ****
(gem_userptr_blits:7571) ioctl-wrappers-DEBUG: Test requirement passed: !(ret
== ENODEV && (flags & LOCAL_I915_USERPTR_UNSYNCHRONIZED) == 0 && !read_only)
(gem_userptr_blits:7571) CRITICAL: Test assertion failure function
test_forbidden_ops, file gem_userptr_blits.c:606:
(gem_userptr_blits:7571) CRITICAL: Failed assertion: ret == 0 || errno ==
EINVAL
(gem_userptr_blits:7571) CRITICAL: Last errno: 14, Bad address
****  END  ****
Subtest forbidden-operations: FAIL (0.007s)
Testing unsynchronized mappings...
Testing synchronized mappings...
(gem_userptr_blits:7571) igt-core-DEBUG: Exiting with status code 99

dmesg
============================================================
[  368.252489] gem_userptr_blits: executing
[  368.253008] [drm:i915_gem_open]
[  368.253257] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.253267] [drm:i915_pages_create_for_stolen] offset=0x7fb000, size=16384
[  368.254232] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.254238] [drm:i915_pages_create_for_stolen] offset=0x7ff000, size=16384
[  368.254658] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.254664] [drm:i915_pages_create_for_stolen] offset=0x803000, size=16384
[  368.254869] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.254875] [drm:i915_pages_create_for_stolen] offset=0x807000, size=16384
[  368.256574] [drm:i915_gem_open]
[  368.256837] gem_userptr_blits: starting subtest forbidden-operations
[  368.263213] gem_userptr_blits: exiting, ret=99
[  368.263760] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.263769] [drm:i915_pages_create_for_stolen] offset=0x80b000, size=16384
[  368.264788] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.264806] [drm:i915_pages_create_for_stolen] offset=0x80f000, size=16384
[  368.265686] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.265696] [drm:i915_pages_create_for_stolen] offset=0x813000, size=16384
[  368.266069] [drm:i915_gem_object_create_stolen] creating stolen object:
size=4000
[  368.266075] [drm:i915_pages_create_for_stolen] offset=0x817000, size=16384</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>