From patchwork Fri Oct 21 06:46:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp528069wrr; Thu, 20 Oct 2022 23:51:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4TAXh+Fuw+fZCSurUel2nvgpfiE1XrNA3v99c2dvxBOPaCwlrbxDwtZBG8FNNXu0siCwO5 X-Received: by 2002:a17:90b:4d90:b0:20d:7f17:5983 with SMTP id oj16-20020a17090b4d9000b0020d7f175983mr56967032pjb.197.1666335072999; Thu, 20 Oct 2022 23:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666335072; cv=none; d=google.com; s=arc-20160816; b=0IbmadRAbRma9CtbjAlfwbyVbgTXqxD5KPE4Yh2DkoQgwXJQ5dus6eWlumf4L3AO7p gpXJHEDeH8htx90S6seNhF5uDw/rdffvf0nG1HmtNGjBYWS873p2Yk77Ia3tcQerRkC9 dZYjBzPkN6xu2oqqbmWLtoPFYK4tMpMwl28Xx2qrVT3iwjNrdiHXKJmw9MCkfFq8L1PZ gVhZEASy4Q6TcWzL+LTyhifWNACAu5LFC6pXgJfqd7QPmRq2sM5ZVKikWuJbEFNX5hxO C2hXkOo8GEeQJUrxnMB5/S4gRYaDk2Uk0HNe3CgBJQe8RALPFgdabtdNmJvjZ/FiAPAm CPvQ== 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=rL32KaHb3wRe+3tXMMzTa8n2dzXW3jE7BSb9QguJilA=; b=KmmeCljv9UIXVM7TGEnRtD97MFGD0jA0Cg5Y7HXTY84SzGYMpQjBM+uuCVuVwoJJQS n3T41hBxaJJnNoOzopFgxgIsUEPMWet8Qbnr6YPhQYbRmivUBy0pamSpKaaLUSuKw1Ka gqz3OHD4+wpmrudqB5M+PPzeKagchbT5fkNxts1HhOVq8YXn96+ImRMZN/K0Zsso0GYz De4x0u/uh2F6oakezu+pNeKmyqnz3sH4gXBiRhMhsz/3+jlltvGS7jbi4HWfcLcnKW7C srEnX2OHmJZonMjGRzHvl4mafIjJ/fXWjcua/Vl/Bc26uUi4j4xN7IzzcdPNUhYII/NI PSZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nGIJTj94; 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 h13-20020a056a00230d00b0053652e1c0b6si27722635pfh.12.2022.10.20.23.51.00; Thu, 20 Oct 2022 23:51:12 -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=nGIJTj94; 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 S230098AbiJUGsO (ORCPT + 99 others); Fri, 21 Oct 2022 02:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbiJUGrx (ORCPT ); Fri, 21 Oct 2022 02:47:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC3C242CB9; Thu, 20 Oct 2022 23:47:50 -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 4F5D8B82B1B; Fri, 21 Oct 2022 06:47:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1C0DC43140; Fri, 21 Oct 2022 06:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666334868; bh=QZFgdFVSmg4MEVl1gC6mhp0X7Dh0uB8lyTuIoyqeqJU=; h=From:To:Cc:Subject:Date:From; b=nGIJTj94A6u2iWr3KT/xLh33Ds3CQomSVUTa5Q43f6HcLCGMdV0B2aWzSg8h0EkQJ dq6DMJHM3Q1r1sXgAbZzlOtDBnhbV7Drcsz6sj/jbSLo0NgyiEjUuoOXBFnpX81+RD q8zBZBtBkCgmBcjsHKEQmDyO5RyAkQED6cqch/wDC+mwW6dd/DyqMULmjk49Hh1acW vstHHPOJ8LAAySfBZIcSYvQZdRRWrBodnvoHpB8GDEHu42/9hzsFCjS3SEQPLN3iKU pAPtB0YdKemzjavJD6tGSoFDhLDvafxws+Lo14Z4ArnqQJwdHb+80KsmI0t6034+zW +esyQWAHKZtlA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1ollob-0001fQ-JG; Fri, 21 Oct 2022 08:47:34 +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, Brian Masney , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 0/2] PCI: qcom: Add basic interconnect support Date: Fri, 21 Oct 2022 08:46:14 +0200 Message-Id: <20221021064616.6380-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?1747278943003195285?= X-GMAIL-MSGID: =?utf-8?q?1747278965578803925?= 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 Changes in v2 - update the bindings so that the interconnect-names constraints apply to all platforms (Krzysztof) Johan Hovold (2): dt-bindings: PCI: qcom: Add SC8280XP/SA8540P interconnects PCI: qcom: Add basic interconnect support .../devicetree/bindings/pci/qcom,pcie.yaml | 20 +++++ drivers/pci/controller/dwc/pcie-qcom.c | 76 +++++++++++++++++++ 2 files changed, 96 insertions(+)