Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp944454pxj; Tue, 18 May 2021 18:10:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRxOUI7nj7Zz6oB3Co4EVZjLLlItLuusQfp5Q+qBM+omG4T++kNYJwqltDpmwr8+ebZ8Vn X-Received: by 2002:a02:8787:: with SMTP id t7mr9269422jai.53.1621386635362; Tue, 18 May 2021 18:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621386635; cv=none; d=google.com; s=arc-20160816; b=am9s7YJTHqn4mzi6yDpFqhdWxMeCGN88Yo501mE1H/fEDpx4IswQfm+BSzNI51AqjO P+3kvYFq4Zcu1SavURWK3Nr00hJTl6QZveXAOUJMGXz5GA45ZxhXXsZNQIFxToE9F3Mx KiJVFZ8yD4RPbYmIRn+VSiM09p3jPKQhDb7v9+zeizv1SEGYxfVTNSqVlTmJr4AqRTfk JshYY49my6/VVb5NXTaP6/GtEeQ6xOixSSj7TVkyw8qF6QAQmlaWl8c8yZoFw9B8PYMD ZY5M2r8d2/8tuPbYkEl8m9ZdR2eEDwRfmBZ1j2oObqyl5rnrGbHVapZ58fHiU7LG2EEA fDiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=skN60WsDYlkAPTvKZB9+ev6vuPrfBxQtw8epm/EBMqc=; b=HU/h2UMmOS3hk5Z8rkAZKlFVDwCsOXstBhXzACHPTf5s1X3TFk9N+wnqQPEawPjbJq T7tkNi4kDjTJqwmHd7HXDmbXY0SJYBSv5BEUVpDGSjZML4JwuRy76zpew9J34WSvWfDj HA8VOOqOvdC90J3dE3qtRYg7zGugWT7HnVgUDc4nsmQrgmZ6Km0HnB/Ef4wU8yF81vP9 nGLNQFD7NqNMrkeb2dVBPdiRp4qiPFMz0PxX+7K/YPdytnEEadYpEutqFuIWkb012ZI6 y5VxC7fMCkVV6OIm538HpxvDjIDzhV01jYsAM7bEtw0VODeZYtzgq5RlCmW8pAQWVQKa YOIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si25191360jat.48.2021.05.18.18.10.23; Tue, 18 May 2021 18:10:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237282AbhEQSwD (ORCPT + 99 others); Mon, 17 May 2021 14:52:03 -0400 Received: from foss.arm.com ([217.140.110.172]:60350 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234049AbhEQSwC (ORCPT ); Mon, 17 May 2021 14:52:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 28FB331B; Mon, 17 May 2021 11:50:45 -0700 (PDT) Received: from [10.57.66.179] (unknown [10.57.66.179]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 60CBF3F73D; Mon, 17 May 2021 11:50:41 -0700 (PDT) Subject: Re: [PATCH tip:irq/core v1] genirq: remove auto-set of the mask when setting the hint To: Thomas Gleixner , 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 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> From: Robin Murphy Message-ID: Date: Mon, 17 May 2021 19:50:35 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <87sg2lz0zz.ffs@nanos.tec.linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; some of the callers in other subsystems appear to *expect* it to set the underlying affinity as well, but whether any of those added within the last 6 years represent a functional dependency rather than just a performance concern I don't know. Robin.