diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2021-04-24 17:04:16 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-25 18:16:12 +0200 |
commit | 0bde4444ec44b8e64bbd4af72fcaef58bcdbd4ce (patch) | |
tree | 04dc44ccd35ff15c634a2e042c9c1a10f17d02c1 /drivers/dma/idxd/irq.c | |
parent | dmaengine: idxd: Add IDXD performance monitor support (diff) | |
download | linux-0bde4444ec44b8e64bbd4af72fcaef58bcdbd4ce.tar.xz linux-0bde4444ec44b8e64bbd4af72fcaef58bcdbd4ce.zip |
dmaengine: idxd: Enable IDXD performance monitor support
Add the code needed in the main IDXD driver to interface with the IDXD
perfmon implementation.
[ Based on work originally by Jing Lin. ]
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Link: https://lore.kernel.org/r/a5564a5583911565d31c2af9234218c5166c4b2c.1619276133.git.zanussi@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/irq.c')
-rw-r--r-- | drivers/dma/idxd/irq.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c index afee571e0194..ae68e1e5487a 100644 --- a/drivers/dma/idxd/irq.c +++ b/drivers/dma/idxd/irq.c @@ -156,11 +156,8 @@ static int process_misc_interrupts(struct idxd_device *idxd, u32 cause) } if (cause & IDXD_INTC_PERFMON_OVFL) { - /* - * Driver does not utilize perfmon counter overflow interrupt - * yet. - */ val |= IDXD_INTC_PERFMON_OVFL; + perfmon_counter_overflow(idxd); } val ^= cause; |