Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3416345pxx; Mon, 2 Nov 2020 08:18:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRTG6xesaM9LmZnKO2+J5XpF3gv1OIA2LHQSFEVPSqU7wHsJFJ+RDL05xun6HUXti0caD4 X-Received: by 2002:a17:906:14d:: with SMTP id 13mr15794419ejh.516.1604333926214; Mon, 02 Nov 2020 08:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604333926; cv=none; d=google.com; s=arc-20160816; b=NL1puubMwrclcGOMgduZurKXPwVsql65GlUJCb6FFcc/hF2DPF/zHP5Uaq5fn8fav2 VWvg9aAwubuo3JiMcE1hVTD3PWTxg6XyQFSf7cCXIY7gFpSqFDii51ImqqblJaTbmCXU y8QZeuXjdVIx/t0M6IIDpDqL5QAfnwuxBej5zU3JdFl1TQVhfobkjE5QHs0WuuQceQ+C 5K7mSGgmavA9rpYwZI0aOULMqf9msjm/oUOQ3d94W034sS1FjhC19Gx30QBltJn9vcvX AVhfldqb72IXY7zlPkr5Z2rNnSogttR0m0CEf0dW4any5BEoA+O/dA8Zbr3O44b/Od94 /kGg== 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=gXzFcVSwJFFqoLLrujA4jAJHEyHNXRFQIhN+VNXicmY=; b=jsDimU7WRsbs1G0zsHWAGrUe/dd/J9gdEdBIIIYM5Jbwn+mbotZoDYah7MXrFfi1cJ dplZ+VrCLuQYhH5II085TQWrqiYb60Zg4XB6imKpbEI4HTl+LNa2bW3lVl81IJQP60Ve 3DZJLtBGbpIEy+KMhJ3MkjM6rluB1V+cz/n+a6UrXMLav1PQC4QgpMxn+NKiTDjrrhCU TBBxuPcppoNpEkO+6y6e4CdyL3zZCkHQJyiuUBF1Mq0X4vi/md88NxsHXDZux2i2YD9R SPOioRIBQ+J5UJxZjiTPaA7KPdf5R+MMzLPdkiP8IoZGIi157RImdmUQCRMYN6CF6Knq h52w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HgFPoOIB; dkim=neutral (no key) header.i=@linutronix.de header.b=rklClo0H; 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 d7si10880738ejz.330.2020.11.02.08.18.23; Mon, 02 Nov 2020 08:18:46 -0800 (PST) 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=HgFPoOIB; dkim=neutral (no key) header.i=@linutronix.de header.b=rklClo0H; 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 S1726795AbgKBQRD (ORCPT + 99 others); Mon, 2 Nov 2020 11:17:03 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:59864 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgKBQRC (ORCPT ); Mon, 2 Nov 2020 11:17:02 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604333820; 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=gXzFcVSwJFFqoLLrujA4jAJHEyHNXRFQIhN+VNXicmY=; b=HgFPoOIBRNuVPGoUUvmvGsB8VJpKWZHeOHnLdsqKkgkM9BEq3bNVME4kfP61Je/O0ys40b VXtncmqLgwsFFjUKkdPdgyY1pTB31mSudl5mr1cJfKpQauOGCDBHnyiLcEx5qlCRpMSgh3 WMBnlHm4gSrK4uDK5r2lgncrTO+ilUuaZSc4trHGUot/O4R/S32+2d0E4fP2F25T08EgXf 3rCDoHC3rsBnEJyWhDNYfMZ++gvV9suuiYCbHHqgQSvweiGwXkeE898UjRMFsAlEYI/U+U HxszQRUC1f7/L5IuBgr7Fl+nb9t7+oWDXuV24SgnVL1u+nmhRS6NC8gQU2R2Lg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604333820; 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=gXzFcVSwJFFqoLLrujA4jAJHEyHNXRFQIhN+VNXicmY=; b=rklClo0HDFR6EFdKXRKNqGCBmRVN66dhW9Qv73+dH+3iL1s7TLKWhiiS8HQjwiunOfNlnD OzxplicRw7W41uDg== To: Marc Zyngier Cc: Frank Wunderlich , Ryder Lee , linux-mediatek@lists.infradead.org, Frank Wunderlich , linux-kernel@vger.kernel.org, Matthias Brugger , linux-pci@vger.kernel.org, Bjorn Helgaas Subject: Re: Aw: Re: [PATCH] pci: mediatek: fix warning in msi.h In-Reply-To: References: <20201031140330.83768-1-linux@fw-web.de> <878sbm9icl.fsf@nanos.tec.linutronix.de> <87lfflti8q.wl-maz@kernel.org> <1604253261.22363.0.camel@mtkswgap22> <87k0v4u4uq.wl-maz@kernel.org> <87pn4w90hm.fsf@nanos.tec.linutronix.de> Date: Mon, 02 Nov 2020 17:16:59 +0100 Message-ID: <87h7q791j8.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02 2020 at 11:30, Marc Zyngier wrote: > On 2020-11-01 22:27, Thomas Gleixner wrote: > The following patch makes it work for me (GICv3 guest without an ITS)by > checking for the presence of an MSI domain at the point where we > actually > perform this association, and before starting to scan for endpoints. > > I *think* this should work for the MTK thingy, but someone needs to > go and check. > > Thanks, > > M. > > diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c > index 4289030b0fff..bb363eb103a2 100644 > --- a/drivers/pci/probe.c > +++ b/drivers/pci/probe.c > @@ -871,6 +871,8 @@ static void pci_set_bus_msi_domain(struct pci_bus > *bus) > d = pci_host_bridge_msi_domain(b); > > dev_set_msi_domain(&bus->dev, d); > + if (!d) > + bus->bus_flags |= PCI_BUS_FLAGS_NO_MSI; Hrm, that might break legacy setups (no irqdomain support). I'd rather prefer to explicitly tell the pci core at host registration time. Bjorn? Thanks, tglx