Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2095893ybl; Sat, 14 Dec 2019 06:01:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwaZ2DAFREMog4ct6Igutd1ZPqzkCdNgmJKItX5Y027SNeCKQSI4+EKJbKWg8rqxHfvm3kh X-Received: by 2002:a05:6830:87:: with SMTP id a7mr20099255oto.314.1576332114034; Sat, 14 Dec 2019 06:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576332114; cv=none; d=google.com; s=arc-20160816; b=ZgPQc6ixxbFx2SMBnw8JvCPrdJvRa2wqF837b9YcuxtPHGpgQaaAM/DzsRS9tumCIj /Nkjmmc9RAdGftkCi0SmUntM4LPiZYRZ6xUaDnovLqBtS6x5uEjBITuF6+eZZTtHdIok vyKwQv6M7lzAP8aRU3Tm0kQ4Qnf1j5cVJlEJak62dybrf6AlLtnpcFmKE6DcXb6NYovG +rXgTxykDht0ZhI4tNbZ2gBNb0f1skR9lVRJnPbEQvPSm/b5bj30HjiFkvOvEMD/SHUM OoX90Vpjwm+M7KWhdGWAw5ZKRPzITP/Hn+iK1PDhENHlkQP+BgfZDWkwS9gKS6bpusZD mXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=t5l4OMEIhvwb5eMPcw8LvjMiAMHYFJFxMC2ewpjOnUc=; b=SsTFrq4w7SVjZ/MO40ovSTXS9MKnlJH++uVY9P99Zt0tSOYxZb2LGUJOm+Ww0HpgHA xh1onD+VbNiFVzl+gYjgU0OwL+Onshupz0kJclEljyvE1KUPRKwq+/gygURRBual4Xgc LA8fTN4BZly2Vdihw2rV/1SqsNbfJGeX4+/yxzDd0Qm6R4A7bBazG038N8MYUVYRSJiP nQQlZK6APZFYGtS6v5gTEekTuVdkM0M8p+W+/c/81bbYMGR2Pyrj0quJSiEJ1jHFHAjA 4lpgZnctpmCdd+iVg3E71qzBCK3MenLodHx2f2vlZ2+bjXtN9/eGdu6u64MGDgCU+96r SUZw== 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 g10si6689053otn.12.2019.12.14.06.01.01; Sat, 14 Dec 2019 06:01:54 -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 S1726333AbfLNN4x (ORCPT + 99 others); Sat, 14 Dec 2019 08:56:53 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:35432 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbfLNN4x (ORCPT ); Sat, 14 Dec 2019 08:56:53 -0500 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1ig7uU-0006r7-Vw; Sat, 14 Dec 2019 14:56:43 +0100 Date: Sat, 14 Dec 2019 13:56:41 +0000 From: Marc Zyngier To: John Garry Cc: Ming Lei , "tglx@linutronix.de" , "chenxiang (M)" , "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" Subject: Re: [PATCH RFC 1/1] genirq: Make threaded handler use irq affinity for managed interrupt Message-ID: <20191214135641.5a817512@why> 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> <20191210014335.GA25022@ming.t460p> <0ad37515-c22d-6857-65a2-cc28256a8afa@huawei.com> <20191212223805.GA24463@ming.t460p> <20191213131822.GA19876@ming.t460p> Organization: Approximate X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: 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 Fri, 13 Dec 2019 15:43:07 +0000 John Garry wrote: [...] > john@ubuntu:~$ ./dump-io-irq-affinity > kernel version: > Linux ubuntu 5.5.0-rc1-00003-g7adc5d7ec1ca-dirty #1440 SMP PREEMPT Fri Dec 13 14:53:19 GMT 2019 aarch64 aarch64 aarch64 GNU/Linux > PCI name is 04:00.0: nvme0n1 > irq 56, cpu list 75, effective list 5 > irq 60, cpu list 24-28, effective list 10 The NUMA selection code definitely gets in the way. And to be honest, this NUMA thing is only there for the benefit of a terminally broken implementation (Cavium ThunderX), which we should have never supported the first place. Let's rework this and simply use the managed affinity whenever available instead. It may well be that it will break TX1, but I care about it just as much as Cavium/Marvell does... Please give this new patch a shot on your system (my D05 doesn't have any managed devices): https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?h=irq/its-balance-mappings&id=1e987d83b8d880d56c9a2d8a86289631da94e55a Thanks, M. -- Jazz is not dead. It just smells funny...