Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation/amdgpu: Add UMA carveout details

Add documentation for the uma/carveout_options and uma/carveout
attributes in sysfs

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yo-Jung Leo Lin (AMD) <Leo.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yo-Jung Leo Lin (AMD) and committed by
Alex Deucher
5946dbe1 19ba61ac

+55
+26
Documentation/gpu/amdgpu/driver-misc.rst
··· 128 128 129 129 .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c 130 130 :doc: smartshift_bias 131 + 132 + UMA Carveout 133 + ============ 134 + 135 + Some versions of Atom ROM expose available options for the VRAM carveout sizes, 136 + and allow changes to the carveout size via the ATCS function code 0xA on supported 137 + BIOS implementations. 138 + 139 + For those platforms, users can use the following files under uma/ to set the 140 + carveout size, in a way similar to what Windows users can do in the "Tuning" 141 + tab in AMD Adrenalin. 142 + 143 + Note that for BIOS implementations that don't support this, these files will not 144 + be created at all. 145 + 146 + uma/carveout_options 147 + -------------------- 148 + 149 + .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 150 + :doc: uma/carveout_options 151 + 152 + uma/carveout 153 + -------------------- 154 + 155 + .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 156 + :doc: uma/carveout
+29
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 382 382 .is_visible = amdgpu_board_attrs_is_visible 383 383 }; 384 384 385 + /** 386 + * DOC: uma/carveout_options 387 + * 388 + * This is a read-only file that lists all available UMA allocation 389 + * options and their corresponding indices. Example output:: 390 + * 391 + * $ cat uma/carveout_options 392 + * 0: Minimum (512 MB) 393 + * 1: (1 GB) 394 + * 2: (2 GB) 395 + * 3: (4 GB) 396 + * 4: (6 GB) 397 + * 5: (8 GB) 398 + * 6: (12 GB) 399 + * 7: Medium (16 GB) 400 + * 8: (24 GB) 401 + * 9: High (32 GB) 402 + */ 385 403 static ssize_t carveout_options_show(struct device *dev, 386 404 struct device_attribute *attr, 387 405 char *buf) ··· 432 414 } 433 415 static DEVICE_ATTR_RO(carveout_options); 434 416 417 + /** 418 + * DOC: uma/carveout 419 + * 420 + * This file is both readable and writable. When read, it shows the 421 + * index of the current setting. Writing a valid index to this file 422 + * allows users to change the UMA carveout size to the selected option 423 + * on the next boot. 424 + * 425 + * The available options and their corresponding indices can be read 426 + * from the uma/carveout_options file. 427 + */ 435 428 static ssize_t carveout_show(struct device *dev, 436 429 struct device_attribute *attr, 437 430 char *buf)