Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1970243imm; Sun, 27 May 2018 22:04:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJK0VevjGp7vUmHBSNf/E4GBH/VQepfU1B+7fg0E4OM0EfbZ5mW7jTyO6HltzSqa1BPu4s0 X-Received: by 2002:a63:a74c:: with SMTP id w12-v6mr3604136pgo.374.1527483848649; Sun, 27 May 2018 22:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527483848; cv=none; d=google.com; s=arc-20160816; b=Jq7RBUJj+cb2qmP6COjN2FL9rAtJaM1BKCwYC3bXrQ/B72S20y3GfJAGrENR9EfAUn x6t/96YLXXtIJkqXvbY+Uph/EHjJA62EHuIynYjDa2/XQ4Iovss1qHWw7P4kyGvvRvZ3 E08DY5toSNugE1PQtL69Y/3LI+3Wg5fr6IziCYBuWXBFNK5yh3Itv5m4ksowVP1dZnII QQ63Ju+6QIYFQ5P0/KD4ni4B6dZlZVg1Ki38TCOJ5MLkCKRpJE0dIR4zlvy+F05dhtsZ qWCHiQiOx1iHwGWYbiv1SDV09KfdClhXpPPRNpZuF6JvP75H5RYbFRNJGe0W7n7pUYaa DKLg== 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=LBXRN719QjOZmeGtrUZ9inS3CmU869ynRWajgtYXA+k=; b=S/HH+aHR7NJCE37KGRXG+f2b+Dmch+G7a1IuBNioyIEu4XUZhbDh4OdcVbg2gOMrDc Kt0oJyzljnOYt4fBhJmWEU29EM/EDS5FIlzJgWnZixM1x0nEHBPvusDCkpAMyreiv+Fd UGI7sLsP7urIjIh+aPghkZGkrYGg9ksQztGMqttFzlEiE2JKSy9rF30tkCfhjiqiTmKT cJN528cirk6gxP0tVC74heshx049ZDTePo1oSjlRkDwcVIDcFId3cpTxMv0mtT5qLc3q ibXKsaYGScOKryILlWtkzIBguET6O3NFQloi2FG157po+7ZDZ2fCgwzv1rl2NIm1M3wc FnVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DwNHOfD7; 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 o1-v6si12193113pgn.277.2018.05.27.22.03.52; Sun, 27 May 2018 22:04:08 -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=DwNHOfD7; 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 S1752939AbeE1FDo (ORCPT + 99 others); Mon, 28 May 2018 01:03:44 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:44831 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751183AbeE1FDm (ORCPT ); Mon, 28 May 2018 01:03:42 -0400 Received: by mail-pf0-f194.google.com with SMTP id q22-v6so5255612pff.11 for ; Sun, 27 May 2018 22:03:42 -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=LBXRN719QjOZmeGtrUZ9inS3CmU869ynRWajgtYXA+k=; b=DwNHOfD7Xr1AOuqRTiabUGIUMl0srl16Qi0DKnGWf0aWS5/65QaXukPmbdnhph8dRq Sd1cRdGEjAiqPDxzJCWc0+cvFpNLL+iIAeyKBa8wJIefJLjU2j6c2YQzmPNwyMlJ7RAz h9xts8Bi1WPHOyTtTqX75IKdQkkn9CSNBIKBE= 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=LBXRN719QjOZmeGtrUZ9inS3CmU869ynRWajgtYXA+k=; b=aFCImR/VvN+Ys3g5yZKwP8lFbF8fTzT1jdQvfMGY8KgSKYzTxDSkfd0055dFQvpiw1 4NpwDw64uycGSJLyE/DUOaoFMWHtb9nPOoGv09WmhGinLKgzrlSJ6C5olsKahffY+kQ6 nQjOQrvo5XAWjzA2JAUvlVD/cc9inYroS0qpo2Yhc11UkX4k6mF9cFTaCgTT7omn59Us rmu6c0TTVzYb1+hfbPMxsw6sYcttZowWXQK1UI9aUVR8XhaqKz49QnpMV6szsFVcHLmc o9XH3M9/Zb/QsE4xgatcYJgJXx5Kv6TcUsFYl75uFerD+dgWbZBUFzt4ECWzNM4aVYt3 w9jA== X-Gm-Message-State: ALKqPweLmLofeTU6mwfZq5lEcYga4xyRQXqhkpe4Vn5EoPHCGUT8GJ7X h97LLfCR1oUUCuu04jfm11sekw== X-Received: by 2002:a62:478d:: with SMTP id p13-v6mr11993448pfi.164.1527483821651; Sun, 27 May 2018 22:03:41 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id r11-v6sm3333902pfb.139.2018.05.27.22.03.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 May 2018 22:03:40 -0700 (PDT) Date: Mon, 28 May 2018 10:33:38 +0530 From: Viresh Kumar To: Ilia Lin Cc: ilia.lin@gmail.com, vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v14 1/2] cpufreq: Add Kryo CPU scaling driver Message-ID: <20180528050338.p4zg6a2v5fu3oxwe@vireshk-i7> References: <1527252112-7015-1-git-send-email-ilialin@codeaurora.org> <1527252112-7015-2-git-send-email-ilialin@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527252112-7015-2-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 25-05-18, 15:41, Ilia Lin wrote: > In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, > the CPU frequency 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 > --- > MAINTAINERS | 7 ++ > drivers/cpufreq/Kconfig.arm | 10 ++ > drivers/cpufreq/Makefile | 1 + > drivers/cpufreq/cpufreq-dt-platdev.c | 3 + > drivers/cpufreq/qcom-cpufreq-kryo.c | 212 +++++++++++++++++++++++++++++++++++ > 5 files changed, 233 insertions(+) > create mode 100644 drivers/cpufreq/qcom-cpufreq-kryo.c Acked-by: Viresh Kumar -- viresh