<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 - gem_shrink -oom subcases return fail instead of pass"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97259">97259</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>gem_shrink -oom subcases return fail instead of pass
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>IGT
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>christophe.prigent@intel.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Platform: KABY LAKE-U
CPU : Intel(R) Core(TM) @ 2.60GHz
MCP : KBL-U G0 2+2
QDF : QYQ8
Chipset PCH: SPT-LP C1
CRB : KABY LAKE U DDR3L RVP7 CRB FAB1
Software
BIOS: 38_07 KBLSE2R1.R00.X038.P07.1606200632 from
<a href="https://ubit-artifactory-ba.intel.com/artifactory/simple/one-windows-local/Submissions/ifwi/KBL_PURPLE_IFWI_2016_WW26_1_00_HR'16/IFWI-KBL_PURPLE_IFWI_2016_WW26_1_00_HR'16-R.7z">https://ubit-artifactory-ba.intel.com/artifactory/simple/one-windows-local/Submissions/ifwi/KBL_PURPLE_IFWI_2016_WW26_1_00_HR'16/IFWI-KBL_PURPLE_IFWI_2016_WW26_1_00_HR'16-R.7z</a>
ME FW: 11.5.0.1058
EC FW: 1.19
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0-rc1 8ca71ca from <a href="http://cgit.freedesktop.org/drm-intel/">http://cgit.freedesktop.org/drm-intel/</a>
  commit 8ca71ca6198ad5a08a7d3e00f94149db2cdd5ebc
  Author: Daniel Vetter <<a href="mailto:daniel.vetter@ffwll.ch">daniel.vetter@ffwll.ch</a>>
  Date:   Mon Aug 8 11:02:44 2016 +0200
  drm-intel-nightly: 2016y-08m-08d-09h-02m-24s UTC integration manifest
drm: 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
xserver: xorg-server-1.18.0-502 c833c08 from
git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-691 a77397a from
git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-44 695f99e from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-66 fb7d6f5 from
git://git.freedesktop.org/git/vaapi/intel-driver
GuC 9.14 from
<a href="http://rdvivi-hillsboro.jf.intel.com/firmware/kbl_guc_ver9_14.tar.bz2">http://rdvivi-hillsboro.jf.intel.com/firmware/kbl_guc_ver9_14.tar.bz2</a> 
DMC 1.01 from: <a href="https://01.org/linuxgraphics/downloads/kabylake-dmc-1.01">https://01.org/linuxgraphics/downloads/kabylake-dmc-1.01</a> 
Intel-Gpu-Tools 1.15-216 9afd545 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>

Steps:
------
1. Execute IGT tests:
# ./gem_shrink --r pwrite-oom
# ./gem_shrink --r pread-oom

Actual results:
---------------
1. Tests return fail
>From Chris Wislon: The -oom bugs are expected "failure". At least we are
expecting that the kernel kills our test without oopsing or killing anybody
else. To fail here is to pass!
<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [KBL] IGT / gem_shrink / pread-oom and mmap-cpu-oom are fail"
   href="show_bug.cgi?id=95502#c3">https://bugs.freedesktop.org/show_bug.cgi?id=95502#c3</a>

Expected result:
----------------
1. Tests return Pass

Output:
-------
# ./gem_shrink --r pwrite-oom
IGT-Version: 1.15-g12f052b (x86_64) (Linux: 4.8.0-rc1-nightly+ x86_64)
Using 45 processes and 128MiB per process
child 0 died with signal 9, Killed
Subtest pwrite-oom failed.
**** DEBUG ****
(gem_shrink:7943) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_shrink:7943) DEBUG: Test requirement passed: has_userptr()
****  END  ****
Subtest pwrite-oom: FAIL (368.497s)

# ./gem_shrink --r pread-oom
IGT-Version: 1.15-g12f052b (x86_64) (Linux: 4.8.0-rc1-nightly+ x86_64)
Using 45 processes and 128MiB per process
child 0 died with signal 9, Killed
Subtest pread-oom failed.
**** DEBUG ****
(gem_shrink:12351) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_shrink:12351) DEBUG: Test requirement passed: has_userptr()
****  END  ****
Subtest pread-oom: FAIL (186.552s)</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>