From patchwork Fri Apr 1 14:58:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 555716 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3577EC433F5 for ; Fri, 1 Apr 2022 15:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238201AbiDAPyg (ORCPT ); Fri, 1 Apr 2022 11:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349932AbiDAPQk (ORCPT ); Fri, 1 Apr 2022 11:16:40 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA95211A39 for ; Fri, 1 Apr 2022 07:58:26 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id h4so4581607wrc.13 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=sZbw81LNRLRdS8+pCZ+wswFo4wW30ZTC4ZKSec+Wgo0WCy0HpwsEtmVjlnkiVAIWLd 3hg3sipDVDXo2qHncyW7Pde5ZtmV6JzEhJpe4jGgh3y8J2LRo4PCRwJCX0Nv64XB7j+0 StG9e09CKfBfo31blrVDaUWrIQQwmtwylFsEbvRXB6H3ul65fsHY3kt0n342Gfg4FMNE nCUNj7PcF1t+lTiUXbNLBy4bGLkrCZYtB714dmNq5xJHmm2lTVL6InuGhXcZOkcUQOZV FLIEzaBrvMy1v0N9ZjZ25vN6ZMG3kaII/wkDJ8l4Nn9Ll87jf8I1GK2ce8RN6lHdI0il 4Rjw== X-Gm-Message-State: AOAM532P3uwow7IwNLJYYihybv5DVuAaP+GEPZN8E1VJuu+K22jFiab5 dVZbvWIJlB/i5vHYxB+AQMuPEA== X-Google-Smtp-Source: ABdhPJxi8Y6f6lrLshYHx+nvxgkTyKctJN8K3nHCREVNRv1HkEkJFWZspLSclpT12ofkeOYjbKJ8qQ== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) Reviewed-by: Rob Herring