Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1578130rdb; Sat, 3 Feb 2024 12:13:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdHL23Ecj193HiFjujBD4BRiblH8XcBUG5zWYFmDX/tuR2MSoD3vnr2te8AF5FrQu4ptlK X-Received: by 2002:a17:90a:68c9:b0:296:743c:c745 with SMTP id q9-20020a17090a68c900b00296743cc745mr939632pjj.45.1706991189126; Sat, 03 Feb 2024 12:13:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706991189; cv=pass; d=google.com; s=arc-20160816; b=vL1r6LMUtr+Cxp3lPpvaKs2bQDBu0W2kYdsmTgh59AIpeSy35msozR0s21QFKfC9li TS3ohhNw7xIq1pPOtf2jyoOMJOfotlM4kziU7QXhew6bSs+pDThNdTtAyRQPYIDYme5K nJh6O/GsGPD4UWMrn2GoW95pn4TBrudxWwsiK1YCbJTCkIAwdT5Nlu5Vau9lJKIqEJyl QNQ8smKxh8sR6cjtQe6DEk3hE8GosmunymyVl7aDiwS3U/Gam5gV3nlMnFD+MYGbsm1e xWQxgc+3SgSjuvtWZO4eoTUBOGsEz977c4MthkkDutIIAagOM2V0dWQcTLJbEcOfGZfF TNaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=8ahih9RgEoYwMlpRdersewynKDFZTyq1Vc8lHuD3WPU=; fh=U66vukirsBBt8AcgH2WTlBhp9pypnmZ5RhwHWTuD3F4=; b=Gm1Nmv1mtHlVll180Y82BaqwqbMnOp/bx0ITq0tPCowRUbAjSObZGeWp8JcQX2ELla NVyO9tjYOujFpqwUc0weX9qIt92FFgWYQQ/FOCT6Qf/xj/FAgKMD7NblvmSzwCHtpqZw maehSzqRXYcHczqlNM8sAgGT8LDsPx2UxnA2j1S/o/XiPg9ft6UWGeDwglffW0ntoH8T UBPUCmuDDVLieo7PurjX/eF1oySb1wIK7rHVY4cIaKm77bqkF8m8nzOIZlfdpTY5EFrh GY8F1FSH0dIjBuIbC70SL9UIxhHkfqc6AEche2hn38Fp5xMB57ysBphKE0mVTEK7N6Ov XueA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=owdTVPnF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-51281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCW3HMozx006WWWWr5EJPEbcGYMDZI2IKrRBpAuIbILwzLtHRXR3oRzTtE8tcG83If398KVtwR3gcoW71gi0WMFuCQ1+5IBgLf4T50dgNg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y18-20020a17090aa41200b0029649e36354si1915804pjp.163.2024.02.03.12.13.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 12:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=owdTVPnF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-51281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 73D9AB23B5A for ; Sat, 3 Feb 2024 20:13:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 465955FDCD; Sat, 3 Feb 2024 20:12:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="owdTVPnF" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78DAE5FDB9 for ; Sat, 3 Feb 2024 20:12:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706991171; cv=none; b=nsuTljYM/8HbHRcNttv3uoIzlxoAUiDHQ7/NB6WBymKeZiPFsFO/X6RxB6mcrTDFtyAElHcM1QPQdMnszTuFi4VOvdZEG0+8NEiDZXvOmvYk9gWft1Y8z6aljJy9IL5JgdQSQJT28T58nJH11ca5+xP/GXI9S3IwjmtjRixRFLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706991171; c=relaxed/simple; bh=XMiuwDIpVjrwT8pZFL8FTDbig4Uonmz+QY2PmFoT1mE=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=cr6bpTlxrVgPCV5CUIeNzYDNcXiu3hCeIFt1GLm24qG0KhJyKT+cFVi4GslLmpasT+/aZXYpXgysh9+7cAspYiHS+gMFyDKTmvBeBp37dlQLk+XCauxjuJkkizfq44yqvB9nhqyXYYIMxOC6j4mXhf89SYT9JWLxv23dTB0ka6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=owdTVPnF; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-33b1d7f7366so1260057f8f.0 for ; Sat, 03 Feb 2024 12:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706991168; x=1707595968; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=8ahih9RgEoYwMlpRdersewynKDFZTyq1Vc8lHuD3WPU=; b=owdTVPnFkM8bUZpBPMHYSxtCL+c1fqBIfzb6HhzQ29vPbe7sIjFrythraCV0ZddV9E t5VDNAUQhTBpkMYIq4FYwlxWW9JZVC+NB/YBqTaAgyDHjBg/IiMNgX3hl0r+7q4cO8wH 5laT8hhGG9o3TaPD932Igq3Yjal4mL+BGriPVIQcJQJK1QYZNogYzKpsLiQGd8AYU/2F P6Fe2pUn4OOrmF31D/OfTRDr+rmHZP6XoRnLiRvzNWWHXC+22PS3//vTweuWvTPPjSA9 tkvB2w48nMTMt6ItXh3QAjBIGqD2y3okPSyildYrOc3U5tDGfJj6EKiVh2AM3Q10NG50 yDGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706991168; x=1707595968; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=8ahih9RgEoYwMlpRdersewynKDFZTyq1Vc8lHuD3WPU=; b=ZvNJ7Tuh/qVgofze1eqJ4L0ZXg7UUjSZ7bcBUXzSS7a4SoufiqyMdYP94kRe62ReL7 3KONOsItgGS3zRJ138Bgx61pS0LfiZ2jITTSALqdrkghT8roZ40WtyB2wlxJVfbITpIm Egh8Z+QYUpo2wGEK+e84Eeq9b1lUatLm/91bNmfYRunoCezlEebcnC9+LQsney4XGmJu SwwyNSX8jy0TAoTT3va66d65Vl5OqwDLOx6Hx/6nvKaCAWGv/0ewycDJWI0D49ipALru tU14Ppnmo0ieknerhcFHmGISfeUsamRFVKbkTZynI3nQiDh8ueduiMYButQ4Eka8O0W4 culA== X-Gm-Message-State: AOJu0YwDB8Umc5thWy4qK64ROrlVP+QIlXXjXfMh26aCFlsoBZAXVf8r ISObgscQN9GpIPbaFl3kMNb5hb1IyhZuw8hkiKSn56Vx2QO8lgAqAZLul04LAP4= X-Received: by 2002:a5d:644a:0:b0:33b:182f:eb9d with SMTP id d10-20020a5d644a000000b0033b182feb9dmr4393583wrw.43.1706991167596; Sat, 03 Feb 2024 12:12:47 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXddspYHgSOlgLatjC0n0l4mR2eo0YQjWGgViZn2aPK1M3eDvdCRySgBLTL2bu+czyfKf8zqPUey8UMnHYyZMujdV6LB7kPkzsb2usDwkj5cfBwFnM7xKXFKwQdbgcjxsimp1sDbiQ0aifIwTnRu/nluSRQUL4sBIM5J+Lgxvt90RL7Z2Ve/WdXJ6yMot53XmKaAhVD/fsADY0h5784L+GAAtzxfVbU1NaOQ/caOfWcUpYb/LbOehPQ+FImUmpqoYswjD49xbQPTM6QPtOWvd4L8vYRCFVuuFnSR/4iFY6sQyvi/oza7w== Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id c8-20020a5d4f08000000b0033b15fdad42sm4662053wru.34.2024.02.03.12.12.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Feb 2024 12:12:46 -0800 (PST) Message-ID: Date: Sat, 3 Feb 2024 21:12:37 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2] arm64: dts: qcom: sm8550: Switch UFS from opp-table-hz to opp-v2 Content-Language: en-US, fr To: Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240203-topic-8550_ufs_oppv2-v2-1-b0bef2a73e6c@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQg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Xgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240203-topic-8550_ufs_oppv2-v2-1-b0bef2a73e6c@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 03/02/2024 01:10, Konrad Dybcio wrote: > Now that the non-legacy form of OPP is supported within the UFS driver, > go ahead and switch to it, adding support for more intermediate freq/power > states. > > Signed-off-by: Konrad Dybcio > --- > Extracted out of: > https://lore.kernel.org/linux-arm-msm/15d2bd66-29f3-435b-8494-d82ec4036413@linaro.org/#t > > Changes since v1: > - Set the reference clock rate to 0 in opp entries, it doesn't support > ratesetting anyway. Confirmed UFS still works. > --- > arch/arm64/boot/dts/qcom/sm8550.dtsi | 50 +++++++++++++++++++++++++++++------- > 1 file changed, 41 insertions(+), 9 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi > index c89d8f3dad21..144e20edf237 100644 > --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi > @@ -1966,6 +1966,7 @@ ufs_mem_hc: ufs@1d84000 { > iommus = <&apps_smmu 0x60 0x0>; > dma-coherent; > > + operating-points-v2 = <&ufs_opp_table>; > interconnects = <&aggre1_noc MASTER_UFS_MEM 0 &mc_virt SLAVE_EBI1 0>, > <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_UFS_MEM_CFG 0>; > > @@ -1986,18 +1987,49 @@ ufs_mem_hc: ufs@1d84000 { > <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, > <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, > <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; > - freq-table-hz = > - <75000000 300000000>, > - <0 0>, > - <0 0>, > - <75000000 300000000>, > - <100000000 403000000>, > - <0 0>, > - <0 0>, > - <0 0>; > qcom,ice = <&ice>; > > status = "disabled"; > + > + ufs_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-75000000 { > + opp-hz = /bits/ 64 <75000000>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <75000000>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <0>; > + required-opps = <&rpmhpd_opp_low_svs>; > + }; > + > + opp-150000000 { > + opp-hz = /bits/ 64 <150000000>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <150000000>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <0>; > + required-opps = <&rpmhpd_opp_svs>; > + }; > + > + opp-300000000 { > + opp-hz = /bits/ 64 <300000000>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <300000000>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <0>, > + /bits/ 64 <0>; > + required-opps = <&rpmhpd_opp_nom>; > + }; > + }; > }; > > ice: crypto@1d88000 { > > --- > base-commit: 076d56d74f17e625b3d63cf4743b3d7d02180379 > change-id: 20240203-topic-8550_ufs_oppv2-bb88d63a4c58 > > Best regards, Tested-by: Neil Armstrong # on SM8550-QRD