]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpu: host1x: Store device address to all bufs
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 8 Nov 2016 17:51:32 +0000 (19:51 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 11 Nov 2016 14:21:07 +0000 (15:21 +0100)
commitf08ef2d1a1a9aaa756823e847f9eb74f3658393a
treeb85bae54e2b042368f6099c1140685c3af1e285c
parentcc09cb6da9b0eefe4b4e47a73170a349c4cf3426
gpu: host1x: Store device address to all bufs

Currently job pinning is optimized to handle only the first buffer
using a certain host1x_bo object and all subsequent buffers using
the same host1x_bo are considered done.

In most cases this is correct, however, in case the same host1x_bo
is used in multiple gathers inside the same job, we skip also
storing the device address (physical or iova) to this buffer.

This patch reworks the host1x_job_pin() to store the device address
to all gathers.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c