diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-05-29 22:48:21 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-07-14 01:53:25 (GMT) |
commit | 5805bd1e0b1945e68d25416ec7fb6dd6981476f1 (patch) | |
tree | 6f080c26f8546c86e80f4aa856f2b9b065ff8965 | |
parent | 66adbfb00d55996079661d11ff9b6064b925b44e (diff) | |
download | linux-5805bd1e0b1945e68d25416ec7fb6dd6981476f1.tar.xz |
drm/nouveau/mc/gt215: support for masking interrupts
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/mc/gt215.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/gt215.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/gt215.c index 60c349a..99d50a3 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/gt215.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/gt215.c @@ -53,12 +53,19 @@ gt215_mc_intr[] = { {}, }; +static void +gt215_mc_intr_mask(struct nvkm_mc *mc, u32 mask, u32 stat) +{ + nvkm_mask(mc->subdev.device, 0x000640, mask, stat); +} + static const struct nvkm_mc_func gt215_mc = { .init = nv50_mc_init, .intr = gt215_mc_intr, .intr_unarm = nv04_mc_intr_unarm, .intr_rearm = nv04_mc_intr_rearm, + .intr_mask = gt215_mc_intr_mask, .intr_stat = nv04_mc_intr_stat, .reset = gt215_mc_reset, }; |