Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7908817rdb; Thu, 4 Jan 2024 11:24:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEezb03cJynU4flPHNVodIMcURrHiWcGyy9XtOpu3QRyL59H4j5xHgxbkYbRSJ1wbiKBsQW X-Received: by 2002:ac8:5a11:0:b0:427:e9d6:1f65 with SMTP id n17-20020ac85a11000000b00427e9d61f65mr1078226qta.124.1704396272722; Thu, 04 Jan 2024 11:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704396272; cv=none; d=google.com; s=arc-20160816; b=XYUt33hdwZnloBx4p06OHV61HRLYl0T+8sABUcG9jh5YcKNiZUu6xRn9ibqsbjPyGj 22E2C4iP8TldeUpiT9ub0gK1NhyGQBiss7xfWpw43UitzdeSzTUCBQcUCp3HPYVV9VZU +0pWmV+x/xns8jtQI4skQUJSI5XStIeZh5YIJAk7SoYjeStfAi5ZEGkmZTtuIX6nq/gp r6BHooIyfFxrDdVHfKOZvcrdD1vjGjqepjiJhJCpmz70Fv1JAkVCWcTdCu8Xo4AuZzAp nl1moYm3Afa8bEH7nnLzAqsNHYwydgUPgPPJmb5I9RFe+JgrNg5Y4qYS9e1IUTKe2004 U1IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vP64jz0/VAK3xfeL/8CfdG5CwhX3wPofMDHlLSKDnNM=; fh=SxHhTsAdJqr/LLyiPt/hO9HGS2MvCviLtaUdSWFtlDw=; b=JIqGWcWv4wj0yBs1/CWvntZu7qZuTJ4OE/KLXKxsZJ7CWnvA38r7zkVH58o8RIt8dw eaVccaIIbmGEvGDW8QJBNPbGe54bPQQ7cdzS+5F9TkMDXZ0dGwmBaIlFGpLYeNjk6WOw 7MQbO6rssYmNcAx68LUrkXCmUv/6zHKTN07pM0ZKpEMLPab0J6atRW3L++Dfh6BRqc3V bQWdF+DBuOLp32gjb9X3doJL0I9L/w0gm9Ju3G3IH52iZPDv9G9j4m/JRLjkCOfADV8i inGHsmzZrniDHT5f9FRzQ5TT4sgmhDjx2XDwHFmZkYWCbRzd/Jo0ENYtj6yA9EigSAph ElYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=lZuEGPyN; spf=pass (google.com: domain of linux-kernel+bounces-17152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17152-linux.lists.archive=gmail.com@vger.kernel.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 ex19-20020a05622a519300b00428fb492ddfsi171396qtb.283.2024.01.04.11.24.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 11:24:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17152-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=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=lZuEGPyN; spf=pass (google.com: domain of linux-kernel+bounces-17152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17152-linux.lists.archive=gmail.com@vger.kernel.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 6BBAC1C228FA for ; Thu, 4 Jan 2024 19:24:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32A9C2C1B2; Thu, 4 Jan 2024 19:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="lZuEGPyN" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 ED4EF2C6AF for ; Thu, 4 Jan 2024 19:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a28d61ba65eso104430266b.3 for ; Thu, 04 Jan 2024 11:23:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1704396238; x=1705001038; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vP64jz0/VAK3xfeL/8CfdG5CwhX3wPofMDHlLSKDnNM=; b=lZuEGPyNKaZ47Yqk/JSy8z5LHLC9wiyQHaoia4AiwaBGIl5EU++NeuC0wxXg2v245S FBUbVhOJrHjQZTqN+Y1qYFUtABeeVcZwg87+TqCoArZazWhnf5vwbQ/Fj+BXUDzcEy5D VFiQehFo9bXCjcc6F0Qt0QrkAuqJdl4Yb9v6vGSuTaK9qqewLpm8kRg/swL6A07tDI2N 9Dfz9E4VOCHOGTKoQQ4y+DK20R9KoxmR2fws9U8bG+pVPl9jKStwsnvti9xpXxW5t9vu 0Hdpidbv9wr/1kG4/pYLzz0ww6DNbmiIcVtD/cFJpnITDEbQxQ0AOKJ0+BZYMIi0y7+t 2naQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704396238; x=1705001038; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vP64jz0/VAK3xfeL/8CfdG5CwhX3wPofMDHlLSKDnNM=; b=LTP9Ibho+dbVPWH9rkt4N8XscalOExsDtEk26MmqYn3KmkGV+DvGAodkYHX33ytaRv tQwNc0cHrsjCGzHIRANd0SpEJXgtBs9iYaBOkR1l83aSfs5YlcTuKOkpqqLYaHPzde9g 0jFc8Rn08PYc4g87k+coipnBkCzh3KgT+VVb/rztDnEdux/Ik+ULAMRGDMA5re4vSxmw Z3gFVN5gwThwVYs9JwHbr0+1+fHxfTpthHWVCzThqmKcXIr6iF6tcQREy/U/jbCkCA03 NXf0I51MeT0aFdAeoblCoblgG4OeNQl98t/vNqgsQHz3c7Gn6beeuLfhrc3XpjTuyPpy 5uwg== X-Gm-Message-State: AOJu0Yyob+7SoIIXU8jyCDYLfgxsazpTo0yF3J6QzuE0R0ag9pnrvS3M D7sGP4unNZ/XNf0IfrkPS7FFpsZZat7cnw== X-Received: by 2002:a17:906:3606:b0:a27:2f10:fa06 with SMTP id q6-20020a170906360600b00a272f10fa06mr431974ejb.109.1704396238232; Thu, 04 Jan 2024 11:23:58 -0800 (PST) Received: from airbuntu (92.40.216.189.threembb.co.uk. [92.40.216.189]) by smtp.gmail.com with ESMTPSA id ex15-20020a170907954f00b00a26ae85cfeasm13297121ejc.28.2024.01.04.11.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 11:23:57 -0800 (PST) Date: Thu, 4 Jan 2024 19:23:55 +0000 From: Qais Yousef To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org, dietmar.eggemann@arm.com, rui.zhang@intel.com, amit.kucheria@verdurent.com, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, len.brown@intel.com, pavel@ucw.cz, mhiramat@kernel.org, wvw@google.com Subject: Re: [PATCH v5 15/23] PM: EM: Optimize em_cpu_energy() and remove division Message-ID: <20240104192355.mrtqnek2cyw7rlkd@airbuntu> References: <20231129110853.94344-1-lukasz.luba@arm.com> <20231129110853.94344-16-lukasz.luba@arm.com> <20231228180647.rwz4u7ebk5p2hjcr@airbuntu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On 01/02/24 11:47, Lukasz Luba wrote: > > Did you see a problem or just being extra cautious here? > > There is no problem, 'cost' is a private coefficient for EAS only. Let me ask differently, what goes wrong if you don't increase the resolution here? Why is it necessary? Cheers -- Qais Yousef