diff options
author | Thierry Reding <treding@nvidia.com> | 2019-02-01 14:28:25 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-02-07 18:28:35 +0100 |
commit | 67a82dbc0a374df7a348cc8fb28982945035bd25 (patch) | |
tree | 92fa1607b4b4e341508dd3d65c9e74908c04c35a /drivers/gpu/host1x/hw/host1x06_hardware.h | |
parent | 5a5fccbd8c315c08db01e585e1cbe88e30b70691 (diff) |
gpu: host1x: Support 40-bit addressing
Tegra186 and later support 40 bits of address space. Additional
registers need to be programmed to store the full 40 bits of push
buffer addresses.
Since command stream gathers can also reside in buffers in a 40-bit
address space, a new variant of the GATHER opcode is also introduced.
It takes two parameters: the first parameter contains the lower 32
bits of the address and the second parameter contains bits 32 to 39.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/hw/host1x06_hardware.h')
-rw-r--r-- | drivers/gpu/host1x/hw/host1x06_hardware.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/hw/host1x06_hardware.h b/drivers/gpu/host1x/hw/host1x06_hardware.h index eab753b91f24..dd37b10c8d04 100644 --- a/drivers/gpu/host1x/hw/host1x06_hardware.h +++ b/drivers/gpu/host1x/hw/host1x06_hardware.h @@ -138,6 +138,11 @@ static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; } +static inline u32 host1x_opcode_gather_wide(unsigned count) +{ + return (12 << 28) | count; +} + #define HOST1X_OPCODE_NOP host1x_opcode_nonincr(0, 0) #endif |