irq.c (a16104617d212d4b482568847b25172972b87e60) irq.c (0bde4444ec44b8e64bbd4af72fcaef58bcdbd4ce)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright(c) 2019 Intel Corporation. All rights rsvd. */
3#include <linux/init.h>
4#include <linux/kernel.h>
5#include <linux/module.h>
6#include <linux/pci.h>
7#include <linux/io-64-nonatomic-lo-hi.h>
8#include <linux/dmaengine.h>

--- 142 unchanged lines hidden (view full) ---

151 }
152
153 if (cause & IDXD_INTC_OCCUPY) {
154 /* Driver does not utilize occupancy interrupt */
155 val |= IDXD_INTC_OCCUPY;
156 }
157
158 if (cause & IDXD_INTC_PERFMON_OVFL) {
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright(c) 2019 Intel Corporation. All rights rsvd. */
3#include <linux/init.h>
4#include <linux/kernel.h>
5#include <linux/module.h>
6#include <linux/pci.h>
7#include <linux/io-64-nonatomic-lo-hi.h>
8#include <linux/dmaengine.h>

--- 142 unchanged lines hidden (view full) ---

151 }
152
153 if (cause & IDXD_INTC_OCCUPY) {
154 /* Driver does not utilize occupancy interrupt */
155 val |= IDXD_INTC_OCCUPY;
156 }
157
158 if (cause & IDXD_INTC_PERFMON_OVFL) {
159 /*
160 * Driver does not utilize perfmon counter overflow interrupt
161 * yet.
162 */
163 val |= IDXD_INTC_PERFMON_OVFL;
159 val |= IDXD_INTC_PERFMON_OVFL;
160 perfmon_counter_overflow(idxd);
164 }
165
166 val ^= cause;
167 if (val)
168 dev_warn_once(dev, "Unexpected interrupt cause bits set: %#x\n",
169 val);
170
171 if (!err)

--- 220 unchanged lines hidden ---
161 }
162
163 val ^= cause;
164 if (val)
165 dev_warn_once(dev, "Unexpected interrupt cause bits set: %#x\n",
166 val);
167
168 if (!err)

--- 220 unchanged lines hidden ---