Skip to content

map big page by platform IOMMU

Vince Hsu nouveau 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6platform: specify the IOMMU physical translation bitdrm/nouveau/nouveau_platform.c drm/nouveau/nouveau_platform.h+20 -07 replies
2/6instmem/gk20a: refer to IOMMU physical translation bitdrm/nouveau/nvkm/subdev/instmem/gk20a.c+9 -46 replies
3/6mmu: map small pages into big pages(s) by IOMMU if possibledrm/nouveau/include/nvkm/subdev/mmu.h drm/nouveau/nvkm/subdev/mmu/base.c lib/include/nvif/os.h+179 -76 replies
4/6drm: enable big page mapping for small pages when IOMMU is availabledrm/nouveau/nouveau_bo.c+9 -04 replies
5/6mmu: gf100: share most of functions with GK20Adrm/nouveau/nvkm/subdev/mmu/gf100.c drm/nouveau/nvkm/subdev/mmu/gf100.h+54 -202 replies
6/6mmu: gk20a: implement IOMMU mapping for big pagesdrm/nouveau/nvkm/engine/device/gk104.c drm/nouveau/nvkm/subdev/mmu/Kbuild drm/nouveau/nvkm/subdev/mmu/gk20a.c+255 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] map big page by platform IOMMU

Hi,

Generally the the imported buffers which has memory type TTM_PL_TT are mapped as small pages probably due to lack of big page allocation. But the platform device which also use memory type TTM_PL_TT, like GK20A, can *allocate* big page though the IOMMU hardware inside the SoC. This is a try to map the imported buffers as big pages in GMMU by the platform IOMMU. With some preparation work to map decreate small pages into big page(s) by IOMMU the GMMU eventually sees the imported buffer as chunks of big pages and does the mapping. And then we can probably do the compression on teh imported buffer which is composed of non-contiguous small pages. The compbits related patches shall come later.

I guess most of you won't like the change for the MMU code in this series. So please comment and guide me how to do this better. :)

Thanks,
Vince

Vince Hsu (6):
platform: specify the IOMMU physical translation bit instmem/gk20a: refer to IOMMU physical translation bit
mmu: map small pages into big pages(s) by IOMMU if possible
drm: enable big page mapping for small pages when IOMMU is available
mmu: gf100: share most of functions with GK20A
mmu: gk20a: implement IOMMU mapping for big pages

 drm/nouveau/include/nvkm/subdev/mmu.h   |  16 ++
 drm/nouveau/nouveau_bo.c                |   9 ++
 drm/nouveau/nouveau_platform.c          |  19 +++
 drm/nouveau/nouveau_platform.h          |   1 +
 drm/nouveau/nvkm/engine/device/gk104.c  |   2 +-
 drm/nouveau/nvkm/subdev/instmem/gk20a.c |  13 +-
 drm/nouveau/nvkm/subdev/mmu/Kbuild      |   1 +
 drm/nouveau/nvkm/subdev/mmu/base.c      | 158 +++++++++++++++++++-
 drm/nouveau/nvkm/subdev/mmu/gf100.c     |  28 +---
 drm/nouveau/nvkm/subdev/mmu/gf100.h     |  46 ++++++
 drm/nouveau/nvkm/subdev/mmu/gk20a.c     | 253 ++++++++++++++++++++++++++++++++
 lib/include/nvif/os.h                   |  12 ++
 12 files changed, 526 insertions(+), 32 deletions(-)
 create mode 100644 drm/nouveau/nvkm/subdev/mmu/gf100.h
 create mode 100644 drm/nouveau/nvkm/subdev/mmu/gk20a.c
Signature · 6 lines
2.1.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau