Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4239286ybl; Mon, 9 Dec 2019 07:38:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzDCatcM1WBb+OzT+nPCntEyVOlkopbiAd30ffL07LhnXSox/M0D0dVVnijLSv4dWT0PMhP X-Received: by 2002:a9d:6f11:: with SMTP id n17mr21243225otq.126.1575905913603; Mon, 09 Dec 2019 07:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575905913; cv=none; d=google.com; s=arc-20160816; b=BBsqrh8I/hemwdsCd/Oi6E7EKlfhu4nS30OytMa3BMoNUL3Goy+wMuVkyBvxcBzgjW 19cvgr4ybSHM1hs3AjhpD5N82qGxerp1xWOgFb3RfvpIPs9Rlwcy7S25ubYYvPQE9rVK bjWtQsuQ1EKW4ypXMsw3MXUThSgteWkrduG/FxrFsR/ihCkstVpfyioBksqThtFy4Gak 6U4dOhZvTtt8mTqwtdsTZ8qCeLeliTL8lLgxGfB8cG4DRWkUuQnO41UKlzg7lEUrfwlm OqqgDDIMlKfaGKsGCPfl++MbaJHWUSMrXsN+l3kfiLSTxxkQ9xwdiothzAr4vyV9TvcO CVbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=3qzfE0Im9TEW2pZ79rTxBFmTHcvay+PaKcbGuNAH4Vo=; b=uH2EjVxyQZEu7j80TjKoziZ4db5XtPc9Q3F7DSNRJFqS0J/9MmNXkZBA+JZJ51iydS Kl3bgKeQhlEWyywuqwp6UMSQsSOEaLMYbad4V+Vui4nG03zoixLXayMKH2orP/qDdksy ybNZr+A96PQ2pDd+eKviqn/MDNK7KYSBeSI+ejF/LKg5mvV6G11vnnYiYa5EsrL1XU6u lXKTMwR521EwOHaT1OGrNpFvTeXBtHWH9esD39Z8tG2PawMQKkHudyv++3nHAag4A7kB u+jkpKmy0QDDx4JPQjjTcueBfGCaPzBTEwUssp/Fp5ptnJsPUjooXEhlr48kX1Q86eol 2/Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si6110984otf.14.2019.12.09.07.38.22; Mon, 09 Dec 2019 07:38:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726584AbfLIPgl (ORCPT + 99 others); Mon, 9 Dec 2019 10:36:41 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:36144 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfLIPgl (ORCPT ); Mon, 9 Dec 2019 10:36:41 -0500 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1ieL5J-0002fY-Gf; Mon, 09 Dec 2019 16:36:29 +0100 To: Hannes Reinecke Subject: Re: [PATCH RFC 1/1] genirq: Make threaded handler use irq affinity for managed interrupt X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 09 Dec 2019 15:36:29 +0000 From: Marc Zyngier Cc: John Garry , Ming Lei , , , , , , , , , , In-Reply-To: References: <1575642904-58295-1-git-send-email-john.garry@huawei.com> <1575642904-58295-2-git-send-email-john.garry@huawei.com> <20191207080335.GA6077@ming.t460p> <78a10958-fdc9-0576-0c39-6079b9749d39@huawei.com> <305198e5-f76f-ded4-946b-9cfade18f08c@suse.de> Message-ID: <017fd81e113181218b0fe75db737df98@www.loen.fr> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: hare@suse.de, john.garry@huawei.com, ming.lei@redhat.com, tglx@linutronix.de, chenxiang66@hisilicon.com, bigeasy@linutronix.de, linux-kernel@vger.kernel.org, hare@suse.com, hch@lst.de, axboe@kernel.dk, bvanassche@acm.org, peterz@infradead.org, mingo@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-12-09 15:25, Hannes Reinecke wrote: > On 12/9/19 4:17 PM, Marc Zyngier wrote: >> On 2019-12-09 15:09, Hannes Reinecke wrote: >> [slight digression] >> >>> My idea here is slightly different: can't we leverage SMT? >>> Most modern CPUs do SMT (I guess even ARM does it nowadays) >>> (Yes, I know about spectre and things. We're talking performance >>> here :-) >> I only know two of those: Cavium TX2 and ARM Neoverse-E1. >> ARM SMT CPUs are the absolute minority (and I can't say I'm >> displeased). > > Ach, too bad. > > Still a nice idea, putting SMT finally to some use ... But isn't your SMT idea just a special case of providing an affinity for the thread (and in this case relative to the affinity of the hard IRQ)? You could apply the same principle to target any CPU affinity, and maybe provide hints for the placement if you're really keen (same L3, for example). M. -- Jazz is not dead. It just smells funny...