Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158070
b: refs/heads/master
c: 945b4ac
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Sep 3, 2009
1 parent ec252ec commit 0a4f219
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3e59876e82a5e1a07f365d5474e7b6943524725
refs/heads/master: 945b4ac44e5700acd3d974c176c8ace34b4d2e8e
10 changes: 10 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ static void dump_dte_entry(u16 devid)
amd_iommu_dev_table[devid].data[i]);
}

static void dump_command(unsigned long phys_addr)
{
struct iommu_cmd *cmd = phys_to_virt(phys_addr);
int i;

for (i = 0; i < 4; ++i)
pr_err("AMD-Vi: CMD[%d]: %08x\n", i, cmd->data[i]);
}

static void iommu_print_event(void *__evt)
{
u32 *event = __evt;
Expand Down Expand Up @@ -186,6 +195,7 @@ static void iommu_print_event(void *__evt)
break;
case EVENT_TYPE_ILL_CMD:
printk("ILLEGAL_COMMAND_ERROR address=0x%016llx]\n", address);
dump_command(address);
break;
case EVENT_TYPE_CMD_HARD_ERR:
printk("COMMAND_HARDWARE_ERROR address=0x%016llx "
Expand Down

0 comments on commit 0a4f219

Please sign in to comment.