Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp382278rdh; Thu, 23 Nov 2023 06:33:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGp8H6eonrPy4sy9Zk488O1bzqqflULUL5atJqN6r2IPKiiB2lhvkEN6u5nYRVYrQySRQEc X-Received: by 2002:a05:6a00:984:b0:6cb:8dba:ce6c with SMTP id u4-20020a056a00098400b006cb8dbace6cmr6288592pfg.18.1700749984779; Thu, 23 Nov 2023 06:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700749984; cv=none; d=google.com; s=arc-20160816; b=cQS/htfTSf8+SneanYbl8mRtVTPsyAFfBaFqnPAwejlQY+P/DdQGh9Dl2/epEq25tx OjjJRmdoVwryIEUop8Ht4P/oJkWWWAdOhFcglP/30A/vOfol/mfoNTjNUxw1B6WuK/kF ADssro+DVp78cK8Tm1i95nFwG3gLm9Ngp8AE9kL47MDXb9W2SapFlncXmAjzN6AOpGoS S8jK/IGivz3Wf5FOXgNPhKLu3zJo/PWN0xyNeAtrllFn9kPWzGLJviqA0vQ8a+xqQf5e 9IX0WK3bMFbJZ6OoVcxy9HId4GR+ohiwPtfSOHNVVJrJfSPcPK7k1pOWuDZgtah08vWE fvkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=yRyoALfhntdhaAjv7/JHcu/d0imynVM0OyrC1Fo/nvg=; fh=auQ/MxRhWdqXtqUH91K+g5QEVC/37NXicyPFMPjKwbE=; b=MmZ7/WwCBLG1tjA/GipD9TNOdkDNTvczBK3UBtKJMAzB6Du/AixtkCHi5fJGh+p7Qv UMeDCrnDb/XQd8LVgJC3a1crY9FDA4R0VZ+w+vsIEkTDI/txNnR+PHcbq+ajkE6JH8Go zdc92eophv48TgBPewa8NJqH1wfLLiinUz+urApmsan7JFsNv3O4lxwVikvahhYu/qxT xsuzrQfq+hyPzlnUbVRZmsbJIs+0BuHFByBX0cCOeLXkJZcWi7UC+YE6kjuKEzd5ZOAW S488le6tiyoOCgBx9Cip2oFjP6Kab3eDYgP5EnG6yoxrJL7vSQ/GTh9M0rvojTioJbEZ /tbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f13-20020a056a001acd00b006cb6a3acfafsi1400671pfv.21.2023.11.23.06.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:33:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 597368089872; Thu, 23 Nov 2023 06:33:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345806AbjKWOcq (ORCPT + 99 others); Thu, 23 Nov 2023 09:32:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345772AbjKWOcp (ORCPT ); Thu, 23 Nov 2023 09:32:45 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA081B3; Thu, 23 Nov 2023 06:32:51 -0800 (PST) Received: from dggpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SbgV61xj0zsR57; Thu, 23 Nov 2023 22:29:18 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 Nov 2023 22:32:48 +0800 Subject: Re: [Patch v7] ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241 To: Sudeep Holla , Sumit Gupta CC: , , , , , , , , , , , , , , References: <20231123121433.12089-1-sumitg@nvidia.com> From: Hanjun Guo Message-ID: <6ccd1598-3c8b-1290-9494-01a3cdbb3003@huawei.com> Date: Thu, 23 Nov 2023 22:32:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:33:02 -0800 (PST) On 2023/11/23 22:00, Sudeep Holla wrote: > On Thu, Nov 23, 2023 at 05:44:33PM +0530, Sumit Gupta wrote: >> From: Srikar Srimath Tirumala >> >> Current implementation of processor_thermal performs software throttling >> in fixed steps of "20%" which can be too coarse for some platforms. >> We observed some performance gain after reducing the throttle percentage. >> Change the CPUFREQ thermal reduction percentage and maximum thermal steps >> to be configurable. Also, update the default values of both for Nvidia >> Tegra241 (Grace) SoC. The thermal reduction percentage is reduced to "5%" >> and accordingly the maximum number of thermal steps are increased as they >> are derived from the reduction percentage. >> >> Signed-off-by: Srikar Srimath Tirumala >> Co-developed-by: Sumit Gupta >> Signed-off-by: Sumit Gupta >> --- >> >> Sending this patch separately as the other patch in the series is >> applied by Rafael in v6[1]. Revision history before this version is >> in the cover letter of v6[1]. >> >> Please review and provide ACK if looks fine. >> > > For arm64 specific changes(a minor nit below though), > > Acked-by: Sudeep Holla > > > [...] > >> diff --git a/drivers/acpi/arm64/thermal_cpufreq.c b/drivers/acpi/arm64/thermal_cpufreq.c >> new file mode 100644 >> index 000000000000..d524f2cd6044 >> --- /dev/null >> +++ b/drivers/acpi/arm64/thermal_cpufreq.c >> @@ -0,0 +1,20 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +#include >> + >> +#include "../internal.h" >> + >> +#define SMCCC_SOC_ID_T241 0x036b0241 >> + > > [nit] We really need to find better place to define this globally and not > locally at each usage site like this. We already have it in GICv3 driver. > But that can come as a cleanup later if it causes issue for merging this > change. Agreed. Looks good to me as well. Acked-by: Hanjun Guo Thanks Hanjun