Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp666329pxt; Fri, 6 Aug 2021 10:39:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOSh5fcdkjQLb0ypHQPbNmGntE+mtgVNdMYhF4CF+uEvR++AiHpOlH7sMCVWnlHdY2JrI5 X-Received: by 2002:a92:730d:: with SMTP id o13mr596893ilc.183.1628271591980; Fri, 06 Aug 2021 10:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628271591; cv=none; d=google.com; s=arc-20160816; b=qIhv90AZ/cg5Okf7qYZwTxAwCj4gLlvD4pXvQDAG3M26Qvm5ui0tvEtBB8xFboPsfo B4m/WSDAenbJHbDhZKwqWDuEwDgvz9T7GhTWOozfZp381peWHhj2SrM8ms4xU5N8hUwC 7TggkgERqzWy2Ta79WBi+jrevIvnlApzzlGO28ShZd4uQmDY8VO8L4YVpjxHrDgDqCqT hT026S2B6NXX8qpiFcLqe5JaiY+NxgJL3J6qYmPDf0YGKhAnWJO8+cSxtqeaAa97UAG3 5EtPEwgp3GvehVWNTj1q48ZTTsQGRkdkOCvFu6j9DnJ8L31dZ2PySoyqgSeeldWyOOsc ouDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HWEt/YEnlY2LGChH/QmRN6jNlo6GZExY2b/baBp9sZ4=; b=aqaOj7bLiWLZPJnIXrGW8ya9Y37eBW9ux35pPeFa8RXLyknXnCrxAXQESyAIX2X++1 REikkXwADUxcCitliraRboGIUkx+PGggA6cKh/6awUo1ZGhj1Md3byZVj49zT0rEbQGt U4awddK+nZzguhxHmUYZ/VP/MX40vm1KemJyQfs9IDOyVi06zgUG1m9cRREQNIjvECYy qSkYC57AX7izwqMuXO0q94TRDIjQ0J0dNYBFZBjYzgYXJ9X7WtZ0IBmBj6W9YDQHTlbl kxIrnP8OFvhFoqhoE4jvdb9nE4t6CQDUy8Q/CIx3Fp2l3Fb9iE/8pjHri2m1jCtX/eB8 2K7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="d12o4f/6"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si9799307ile.96.2021.08.06.10.39.33; Fri, 06 Aug 2021 10:39:48 -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=@broadcom.com header.s=google header.b="d12o4f/6"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239694AbhHFLcB (ORCPT + 99 others); Fri, 6 Aug 2021 07:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238025AbhHFLcA (ORCPT ); Fri, 6 Aug 2021 07:32:00 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CD92C06179A for ; Fri, 6 Aug 2021 04:31:45 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id mt6so16178430pjb.1 for ; Fri, 06 Aug 2021 04:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HWEt/YEnlY2LGChH/QmRN6jNlo6GZExY2b/baBp9sZ4=; b=d12o4f/6St7eezofXD6csAqoWsqlTdEmkc+83Q/6yCa9LcwliGK4ZeHTCHni4WIchF 9HDi0XKbWKt8KNkWTdYWQPu7looMIa7VetKzYAzIaIvOlL1IUMZx0nN1kJOqa/SCojGJ gvZA0rxyeS7s12HOZ2/i1tckR8Hr4KJoEX4No= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HWEt/YEnlY2LGChH/QmRN6jNlo6GZExY2b/baBp9sZ4=; b=msT7y2rMdlFJgB4n3nw2pDqv4ILOgvlibNxBrWe4KGtDP4S4wC1KcIdIFT7HEkyLY/ tBXRCThZUaSqyjR7ruOomzBkRqMKZ7XzU+e1BTpuK+7VNq9N/Y4fOwyDDIVBlbLXXZoW rqtMgUfP0A069lCmUJnODcWaYepD3vIpjKslyDzO6vJUwoaFYpfPkMsqCyhHibx0tPhK R9aYkv+NzK8godKe9o7WQd3AOD5TF0FkZThtyTS1vwZKkS5uCAPUg1V6VcFR0Qii9obT eHhDN47TkkpW6Z+DvuNrWmVGETtkyoLKiB+4MLUNqidJJrLNCdYSlUJTU5AImKB+1Jet 4/zQ== X-Gm-Message-State: AOAM533y21n5vsGrwh/z+Ypw0lZLE2eA4d9e/2Z72aULFdk5aXpc9eLM ibu1WfSkRrYh+NhDjLj7evREeifzl2lg1PONtN2Szg== X-Received: by 2002:a17:90a:2a8e:: with SMTP id j14mr20429914pjd.208.1628249504446; Fri, 06 Aug 2021 04:31:44 -0700 (PDT) MIME-Version: 1.0 References: <20210720232624.1493424-1-nitesh@redhat.com> <20210720232624.1493424-5-nitesh@redhat.com> In-Reply-To: <20210720232624.1493424-5-nitesh@redhat.com> From: Sumit Saxena Date: Fri, 6 Aug 2021 17:01:17 +0530 Message-ID: Subject: Re: [PATCH v5 04/14] scsi: megaraid_sas: Use irq_set_affinity_and_hint To: Nitesh Narayan Lal Cc: LKML , Linux SCSI List , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-pci@vger.kernel.org, Thomas Gleixner , 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, Bjorn Helgaas , rostedt@goodmis.org, peterz@infradead.org, "David S. Miller" , 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, Tomas Henzl , Kashyap Desai , Shivasharan Srikanteshwara , Sathya Prakash Veerichetty , Sreekanth Reddy , Suganath Prabu Subramani , 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, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, Somnath Kotur , Nitesh Lal , tatyana.e.nikolova@intel.com, mustafa.ismail@intel.com, ahs3@redhat.com, leonro@nvidia.com, Chandrakanth Patil , bjorn.andersson@linaro.org, chunkuang.hu@kernel.org, yongqiang.niu@mediatek.com, baolin.wang7@gmail.com, poros@redhat.com, minlei@redhat.com, Ewan Milne , "James E.J. Bottomley" , "Martin K. Petersen" , _govind@gmx.com, kabel@kernel.org, viresh.kumar@linaro.org, Tushar.Khandelwal@arm.com, kuba@kernel.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000005accdd05c8e261c2" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000005accdd05c8e261c2 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 21, 2021 at 4:57 AM Nitesh Narayan Lal wrote: > > The driver uses irq_set_affinity_hint() specifically for the high IOPS > queue interrupts for two purposes: > > - To set the affinity_hint which is consumed by the userspace for > distributing the interrupts > > - To apply an affinity that it provides > > The driver enforces its own affinity to bind the high IOPS queue interrupts > to the local NUMA node. However, irq_set_affinity_hint() applying the > provided cpumask as an affinity for the interrupt 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_set_affinity_and_hint() > where the provided mask needs to be applied as the affinity and > affinity_hint pointer needs to be set and replace with > irq_update_affinity_hint() where only affinity_hint needs to be updated. > > Change the megasas_set_high_iops_queue_affinity_hint function name to > megasas_set_high_iops_queue_affinity_and_hint to clearly indicate that the > function is setting both affinity and affinity_hint. > > Signed-off-by: Nitesh Narayan Lal Looks good. Acked-by: Sumit Saxena --0000000000005accdd05c8e261c2 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQbQYJKoZIhvcNAQcCoIIQXjCCEFoCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3EMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhk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