forked from luck/tmp_suning_uos_patched
drm/i915/gvt: change some gvt_err to gvt_dbg_cmd
gvt_err should be used for dumping error message. This patch changes some gvt_err to gvt_dbg_cmd, as they are only debugging message, not errors. Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
This commit is contained in:
parent
c2e04fdab3
commit
627c845c09
@ -669,7 +669,7 @@ static inline void print_opcode(u32 cmd, int ring_id)
|
||||
if (d_info == NULL)
|
||||
return;
|
||||
|
||||
gvt_err("opcode=0x%x %s sub_ops:",
|
||||
gvt_dbg_cmd("opcode=0x%x %s sub_ops:",
|
||||
cmd >> (32 - d_info->op_len), d_info->name);
|
||||
|
||||
for (i = 0; i < d_info->nr_sub_op; i++)
|
||||
@ -694,23 +694,23 @@ static void parser_exec_state_dump(struct parser_exec_state *s)
|
||||
int cnt = 0;
|
||||
int i;
|
||||
|
||||
gvt_err(" vgpu%d RING%d: ring_start(%08lx) ring_end(%08lx)"
|
||||
gvt_dbg_cmd(" vgpu%d RING%d: ring_start(%08lx) ring_end(%08lx)"
|
||||
" ring_head(%08lx) ring_tail(%08lx)\n", s->vgpu->id,
|
||||
s->ring_id, s->ring_start, s->ring_start + s->ring_size,
|
||||
s->ring_head, s->ring_tail);
|
||||
|
||||
gvt_err(" %s %s ip_gma(%08lx) ",
|
||||
gvt_dbg_cmd(" %s %s ip_gma(%08lx) ",
|
||||
s->buf_type == RING_BUFFER_INSTRUCTION ?
|
||||
"RING_BUFFER" : "BATCH_BUFFER",
|
||||
s->buf_addr_type == GTT_BUFFER ?
|
||||
"GTT" : "PPGTT", s->ip_gma);
|
||||
|
||||
if (s->ip_va == NULL) {
|
||||
gvt_err(" ip_va(NULL)");
|
||||
gvt_dbg_cmd(" ip_va(NULL)");
|
||||
return;
|
||||
}
|
||||
|
||||
gvt_err(" ip_va=%p: %08x %08x %08x %08x\n",
|
||||
gvt_dbg_cmd(" ip_va=%p: %08x %08x %08x %08x\n",
|
||||
s->ip_va, cmd_val(s, 0), cmd_val(s, 1),
|
||||
cmd_val(s, 2), cmd_val(s, 3));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user