Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp532426pxb; Wed, 27 Jan 2021 14:07:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQWQKvV9ERVlDRIhWA2AElA2nTDMhAtlsOoYTKr9X3Wr2UTLD6Aa0j4ahTphG1GQmmKcCs X-Received: by 2002:a05:6402:402:: with SMTP id q2mr11071889edv.116.1611785239024; Wed, 27 Jan 2021 14:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611785239; cv=none; d=google.com; s=arc-20160816; b=Y9IDTRRK1GDdbVaSH7Ne9u9203clsljGDQuGpsd+iHBABg4zEmI8YPqGg7KmA7oOBY QTXJC1y1tp1QE7diVLdcs4I8lIBEZb8t9ZyvNq5zqdKJHGRC6cuvU0AqUD9Mt9qlTT2I DBNqjMq6hFFmeIi/8/E6Kd+Rqul9SmE+/XPmTvJrl6NpnlLmIhmh4BJrM0ZfiJ8Gooii r6ep7IGHddeCapyjd4QanCT6dHT7BTfcKd17BJcMrDsIILorjEyndv0Zov6EaV7NvMKM Z9XwLBdWI83JxiXZWjrY+UOtdO0KUB5PHZCvxPoqf8p0fiqLWf4v3aAiWzLDSAHE4eKq pKyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=l1bTTz3OfiMrfS/BMU+oFqHzTo65YKmbeN1iTyoItP8=; b=FPuMW85XxhVAnjIMr+5Y8Uzr3Q51wxpC3KejS7fNLfS+o9trvv4ENfyYwSqZ62eJCK Sh4vmIOx1t+9Tw5nRwzdo3hxbJZNFtKUGEA4ObgWXkq3jDXfhKOES2tlAS6CmbT0B+k5 y+wni9XE/SZB6fmReeHfGd9J5/Eabw4McL6815F/NqkiEhie10z1PsCQeqcF6M/Ft2Ja grjZTxx5SkzU7O2N2HpPUBxqri7G9XUITDufZ5LSMd/RCHuHsRZe1WXfv++FxFK1HNA/ Zn562oaSbGuyq4uL0C9IE81WEYi8xjgwXF+fCuBep7K6tHG1503/wr+Tcd3XiXlK12t0 JRAQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk7si1558559ejb.531.2021.01.27.14.06.53; Wed, 27 Jan 2021 14:07:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234592AbhA0K1I (ORCPT + 99 others); Wed, 27 Jan 2021 05:27:08 -0500 Received: from foss.arm.com ([217.140.110.172]:37374 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235812AbhA0KZi (ORCPT ); Wed, 27 Jan 2021 05:25:38 -0500 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 1D72231B; Wed, 27 Jan 2021 02:24:53 -0800 (PST) Received: from [10.57.4.29] (unknown [10.57.4.29]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F21263F66B; Wed, 27 Jan 2021 02:24:50 -0800 (PST) Subject: Re: [PATCH] drm/lima: add governor data with pre-defined thresholds To: Christian Hewitt Cc: Qiang Yu , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, linux-kernel@vger.kernel.org, Steven Price References: <20210125081804.13016-1-christianshewitt@gmail.com> From: Lukasz Luba Message-ID: <9e30a8e1-ef69-5929-17f1-cdb603686495@arm.com> Date: Wed, 27 Jan 2021 10:24:48 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20210125081804.13016-1-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, On 1/25/21 8:18 AM, Christian Hewitt wrote: > This patch adapts the panfrost pre-defined thresholds change [0] to the > lima driver to improve real-world performance. The upthreshold value has > been set to ramp GPU frequency to max freq faster (compared to panfrost) > to compensate for the lower overall performance of utgard devices. > > [0] https://patchwork.kernel.org/project/dri-devel/patch/20210121170445.19761-1-lukasz.luba@arm.com/ > > Signed-off-by: Christian Hewitt > --- > I have been using Kodi as my test application. If you scroll in library > views with hundreds of list items and the panfrost values the slow GPU > ramp up is quite noticeable and the GUI feels sluggish. As everything > lima runs on is inherently slower than panfrost using devices I believe > it's better to ramp up to max freq quicker. It's quite low value for the upthreshold, but I believe you have experimented and observed that a bit higher (30, 40?) don't work well. I don't know the Kodi system, though. You can check if the other frequencies are also used in statistics for devfreq device: cat /sys/class/devfreq//trans_stats If they are also used, then it OK (better than stuck at min freq). Regards, Lukasz