drm/nve0/fb/gddr5: note another semi-unknown
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Родитель
1e1d6b4c53
Коммит
09692e5b4e
|
@ -466,6 +466,8 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
|
||||||
ram_mask(fuc, 0x10f2cc, 0xffffffff, nv_ro32(bios, timing + 0x20));
|
ram_mask(fuc, 0x10f2cc, 0xffffffff, nv_ro32(bios, timing + 0x20));
|
||||||
ram_mask(fuc, 0x10f2e8, 0xffffffff, nv_ro32(bios, timing + 0x24));
|
ram_mask(fuc, 0x10f2e8, 0xffffffff, nv_ro32(bios, timing + 0x24));
|
||||||
|
|
||||||
|
/*XXX: what's the condition here? */
|
||||||
|
if (1) {
|
||||||
data = (nv_ro08(bios, ramcfg + 0x02) & 0x03) << 8;
|
data = (nv_ro08(bios, ramcfg + 0x02) & 0x03) << 8;
|
||||||
if (nv_ro08(bios, ramcfg + 0x01) & 0x10)
|
if (nv_ro08(bios, ramcfg + 0x01) & 0x10)
|
||||||
data |= 0x70000000;
|
data |= 0x70000000;
|
||||||
|
@ -480,6 +482,7 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
|
||||||
if (nv_ro08(bios, ramcfg + 0x01) & 0x02)
|
if (nv_ro08(bios, ramcfg + 0x01) & 0x02)
|
||||||
data |= 0x00000100;
|
data |= 0x00000100;
|
||||||
ram_mask(fuc, 0x10f610, 0x70000000, data);
|
ram_mask(fuc, 0x10f610, 0x70000000, data);
|
||||||
|
}
|
||||||
|
|
||||||
mask = 0x33f00000;
|
mask = 0x33f00000;
|
||||||
data = 0x00000000;
|
data = 0x00000000;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче