From patchwork Mon Feb 26 05:08:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 129526 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230087lja; Sun, 25 Feb 2018 21:09:32 -0800 (PST) X-Google-Smtp-Source: AH8x224jGA00ULnReit+7Ywo73BuYmL/FihwmZhQ4qd3shJt6FbNy9t6w4OZ0fuT+vxGwlYSuXL/ X-Received: by 10.98.82.138 with SMTP id g132mr9448675pfb.120.1519621772111; Sun, 25 Feb 2018 21:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621772; cv=none; d=google.com; s=arc-20160816; b=IW5IGmrZROfBfZtpKg7bIMNfq/Ua/lze2BFdXt0jSsnWQdr0gfS3lZ5JpP3koS5IDB DB0ORn1O7LZmFYf5ADbF30MUPuaFkSFetJmEgIcHTAg1FY/11IEDoias/RJTnLGIbAC+ D1PKDaJoIgPRqj9ZFlNJP9LZtVkXOYNIF7Fq+g+IkcSr3oKWiFx3ecVVGve/ewOH266u DQr3Yzj0G9qmYfBq5rByfKnvVq2Af3uyhZQNa4cYIGNTY06vNcBPJCX6kXU4J4ZWF3kd 4KTHwGnVgRA1aVD3fNXdbi6sz8ODiQgoU540CwDnaML4aA0RUbXorAP31v7wbew/KqGy 2iJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=mE+fzcP0oubLKWxY/hecctgac45O6op490b1yEZtweQ=; b=aFQWow0nH4R965NXnrUUPcZ4XjW4L66Ofigt6TYOb25Q3pf3ePGhRThP/Uzcn3XQfh X2tdH0AsyEl+mDStFYaUxLp3qpf9JXT32A9outk1JfcsWdTo4DT929Vl3ypS5SmxxA5V ImuQwOSueKj7AJ9fb8zYYvnu9+HhpCd2nQkQ57VXdHzST5/B++WBcuootbeXHhi/YGdC PMDl4l8mMzFVqk5mrPb018EuurgUCT4asqLm3wESNwz8H9LUN620HNzmtscvfsgvr+dO ZtU5bwLMbnRy2ErjrymRjiuGNNZXmTrU0JcH+K2bqAOuk6XDXKnekudtCGrbnp79PX1v +7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OG68hUGT; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32-v6si6199354pld.217.2018.02.25.21.09.31; Sun, 25 Feb 2018 21:09:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OG68hUGT; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751544AbeBZFJa (ORCPT + 11 others); Mon, 26 Feb 2018 00:09:30 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:39964 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeBZFJ3 (ORCPT ); Mon, 26 Feb 2018 00:09:29 -0500 Received: by mail-pl0-f65.google.com with SMTP id i6so8659579plt.7 for ; Sun, 25 Feb 2018 21:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=mE+fzcP0oubLKWxY/hecctgac45O6op490b1yEZtweQ=; b=OG68hUGTE/rpnJ31ih//XEr4HeRnvE+h0+QdqBz+mrzjbxKYtoTXj8GzOPfKtxir6o xK0vhNItK5nnIhEshljzEfxq66MjatIK+VMi2AbBvFkIUwgTYNmqDp/YialDQPE9DbX0 oK74ern9sFZmDA/Z8wSv25SlGDQyquIabXSPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mE+fzcP0oubLKWxY/hecctgac45O6op490b1yEZtweQ=; b=G8t2lLZcCzvBDQBO4nfGZYPb88VkDo72vogRLjTHgT3ymjsVF8e0QQbwbjJd+g/Wcl Vdh5Rwp/STUEXJ4D1mUWxqXM6/CLSkGhW82Ye9a84wKyjCCqed88tO6G3Mt1y0MW6FJP v20ppcFQBNF7WdBC8gF6xk49pYXu6+P98fDHpzeMi6jaMbDVHJaVBSyXhNuDoxBB1O+k v7NJBpoj8lhbTAc0gxL8L9lb8jrwAqwiRGXs63Uoas4tAmfKg4KaKvyPJXQlOKJi36Nb JdLgUde7iRG0x9Yo+IFm+Q1oeP2O32JqrAMw50cs8KeB/ZWJdaSHZ0wneYeZHWyOtYhy 9dvQ== X-Gm-Message-State: APf1xPBMzbr4VCoF1aJXFTgPi6I8D5A/I/9VP9B5yBe/WFcT64hrV3/O ol1hxR3eFDfBIjpeq1ckMCHz+Q== X-Received: by 2002:a17:902:7c07:: with SMTP id x7-v6mr3076604pll.150.1519621768542; Sun, 25 Feb 2018 21:09:28 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id k195sm11281654pgc.61.2018.02.25.21.09.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:09:27 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , bcm-kernel-feedback-list@broadcom.com, Benjamin Herrenschmidt , Brian Norris , Florian Fainelli , Gregory Fong , Jonathan Hunter , Krzysztof Kozlowski , Kukjin Kim , Markus Mayer , Matthias Brugger , Michael Ellerman , Paul Mackerras , Sudeep Holla , Thierry Reding Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 00/27] cpufreq: Stop validating cpufreq table in drivers Date: Mon, 26 Feb 2018 10:38:43 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, A patchset [1] sent last week already updated the cpufreq core to start validating cpufreq table if the policy contains a valid "policy->freq_table" pointer. This series updates all such drivers to stop validating the cpufreq table directly and let only the core handle it. It depends on the previous series [1] and two cleanup patches [2][3] and is rebased over 4.16-rc3. It is already tested by the 0-day testing infrastructure and no issues were reported. -- viresh [1] https://lkml.kernel.org/r/bd8c6133ad0bdd56c936802bcf26878d7cbdb679.1519279148.git.viresh.kumar@linaro.org [2] https://lkml.kernel.org/r/77d470741dab32c2076a35253b9c0c2f0136583b.1519293292.git.viresh.kumar@linaro.org [3] https://lkml.kernel.org/r/6b737a9c285840b4b2036fa51b692ee835664ec8.1519358505.git.viresh.kumar@linaro.org Viresh Kumar (27): cpufreq: imx6q: Find max freq from frequency table itself cpufreq: Don't validate cpufreq table from cpufreq_generic_init() cpufreq: acpi: Don't validate the frequency table twice cpufreq: arm_big_little: Don't validate the frequency table twice cpufreq: blackfin: Don't validate the frequency table twice cpufreq: brcmstb: Don't validate the frequency table twice cpufreq: cpufreq-dt: Don't validate the frequency table twice cpufreq: e_powersaver: Don't validate the frequency table twice cpufreq: elanfreq: Don't validate the frequency table twice cpufreq: ia64-acpi: Don't validate the frequency table twice cpufreq: longhaul: Don't validate the frequency table twice cpufreq: mediatek: Don't validate the frequency table twice cpufreq: p4-clockmod: Don't validate the frequency table twice cpufreq: powernow: Don't validate the frequency table twice cpufreq: powerenv: Don't validate the frequency table twice cpufreq: ppc_cbe: Don't validate the frequency table twice cpufreq: pxa: Don't validate the frequency table twice cpufreq: qoirq: Don't validate the frequency table twice cpufreq: s3c24xx: Don't validate the frequency table twice cpufreq: sc520: Don't validate the frequency table twice cpufreq: scpi: Don't validate the frequency table twice cpufreq: sfi: Don't validate the frequency table twice cpufreq: sh: Don't validate the frequency table twice cpufreq: sparc: Don't validate the frequency table twice cpufreq: speedstep: Don't validate the frequency table twice cpufreq: tegra186: Don't validate the frequency table twice cpufreq: Drop cpufreq_table_validate_and_show() Documentation/cpu-freq/core.txt | 12 +++++------- Documentation/cpu-freq/cpu-drivers.txt | 6 ++---- drivers/cpufreq/acpi-cpufreq.c | 20 +++++++++++--------- drivers/cpufreq/arm_big_little.c | 9 +-------- drivers/cpufreq/blackfin-cpufreq.c | 3 ++- drivers/cpufreq/brcmstb-avs-cpufreq.c | 6 +----- drivers/cpufreq/cpufreq-dt.c | 8 +------- drivers/cpufreq/cpufreq.c | 9 +-------- drivers/cpufreq/e_powersaver.c | 8 +------- drivers/cpufreq/elanfreq.c | 3 ++- drivers/cpufreq/freq_table.c | 14 -------------- drivers/cpufreq/ia64-acpi-cpufreq.c | 7 +------ drivers/cpufreq/imx6q-cpufreq.c | 7 ++++--- drivers/cpufreq/longhaul.c | 3 ++- drivers/cpufreq/mediatek-cpufreq.c | 11 +---------- drivers/cpufreq/p4-clockmod.c | 3 ++- drivers/cpufreq/powernow-k6.c | 3 ++- drivers/cpufreq/powernow-k7.c | 3 ++- drivers/cpufreq/powernow-k8.c | 10 +--------- drivers/cpufreq/powernv-cpufreq.c | 11 +++-------- drivers/cpufreq/ppc_cbe_cpufreq.c | 5 ++--- drivers/cpufreq/pxa2xx-cpufreq.c | 4 ++-- drivers/cpufreq/pxa3xx-cpufreq.c | 4 +++- drivers/cpufreq/qoriq-cpufreq.c | 13 ++----------- drivers/cpufreq/s3c24xx-cpufreq.c | 5 +---- drivers/cpufreq/sc520_freq.c | 3 ++- drivers/cpufreq/scpi-cpufreq.c | 10 +--------- drivers/cpufreq/sfi-cpufreq.c | 3 ++- drivers/cpufreq/sh-cpufreq.c | 22 ++++++++++++---------- drivers/cpufreq/sparc-us2e-cpufreq.c | 3 ++- drivers/cpufreq/sparc-us3-cpufreq.c | 3 ++- drivers/cpufreq/speedstep-centrino.c | 4 ++-- drivers/cpufreq/speedstep-ich.c | 4 +++- drivers/cpufreq/speedstep-smi.c | 4 +++- drivers/cpufreq/tegra186-cpufreq.c | 2 +- include/linux/cpufreq.h | 2 -- 36 files changed, 85 insertions(+), 162 deletions(-) -- 2.15.0.194.g9af6a3dea062