Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp705320ybe; Fri, 13 Sep 2019 05:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKgiems5je5Fl6woW31qdbTpd7kEuAltGx6ydrYWGAlPT/owWZhoqNplQwsYXPGkWM70k8 X-Received: by 2002:aa7:d8cf:: with SMTP id k15mr48100609eds.195.1568376302366; Fri, 13 Sep 2019 05:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568376302; cv=none; d=google.com; s=arc-20160816; b=u+zXGWWqdx432xQBe9vfg1P9YlS1HjMfI7jdYZR/rsPfktlGW8uWIytkbuE3iPlo3X COEB2dGy98KziBwhjAhg1KU1InT7t0sGETQzUik/Hrz7N0dmZFK9q9jrp+jIOgmD7D25 LNMQZg6lC0cz22FPKreQk83h5O68K8h33J8xxHemKbcgCaV5oqFhCcQOyuqKwl467kCM M2nHjwPE6WTW09c405KOsbPPdtQ0qSleZxeVM3qyLU5eQXcOSRXOxXItBJVc+nTyUsh+ qsoI4k9yZi2OYfhblw0dTgsgb1ni9mT3hFjG+VCjc23NXQHd06yEmucs0nKk3mheC5vm zcBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=XoUE8pvnP3LtCz33ac2wiLklf7S5m41d+VjCe/TVUwE=; b=EkcPJtUYbh4xzG99zCQXryBJ+D/A7Ql8ITfyn6mLNdA2L24NSPqpLX/nh616aFKRZl y0ESgVHpND3g2omvjYpFV5MqxfJ9Pi3SDe+fM9iwNaWq+7u1F9DwxMgDdPShoNNB66Mg JfCYMPjY72mbyv/ioYhCozTTe9ps1WF2pD8MpuiumYFNLztUCrN55QHvla0OxqjU135W 3rSoo0fnpxBG8KD1NneYoiReodNan9sQNKR1mSgTiNpAtDvElCZSL6vHd3oH3JGghnBV 898TjkliEG8F51PZgZn3mLEDXZMgoNQHGUbYXm9sqjhneHk7O+eq6Lx64Wv6FXXuamGD FuIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si6211246ejb.201.2019.09.13.05.04.35; Fri, 13 Sep 2019 05:05:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728618AbfIMMBt (ORCPT + 99 others); Fri, 13 Sep 2019 08:01:49 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55404 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728312AbfIMMBs (ORCPT ); Fri, 13 Sep 2019 08:01:48 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tomeu) with ESMTPSA id 03BAD28BB6B Subject: Re: [PATCH 0/2] drm/panfrost: Tidy up the devfreq implementation To: Steven Price , Daniel Vetter , David Airlie , Rob Herring Cc: Alyssa Rosenzweig , Mark Brown , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20190912112804.10104-1-steven.price@arm.com> From: Tomeu Vizoso Message-ID: <8be4769c-3162-efbb-ea66-05b8404188fc@collabora.com> Date: Thu, 12 Sep 2019 15:51:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <20190912112804.10104-1-steven.price@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/12/19 12:28 PM, Steven Price wrote: > The devfreq implementation in panfrost is unnecessarily open coded. It > also tracks utilisation metrics per slot which isn't very useful. Let's > tidy it up! > > This should be picked up along with Mark's change[1] to fix > regulator_get_optional() misuse. This also deletes the code changes from > 52282163dfa6 and e21dd290881b which would otherwise need reverting, see > the previous discussion[2]. Both patches look great. Reviewed-by: Tomeu Vizoso Thanks! Tomeu > [1] https://lore.kernel.org/lkml/20190904123032.23263-1-broonie@kernel.org/ > [2] https://lore.kernel.org/lkml/ccd81530-2dbd-3c02-ca0a-1085b00663b5@arm.com/ > > Steven Price (2): > drm/panfrost: Use generic code for devfreq > drm/panfrost: Simplify devfreq utilisation tracking > > drivers/gpu/drm/panfrost/panfrost_devfreq.c | 126 ++++++-------------- > drivers/gpu/drm/panfrost/panfrost_devfreq.h | 3 +- > drivers/gpu/drm/panfrost/panfrost_device.h | 14 +-- > drivers/gpu/drm/panfrost/panfrost_job.c | 14 +-- > 4 files changed, 48 insertions(+), 109 deletions(-) >