gpu: host1x: Set up stream ID table
In order to enable the MMIO path stream ID protection provided by the incarnation of host1x found in Tegra186 and later, the host1x must be provided with the list of stream ID register offsets for each of its clients. Some clients (such as VIC) have multiple stream ID registers that are assumed to be contiguous. The host1x is programmed with the base offset and a limit which provide the range of registers that the host1x needs to monitor for writes. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -94,6 +94,12 @@ struct host1x_intr_ops {
|
||||
int (*free_syncpt_irq)(struct host1x *host);
|
||||
};
|
||||
|
||||
struct host1x_sid_entry {
|
||||
unsigned int base;
|
||||
unsigned int offset;
|
||||
unsigned int limit;
|
||||
};
|
||||
|
||||
struct host1x_info {
|
||||
unsigned int nb_channels; /* host1x: number of channels supported */
|
||||
unsigned int nb_pts; /* host1x: number of syncpoints supported */
|
||||
@@ -103,6 +109,8 @@ struct host1x_info {
|
||||
unsigned int sync_offset; /* offset of syncpoint registers */
|
||||
u64 dma_mask; /* mask of addressable memory */
|
||||
bool has_hypervisor; /* has hypervisor registers */
|
||||
unsigned int num_sid_entries;
|
||||
const struct host1x_sid_entry *sid_table;
|
||||
};
|
||||
|
||||
struct host1x {
|
||||
|
Reference in New Issue
Block a user