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: 555782 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 9E0D5C433F5 for ; Fri, 1 Apr 2022 15:55:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237102AbiDAP4y (ORCPT ); Fri, 1 Apr 2022 11:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349948AbiDAPQk (ORCPT ); Fri, 1 Apr 2022 11:16:40 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCA712763 for ; Fri, 1 Apr 2022 07:58:26 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id i4so4657348wrb.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=qntAyEmxGxxMjRzTMM/zmrwQ5G81Q0aRTMNa5o0HBug6+E6lG9f6Lh6cny73CY0YSd SwSLbhlCjWpLxn9ravBcjjLL4YJiAex9/fq3YupZHwpsAKl0vwZrKt1n565EM1HBhXY1 cU7xZaMlvIeQsaF1XBoSVwFTrFjh4seSLMsAMbRpGvve7EogEg4wwwLrdo4xArA39Vfq OrZZVCxqbGA9t23uUYqiyH9krXNghoED0vAP9VuuFGOVdPd2bxchDFOSZ28rlvFaS0dh kR8uEX93p1DstiAtOkrbkRhQ02Z0PoJoEjR5xPk8NiC2tdkMO3dDroOJtkwYzqDgIrPd /SQw== X-Gm-Message-State: AOAM530L/MMI7fU9S70PAgZyZ2F6zygnej3k60Mw0/2pz0Pzx2N/U7Cs TEV2cG1qnSTSAjFoHrZ1e/TE3g== 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: linux-scsi@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(-)