]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd: Mark amdgpu.gttsize parameter as deprecated and show warnings on use
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 16 Jan 2025 21:53:20 +0000 (15:53 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:58 +0000 (21:02 -0500)
commit50e30e3a0ef3a748f86fcdd95072e207879a34d0
treeed0317c9b1f9429d63081b97612cbf240fc2e28c
parent196b68aa32c3171ebc8783e614d21b336ce61d50
drm/amd: Mark amdgpu.gttsize parameter as deprecated and show warnings on use

When not set `gttsize` module parameter by default will get the
value to use for the GTT pool from the TTM page limit, which is
set by a separate module parameter.

This inevitably leads to people not sure which one to set when they
want more addressable memory for the GPU, and you'll end up seeing
instructions online saying to set both.

Add some messages to try to guide people both who are using or misusing
the parameters and mark the parameter as deprecated with the plan to
drop it after the next LTS kernel release.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c