drm/amdgpu: add GART, GPUVM, and GTT to glossary
Subsystems (4)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: add GART, GPUVM, and GTT to glossary
Add definitions to clarify GPU virtual memory.
--- Documentation/gpu/amdgpu/amdgpu-glossary.rst | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+)
Documentation/gpu/amdgpu/amdgpu-glossary.rst +21 -0
@@ -30,12 +30,33 @@ we have a dedicated glossary for Display Core at EOP End Of Pipe/Pipeline + GART + Graphics Address Remapping Table. This is a GPUVM page table that maps + system resources (memory or MMIO space) into the GPU's address space so + the GPU can access them. In the GPU kernel driver's virtual address + space is referred to as the GART for legacy reasons going back to AGP + and the early GPU remapping hardware. + GC Graphics and Compute GMC Graphic Memory Controller + GPUVM + GPU Virtual Memory. The GPU supports multiple virtual address spaces + that can be in flight at any given time. These allow the GPU to remap + VRAM and system resources into GPU virtual address spaces for use by + the GPU kernel driver and applications using the GPU. These provide + memory protection for different applications using the GPU. + + GTT + Graphics Translation Tables. This is a memory pool managed through TTM + which provides access to system resources (memory or MMIO space) for + use by the GPU. These addresses can be mapped into the GART GPUVM page + table for use by the kernel driver or into per process GPUVM page tables + for application usage. + IH Interrupt Handler
Signature · 1 line
2.38.1
Quoted 13 lines · Alex Deucher
Add definitions to clarify GPU virtual memory.
Suggested-by Peter Maucher <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- Documentation/gpu/amdgpu/amdgpu-glossary.rst | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+)Documentation/gpu/amdgpu/amdgpu-glossary.rst +0
-0
Documentation/gpu/amdgpu/amdgpu-glossary.rst we have a dedicated glossary for Display Core at · line 39
Quoted 10 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +7
-0@@ -30,12 +30,33 @@ we have a dedicated glossary for Display Core at EOP End Of Pipe/Pipeline + GART + Graphics Address Remapping Table. This is a GPUVM page table that maps + system resources (memory or MMIO space) into the GPU's address space so + the GPU can access them. In the GPU kernel driver's virtual address + space is referred to as the GART for legacy reasons going back to AGP + and the early GPU remapping hardware. +
I'd probably mention that this is an actual IOMMU IP.
Documentation/gpu/amdgpu/amdgpu-glossary.rst we have a dedicated glossary for Display Core at · line 52
Quoted 13 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +7
-0GC Graphics and Compute GMC Graphic Memory Controller + GPUVM + GPU Virtual Memory. The GPU supports multiple virtual address spaces + that can be in flight at any given time. These allow the GPU to remap + VRAM and system resources into GPU virtual address spaces for use by + the GPU kernel driver and applications using the GPU. These provide + memory protection for different applications using the GPU. +
I'd probably add something like:
"... These allow the GPU to remap VRAM, using GMC, and system resources,
using AGP or GART, into GPU virtual address spaces ..."
Documentation/gpu/amdgpu/amdgpu-glossary.rst we have a dedicated glossary for Display Core at · line 59
Quoted 7 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +7
-0+ GTT + Graphics Translation Tables. This is a memory pool managed through TTM + which provides access to system resources (memory or MMIO space) for + use by the GPU. These addresses can be mapped into the GART GPUVM page + table for use by the kernel driver or into per process GPUVM page tables + for application usage. +
I'd probably clarify this simply by adding something like:
"This is system memory, mapped by GART or AGP, into the GPUVM, for access by the GPU."
I'm ambivalent if you want to add these, but it might make things clearer, as I'd struggled with what something is, as opposed to what it does.
Having said this, this patch is generally,
Thanks for doing this.
Regards,
Luben
Quoted 3 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +0
-0IH Interrupt Handler
Quoted 18 lines · Luben Tuikov
Quoted 16 lines · Alex Deucher
Add definitions to clarify GPU virtual memory.
Suggested-by Peter Maucher <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- Documentation/gpu/amdgpu/amdgpu-glossary.rst | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+)Documentation/gpu/amdgpu/amdgpu-glossary.rst +0
-0@@ -30,12 +30,33 @@ we have a dedicated glossary for Display Core at EOP End Of Pipe/Pipeline
Quoted 9 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst we have a dedicated glossary for Display Core at · line 39
Quoted 7 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +7
-0+ GART + Graphics Address Remapping Table. This is a GPUVM page table that maps + system resources (memory or MMIO space) into the GPU's address space so + the GPU can access them. In the GPU kernel driver's virtual address + space is referred to as the GART for legacy reasons going back to AGP + and the early GPU remapping hardware. +I'd probably mention that this is an actual IOMMU IP.
Ack.
Quoted 15 lines
Quoted 4 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +0
-0GC Graphics and ComputeDocumentation/gpu/amdgpu/amdgpu-glossary.rst we have a dedicated glossary for Display Core at · line 52
Quoted 10 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +7
-0GMC Graphic Memory Controller + GPUVM + GPU Virtual Memory. The GPU supports multiple virtual address spaces + that can be in flight at any given time. These allow the GPU to remap + VRAM and system resources into GPU virtual address spaces for use by + the GPU kernel driver and applications using the GPU. These provide + memory protection for different applications using the GPU. +
Quoted 4 lines
I'd probably add something like:
"... These allow the GPU to remap VRAM, using GMC, and system resources,
using AGP or GART, into GPU virtual address spaces ..."
Well, that's not entirely true. The GPUVM address space is unified so you can map a vram page next to a system ram page. The only difference is how you set up the PTEs. We just happen to set up VMID 0 (the kernel driver's GPUVM) slightly differently due to some extended capabilities in that context. But you could map vram via the GART (vmid 0) page table if you wanted to. AGP isn't really a thing anymore, but we still have the aperture on the GPU, but we use it for other things now.
Quoted 9 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst we have a dedicated glossary for Display Core at · line 59
Quoted 8 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +7
-0+ GTT + Graphics Translation Tables. This is a memory pool managed through TTM + which provides access to system resources (memory or MMIO space) for + use by the GPU. These addresses can be mapped into the GART GPUVM page + table for use by the kernel driver or into per process GPUVM page tables + for application usage. +
Quoted 6 lines
I'd probably clarify this simply by adding something like:
"This is system memory, mapped by GART or AGP, into the GPUVM, for access by the GPU."
I'm ambivalent if you want to add these, but it might make things clearer, as I'd struggled with what something is, as opposed to what it does.
I'll see if I can clarify things a bit more.
Quoted 6 lines
Having said this, this patch is generally,
Reviewed-by Luben Tuikov <[email protected]>Thanks for doing this.
Thanks!
Alex
Quoted 8 lines
Regards,
LubenQuoted 3 lines
Documentation/gpu/amdgpu/amdgpu-glossary.rst +0
-0IH Interrupt Handler