Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329668
b: refs/heads/master
c: cd8c14b
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Oct 3, 2012
1 parent 370969e commit ae72673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: e5bf578ce61aecd4612d16e60235c11ed5f92c0e
refs/heads/master: cd8c14b407d59ac4b8d324f5f9cdf223a2079c88
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

struct nvc0_ltcg_priv {
struct nouveau_ltcg base;
u32 subp_nr;
};

static void
Expand All @@ -49,7 +50,7 @@ nvc0_ltcg_intr(struct nouveau_subdev *subdev)
units = nv_rd32(priv, 0x00017c);
while (units) {
u32 subp, unit = ffs(units) - 1;
for (subp = 0; subp < 2; subp++)
for (subp = 0; subp < priv->subp_nr; subp++)
nvc0_ltcg_subp_isr(priv, unit, subp);
units &= ~(1 << unit);
}
Expand All @@ -73,6 +74,7 @@ nvc0_ltcg_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret)
return ret;

priv->subp_nr = nv_rd32(priv, 0x17e8dc) >> 24;
nv_mask(priv, 0x17e820, 0x00100000, 0x00000000); /* INTR_EN &= ~0x10 */

nv_subdev(priv)->intr = nvc0_ltcg_intr;
Expand Down

0 comments on commit ae72673

Please sign in to comment.