Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp334675imm; Tue, 15 May 2018 02:21:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrzWjBH3kk+JpRT6mHGej5nofO44Z32tHYEorRf/MnP1E29mPi9Gjv+WYfiObPox2YwWYL1 X-Received: by 2002:a65:6692:: with SMTP id b18-v6mr11603522pgw.124.1526376112810; Tue, 15 May 2018 02:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526376112; cv=none; d=google.com; s=arc-20160816; b=qx0mE1F7e+YzdTaynYgAaR0Fn2xrVNyXvKGgT/J88dp9cL4jBdpVD1djwuVGC+KRxH vMEtezgIgOecGAxIgcbuAAgrE2OUbTEgArcfTTLvHEWONTMVh1qmn+M3D/Rh6OcI1gOt PE0mgontWeIHS7u3+Su8v3dYfoawy9QwdP6Y3WvNtNUq+S7FGNIr1+0F6bnb3tHNLTAV AJYYzNVTyQnLY05tuiI+CBGiS5HW58jIYkC/hsD1aUGN+YuqWKDsBGUbxqexFFOMcySJ lEfq4N8tnWj9wdPlD94EDdvuDFifg4FlM4Q7ajbrCgU+HyvbWxhSZ+5FIHjYotCepWW3 nSig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gbNjvgVb6Knlhy3wM7C54s0dkTmfrcBlZMlgk3CWMRg=; b=i3ScGie5M5ziDJ4xXJeYwM1EMITGZ5TxY3SZug4iVKpav9o5KaRY9elMMIlU3E13JT /xvXOb/0njPODdZzWaLP9Ttp6pqkFMQTOmTlSMtWffHTM6dRCJ/WNYFr+OfRGOpGMMJP WAV2hHROgp6RswSj4EecI8fXKVNo1NoReKANQ2ZFyeRR4YJEaWE0mtwMeiX/I6mYt5Do X5IwF6f/hgKbM0iizVJW5HZhD8F477rNh6CsFYs3J+sfyF/UvuJH2ndrVxRQo2vvsMYb fVhJwTjTu9XM+ec8b8A/bURJFy/yhPHkVgP10dBhWXgum4gsTQRJeT3CO5LhNPUBTmVd FUcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y1dnE2/u; 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=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 m3-v6si9066222pgd.58.2018.05.15.02.21.38; Tue, 15 May 2018 02:21:52 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Y1dnE2/u; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752843AbeEOJTY (ORCPT + 99 others); Tue, 15 May 2018 05:19:24 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45744 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752787AbeEOJTR (ORCPT ); Tue, 15 May 2018 05:19:17 -0400 Received: by mail-pf0-f194.google.com with SMTP id c10-v6so7414697pfi.12 for ; Tue, 15 May 2018 02:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gbNjvgVb6Knlhy3wM7C54s0dkTmfrcBlZMlgk3CWMRg=; b=Y1dnE2/uBqGHxkVFXNlWrWSiTgzbAj2HOcR1pW/i6ItZZR9w8iimZBPc7O6hrRhRaG sLo9HqJ1EBTmHgswLcrcV2GTtJMqnIA4nc00Jcp3ThoaEfCW7mRrVts4xzzyuMsGkTn2 CVaIvHdT3u6r2/t9A36Yc0QIIgAIssoFGtnOc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gbNjvgVb6Knlhy3wM7C54s0dkTmfrcBlZMlgk3CWMRg=; b=goCMDXvf8FuZF3JrlueF0uDFJTf5aACKI30dApycEzRmDKugRqTe4iOGGVQ+TQtQcQ cTmfTJtlpcnPKDxO+2thM8ooi+VOALS0pCYZdJbGCyKti2JDmsAmVhF99QtL7DRX3PX3 mLa1UcFK5GP9plfL0jWaPC3fhxKzr5VhItl268dvir24Qdo+V9YxhPs0JcTp3AUhOS3K cxaYcpb2IDhRzwIdMxzZITQEIrZKZOnHmb7hjdHV76gmQcoC7SSilInjGv3mAgGa/xt9 /ndfQ5h8hSkU1LM/Qd5cjd37bzypxW1bJLv73QgHmae0dksJ/9D4cUBZkXyBFUfzIida QibA== X-Gm-Message-State: ALKqPweqvSMqtz71AaPx5v1rZIVn0L/uw/ymsnxUq9atZ/hKunRbZogL Xmn2hABP9w5573FI5vmSq9yGng== X-Received: by 2002:a62:5281:: with SMTP id g123-v6mr14194462pfb.22.1526375955993; Tue, 15 May 2018 02:19:15 -0700 (PDT) Received: from localhost ([122.167.163.112]) by smtp.gmail.com with ESMTPSA id y83-v6sm20904273pfd.21.2018.05.15.02.19.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 02:19:15 -0700 (PDT) Date: Tue, 15 May 2018 14:49:12 +0530 From: Viresh Kumar To: Ilia Lin Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, nm@ti.com, lgirdwood@gmail.com, broonie@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, rjw@rjwysocki.net, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rnayak@codeaurora.org, amit.kucheria@linaro.org, nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org Subject: Re: [PATCH v7 12/14] cpufreq: Add Kryo CPU scaling driver Message-ID: <20180515091912.zhc2uo7js7ukjvl7@vireshk-i7> References: <1526375616-16904-1-git-send-email-ilialin@codeaurora.org> <1526375616-16904-13-git-send-email-ilialin@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526375616-16904-13-git-send-email-ilialin@codeaurora.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-05-18, 12:13, Ilia Lin wrote: > In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, > the CPU ferequencies subset and voltage value of each OPP varies > based on the silicon variant in use. Qualcomm Process Voltage Scaling Tables > defines the voltage and frequency value based on the msm-id in SMEM > and speedbin blown in the efuse combination. > The qcom-cpufreq-kryo driver reads the msm-id and efuse value from the SoC > to provide the OPP framework with required information. > This is used to determine the voltage and frequency value for each OPP of > operating-points-v2 table when it is parsed by the OPP framework. > > Signed-off-by: Ilia Lin > --- > drivers/cpufreq/Kconfig.arm | 11 +++ > drivers/cpufreq/Makefile | 1 + > drivers/cpufreq/cpufreq-dt-platdev.c | 3 + > drivers/cpufreq/qcom-cpufreq-kryo.c | 150 +++++++++++++++++++++++++++++++++++ > 4 files changed, 165 insertions(+) > create mode 100644 drivers/cpufreq/qcom-cpufreq-kryo.c Acked-by: Viresh Kumar -- viresh