]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Relax assertion for pt_used
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Aug 2019 04:20:44 +0000 (05:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Aug 2019 08:17:11 +0000 (09:17 +0100)
commitff1750101351a225754ca4a14b83275c766cf540
tree1420178e72538670c7ed623f4637af7355756097
parent4eaceea3a00f8e936a7f48dcd0c975a57f88930f
drm/i915/gtt: Relax assertion for pt_used

When inserting the final level PTE, we check that we are not overflowing
the page table (checking that pt_used does not exceed the size of the
table). However, we have to allow for every other PTE to be pinned by a
simultaneous removal thread (as on remove we bump the pt_used counter
before adjusting the table).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190821042044.7354-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c