Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2729809pxx; Sun, 1 Nov 2020 08:01:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJypg9RU2wvOqc/7fN/I3WqeJ9H9BbpL/pGKVmZH5Izq5286tGcBKSVsbR2Yph0YDutbfkOw X-Received: by 2002:a17:906:12c1:: with SMTP id l1mr11146823ejb.528.1604246472961; Sun, 01 Nov 2020 08:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604246472; cv=none; d=google.com; s=arc-20160816; b=Hq4xMZfh8PgmFTp78bBpnsOI8ksDx0mbsj359UoV9tyrpLSiWoONg7l5ip/blC9273 3D1EmA5qncESDENunzaCHUq4swSds0xBljz10pAZTr2Ef5sNzDiss5rEhBWr9s4CvygO 42UNFScYCKw2dPWlCXfPH5wnR5tv/iGROKNkHLqjIQhGD6rfdjJFkPOkQ4u5tczzvCv9 3qJMZATD7fXNchEX13SIFeXfVLYgydJtwAUCEy/NJOz5A+oJRNpL90YLD8dmLub2NxQa JlTvAsAlsfpQxujEcuVBtWUxEzqPqbUjqs4Nj5Gksp/Zq9sL/Sm5VcVh9Ft/0P541cHU CXrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=qb6DRVxYaxT7D4MmCdO0NYQmm6IC0TrMSMy8foIKKz0=; b=jmnCW995LYdqlThN94lQXfLrPL1lqtG3ZixUC/tcuR4cb7gVNYwbHuSmRgs1z6WYLb woaDH3Eujv7HlLobQv3uXOwz3o5AFu8Vnwf7+PBVE7ED//ZkjeSjRovO/10rkdFpmx7d rL3G9PyEAAJYHTYThJnsssiPoofLMT/Okk4XmMhPG7d1SZgfIjqY/Pf1lgjIh66xH13k 6a1736n4ukpwwKP/5EsQInAu8OZDJUcc+AJv65AD0CaX1TyQcojVg68esCaJ7MMOB7jE MDmm82GDRQ6ZZjVOYkVOLSXySWdtU/3GEjpOCBsCJOZhqrgI2ulx6WR6DvwunCkc4SXt ZmMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Uc2TWbp6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si10148324edf.113.2020.11.01.08.00.50; Sun, 01 Nov 2020 08:01:12 -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=@gmx.net header.s=badeba3b8450 header.b=Uc2TWbp6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbgKAP7A (ORCPT + 99 others); Sun, 1 Nov 2020 10:59:00 -0500 Received: from mout.gmx.net ([212.227.17.22]:46897 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbgKAP7A (ORCPT ); Sun, 1 Nov 2020 10:59:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604246306; bh=qb6DRVxYaxT7D4MmCdO0NYQmm6IC0TrMSMy8foIKKz0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Uc2TWbp6pOWSJGk3I47l6u4tZf8IVzf6v74UF3D3SpaLZ+bkcUPdCtcESIFs5bcB2 CKTR6loty4pdA16Wb2uAhDEXisqK4tHsP2Px/oNB2qQToH/Z9oKf478YGzznJPvjkQ OvXeHCikZw2P2Btm7BElVTtJxSkHTtncCeqRrtxg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.144.204] ([217.61.144.204]) by web-mail.gmx.net (3c-app-gmx-bap08.server.lan [172.19.172.78]) (via HTTP); Sun, 1 Nov 2020 16:58:26 +0100 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Marc Zyngier Cc: linux-mediatek@lists.infradead.org, Thomas Gleixner , Frank Wunderlich , linux-kernel@vger.kernel.org, Ryder Lee , Matthias Brugger , linux-pci@vger.kernel.org, Bjorn Helgaas , chuanjia.liu@mediatek.com Subject: Aw: Re: [PATCH] pci: mediatek: fix warning in msi.h Content-Type: text/plain; charset=UTF-8 Date: Sun, 1 Nov 2020 16:58:26 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87lfflti8q.wl-maz@kernel.org> References: <20201031140330.83768-1-linux@fw-web.de> <878sbm9icl.fsf@nanos.tec.linutronix.de> <87lfflti8q.wl-maz@kernel.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:fbRV6bMiFGC9Eh/64YsgpkDbiklowxEALlWU9GGzW2SwZpZ8kneSa0Kl2hTJSv1SAQvXa FR4pnUQiPjlnGGbQB1tbYrWkap2Cqje5PN0OmAPG4gjW3odE8PlRx85wGk1QLpPCSu/j/7+3AbLG 4hRfQgicKbwHEheG+Bu6lnrCjVbqc6RwfJBVY3PutnyOtdobHcbzQsPBggrZUoCF7oiEOZUbsAsR 6Yp16ARMbyWVrQNoE63B+n494PzUhCHnLJ34R3tm77xDb1M5avjXApZvPwvnNfnUg9JPfOPc1Zkw +U= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wywrOI65TLA=:OFTVISoufMGo1LNb6XlInw ErkrM60zMQQXwQcdNqWqUQJp1Z3DgDZHs1AtV6g7Gv91akpmHUNJuib3RqOF4lMV4RYD81uY6 yYL0Q854EqDT4z74JFxbDkx7/X6MWAuUNfsoPqFUGPRoc2DmV8uj5mmKCKD/vw+fev2tBHvKP 8aOf9Y04uLTn23Az4RP112HtpqAtyRm74ViZd2w4fFYJ9EGT4ex4fqxuEcZxE32G5RtWYTPwX N71M4CgP47D/+ChshFjAuT/b67b02TzzK1tOdF0WyeIXBmQ+6MuX1u0WzpIKm2wDyFTLsUtER dofNY613JQ23d/Jp4LBN4T1/2O++whlbnrR+18V7EI/uZUWj83TVkyrx3fmd8kjR6AMAwhTWJ RuRjjAEJXhIXzf6VJSeQGzht1OLsbfv9XYcIADMHU6d2mvwJb1YuN7e3KlGOyMy3LBdCK5URs P9NVNhBRzBfMNoZoFMu+OnubyHNeZOmqoPsDiy3NFc60lVJraa5InIiYATj7r0Fe2/gPzWfvi WUq0QvVLv7xZG0WEUktvidhJogX5ozxv0axHo9lo5Dnv2wXU0NHwr7gWfL8PiI7+VgGniYi4n 3hR3Tm4Zm2ukM= Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Gesendet: Sonntag, 01. November 2020 um 12:43 Uhr > Von: "Marc Zyngier" > On Sun, 01 Nov 2020 09:25:04 +0000, > Frank Wunderlich wrote: > > It looks like for mt7623 there is no msi domain setup (done via > > mtk_pcie_setup_irq callback + mtk_pcie_init_irq_domain) in mtk pcie > > driver. > > Does this mean that this SoC never handled MSIs the first place? Which > would explain the warning, as there is no MSI domain registered for > the device, and we end-up falling back to arch_setup_msi_irqs(). i tried 5.10-rc1 (without my patch of course) on bananapi-r64 to check if = driver on mt7622 works better (this does setup a msi-domain in pcie-driver)....an= d i got no warning. so mt7623 needs to create an msi-domain or handle it in the correct way e.= g. by returning -ENOSPC like in your code. > If this system truly is unable to handle MSIs, one potential > workaround would be to register a PCI-MSI domain that would always > fail its allocation with -ENOSPC. It is really ugly, but would keep > the horror localised. See the patchlet below, which I can't test. > > If this situation is more common than we expect, we may need something > in core code instead. thanks for your code-example, here we need a response from MTK (CC'd Chuan= jia Liu) regards Frank