Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp461829lqb; Wed, 17 Apr 2024 01:15:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/1zigyYM1J5pX5B7PRN+icKp3AW717cfkoHtd430VoT1iJmRwOj5sou7skIrpmupajP/XQNeJQ0eozx1Z4qYfzmlJgbhWmY6csi4M3g== X-Google-Smtp-Source: AGHT+IHLUHJ+yGaU3nG6+Hdfy7OB/VlbTOOtsZL8JhCfMsM85xX/D5xDJn/OBClK+C38/sxOrISh X-Received: by 2002:a05:6a21:35c2:b0:1a7:a564:14db with SMTP id ba2-20020a056a2135c200b001a7a56414dbmr13949659pzc.24.1713341711119; Wed, 17 Apr 2024 01:15:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713341711; cv=pass; d=google.com; s=arc-20160816; b=WXlGgooOMfXfhL+K6XqUoXKQ/vERfP2EkI9W3apNCwbDTAPRnmL9j/EiCDRaz4vX3I Uw1sYCKEUNJ//P5bYRiUpq5ftgxaHeg3FfSn5AyltcCthXBbOHtabffavbNt+RAUrK23 O/eOeAgsS+IznwFMbQ2mYyRrYwU9vBLVzG0OG3Ny0rQnWt84I1EryB40izsR9sCZjVdp hewUXG671YTtigiu9qubCeHxp6A4uMAMbX+FhqqIn94XXE8dAwpPkQ9OAFeIogLntvp1 VYatK5tFuNcQCrt1MLZYGq16ObJL8TQ8OHsGsmC2pMO/CdGCdmEpMpl9W2NU7BrogGMt cWFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xrmESxH3RnhxlI3N1GmDb33VMABbntjU3MAxxrH6D+Y=; fh=BhGI8Y3TlzYUhUm+YoQYTvfC7rBcwdnGUST85hMfEdQ=; b=WiwUT5G/QQgLwS0EDqsUqXG9UyFTMfgPYjzpwtGayl6uL0cl6zRThpTLQM7F62Rkai OScFc+x8V+q08NtL+tvcaA8Wv36hpIU+Z5FvjjgKWS30/b+5tdxWlmZYTV29o8Bm+xpf Hc2VGzpF6P02NXrBEWGQO+MqMrCPQtudOOpxU70Rp3Of9EMQpNpApNSGv8+NjBzzpMeI sAM5520oAlWoDEGe/jcuUNm7V1L18sD/7B1badJf9Plhy/2zCoGSKL0aKjVc4LVj+5Lu nOC8GenBmeaQ8EvxEqo1lr982HOmyNuKvbk5dO7AJ1gLjHG/yMjpm4ccHQUUOmH8+0pm X7jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="RkLV/o1P"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-148115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q16-20020a170902789000b001e4621295c7si10652924pll.344.2024.04.17.01.15.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 01:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="RkLV/o1P"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-148115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A2B01284387 for ; Wed, 17 Apr 2024 08:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 084FF7D08D; Wed, 17 Apr 2024 08:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="RkLV/o1P" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D2CA7D07E; Wed, 17 Apr 2024 08:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713341679; cv=none; b=MCPFHP+WahtUAjYdfi7MKsjSxHC7mWQBZqlYOAUPwbPbjEBA4gJPTcoBTnt76z0rTLSyAHUrk/XTHlOEqmC0WeirwoEBnU/UoBDRK9hUgiKxR7w3GRcQT5RURiSkLUZ8BpMcObn1O5XcE7NULCo2sNI7j5M+G1YYlLHTqygu8r4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713341679; c=relaxed/simple; bh=nxKyq4H0ET8o57EUkk9BeFnAgDxkoDenfHs8BMo7Gwc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Bycw3nihI86PPAwWsY1JRbW25s828Vhyz40oMtJ3aHEKc8V+dJrnGRL9FEp/4DjDHi5hUGq9dr7G7Yv7C2qe946msh4NvdAOD9KJuwCWEuZCSALckC7mx+84yhnHOVc8oXCOZElhVWBtkT1Lia1HpM2MMyK7kDfRBjPL5dAggPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=RkLV/o1P; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713341669; bh=nxKyq4H0ET8o57EUkk9BeFnAgDxkoDenfHs8BMo7Gwc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RkLV/o1PU9ese6veoTStGg4K/NZagOdBE6LolLHaXNkrnLu/YEag41lL2b3bdSr37 Wh86fihPy7t3RocZmjM4JxFj080dJXzwuKOKMQohdyQAhfxnNx7wDlHFOT90mlCgqW /hXnYC462KYH89DE2Tx+Oavowvd7RNcp0LXlcYJ9UyAQeL56BZK4WLW/JI2dkCrdJg pciBYIEo/3AHBXF17BXKSmnhzALaMatAJ7lNRuXY8NdpevP1Z5dbWGCec4JlO73+L8 sZ1JCNimKuKWPqqGI4H+5aggw8DGG7JRzbtCSuFbTgbiVDeIKbr/vKs3ikzyEXFdf+ 3Y0aQxTbbaA8Q== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B6E033780629; Wed, 17 Apr 2024 08:14:28 +0000 (UTC) Message-ID: Date: Wed, 17 Apr 2024 10:14:28 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/8] scsi: ufs: ufs-mediatek: Remove useless mediatek,ufs-boost-crypt property To: =?UTF-8?B?UGV0ZXIgV2FuZyAo546L5L+h5Y+LKQ==?= , "linux-scsi@vger.kernel.org" , "jejb@linux.ibm.com" Cc: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "devicetree@vger.kernel.org" , "avri.altman@wdc.com" , "martin.petersen@oracle.com" , "bvanassche@acm.org" , "broonie@kernel.org" , "alim.akhtar@samsung.com" , "conor+dt@kernel.org" , "robh@kernel.org" , "lgirdwood@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , Chen-Yu Tsai , Alexandre Mergnat References: <20240415110012.148871-1-angelogioacchino.delregno@collabora.com> <20240415110012.148871-4-angelogioacchino.delregno@collabora.com> <4d60e9e4-9eae-4b0a-abb2-b1ad3d278fc9@collabora.com> <93db93aa7eb24a255f97a1a1e8e8d936dc908258.camel@mediatek.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 16/04/24 15:05, Peter Wang (王信友) ha scritto: > On Tue, 2024-04-16 at 12:38 +0200, AngeloGioacchino Del Regno wrote: >> Il 16/04/24 12:31, Peter Wang (王信友) ha scritto: >>> >>>> Yes this causes -> less than half of a millisecond <- of >>>> additional >>>> boot time >>>> if the dvfsrc-supply is present but boost-microvolt is not. >>>> >>>> I really don't see the problem with that :-) >>>> >>> >>> Adding a little bit of boot time to one smartphone might not be a >>> problem, but when you consider a billion smartphones each adding a >>> little bit, the cumulative effect becomes significant. The power >>> consumption of these accumulated times will continue to increase, >>> contributing to the Earth's carbon emissions. Moreover, removing >>> the >>> master switch for this feature doesn't seem to have any benefits >>> other >>> than not having to set it in the DTS. Similarly, the master switch >>> for >>> VA09 seems to have more disadvantage. >>> >> >> Sorry, but I still don't see how a few *microseconds* more of boot >> time can >> be significant, even related to power consumption during boot. >> >> If that was a few milliseconds, then I'd agree with you, but that's >> not the case. >> >> Removing the master switch has a benefit: you *lose* a few >> microseconds of boot >> time (so, boots in *few microseconds LESS*) on platforms that would >> have this set >> in devicetree, as this property is redundant with the other >> activation checks >> for those features. >> >> So, there you go: if the majority of MediaTek platforms are already >> using this >> crypt boost feature, then this commit reduces carbon emissions, as >> those would >> boot in a few less microseconds. >> > > But the majority platfomrs dosen't need this feature. > This feature is only for legacy chip which at least 4 years ago. > Upstream supports platforms that do and don't need this feature, and having redundant device tree properties performing the same checks is not just suboptimal but plain wrong. Adding to this, devicetree describes the hardware - and there is no physical hardware switch that needs this redundant property, this means that the property that is getting removed in this commit (and the va09 one in another commit of this series) is a *software switch*, not HW. Keep in mind, also, that this feature (and again, the va09 one as well) has a specific requirement to be supported - and this is what the code does even without the software switch to add it. In case there's any need to disallow such feature from a specific SoC, the DT bindings can be modified such that a specific compatible string would disallow adding the required regulator and/or boost-microvolt properties. Besides, I want to remind you that there is no reason to drop support, or have them unreliably working, or use hacks, for SoCs that are "old" - especially when this is a driver that works on both old and new ones. Regards, Angelo