Message ID | 20230129023630.830764-1-chenhuiz@axis.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1585388wrn; Sat, 28 Jan 2023 18:53:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXvWA4E7kwzAQBNel22UuhVxvCFsiOy7VCYedofPIqkRN/oC6/xk6B/mjAJYm9w5snS99cY9 X-Received: by 2002:a17:906:70c7:b0:84c:a863:ebe6 with SMTP id g7-20020a17090670c700b0084ca863ebe6mr37988137ejk.43.1674960787514; Sat, 28 Jan 2023 18:53:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674960787; cv=none; d=google.com; s=arc-20160816; b=DeNXcrd3umObu8rIYpLiJM+z2hBpKgc5qAUO6mvJkhNWCFe8M2S7K6CkQ1CszJhWfI zUxnFhublGoUXBdw2pY97xsGfMruFiBtq7qqv4D1Kiy0RZ2gFZR/B5IAxtbRGfATMDuW NxbmsEKccNWSWPOPtkI86M9vDHDCFa+6EVI0p/ZNQF9XnDYH+wvmsOll85tfpJlf5NOH ab+O1FD2d42C9EDUgJiF61vInO92g7+xQ7vhmmArY1ClokR87RUjzyCOCDmQvj0RiObA 7U8oY33wO37Mhs2rYrSADyBbr0k27XVqIEjjz0Sawz4ABqycjcYEnSLYAIxw9bMxK1D3 qfUA== 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=D2SpbsDvaVPtfn4au1YKj3XBGsxTvU/Y+hYx9Ht8zHA=; b=lU2KEpD1sqX0fchYfHLmaZRqYnK7sn3kTAR96Se/yY7u5dzmFQLMVhlRJaAvh/kSWC JzplAutiIuYotQ/t3dMfhzVXERJrDTRaWsP/bnrKkgX5Qxy2GW6regqPNRl+DMfecn8y MS4cDp2s4Zn9vTTeKd+D+OJxyF0V61VbaGNQTx8ZAI6sperlOiFF4+fbbmph9v4aHSkE l34zIsollK997gcD9qRgHQr7nI6XlZSuUO0I6kxsod7FZf5nFw/ijo6Jw+msg0HYkNDH F0bcez5Tnivu/2u4H41h7Bh2Bjky9oy9uIZ8YnYwRYTWn6RVWodcQIWkBjDIVmeTnzyx Yq/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=IhB5hWj5; 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=axis.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a17090673c400b0086e54bcc9b5si11068755ejl.499.2023.01.28.18.52.44; Sat, 28 Jan 2023 18:53:07 -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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=IhB5hWj5; 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=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232476AbjA2ChT (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Sat, 28 Jan 2023 21:37:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbjA2ChQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 28 Jan 2023 21:37:16 -0500 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C44C423339; Sat, 28 Jan 2023 18:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1674959835; x=1706495835; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=D2SpbsDvaVPtfn4au1YKj3XBGsxTvU/Y+hYx9Ht8zHA=; b=IhB5hWj5wlhkd+gqUAhRh48g0YUdCo2MkMH5BN1d3og7agoR9M86ik3k bqDhvW8sKPpNBpCLG91c8fLkUHPF927m7BLtcD9RwGdcv/dUpUDTRNhTd wBqFHga8TxqoKpaGaUjY1Ko48NtkYqLtoFrCwnEeNkoP5lWgsYtSiM8L5 Kwi4TadHgh55xbxjYXGXW/MpZpwg/Wjv7tkDDzu4Z/Ow/uFjClDjn8G6d MbMThSMTTYvsVnpJgwaLTQjLO3rlwxW+2DwjoTtockr2/dSZ6zOMsuenG kW6akg5Ly9+nuI7LqST4hclJFsG/YSzowdWkIONPnay+OqwtdfHTYrZB2 A==; From: Hermes Zhang <chenhuiz@axis.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: <kernel@axis.com>, Hermes Zhang <chenhuiz@axis.com>, <linux-mmc@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH] dt-bindings: mmc: Add cap-aggressive-pm property Date: Sun, 29 Jan 2023 10:36:30 +0800 Message-ID: <20230129023630.830764-1-chenhuiz@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756323682689649646?= X-GMAIL-MSGID: =?utf-8?q?1756323682689649646?= |
Series |
dt-bindings: mmc: Add cap-aggressive-pm property
|
|
Commit Message
Hermes Zhang
Jan. 29, 2023, 2:36 a.m. UTC
This commit add a new property: cap-aggressive-pm to enable the
MMC_CAP_AGGRESSIVE_PM feature for (e)MMC/SD power saving.
Signed-off-by: Hermes Zhang <chenhuiz@axis.com>
---
Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 29/01/2023 03:36, Hermes Zhang wrote: > This commit add a new property: cap-aggressive-pm to enable the Do not use "This commit/patch". https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > MMC_CAP_AGGRESSIVE_PM feature for (e)MMC/SD power saving. Why this is a property suitable for DT? IOW, why this isn't enabled always? > > Signed-off-by: Hermes Zhang <chenhuiz@axis.com> > --- > Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 5 +++++ > 1 file changed, 5 insertions(+) Best regards, Krzysztof
On 30/01/2023 07:54, Hermes Zhang wrote: > On 2023/1/29 18:58, Krzysztof Kozlowski wrote: >> On 29/01/2023 03:36, Hermes Zhang wrote: >>> This commit add a new property: cap-aggressive-pm to enable the >> Do not use "This commit/patch". >> https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > Done > >>> MMC_CAP_AGGRESSIVE_PM feature for (e)MMC/SD power saving. >> Why this is a property suitable for DT? IOW, why this isn't enabled always? > > This property will benfit for the power consumption, but it also may > degradation in performance as it will prevent the > > the card from executing internal house-keeping operations in idle mode. > So it's better to config it from DT. Why? DT is not for policy. How you described it, this is policy or system tuning choice thus the job for Linux (OS), not for DT. So I will repeat - why this property fits the purpose of DT (describe the hardware). Best regards, Krzysztof
On Tue, 31 Jan 2023 at 17:57, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 30/01/2023 07:54, Hermes Zhang wrote: > > On 2023/1/29 18:58, Krzysztof Kozlowski wrote: > >> On 29/01/2023 03:36, Hermes Zhang wrote: > >>> This commit add a new property: cap-aggressive-pm to enable the > >> Do not use "This commit/patch". > >> https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > > > Done > > > >>> MMC_CAP_AGGRESSIVE_PM feature for (e)MMC/SD power saving. > >> Why this is a property suitable for DT? IOW, why this isn't enabled always? > > > > This property will benfit for the power consumption, but it also may > > degradation in performance as it will prevent the > > > > the card from executing internal house-keeping operations in idle mode. > > So it's better to config it from DT. > > Why? DT is not for policy. How you described it, this is policy or > system tuning choice thus the job for Linux (OS), not for DT. So I will > repeat - why this property fits the purpose of DT (describe the hardware). > I guess the HW perspective here, is that it might not fit all platforms nor the actual eMMC/SD card to support this feature. However, it still seems like a policy rather than a strict HW constraint. Perhaps there is a way to figure out in the host driver, to conditionally set the MMC_CAP_AGGRESSIVE_PM for the host, when needed instead? Kind regards Uffe
On 02/02/2023 15:59, Ulf Hansson wrote: > On Tue, 31 Jan 2023 at 17:57, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 30/01/2023 07:54, Hermes Zhang wrote: >>> On 2023/1/29 18:58, Krzysztof Kozlowski wrote: >>>> On 29/01/2023 03:36, Hermes Zhang wrote: >>>>> This commit add a new property: cap-aggressive-pm to enable the >>>> Do not use "This commit/patch". >>>> https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 >>> >>> Done >>> >>>>> MMC_CAP_AGGRESSIVE_PM feature for (e)MMC/SD power saving. >>>> Why this is a property suitable for DT? IOW, why this isn't enabled always? >>> >>> This property will benfit for the power consumption, but it also may >>> degradation in performance as it will prevent the >>> >>> the card from executing internal house-keeping operations in idle mode. >>> So it's better to config it from DT. >> >> Why? DT is not for policy. How you described it, this is policy or >> system tuning choice thus the job for Linux (OS), not for DT. So I will >> repeat - why this property fits the purpose of DT (describe the hardware). >> > > I guess the HW perspective here, is that it might not fit all > platforms nor the actual eMMC/SD card to support this feature. > However, it still seems like a policy rather than a strict HW > constraint. > > Perhaps there is a way to figure out in the host driver, to > conditionally set the MMC_CAP_AGGRESSIVE_PM for the host, when needed > instead? What also worries me is that there is no user of this property: no DTS, no driver, so it is tricky to deduct out when it is applicable. Anyway things which might be obvious for the submitter, might not be for the reviewer, thus I would really like to see justification why different boards (or memories) need this property. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml index 86c73fd825fd..7ca674263dba 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml @@ -177,6 +177,11 @@ properties: description: enable SDIO IRQ signalling on this interface + cap-aggressive-pm: + $ref: /schemas/types.yaml#/definitions/flag + description: + enable MMC_CAP_AGGRESSIVE_PM feature + full-pwr-cycle: $ref: /schemas/types.yaml#/definitions/flag description: