Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6279207rwl; Thu, 29 Dec 2022 10:04:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXu2ji3HNoRDcoeNLYJ2lQOU5bm7D8ef6J16XUj8WBz+RyDCA0kj+VWf2WBuLwpGkM1sl3cu X-Received: by 2002:a17:90a:6609:b0:225:dec8:e81b with SMTP id l9-20020a17090a660900b00225dec8e81bmr22813241pjj.15.1672337050037; Thu, 29 Dec 2022 10:04:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672337050; cv=none; d=google.com; s=arc-20160816; b=CqqBQ54fvtH+8HKOejF+HmkImJV6W3Pr3cwxIOaemOMtp3lUH0EjSNkw2UoVyApbMf 5kqojwmPUdfdQIglVuaTgNRqsuF4JdQqTmap3FOwAbm7WXsIfbd4b7v3bWwQabnFnOXb ctGNKQMdy1N6NIpAxfbfWVTpAgQ9sNfDhODUoPjHMEcwZGkdUwSJBr1ZSJ86wG2qQSLz GmWCGzU8ECuUasXQ2msWkTiJkucTy3/N7+KUjceEOCvUlBB86UIt/dQ/N3Cmhrhu8myU IrQXsTM5intFhIR/8irZyJVerXkGsvF7N8VBcRiEqromXqbQW9fY41LcYlVQCkfbHZvg CPAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TVXs1Buxx2r15JrLhBEhVZ9laSultEYesXMpJflEkPE=; b=A2Z5FBeUhXiNM6l3O29qMl52MB9Jsl4kR0jWo5kFsiHJ2I37kM3yPTX4FKZvHON+X3 oUlLgsrgTIUryQYSlTOpHC1BdN9iYQRp5vy7d0akZY3ESxmMbGKn867f0aSyrrg1GWkk aKiNw9uvCS72LcvL3Pw9JzcFYEk1d0ClUnhL+7txVS2BCyTCnvzqSqxzq79UXi/4R+71 7C7siGZaK1B8S290ERmbo7xSLKmcer023OZY8ht4FSRxQs5pq9nZg9fAOdgWKQH/ysRh u7eWpHqj67YHyWP8GyRzF5Cg7EgpIn4JjQaaHbW445gUk9xw14Q/7+UF74Lj1ruU8dzb FWLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CwTopccy; 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 j2-20020a17090ae60200b00212e2e1b626si19205372pjy.164.2022.12.29.10.04.01; Thu, 29 Dec 2022 10:04:10 -0800 (PST) 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=CwTopccy; 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 S233614AbiL2RbO (ORCPT + 61 others); Thu, 29 Dec 2022 12:31:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234075AbiL2RaP (ORCPT ); Thu, 29 Dec 2022 12:30:15 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83DCA1573E; Thu, 29 Dec 2022 09:29:50 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id D0376CE16B8; Thu, 29 Dec 2022 17:29:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0C57C433D2; Thu, 29 Dec 2022 17:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672334987; bh=G+SWBiYi4yJIL5V5j7GqWjgDRQL0QUPCjoveiHSWEys=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CwTopccyU0qtmz7hrUHjKgdNsQrcMOeRCMSs3du5zRXM/bVQDZMF937F/K9PDK2bC 4bfWT8xNGQWeOQGGmaJD+VjgOK79IrJftXw3YkZybR7Tgz0qJsM8wuWPGaG1v9bQA2 ZzdkyN9sF1aIkFK8uGUlXRuABUNG2JdKwXU15WbDUg2XlZZWblFqbDwpcX/bfNcS0r rAWoAo2m4fkWP6cl8RQJPeAPG70QWmA5LFSexq8EjBjFz+avfaLJRC7OVAHd0AUdXG wYN/VF8NIj9EURov3AQkOpZg/U4yYL2FpDwVM6f02C3C1+oyWNwXwUXi4XGr8D23N2 pbGMZnwr7JjEA== Date: Thu, 29 Dec 2022 11:29:44 -0600 From: Bjorn Andersson To: Robert Marko Cc: agross@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/9] arm64: dts: qcom: ipq8074: fix Gen3 PCIe QMP PHY Message-ID: <20221229172944.6lg6mb53uqj2hps6@builder.lan> References: <20221116214841.1116735-1-robimarko@gmail.com> <20221116214841.1116735-2-robimarko@gmail.com> <20221205215253.itobukkyiecn7xi7@builder.lan> <20221227192049.zk5gqhpnq2m7baqa@builder.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 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 Wed, Dec 28, 2022 at 12:10:17PM +0100, Robert Marko wrote: > On Tue, 27 Dec 2022 at 20:20, Bjorn Andersson wrote: > > > > On Tue, Dec 06, 2022 at 10:51:40AM +0100, Robert Marko wrote: > > > On Mon, 5 Dec 2022 at 22:52, Bjorn Andersson wrote: > > > > > > > > On Wed, Nov 16, 2022 at 10:48:34PM +0100, Robert Marko wrote: > > > > > IPQ8074 comes in 2 silicon versions: > > > > > * v1 with 2x Gen2 PCIe ports and QMP PHY-s > > > > > * v2 with 1x Gen3 and 1x Gen2 PCIe ports and QMP PHY-s > > > > > > > > > > v2 is the final and production version that is actually supported by the > > > > > kernel, however it looks like PCIe related nodes were added for the v1 SoC. > > > > > > > > > > Now that we have Gen3 QMP PHY support, we can start fixing the PCIe support > > > > > by fixing the Gen3 QMP PHY node first. > > > > > > > > > > Change the compatible to the Gen3 QMP PHY, correct the register space start > > > > > and size, add the missing misc PCS register space. > > > > > > > > > > > > > Does this imply that the current node doesn't actually work? > > > > > > Hi Bjorn, > > > Yes, the node is for a completely different PHY generation, basically > > > PCIe on IPQ8074 > > > is completely broken, hence this patch series. > > > > > > > > > > > If that's the case, could we perhaps adopt Johan Hovolds' new binding > > > > and drop the subnode in favor of just a flat reg covering the whole > > > > QMP region? > > > > > > I have not seen that so far, any examples? > > > > > > > See > > Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml in > > v6.2-rc1. > > > > The idea is to, at least, use this for all new platforms introduced. > > > > And if the current definition doesn't actually work I suggest that we > > replace it with the new one. > > I understand the intention, but these bindings dont match the QMP generation > found in IPQ8074 at all, and Gen3 has already been documented in bindings. > > This would require updating the driver to carry the offsets and rework > of bindings to > not require power domains, etc for IPQ8074 as I have not found any > code downstream > to indicate it has GSDC-s for PCIe though I dont have any docs at all > for the SoC. > I was only thinking of the structural difference, not the power-domains etc. But yes you're right that it means updating the driver and the binding. The end result would be much nicer though... Regards, Bjorn