Commit bfd8bd1f authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Ben Skeggs

drm/nouveau/bios: tiny debugging messages fixes

COPY_ZM_REG: destination and source addresses were swapped
RAM_RESTRICT_ZM_REG_GROUP: missing 0x prefix for register address
Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 950fbfab
...@@ -1816,7 +1816,7 @@ init_ram_restrict_zm_reg_group(struct nvbios_init *init) ...@@ -1816,7 +1816,7 @@ init_ram_restrict_zm_reg_group(struct nvbios_init *init)
u8 i, j; u8 i, j;
trace("RAM_RESTRICT_ZM_REG_GROUP\t" trace("RAM_RESTRICT_ZM_REG_GROUP\t"
"R[%08x] 0x%02x 0x%02x\n", addr, incr, num); "R[0x%08x] 0x%02x 0x%02x\n", addr, incr, num);
init->offset += 7; init->offset += 7;
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
...@@ -1849,7 +1849,7 @@ init_copy_zm_reg(struct nvbios_init *init) ...@@ -1849,7 +1849,7 @@ init_copy_zm_reg(struct nvbios_init *init)
u32 sreg = nv_ro32(bios, init->offset + 1); u32 sreg = nv_ro32(bios, init->offset + 1);
u32 dreg = nv_ro32(bios, init->offset + 5); u32 dreg = nv_ro32(bios, init->offset + 5);
trace("COPY_ZM_REG\tR[0x%06x] = R[0x%06x]\n", sreg, dreg); trace("COPY_ZM_REG\tR[0x%06x] = R[0x%06x]\n", dreg, sreg);
init->offset += 9; init->offset += 9;
init_wr32(init, dreg, init_rd32(init, sreg)); init_wr32(init, dreg, init_rd32(init, sreg));
......
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