irq.c (407171717a4f4d2d80825584643374a2dfdb0540) | irq.c (de5819b994893197c71c86d21af10f85f50d6499) |
---|---|
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> --- 35 unchanged lines hidden (view full) --- 44 if (rc < 0) 45 goto out; 46 47 rc = idxd_device_enable(idxd); 48 if (rc < 0) 49 goto out; 50 51 for (i = 0; i < idxd->max_wqs; i++) { | 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> --- 35 unchanged lines hidden (view full) --- 44 if (rc < 0) 45 goto out; 46 47 rc = idxd_device_enable(idxd); 48 if (rc < 0) 49 goto out; 50 51 for (i = 0; i < idxd->max_wqs; i++) { |
52 struct idxd_wq *wq = idxd->wqs[i]; | 52 if (test_bit(i, idxd->wq_enable_map)) { 53 struct idxd_wq *wq = idxd->wqs[i]; |
53 | 54 |
54 if (wq->state == IDXD_WQ_ENABLED) { | |
55 rc = idxd_wq_enable(wq); 56 if (rc < 0) { | 55 rc = idxd_wq_enable(wq); 56 if (rc < 0) { |
57 clear_bit(i, idxd->wq_enable_map); |
|
57 dev_warn(dev, "Unable to re-enable wq %s\n", 58 dev_name(wq_confdev(wq))); 59 } 60 } 61 } 62 63 return; 64 --- 438 unchanged lines hidden --- | 58 dev_warn(dev, "Unable to re-enable wq %s\n", 59 dev_name(wq_confdev(wq))); 60 } 61 } 62 } 63 64 return; 65 --- 438 unchanged lines hidden --- |