2018-08-16 13:28:40 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
|
|
|
|
/*
|
2020-05-11 16:06:25 +00:00
|
|
|
* Copyright(c) 2018 - 2020 Intel Corporation.
|
2018-08-16 13:28:40 +00:00
|
|
|
*
|
|
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
|
|
* redistributing this file, you may do so under either license.
|
|
|
|
*
|
|
|
|
* GPL LICENSE SUMMARY
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of version 2 of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* BSD LICENSE
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* - Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* - Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
|
|
|
* - Neither the name of Intel Corporation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hfi.h"
|
2018-08-16 06:04:04 +00:00
|
|
|
#include "affinity.h"
|
2018-08-16 13:28:40 +00:00
|
|
|
#include "sdma.h"
|
2020-05-11 16:06:37 +00:00
|
|
|
#include "netdev.h"
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/**
|
|
|
|
* msix_initialize() - Calculate, request and configure MSIx IRQs
|
|
|
|
* @dd: valid hfi1 devdata
|
|
|
|
*
|
2018-08-16 13:28:40 +00:00
|
|
|
*/
|
2018-08-16 06:04:04 +00:00
|
|
|
int msix_initialize(struct hfi1_devdata *dd)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
2018-08-16 06:04:04 +00:00
|
|
|
u32 total;
|
|
|
|
int ret;
|
|
|
|
struct hfi1_msix_entry *entries;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/*
|
|
|
|
* MSIx interrupt count:
|
|
|
|
* one for the general, "slow path" interrupt
|
|
|
|
* one per used SDMA engine
|
|
|
|
* one per kernel receive context
|
|
|
|
* one for each VNIC context
|
|
|
|
* ...any new IRQs should be added here.
|
|
|
|
*/
|
2020-05-11 16:06:25 +00:00
|
|
|
total = 1 + dd->num_sdma + dd->n_krcv_queues + dd->num_netdev_contexts;
|
2018-08-16 06:04:04 +00:00
|
|
|
|
|
|
|
if (total >= CCE_NUM_MSIX_VECTORS)
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
ret = pci_alloc_irq_vectors(dd->pcidev, total, total, PCI_IRQ_MSIX);
|
|
|
|
if (ret < 0) {
|
|
|
|
dd_dev_err(dd, "pci_alloc_irq_vectors() failed: %d\n", ret);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
entries = kcalloc(total, sizeof(*dd->msix_info.msix_entries),
|
|
|
|
GFP_KERNEL);
|
|
|
|
if (!entries) {
|
|
|
|
pci_free_irq_vectors(dd->pcidev);
|
|
|
|
return -ENOMEM;
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
dd->msix_info.msix_entries = entries;
|
|
|
|
spin_lock_init(&dd->msix_info.msix_lock);
|
|
|
|
bitmap_zero(dd->msix_info.in_use_msix, total);
|
|
|
|
dd->msix_info.max_requested = total;
|
|
|
|
dd_dev_info(dd, "%u MSI-X interrupts allocated\n", total);
|
|
|
|
|
|
|
|
return 0;
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/**
|
|
|
|
* msix_request_irq() - Allocate a free MSIx IRQ
|
|
|
|
* @dd: valid devdata
|
|
|
|
* @arg: context information for the IRQ
|
|
|
|
* @handler: IRQ handler
|
|
|
|
* @thread: IRQ thread handler (could be NULL)
|
|
|
|
* @idx: zero base idx if multiple devices are needed
|
|
|
|
* @type: affinty IRQ type
|
|
|
|
*
|
|
|
|
* Allocated an MSIx vector if available, and then create the appropriate
|
|
|
|
* meta data needed to keep track of the pci IRQ request.
|
|
|
|
*
|
|
|
|
* Return:
|
|
|
|
* < 0 Error
|
|
|
|
* >= 0 MSIx vector
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static int msix_request_irq(struct hfi1_devdata *dd, void *arg,
|
|
|
|
irq_handler_t handler, irq_handler_t thread,
|
2020-01-06 13:42:16 +00:00
|
|
|
enum irq_type type, const char *name)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
2018-08-16 06:04:04 +00:00
|
|
|
unsigned long nr;
|
|
|
|
int irq;
|
|
|
|
int ret;
|
|
|
|
struct hfi1_msix_entry *me;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/* Allocate an MSIx vector */
|
|
|
|
spin_lock(&dd->msix_info.msix_lock);
|
|
|
|
nr = find_first_zero_bit(dd->msix_info.in_use_msix,
|
|
|
|
dd->msix_info.max_requested);
|
|
|
|
if (nr < dd->msix_info.max_requested)
|
|
|
|
__set_bit(nr, dd->msix_info.in_use_msix);
|
|
|
|
spin_unlock(&dd->msix_info.msix_lock);
|
|
|
|
|
|
|
|
if (nr == dd->msix_info.max_requested)
|
|
|
|
return -ENOSPC;
|
|
|
|
|
2020-01-16 22:26:58 +00:00
|
|
|
if (type < IRQ_SDMA || type >= IRQ_OTHER)
|
2018-08-16 06:04:04 +00:00
|
|
|
return -EINVAL;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
irq = pci_irq_vector(dd->pcidev, nr);
|
|
|
|
ret = pci_request_irq(dd->pcidev, nr, handler, thread, arg, name);
|
|
|
|
if (ret) {
|
|
|
|
dd_dev_err(dd,
|
2020-05-11 16:06:37 +00:00
|
|
|
"%s: request for IRQ %d failed, MSIx %lx, err %d\n",
|
2020-01-06 13:42:16 +00:00
|
|
|
name, irq, nr, ret);
|
2018-08-16 06:04:04 +00:00
|
|
|
spin_lock(&dd->msix_info.msix_lock);
|
|
|
|
__clear_bit(nr, dd->msix_info.in_use_msix);
|
|
|
|
spin_unlock(&dd->msix_info.msix_lock);
|
|
|
|
return ret;
|
|
|
|
}
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/*
|
|
|
|
* assign arg after pci_request_irq call, so it will be
|
|
|
|
* cleaned up
|
|
|
|
*/
|
|
|
|
me = &dd->msix_info.msix_entries[nr];
|
|
|
|
me->irq = irq;
|
|
|
|
me->arg = arg;
|
|
|
|
me->type = type;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/* This is a request, so a failure is not fatal */
|
|
|
|
ret = hfi1_get_irq_affinity(dd, me);
|
2018-08-16 13:28:40 +00:00
|
|
|
if (ret)
|
2020-05-11 16:06:37 +00:00
|
|
|
dd_dev_err(dd, "%s: unable to pin IRQ %d\n", name, ret);
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
return nr;
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
2020-01-06 13:42:16 +00:00
|
|
|
static int msix_request_rcd_irq_common(struct hfi1_ctxtdata *rcd,
|
|
|
|
irq_handler_t handler,
|
|
|
|
irq_handler_t thread,
|
|
|
|
const char *name)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
2020-01-06 13:42:16 +00:00
|
|
|
int nr = msix_request_irq(rcd->dd, rcd, handler, thread,
|
2020-05-11 16:06:49 +00:00
|
|
|
rcd->is_vnic ? IRQ_NETDEVCTXT : IRQ_RCVCTXT,
|
|
|
|
name);
|
2018-08-16 06:04:04 +00:00
|
|
|
if (nr < 0)
|
|
|
|
return nr;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
|
|
|
/*
|
2018-08-16 06:04:04 +00:00
|
|
|
* Set the interrupt register and mask for this
|
|
|
|
* context's interrupt.
|
2018-08-16 13:28:40 +00:00
|
|
|
*/
|
2018-08-16 06:04:04 +00:00
|
|
|
rcd->ireg = (IS_RCVAVAIL_START + rcd->ctxt) / 64;
|
|
|
|
rcd->imask = ((u64)1) << ((IS_RCVAVAIL_START + rcd->ctxt) % 64);
|
|
|
|
rcd->msix_intr = nr;
|
|
|
|
remap_intr(rcd->dd, IS_RCVAVAIL_START + rcd->ctxt, nr);
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
return 0;
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
2020-01-06 13:42:16 +00:00
|
|
|
/**
|
|
|
|
* msix_request_rcd_irq() - Helper function for RCVAVAIL IRQs
|
|
|
|
* @rcd: valid rcd context
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
int msix_request_rcd_irq(struct hfi1_ctxtdata *rcd)
|
|
|
|
{
|
|
|
|
char name[MAX_NAME_SIZE];
|
|
|
|
|
|
|
|
snprintf(name, sizeof(name), DRIVER_NAME "_%d kctxt%d",
|
|
|
|
rcd->dd->unit, rcd->ctxt);
|
|
|
|
|
|
|
|
return msix_request_rcd_irq_common(rcd, receive_context_interrupt,
|
|
|
|
receive_context_thread, name);
|
|
|
|
}
|
|
|
|
|
2020-05-11 16:06:37 +00:00
|
|
|
/**
|
|
|
|
* msix_request_rcd_irq() - Helper function for RCVAVAIL IRQs
|
|
|
|
* for netdev context
|
|
|
|
* @rcd: valid netdev contexti
|
|
|
|
*/
|
|
|
|
int msix_netdev_request_rcd_irq(struct hfi1_ctxtdata *rcd)
|
|
|
|
{
|
|
|
|
char name[MAX_NAME_SIZE];
|
|
|
|
|
|
|
|
snprintf(name, sizeof(name), DRIVER_NAME "_%d nd kctxt%d",
|
|
|
|
rcd->dd->unit, rcd->ctxt);
|
|
|
|
return msix_request_rcd_irq_common(rcd, receive_context_interrupt_napi,
|
|
|
|
NULL, name);
|
|
|
|
}
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/**
|
|
|
|
* msix_request_smda_ira() - Helper for getting SDMA IRQ resources
|
|
|
|
* @sde: valid sdma engine
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
int msix_request_sdma_irq(struct sdma_engine *sde)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
2018-08-16 06:04:04 +00:00
|
|
|
int nr;
|
2020-01-06 13:42:16 +00:00
|
|
|
char name[MAX_NAME_SIZE];
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2020-01-06 13:42:16 +00:00
|
|
|
snprintf(name, sizeof(name), DRIVER_NAME "_%d sdma%d",
|
|
|
|
sde->dd->unit, sde->this_idx);
|
2018-08-16 06:04:04 +00:00
|
|
|
nr = msix_request_irq(sde->dd, sde, sdma_interrupt, NULL,
|
2020-01-06 13:42:16 +00:00
|
|
|
IRQ_SDMA, name);
|
2018-08-16 06:04:04 +00:00
|
|
|
if (nr < 0)
|
|
|
|
return nr;
|
|
|
|
sde->msix_intr = nr;
|
|
|
|
remap_sdma_interrupts(sde->dd, sde->this_idx, nr);
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
return 0;
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
2020-01-06 13:42:16 +00:00
|
|
|
/**
|
|
|
|
* msix_request_general_irq(void) - Helper for getting general IRQ
|
|
|
|
* resources
|
|
|
|
* @dd: valid device data
|
|
|
|
*/
|
|
|
|
int msix_request_general_irq(struct hfi1_devdata *dd)
|
|
|
|
{
|
|
|
|
int nr;
|
|
|
|
char name[MAX_NAME_SIZE];
|
|
|
|
|
|
|
|
snprintf(name, sizeof(name), DRIVER_NAME "_%d", dd->unit);
|
|
|
|
nr = msix_request_irq(dd, dd, general_interrupt, NULL, IRQ_GENERAL,
|
|
|
|
name);
|
|
|
|
if (nr < 0)
|
|
|
|
return nr;
|
|
|
|
|
|
|
|
/* general interrupt must be MSIx vector 0 */
|
|
|
|
if (nr) {
|
|
|
|
msix_free_irq(dd, (u8)nr);
|
|
|
|
dd_dev_err(dd, "Invalid index %d for GENERAL IRQ\n", nr);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-08-16 06:04:22 +00:00
|
|
|
/**
|
|
|
|
* enable_sdma_src() - Helper to enable SDMA IRQ srcs
|
|
|
|
* @dd: valid devdata structure
|
|
|
|
* @i: index of SDMA engine
|
|
|
|
*/
|
|
|
|
static void enable_sdma_srcs(struct hfi1_devdata *dd, int i)
|
|
|
|
{
|
|
|
|
set_intr_bits(dd, IS_SDMA_START + i, IS_SDMA_START + i, true);
|
|
|
|
set_intr_bits(dd, IS_SDMA_PROGRESS_START + i,
|
|
|
|
IS_SDMA_PROGRESS_START + i, true);
|
|
|
|
set_intr_bits(dd, IS_SDMA_IDLE_START + i, IS_SDMA_IDLE_START + i, true);
|
|
|
|
set_intr_bits(dd, IS_SDMAENG_ERR_START + i, IS_SDMAENG_ERR_START + i,
|
|
|
|
true);
|
|
|
|
}
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/**
|
|
|
|
* msix_request_irqs() - Allocate all MSIx IRQs
|
|
|
|
* @dd: valid devdata structure
|
|
|
|
*
|
|
|
|
* Helper function to request the used MSIx IRQs.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
int msix_request_irqs(struct hfi1_devdata *dd)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
2018-08-16 06:04:04 +00:00
|
|
|
int i;
|
2020-01-06 13:42:16 +00:00
|
|
|
int ret = msix_request_general_irq(dd);
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2020-01-06 13:42:16 +00:00
|
|
|
if (ret)
|
2018-08-16 06:04:04 +00:00
|
|
|
return ret;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
for (i = 0; i < dd->num_sdma; i++) {
|
|
|
|
struct sdma_engine *sde = &dd->per_sdma[i];
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
ret = msix_request_sdma_irq(sde);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
2018-08-16 06:04:22 +00:00
|
|
|
enable_sdma_srcs(sde->dd, i);
|
2018-08-16 06:04:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < dd->n_krcv_queues; i++) {
|
|
|
|
struct hfi1_ctxtdata *rcd = hfi1_rcd_get_by_index_safe(dd, i);
|
|
|
|
|
|
|
|
if (rcd)
|
|
|
|
ret = msix_request_rcd_irq(rcd);
|
|
|
|
hfi1_rcd_put(rcd);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
/**
|
|
|
|
* msix_free_irq() - Free the specified MSIx resources and IRQ
|
|
|
|
* @dd: valid devdata
|
|
|
|
* @msix_intr: MSIx vector to free.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void msix_free_irq(struct hfi1_devdata *dd, u8 msix_intr)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
|
|
|
struct hfi1_msix_entry *me;
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
if (msix_intr >= dd->msix_info.max_requested)
|
|
|
|
return;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
me = &dd->msix_info.msix_entries[msix_intr];
|
|
|
|
|
|
|
|
if (!me->arg) /* => no irq, no affinity */
|
2018-08-16 13:28:40 +00:00
|
|
|
return;
|
|
|
|
|
2018-08-16 06:04:04 +00:00
|
|
|
hfi1_put_irq_affinity(dd, me);
|
|
|
|
pci_free_irq(dd->pcidev, msix_intr, me->arg);
|
|
|
|
|
|
|
|
me->arg = NULL;
|
|
|
|
|
|
|
|
spin_lock(&dd->msix_info.msix_lock);
|
|
|
|
__clear_bit(msix_intr, dd->msix_info.in_use_msix);
|
|
|
|
spin_unlock(&dd->msix_info.msix_lock);
|
2018-08-16 13:28:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-08-16 06:04:04 +00:00
|
|
|
* hfi1_clean_up_msix_interrupts() - Free all MSIx IRQ resources
|
2018-08-16 13:28:40 +00:00
|
|
|
* @dd: valid device data data structure
|
|
|
|
*
|
|
|
|
* Free the MSIx and associated PCI resources, if they have been allocated.
|
|
|
|
*/
|
2018-08-16 06:04:04 +00:00
|
|
|
void msix_clean_up_interrupts(struct hfi1_devdata *dd)
|
2018-08-16 13:28:40 +00:00
|
|
|
{
|
|
|
|
int i;
|
2018-08-16 06:04:04 +00:00
|
|
|
struct hfi1_msix_entry *me = dd->msix_info.msix_entries;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
|
|
|
/* remove irqs - must happen before disabling/turning off */
|
2018-08-16 06:04:04 +00:00
|
|
|
for (i = 0; i < dd->msix_info.max_requested; i++, me++)
|
|
|
|
msix_free_irq(dd, i);
|
2018-08-16 13:28:40 +00:00
|
|
|
|
|
|
|
/* clean structures */
|
2018-08-16 06:04:04 +00:00
|
|
|
kfree(dd->msix_info.msix_entries);
|
|
|
|
dd->msix_info.msix_entries = NULL;
|
|
|
|
dd->msix_info.max_requested = 0;
|
2018-08-16 13:28:40 +00:00
|
|
|
|
|
|
|
pci_free_irq_vectors(dd->pcidev);
|
|
|
|
}
|
2018-08-16 06:04:04 +00:00
|
|
|
|
|
|
|
/**
|
2020-05-11 16:06:49 +00:00
|
|
|
* msix_netdev_syncrhonize_irq() - netdev IRQ synchronize
|
2018-08-16 06:04:04 +00:00
|
|
|
* @dd: valid devdata
|
|
|
|
*/
|
2020-05-11 16:06:49 +00:00
|
|
|
void msix_netdev_synchronize_irq(struct hfi1_devdata *dd)
|
2018-08-16 06:04:04 +00:00
|
|
|
{
|
|
|
|
int i;
|
2020-05-11 16:06:49 +00:00
|
|
|
int ctxt_count = hfi1_netdev_ctxt_count(dd);
|
2018-08-16 06:04:04 +00:00
|
|
|
|
2020-05-11 16:06:49 +00:00
|
|
|
for (i = 0; i < ctxt_count; i++) {
|
|
|
|
struct hfi1_ctxtdata *rcd = hfi1_netdev_get_ctxt(dd, i);
|
2018-08-16 06:04:04 +00:00
|
|
|
struct hfi1_msix_entry *me;
|
|
|
|
|
|
|
|
me = &dd->msix_info.msix_entries[rcd->msix_intr];
|
|
|
|
|
|
|
|
synchronize_irq(me->irq);
|
|
|
|
}
|
|
|
|
}
|