Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp880426pxt; Fri, 6 Aug 2021 16:48:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvax4u7UVYQsWIIYEzmdHdnRiAQXqx3MrrDZkGatDaGFpUY4J27Jk0HOGtrYt8VXXb6S8a X-Received: by 2002:a6b:28a:: with SMTP id 132mr401303ioc.157.1628293691034; Fri, 06 Aug 2021 16:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628293691; cv=none; d=google.com; s=arc-20160816; b=n/5jsgFV3B5Rjw7KEbiXtG1zZqEpiS2I+no5AUkaa/zfsqm+Y+IxTV5yw0ySK3gILH LxctdSzdtWH1s4ywNAEqP8cQwjSjg0pKvNlLFuMsvCDUsLQPc7h74cmaDKZXcGi0/Q8J ghXTqMN3UVimGMI8bXw4MaDdhz9Kry+tYSquLtMkJ1ZqLbpZ4ppLdqdKoF6n55oAigHL SRp2eiDDW2Ramz47a5FcLxotM9lBonjnpMNZ5BXvtN1MRrQNJZ/wb1YMyrl4+rGXaN3d Qm3By6oTVnEILhqAAqL8/ytvwDBT+2FdB3GCJhsNClB4GSIUNeexdR/SQeX/hh4a51WG u8xQ== 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=ocgP4yowhB/EUlnSIxuQMOG6kjLjSAHTmb8OYmd4EOQ=; b=fPJgDRyIbLxTsJdeoNnqOUdZh4WYX63lZGKqwH0oon8vnFqlc/Ue7PQxdVEnowBfw0 1gCIYTR8S+bBfyNOFOleTPFOFclzL5vtql4kji/rk4mtpCAp9roh44Ch9avvqI0NQkQA KOCDEhiK5mVQNVR3VA6H56vgNGV9IicVeIM/bxtoE5hlO0h/IvlEr58kaTZQrNEd/ybv R1Z2gDJVKThVuYrMzbo25SX++aVP5C1Jwf7lIG9WX9USS5oPay7O8iQnevx+6qo7oHu4 7rXnEojdxRuFzgnyK0haB47KmHW2C18f0FIMRNSqcfvdMUQD5RTyhmseC2X/edAj9Qsv E0aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Kr6m1tpP; 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 p18si10379353ios.10.2021.08.06.16.47.59; Fri, 06 Aug 2021 16:48:11 -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=Kr6m1tpP; 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 S238025AbhHFPw3 (ORCPT + 99 others); Fri, 6 Aug 2021 11:52:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:40269 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232233AbhHFPw2 (ORCPT ); Fri, 6 Aug 2021 11:52:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628265132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ocgP4yowhB/EUlnSIxuQMOG6kjLjSAHTmb8OYmd4EOQ=; b=Kr6m1tpPchjzWu25UwcCdoz89ETW1+vRd7RRMfRNYX4nGIxHvllkR0L2F5v5mFFixMHvUc JVeauVsbuSHqa0uzlJC2AqY9UW8RYUadGgK6czeLNAlX6KJLtbiOUdtYD6YYzQW2FzzXX8 dM9TF6Z098Bd+L/N5iDlu/5sscf8AAw= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-300--EgzG2cOOqmmSzv9Gbwh8Q-1; Fri, 06 Aug 2021 11:52:11 -0400 X-MC-Unique: -EgzG2cOOqmmSzv9Gbwh8Q-1 Received: by mail-lj1-f200.google.com with SMTP id y18-20020a2e95d20000b02901b29cf2565fso878872ljh.18 for ; Fri, 06 Aug 2021 08:52:11 -0700 (PDT) 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=ocgP4yowhB/EUlnSIxuQMOG6kjLjSAHTmb8OYmd4EOQ=; b=PHzk9QREayY7UUKlVUAlsLuM3dz8HEM6ZhtoYlCf6Sq4RCB36rR4neVg2hrfKZnH7e 6mI08lu9lJ+Rz0pyLLDbKxxMVzKOgmRhSyKH3xIt8ble31dC5i/HvcudTiFbFZjuormv cpcbpusBi0KUsTroAphfQMVZsIwjE6H9hZrWAOTe5jFLSnRoACl3da9eR+JW4TNrHu8Z UC9Pn4gw7hpNtLPOWKp8186+qYY0fsaweFsTdlkONL4SzeFu15dmMx4Rlz4523GRGZ0Y vWprwpGtqOeIu0cKfAJvgicrvyMORZGNcARmchR0FD/s5q83eDTdl/VpAEsy7ao2K73a tyMA== X-Gm-Message-State: AOAM5314VmCYuf8ZHERSKVjk4Ntkae/8bjyVxcPUBpSKkcDYdMBsDo7g jdLPXrJBao0cLv8CA09wlYRdGDPqMfoDW1iPKsbtdMRXyjyoWX/F5hmZlFPosulzRczPV+UKU6Q oGKCGyPdT5mwsVjOuqcayaoNw50ozhie9V8zWi2ZS X-Received: by 2002:ac2:446d:: with SMTP id y13mr8071815lfl.632.1628265129892; Fri, 06 Aug 2021 08:52:09 -0700 (PDT) X-Received: by 2002:ac2:446d:: with SMTP id y13mr8071774lfl.632.1628265129728; Fri, 06 Aug 2021 08:52:09 -0700 (PDT) MIME-Version: 1.0 References: <20210720232624.1493424-1-nitesh@redhat.com> <20210720232624.1493424-2-nitesh@redhat.com> In-Reply-To: <20210720232624.1493424-2-nitesh@redhat.com> From: Ming Lei Date: Fri, 6 Aug 2021 23:51:58 +0800 Message-ID: Subject: Re: [PATCH v5 01/14] genirq: Provide new interfaces for affinity hints To: Nitesh Narayan Lal Cc: 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 , 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 , sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, sathya.prakash@broadcom.com, sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, James Smart , 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@broadcom.com, nilal@redhat.com, tatyana.e.nikolova@intel.com, mustafa.ismail@intel.com, ahs3@redhat.com, leonro@nvidia.com, chandrakanth.patil@broadcom.com, bjorn.andersson@linaro.org, chunkuang.hu@kernel.org, yongqiang.niu@mediatek.com, baolin.wang7@gmail.com, poros@redhat.com, Ewan Milne , jejb@linux.ibm.com, "Martin K. Petersen" , _govind@gmx.com, kabel@kernel.org, viresh.kumar@linaro.org, Tushar.Khandelwal@arm.com, kuba@kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 7:26 AM Nitesh Narayan Lal wrote: > > From: Thomas Gleixner > > The discussion about removing the side effect of irq_set_affinity_hint() of > actually applying the cpumask (if not NULL) as affinity to the interrupt, > unearthed a few unpleasantries: > > 1) The modular perf drivers rely on the current behaviour for the very > wrong reasons. > > 2) While none of the other drivers prevents user space from changing > the affinity, a cursorily inspection shows that there are at least > expectations in some drivers. > > #1 needs to be cleaned up anyway, so that's not a problem > > #2 might result in subtle regressions especially when irqbalanced (which > nowadays ignores the affinity hint) is disabled. > > Provide new interfaces: > > irq_update_affinity_hint() - Only sets the affinity hint pointer > irq_set_affinity_and_hint() - Set the pointer and apply the affinity to > the interrupt > > Make irq_set_affinity_hint() a wrapper around irq_apply_affinity_hint() and > document it to be phased out. > > Signed-off-by: Thomas Gleixner > Signed-off-by: Nitesh Narayan Lal > Link: https://lore.kernel.org/r/20210501021832.743094-1-jesse.brandeburg@intel.com Reviewed-by: Ming Lei