summaryrefslogtreecommitdiff
path: root/fs/coda/symlink.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-02-01 16:28:24 +0300
committerThierry Reding <treding@nvidia.com>2019-02-07 20:28:35 +0300
commit5a5fccbd8c315c08db01e585e1cbe88e30b70691 (patch)
tree773c23591e5b8589e4546d7ef3006f804898f01e /fs/coda/symlink.c
parentde5469c21ff9c3e5ba6162dae58379ed51443164 (diff)
downloadlinux-5a5fccbd8c315c08db01e585e1cbe88e30b70691.tar.xz
gpu: host1x: Introduce support for wide opcodes
The CDMA push buffer can currently only handle opcodes that take a single word parameter. However, the host1x implementation on Tegra186 and later supports opcodes that require multiple words as parameters. Unfortunately the way the push buffer is structured, these wide opcodes cannot simply be composed of two regular opcodes because that could result in the wide opcode being split across the end of the push buffer and the final RESTART opcode required to wrap the push buffer around would break the wide opcode. One way to fix this would be to remove the concept of slots to simplify push buffer operations. However, that's not entirely trivial and should be done in a separate patch. For now, simply use a different function to push four-word opcodes into the push buffer. Technically only three words are pushed, with the fourth word used as padding to preserve the 2-word alignment required by the slots abstraction. The fourth word is always a NOP opcode. Additional care must be taken when the end of the push buffer is reached. If a four-word opcode doesn't fit into the push buffer without being split by the boundary, NOP opcodes will be introduced and the new wide opcode placed at the beginning of the push buffer. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'fs/coda/symlink.c')
0 files changed, 0 insertions, 0 deletions