Skip to content

LATX, fix: Detect drm_amdgpu_gem_va size and improve ioctl compatibility - #60

Merged
luzeng87 merged 1 commit into
lat-opensource:masterfrom
LaurenIsACoder:ioctl
Apr 27, 2025
Merged

luzeng87 merged 1 commit into
lat-opensource:masterfrom
LaurenIsACoder:ioctl

Conversation

@LaurenIsACoder

Copy link
Copy Markdown
Contributor

Add detection logic for struct drm_amdgpu_gem_va size in configure script. If the structure size is exactly 0x28 (40 bytes), CONFIG_AMDGPU_GEN_VA_OLD is defined. Based on CONFIG_AMDGPU_GEN_VA_OLD, ioctl emulation now adapts the definition of drm_amdgpu_gem_va-related data structures accordingly.

This patch improves LATX's ability to correctly build and emulate AMDGPU ioctl interfaces across a wide range of Linux distributions.

Add detection logic for struct drm_amdgpu_gem_va size in configure script.
If the structure size is exactly 0x28 (40 bytes), CONFIG_AMDGPU_GEN_VA_OLD
is defined. Based on CONFIG_AMDGPU_GEN_VA_OLD, ioctl emulation now adapts
the definition of drm_amdgpu_gem_va-related data structures accordingly.

This patch improves LATX's ability to correctly build and emulate AMDGPU
ioctl interfaces across a wide range of Linux distributions.

Signed-off-by: Hanlu Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants