Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3347790pxb; Mon, 4 Apr 2022 14:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywfYJixu7MJQSjo11EbBA/4q8QX91sKxHRveLkYOEacOhnmVbQ3giXn/txJz1MqN0znOSK X-Received: by 2002:a63:35c3:0:b0:380:6a04:cecc with SMTP id c186-20020a6335c3000000b003806a04ceccmr65771pga.455.1649106897670; Mon, 04 Apr 2022 14:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649106897; cv=none; d=google.com; s=arc-20160816; b=JPaA9Gi0huPXfpaEDyYgiB/O6mSYiwITVV9MX/uCaiZXgFJbyuQ6N7UuVL8nQGIDEu KUZE2WUas6kLj9pWJmKWCxZJrkVk/23hjLoBS0toKGspKm0j5y8ZMx62tRZJmmsRUigq ptHYpEQUJiu9EC/33URLCqdLb0D4vkxmHQDTsaIcg7GHlZuI7+tnjtGYkuF9CB+ijKlf 7rPLCtleaR7p+AhretRzJ3j1aupx5fXV3MOPxWQgtBTLTNMgh3Yc4mnBQVm0xLVmSko9 2iEdUWkCKxtmv7tvVW2U6dY+29AGCMBqYy+X4EfBBOI4VtTQh0R9Q2wlZR4KLiPp6TJI dO9Q== 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=76a94LQu3rPoYffS/gDEHiTMZGGkCXPKcYRhl1KmpQU=; b=YRfbyOEbWY2CYVdKKaWrvnBdcVjBNnnJTTISeKsPm9AbHWGzPNv4CF+V+XsZSxLDH3 XfrKTV1Q3Gc7W0g4ixEMhquv+Qqo34rFGHIFZZL3J3T1UMZ7H9i3vvuts1/3DL8lJXRI tXyxNnGwTVU+ZoOZDw03Y33e8je77xOlkYS9TKqGzYdhYaiEEtw5JIv0cJfgEVkoeekI y5CCS3bV8XN/HfYkgjQkeXN8HDJoYCstd1c7Fc2h7frSc4gyebeEFEtKO3Ax4OmommW7 7FLCszGFt39jOKtoyYasppczA9FebUAedfjUW7N02CmGWzgbQdfLcb49gHIcOkqgbl5b q5hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FZ/ZDpkC"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a63ad41000000b0039822e42cbasi11024065pgo.427.2022.04.04.14.14.13; Mon, 04 Apr 2022 14:14:57 -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=@linaro.org header.s=google header.b="FZ/ZDpkC"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354977AbiDAPph (ORCPT + 99 others); Fri, 1 Apr 2022 11:45:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349968AbiDAPQk (ORCPT ); Fri, 1 Apr 2022 11:16:40 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC3312607 for ; Fri, 1 Apr 2022 07:58:26 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id i4so4657347wrb.5 for ; Fri, 01 Apr 2022 07:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=76a94LQu3rPoYffS/gDEHiTMZGGkCXPKcYRhl1KmpQU=; b=FZ/ZDpkCU0djVj4XyAI7m5UPpa4SlwCKTGlM1Rj9RUWz//rOC9j/LUQYzDk1Gjw4Q0 AsbiLQA4Rdmj2qeJkpB70YhhXnTQByZqqayYpCmkxiFCeisjQVVps+92F9430mN7UlMh xtPfJJba20MTPN9enY664ka9wxQ7asaIFKkPUplOdGBGcaY7/TxvF1GPxKW2fTaarqAW +vsxCOnExuctwCF6g/FahFnG7PMBgdqiYknLTWy+HnDAQ6nKZp9UqbEfrJ2NNTxpzSzd DEfo7hOfxl+nOIaXdn3s2mK2aVS6rlfcn07LWUAToobReKpKTZ1xwC5BZ7Qkd2ugAeZs 51Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=76a94LQu3rPoYffS/gDEHiTMZGGkCXPKcYRhl1KmpQU=; b=tA0Rt5jAFUK30KAxuHIaqWP2M1lmqG8X0cumC9SmEWB/mCL9vcl4/0y5ClxSirp6CU skslkGbJbzNc6Q1p3GU2Baao/J6ktmNy6RIpTVCF++IikQ7G8PsmD7jluppzR6ZpcCgY f9pUnvAxTOsHJhEE6D3sjHG6pLo+b/n8Uwdu0tcg3KDzxeIqjXlozXptFrNWTcAUVxWf 2UA/idIQ7iISvyfbq///jIe4BBI4R24FMohpDNwdvk3ZVjPdvyY8M/Ma1RwJShsJogQQ 2jQqwmwAgGRhFJEFHXMppgI8yZeDtV4UHrlEgRsxMR1Qg5u6OvDgtYhXTAwH+fdvw40B xRPA== X-Gm-Message-State: AOAM530ZuNZPwehIftDfyo2j+nzSjX+hgA0zMNESLeofQiYqnpC27q+P /3XVlFxsjfMGrNEzhdB/JUx7RA== X-Received: by 2002:adf:fb48:0:b0:203:f986:874a with SMTP id c8-20020adffb48000000b00203f986874amr8067141wrs.614.1648825105436; Fri, 01 Apr 2022 07:58:25 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id j8-20020a05600c404800b0038cc9c7670bsm8530722wmm.3.2022.04.01.07.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 07:58:25 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Bart Van Assche , Srinivas Kandagatla , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFC PATCH 0/4] ufs: set power domain performance state when scaling gears Date: Fri, 1 Apr 2022 16:58:16 +0200 Message-Id: <20220401145820.1003826-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, This is a proof-of-concept/RFC for changing the performance state of power rails when scaling gears. So far I added it as a parallel method to scaling clocks, thus freq-table-hz stays in DTS, however OPP table should be probably replace freq-table-hz entirely. Best regards, Krzysztof Krzysztof Kozlowski (4): dt-bindings: clock: qcom,gcc-sdm845: add parent power domain dt-bindings: ufs: common: allow OPP table arm64: dts: qcom: sdm845: control RPMHPD performance states with UFS ufs: set power domain performance state when scaling gears .../bindings/clock/qcom,gcc-sdm845.yaml | 3 ++ .../devicetree/bindings/ufs/ufs-common.yaml | 4 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 17 +++++++- drivers/scsi/ufs/ufshcd-pltfrm.c | 6 +++ drivers/scsi/ufs/ufshcd.c | 42 +++++++++++++++---- drivers/scsi/ufs/ufshcd.h | 3 ++ 6 files changed, 65 insertions(+), 10 deletions(-) -- 2.32.0