amd-vi: print some additional details for INVALID_DEVICE_REQUEST event

Namely, the type of the hardware event and whether the transaction
was a translation request.

Reviewed by:	anish
This commit is contained in:
Andriy Gapon 2017-11-24 11:34:46 +00:00
parent b7d2b5d5b1
commit dee38cdc2a

View File

@ -705,8 +705,9 @@ amdvi_decode_evt(struct amdvi_event *evt)
break;
case AMDVI_EVENT_INVALID_DTE_REQ:
printf("\t[INV_DTE devid:0x%x addr:0x%lx",
evt->devid, evt->addr);
printf("\t[INV_DTE devid:0x%x addr:0x%lx type:0x%x tr:%d]\n",
evt->devid, evt->addr, evt->flag >> 9,
(evt->flag >> 8) & 1);
break;
case AMDVI_EVENT_INVALID_PPR_REQ: