Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp392289pxb; Tue, 3 Nov 2020 02:19:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxI/GiDS3XrVkZM/fwIAOmbPnD9cwVo3X+tuZwWzww/bvW13VidBPfw1nEAZIgZuGGdtcsC X-Received: by 2002:a17:906:4104:: with SMTP id j4mr124532ejk.439.1604398753934; Tue, 03 Nov 2020 02:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604398753; cv=none; d=google.com; s=arc-20160816; b=jVHGcM+g6ua9VWNNrjVSrHvsIUQxDaxuPmbsK1GXTNZ0tne2uT5JKHQSagj67ey/mH SXdgdhs4CSfGTerNI++mM2YKzXSMQQDY7fa1AAmuXXnpKVdGh9f+wv35dc+V1NyQGNWJ iNuLJldOroWw1UBwgTwfbBqtCzmNYGpQnThdjk1Kkn8aZa09ueeiMZ4MmJSP6a6ZhCXe qPDQFSbaDY9Eqa3LGMFEFj8q89zGnMUzfTHqc830rZg5IGkWOMWVS11k/3zvT4aG9Yi1 x7NpOu2G7rN/8U9sFc6SX+SYZNOe49Np/Au2GJJ+6UQkV5eJxl7rOh6Vv+Wpm7Ncc0xa cXow== 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=Gpvq/2A1yvnMwjL+wAA74Kn6/JPuAETBiuqTCH14fqo=; b=DR+ML4RVHZ+seqM5ihg3tZTN8kQ4BoJAJvJLQ/g4nj3ebx62H1Z+fUnlr9VfFH47Wi DVRL4/Zd9WfSevy5tWn1CamXvgzUq1JLI5xPKtiQxXrWSnS/U3JLdE2K22OqXCfp34xP OPWmP0PdORD8stRc11r9JBQIjRdkwp+g1rCvX24vijjTLOw0A04flP9cuwBzFhbVLzOe AeIGLBtybuiDLIetAhxO10maLITiV7jaqtkNn/YQV5lvuoNsq08vnFsnbARfMeUkLHUC 9TJUhu4LcvMGypzhRbAasi4OwrIbwwrXGaNjg33vApI/Oa/oq0BTIyuxCZZwbJ4a+aYf zmBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=A8zpMpCf; 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 i6si8819890ejo.223.2020.11.03.02.18.49; Tue, 03 Nov 2020 02:19:13 -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=A8zpMpCf; 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 S1728095AbgKCKQ6 (ORCPT + 99 others); Tue, 3 Nov 2020 05:16:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbgKCKQ6 (ORCPT ); Tue, 3 Nov 2020 05:16:58 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2649FC0613D1; Tue, 3 Nov 2020 02:16:58 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604398616; 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=Gpvq/2A1yvnMwjL+wAA74Kn6/JPuAETBiuqTCH14fqo=; b=A8zpMpCfPTvAWGaiNtuCYgrtlN4XtGIUidHXWXDyiPmNCzHYxjgvQglp4o4zdPYBXLQD/q fDMGjdPh6sDM/Bjgb9UqJCNfBghh5+YCBn2vZd4Bbh80UPc7v6lvhO8dR3zWBMI8hajT7o nuZsG3Y1n/EOhFP2NHHdziAFtESpY8h6q7xr/uDi/+8FNujB7BFMj0OGlzSeUdvu5UQQz+ qEl3FQ5oiMU8rGJA4NN7Ns+CKcE4wM7KlI40VQ7LJ0VBqBK5VzJdCqPvQpRsTKgPR0whVV DObuN4wzHHNFH2tCVxfAh+KNZI1Vhd5oWiAJu2R75cUUn+kq0StjH4rSqNXXTw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604398616; 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=Gpvq/2A1yvnMwjL+wAA74Kn6/JPuAETBiuqTCH14fqo=; b=3xR/dsrIRDTurROfujbz4Q4AchrZlTwRSm9Jtw/CEB2g10wK0qvFQby2/nH7G3i8nhxDLS 1FNL9iat9504AGAQ== 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: <901c5eb8bbaa3fe53ddc8f65917e48ef@kernel.org> 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> <87h7q791j8.fsf@nanos.tec.linutronix.de> <877dr38kt8.fsf@nanos.tec.linutronix.de> <901c5eb8bbaa3fe53ddc8f65917e48ef@kernel.org> Date: Tue, 03 Nov 2020 11:16:56 +0100 Message-ID: <87o8ke7njb.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 Tue, Nov 03 2020 at 09:54, Marc Zyngier wrote: > On 2020-11-02 22:18, Thomas Gleixner wrote: >> On Mon, Nov 02 2020 at 17:16, Thomas Gleixner wrote: >>> On Mon, Nov 02 2020 at 11:30, Marc Zyngier wrote: >>>> --- 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. >> >> s/might break/ breaks / Just validated :) > > For my own edification, can you point me to the failing case? Any architecture which selects PCI_MSI_ARCH_FALLBACKS and does not have irqdomain support runs into: if (!d) bus->bus_flags |= PCI_BUS_FLAGS_NO_MSI; which in turn makes pci_msi_supported() return 0 and consequently makes pci_enable_msi[x]() fail. Thanks, tglx