Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp758269pxj; Thu, 17 Jun 2021 13:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz89Fkom9WDKw6P+CjylTZsb+86aAD4Vncsw39Wvhq2JwFsKoElzTWyLsl7BwsIFvv9Xnis X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr70053edu.332.1623960644235; Thu, 17 Jun 2021 13:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623960644; cv=none; d=google.com; s=arc-20160816; b=ikzIPj3B3bG3QBkRLM+qxmee33H8vnrAlGIHCc72wYMcPlR0E1WLdrI5H7AvxT3PuU qPWNjyFf+gc2jTStv/qe2+lIhqQf3hXlH1LHwoizX6obpLnaoctT/THWzNZwtOLZgUI/ NQe8pTCkGu1MwsORpZv7K8R43/v4QtzvnFZuOC+wneljqsV4RGbYzmSuBL2dSCfClRnu uvfTZHOn8QmlHhDzMyiL1x7viF2WjwR5VPv5WmC8PDkOAnnN2dq2qOmZC1oTN40sCU95 y/gp5jJ1Vbn3Z+3xC8n/ePlCFY1UrZqNqZo1wFiv2JQQZ4Y80smlIhO72kf2xc0XIVhY Jkpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=yGtGwjM0HqOorIAs5Vljr+3B7rxAzLOFx0Bg3o4IjhM=; b=iTrTqbyTepoBoCBMkRo7+fyG3IiLwEda0VX2RTfE13W6J4G2VLfFQRwEqij+UkQBPx mmMq37qjOw2w9Nz1ieo5ZXfDWC+IRYd0uFvJWO1VPwxu3CzNy7F5MKMoJ/GDHuBfcW4E Za3MLLkNkwoTpIUN+rAHS7pV27kVgj7gFXcURfNKqPXvMRlvq0/zWGIQdWJF8doMOE6z +YhNzGZ0ild+aHoNm0BH1o6ebnkee69FzKLrr1YLffrk4016GV42eHJWywacKWXH+xiP LcBbkKuARwshMFjNYfUMOsYR8oUNO/Zj0/m6PX5+Fd/3Hrlq5sHON2AQzavvMbdwFYht IVoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Dyzz1t/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si8845ejc.334.2021.06.17.13.10.12; Thu, 17 Jun 2021 13:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Dyzz1t/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233651AbhFQS0i (ORCPT + 99 others); Thu, 17 Jun 2021 14:26:38 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:42811 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233497AbhFQS0H (ORCPT ); Thu, 17 Jun 2021 14:26:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623954238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yGtGwjM0HqOorIAs5Vljr+3B7rxAzLOFx0Bg3o4IjhM=; b=Dyzz1t/Q/bqrnu03P074f5xJ1bIj3ePyLf5Ftg2U5LlkJEjIfKUnC/cRSNpQncX2lPaooq QI3384J721LMlOm4IJi45FAc7eF048NMpUz7sMNQkSGssn6PBa5Wst1w5qYcZqKuy078c5 6LMS9FnNc7CUoFiZ9BPfYsbjRL+aI8s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-239-0R0f6V6_PCKTQDqRXIZhfQ-1; Thu, 17 Jun 2021 14:23:57 -0400 X-MC-Unique: 0R0f6V6_PCKTQDqRXIZhfQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 43D54100C619; Thu, 17 Jun 2021 18:23:51 +0000 (UTC) Received: from virtlab719.virt.lab.eng.bos.redhat.com (virtlab719.virt.lab.eng.bos.redhat.com [10.19.153.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0CFCF60C05; Thu, 17 Jun 2021 18:23:43 +0000 (UTC) From: Nitesh Narayan Lal To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-pci@vger.kernel.org, tglx@linutronix.de, jesse.brandeburg@intel.com, robin.murphy@arm.com, mtosatti@redhat.com, mingo@kernel.org, jbrandeb@kernel.org, frederic@kernel.org, juri.lelli@redhat.com, abelits@marvell.com, bhelgaas@google.com, rostedt@goodmis.org, peterz@infradead.org, davem@davemloft.net, akpm@linux-foundation.org, sfr@canb.auug.org.au, stephen@networkplumber.org, rppt@linux.vnet.ibm.com, chris.friesen@windriver.com, maz@kernel.org, nhorman@tuxdriver.com, pjwaskiewicz@gmail.com, sassmann@redhat.com, thenzl@redhat.com, kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, sathya.prakash@broadcom.com, sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, james.smart@broadcom.com, dick.kennedy@broadcom.com, jkc@redhat.com, faisal.latif@intel.com, shiraz.saleem@intel.com, tariqt@nvidia.com, ahleihel@redhat.com, kheib@redhat.com, borisp@nvidia.com, saeedm@nvidia.com, benve@cisco.com, govind@gmx.com, jassisinghbrar@gmail.com, luobin9@huawei.com, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com, nilal@redhat.com Subject: [PATCH v1 06/14] RDMA/i40iw: Use irq_update_affinity_hint Date: Thu, 17 Jun 2021 14:22:34 -0400 Message-Id: <20210617182242.8637-7-nitesh@redhat.com> In-Reply-To: <20210617182242.8637-1-nitesh@redhat.com> References: <20210617182242.8637-1-nitesh@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver uses irq_set_affinity_hint() to update the affinity_hint mask that is consumed by the userspace to distribute the interrupts. However, under the hood irq_set_affinity_hint() also applies the provided cpumask (if not NULL) as the affinity for the given interrupt which is an undocumented side effect. To remove this side effect irq_set_affinity_hint() has been marked as deprecated and new interfaces have been introduced. Hence, replace the irq_set_affinity_hint() with the new interface irq_update_affinity_hint() that only updates the affinity_hint pointer. Signed-off-by: Nitesh Narayan Lal --- drivers/infiniband/hw/i40iw/i40iw_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c index b496f30ce066..433d91c30cae 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_main.c +++ b/drivers/infiniband/hw/i40iw/i40iw_main.c @@ -266,7 +266,7 @@ static void i40iw_disable_irq(struct i40iw_sc_dev *dev, i40iw_wr32(dev->hw, I40E_PFINT_DYN_CTLN(msix_vec->idx - 1), 0); else i40iw_wr32(dev->hw, I40E_VFINT_DYN_CTLN1(msix_vec->idx - 1), 0); - irq_set_affinity_hint(msix_vec->irq, NULL); + irq_update_affinity_hint(msix_vec->irq, NULL); free_irq(msix_vec->irq, dev_id); } @@ -696,7 +696,7 @@ static enum i40iw_status_code i40iw_configure_ceq_vector(struct i40iw_device *iw cpumask_clear(&msix_vec->mask); cpumask_set_cpu(msix_vec->cpu_affinity, &msix_vec->mask); - irq_set_affinity_hint(msix_vec->irq, &msix_vec->mask); + irq_update_affinity_hint(msix_vec->irq, &msix_vec->mask); if (status) { i40iw_pr_err("ceq irq config fail\n"); -- 2.27.0