Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp999277pxj; Tue, 18 May 2021 19:23:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnZmG7tbACG6ROhsL8OVo9dRevdiqtLMcPXKClKkdWIJTnk2bTpHHRYtC8+IdH3+HMNBRw X-Received: by 2002:a17:906:144d:: with SMTP id q13mr9821077ejc.458.1621390983798; Tue, 18 May 2021 19:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621390983; cv=none; d=google.com; s=arc-20160816; b=AakAlmGmPWe3JbRbkUSpysv3C4lQMm9bE00fqHzh7mSYnjqa8ippKgCKKORyksTtTn 2Lz7cByFXcQ6TGakAJkaJovpn8WfkqwhyBWS3oheJ0RWKnTRzXrMNb3vs5GhlRD3XkoR T0B51qFpIFHF/6znjgj1OsCqF60NCUGCVyRbO93yZmLeLk8FKHDi6cLj9JNgwf6KjvUB JmcZ6mwdZOw8Sh5JlYqg9w9doBk99MdrVbNQCPpoz5YrN18dVGdg/TR8n3A4kam0g79a nIT20o/BeDQ35xOmz24ugif8INHg8nNk6mw5lpiOIpRencPMjmaPonjKl4fbV6onmh+F EY1g== 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=PpozXE9Eg8reNXM2Sd0imFqDURR7dGqzmLBtJPdjcXE=; b=uJx/7iJW+9agYlTz0nuZWYMEGjJLu7IhGf6hvH9zn5+frY7gKIGHLh2USjNjy9t3Mu JOkqJmCRjl6rk0l+K7dzDEuGU3y316V6rZK2xut+7zxLTsRRUXxwdL0Q4OVPau04T3sg AXQN4WmsP/HRhV4RWaBgSbF2yv1I0nY9kNlSjA4Fi6nBP72zESPrkWx2CSc/juJWQJac psFoewi73TFo5mvA2l39+1gEF+kqVjdCJzd9PwYIZ4EkxCj3uhGQoCkintH6JODSpC9F ma54qrl+yyh3P1vgPA9bKiIzIX4sH6kNPJULbtinipCQdVFzE+mVB1OG348XUiCtVyh5 flkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WT4bXOeo; dkim=neutral (no key) header.i=@linutronix.de; 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 f21si6152961edr.304.2021.05.18.19.22.40; Tue, 18 May 2021 19:23:03 -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=WT4bXOeo; dkim=neutral (no key) header.i=@linutronix.de; 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 S235266AbhEQTsd (ORCPT + 99 others); Mon, 17 May 2021 15:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235119AbhEQTsc (ORCPT ); Mon, 17 May 2021 15:48:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C52D2C061573; Mon, 17 May 2021 12:47:15 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621280833; 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=PpozXE9Eg8reNXM2Sd0imFqDURR7dGqzmLBtJPdjcXE=; b=WT4bXOeoC+ZgH20z5dJSPmzeEJizXclBOtClrdp4waF8XiJ9eYKKO5ZVSjO8HKNDaJbHjJ /GamRxcZTVMMTAms7SqJ+UGZ47Dy8vjlNjJaiycBChJ4rUZBTSYim17/iPesXu5KwJVj4E G/e7XtdXD0HRyELDnIdr0iy/Ncen4MzYCCgHLcJeGusokoXbQnni2QFIz6UwCVcBh9dpCE 3sraYiKeMQERVsEnhLvAEVsQpsw3l9H2O1YT2po81RmZzrFPBVEEGvYaQBrOpONU5S3qB4 ybNFo1I235w7fAAh0/sXOlMH5G6zncY6opF8A5dUrRdayHcgVd0+GmZzbdhyYw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621280833; 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=PpozXE9Eg8reNXM2Sd0imFqDURR7dGqzmLBtJPdjcXE=; b=4GxHSpNZswHYqUYSoeQLyu68tGD1lxN1swfD+vqX8hilV/B9yRXxT8SOH0B7kuSEayiXCI AQwV0hZYJX2NtIDg== To: Nitesh Lal , Robin Murphy Cc: Jesse Brandeburg , "frederic\@kernel.org" , "juri.lelli\@redhat.com" , Marcelo Tosatti , 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: References: <20210501021832.743094-1-jesse.brandeburg@intel.com> <16d8ca67-30c6-bb4b-8946-79de8629156e@arm.com> <20210504092340.00006c61@intel.com> Date: Mon, 17 May 2021 21:47:12 +0200 Message-ID: <87y2cddtxb.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 Nitesh, On Mon, May 17 2021 at 14:21, Nitesh Lal wrote: > On Mon, May 17, 2021 at 1:26 PM Robin Murphy wrote: > > We can use irq_set_affinity() to set the hint mask as well, however, maybe > there is a specific reason behind separating those two in the > first place (maybe not?). Yes, because kernel side settings might overwrite the hint. > But even in this case, we have to either modify the PMU drivers' IRQs > affinity from the userspace or we will have to make changes in the existing > request_irq code path. Adjusting them from user space does not work for various reasons, especially CPU hotplug. > I am not sure about the latter because we already have the required controls > to adjust the device IRQ mask (by using default_smp_affinity or by modifying > them manually). default_smp_affinity does not help at all and there is nothing a module can modify manually. I'll send out a patch series which cleans that up soon. Thanks, tglx