diff options
author | David Nieto <dmartineznie@nvidia.com> | 2017-10-20 12:32:55 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-23 01:15:28 -0400 |
commit | fea32c74dcfa708608f286fe5020f1f40a3390c0 (patch) | |
tree | 24ff1949dd3e30e8a2fb3557a5592ede2b3d6fdb /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 1cee7b2a390a8b2486b25d2383e4e11667dcff08 (diff) |
gpu: nvgpu: add cache maintenance timeout override
Add functions to get per-chip cache maintenance timeout overrides.
JIRA: NVGPUGV100-GV100
Change-Id: Ie14efc616e7af52ede60031c789bd2ae70857a6e
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1582768
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index c04c97ca..92bcb618 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -137,6 +137,7 @@ enum gk20a_cbc_op { | |||
137 | 137 | ||
138 | enum nvgpu_unit; | 138 | enum nvgpu_unit; |
139 | 139 | ||
140 | enum nvgpu_flush_op; | ||
140 | /* | 141 | /* |
141 | * gpu_ops should only contain function pointers! Non-function pointer members | 142 | * gpu_ops should only contain function pointers! Non-function pointer members |
142 | * should go in struct gk20a or be implemented with the boolean flag API defined | 143 | * should go in struct gk20a or be implemented with the boolean flag API defined |
@@ -569,6 +570,7 @@ struct gpu_ops { | |||
569 | struct tsg_gk20a *tsg); | 570 | struct tsg_gk20a *tsg); |
570 | void (*deinit_eng_method_buffers)(struct gk20a *g, | 571 | void (*deinit_eng_method_buffers)(struct gk20a *g, |
571 | struct tsg_gk20a *tsg); | 572 | struct tsg_gk20a *tsg); |
573 | u32 (*get_preempt_timeout)(struct gk20a *g); | ||
572 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 574 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
573 | int (*alloc_syncpt_buf)(struct channel_gk20a *c, | 575 | int (*alloc_syncpt_buf)(struct channel_gk20a *c, |
574 | u32 syncpt_id, struct nvgpu_mem *syncpt_buf); | 576 | u32 syncpt_id, struct nvgpu_mem *syncpt_buf); |
@@ -760,6 +762,8 @@ struct gpu_ops { | |||
760 | void (*fault_info_mem_destroy)(struct gk20a *g); | 762 | void (*fault_info_mem_destroy)(struct gk20a *g); |
761 | u32 (*get_kind_invalid)(void); | 763 | u32 (*get_kind_invalid)(void); |
762 | u32 (*get_kind_pitch)(void); | 764 | u32 (*get_kind_pitch)(void); |
765 | u32 (*get_flush_retries)(struct gk20a *g, | ||
766 | enum nvgpu_flush_op op); | ||
763 | } mm; | 767 | } mm; |
764 | /* | 768 | /* |
765 | * This function is called to allocate secure memory (memory | 769 | * This function is called to allocate secure memory (memory |