]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: add UMA allocation interfaces to sysfs
authorYo-Jung Leo Lin (AMD) <Leo.Lin@amd.com>
Fri, 12 Dec 2025 07:59:16 +0000 (15:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:59:58 +0000 (16:59 -0500)
commit19ba61ac06d2a4f1e58f92879b54a998ab23b4b1
tree07ab46ffac4229d7b68b1bfd01b424ed9f26c4f7
parent379a3160633a469da240f40948464f20582c11e9
drm/amdgpu: add UMA allocation interfaces to sysfs

Add a uma/ directory containing two sysfs files as interfaces to
inspect or change UMA carveout size. These files are:

- uma/carveout_options: a read-only file listing all the available
  UMA allocation options and their index.

- uma/carveout: a file that is both readable and writable. On read,
  it shows the index of the current setting. Writing a valid index
  into this file allows users to change the UMA carveout size to that
  option on the next boot.

Co-developed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Yo-Jung Leo Lin (AMD) <Leo.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c