Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1940832iob; Thu, 5 May 2022 11:22:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt0gkPLKDpMOzxpChOfd5V9O9cTKrjDgb9cpjoDCc6Y8bf5qRFLRGmi3aM1QcZGhVv3OQo X-Received: by 2002:a05:6a00:1312:b0:4e1:58c4:ddfd with SMTP id j18-20020a056a00131200b004e158c4ddfdmr27346722pfu.65.1651774943849; Thu, 05 May 2022 11:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651774943; cv=none; d=google.com; s=arc-20160816; b=ccA1xppEd1mAJv7TxJRbbC0gy/Wbf76/yFjtWuJIqmu14el8EevZKEnvINkJ0nEe1V N9bTTPV47EOy3xUBKCgfPjLoYQUnmKTH2XTuiGUc4szzC7Rs99yKh6dxvIH1u2EWc2W6 wMU4NdGwuI6LFEIwNKk2FobYkBzu9RcJVJ1ofbSmi+dTmP+rDknmq6g+NbaYKRA7Rb+K JJ5lQJOeU66bvNw7EWm1o/1+0L9kXhakPtif/L3tYtlaSKXPXYNQaQxWxrqRXtUEsZLh 3YGhb7LwWz/Z4oLIL1xZIPv13AqekR85/yiimPz0nuK8sW+t+RIyS/e3GyarhHtIvMoI 0zaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bAMFyN5y5IeejfkJsrcxH3wZekFQzzPDAzRUpG2gaqs=; b=hcYpPeUB/UZursOzAaMD6j1SIC3EV7lM1niR0lD7DttPN8iOBCyzjTxEiUz6unVHPS /mg3TkfnFPPVp4BV2DA/ZcXSESyaFaur9OtcFAhAiFe9v5D/LPyy++Y477Mgy7+zz1DV 6LSs2q36zPs6zV2rQ/4x7fu3nP3983h54bGU+nfae4MyCMWoNc1IiOFdqmHKmoXV8pmr 59B8X+GTBmx3o9gXZjMMsTVtHXYYTy8JOFMcx6yvjMQcALbG8nqoQKFRn/4w4v1MwzId /0c2E/VeC7XoI/kuV9UFgouYvgYhL3L9HiwHycO7gro7/HPIgOTKt3Wu/yTeEMUhe5a/ AJPg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a633c4c000000b003aaf01e9decsi2398312pgn.104.2022.05.05.11.22.05; Thu, 05 May 2022 11:22:23 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352149AbiEEJUo (ORCPT + 99 others); Thu, 5 May 2022 05:20:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235961AbiEEJUj (ORCPT ); Thu, 5 May 2022 05:20:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 930EF2E9ED for ; Thu, 5 May 2022 02:17:00 -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 0786E1042; Thu, 5 May 2022 02:17:00 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA38F3FA27; Thu, 5 May 2022 02:16:58 -0700 (PDT) Date: Thu, 5 May 2022 10:16:56 +0100 From: Sudeep Holla To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, gregkh@linuxfoundation.org, rafael@kernel.org, rostedt@goodmis.org, mingo@redhat.com, Sudeep Holla Subject: Re: [PATCH v4] arch_topology: Trace the update thermal pressure Message-ID: <20220505091656.2ryeyy5c7wy73uqh@bogus> References: <20220427080806.1906-1-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427080806.1906-1-lukasz.luba@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org 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). > Sorry for missing this, looks good to me. Acked-by: Sudeep Holla -- Regards, Sudeep