Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4469210ioa; Wed, 27 Apr 2022 04:41:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpXEZ6BwjBCdp6J0eNxGxmifV5LMH61CcTN8VyoYZrhtRuWvF3tWZXtT61YeYzFGTVjHeZ X-Received: by 2002:a17:90b:110a:b0:1d2:bde4:e277 with SMTP id gi10-20020a17090b110a00b001d2bde4e277mr31944476pjb.188.1651059667140; Wed, 27 Apr 2022 04:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651059667; cv=none; d=google.com; s=arc-20160816; b=YQ9U4pytZIButiOSAHsNFr4XsXKzcNL+GU1VSckNTd0yjjd6GFRT1oRC397V5yYB+W yuvvEhw+SxJVv7UJcmuci7DZUSK+1WI0uYwE0f4Ua1WorEhkNYh/KmD1Ncohc2veXtFU LlAd3peBl3quevjTqwNJ3riSUMZ1e7WFles4WDbHfGGEy7UjuhvdNHQPfxUETjKLWWBN YVWUo05SO8eROcl9dnO56QWxyPwIuqRrqkpxDA4yZ0BsEyRj8RO28t/D5MZ2v5Hfo5I0 z8zx93pdu28x1Kwpl7ZqKN3gVQMCPGKlUer/A06FyY9kGU7LqinLNH4Qe4+CKP371W/B psFA== 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; bh=nYLMVxOq8w4CpnGz3GHu8TdlSppxAQsnv5sTlnvkykg=; b=yZy/Oym/JEyRRnauWqOfaBcQ5XbrQ0Ld6Hu29MigDu0/K27RiWY3L8oDgU7XL9PG8N eRrmSncZZWdIUug4i9uvSWVb2u4rrhcyYpfKKecfgh7/wwFO59sGiWygYCttnLoF/pf8 d+QHetGd3gfb6Sgqn/irGJwqOkXas5hISlGr44qxJ5VKSVy1/BqlH5gA90CCbOazwBXh uNbvPdmKjvno9a2+WziQowzatfUzlIKl1P1ogTA0BFeHqS2uGg5B5LxT/t+Eu7FZgkOS 4wsQV8OzG7on8LjGg2kcZN3BqhGQkiIQp4FxbnlCh6mJqI5rxgjRXkWMhmiiSzDc8VzV 4TaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e7-20020a17090301c700b0015b5d80996bsi1701257plh.98.2022.04.27.04.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:41:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9CCBE1DFC7B; Wed, 27 Apr 2022 03:47:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiD0Kun (ORCPT + 99 others); Wed, 27 Apr 2022 06:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbiD0KuN (ORCPT ); Wed, 27 Apr 2022 06:50:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3225E36CE00 for ; Wed, 27 Apr 2022 03:21:06 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7F5D2143D; Wed, 27 Apr 2022 02:21:47 -0700 (PDT) Received: from [10.57.7.196] (unknown [10.57.7.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 06DFB3F5A1; Wed, 27 Apr 2022 02:21:45 -0700 (PDT) Message-ID: Date: Wed, 27 Apr 2022 10:21:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4] arch_topology: Trace the update thermal pressure Content-Language: en-US To: Greg KH Cc: linux-kernel@vger.kernel.org, sudeep.holla@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, rafael@kernel.org, rostedt@goodmis.org, mingo@redhat.com References: <20220427080806.1906-1-lukasz.luba@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 4/27/22 10:20, Greg KH wrote: > On Wed, Apr 27, 2022 at 09:08:06AM +0100, Lukasz Luba wrote: >> Add trace event to capture the moment of the call for updating the thermal >> pressure value. It's helpful to investigate how often those events occur >> in a system dealing with throttling. This trace event is needed since the >> old 'cdev_update' might not be used by some drivers. >> >> The old 'cdev_update' trace event only provides a cooling state >> value: [0, n]. That state value then needs additional tools to translate >> it: state -> freq -> capacity -> thermal pressure. This new trace event >> just stores proper thermal pressure value in the trace buffer, no need >> for additional logic. This is helpful for cooperation when someone can >> simply sends to the list the trace buffer output from the platform (no >> need from additional information from other subsystems). >> >> There are also platforms which due to some design reasons don't use >> cooling devices and thus don't trigger old 'cdev_update' trace event. >> They are also important and measuring latency for the thermal signal >> raising/decaying characteristics is in scope. This new trace event >> would cover them as well. >> >> We already have a trace point 'pelt_thermal_tp' which after a change to >> trace event can be paired with this new 'thermal_pressure_update' and >> derive more insight what is going on in the system under thermal pressure >> (and why). >> >> Signed-off-by: Lukasz Luba > > Much better, thanks. I'll wait for Sudeep's comments/review before > taking it into my tree. > > greg k-h Thank you Greg!