]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/amdgpu: Add helper functions for isp buffers
authorPratap Nirujogi <pratap.nirujogi@amd.com>
Mon, 23 Jun 2025 22:44:50 +0000 (18:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Jul 2025 20:17:35 +0000 (16:17 -0400)
commit55d42f6169760d052330f3c949c02e37867b87d8
tree879cabb397a631a2f5b3546b6cc7454d9a78fb12
parente36519f5c8035f1685b39690ed330ac3b2c978a2
drm/amd/amdgpu: Add helper functions for isp buffers

Accessing amdgpu internal data structures "struct amdgpu_device"
and "struct amdgpu_bo" in ISP V4L2 driver to alloc/free GART
buffers is not recommended.

Add new amdgpu_isp helper functions that takes opaque params
from ISP V4L2 driver and calls the amdgpu internal functions
amdgpu_bo_create_isp_user() and amdgpu_bo_create_kernel() to
alloc/free GART buffers.

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
include/drm/amd/isp.h [new file with mode: 0644]