Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3730005rwi; Wed, 2 Nov 2022 02:23:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6F3pF/oJ68qzcoLXwv2M883ow4tpfZckMhxiyPAbhdgAQzLFI7tvGHEEdon+UCN7Odg7WB X-Received: by 2002:a17:907:aa1:b0:7ad:b286:fa25 with SMTP id bz1-20020a1709070aa100b007adb286fa25mr22019532ejc.106.1667380999923; Wed, 02 Nov 2022 02:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667380999; cv=none; d=google.com; s=arc-20160816; b=qRrxhTWVWQEz5JECLFbUBFd8pwJk73/cQXvrxubZbjQNrbYcqOSHQPgQiLYFiB20Ut O8quPb+tv/vMEkyeD+fPmWa3NdJe/HufYMahYechnOd0vLkTysaVw6R1WfUSAPJgDOnP LKdzRYg+6jK2Nbq5FkNgQAWxRx9izkDkEZU/v4AA+LIJSqUaSb+X5OS5CDx671t7WIaJ pMrw/tPrrjIUriMqW3AEvP33cJ+1VjsGTARsbM/2N+LRnPJfIMpA+xilTUaDJx4LFMHq or4pMWgoWBspYCo8IxxZ9n9+dfLDdroP/u3bYk8NelAzMio+lMrkqPhK4A9xJR5w+gE1 kR1Q== 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=ZXi/s1JQTHrrVHFAX1LvnfQaHAAGjKit6HBXDY8UzlA=; b=V/R6IN1BCzNhBALVsD41rPIeOkE8BlSpPUOGBmazfm9HqsH5Ju9GvscrWfYnU68fyZ IWa0Gkjbr1a2+GMF9CHq/LiPRqPA4Nyre7djExJ1xXuQcQBXnkXEbNyo/oRGKx69E57X /CD3FkkQYLwZGbHNof9o0jF+h4v5DJipwVO2h/jlD4H7ZIIH8JAL0a+X4pmWR28Fr3Jj 9l26HJoBjIoKwSWmrpwnwU/s+c0l+uYvDkbfp1ZVsdNr/z/uRN+UBI8DBbyCkht1eYja qUNe4N5VUu4BpjLma8mGNerL35uqUGSuG50eM5Fe+alLGH1FiA41cXFGlwvyWo2edrKk YueQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cdiIyNAn; 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 o7-20020a056402038700b0045cc36d6d8fsi11513776edv.336.2022.11.02.02.22.56; Wed, 02 Nov 2022 02:23:19 -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=cdiIyNAn; 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 S231382AbiKBJJr (ORCPT + 97 others); Wed, 2 Nov 2022 05:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230395AbiKBJI7 (ORCPT ); Wed, 2 Nov 2022 05:08:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1B627FD7; Wed, 2 Nov 2022 02:08:58 -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 2B682B8216B; Wed, 2 Nov 2022 09:08:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA8E4C4347C; Wed, 2 Nov 2022 09:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667380135; bh=yCSCxjzajthdmPJ8tWpzFvpFs/HfIn7P3OIoIHFX8Yc=; h=From:To:Cc:Subject:Date:From; b=cdiIyNAnbpgYuvziORkO0gsy0wiP2sZxWEIKQ6YIUMtFojihOiCAWGlxFgCZBudl7 vyeCnhujvK1a67Fl9R/KX5vGa/TDYgDY4O355gfidC7ueak9GWdCGOpEtUD56KVvCp mjcUyMHhXvdSybUXQlMB42Cy0AltdoXzvevclHDwrHDPDhjIKkWil5GUZ3RFNPWTR+ VMB8MXxw+okc90mSi83nhHA7grTU6l+P51lO1dAoESX4LW/BrzNUJbzGxeRJRvSzqB h1yVY24ArbFGRipMSg/zPO/i0UPZ1JCl49LaJEMWkaIvSS6sDZweI/llJCTOOxpTbO AvQFI3J28VfNA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oq9ji-0006B3-S2; Wed, 02 Nov 2022 10:08:39 +0100 From: Johan Hovold To: Lorenzo Pieralisi , stanimir.k.varbanov@gmail.com Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Brian Masney , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 0/2] PCI: qcom: Add basic interconnect support Date: Wed, 2 Nov 2022 10:07:03 +0100 Message-Id: <20221102090705.23634-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=-8.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 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 v3 - remove intermediate assignment in error path (Mani) - add WARN_ON_ONCE() as a reminder to anyone ever extending the driver with support for higher speeds to update the bandwidth table 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(+) -- 2.37.3