From patchwork Mon Oct 17 11:24:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1393346wrs; Mon, 17 Oct 2022 04:30:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53rb4DIFxW/ABbSZVIqCIQJbEbavOPTrJax5P4zvzNidhbkWQoaOkgz/5l/e5cAg6ft5Bu X-Received: by 2002:a17:907:3e9c:b0:78d:ce8b:8548 with SMTP id hs28-20020a1709073e9c00b0078dce8b8548mr8424767ejc.427.1666006243773; Mon, 17 Oct 2022 04:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666006243; cv=none; d=google.com; s=arc-20160816; b=Ie3omV5ub6hiC2vR6FyMnmgkuv/H/d3oGeVNfEgwIN7xzoLHYjx9C5jh/GWDXVsYq4 dt/vseElMW9MrkzKt5pduEX/Ysjx6VJCKVJBpSxM7BOaWdVniRXQV+0kNTYc8nEaGem7 j2TIfmHFiOUVnjUvLP9mrZ7I7EtbvtDtZ5uEDOD4rZurDvFt9uZPpG5YXJcwDepG8zEI LDgZNr3M8oqKnL2jLWD6XCnqQOlKCNmAHot0x6yGQGGpZef+wZVq46WRSUtFeHhih/Tn EwIJCQb6Z1R39yYBIYSW4OQFhHUWPqum7DyEwPOJgovptCPaqyzsOzMqjZXZ/8Jy1PQ2 nahg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq2-20020a170906e24200b0078dc5b2b6c4si7565362ejb.666.2022.10.17.04.30.14; Mon, 17 Oct 2022 04:30:43 -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?Krzyszto?= =?utf-8?q?f_Wilczy=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746934163090723217?= X-GMAIL-MSGID: =?utf-8?q?1746934163090723217?= 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(+)