Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp484802pxm; Wed, 23 Feb 2022 04:58:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7Ve2qflIiPqJXm5I6uv7hMimK5CX7S2mYX6mXSjNnKC212L0+ZYlWy8LRHcg239io6OnF X-Received: by 2002:a17:906:4fc7:b0:6d0:84a3:458b with SMTP id i7-20020a1709064fc700b006d084a3458bmr21362347ejw.674.1645621094152; Wed, 23 Feb 2022 04:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645621094; cv=none; d=google.com; s=arc-20160816; b=rQUhgnBJFg1nXqMISkhPsdhdeL4I+hzjocV6CxVnYfpuA4z2jNgsvCy2RYqUkYLA1x HnX0G6/cljEX3LilnNf1PRdAgDxPSn+xvQkJr51Xf2/6TRPRgSTbPMNra4HtscpiK0Qd xRF40WQwCFomGJAtUVqQB376VBksWOTZq0EGeX1nizFw7V+NP5Kdq4lHeaCkbQpXOV07 /3xoQM9N/wVdMoX/o0nHGs2e7oKR3d/bVqMvxTxfApfO/iwWj9JhWaeON/YXsQJoLBsK yF9FzB5gEIYuMqWSFsdN/QzVCQP9hiS9KFQeDWvC0/hDO/NeYys91b6P5iTm/Mdymc/k iv4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6E8LpkVcd+7AGHgdYAkEZe+ycoMDPekcdYSjpmTWlKw=; b=MKVI9Wgspy4yQvCBdupy+0LVfo+D0FmO4ie3JLQZDSIR92l6K5vcdgZAaDT8iNmxZq 8yzJ8vDrBbmetUhmlx2UOZUFsU1ZDRz/DHdlj0fID5jfelQUwv+AwllqgKwUTbKD5PiJ H6xSj5AYYpuisZH/3Hv/bqnQaGYoSzFCJ5rnQFLKJ80mhsiuycNpjhNkf6CzrBisWjYW ChjLMcBbjqCdLRPdJ6sFxJ41un215Mpj3jEqydizB7ToCYWQ57B5LUqm2xUXAZFj8jlh yTtppvSzmJazybGET4fRaNIc3lDV2kO1o8kHquipVlPLYZA/We56qH5iv0hEPEfqM2p4 KWIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=F3Md2UK0; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22si18087488edd.125.2022.02.23.04.57.50; Wed, 23 Feb 2022 04:58:14 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=F3Md2UK0; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239214AbiBWJQJ (ORCPT + 99 others); Wed, 23 Feb 2022 04:16:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235732AbiBWJQI (ORCPT ); Wed, 23 Feb 2022 04:16:08 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5424811AF for ; Wed, 23 Feb 2022 01:15:40 -0800 (PST) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id EA02B405D7 for ; Wed, 23 Feb 2022 09:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645607738; bh=6E8LpkVcd+7AGHgdYAkEZe+ycoMDPekcdYSjpmTWlKw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=F3Md2UK0jpLf/OAzfbgKmFCBwBeke1DULmZlJ+CpuvEBrveuQrKO0kOEqUVL0StUy lkUq7kXNy6I8pevlTsgN3BqPKhTgTT95dIvTRTKuyNqrE9w4pQQDJqy3cngBW6lMGW su7jAVHqovTNaTRMfxbz9R60w2v+DWUPXvEW6v6rcBys1/x4okiEKoT7OerWFfFpOw r5/1kj4kelVPuYOTK00H8+1KzucfdrgLftkrJ/uVNdYE28AyCmBFn4U4yzZc9lIyjx qadjT4uBgOAsoXRjJD0HaYVqlw3wAd+nqAiPIw7m3da5qKl1YPdVk7v/7JRLfNPXpj HAM4mz1qVEHeA== Received: by mail-ed1-f72.google.com with SMTP id y10-20020a056402358a00b00410deddea4cso13261220edc.16 for ; Wed, 23 Feb 2022 01:15:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=6E8LpkVcd+7AGHgdYAkEZe+ycoMDPekcdYSjpmTWlKw=; b=lKY/OrFsknliOh0SPweDlvRYw43g6lNQEC5BZC2w3ypBSqL9fsxOXxcvdBe8pCx9Pt q9XzwfTU0vqSbIjIJ9o2xDTD92prczgiVRLv5M7vVnsjmbqvIW0/QLjq7jCgpDfEDbf/ 7Rg6M3340SsRXDurHEeGSx85hw19NyXBG09kh5NyZFtAb1RM0cAyKZG1x/XNBK/QmwZ6 DG8J9XabSnZF288hcOB/h+jVlhFpBIHVvrfaYJXCiuYKf6JuiKfCyrhfSqoXKb/9c6wr ShpgHpLt+RxtjJWPoneC2zJYHozwVWRbGB+7NCF0rs5TIajOHUR7k/Ltm0W8k2j5pZMr Q7QA== X-Gm-Message-State: AOAM530aOOtgGzt7V+xTjGhkz1aoWfjMbsxuXXEQNzGo6WtES9/yoZgi v+I/UbgwWjkxn9cCuOsozxlSg2rZ5YnR3z7FTigz9BTDqq16Xr5NwFo5ZZopsiBbEOWCLV0SnbN JoIDbBJT6nYS4VEw8tEO5uWUfeAu6fjy5ryvHzmy+kA== X-Received: by 2002:a17:906:a2d7:b0:6d3:45dd:bdf0 with SMTP id by23-20020a170906a2d700b006d345ddbdf0mr4297323ejb.104.1645607738087; Wed, 23 Feb 2022 01:15:38 -0800 (PST) X-Received: by 2002:a17:906:a2d7:b0:6d3:45dd:bdf0 with SMTP id by23-20020a170906a2d700b006d345ddbdf0mr4297297ejb.104.1645607737804; Wed, 23 Feb 2022 01:15:37 -0800 (PST) Received: from [192.168.0.125] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id el5sm10993751edb.71.2022.02.23.01.15.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Feb 2022 01:15:37 -0800 (PST) Message-ID: <455a8a87-63e7-7864-f765-142be18d1fa8@canonical.com> Date: Wed, 23 Feb 2022 10:15:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 09/15] scsi: ufs: deprecate 'freq-table-hz' property Content-Language: en-US To: Bjorn Andersson Cc: Alim Akhtar , Avri Altman , Rob Herring , Andy Gross , Wei Xu , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , "James E.J. Bottomley" , "Martin K. Petersen" , Jan Kotas , Li Wei , Stanley Chu , Yaniv Gardi , linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20220222145854.358646-1-krzysztof.kozlowski@canonical.com> <20220222145854.358646-10-krzysztof.kozlowski@canonical.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 22/02/2022 19:16, Bjorn Andersson wrote: > On Tue 22 Feb 06:58 PST 2022, Krzysztof Kozlowski wrote: > >> The 'freq-table-hz' is not correct in DT schema, because '-hz' suffix >> defines uint32 type, not an array. Therefore deprecate 'freq-table-hz' >> and use 'freq-table' instead. >> > > Patch looks good in itself, but why don't we use opp-table to describe > the performance states? > > In particular looking at the two columns of frequencies for various > Qualcomm boards they require different performance-states. > > A concrete example is sm8350.dtsi, which specifies 75MHz and 300MHz as > the first frequency pair. The lower level requires the VDD_CX power rail > to be at least &rpmhpd_opp_low_svs, the higher frequency has a > required-opps of &rpmhpd_opp_nom. > > > As this isn't possible to express in the current binding we've just been > forced to always run at a higher voltage level and kept this in the todo > list. > > But rather than migrating freq-table-hz to freq-table and then having to > introduce an opp table to express the power constraints, could we > perhaps skip the intermediate step? > > Or would you have any other suggestion about how we can represent the > required-opps level together with the freq-table (if that's what we want > to stick with). Usage of OPP tables is interesting solution. It would solve your problem of power rail levels. This would need several opp-tables - one for each clock, which is not a big problem. The problem is that I do not have any UFS hardware (none of my Samsung Exynos boards have UFS... I don't have even arm64 Exynos chips :( ), so implementing it theoretically will be painful. OTOH, I believe that having a working dtschema is very useful. Having dtschema without errors/warnings is even worth some churn/intermediary work. The intermediary work is also not that big. Once proper OPP is implemented, we will have "just" two deprecated properties in the bindings. Best regards, Krzysztof