diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-11-15 17:35:43 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-29 16:17:18 -0500 |
commit | 7a4cb4a6ab6c861a94e9105360967894df749f03 (patch) | |
tree | acfcfa1f607a66b18a579f7d06a48b7746abdabf /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |
parent | dda9d80a852e099a6304abb07936b4250cf1a141 (diff) |
gpu: nvgpu: gv11b: gfxp wfi timeout
For gv11b, configured gfx preemption wfi timeout in usec.
Set timeout unit as usec in gr_gv11b_init_preemption_state.
Used default timeout as 1msec and this timeout value can
be modified through sysfs node:
/sys/devices/gpu.0/gfxp_wfi_timeout_count
For gp10b:
gfxp_wfi_timeout_count is in syclk cycles
For gv11b:
gfxp_wfi_timeout_count is in usec
Bug 2003668
Change-Id: I68d52ce996a83df90b8b3a8164debb07e5cb370f
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1599658
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h index 692b7ba3..805d8b0e 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |||
@@ -4292,6 +4292,10 @@ static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void) | |||
4292 | { | 4292 | { |
4293 | return 0x0U; | 4293 | return 0x0U; |
4294 | } | 4294 | } |
4295 | static inline u32 gr_fe_gfxp_wfi_timeout_count_init_f(void) | ||
4296 | { | ||
4297 | return 0x800U; | ||
4298 | } | ||
4295 | static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void) | 4299 | static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void) |
4296 | { | 4300 | { |
4297 | return 0x00419bd8U; | 4301 | return 0x00419bd8U; |
@@ -4936,4 +4940,20 @@ static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r) | |||
4936 | { | 4940 | { |
4937 | return (r >> 16U) & 0xffffU; | 4941 | return (r >> 16U) & 0xffffU; |
4938 | } | 4942 | } |
4943 | static inline u32 gr_debug_2_r(void) | ||
4944 | { | ||
4945 | return 0x00400088U; | ||
4946 | } | ||
4947 | static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_m(void) | ||
4948 | { | ||
4949 | return 0x1U << 27U; | ||
4950 | } | ||
4951 | static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_usec_f(void) | ||
4952 | { | ||
4953 | return 0x0U; | ||
4954 | } | ||
4955 | static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_sysclk_f(void) | ||
4956 | { | ||
4957 | return 0x8000000U; | ||
4958 | } | ||
4939 | #endif | 4959 | #endif |