summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
diff options
context:
space:
mode:
authorKirill Artamonov <kartamonov@nvidia.com>2018-02-12 08:02:52 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-06 17:51:50 -0500
commit70bf8275efab7e155e9b3f9853a4cf7f38228c43 (patch)
treedd33a724d2e7a72d63197874372bd8a43bcd6a4c /drivers/gpu/nvgpu/gv11b/gr_gv11b.h
parentc363e1ebe6573dc1b0308fe40aedf158b0a28296 (diff)
gpu: nvgpu: gv11b: implement gfxp wfi controls
/sys/devices/gpu.0/gfxp_wfi_timeout_unit usec - microseconds sysclk - gpu clock count Treat gr_fe_gfxp_wfi_timeout_r as context-switched register on gv11b. Set default gfxp_wfi_timeout to 100 usec to match gp10b at 1GHz. bug 1888344 Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com> Change-Id: I7fa64ce6912ae861244856807543b17bd7a26bed Reviewed-on: https://git-master.nvidia.com/r/1651517 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_gv11b.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
index 2f8d2e17..0f42e795 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h
@@ -34,6 +34,9 @@
34#define ZBC_STENCIL_CLEAR_FMT_INVAILD 0 34#define ZBC_STENCIL_CLEAR_FMT_INVAILD 0
35#define ZBC_STENCIL_CLEAR_FMT_U8 1 35#define ZBC_STENCIL_CLEAR_FMT_U8 1
36 36
37#define GFXP_WFI_TIMEOUT_UNIT_SYSCLK 0
38#define GFXP_WFI_TIMEOUT_UNIT_USEC 1
39
37struct gk20a; 40struct gk20a;
38struct gr_gk20a; 41struct gr_gk20a;
39struct zbc_entry; 42struct zbc_entry;