[PATCH 2/2] drm-uapi/amdgpu: Add LDS and scratch apertures fields
Srinivasan Shanmugam
srinivasan.shanmugam at amd.com
Fri Aug 1 13:50:52 UTC 2025
Add new fields for LDS and scratch base/limit aperture addresses to
drm_amdgpu_info_device struct used by AMDGPU_INFO_DEV_INFO ioctl.
TODO: The following kernel patch is pending merge and will be referenced
here once merged:
Patch link: https://patchwork.freedesktop.org/patch/661705/
Cc: Vitaly Prosyak <vitaly.prosyak at amd.com>
Cc: David Yat Sin <David.YatSin at amd.com>
Cc: Christian König <christian.koenig at amd.com>
Cc: Alex Deucher <alexander.deucher at amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>
---
include/drm-uapi/amdgpu_drm.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/drm-uapi/amdgpu_drm.h b/include/drm-uapi/amdgpu_drm.h
index 80c558727..6b2685d20 100644
--- a/include/drm-uapi/amdgpu_drm.h
+++ b/include/drm-uapi/amdgpu_drm.h
@@ -1451,6 +1451,12 @@ struct drm_amdgpu_info_device {
/* Userq IP mask (1 << AMDGPU_HW_IP_*) */
__u32 userq_ip_mask;
__u32 pad;
+
+ /* Additional fields for memory aperture information */
+ __u64 lds_base; /* LDS base */
+ __u64 lds_limit; /* LDS limit */
+ __u64 scratch_base; /* Scratch base */
+ __u64 scratch_limit; /* Scratch limit */
};
struct drm_amdgpu_info_hw_ip {
--
2.34.1
More information about the igt-dev
mailing list