]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Generalize host1x_cdma_push_wide()
authorMikko Perttunen <mperttunen@nvidia.com>
Fri, 8 Jul 2022 15:18:02 +0000 (18:18 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 15:36:26 +0000 (17:36 +0200)
commit24fa5cee883e0438bc64cf4e99cb62042f2fde1e
tree58569e3cd9e609c259ea50c00059c58b4431a206
parentd626aba7c0c77391b7da13aa6dd70b9ddb8ed185
gpu: host1x: Generalize host1x_cdma_push_wide()

host1x_cdma_push_wide() had the assumptions that the last parameter word
was a NOP opcode, and that NOP opcodes could be used in all situations.

Neither are true with the new job opcode sequence, so adjust the
function to not have these assumptions, and instead place an early
RESTART opcode when necessary to jump back to the beginning of the
pushbuffer.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/cdma.c