diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-05-30 00:48:21 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-07-14 03:53:25 +0200 |
commit | 5805bd1e0b1945e68d25416ec7fb6dd6981476f1 (patch) | |
tree | 6f080c26f8546c86e80f4aa856f2b9b065ff8965 | |
parent | drm/nouveau/mc: support for temporarily masking interrupts from a specific de... (diff) | |
download | linux-5805bd1e0b1945e68d25416ec7fb6dd6981476f1.tar.xz linux-5805bd1e0b1945e68d25416ec7fb6dd6981476f1.zip |
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 60c349a9d1f6..99d50a3d956f 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, }; |