Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp615667pxh; Tue, 9 Nov 2021 16:13:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf79ilYAy/3nup297yHymLwumsZkiWGdVwwM6crAXd/DZ8WcIG+Rmy/HwNDzbON9E86UrN X-Received: by 2002:a05:6e02:194b:: with SMTP id x11mr8583772ilu.242.1636503228947; Tue, 09 Nov 2021 16:13:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503228; cv=none; d=google.com; s=arc-20160816; b=GlxqoODc/5HqpMtOux4B360+C52FD2n2Rpknkyqd7B0kt9v3IMhh8NLxKgXGycQr7L yOL4tsMGlaCjpm5cuPeHqtwySslAsDpX3ULrE/gtGvRqDlmOM24w84YeB2powNiDzvX3 K1CB9EH1XMcctyGns8MJn0ZmBkNb39F0IdShbzck1SC4+DRBgI54mCWCTEU6deWK40Kj 6NakiTi6Yf/ZzwK8VL3TULA89udnozkHgKAlJoMXJnwBEHjVxHf3d0DdDlTI9Ajm+UKA wZCfX/xKBAcrPVfRGAKfqvJ+NhtJ/7IQrddeNO8QuQznZilJwRLvnQw+JUb5i7E0jqGR 46MA== 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:dkim-signature; bh=YdPVVIaRA9wZMcPze3gudkM9XosVYjHa9S8ytOo71/4=; b=OCnJUn5U4OaBcq+DWYMYquujWkuXZ+Up4kBL8PThbJlqk9NevpOBP5pkOXELh1fgv/ Cs2OttI85ktAzzb/NrOxKU+WB3fTS97B/Amg7W4DHmvHjlUR5JzmeR4quTk8rovDPNEi HLw1x0QQX7Xytir9HiOECoDLAJPwy35Xo4iqc5I/kjprXNYtVB8R2G2BuZ43MNNS2PxY 1mImoUm4d2kzl45VEscAGqZrG78LV8PZeT2DfsgwwDWJjJpKES6eq+tzQiYKqEwMBRVx kffo9YHRwPHqXxdpwjjrkBq19QT7Wnnh1L6luHsBcZKrvHsHrrRCgSmR7v38lYRUHV+O ulPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=PV9r+D2O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si48489732jat.12.2021.11.09.16.13.36; Tue, 09 Nov 2021 16:13:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=PV9r+D2O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242974AbhKITMi (ORCPT + 97 others); Tue, 9 Nov 2021 14:12:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242976AbhKITMh (ORCPT ); Tue, 9 Nov 2021 14:12:37 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E2CC061766 for ; Tue, 9 Nov 2021 11:09:50 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id v40-20020a056830092800b0055591caa9c6so194741ott.4 for ; Tue, 09 Nov 2021 11:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=YdPVVIaRA9wZMcPze3gudkM9XosVYjHa9S8ytOo71/4=; b=PV9r+D2OqtUgjOJXgrPBeNWTsrgFcJbFCEuXvmhikRrPdG1J9r/ASKdoRvvSskX9Il HskGBwKVkwbj3qIsMU2C3sQqUo6Nja+FSnn7W8S/Xz2Hxl1PvD0/M2wO9LjANltMvxA2 1ScTcoRUmzODmo5XsBDgICGbeB+ZHUYq/Iy6SxCJVkxChK+5tl0xbc/EZB28AMxNPqyt zZkv57ukvAgRMgwljljMEP1TAnCR5IKVBc4URObFsHqQJAy9le0mG+A7Kl3GaTpLqO4B LnzLKJNrWAqmWwO/TddryaWv+YpoaZREK/ha6a1B3e//Xn2WF5KyZwP+M3aSt5Sqi9B+ reaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=YdPVVIaRA9wZMcPze3gudkM9XosVYjHa9S8ytOo71/4=; b=3i5/yd7gZFDPWyu6CrkKl8+CBw6bpT8GfpyEb+cv9BCybJ5YzuP8NGbg5U8VuCW5MY 6ORKnABnKVCXAvQ3y2fubqZWnzjrguj2fUYb9JKCjqk971G/xtDJUQql2cxzqhZuFRxx bSBGuf1VYasCr5mWtwsikjnO8w8IpABgnX8xFkQC27PaqjdBz76ozqI6PdZvJE12VhPh YzdZ6+X9Y4j4nTrBMt9pfYZLlUerxvVOiYb1XqezwpKW5gAyH2INj21i7sS+DyT7sGnr cmUtF3xyRZfjasPRixgZdfi8G+ETK2mZiYvZaChAB9UYIhJOCART5WFSNdQlkJ5qOyEW GEhA== X-Gm-Message-State: AOAM533j1inJWCZTq1Nr/O6dTfCY5z7gTD+3alrl2Y+/6fVrGTQ+Eopb SnPRC4rcz25iFFHVgZU947l+Ktngu7s3C3Tg X-Received: by 2002:a9d:d53:: with SMTP id 77mr7985376oti.156.1636484990081; Tue, 09 Nov 2021 11:09:50 -0800 (PST) Received: from [192.168.11.48] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id y4sm7903049ots.73.2021.11.09.11.09.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 11:09:49 -0800 (PST) Message-ID: <83bab944-cc89-bdf9-e187-7d61a2494935@kali.org> Date: Tue, 9 Nov 2021 13:09:47 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v3 0/5] Refactor thermal pressure update to avoid code duplication Content-Language: en-US To: Lukasz Luba Cc: Thara Gopinath , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, sudeep.holla@arm.com, will@kernel.org, catalin.marinas@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, rafael@kernel.org, viresh.kumar@linaro.org, amitk@kernel.org, daniel.lezcano@linaro.org, amit.kachhap@gmail.com, bjorn.andersson@linaro.org, agross@kernel.org References: <20211103161020.26714-1-lukasz.luba@arm.com> <3cba148a-7077-7b6b-f131-dc65045aa348@arm.com> <9d533b6e-a81c-e823-fa6f-61fdea92fa65@kali.org> <74ea027b-b213-42b8-0f7d-275f3b84712e@linaro.org> <74603569-2ff1-999e-9618-79261fdb0ee4@kali.org> <59054c90-c1cd-85bf-406e-579df668d7b4@linaro.org> <2c54dbbd-2ecb-fb76-fa9f-9752f429c20e@linaro.org> <97e93876-d654-0a89-dce1-6fe1189345e2@kali.org> <19ecab72-4a2f-1f4a-b999-d3967a4a1a76@arm.com> <676d79ca-ae2e-f5fa-1e54-253efd6934d4@arm.com> From: Steev Klimaszewski In-Reply-To: <676d79ca-ae2e-f5fa-1e54-253efd6934d4@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, >> > > I think I have figure out what is going on with the issue that > you've reported. On this rockchip platform you are probably using > step-wise thermal governor, which tries to decrease/increase > max allowed frequency step-by-step walking through the sorted > frequencies. So it would always set the thermal pressure to 0 > when the thermal throttling is gone. > On the Qcom platform there is a different policy in HW/FW which > controls thermal and it can simple remove clamping 'instantly' > and allow all frequencies also the boost one. The highest possible > frequency is passed then to the this thermal pressure machinery. > So we see the warning that the boost frequency value is trying to > be passed to this arch_update_thermal_pressure(), but we ignore > such big frequency value and unfortunately do not clean the previously > set thermal pressure. Then the scheduler still sees the reduced > capacity on that CPU and cannot request higher frequencies. > > The v4 patch would allow to pass the boost frequencies values, so > the issue would be solved. > > Regards, > Lukasz Sounds good, I look forward to testing v4 :) -- steev