summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/xve_gp106.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-27 13:48:59 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-28 12:04:26 -0400
commite13d0723f62a0cfa5a2a1b007e08cfe3788a143a (patch)
treeb707f2cce82de8ac358122672a55489d092e528a /drivers/gpu/nvgpu/gp106/xve_gp106.c
parent1ffbb2996fddbb44f6aa524224d09fa415ae1f98 (diff)
gpu: nvgpu: Use correct register for ROM control
We access ROM control register with xve_writel, but we also add the base register address. This leads to adding the base address twice, and the access goes to wrong register. Bug 1846641 Change-Id: I46ef277aac661a08049935b08505120cad1a5e76 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1471505 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/xve_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/xve_gp106.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c
index 4d00b20b..2bd93666 100644
--- a/drivers/gpu/nvgpu/gp106/xve_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c
@@ -670,13 +670,13 @@ static void xve_rearm_msi_gp106(struct gk20a *g)
670 670
671static void xve_enable_shadow_rom_gp106(struct gk20a *g) 671static void xve_enable_shadow_rom_gp106(struct gk20a *g)
672{ 672{
673 g->ops.xve.xve_writel(g, NV_PCFG + xve_rom_ctrl_r(), 673 g->ops.xve.xve_writel(g, xve_rom_ctrl_r(),
674 xve_rom_ctrl_rom_shadow_enabled_f()); 674 xve_rom_ctrl_rom_shadow_enabled_f());
675} 675}
676 676
677static void xve_disable_shadow_rom_gp106(struct gk20a *g) 677static void xve_disable_shadow_rom_gp106(struct gk20a *g)
678{ 678{
679 g->ops.xve.xve_writel(g, NV_PCFG + xve_rom_ctrl_r(), 679 g->ops.xve.xve_writel(g, xve_rom_ctrl_r(),
680 xve_rom_ctrl_rom_shadow_disabled_f()); 680 xve_rom_ctrl_rom_shadow_disabled_f());
681} 681}
682 682