All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Allocate IOMMU irq/page table using numa locality info
@ 2023-03-21  9:23 Vasant Hegde
  2023-03-21  9:23 ` [PATCH v2 1/2] iommu/amd: Allocate page " Vasant Hegde
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vasant Hegde @ 2023-03-21  9:23 UTC (permalink / raw)
  To: iommu, joro; +Cc: suravee.suthikulpanit, aik, baolu.lu, Vasant Hegde

By default page allocator uses running CPU info to allocate page table.
If it allocates page table in remote memory then every IOMMU access to
page table will have overhead of reading remote page.

This patchset uses IOMMU NUMA node info and tries to allocate memory
from same NUMA node. Similarly use NUMA node info to allocate IOMMU
irqs.

Changes in v2:
  - Removed redundant GFP_ATOMIC from alloc_pgtable_page()
  - Folded first two patches

  Thanks Lu Baolu and Alexey for the reviews.

Vasant Hegde (2):
  iommu/amd: Allocate page table using numa locality info
  iommu/amd: Allocate IOMMU irqs using numa locality info

 drivers/iommu/amd/amd_iommu.h       |  8 ++++++++
 drivers/iommu/amd/amd_iommu_types.h |  1 +
 drivers/iommu/amd/init.c            |  3 ++-
 drivers/iommu/amd/io_pgtable.c      |  4 ++--
 drivers/iommu/amd/io_pgtable_v2.c   | 16 ++++++----------
 drivers/iommu/amd/iommu.c           |  6 ++++++
 6 files changed, 25 insertions(+), 13 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2023-03-22 14:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-21  9:23 [PATCH v2 0/2] Allocate IOMMU irq/page table using numa locality info Vasant Hegde
2023-03-21  9:23 ` [PATCH v2 1/2] iommu/amd: Allocate page " Vasant Hegde
2023-03-21  9:23 ` [PATCH v2 2/2] iommu/amd: Allocate IOMMU irqs " Vasant Hegde
2023-03-22 14:44 ` [PATCH v2 0/2] Allocate IOMMU irq/page table " Joerg Roedel

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.