All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] Strange hugepages result?
@ 2021-06-10 19:02 Thomas Hellström
  2021-06-10 19:57 ` Matthew Auld
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Hellström @ 2021-06-10 19:02 UTC (permalink / raw)
  To: Matthew Auld, Intel Graphics Development

Hi, Matthew!

I got a funny result from the hugepages selftest when trying to break 
out some functionality from shmem to make a ttm page pool for 
cached-only TTM system bos.

It turns out that shmem computed the pagesizes using the underlying 
pages rather than the dma segments, so when I changed that, hugepages 
started failing.

https://patchwork.freedesktop.org/series/91227/

But when hacking the page-size computation to use the underlying pages, 
it's fine again

https://patchwork.freedesktop.org/series/91336/

It seems like some assumption about huge dma segments is wrong, either 
in our page-size calculation, in the selftest or in the actual huge page 
setup. Could it be that huge sized segments are assumed to be properly 
aligned?

/Thomas



_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-11  5:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-10 19:02 [Intel-gfx] Strange hugepages result? Thomas Hellström
2021-06-10 19:57 ` Matthew Auld
2021-06-11  5:44   ` Thomas Hellström

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.