Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4315042rwi; Mon, 17 Oct 2022 04:47:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xA/ft10dYSLnDrwn7XnnoJ4GYrr+0VhKO0WrR/K37n60xMOshTd3b2GP4c+61upXHf/hw X-Received: by 2002:a05:6402:1d53:b0:45d:3841:ccde with SMTP id dz19-20020a0564021d5300b0045d3841ccdemr9623221edb.317.1666007274203; Mon, 17 Oct 2022 04:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666007274; cv=none; d=google.com; s=arc-20160816; b=de3Vci/43E1UGURYmxonpC2+PFM52lnBlj2vf5fvEjJQ458OX9ele3MrxxOGO/aS6l SjRnZJ7bsDfQF+Iu4wyBPgvA6lL+bv1BiIAwQ97NJlbGcNELCjsux1HP3cjvJoP0hiQM soigjU79cxytpxF2i/iDRZ00aU0aTGzfItXKCamTBssXbpoTqWC3JoJZqnrHACCzsV47 rHQzMxmBu9jGBY7G2iGQs0xJOH70Tu6dhBOb6/WPRmr0WiU1ALcRKNVnZInKeTfET4KZ V7mkW/AqCIq2RjyoU0ygwuT7ywFg/WI5ZgFi2zcEsXYpPM7BGVjDnvjXjtnGfivcI/Fd EIGg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=sThDUAEgGPXyTJnTXLq+S8og4R+K0eIBgMJv85I7m00=; b=O2MjyA0QBkYChdvknav4QZLNg7gJUy81F8gC/jYEznSbhhGr47+Bvop0i6nOE62Gbs JzxQvQ6IbdIGCrRF1d5qMbs1G8PSoidSVjXvpUeDxFCSKWr0Yla8x3iDXcs8sIIEyvGK jJa9RGO2SYla8FotlEQV5d1glYx0A50iQQ7EJD21MROxIkswRw6Zyv4v3mymEB1wVqSX q0Lip095T9q3pw8Mv/V64SD0MhTOFNoyA+ml5IvP0BTIh1PnSs20O9gS/9V+C/AyuzNd +Ba1VB4PvePn8I4vMp7tcV11lCSY9pj1+sJVJrF/QEW1G1GtjOwsmLBPVfCAX2Yndj+q 6DqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jZzoTqrz; 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 o19-20020a170906975300b0078dea4159fdsi8395107ejy.491.2022.10.17.04.47.28; Mon, 17 Oct 2022 04:47: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=jZzoTqrz; 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 S230107AbiJQL1L (ORCPT + 99 others); Mon, 17 Oct 2022 07:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbiJQL1J (ORCPT ); Mon, 17 Oct 2022 07:27:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CBEC5F982; Mon, 17 Oct 2022 04:27:09 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AE09561068; Mon, 17 Oct 2022 11:27:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F530C433C1; Mon, 17 Oct 2022 11:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666006028; bh=fDX3YKS2ZbQApo4ilsZMUNMy6l8gRgEh8LArIOkE5bI=; h=From:To:Cc:Subject:Date:From; b=jZzoTqrzZoHvlj+P2Pbmq6AxayBbUILIvPyxw8U/T4yT5pTU0l8EOn3yWtF0SI8X0 kRK+YLKWR1+DUbclH++zquLoTuYl7vmsR/WmDZHK+ehHXdo7tOlT3ZWCSySKzIKDpJ Eni2whm0BwJkR/4PuuxDQj96MQpstxizW4Ocj1biaatEEn6WX7y0++hONXLon5DeEP hSy0Obo7a/NDgw0CIDM9N5vsw81DuOHB8u+JS+fheuZGkTHzypp9LOlc2cHPJY/lHL A96NH8JiuhMZdW5boGMmxoZQKcK0KAStcUDV/aO62Z/mI0yDTFKROJ8jtBDekj3QKj Ls4YOqX0MjsjQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1okOGm-0000aX-RY; Mon, 17 Oct 2022 13:26:57 +0200 From: Johan Hovold To: Stanimir Varbanov , Lorenzo Pieralisi Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Manivannan Sadhasivam , Krishna chaitanya chundru , quic_vbadigan@quicinc.com, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] PCI: qcom: Add basic interconnect support Date: Mon, 17 Oct 2022 13:24:47 +0200 Message-Id: <20221017112449.2146-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 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 Qualcomm platforms like SC8280XP and SA8540P interconnect bandwidth must be requested before enabling interconnect clocks. Add basic support for managing an optional "pcie-mem" interconnect path by setting a low constraint before enabling clocks and updating it after the link is up. This is specifically needed to prevent a crash on SC8280XP/SA8540P when the interconnect constraints are enforced during boot. As support for these platforms was added in 6.1-rc1 it would be nice to have this merged as a fix for 6.1, but deferring for 6.2 works as well. Johan Johan Hovold (2): dt-bindings: PCI: qcom: Add SC8280XP/SA8540P interconnects PCI: qcom: Add basic interconnect support .../devicetree/bindings/pci/qcom,pcie.yaml | 25 ++++++ drivers/pci/controller/dwc/pcie-qcom.c | 76 +++++++++++++++++++ 2 files changed, 101 insertions(+) -- 2.37.3