Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3044464pxp; Tue, 22 Mar 2022 10:53:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/fNFcP9n5oc+54Q4tgOnVHhvDJdNKMiHf9doPQ2YrBLMHwVKOlkFEj/BE4JfYaV4Gyfzg X-Received: by 2002:a63:dc53:0:b0:381:7f41:3a2d with SMTP id f19-20020a63dc53000000b003817f413a2dmr22944000pgj.126.1647971634552; Tue, 22 Mar 2022 10:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647971634; cv=none; d=google.com; s=arc-20160816; b=go4vXmUebuQYVDiXntBW7/bNWnDb8YC/Y+Klb8zUYeSiLR0WzmD4NnfbyjbmuHPLYL YeZ9ziFz/qU3WBFSr+INR+yOKaBRlVW8uMH7Zqovc5K6dVExhvlHlrm8IgJ0A5VYKMnN nqyBn1YKjBMGGGl5y0ZJVp7gZon6xbk1jeXl0d4dKWtX/nJq1WaPHZykpJ70Ne+84vza y1ucb9DxrWOiDUjmNhSVeXLZFqSxNxoW7rfzWEotMv4ZEGdwI3K8K3/lMhTr8J/8IXIh 4qMNcqH/xbHv1KtlXQKUaQyMD7x2CG+pMb/K8Ze7cCuSZSEmiAJD3KmW6gVJD6XjFIjj zY7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=3PkJtEZxu23KsyHSHzFIG8xNG5DxOdo8jO7rTNbeK8Y=; b=rkzRHmpAIAHdyra8pDXUzvu+IAMzYWv+pclTLbvI+G4BvXft2IdkRuLKjmjtseEzvF mEflr640kATo/RTAAWnbBwkWuVkrb+Z0MdCM2doFWlGCQgalwtgiQbHSeMCmkE/qRaS1 zBXWZEaTSWConGu5qoFeYnoo8+mkgROIJOPWvBwUSc2Lsf0LgQwFXLYi0EcLvPMR68vX EJ0JnaWSQWg1o/MvknJc19XzBAUKltc/0ggl+vONkMBD4cCzFbqAA2HoyYVVj0uIx9hi EJSk5uUN2NewX1I+SpU4wOInu96pCxl/QOIkCCSFm2nDRg/SEHsa4ANU+M/qOmbkmOoB yPBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fp+8gdct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a170902b19500b00153b2d16667si4000303plr.623.2022.03.22.10.53.40; Tue, 22 Mar 2022 10:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fp+8gdct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238663AbiCVPmy (ORCPT + 99 others); Tue, 22 Mar 2022 11:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238753AbiCVPmw (ORCPT ); Tue, 22 Mar 2022 11:42:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C67C8BF70; Tue, 22 Mar 2022 08:41:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8FFEEB81BC2; Tue, 22 Mar 2022 15:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC0A0C340F0; Tue, 22 Mar 2022 15:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647963680; bh=9lulS55rYge/f8W4ZmQhmOklPUPvVcTI/5fpSeo3QfU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fp+8gdct1DJvbNMsy39hAXeyD9lXCvxA3iEOwKO572M19fRn3QP/St5RrWWK3KP3Y CQ1DaQ5x0zUaMxrDl1AWLIwhkeEVGQFIFxyziNBLYOPJgh9RvO6lKQokoKekCuRGvz QF5d8J18mW7aXCw8HNLiwIk0eZVWM9nJicBrEp5nA5q0BuB+X1karYG8oOnzmB8gMe Yg/C7+6Z0cuIahWHjk13kYBhPWeJx3fYqs9zaMzQoXTVDx2QDgxpUeweJJwbgl4dQu O5T+mHXlvgy6EyVxp2LIiXQenuYedgXeiKgVHH6oNgJEpTxIVblHKXxNy3YgdUMpNz FTfk7k8NLj7Sg== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nWgdH-00GJ9a-PK; Tue, 22 Mar 2022 15:41:16 +0000 Date: Tue, 22 Mar 2022 15:41:15 +0000 Message-ID: <87bkxyxaec.wl-maz@kernel.org> From: Marc Zyngier To: Rob Herring Cc: Robin Murphy , dann frazier , "linux-kernel@vger.kernel.org" , linux-arm-kernel , PCI , Toan Le , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Bjorn Helgaas , =?UTF-8?B?U3TDqXBo?= =?UTF-8?B?YW5l?= Graber , Android Kernel Team Subject: Re: [PATCH v2 0/2] PCI: xgene: Restore working PCIe functionnality In-Reply-To: References: <20220321104843.949645-1-maz@kernel.org> <87h77rxnyl.wl-maz@kernel.org> <87fsnbxgau.wl-maz@kernel.org> <61809b8f-acaa-bae2-ac5e-aa47c55eea23@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: robh@kernel.org, robin.murphy@arm.com, dann.frazier@canonical.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, toan@os.amperecomputing.com, lorenzo.pieralisi@arm.com, kw@linux.com, bhelgaas@google.com, stgraber@ubuntu.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Mar 2022 14:39:43 +0000, Rob Herring wrote: >=20 > On Tue, Mar 22, 2022 at 01:16:35PM +0000, Robin Murphy wrote: > > On 2022-03-21 20:06, Robin Murphy wrote: > > > On 2022-03-21 19:21, Marc Zyngier wrote: > > > > On Mon, 21 Mar 2022 18:03:27 +0000, > > > > Rob Herring wrote: > > > > >=20 > > > > > On Mon, Mar 21, 2022 at 11:36 AM Marc Zyngier wr= ote: > > > > > >=20 > > > > > > On Mon, 21 Mar 2022 15:17:34 +0000, > > > > > > Rob Herring wrote: > > > > > > >=20 > > > > > > > On Mon, Mar 21, 2022 at 5:49 AM Marc Zyngier = wrote: > > > > > > > >=20 > > > > > > > For XGene-1, I'd still like to understand what the issue is. = Reverting > > > > > > > the first fix and fixing 'dma-ranges' should have fixed it. I= need a > > > > > > > dump of how the IB registers are initialized in both cases. I= 'm not > > > > > > > saying changing 'dma-ranges' in the firmware is going to be r= equired > > > > > > > here. There's a couple of other ways we could fix that withou= t a > > > > > > > firmware change, but first I need to understand why it broke. > > > > > >=20 > > > > > > Reverting 6dce5aa59e0b was enough for me, without changing anyt= hing > > > > > > else. > > > > >=20 > > > > > Meaning c7a75d07827a didn't matter for you. I'm not sure that it = would. > > > > >=20 > > > > > Can you tell me what 'dma-ranges' contains on your system? > > > >=20 > > > > Each pcie node (all 5 of them) has: > > > >=20 > > > > dma-ranges =3D <0x42000000 0x80 0x00 0x80 0x00 0x00 0x80000000 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 0x42000000 0x00 0x00 0x00 0x00 0x80 0x00>; >=20 > This is the same as what St=C3=A9phane has for Merlin. So c7a75d07827a ("= PCI:=20 > xgene: Fix IB window setup") should have fixed Mustang. Should, but didn't. The DT also carries additional properties: ib-ranges =3D <0x42000000 0x40 0x00 0x40 0x00 0x40 0x00 0x00 0x00 0x79000000 0x00 0x79000000 0x00 0x800000>; which the driver ignores, but that could be relevant. FWIW, I've stashed the DT at [1]. M. [1] http://www.loen.fr/tmp/mustang.dts --=20 Without deviation from the norm, progress is not possible.