Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3808385pxb; Fri, 11 Feb 2022 08:10:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKIn3rU9740Tf5nuxHjq7EdFIH6IYUhQkyJIl4Mj3hBpidRUtt5UrPB1IFVes8YaIqCDGq X-Received: by 2002:a17:90b:1c0e:: with SMTP id oc14mr1147234pjb.2.1644595849253; Fri, 11 Feb 2022 08:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644595849; cv=none; d=google.com; s=arc-20160816; b=cDMUnKSISTAICmSaZew69pgC4vkE6rravf+m6/NrLDopLytcpiZlaFpsP8tCZnJ5Pc M6j+gFv3KqMADsdfPDB310/mUY4xu9YxQrxNCQJ9ZFypeVeiMYIYay6qvLz8FWhg6kjn IuV0vCtbQtm5ACERSWuwfpATWLNLHdfNGsux80QrE9iQuQCFniYDeEvtidTwSNJfVKRw Z5zrkKOYCDsq/+umC+YCdOcJOKSZyE4WXive2SxgsftdQUHZjbJzoxH5+HFIKKwkJzMh ReYTmHZSazQjcDKElWIUSnp309+38g0YahivA2L31gt2NGAgmE9Dj0g8/sbifTKlFLk4 eDeA== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=4qiy8OktVHN84+DezGt6YRpvDHUjWHm3on5bxfkbXJc=; b=gtA0VFlP6TKGq4Y333+OqfmPneHD/DM8B9Zf4VlDK1JrBPu+JZnG4kR7Cdn3dJQJGs iz/qXMw5i1FpO4WeKPlPnxgDZ80FnJgefKct25vfEA5NuDxGdZiyfBmESMg17mIvK5Ql GYkJ2LXJ0EZozm0inSmFH7NTrcPpyInUTk+iRkqgisZ5J6wkf3617QXuyuKLdAnno5ha mmcTBCPp1m+rshKqohcJO04nTR8Ms3klLYtWDqaynQ49OzHQefzg5leL4Kr9Jw+Pp0/d Jvc+ymCSuv4jmT+wJh5h/q9QNmbu9XbUmsmwuIzDLEgDMp4INF7UC/JFX+bcc9sDFxJ2 758Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wULt7Fnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 75si16315146pgb.118.2022.02.11.08.10.35; Fri, 11 Feb 2022 08:10:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wULt7Fnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245019AbiBKJZu (ORCPT + 99 others); Fri, 11 Feb 2022 04:25:50 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239926AbiBKJZs (ORCPT ); Fri, 11 Feb 2022 04:25:48 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1351E1037 for ; Fri, 11 Feb 2022 01:25:47 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id u1so360939wrg.11 for ; Fri, 11 Feb 2022 01:25:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=4qiy8OktVHN84+DezGt6YRpvDHUjWHm3on5bxfkbXJc=; b=wULt7FnqXC/L4Gymc0ykI6+i6dld8vhiMJC6kasAgaVpr7g05GdtAQYYGnfgMit6u3 UsUIV9yYXffSXYgnktHeR5hfAEE9UktvD41UwWzVJ4lzTFtjE9kTG3ff2raX6l5JTHKZ 91THXqClC5iSMitmw+CC42Q5y26YGeLstWWVzusgJnXVivNQaiKRszSwXbdaZnexaj2T FsW/JwOpzaHfOJNoq5Yl/2yKJowJO9udUZ296Q0qzYgkteEKyByRo4vqgHtbX6z46ZsO kGPb99U4AFHUtIuN3Zk/LJK9EzuEN/sjUh2Eknw5b+duiYvsjZ1iMjjux3H+cgVshUzu CNCQ== 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:organization:in-reply-to :content-transfer-encoding; bh=4qiy8OktVHN84+DezGt6YRpvDHUjWHm3on5bxfkbXJc=; b=PGzTOPcvd66W8Iw9Zk5DAXuprAdMP4X7i941RNU2RsIt22ntFsfZcBeTlRfKPCoa9d BN6LQ8oEzpsNigUO+H+nrxitvMFmIdhoXdYxBPBIr9/HpLdQyhmWq7MZE6NooJO2G73f 4Sg0ploKjaLG7axnTr6Gsy341iZyIqpfli/dZR1F6PcGPY5A1WFX5um3wmoth00wn4NX bZdfqJi30fe5LkGYh1ufAgPeVWV1mqy2nm7aO4PTHiis/djyU684vxrUHvM/5UM42QUS 8jTzl1/6oT4JGJZ9Jb2cqQCQ/2mXWWQxxYNcbIAWM9HmfgfTPGSarc/+UZ3Qf56Om66s Jwzg== X-Gm-Message-State: AOAM533WnyxiPOV62TL/b+AqtupM7sYLrEuJIcNPukaOQ3LAmSg9IxXA Rkl1AGPehplGEMGjVwjds2oQ/w== X-Received: by 2002:adf:f904:: with SMTP id b4mr597776wrr.183.1644571545371; Fri, 11 Feb 2022 01:25:45 -0800 (PST) Received: from ?IPV6:2001:861:44c0:66c0:97e4:3830:c79:136e? ([2001:861:44c0:66c0:97e4:3830:c79:136e]) by smtp.gmail.com with ESMTPSA id 2sm23666644wrz.59.2022.02.11.01.25.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 01:25:44 -0800 (PST) Message-ID: <3a60384a-b26f-3591-fca9-b10764bd2b24@baylibre.com> Date: Fri, 11 Feb 2022 10:25:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 2/2] arm64: dts: meson: remove CPU opps below 1GHz for SM1 boards Content-Language: en-US To: Marc Zyngier , Christian Hewitt Cc: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220210100638.19130-1-christianshewitt@gmail.com> <20220210100638.19130-3-christianshewitt@gmail.com> <8211344a481dd40f260106bdd3f03bfb@kernel.org> From: Neil Armstrong Organization: Baylibre In-Reply-To: <8211344a481dd40f260106bdd3f03bfb@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 10/02/2022 11:36, Marc Zyngier wrote: > On 2022-02-10 10:06, Christian Hewitt wrote: >> Amlogic SM1 devices experience CPU stalls and random board wedges when >> the system idles and CPU cores clock down to lower opp points. Recent >> vendor kernels include a change to remove 100-250MHz and other distro >> sources also remove the 500/667MHz points. Unless all 100-667Mhz opps >> are removed or the CPU governor forced to performance stalls are still >> observed, so let's remove them to improve stability and uptime. >> >> Fixes: 3d9e76483049 ("arm64: dts: meson-sm1-sei610: enable DVFS") >> Signed-off-by: Christian Hewitt >> --- >>  arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 20 -------------------- >>  1 file changed, 20 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> index 3c07a89bfd27..80737731af3f 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> +++ b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> @@ -95,26 +95,6 @@ >>          compatible = "operating-points-v2"; >>          opp-shared; >> >> -        opp-100000000 { >> -            opp-hz = /bits/ 64 <100000000>; >> -            opp-microvolt = <730000>; >> -        }; >> - >> -        opp-250000000 { >> -            opp-hz = /bits/ 64 <250000000>; >> -            opp-microvolt = <730000>; >> -        }; >> - >> -        opp-500000000 { >> -            opp-hz = /bits/ 64 <500000000>; >> -            opp-microvolt = <730000>; >> -        }; >> - >> -        opp-667000000 { >> -            opp-hz = /bits/ 64 <666666666>; >> -            opp-microvolt = <750000>; >> -        }; >> - >>          opp-1000000000 { >>              opp-hz = /bits/ 64 <1000000000>; >>              opp-microvolt = <770000>; > > That's not nearly enough. If that's an actual issue, the driver > should be updated not to use these OPPs, and you can't assume > that people will just update their DT (mine comes from u-boot, > and it is unlikely I will update it anytime soon). The driver is the generic cpufreq and a generic clock driver, we do not filter out the possible OPP frequencies because the possible freq is large and depends on the die revision. I don't see why we should filter out these frequencies so far. Neil > > Thanks, > >         M.