Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2091166ybe; Thu, 12 Sep 2019 04:30:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0YPSb+WZq+nKZFuEXVCdDSUgNdu7R1aJcDcYaBlYPVo5781eZW+Dod3/GWj1w9M3orPgF X-Received: by 2002:aa7:c40c:: with SMTP id j12mr41605766edq.80.1568287821890; Thu, 12 Sep 2019 04:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568287821; cv=none; d=google.com; s=arc-20160816; b=SPlkHK+h9+6ErjOpyUKuAKyOhjsixBFdLR/5XLMjEp6Rwy0ZAOje5tiaYTL2t7n56q 3ywkjoSoFnRowUP56cB4+VyO4rFAnP9lsbymyYThTW6PyokB7BT7+Byirlyaoo1em8BK /oogSisqCXCNz7w1Oy6D5W0kFYhFODF2wSq54deEXlL014z65UiL11yitjKC5gWj7oJ5 VnT1HVwGBnrC+l82T/wVSX//2LvCqG4ELz0UUcRVXkw9/42kG+sMm6Tdyicn1BeHabXP PKjDnebN+lHpnW0IOaXJmHmgquynzCc04qXCg0digbJ7PmP5Mw8hOlYEVcmYX6mC3sdT ibtw== 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:mime-version :message-id:date:subject:cc:to:from; bh=SfiZ9O0skccM543BdYFljoUrVUaR4K2agWXS/sqAklc=; b=uBAxQEqCw114Gb8VfJgeilDtVwGmKbtopLQZL4gm0FfH8kiPfpiJsb0QuTLdsV7aAa TgThykHr9+nHLpjDAeEL8kJvBvK/7LqiGVSx/jQ3ivH+LLDyr/ansTQ4EFAc+O4UCE5M TnvymMPLAhrSWdU0l+Ld35uqrQKKC+pxaBlabAJqnq0hFxVNw+Bbti8eYIFoL1pcuuoO Yvm28SK6I5pAmHpwBw0MPRi4XLoDy9DscsFygvoqU92fi5ZwIGVkIc98AuUAo3whnPgX zvAeOFZczFOpPWKSJKsAuLVfd1gThkJA2coVuNtSn7HDHVPY4b7Bq/DaTKy2GyELeSKs jpfA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 53si14727249edz.275.2019.09.12.04.29.58; Thu, 12 Sep 2019 04:30:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731375AbfILL2M (ORCPT + 99 others); Thu, 12 Sep 2019 07:28:12 -0400 Received: from foss.arm.com ([217.140.110.172]:32770 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731209AbfILL2M (ORCPT ); Thu, 12 Sep 2019 07:28:12 -0400 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 D3FEC28; Thu, 12 Sep 2019 04:28:11 -0700 (PDT) Received: from e112269-lin.arm.com (e112269-lin.cambridge.arm.com [10.1.196.133]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 99A573F67D; Thu, 12 Sep 2019 04:28:10 -0700 (PDT) From: Steven Price To: Daniel Vetter , David Airlie , Rob Herring , Tomeu Vizoso Cc: Steven Price , Alyssa Rosenzweig , Mark Brown , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] drm/panfrost: Tidy up the devfreq implementation Date: Thu, 12 Sep 2019 12:28:02 +0100 Message-Id: <20190912112804.10104-1-steven.price@arm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]. [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(-) -- 2.20.1