iris: Force VMA alignment to be a multiple of the page size.

This should happen regardless, but let's be paranoid.
This commit is contained in:
Kenneth Graunke 2019-04-26 18:53:57 -07:00
parent 068a700195
commit bd4b18d255

View file

@ -410,6 +410,9 @@ vma_alloc(struct iris_bufmgr *bufmgr,
uint64_t size,
uint64_t alignment)
{
/* Force alignment to be some number of pages */
alignment = ALIGN(alignment, PAGE_SIZE);
if (memzone == IRIS_MEMZONE_BORDER_COLOR_POOL)
return IRIS_BORDER_COLOR_POOL_ADDRESS;