Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1884832pxb; Mon, 20 Sep 2021 07:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6NKHwaWdKtN31IyxBgf84K1N9AvStouS/jV+0F4wckpL42i1DaKD/quNWob2XcafGLOol X-Received: by 2002:a05:6602:2151:: with SMTP id y17mr3092206ioy.197.1632148207986; Mon, 20 Sep 2021 07:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632148207; cv=none; d=google.com; s=arc-20160816; b=yarfj1WU48EUdEVD6ypJYLt8cNZnnREihv+67jc1nfA5omVJnu5zKDwjMH1Z4pPLur Keeh6bnFTizWX4JHwKBe6fPoj9qjn4751v5k6uITqheaHLEtp+YcOvDZtiyK19qrsoHH 0o8Ly2jmOk90ekzGzJapAQ/XQMJ7dToiNQ3fXKCpeG/H6MeAm8V/GaaHt5HdDRT+Zn6N iPwjqsR6/ngQBzWHqLVgNPrP9jpJXFSzlUnqlThP2CeM/TzY4YA9Hwr36jkOi7Pp5VpQ OMQMkhlNJVu3x8ICDPQMSIDHBqD0JLCFWJW+NjpeXXFSUjqgSMGKE/GVDA5mo9i957J8 CkaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=hYgwOcVE3kirbuLbojsuZViIyXgaqTuEPbKTh+JK9Ro=; b=Dv2C3Kkvu2BQ1+V/NyajvUuNXRt2k9kdBft819yhzthZRwsitb76JZV58THYksn3vi /QeTESJtePyqUOakRYDbZ7PHJbAFAcWR/S1dDiY9jlbYEBwIYZg1yjtkt26+sZk0O6Hu VPhlO9/4uCzAhMCZsSvmo+PHhN4E+TA5Ln4QTjRbKHRoaGrjxMLkatfjTZ0sUYK/LgSO QTSR841yFdgJQ8BW57UzlyMcwtrUbGX0X1V3DhyT/HihQGMnDqVoyeFRhTNmqPBD2ZKJ e4sirYl4DKk7o4Wh6mg4EdtB9j0Qv8sgqaA7qfNfD+DLk6kafQ39GicdmPUhTlrt6HTp nVdw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c184si14036289iof.111.2021.09.20.07.29.54; Mon, 20 Sep 2021 07:30:07 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbhITLha (ORCPT + 99 others); Mon, 20 Sep 2021 07:37:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:52564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbhITLh3 (ORCPT ); Mon, 20 Sep 2021 07:37:29 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2689E60F93; Mon, 20 Sep 2021 11:36:03 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mSHab-00BkQY-8l; Mon, 20 Sep 2021 12:36:01 +0100 Date: Mon, 20 Sep 2021 12:36:00 +0100 Message-ID: <87v92vv5r3.wl-maz@kernel.org> From: Marc Zyngier To: Kishon Vijay Abraham I Cc: Thomas Gleixner , Bjorn Helgaas , , , Lorenzo Pieralisi , Subject: Re: [PATCH 0/3] PCI/gic-v3-its: Add support for same ITS device ID for multiple PCIe devices In-Reply-To: <96caa71f-2632-6eb7-e211-1c2f43a3be16@ti.com> References: <20210920064133.14115-1-kishon@ti.com> <871r5jwqw3.wl-maz@kernel.org> <96caa71f-2632-6eb7-e211-1c2f43a3be16@ti.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kishon@ti.com, tglx@linutronix.de, bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com, lokeshvutla@ti.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Sep 2021 12:22:48 +0100, Kishon Vijay Abraham I wrote: > > Hi Marc, > > On 20/09/21 2:44 pm, Marc Zyngier wrote: > > On Mon, 20 Sep 2021 07:41:30 +0100, > > Kishon Vijay Abraham I wrote: > >> > >> AM64 has an issue in that it doesn't trigger interrupt if the address > >> in the *pre_its_window* is not aligned to 8-bytes (this is due to an > >> invalid bridge configuration in HW). > >> > >> This means there will not be interrupts for devices with PCIe > >> requestor ID 0x1, 0x3, 0x5..., as the address in the pre-ITS window > >> would be 4 (1 << 2), 12 (3 << 2), 20 (5 << 2) respectively which are > >> not aligned to 8-bytes. > >> > >> The DT binding has specified "msi-map-mask" using which multiple PCIe > >> devices could be made to use the same ITS device ID. > >> > >> Add support in irq-gic-v3-its-pci-msi.c for such cases where multiple > >> PCIe devices are using the same ITS device ID. > >> > >> Kishon Vijay Abraham I (3): > >> PCI: Add support in pci_walk_bus() to invoke callback matching RID > >> PCI: Export find_pci_root_bus() > >> irqchip/gic-v3-its: Include "msi-map-mask" for calculating nvecs > >> > >> drivers/irqchip/irq-gic-v3-its-pci-msi.c | 21 ++++++++++++++++++++- > >> drivers/pci/bus.c | 13 +++++++++---- > >> drivers/pci/host-bridge.c | 3 ++- > >> include/linux/pci.h | 8 ++++++-- > >> 4 files changed, 37 insertions(+), 8 deletions(-) > > > > What I don't see in this series is how you address the other part of > > the problem, which is your reuse of the Socionext hack. Please post a > > complete series addressing all the issues for this HW. > > No additional patches are pending. Socionext configuration is used as is > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/ti/k3-am64-main.dtsi#n72 Hmmm. You are pretty lucky that the Socionext machine is also using a GIC-500, and that your pre-ITS widget falls into the low 4GB... > FWIW the issue that I address in this series is not observed with > standalone USB cards or NVMe cards. The issue was observed when I > tried with a multi-function PCIe card. That's indeed what I understood of the bug. M. -- Without deviation from the norm, progress is not possible.