Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10858239imu; Thu, 6 Dec 2018 07:53:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUllXVJOYnHggwgW/XqUmg9eiM+w6Lrmg/Xs3LzLRWRenjKDxMYatVL0WFiToU4McbHDyZ X-Received: by 2002:a62:28c9:: with SMTP id o192mr29620332pfo.57.1544111590578; Thu, 06 Dec 2018 07:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544111590; cv=none; d=google.com; s=arc-20160816; b=gfk2l+wybDkdC0lILBsckDCEHxI246McFopk2j9k+NPH8iDbWgU/9/E/9hv2KOhacl xGzXDgagnZu82IDHBYjPAIZeZ5fnx7pp51guoGeb87u/6ypOAOL4Sdl4csT9AGDmksyo byx/VHZjsOOLcbmt9JOFjdb4GKVHUNd7kRsnE+97oVYCf+sC0OYhgnzeEZIjhPbWwUIy 5dLYNZYYLU9QWo86qNlucqN7rDZJjnPDFjQvoBKJ39JmlrwsAn0R5CQZQ4trrHR83ZHY sCt689EN1cOFOWmURMlrSyYA5e1O1i9+OtRQxGMisUJMTEhtEOxSYbPcVZorFOTg/Vzw SQjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=kWd7Va9evOTxjx6SODBIbfZK52bQlK3IY4faKS53ag0=; b=KGsRwEUQTMpJlbpZQRI52Jtqgxgj93b+x/MgFmpMMjbMy3tGvrOdHnqYIjwmZ4k4Cs jKi/S/oYmi5lZBizLcF15Nt8jj3JPKndZxrw66zEopd+ENmPNF+yo50PggWp1DtLfVpI Eszi4KPhBzSjiwSLVEXqdbnchK7TheDR3fkrSNcUF1o2T7MI87qLnMU0EBFgt307O8jX fau4laesc34h4r3gKBRGcZY/w4Y8F6/yXx80vzYnY3J0MaFxHi7s8/On/qpXfdV+xZIB VPsKMq4Hy4usNuLXG+C6u2hH3mv0jPfBl3Tb5/vjdiCcZtsTRmspBQstl1HCYB24ak/e IOtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si458240pgm.586.2018.12.06.07.52.48; Thu, 06 Dec 2018 07:53:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbeLFPut (ORCPT + 99 others); Thu, 6 Dec 2018 10:50:49 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58839 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbeLFPus (ORCPT ); Thu, 6 Dec 2018 10:50:48 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gUvv6-0003nm-Oa; Thu, 06 Dec 2018 16:50:32 +0100 Message-ID: <1544111431.3709.70.camel@pengutronix.de> Subject: Re: [PATCH] PCI: controller: dwc: Make PCI_IMX6 depend on PCIEPORTBUS From: Lucas Stach To: Robert Hancock , Baruch Siach , Andrey Smirnov Cc: linux-pci@vger.kernel.org, "A.s. Dong" , Richard Zhu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, bhelgaas@google.com, Leonard Crestez , cphealy@gmail.com, Trent Piepho Date: Thu, 06 Dec 2018 16:50:31 +0100 In-Reply-To: <5a3543f2-fe58-221d-694f-0f98a643edfc@sedsystems.ca> References: <20181206074555.19579-1-andrew.smirnov@gmail.com> <87o99zjcsc.fsf@tkos.co.il> <5a3543f2-fe58-221d-694f-0f98a643edfc@sedsystems.ca> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, den 06.12.2018, 09:45 -0600 schrieb Robert Hancock: > On 2018-12-06 2:10 a.m., Baruch Siach wrote: > > Hi Andrey, > > > > Adding Robert Hancock who reported[1] on a PCIe MSI issue with i.MX6. > > > > Andrey Smirnov writes: > > > > > Building a kernel with CONFIG_PCI_IMX6=y, but CONFIG_PCIEPORTBUS=n > > > produces a system where built-in PCIE bridge (16c3:abcd) isn't bound > > > to pcieport driver. This, in turn, results in a PCIE bus that is > > > capable of enumerating attached PCIE device, but lacks functional > > > interrupt support. > > > > Robert, does that fix your issue? > > Unfortunately, no.. in fact the situation on my setup is even worse with > CONFIG_PCIEPORTBUS enabled: Not only does MSI still not function, but > now INTx interrupts are somehow broken as well - no interrupts are > received. The IRQ information shown in /proc/interrupts is correct, but > the count remains stubbornly at 0. That's expected. The port services will use an MSI IRQ when available and due to a design issue with the DWC PCIe it will not forward any legacy IRQs if any MSI is in use. If any of the PCIe devices in your system are unable to work with MSI IRQs, you must boot with "nomsi" on the kernel command line set. Regards, Lucas