Commit 13a61757 authored by Ben Skeggs's avatar Ben Skeggs

drm/g94-/disp: bash and wait for something after changing lane power regs

Some kind of update?  Needed to make the power-down take effect at least.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1ecee1cd
...@@ -69,6 +69,7 @@ int ...@@ -69,6 +69,7 @@ int
nv94_sor_dp_lnk_pwr(struct nvkm_output_dp *outp, int nr) nv94_sor_dp_lnk_pwr(struct nvkm_output_dp *outp, int nr)
{ {
struct nv50_disp_priv *priv = (void *)nouveau_disp(outp); struct nv50_disp_priv *priv = (void *)nouveau_disp(outp);
const u32 soff = nv94_sor_soff(outp);
const u32 loff = nv94_sor_loff(outp); const u32 loff = nv94_sor_loff(outp);
u32 mask = 0, i; u32 mask = 0, i;
...@@ -76,6 +77,8 @@ nv94_sor_dp_lnk_pwr(struct nvkm_output_dp *outp, int nr) ...@@ -76,6 +77,8 @@ nv94_sor_dp_lnk_pwr(struct nvkm_output_dp *outp, int nr)
mask |= 1 << (nv94_sor_dp_lane_map(priv, i) >> 3); mask |= 1 << (nv94_sor_dp_lane_map(priv, i) >> 3);
nv_mask(priv, 0x61c130 + loff, 0x0000000f, mask); nv_mask(priv, 0x61c130 + loff, 0x0000000f, mask);
nv_mask(priv, 0x61c034 + soff, 0x80000000, 0x80000000);
nv_wait(priv, 0x61c034 + soff, 0x80000000, 0x00000000);
return 0; return 0;
} }
......
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