Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1971309lqp; Tue, 16 Apr 2024 03:38:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfmhvNTjtcIqKr01pHatCQEbn2iBiLei0XC4SPKYJp8A9ZfV6Q6l8T65AuaGVm/iQdaiRyFwZCwjVLKuQsXEUiOdB+aHHTUe4u5s/Vbg== X-Google-Smtp-Source: AGHT+IERyXLUxRmaAERmMeCtsDX9G6av7iP/aXoH1F6+Co3KObrXX1BzOqWHZaF9PSun1fUBYzf9 X-Received: by 2002:a05:6214:18cd:b0:699:3a91:e25 with SMTP id cy13-20020a05621418cd00b006993a910e25mr6224801qvb.11.1713263924848; Tue, 16 Apr 2024 03:38:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713263924; cv=pass; d=google.com; s=arc-20160816; b=gjK40rDrHQwynirbE+r/nrGMhcDXBBPdGuab5HYSS8ku9MA6hbXPyCDPx/HbwmDK4O yLy5eZr/h4MX7jwaOwnvpbJkuA6YOY/5WWqGpUZUrxrarj3a1rFfFE3rID98nXczDS6n Wlc9xw1L8DJoCmowY8efZbzsCwUeoGx2EXWBsr3+Z4XL6KnbxNHHJ/W1dDHheo8JIQFN d1HtsZS8i49jHo1MFFg8ZJqEpXsazCog/lxAEr/FAKA72B9mRq6kAc9suG4saF0/T2us /RfP/zzNoEieOSqvv5jlqdI/djjuYEDN6LSxE6a0RO4X6D2/UjBwEp1tAXTih1qjqybM hp/g== 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=ZRv305zb1u+L8+UiHIiyOFHFfgCV1xdDeLgB4ZGRoy4=; fh=UKAuZl/RD9CBAEDl8Hp62gwmel0MXj7JuOzEZ21Zncg=; b=03sjojSGo8376MaHErNBH3/5iX2z9lpJTE2XV/vVmt0eCrplOlFoPGdrE5pjQh8fDY wXuo4sZcUlKlFuaz2kFV0rr2W1uEoIH2xesyUnsHmOahKbvhIchXpB+gcwDnMjKVxBg2 Z1JDnPaGWwEs+2uS91YR3oN08wpv1Ja5D+GfjX37Kx1vYQEwdHOLgJ+J7pIgqdCu4rrH TVS9xE8lIF3wmCIQSdluDY5vVmnah68XUmVbaRxRpSlzn5MxmVOjTlOfJ4KnM9z9LzuW /taqFctnFrNKAYabMQ+KvCwyvzORW7O/ZtdC9FNCYZc4UG8eWRBVzfko//mAAKJsPDgj qteA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=J4d6Kzkw; 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-146638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e16-20020a056214163000b00698fa2c52ffsi11704251qvw.585.2024.04.16.03.38.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 03:38:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=J4d6Kzkw; 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-146638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146638-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 77F841C20F35 for ; Tue, 16 Apr 2024 10:38:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22475127E3D; Tue, 16 Apr 2024 10:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="J4d6Kzkw" 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 D5DBC127B60; Tue, 16 Apr 2024 10:38:34 +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=1713263916; cv=none; b=Xv4QH7iACQjCRrmgwsEuYN9pweSC0GovVvdwhKwpaEXpTg/HtTm1slV4/gSGWK6U7HZDnuG0g0G4ZS2RYbHKCB/QIV5fFDcLauP7ZFXtbFhRZdt0NAoZyvEBuwOF+xxU400yrM58I8pcRXLPwidgHVpmPxV84KDXivyT/oTVdN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713263916; c=relaxed/simple; bh=pK3vpmXoyhjgc5/+MqiOTT24oZivIAniiVbO1jnVuqM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QTYAxko7+M+ks4ZaRlLUQgjGUZ97pRVgvRCip+4Fvji5yHMV7000Vm69WYNCDUTIxzjDkVtmdAgs8PtowtgLttSzQpyg0XFZtpkJvFW0OMc7wWQGrwY0Qu0GMBE6HTTqbQh7LLJOjj1uuzcumD+Xa56WiPHDTmTqcZ2nBeiO+5w= 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=J4d6Kzkw; 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=1713263910; bh=pK3vpmXoyhjgc5/+MqiOTT24oZivIAniiVbO1jnVuqM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=J4d6KzkwOJH5ozVybjyzmBm0u1oJN7TflqhG7AA63jTqV03T0tqGS1eyRsKFHcuu3 jPKyvtENm5I6a6o3xxJzwv0UWuUICe0IkDxEGQBLbExOZ1oTVpDhfbEG4LtfZofWK6 7ZHhOG5DgZO4fgZebNh2Q0ECiF42Q7x0xugerrAVdbVoaUM/MWZmEZBbRH1qsvqLt1 66hYXIDQU4uhh3mSWE7WuJ6p8A3SaH/qXQ42vb5NoUes/HdWOsOc2O7jPLBXAVPxrp ee2SRQVw0WQMGc/wkVKuQEPk+cZkTZr6hiZOTl5BX0x5puowD22lYKzIhcwbtlefwu H5HxRum/pijhw== 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 5F51F378210B; Tue, 16 Apr 2024 10:38:29 +0000 (UTC) Message-ID: Date: Tue, 16 Apr 2024 12:38: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" Cc: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "jejb@linux.ibm.com" , "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" 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: <93db93aa7eb24a255f97a1a1e8e8d936dc908258.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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. Regards, Angelo > >> Regards, >> Angelo >> >>> Thanks. >>> Peter >>> >>> >>> >>>> ret = ufs_mtk_init_va09_pwr_ctrl(hba); >>>> if (ret) >> >>