Skip to content
Snippets Groups Projects
Commit d568fcd0 authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

i965: leave the top 4Gb of the high heap VMA unused


This ports commit 9e7b0988 from anv
to i965.  Thanks to Lionel for noticing that it was missing!

Fixes: 01058a55 i965: Add virtual memory allocator infrastructure to brw_bufmgr.
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
parent 17210c63
No related branches found
No related tags found
Loading
......@@ -1732,8 +1732,12 @@ brw_bufmgr_init(struct gen_device_info *devinfo, int fd)
util_vma_heap_init(&bufmgr->vma_allocator[BRW_MEMZONE_LOW_4G],
PAGE_SIZE, _4GB_minus_1);
/* Leave the last 4GB out of the high vma range, so that no state
* base address + size can overflow 48 bits.
*/
util_vma_heap_init(&bufmgr->vma_allocator[BRW_MEMZONE_OTHER],
1 * _4GB, gtt_size - 1 * _4GB);
1 * _4GB, gtt_size - 2 * _4GB);
} else if (devinfo->gen >= 10) {
/* Softpin landed in 4.5, but GVT used an aliasing PPGTT until
* kernel commit 6b3816d69628becb7ff35978aa0751798b4a940a in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment