Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1108784pxj; Tue, 18 May 2021 21:57:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz92hA3mPAIeNCc2x5wdv4TRSZvoSbzCirMvA7xNPyooml9RwwIdJLultLx9MUieHu38LQF X-Received: by 2002:a92:ab01:: with SMTP id v1mr9298277ilh.190.1621400227017; Tue, 18 May 2021 21:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621400227; cv=none; d=google.com; s=arc-20160816; b=wdGaDZorrB/CR14QDBkZgO1e1BKjPU+tMO5cmUDDL+KcYoXZmwBDOyWMRptrnBIbM0 qr+noE0w3f8rNs2bGwRO5R7uI9FxvYCnZXtkEcc/UZPkUY7egZMqM8op9Znk3dOznY8L Gt+ruSERa1hF38yegsFLEC/kR1zdWwsEesPRJrS/mRKrcj/94Z9KOvYp8lRakCZPkXr6 l7nF0QGljqpEA/tcYRWDQ7HPZWcKhBF6DqcUnrEEC9XZ2NI/PmSQTwmbRaCGqqhkUPfL CN0e/a96kDf5K9cjsvM20pdUoifJAAMegJM5U8vXxELMfkyg/aOdvS/3J8HxJzT0MtiK 4jhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=4CblS4NWUSycccK6+ysE1vs1G6nKpvCAliA4XuNuKT4=; b=wt6sFXnKBLwpjPtZp5cc5ls1GY8KGALwjGXTOjHj9icm+WNoZ/t875fWtP2kWAyk2o EjTqG3QwIwJ40QMFeXAhFayUuM2irwllwhfxzc0Htd7x0vH34UcUDRv73j+UrtqFXFBh C/YEq+VyFCZAo5t4LRT01UD4FcbKcIxGRZiEPHSRBgmyLNy9zuMVHEGaOjaspEIaL5E9 axvMI6G7YzJS+66d7t5+TgbFoc/Gd08a3PiZPFh9pjujixTWWGOPf0mrd7+DMNiQJiX/ sGc20H3LCTiODEG1h0astL8hK+5aPJN9egeKPqWd6qMoHulHyEGLrvaWTprNeyelYS9n lVxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=sZEsINB9; dkim=neutral (no key) header.i=@linutronix.de header.b=nwXJo4JS; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si21670647ioj.71.2021.05.18.21.56.54; Tue, 18 May 2021 21:57:06 -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=@linutronix.de header.s=2020 header.b=sZEsINB9; dkim=neutral (no key) header.i=@linutronix.de header.b=nwXJo4JS; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235590AbhEQUTr (ORCPT + 99 others); Mon, 17 May 2021 16:19:47 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:55016 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238942AbhEQUTq (ORCPT ); Mon, 17 May 2021 16:19:46 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621282707; 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=4CblS4NWUSycccK6+ysE1vs1G6nKpvCAliA4XuNuKT4=; b=sZEsINB9gW9rWKIThv/nJUQdVS0LVVxt3mk9SLmr2mnPlVG6wz5VMOrR7yTWtsO+G2D6xU BsKI+EgFjlUDMXiDx5ZOIVJHVJDh9digvYou8HnEtX73UoubWvL37hI5Q5gUp7X55T9mjj DOvrg+Fa5Cpa5GgGRmPsvz97s/IuHhEDUM7F7dXXjqJwipMa2zywAtAX872nuQ6XOq/nZK qFUa/G8sO96R7rbVv6P6biiiDfkCYzjDpIc1iYfmyscNYYql/ptdLI5v31jgwegubZ9sNX NJe6nlaunx1HUNB9R5DV7FYvBa2vEyqI/HssiVTqhgtGPdCPjCergsWkw3eF8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621282707; 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=4CblS4NWUSycccK6+ysE1vs1G6nKpvCAliA4XuNuKT4=; b=nwXJo4JSXCjScrrvNBVQbD7dDyHa0ScZKzi1rD3hgFRAW9j4kIZ6zia4oYhFw9afxGfUeN THODgb+5xRdI+9CA== To: Robin Murphy , Nitesh Lal , Jesse Brandeburg , "frederic\@kernel.org" , "juri.lelli\@redhat.com" , Marcelo Tosatti Cc: Ingo Molnar , linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, jbrandeb@kernel.org, Alex Belits , "linux-api\@vger.kernel.org" , "bhelgaas\@google.com" , "linux-pci\@vger.kernel.org" , "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" , "jinyuqi\@huawei.com" , "zhangshaokun\@hisilicon.com" , netdev@vger.kernel.org, chris.friesen@windriver.com, Marc Zyngier Subject: Re: [PATCH tip:irq/core v1] genirq: remove auto-set of the mask when setting the hint In-Reply-To: <874kf1faac.ffs@nanos.tec.linutronix.de> References: <20210501021832.743094-1-jesse.brandeburg@intel.com> <16d8ca67-30c6-bb4b-8946-79de8629156e@arm.com> <20210504092340.00006c61@intel.com> <87sg2lz0zz.ffs@nanos.tec.linutronix.de> <874kf1faac.ffs@nanos.tec.linutronix.de> Date: Mon, 17 May 2021 22:18:27 +0200 Message-ID: <87sg2ldsh8.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17 2021 at 21:08, Thomas Gleixner wrote: > On Mon, May 17 2021 at 19:50, Robin Murphy wrote: >> On 2021-05-17 19:08, Thomas Gleixner wrote: >>> On Mon, May 17 2021 at 18:26, Robin Murphy wrote: >>>> On 2021-05-17 17:57, Nitesh Lal wrote: >>>> I'm not implying that there isn't a bug, or that this code ever made >>>> sense in the first place, just that fixing it will unfortunately be a >>>> bit more involved than a simple revert. This patch as-is *will* subtly >>>> break at least the system PMU drivers currently using >>> >>> s/using/abusing/ >>> >>>> irq_set_affinity_hint() - those I know require the IRQ affinity to >>>> follow whichever CPU the PMU context is bound to, in order to meet perf >>>> core's assumptions about mutual exclusion. >>> >>> Which driver is that? >> >> Right now, any driver which wants to control an IRQ's affinity and also >> build as a module, for one thing. I'm familiar with drivers/perf/ where >> a basic pattern has been widely copied; > > Bah. Why the heck can't people talk and just go and rumage until they > find something which hopefully does what they want... > > The name of that function should have rang all alarm bells... Aside of that all the warnings around the return value are useless cargo cult. Why? The only reason why this function returns an error code is when there is no irq descriptor assigned to the interrupt number, which is well close to impossible in that context. But it does _NOT_ return an error when the actual affinity setting fails... Thanks, tglx