Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3841698ybt; Tue, 23 Jun 2020 12:04:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxol7/RnMqMb7aQSNpgkgSKou8az35iC14DQv5/OPZlyjJRcD2s+UIlbxytKDvLUrpsMvAw X-Received: by 2002:a17:907:119a:: with SMTP id uz26mr22479876ejb.523.1592939064361; Tue, 23 Jun 2020 12:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592939064; cv=none; d=google.com; s=arc-20160816; b=UaUA9cCdm1anVu7a4y9ZzyZqMLHtyjJC5jPKubsDUMRvm2qvbFY2nW5KWmPH99nsb1 DJHuPlbM7WsWSKSKAuCe+h7vcrocSq7gST+rEyqcSqSTd24ISLT+fNFUhyGowwAIF8Pi nmv3tHHWFYgvUl1DhVrLWdAPiY+hY+83ZXw/fe3kLCW/S7s0EMBKoDm3eyQ7QfawnDOa PcsOQ8T+pYlKB1cvkQj/7yRkeZvAwk78sSWFbXzErxHWSXVrUrxRnz6JmkV2HcF/HBxj WCQFh5AISTmvaD7x9D61/aeQ3RS2CgT47fo/Ne5A5WGZ2MgBn7DkEOfjn021krVf/jvC IUzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=skyO+miiXLLCG9LLjAHPN5x0xhRDZLHtVerrFzi9yDA=; b=ZzxrQ4DzjArq939nRbWjQKwNs0UbOmxobsfQJMn5jxc1GxrBEH7GIzalZeEfkoP5oy IR6b5qhhjBo86+tqat4doW/LSyDtLMVfFN7wWESoC4IueThsyd4swy0LwKTWBSCqkvLn 7DnT0JLBHdDv06I8bA/XHNTkw3/S0GY++lROgkhQDjQbgmNjhrC7jsNowUgOaZYMiAJo btCBWkPQpafYxlhDQv5Rn2mH1KVqgqZmTa3/yDay3fWSrorcjpVGos+thBUl/PaIdddy 8jE9HiMjUQKMsNGCfXBHZQXVVYcSkFG1hnLyzbQajkJ8QhoHkL8S7gWFKyOH2Gw4mo6Z p4mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=obugMCWm; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si5647578edx.42.2020.06.23.12.04.01; Tue, 23 Jun 2020 12:04:24 -0700 (PDT) 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=@kernel.org header.s=default header.b=obugMCWm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387440AbgFWTCx (ORCPT + 99 others); Tue, 23 Jun 2020 15:02:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:45094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733138AbgFWTCx (ORCPT ); Tue, 23 Jun 2020 15:02:53 -0400 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EA28220809; Tue, 23 Jun 2020 19:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592938972; bh=6uTLrbtvnF4WK5NUKMTvr1YpsgO03unIgbgvT5gU56A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=obugMCWm9igqKMDyu3UAMnYWLTikyXJrEKloLzn1lt5zrtwmX/7hkQIagcLCHO16L B8mXqrIdxPY15qBgA0okQlPicXDA5DozQMyXkhM5CoxOzSOavOxAgLGSLqx1nI5pGc P4+9Q+P7Wd9YFm+V82jQJGRuY1u9UdgeMh1X8Erc= Received: by mail-lj1-f171.google.com with SMTP id y11so24697491ljm.9; Tue, 23 Jun 2020 12:02:51 -0700 (PDT) X-Gm-Message-State: AOAM530aEAB+vCUwo1p49w7JxGS4YLFP61AgeZOvxcrg/b1ORfTdhG5N oj0CL9RtbtAH1NZtRHkU/yuP0h305FdRzkq/zew= X-Received: by 2002:a2e:3a17:: with SMTP id h23mr11444296lja.7.1592938970213; Tue, 23 Jun 2020 12:02:50 -0700 (PDT) MIME-Version: 1.0 References: <20200623164733.qbhua7b6cg2umafj@macmini.local> In-Reply-To: <20200623164733.qbhua7b6cg2umafj@macmini.local> From: Krzysztof Kozlowski Date: Tue, 23 Jun 2020 21:02:38 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: brocken devfreq simple_ondemand for Odroid XU3/4? To: Willy Wolff Cc: Chanwoo Choi , MyungJoo Ham , Kyungmin Park , Kukjin Kim , linux-pm@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , linux-arm-kernel@lists.infradead.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Jun 2020 at 18:47, Willy Wolff wrote: > > Hi everybody, > > Is DVFS for memory bus really working on Odroid XU3/4 board? > Using a simple microbenchmark that is doing only memory accesses, memory DVFS > seems to not working properly: > > The microbenchmark is doing pointer chasing by following index in an array. > Indices in the array are set to follow a random pattern (cutting prefetcher), > and forcing RAM access. > > git clone https://github.com/wwilly/benchmark.git \ > && cd benchmark \ > && source env.sh \ > && ./bench_build.sh \ > && bash source/scripts/test_dvfs_mem.sh > > Python 3, cmake and sudo rights are required. > > Results: > DVFS CPU with performance governor > mem_gov = simple_ondemand at 165000000 Hz in idle, should be bumped when the > benchmark is running. > - on the LITTLE cluster it takes 4.74308 s to run (683.004 c per memory access), > - on the big cluster it takes 4.76556 s to run (980.343 c per moemory access). > > While forcing DVFS memory bus to use performance governor, > mem_gov = performance at 825000000 Hz in idle, > - on the LITTLE cluster it takes 1.1451 s to run (164.894 c per memory access), > - on the big cluster it takes 1.18448 s to run (243.664 c per memory access). > > The kernel used is the last 5.7.5 stable with default exynos_defconfig. Thanks for the report. Few thoughts: 1. What trans_stat are saying? Except DMC driver you can also check all other devfreq devices (e.g. wcore) - maybe the devfreq events (nocp) are not properly assigned? 2. Try running the measurement for ~1 minutes or longer. The counters might have some delay (which would require probably fixing but the point is to narrow the problem). 3. What do you understand by "mem_gov"? Which device is it? Best regards, Krzysztof