Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp604304pxh; Tue, 9 Nov 2021 16:03:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzs0XZ4CVQLASWLqipSud/vHt0qdvODVfrXZSjGrgt1EydAVU9vk4wFTn7ntWx52txt3utC X-Received: by 2002:a05:6e02:1608:: with SMTP id t8mr8790103ilu.25.1636502582016; Tue, 09 Nov 2021 16:03:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636502582; cv=none; d=google.com; s=arc-20160816; b=o9BB7pm2QKuwOcuePmlJYF+H1sNKCD9rlqWCeoOhDyexwWM04IukvWf3FTsRXsBLSs 3Z26cdkzCC+w8TvQwfyj5ILxc5YjmdQDtrQhziVHNRtnCUhx3OjBdN8VlGE79lxOdh47 mRzHRDY7xL9TbRnMDD1MIwDmEhWt388po+WQqzUrSTIPhALWF+ZX+wERfWLzny0R2und iU6kqpxL8/YdfXW3lTdIU/fCsTDuYZ+SiBxJowHI4qqRJEHYCe99t2ONAFLtrv2D/tVd I6wRf5zO9Y8ZbaKN+D6bP38IPExGXdNCeeJO76MIFrsr2reNyNWaf278P61p/wI2Hedl uV2w== 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=Nhd1cXLoARHfuxijxW1CC8tXdTo48PjAHCwKpZq0Ohs=; b=TigK0Tm/EOSUcyhFUquZ2k2ARMCRoCUg/1EQjf4rhi1OlS/iFiNFZIc7v9+TuVmejf FExucSloi3sOkPc3DNiAegGpAGyJbrIylM8CSZB8mzlzVbqgIxfdk/CBwPrvesEU5FZR ZVZa++N6P62diSgQJvKoj6t6MgKK0zli6OJMpTbjNe3Pq7RUiTGrz41O9HCTRDY4jRVo cj2u1uamMU5Z9G3bP/94zym6b2xQmi5sA89iLTLoZDuAvMtJd41/SAjGWwI1va8eC1FZ t8KQF1UK1FradGZ8FM/f0LB0DBjNivVr+lH/erKhpqXlZd9Ufe6ivKl38PDMGCdHsNi/ QsfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=IKxmNKTX; 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 s22si45594589jaj.128.2021.11.09.16.02.50; Tue, 09 Nov 2021 16:03:02 -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=IKxmNKTX; 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 S235916AbhKIPtN (ORCPT + 97 others); Tue, 9 Nov 2021 10:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235926AbhKIPtM (ORCPT ); Tue, 9 Nov 2021 10:49:12 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C277C061767 for ; Tue, 9 Nov 2021 07:46:26 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id o15-20020a9d410f000000b0055c942cc7a0so8777427ote.8 for ; Tue, 09 Nov 2021 07:46:26 -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=Nhd1cXLoARHfuxijxW1CC8tXdTo48PjAHCwKpZq0Ohs=; b=IKxmNKTX0BIWoiJVskOWy25AW2N8zqTy4fIP0lluheBJPb6RR1HGWEcAHuwHK3XXKN nQFDNMBxdgoBMZ+zfGlDzEFGyZVsZFTU9hhONQ+Yn+3HIgl0qlMdLyRHuMbYRYDyHf0v TiDtEXaMz3rSGQLrg8ez3XZs+rszck4hArdyX5U0D3YELE4JsUMpnh5JJ7C3/CuyMs/r 54vcG13G//Zju+1iQhAWmTogb8mWB7XfGblWrJFFMT7PO6hka0efOdxIxJyTvnHYMAGS qlphXdeiSYmFj9I6WwLQA+3zxKXUo8CMUH4gpUxzADZIsjcahm5O12FMBbotMKTxiXRb Yg0Q== 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=Nhd1cXLoARHfuxijxW1CC8tXdTo48PjAHCwKpZq0Ohs=; b=S8+ML/0cvDIjsB38YBC3/Nv9ST+70l5S7HO+TDwRdQH/fzojdBKgG9oaD/UBXuIpL2 owvo//DnRW7NuqXVr3CwFNEzYLSj45sSmVxPCvT3xeAARechS9sKxkxXZ1HoSlOp2wBu bLC8uUzT11BYW1BGa9xH6exvxnI9WIXy2rUdhf12UC2601piU4Gq+zdBlJOL/F/Vww4K 6tZiyOiI2T+JXO30EkDSvj4kVELjW1ktSDA7hcFiUlVtELBm+9xteDVRgk1fSlkkLVnI 8nYgKrDKzLB+5LLMnwpiuVL78VLNuynGTJrwUa7cq8cl8KCu64AjDaPYLScMdk212ipO Deiw== X-Gm-Message-State: AOAM531YOTioNpHo/Sytz6frwuQQepZwYN3SsoHvWd+Qo8GZXLpIJVsu B5lcV0lioz7M7vs+S/aAbiqb4g== X-Received: by 2002:a9d:6f09:: with SMTP id n9mr6847374otq.357.1636472785577; Tue, 09 Nov 2021 07:46:25 -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 v66sm7430632oib.18.2021.11.09.07.46.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 07:46:25 -0800 (PST) Message-ID: Date: Tue, 9 Nov 2021 09:46:23 -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> From: Steev Klimaszewski In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/9/21 2:29 AM, Lukasz Luba wrote: > Hi Steev, > > That's interesting what you've done with Rockchip RK3399. > I would like to reproduce your experiment on my RockPI 4B v1.3. > Could you tell me how you to add this boost frequency that you have > mentioned in some previous emails? > > I want to have similar setup to yours and I'll check all the subsystems > involved in the decision making process for triggering this boost freq. > > Thank you for your support. > > Regards, > Lukasz Hi Lukasz, It was actually something that Armbian had been doing as an overlay for their setup, and I thought, why does it need to be an overlay, when we could simply hide it behind turbo-mode so that if users want to overclock, they simply echo 1 and if it's unstable or cooling/power isn't enough, they can echo 0 or leave it off (boost defaults to off) - so that being said: I apply this patch https://gitlab.com/kalilinux/build-scripts/kali-arm/-/blob/master/patches/pinebook-pro/pbp-5.14/rk3399-opp-overclock-2GHz-turbo-mode.patch which adds the 1.5GHz for little cores and 2GHz for the big to the rk3399 dtsi To enable at boot time, I simply have "echo 1 > /sys/devices/system/cpu/cpufreq/boost" in my /etc/rc.localĀ  And to disable, simply echo 0 in there (it defaults to 0 so it's off and most users won't know it exists.) I'm pretty sure this is "abusing" turbo-mode, but it works well enough... Hope that helps, -- steev