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

Daniel Vetter daniel at ffwll.ch
Thu Mar 31 14:09:00 UTC 2016


On Thu, Mar 31, 2016 at 12:41:10PM +0200, Thierry Reding wrote:
> 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>

/me remembers that discussion again ...

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
>  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
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list