video: tegra: host: Fix 64-bit compatible submit
Terje Bergstrom [Fri, 24 May 2013 17:51:57 +0000 (20:51 +0300)]
The new submit IOCTL is not 64-bit padding safe. Reorder to regain
64-bit safety.

Also copy the fence argument in IOCTL.

Change-Id: If7899b0f4152637168e0e1d0a63d951099edb6ec
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/232657
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

drivers/video/tegra/host/bus_client.c
include/linux/nvhost_ioctl.h

index 279235c..1877c68 100644 (file)
@@ -526,6 +526,7 @@ static int nvhost_ioctl_channel_submit_gpfifo_old(
 
        new_args.gpfifo = (u64)(uintptr_t)args->gpfifo;
        new_args.num_entries = args->num_entries;
+       new_args.fence = args->fence;
        new_args.flags = args->flags;
        ret = nvhost_ioctl_channel_submit_gpfifo(ctx, &new_args);
        if (!ret)
index 51fc9a3..e1dab2c 100644 (file)
@@ -161,8 +161,8 @@ struct nvhost_submit_gpfifo_old_args {
 struct nvhost_submit_gpfifo_args {
        __u64 gpfifo;
        __u32 num_entries;
-       struct nvhost_fence fence;
        __u32 flags;
+       struct nvhost_fence fence;
 };
 
 struct nvhost_map_buffer_args {