mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
1ffbb2996f
commit
e13d0723f6
@@ -670,13 +670,13 @@ static void xve_rearm_msi_gp106(struct gk20a *g)
|
||||
|
||||
static void xve_enable_shadow_rom_gp106(struct gk20a *g)
|
||||
{
|
||||
g->ops.xve.xve_writel(g, NV_PCFG + xve_rom_ctrl_r(),
|
||||
g->ops.xve.xve_writel(g, xve_rom_ctrl_r(),
|
||||
xve_rom_ctrl_rom_shadow_enabled_f());
|
||||
}
|
||||
|
||||
static void xve_disable_shadow_rom_gp106(struct gk20a *g)
|
||||
{
|
||||
g->ops.xve.xve_writel(g, NV_PCFG + xve_rom_ctrl_r(),
|
||||
g->ops.xve.xve_writel(g, xve_rom_ctrl_r(),
|
||||
xve_rom_ctrl_rom_shadow_disabled_f());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user