Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp379987pxb; Tue, 3 Nov 2020 01:56:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa9ZfHlbhwbMvxRP5wS+OURxNHlxVkdXYSNNuEYQNEKXRfQuOMg3/+sEiSbJJ1Sw1OWhBG X-Received: by 2002:a17:906:280a:: with SMTP id r10mr19136898ejc.45.1604397387721; Tue, 03 Nov 2020 01:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604397387; cv=none; d=google.com; s=arc-20160816; b=tKVA09QLWAolWQiNvkB+IYzRCLsy66GDwBGiH/Au6Jgf2WCebJF/6v94hyCzPvQ+hp nNVj3KaGmeg3XspS+fi1IjAVYztIdXLf/SOnMoFsb+NcBeBDJU0+5Q3t/i+YSBQ9i1zC eg7RwDx0FHfqPlmvoA5Zuy8g6Zo/tqfcv24RtNfUSf7Tk6cc4HbSoBXZKoZYjZc2v0ss GNjC58SJqvfx3bxos+UCo9TRisb/eGVBdrJpTr8kNwz33kgY3mukYgKqs4QaQDyCZPx5 YUTaVzqsegV7VOFwLUCzs5S/3RfCusRpdwZo3ZS/TjDclWLt9a4GZe9gqDIg4MpGfJ2H Yujg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=bpq0wZObspMZtacQYhpIWn/EKw5rKj0eLgd/vECk3aQ=; b=yBuoXpL/DreX1XXeyOI+J8zVhNUgxXZMsvORityO4/IkbQ7DLaspf1sDvCwK0L1qii YmNMwr8IIRKQB1YaCfUjkqIibWZyuehsEym1yTJZZFpAWhyv4fjh93lpxfFc5jRR+gIj jy1VwRSVx+laNPNblmP1ID0Xcm7xE/Y6IPdT/Vb2hwe64cgnxjkVm5rR1MsFaga7lmgY GMJBLtiKnom4hn9mYv39zISgv6EQ2Gv/8d7SxDjIAqk4WDqLbzaSzMj8uPtUQOJj0kGI nYFVfHzYisCmmp30VfQXWDf0zHbQlnVRQQ0HTpIvO3cGH4QUE5/iiBqZGCzQH3p2YhEG DwhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y5r7zekS; 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 62si4844077edc.231.2020.11.03.01.56.05; Tue, 03 Nov 2020 01:56:27 -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=@kernel.org header.s=default header.b=y5r7zekS; 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 S1727165AbgKCJy1 (ORCPT + 99 others); Tue, 3 Nov 2020 04:54:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:55002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgKCJy0 (ORCPT ); Tue, 3 Nov 2020 04:54:26 -0500 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 F1C3F2080C; Tue, 3 Nov 2020 09:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604397266; bh=+PMSBSh/qsbOxi/PGx0X2fcaxpuGi6w2e85VksrgH70=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=y5r7zekSZXihQG1+urqGj/cKRCuJEMUjeTlyba1YH27f4KbxZMsInaR1VZArSennh s4+p3GyqFuCLDhCcYBUVK2Pn3at2pBqcf0ReYAzF8BMA/iqfIxvh6o4eA7yti2DJMy AbyzLu2L9ZI0/yRbD45cLVXezL+6tqzn34eSfSrw= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kZt1D-0075JQ-RE; Tue, 03 Nov 2020 09:54:23 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 03 Nov 2020 09:54:23 +0000 From: Marc Zyngier To: Thomas Gleixner 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: <877dr38kt8.fsf@nanos.tec.linutronix.de> 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> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <901c5eb8bbaa3fe53ddc8f65917e48ef@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: tglx@linutronix.de, frank-w@public-files.de, ryder.lee@mediatek.com, linux-mediatek@lists.infradead.org, linux@fw-web.de, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, linux-pci@vger.kernel.org, bhelgaas@google.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 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? > So we really need some other solution and removing the warning is not > an > option. If MSI is enabled then we want to get a warning when a PCI > device has no MSI domain associated. Explicitly expressing the PCIE > brigde misfeature of not supporting MSI is way better than silently > returning an error code which is swallowed anyway. I don't disagree here, though the PCI_MSI_ARCH_FALLBACKS mechanism makes it more difficult to establish. > Whatever the preferred way is via flags at host probe time or flagging > it post probe I don't care much as long as it is consistent. Host probe time is going to require some changes in the core PCI api, as everything that checks for a MSI domain is based on the pci_bus structure, which is only allocated much later. I'll have a think. M. -- Jazz is not dead. It just smells funny...