drm/amdgpu: refactor memory handling to support both external and internal allocation

Optimize the memory usage to accommodate both referencing externally
allocated memory from outside the module and allocating memory directly
within the module.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
YiPeng Chai 2026-05-19 17:28:49 +08:00 • committed by Alex Deucher
commit ba74c69d0c
4 changed files with 173 additions and 80 deletions