Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318743
b: refs/heads/master
c: e0dd536
h: refs/heads/master
i:
  318741: f8abbbe
  318739: 46ca76d
  318735: b09f3ac
v: v3
  • Loading branch information
Marcin Slusarz authored and Ben Skeggs committed Jul 26, 2012
1 parent dcc79e3 commit d0c9b77
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16fde6cd323a4f7654ac76dae12cb36208ed4c5d
refs/heads/master: e0dd536a7abbce564eff9929e0a3cf77ba2d2e2e
18 changes: 15 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nv84_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,30 @@ nv84_crypt_tlb_flush(struct drm_device *dev, int engine)
nv50_vm_flush_engine(dev, 0x0a);
}

static struct nouveau_bitfield nv84_crypt_intr[] = {
{ 0x00000001, "INVALID_STATE" },
{ 0x00000002, "ILLEGAL_MTHD" },
{ 0x00000004, "ILLEGAL_CLASS" },
{ 0x00000080, "QUERY" },
{ 0x00000100, "FAULT" },
{}
};

static void
nv84_crypt_isr(struct drm_device *dev)
{
u32 stat = nv_rd32(dev, 0x102130);
u32 mthd = nv_rd32(dev, 0x102190);
u32 data = nv_rd32(dev, 0x102194);
u32 inst = nv_rd32(dev, 0x102188) & 0x7fffffff;
u64 inst = (u64)(nv_rd32(dev, 0x102188) & 0x7fffffff) << 12;
int show = nouveau_ratelimit();
int chid = nv50_graph_isr_chid(dev, inst);

if (show) {
NV_INFO(dev, "PCRYPT_INTR: 0x%08x 0x%08x 0x%08x 0x%08x\n",
stat, mthd, data, inst);
NV_INFO(dev, "PCRYPT:");
nouveau_bitfield_print(nv84_crypt_intr, stat);
printk(KERN_CONT " ch %d (0x%010llx) mthd 0x%04x data 0x%08x\n",
chid, inst, mthd, data);
}

nv_wr32(dev, 0x102130, stat);
Expand Down

0 comments on commit d0c9b77

Please sign in to comment.