Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2383497lqt; Mon, 22 Apr 2024 09:12:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqemr7TISN5tJB68Px/UslctoKe/9yupcHkyq9tPDzsTS5HF6shXHB0LjSnpgNpuR3nVreBZIymtwH8Gbr9/ecftTdnW9O8GzHDqLMRw== X-Google-Smtp-Source: AGHT+IHuW2GXBeomsCnYlIQ/Nz3yIm/mKvHVxxCoUWOyhoniSa+65MbijGmZmvlgmg19NVEmmu/f X-Received: by 2002:a05:620a:24c2:b0:790:7837:ad1 with SMTP id m2-20020a05620a24c200b0079078370ad1mr167942qkn.22.1713802354940; Mon, 22 Apr 2024 09:12:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713802354; cv=pass; d=google.com; s=arc-20160816; b=iGFrQEk++T0MJdwtHmCjBtpZnvar7U9MHlGyghSAg7B/wnjO7g0WsaEm1k4vhmhz7u QuwTrqfjIpOggdEJA2ttTmvRP5oTCO6flB991IxuWN8+VIWlBqj3LXUeLLXFK45dwjM1 YL7wgRDMGzFlMIEP8ps20ecQtIX7sBOlfLtQZKqH+Lribx35L0LN33PMGeUFQy08kDVE XTylvSWan3Fh/NfNcPdE3bHnE4g37I2LHCEHk5YhtyNvVB2Aes41G2yKa3eazKF5ls81 aviBpcTS6MjykJVK9fOZvz15qlRC+GmVob/d1tiYBnDpHblWZTqzHmCKem4k+r+1ZW6/ LbKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=PnFFhvINgBkGoeGxt72lLRxIj0jus3I5w0uDFrtanEw=; fh=5LSiQM12rUZ1C1kd/wjSmUqSq8lEseeGbZBRgdWaElM=; b=lKxzDHfKsgc/Z65x7NIQ4yZmGyUk7bDSc7C/uJHQ900/g1N1ksOOVHLGMwS+vrukF/ k3sEhKjlAUAaSl+1IyUnYWh3fFhrGycgYbRQNvwToPpOwoHCWjPzsiUrCJew6O12sjOc RALHhBZUitLpJB2J/XndCvfmg+6e2M66moCP3gxsecc3MlTuVKqMVqVqKECL4pEe4+Bx 46w2BhLBiJ43XtY9B2r/9gZUGDZanfcyBDeXQJNaBd0bCqisQ0SB+90IEkcbVcxhdozH imLPF2AlsC6Q6RMnH9ogcOzPVUNsjUvhGTtDlfEbhFgRuCk8ak39/PygBZ5SO00xD1p/ GyHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gvPQGwEr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-153682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bj21-20020a0561220e5500b004d33c03d080si1578673vkb.27.2024.04.22.09.12.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 09:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gvPQGwEr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-153682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 9DE581C20E63 for ; Mon, 22 Apr 2024 16:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1840F15359F; Mon, 22 Apr 2024 16:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gvPQGwEr" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9134153581 for ; Mon, 22 Apr 2024 16:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713802348; cv=none; b=jaW3a8GQHg0SDR7KxUO+YmleSNqPy0Px4Dykq8AHqajUZOsI9xVb0P5Lb0iskMKTRJkPG0DZ4iU9Ngezb/1DigED5jDLXV+IGbMXaf4ula3pMwaIW4DEaMqPvQTC3wQTbTPc2uSVXUe8YHeJ99n4u8UcpIKJSazb6548oIeQK14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713802348; c=relaxed/simple; bh=pyespoIenYOvwr+vFAWDKTKpySEFKhKzEmeVBB6ayjU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d7+h+58kMiMA9T1FTz2mjBRWIoSxDlUqEdKQgcqcgnd9vopgZYW62pEqfAqbNKiiCYxllWKBy+LpxsIFHtQhXamJbK3/MnZDo7NPglPkyW1FJfVvem9O9QzFMjPPUo9DdC+z9FnVXOH+ksGbRsYpAn8tidVpatWtkKEHJm4cj9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gvPQGwEr; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-418c2bf2f55so31283075e9.2 for ; Mon, 22 Apr 2024 09:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713802345; x=1714407145; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PnFFhvINgBkGoeGxt72lLRxIj0jus3I5w0uDFrtanEw=; b=gvPQGwErFwllCkbn3pU4ylHAktTYu3QKFDkqJT/+hHGLEgFPUxS/nPxMXCuhS6pILp o4z5UHtjnhaT8G9kdcaHEq583d1OgaqoTit0w3t4kzCFF3tq3NyCuZRkIo57EmPIDVcn OUzDG5WecjuzyvO6WnpDVU3COv/rNFRiGFS+1rpdYyYPZYcNrDLlweiX8olkJWbDaYR4 KPUOr1V33UWn+2MxNz96gQWrbw6Ej7qXhXm4eewwxTEiSRAk107q06gVs9NMVa5Q+VEr 6u/5grM9tzGlrEk76WQROD1v8ToIVdoP50c1jeUP4SFfANIuHmjLsua2vx3tnRAFKKh5 0SlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713802345; x=1714407145; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PnFFhvINgBkGoeGxt72lLRxIj0jus3I5w0uDFrtanEw=; b=lkdT0bi9Ya7CjNezVMkJPWVOnwbbMd6xX74Fi3wwy+s2iGuVBEaLdoOpgbeglxq0bI O1ZXuAgkFr1B54DnV22f8zlefLdFtY/ekqao6L6bGUn+tR1z2QXoTDj3MGefo0b3ZNEc x/U5nXJ/6Sv79zAxNL+jVw9hoOk315Uw6pIFaAerH2euQf8E5SST/TlVrDeGB2dCB7T9 ByNj2eT8/U5/b3p+nI1vcJHwK5YXX9Gqrq6YFPlAI/93ud9AyFFpuDsHwcSHGS8A3I6A rRWazzQ7nSr84lmYsccS4ItiEbgC5raWbHmExXJldOF4wIHxa3wksCBwwu7Ywio7ZWHi aVNQ== X-Forwarded-Encrypted: i=1; AJvYcCU2rmRJEgERWpGvmwTXfaV7T0kB4MiS1ZQaGC3Ihk0F9RMdb52wUGMWz3OaURnfKtTkFXKRH0Bd+75KYl+ssFkozm2dAJTmJj/TQCFC X-Gm-Message-State: AOJu0YwbpeonkJJ+pbbyKgCaSSm9tDuy3/p6msmkhjfLCTQcUMjagRaQ 4t5f/E7OabXjpiEE4H0+b+OuUO8JxHRvRcGrT6VqEYH6BgjbJU9Rm8SchMMJYzv2/pLRQjtXzLi z X-Received: by 2002:a05:600c:1547:b0:418:e08c:817 with SMTP id f7-20020a05600c154700b00418e08c0817mr7012270wmg.32.1713802344362; Mon, 22 Apr 2024 09:12:24 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id v3-20020adfa1c3000000b0034b61423d54sm22412wrv.106.2024.04.22.09.12.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 09:12:24 -0700 (PDT) Message-ID: <2acea3c3-5c8f-4f3c-a275-743c3fbfd2e6@linaro.org> Date: Mon, 22 Apr 2024 18:12:23 +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 v1 0/3] thermal/debugfs: Fix and clean up trip point statistics updates Content-Language: en-US To: "Rafael J. Wysocki" Cc: Lukasz Luba , "Rafael J. Wysocki" , LKML , Linux PM References: <4918025.31r3eYUQgx@kreacher> <3a8f1978-c5df-40d6-91ca-276431bb01e1@arm.com> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/04/2024 17:48, Rafael J. Wysocki wrote: > On Mon, Apr 22, 2024 at 5:34 PM Daniel Lezcano [ ... ] >> or we should expect at least the residency to be showed even if the >> mitigation state is not closed ? > > Well, in fact the device has already been in that state for some time > and the mitigation can continue for a while. Yes, but when to update the residency time ? When we cross a trip point point ? or When we read the information ? The former is what we are currently doing AFAIR and the latter must add the delta between the last update and the current time for the current state, right ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog