Skip to content

Commit 570513b

Browse files
Peter Maucheralexdeucher
authored andcommitted
drm/amdgpu: improve GART and GTT documentation
Document difference between amdgpu.gartsize and amdgpu.gttsize module parameters, as initially explained by Alex Deucher here: https://lists.freedesktop.org/archives/dri-devel/2022-October/375358.html v2: minor cleanups (Alex) Signed-off-by: Peter Maucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2cffcb6 commit 570513b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,18 @@ module_param_named(vis_vramlimit, amdgpu_vis_vram_limit, int, 0444);
231231

232232
/**
233233
* DOC: gartsize (uint)
234-
* Restrict the size of GART in Mib (32, 64, etc.) for testing. The default is -1 (The size depends on asic).
234+
* Restrict the size of GART (for kernel use) in Mib (32, 64, etc.) for testing.
235+
* The default is -1 (The size depends on asic).
235236
*/
236-
MODULE_PARM_DESC(gartsize, "Size of GART to setup in megabytes (32, 64, etc., -1=auto)");
237+
MODULE_PARM_DESC(gartsize, "Size of kernel GART to setup in megabytes (32, 64, etc., -1=auto)");
237238
module_param_named(gartsize, amdgpu_gart_size, uint, 0600);
238239

239240
/**
240241
* DOC: gttsize (int)
241-
* Restrict the size of GTT domain in MiB for testing. The default is -1 (Use 1/2 RAM, minimum value is 3GB).
242+
* Restrict the size of GTT domain (for userspace use) in MiB for testing.
243+
* The default is -1 (Use 1/2 RAM, minimum value is 3GB).
242244
*/
243-
MODULE_PARM_DESC(gttsize, "Size of the GTT domain in megabytes (-1 = auto)");
245+
MODULE_PARM_DESC(gttsize, "Size of the GTT userspace domain in megabytes (-1 = auto)");
244246
module_param_named(gttsize, amdgpu_gtt_size, int, 0600);
245247

246248
/**

0 commit comments

Comments
 (0)