Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3581634pxv; Mon, 12 Jul 2021 22:04:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+gm98M1sOkJN9CfKVX6zPdABrtLS13yYF/1pLxZ9GpZvhqNeNEWCMTUvcSJi9MjH3VsBg X-Received: by 2002:a17:906:990f:: with SMTP id zl15mr3377875ejb.34.1626152671482; Mon, 12 Jul 2021 22:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626152671; cv=none; d=google.com; s=arc-20160816; b=a8iXh7Z13i0M8DtZubg+BNrwurY2rhza2IS0FrtfwOBF7B7E3vosXX3GBX45l3jU5P aAoUVNVBWhMOxLlB5tNcNc8Tf5ujHklK+A1CjlFhheeGNiJIvIfAOaKEMVvC7A3PBKTl oVdncgGmGcm4eOLskW2oNlHU3DF9CY+teLxcIKH6E24cJURBCCfpLnDRtjAWSBcYaV5Y Muqq92VKRlPfIIGVuED0wX16/tfUTmyPfSux+Fvk4dtRmbuBdpMOeyfX/G66K20gfFxy lvSCcGD1q7jv+sY9VV9y4OQV7/97/i7hIPM93oXpzBVI1lOuIhE3iQSnca2zDxZq4gHX WtMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Np3p4VSI6PnxTwaknOImEULQvmUcedznfOfG8cyP9+8=; b=rZSbugmBRYCp4HyB1dQrvPodPa2ZYu+22tEYGge/s1pfOMDgeqidzHYocwKWfdXU2Z YqMRO0ZoR9ms/q9aeQ+Aal5luOAB0UyCt1a7sm3kjXwbgt3Gi0F90mVuw52apjrWyyJV AsHohqnQnumAkN3hoTpFglWFkfnIU71eQyJjoBhDSUj4rreBLJacSihAQkdI/iwYh6Ga kLAuaIIG3eZpirrjxLQtZzuQ7hT3vYjPTCwbYiNVRuKDdcMKVDevxVf7Zs8MLYjz5U2E 9fwW7YIzpcmHpBNrjoFDwuKBkcWZ97NCwb7DVfDqVSvbBzg+WIV5llsuMyH8e/yz9IeE QvXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EqaYF2N5; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si20621722edb.197.2021.07.12.22.04.09; Mon, 12 Jul 2021 22:04:31 -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=@kernel.org header.s=k20201202 header.b=EqaYF2N5; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231998AbhGMFEY (ORCPT + 99 others); Tue, 13 Jul 2021 01:04:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:41530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbhGMFEX (ORCPT ); Tue, 13 Jul 2021 01:04:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3BE7260725; Tue, 13 Jul 2021 05:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626152494; bh=pi3/8CoqzjVtefalb1lWMBNyAW91jVNorghWkKWho4Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EqaYF2N5sMlq0M0fk5mUicFGrE6aNAmXHAc2fMoL2DSv0gKGJ2/60bUYhr+1OQX8J 8jsjHtpmgjqkCNQ0K59/TPvzZI+TjecAjGMpek0JQPn35c5Lo6z9N9CFzWxdasDR8U 207WXhjs27NbxS7Z8XNNQUjJZuoto1O3YZNMDo+/lObOZ1LccEt/vmK4N+Ng7xMawH vf+Vz+Ybr8U211B6xEfeH71tSFQi5x0T+olygk3gNRRf/2HESt2q/mX/8yEfL8XSpT q2tvic72ShedZz/IOiSP/DHwFN/Z4ieixhGNdCJNbsTQJMo2KgeOZrS4U4OICgLquT 2fbdSdrAsDzKw== Date: Tue, 13 Jul 2021 08:01:30 +0300 From: Leon Romanovsky To: Nitesh Lal Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-pci@vger.kernel.org, Thomas Gleixner , Jesse Brandeburg , Robin Murphy , Marcelo Tosatti , Ingo Molnar , jbrandeb@kernel.org, frederic@kernel.org, Juri Lelli , Alex Belits , Bjorn Helgaas , 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, Marc Zyngier , Neil Horman , pjwaskiewicz@gmail.com, Stefan Assmann , Tomas Henzl , kashyap.desai@broadcom.com, Sumit Saxena , shivasharan.srikanteshwara@broadcom.com, sathya.prakash@broadcom.com, Sreekanth Reddy , suganath-prabu.subramani@broadcom.com, james.smart@broadcom.com, dick.kennedy@broadcom.com, Ken Cox , faisal.latif@intel.com, shiraz.saleem@intel.com, tariqt@nvidia.com, Alaa Hleihel , Kamal Heib , 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@broadcom.com, "Nikolova, Tatyana E" , "Ismail, Mustafa" , Al Stone Subject: Re: [PATCH v2 00/14] genirq: Cleanup the usage of irq_set_affinity_hint Message-ID: References: <20210629152746.2953364-1-nitesh@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 05:27:05PM -0400, Nitesh Lal wrote: > Hi Leon, > > On Sun, Jul 11, 2021 at 7:32 AM Leon Romanovsky wrote: > > > > On Thu, Jul 08, 2021 at 03:24:20PM -0400, Nitesh Lal wrote: > > > On Tue, Jun 29, 2021 at 11:28 AM Nitesh Narayan Lal wrote: > > > > <...> > > > > > > > > > > drivers/infiniband/hw/i40iw/i40iw_main.c | 4 +- > > > > drivers/mailbox/bcm-flexrm-mailbox.c | 4 +- > > > > drivers/net/ethernet/cisco/enic/enic_main.c | 8 +-- > > > > drivers/net/ethernet/emulex/benet/be_main.c | 4 +- > > > > drivers/net/ethernet/huawei/hinic/hinic_rx.c | 4 +- > > > > drivers/net/ethernet/intel/i40e/i40e_main.c | 8 +-- > > > > drivers/net/ethernet/intel/iavf/iavf_main.c | 8 +-- > > > > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 10 ++-- > > > > drivers/net/ethernet/mellanox/mlx4/eq.c | 8 ++- > > > > .../net/ethernet/mellanox/mlx5/core/pci_irq.c | 6 +-- > > > > drivers/scsi/lpfc/lpfc_init.c | 4 +- > > > > drivers/scsi/megaraid/megaraid_sas_base.c | 27 +++++----- > > > > drivers/scsi/mpt3sas/mpt3sas_base.c | 21 ++++---- > > > > include/linux/interrupt.h | 53 ++++++++++++++++++- > > > > kernel/irq/manage.c | 8 +-- > > > > 15 files changed, 113 insertions(+), 64 deletions(-) > > > > > > > > -- > > > > > > > > > > > > > > Gentle ping. > > > Any comments or suggestions on any of the patches included in this series? > > > > Please wait for -rc1, rebase and resend. > > At least i40iw was deleted during merge window. > > > > In -rc1 some non-trivial mlx5 changes also went in. I was going through > these changes and it seems after your patch > > e4e3f24b822f: ("net/mlx5: Provide cpumask at EQ creation phase") > > we do want to control the affinity for the mlx5 interrupts from the driver. > Is that correct? We would like to create devices with correct affinity from the beginning. For this, we will introduce extension to devlink to control affinity that will be used prior initialization sequence. Currently, netdev users who don't want irqbalance are digging into their procfs, reconfigure affinity on already existing devices and hope for the best. This is even more cumbersome for the SIOV use case, where every physical NIC PCI device will/can create thousands of lightweights netdevs that will be forwarded to the containers later. These containers are limited to known CPU cores, so no reason do not limit netdev device too. The same goes for other sub-functions of that PCI device, like RDMA, vdpa e.t.c. > This would mean that we should use irq_set_affinity_and_hint() instead > of irq_update_affinity_hint(). I think so. Thanks > > -- > Thanks > Nitesh >