i965: Allocate VMA in userspace for full-PPGTT systems.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Apr 2018 08:18:25 +0000 (01:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jun 2018 02:45:09 +0000 (19:45 -0700)
commita363bb2cd0e2a141f2c60be005009703bffcbe4e
treeebeb03e02ff36e57faa7e688ce58a07bbc349165
parent74259b98aab010d3062c5903770dc3067665b59e
i965: Allocate VMA in userspace for full-PPGTT systems.

This patch enables soft-pinning of all buffers, allowing us to skip
relocation processing entirely.  All systems with full PPGTT and > 4GB
of VMA should gain these benefits.  This should be most Gen8+.

Unfortunately, this excludes a few systems:
- Cherryview (only has 32-bit addressing, despite 48-bit pointers)
- Broadwell with a 32-bit kernel
- Anybody running pre-4.5 kernel.

We may enable it for Cherryview in the future, but it would require
some tweaks to the memory zone.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_bufmgr.c