Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3881085rdh; Tue, 28 Nov 2023 06:23:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRQm+Ejqq4ghfNY568kiwyuDSPgX2j9pgxFTt9crwowLuE97rgyJ/kbsCN7esqvIfBBc7k X-Received: by 2002:a17:902:c40d:b0:1cf:9790:f244 with SMTP id k13-20020a170902c40d00b001cf9790f244mr15903452plk.47.1701181434154; Tue, 28 Nov 2023 06:23:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701181434; cv=none; d=google.com; s=arc-20160816; b=Nhp2FJKrmveroXKZ4/o2skWCyqOSex+PUAsV5sWqNc+ndHgMPqzExyUa/vnsPSoD4M rd8djXePTFA1xGEHugQq2K9ALfS9a7K28YIM+1IL+VyeLuT9ILeVs+un7r1/McSqxAhT EFuTVtxLtUGkrutYq4ZloeDCb6s/zkqABGrQmEJkzqUp1A2rcJg0xOl+dsiCJYWND3z+ cS1d97R5ahWgemkbM8bNpuvJ+HntrA5mQvX6PF4SzsqsAbBHhBToCGWfvYaLhotxIj8N iDdECwOD/ygOeT3+omeGO8vIn9jN+yZvfPluZLy1pIGvR4flCzVOtCwa2CO+94MjEVeu p0TA== 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=qzAoV63DDHnxU63OcIFDPs7myfWaJKIMuSMCqBWL6SY=; fh=PkDY980M29ED0PDzBVOJfK9sT/h2y1bkSKprQMOy/gs=; b=e6wolRGOkswPWi6zxGt97S9RpJO+18t9osOKoDXxX00NMJRHcbDVQ63gCywiSFv+yk DEVIk8lZR3btXljTOIZr1//M6sWsH+1c2HuUQ/1vEDBBQheA0DvWYEAR85aUljNFxxBi e2rQJVitHMqBJsdJexkZTKtvXx1Qpn4mUZRKThkMu9wnf5NnEfgmDaRbyXYD0AClHtPh XqhCZYKoQD+7L/B4zMro4NEwKL1/6yQHkGxD1K1j7dxnUJkCnFsHprEh46LCl8jEpvRh 26ZMP4BylT3oO8Ik3gNLIccsQteZY7aww4yhLxFTYVekZmKGjStZMwYDMahyEIzD+eGJ APSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n1-20020a170902e54100b001cf9654ec69si12058982plf.323.2023.11.28.06.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:23:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A7B12809FA03; Tue, 28 Nov 2023 06:23:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346180AbjK1OXf (ORCPT + 99 others); Tue, 28 Nov 2023 09:23:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346155AbjK1OXf (ORCPT ); Tue, 28 Nov 2023 09:23:35 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 473C1B7; Tue, 28 Nov 2023 06:23:41 -0800 (PST) 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 5C434C15; Tue, 28 Nov 2023 06:24:28 -0800 (PST) Received: from [10.57.2.117] (unknown [10.57.2.117]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07CAF3F6C4; Tue, 28 Nov 2023 06:23:39 -0800 (PST) Message-ID: <95757bf5-a7c3-48ac-86b8-62e28680d903@arm.com> Date: Tue, 28 Nov 2023 14:24:39 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] powercap: DTPM: Fix unneeded conversion to micro-Watts Content-Language: en-US To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, stable@vger.kernel.org References: <20231127092819.2019744-1-lukasz.luba@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 28 Nov 2023 06:23:51 -0800 (PST) On 11/28/23 14:17, Rafael J. Wysocki wrote: > On Mon, Nov 27, 2023 at 10:27 AM Lukasz Luba wrote: >> >> The Power values coming from the Energy Model are already in uW. >> The PowerCap and DTPM framework operate on uW, thus all places should >> just use the values from EM. Fix the code which left and still does >> the unneeded conversion. >> >> Fixes: ae6ccaa65038 (PM: EM: convert power field to micro-Watts precision and align drivers) >> Cc: # v5.19+ >> Signed-off-by: Lukasz Luba >> --- >> Hi Daniel, >> >> I have found an issue due to the uW in the EM. My apologies for that. > > No need to apologize, you are making the code better. I apologize because I introduced this uW change in the EM fwk :) although I missed those DTPM bits which are now fixed. Daniel told me last week that I can easily test the DTPM using the rockpi code (because it was a pain for me in some hacks trying to test DTPM). > >> I have check those with the Rockpi dev board with your DTPM module there. >> BTW, if you like to check the DTPM_devfreq there, you can apply that >> patch. It should create EM for your GPU there and setup DTPM GPU: >> https://lore.kernel.org/all/20231127081511.1911706-1-lukasz.luba@arm.com/ >> [snip] > > Applied as 6.7-rc material, thanks! thanks Rafael!