<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BXT/GLK/KBL/BDW/BSW]gem_mmap/swap-bo causing page allocation failure"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100585#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BXT/GLK/KBL/BDW/BSW]gem_mmap/swap-bo causing page allocation failure"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100585">bug 100585</a>
              from <span class="vcard"><a class="email" href="mailto:jari.tahvanainen@intel.com" title="Jari Tahvanainen <jari.tahvanainen@intel.com>"> <span class="fn">Jari Tahvanainen</span></a>
</span></b>
        <pre>Chris - you said that this is known limitation. So are you saying that one can
use ~95% of memory successfully with this gem_mmap@swap-bo case? If huge object
is bigger than that then i915 (or kernel) mm fails?

On my dev-HSW I found out that the following is the limit (90% of repetitions
the case if pass):
Subtest swap-bo failed.
**** DEBUG ****
(gem_mmap:25393) intel-os-DEBUG: Checking 1 surfaces of size 15 985 541 120
bytes (total 15 985 545 216) against RAM + swap
(gem_mmap:25393) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_mmap:25393) igt-debugfs-DEBUG: Opening debugfs directory
'/sys/kernel/debug/dri/0'
(gem_mmap:25393) intel-os-DEBUG: Test requirement passed:
__intel_check_memory(count, size, mode, &required, &total)
(gem_mmap:25393) igt-core-DEBUG: Test requirement passed:
!igt_run_in_simulation()
(gem_mmap:25393) DEBUG: Exercising 15 985 541 120 bytes
(gem_mmap:25393) DEBUG: Total_ram 16 589 520 896 bytes</pre>
        </div>
      </p>


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

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