From ff38ab4dcd87088dc60c870aaf910fcdc4af5918 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 12 Jul 2017 16:49:57 -0700 Subject: gpu: nvgpu: Disable rd_coalesce for all chips Disable read coalescing for all chips. Bug 200314091 Change-Id: Iaa3f58f94369ae1edae0620083eca4594be730fd Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1518308 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 1 + drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 58558159..4878fdd6 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -408,6 +408,7 @@ struct gpu_ops { void (*resume_single_sm)(struct gk20a *g, u32 gpc, u32 tpc, u32 sm); void (*resume_all_sms)(struct gk20a *g); + void (*disable_rd_coalesce)(struct gk20a *g); } gr; struct { void (*init_hw)(struct gk20a *g); diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 608b011a..cd1d31a5 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -4521,6 +4521,9 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g) if (g->ops.fb.init_cbc) g->ops.fb.init_cbc(g, gr); + if (g->ops.gr.disable_rd_coalesce) + g->ops.gr.disable_rd_coalesce(g); + /* load ctx init */ for (i = 0; i < sw_ctx_load->count; i++) gk20a_writel(g, sw_ctx_load->l[i].addr, -- cgit v1.2.2