device.c (8f47d1a5e545f903cd049c42da31a3be36178447) | device.c (42d279f9137ab7d5503836baec2739284b278d8f) |
---|---|
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> --- 525 unchanged lines hidden (view full) --- 534 dev_warn(dev, "Incorrect work queue size: 0\n"); 535 return -EINVAL; 536 } 537 538 /* bytes 4-7 */ 539 wq->wqcfg.wq_thresh = wq->threshold; 540 541 /* byte 8-11 */ | 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> --- 525 unchanged lines hidden (view full) --- 534 dev_warn(dev, "Incorrect work queue size: 0\n"); 535 return -EINVAL; 536 } 537 538 /* bytes 4-7 */ 539 wq->wqcfg.wq_thresh = wq->threshold; 540 541 /* byte 8-11 */ |
542 wq->wqcfg.priv = 1; /* kernel, therefore priv */ | 542 wq->wqcfg.priv = !!(wq->type == IDXD_WQT_KERNEL); |
543 wq->wqcfg.mode = 1; 544 545 wq->wqcfg.priority = wq->priority; 546 547 /* bytes 12-15 */ 548 wq->wqcfg.max_xfer_shift = idxd->hw.gen_cap.max_xfer_shift; 549 wq->wqcfg.max_batch_shift = idxd->hw.gen_cap.max_batch_shift; 550 --- 143 unchanged lines hidden --- | 543 wq->wqcfg.mode = 1; 544 545 wq->wqcfg.priority = wq->priority; 546 547 /* bytes 12-15 */ 548 wq->wqcfg.max_xfer_shift = idxd->hw.gen_cap.max_xfer_shift; 549 wq->wqcfg.max_batch_shift = idxd->hw.gen_cap.max_batch_shift; 550 --- 143 unchanged lines hidden --- |