mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
video: tegra: fix host1x command decoding debug prints
Signed-off-by: Erik Gilling <konkers@android.com> Change-Id: Ia0073a4e679174fc7e9ca6ff0b67973980c6af97
This commit is contained in:
@@ -48,19 +48,19 @@ static int nvhost_debug_handle_cmd(struct seq_file *s, u32 val, int *count)
|
||||
}
|
||||
|
||||
case 0x1:
|
||||
seq_printf(s, "INCR(offset=%03x, [", val >> 16 & 0x3ff);
|
||||
seq_printf(s, "INCR(offset=%03x, [", val >> 16 & 0xfff);
|
||||
*count = val & 0xffff;
|
||||
return NVHOST_DBG_STATE_DATA;
|
||||
|
||||
case 0x2:
|
||||
seq_printf(s, "NOMINCR(offset=%03x, [", val >> 16 & 0x3ff);
|
||||
seq_printf(s, "NONINCR(offset=%03x, [", val >> 16 & 0xfff);
|
||||
*count = val & 0xffff;
|
||||
return NVHOST_DBG_STATE_DATA;
|
||||
|
||||
case 0x3:
|
||||
mask = val & 0xffff;
|
||||
seq_printf(s, "MASK(offset=%03x, mask=%03x, [",
|
||||
val >> 16 & 0x3ff, mask);
|
||||
val >> 16 & 0xfff, mask);
|
||||
*count = hweight16(mask);
|
||||
return NVHOST_DBG_STATE_DATA;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user