Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp71537pxb; Mon, 2 Nov 2020 14:22:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyElEvOmD/TAjp64CcN3q+nwq8IBjxLpysguUa+DrKebjodBT523pgWKIsLYlBNxOO62GfT X-Received: by 2002:aa7:da13:: with SMTP id r19mr18680996eds.20.1604355730347; Mon, 02 Nov 2020 14:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604355730; cv=none; d=google.com; s=arc-20160816; b=A22n6Liy5Zksz2QKB8z/UV4sqHANRjVfTrud5YAIuAqTXbTfY4c18CnPjRBwo02tWx OWJRwjQCgFpOwmVhMzkLYtiQXekesXJZ70TQ4OVhELVQfk592xAP39l/+W4HQasUCeFT jGXKfpXnqm6olnynGZuid/jlPIEk1DtvIg/LQJ4CzYq3tw04azH7V6eheEf/yqes9ndw rifcaSOpUcodLJiPMRDxQRb7GgKHjTMhjjIKdtePTbSzjxH1Et+0ixx/fRZLhI9wXXiQ Wx2w1y2jUpU8gEHDOtBIKLOqYbtqIzzYcg1XbSTcrqVg7ltkErKCqOo8W2sK0lW1DhMF cT3A== 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=xly7vSYeoMILwUk4ixZP3866bXaRUpNDJSG+wlkAlI4=; b=Fmu5M5P4+rxrAdFaBTmq5pA+24iQvnOJjfvbN9quYp1ua0amfErCuiFYDNmyzbuf+X U3ESOcBSuwiq8uCzHU1EqHM+9pl3JiCPBp4s8VDnYeC7z6+wfjbvSEEY6JItbl65uVsa ELtJ5zSe8/9sUzLt9cae7ln7eW/H0Vlz5FfVs4EwgamED1h4e86d7K0Vp3OPAINSPrv8 Eq7kTRCDcoBv6priFvT5VDi6UBF8fYEJzvqDX+gjbK1VI0qmj/w3uaE+z/oRVAYZIGLC uHbArwZSudqQAKKnt6waudMeNxlw2hdFT6F2qNhFfYphIlX2yr5CpUna9k60U9xsyjtS tWyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=upMMtjCR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 d1si10698530ejj.113.2020.11.02.14.21.47; Mon, 02 Nov 2020 14:22:10 -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=upMMtjCR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S1725833AbgKBWSO (ORCPT + 99 others); Mon, 2 Nov 2020 17:18:14 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:33414 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgKBWSO (ORCPT ); Mon, 2 Nov 2020 17:18:14 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604355492; 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=xly7vSYeoMILwUk4ixZP3866bXaRUpNDJSG+wlkAlI4=; b=upMMtjCRIY89jZxoAMxdlNQ8hF396TY4CzHCkaAW2YJLGseQcXaMCYgQnlf9Y9dabEEvTa HaaXeP/uIGaehfLlzQQXUepZBi7g0G59/azJClsTIVrPN0re6XxPtgT1D88Eor2aQUHTcu xGFlYCA25mmOMLdCnNkYODrWF5MeyGP8VVrhzb61CeiC8R4GhaUjqxKyOf2ihTaWVBQXXh 47gZiQJJjg6mt7lMRdpy/CdzNgyPDchdmx1IGh83e71eOSHF7d0eoimsUrUINCuxFeCWIr 1mTb1rI5ynIUcUb0q9fcYaZ2dTk6V563FC1Bm/kaYWfKMUNFWYnePdEgv0liCw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604355492; 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=xly7vSYeoMILwUk4ixZP3866bXaRUpNDJSG+wlkAlI4=; b=ffZZj7RAS4e4aSGVv1b2vhc8FpsNZ5T2k3MsoDK0BW4lJjfebln1MNZswIQeqtQjQnEmfg KIV78M90DBA+msBw== 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: <87h7q791j8.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> Date: Mon, 02 Nov 2020 23:18:11 +0100 Message-ID: <877dr38kt8.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 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 :) 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. 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. Thanks, tglx