Commit 380b1cad authored by Karol Herbst's avatar Karol Herbst Committed by Ben Skeggs

drm/nouveau/fb/ramgk104: Touch 0x62c000 only when there is a display engine

Signed-off-by: default avatarKarol Herbst <karolherbst@gmail.com>
Tested-by: default avatarAidan Epstein <aidan@jmad.org>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent cc90badd
...@@ -259,6 +259,8 @@ gk104_ram_calc_gddr5(struct gk104_ram *ram, u32 freq) ...@@ -259,6 +259,8 @@ gk104_ram_calc_gddr5(struct gk104_ram *ram, u32 freq)
ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000);
ram_block(fuc); ram_block(fuc);
if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP))
ram_wr32(fuc, 0x62c000, 0x0f0f0000); ram_wr32(fuc, 0x62c000, 0x0f0f0000);
/* MR1: turn termination on early, for some reason.. */ /* MR1: turn termination on early, for some reason.. */
...@@ -658,6 +660,8 @@ gk104_ram_calc_gddr5(struct gk104_ram *ram, u32 freq) ...@@ -658,6 +660,8 @@ gk104_ram_calc_gddr5(struct gk104_ram *ram, u32 freq)
gk104_ram_train(fuc, 0x80020000, 0x01000000); gk104_ram_train(fuc, 0x80020000, 0x01000000);
ram_unblock(fuc); ram_unblock(fuc);
if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP))
ram_wr32(fuc, 0x62c000, 0x0f0f0f00); ram_wr32(fuc, 0x62c000, 0x0f0f0f00);
if (next->bios.rammap_11_08_01) if (next->bios.rammap_11_08_01)
...@@ -706,6 +710,8 @@ gk104_ram_calc_sddr3(struct gk104_ram *ram, u32 freq) ...@@ -706,6 +710,8 @@ gk104_ram_calc_sddr3(struct gk104_ram *ram, u32 freq)
ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000);
ram_block(fuc); ram_block(fuc);
if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP))
ram_wr32(fuc, 0x62c000, 0x0f0f0000); ram_wr32(fuc, 0x62c000, 0x0f0f0000);
if (vc == 1 && ram_have(fuc, gpio2E)) { if (vc == 1 && ram_have(fuc, gpio2E)) {
...@@ -936,6 +942,8 @@ gk104_ram_calc_sddr3(struct gk104_ram *ram, u32 freq) ...@@ -936,6 +942,8 @@ gk104_ram_calc_sddr3(struct gk104_ram *ram, u32 freq)
ram_nsec(fuc, 1000); ram_nsec(fuc, 1000);
ram_unblock(fuc); ram_unblock(fuc);
if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP))
ram_wr32(fuc, 0x62c000, 0x0f0f0f00); ram_wr32(fuc, 0x62c000, 0x0f0f0f00);
if (next->bios.rammap_11_08_01) if (next->bios.rammap_11_08_01)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment