All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: Matthew Auld <matthew.auld@intel.com>,
	Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: [Intel-gfx] Strange hugepages result?
Date: Thu, 10 Jun 2021 21:02:38 +0200	[thread overview]
Message-ID: <c9ea7221-cc54-3394-f664-3f819ecc6d06@linux.intel.com> (raw)

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

             reply	other threads:[~2021-06-10 19:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10 19:02 Thomas Hellström [this message]
2021-06-10 19:57 ` [Intel-gfx] Strange hugepages result? Matthew Auld
2021-06-11  5:44   ` Thomas Hellström

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9ea7221-cc54-3394-f664-3f819ecc6d06@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.