[PATCH libdrm] tegra: Sync with Linux kernel UAPI header

Thierry Reding thierry.reding at gmail.com
Thu Mar 31 10:41:10 UTC 2016


From: Thierry Reding <treding at nvidia.com>

Update the UAPI header to the latest version in the Linux kernel. This
changes the struct drm_tegra_gem_mmap to properly handle offsets on 64-
bit architectures.

See commit bdf765071a8b ("drm/tegra: gem: Return 64-bit offset for
mmap(2)") in the Linux kernel (as of v4.1).

Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 include/drm/tegra_drm.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/drm/tegra_drm.h b/include/drm/tegra_drm.h
index 8dae8f334992..7c0fe0ed511b 100644
--- a/include/drm/tegra_drm.h
+++ b/include/drm/tegra_drm.h
@@ -36,7 +36,8 @@ struct drm_tegra_gem_create {
 
 struct drm_tegra_gem_mmap {
 	__u32 handle;
-	__u32 offset;
+	__u32 pad;
+	__u64 offset;
 };
 
 struct drm_tegra_syncpt_read {
-- 
2.7.1



More information about the dri-devel mailing list