diff options
author | Peter Boonstoppel <pboonstoppel@nvidia.com> | 2017-05-02 15:09:40 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-17 13:24:20 -0400 |
commit | 39a9e251da0fb4da8512593d3ce4f6eba47d5e0c (patch) | |
tree | 4b0cc5a4c196ba815aff2856034ffbf115cc2fa6 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 65de2a2d65a2d7f748580cbc646438a7b4e99d13 (diff) |
gpu: nvgpu: Add czf_bypass sysfs node for gp10b
This change adds a new sysfs node to allow configuring CZF_BYPASS, to
enable platforms with low context-switching latency requirements.
/sys/devices/17000000.gp10b/czf_bypass
Values:
0 - always
1 - lateZ (default)
2 - single pass
3 - never
The specified value will apply only to newly allocated contexts.
Bug 1914014
Change-Id: Ibb9a8e86089acaadaa7260b00eedec5c80762d6f
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/1478567
(cherry picked from commit 3bc022cb385b53f698b04f218db535e8162e8c94)
Reviewed-on: http://git-master/r/1473820
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index c36049b9..b5d0572e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -366,6 +366,8 @@ struct gpu_ops { | |||
366 | int (*resume_from_pause)(struct gk20a *g); | 366 | int (*resume_from_pause)(struct gk20a *g); |
367 | int (*clear_sm_errors)(struct gk20a *g); | 367 | int (*clear_sm_errors)(struct gk20a *g); |
368 | u32 (*tpc_enabled_exceptions)(struct gk20a *g); | 368 | u32 (*tpc_enabled_exceptions)(struct gk20a *g); |
369 | int (*set_czf_bypass)(struct gk20a *g, | ||
370 | struct channel_gk20a *ch); | ||
369 | } gr; | 371 | } gr; |
370 | struct { | 372 | struct { |
371 | void (*init_hw)(struct gk20a *g); | 373 | void (*init_hw)(struct gk20a *g); |