diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-01-18 14:02:08 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-22 18:29:54 -0500 |
commit | 193a2ed38ca51d898ac811820ab86237c84e18eb (patch) | |
tree | da672582c2322fc91c7b5c600deb5a60f3068a8d /drivers/gpu/nvgpu/common/linux | |
parent | f6d898656a6d7c197aa27ee53f5f0151fb6dfcf5 (diff) |
gpu: nvgpu: add sw method for SET_BES_CROP_DEBUG4
Added sw method support for SET_BES_CROP_DEBUG4.
In this sw method:
CLAMP_FP_BLEND_TO_MAXVAL forces overflow and
CLAMP_FP_BLEND_TO_INF blend results to clamp to FP maxval.
Added support for this sw method in gp10b/gp106/gv11b
and gv100.
Bug 2046636
Change-Id: I3a9e97587aca76718f7f504ea3b853f87409092a
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1641529
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_hal_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_hal_gp10b.c index 5b8307e5..164ac3d2 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -204,6 +204,7 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
204 | .init_preemption_state = gr_gp10b_init_preemption_state, | 204 | .init_preemption_state = gr_gp10b_init_preemption_state, |
205 | .update_boosted_ctx = NULL, | 205 | .update_boosted_ctx = NULL, |
206 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, | 206 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, |
207 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, | ||
207 | .create_gr_sysfs = gr_gp10b_create_sysfs, | 208 | .create_gr_sysfs = gr_gp10b_create_sysfs, |
208 | .set_ctxsw_preemption_mode = | 209 | .set_ctxsw_preemption_mode = |
209 | vgpu_gr_gp10b_set_ctxsw_preemption_mode, | 210 | vgpu_gr_gp10b_set_ctxsw_preemption_mode, |
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c index 0813ad75..d205f039 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -222,6 +222,7 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
222 | .init_preemption_state = NULL, | 222 | .init_preemption_state = NULL, |
223 | .update_boosted_ctx = NULL, | 223 | .update_boosted_ctx = NULL, |
224 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, | 224 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, |
225 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, | ||
225 | .create_gr_sysfs = gr_gv11b_create_sysfs, | 226 | .create_gr_sysfs = gr_gv11b_create_sysfs, |
226 | .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode, | 227 | .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode, |
227 | .is_etpc_addr = gv11b_gr_pri_is_etpc_addr, | 228 | .is_etpc_addr = gv11b_gr_pri_is_etpc_addr, |