Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp326260pxb; Mon, 25 Apr 2022 10:41:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybTl0tjbfKTMaLw113j/foC0LDM3wkuQ6XcGy1TE+buud1gd+h41Bd4V7284DivPg/VQTj X-Received: by 2002:a17:90b:3742:b0:1d9:5dc6:dede with SMTP id ne2-20020a17090b374200b001d95dc6dedemr9106384pjb.92.1650908500349; Mon, 25 Apr 2022 10:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650908500; cv=none; d=google.com; s=arc-20160816; b=zYCsca9zqVes7IAxh6Tiw4aicNCr7i9kxrhJ+Qs8TVyDIcVvHrtVM+JWeqWwxoNhaz 7ko55TCqbUxSodK3lXdYfTqKk5J91FQLEEBZPuH1yNFvtdorRbdpMC8hwoPJPPkT1QGB qrK3tKpHzP3J62Zj2LSvWBngxuzRT/ucULwX1ZkrBoQHFU1CQd8avTz1DqtU5HWaNO/j ynyk/4xaKWsRpYiORP56NE/7BWvYKDFY7VgKaPrK+aa47AvJHyXT+OBqYp/kgrZiahl9 WxTOK3oda1eLm5PvYhgHsBZ75CeXUkxupC5KOkMGqlzYuoqH/MFNfArbw8z+l7u6cCWx Mq4g== 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:dkim-signature; bh=iDYvsgqiDw+G2Uh/pq0EMU34quY9vCp6m1ExVhHcGPQ=; b=Y2/pAdLtqFj7co9ezw/1MJD1sfEPqUdBhaKQN4DTko4OS8Q8Rg3Wb7EwLOcoAMBwqt QC0yIrqlL+lMVLHBDCa737xPzzpZgu01RRosga7eHSTrpLBy60kfrJnbFe4wZ+MehvQ/ eGx+a87M3N9xtVWCNsaG1Bqjfq8uoaQM5Mefvv+Qct5ygnWChHM8O5TKC8d83kOulvjR ZTdiL8IrFaawNa3hy+0hQh0EeavEmNO39PBSAlDzEoa9L9TTJU+p7pu6yXDx3M6m1uL1 m3cAwa8CjHLA2XMjQ8G9f3Zb1FGdvDAi4TLP4tCEN8U16Kal9iEabaXMdoAFg/HDRaof no3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="YGEl5W2/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902f79000b00158eb7e5faasi5313759pln.253.2022.04.25.10.41.23; Mon, 25 Apr 2022 10:41:40 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="YGEl5W2/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240786AbiDYOQB (ORCPT + 99 others); Mon, 25 Apr 2022 10:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237886AbiDYOP7 (ORCPT ); Mon, 25 Apr 2022 10:15:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 010D42B2 for ; Mon, 25 Apr 2022 07:12:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9C7A261617 for ; Mon, 25 Apr 2022 14:12:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74050C385A4; Mon, 25 Apr 2022 14:12:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650895975; bh=zwEMKKSkDVg1tfC/+WJoLnkuTK+9wkmEjucI25mBn7w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YGEl5W2/nZGZWL4S4BkS/ZoUUxYAbtgvtmsESawFfdj4Y4ItJPfVKsqu4ZFO0XXDF i3P9jgAUiqatbFNk0UuVjvliP9mKIHYML1qRWYR9yMU6LItF2lkjCWwMua5s3PccaT Ce919vbldSFQOhcitN0EWBluijCO5iNqInzfExIg= Date: Mon, 25 Apr 2022 16:12:50 +0200 From: Greg KH To: Lukasz Luba 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 Subject: Re: [PATCH v2] arch_topology: Trace the update thermal pressure Message-ID: References: <20220425135317.5880-1-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220425135317.5880-1-lukasz.luba@arm.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Mon, Apr 25, 2022 at 02:53:17PM +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 occurs > in a system dealing with throttling. This trace event is needed since the > old 'cdev_update' might not be used by some drivers. Also, the new trace > event shows capacity value, not a cooling state. Wait, why are thermal events not going through the thermal system so that thermal_cdev_update() would catch them? Don't work around broken systems, force them to use the correct apis. thanks, greg k-h