]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: check relocs after all gathers are consumed
authorErik Faye-Lund <kusmabite@gmail.com>
Fri, 4 Oct 2013 20:18:33 +0000 (20:18 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 31 Oct 2013 08:20:04 +0000 (09:20 +0100)
commit0e76f3c29d4352750b5d45dfa900a659f109e45f
tree801777608998d0a63d02d9ade96248fbbc7ffe22
parent95c8ead9047bab2beaa40285c985120fa021c93e
gpu: host1x: check relocs after all gathers are consumed

The num_relocs count are passed to the kernel per job, not per gather.

For multi-gather jobs, we would previously fail if there were relocs in
other gathers aside from the first one.

Fix this by simply moving the check until all gathers have been
consumed.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Acked-By: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c