summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2017-07-10 08:00:50 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-14 05:54:28 -0400
commitd3415f27c465b057a828c51dba7d8c1f70f4d289 (patch)
tree83acf16739ef656c1bd1b8e95e4f4a650a6c8661 /drivers/gpu/nvgpu/gp106
parentb1159ea6a19efdabe5205c654637f114e5f415bb (diff)
gpu: nvgu: Support SET_BES_CROP_DEBUG3 sw method
The new SET_BES_CROP_DEBUG3 sw method is used to flip two fields in the NV_PGRAPH_PRI_BES_CROP_DEBUG3 register. The sw method is used by the user space driver to disable enough ROP optimizations to maintain ZBC state of target tiles. Bug 1942454 Change-Id: Id4e4d9d06c6c66080d06b6d4694546fe5cba8436 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1516202 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r--drivers/gpu/nvgpu/gp106/gr_gp106.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/gr_gp106.c b/drivers/gpu/nvgpu/gp106/gr_gp106.c
index 08d6ec28..bf266b66 100644
--- a/drivers/gpu/nvgpu/gp106/gr_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/gr_gp106.c
@@ -98,6 +98,9 @@ static int gr_gp106_handle_sw_method(struct gk20a *g, u32 addr,
98 case NVC097_SET_RD_COALESCE: 98 case NVC097_SET_RD_COALESCE:
99 gr_gm20b_set_rd_coalesce(g, data); 99 gr_gm20b_set_rd_coalesce(g, data);
100 break; 100 break;
101 case NVC097_SET_BES_CROP_DEBUG3:
102 g->ops.gr.set_bes_crop_debug3(g, data);
103 break;
101 default: 104 default:
102 goto fail; 105 goto fail;
103 } 106 }