Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp325857ybi; Thu, 11 Jul 2019 20:13:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4HNE4iIeRGzW2AUpis5niecK35KAnFCzOk0HIhuPc5NVxATVoh8E3RtSU41Qmj5JaHSE+ X-Received: by 2002:a17:90a:29c5:: with SMTP id h63mr8379115pjd.83.1562901199422; Thu, 11 Jul 2019 20:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562901199; cv=none; d=google.com; s=arc-20160816; b=GDLCeiXXfMMp6U/3haF5ZhRpHyIdZyvaKWzPNJD6Pd9fQ/ZqixOFwb9mMHpIsooVSf MO4icPs42y+Qh3G9fkRNrjcCj2fY6tqqiHzNlPcgLWzOOnY+ns1jGdZ2OqkHLxqWnoFn EjyRBwLl5tnb3awzy5qajiex+KVSewEa+dLufdxXwu36ZbEjJUgJcCdilotpt+97e50O pF13mbI9KqDYCNvpFpPIpP8RWQWw9FE4jFed3s1UucYnip7hgAYDDfoAE33zz7Dxtg9o ctK+MvKyNzzl9WeqfWI/cvVzRYN79Jz7fErK3hVD/U0opAYw/2SsQ59VghitZQ2VKKRW gHNw== 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; bh=UI3xZ6ZoClWPqrBnQqWKV86XGyEZlmgwirsJ/BmtMso=; b=StxCJmBQsRSVkQrzkfdh8ZLenxocHPkAwlhFUkiR4vbmZwenC9Wz3Mnm+Wg+oM6ZVf TGvvuo24OKjl16/YENXqQ9Cb/WapxdmosAHg53LYE4C8xhHDAiJx12PhKNOZ5PwYUrP9 yegKqI58MielhxXYi+TCufhIONbEO4kMSy5TC3tenTYrWe6Jyg4gA2MQ60RxwdVZkerA 8ymeg/XEePjYN/bEUxpkYtuIpU1gpMTCCojPPpVaM53PIfKKqiudbtphnHUczT0Pphbw 2WZSL21E/BwcCiKZFcaL301wZJa5o5GEVq2KbDukAUaI3FnUlJprgsHv/LJ/kPB9auOR J+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LpcXRpiP; 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 n9si6432510plk.166.2019.07.11.20.13.03; Thu, 11 Jul 2019 20:13:19 -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=LpcXRpiP; 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 S1729349AbfGLDKa (ORCPT + 99 others); Thu, 11 Jul 2019 23:10:30 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38455 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbfGLDKa (ORCPT ); Thu, 11 Jul 2019 23:10:30 -0400 Received: by mail-pl1-f194.google.com with SMTP id az7so4050200plb.5 for ; Thu, 11 Jul 2019 20:10:29 -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=UI3xZ6ZoClWPqrBnQqWKV86XGyEZlmgwirsJ/BmtMso=; b=LpcXRpiPevr9Wv6RrLEcBX6CiXmYw2fRd48ZYFmnyeyHgFcNRN8W0soUWSuzOmBuCW bh4NqBj8KrlEbp2S3Ft8i5AvzMPqvJ42sytaIGfXvIfzGKLUNWsQ0XauwNgTMSiMTMq3 QaMwi2LINDyyQOBEu8disVlM8br/qWQ5JHY91xF0Bj703jwfp2wAAbhAaZUH2zT+U5SA TE4sid9/je2Nod9Upi3wqcyCOX1K9FAJ8/7KJHjQ+LEmPRQt/e4Aqh0d/B+QUe44/4us +S4ps/NAAZPTIGIT/JCbL/jU2vRKsbbvHN1khSARsx8n4jW5l4AZm5mtHnBbKEdgje3H hjLg== 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=UI3xZ6ZoClWPqrBnQqWKV86XGyEZlmgwirsJ/BmtMso=; b=AfpvPmDRCttBIzQyM6rWrZe4t91LrJQySHXjtrg/fAVr7K5iEL57oW+5Fras9QUJzT 0SXhmTB6ahSjJLpRAL1wZUMDfpFtbqu7KWzvrUbFrSq0Zg8oKPWM6h+1UPwpD8tBf+Xe g5NchvLT+scTuKY72nNk/IriOauZHTTBADr6x8BB4Qav4XKWsnyxmpY+scAh/9CGqhIX z8JhRZ5Ya7ifwxnBCGogqV4kCusWYBE2QHEefReh2tsnyLriypdkFvSuLH8iWZv8SIth VpEl+Bs5CHERVH42rKnUXQjc2xuT3kMQvs2QmYb3mj9WyYkqgv2NiuGpLQsHTHQSFMwj oXlQ== X-Gm-Message-State: APjAAAUccM27KzJnNAUql2LW5/VpS8xnQaI1Lf5i3oZFjkaMB4Zi1EON CgVeoMBPkkJVnovT4xQdB7yVhg== X-Received: by 2002:a17:902:7686:: with SMTP id m6mr8514635pll.239.1562901029202; Thu, 11 Jul 2019 20:10:29 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id m13sm5455233pgv.89.2019.07.11.20.10.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 20:10:28 -0700 (PDT) Date: Fri, 12 Jul 2019 08:40:25 +0530 From: Viresh Kumar To: Janakarajan Natarajan Cc: "Natarajan, Janakarajan" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , "devel@acpica.org" , "Rafael J . Wysocki" , Len Brown , Robert Moore , Erik Schmauss , "Ghannam, Yazen" Subject: Re: [PATCHv3 6/6] drivers/cpufreq: Add a CPUFreq driver for AMD processors (Fam17h and later) Message-ID: <20190712031025.mylhtzehv3vs6db3@vireshk-i7> References: <20190711061208.yqxt4ps67vmsy7sp@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-07-19, 16:58, Janakarajan Natarajan wrote: > On 7/11/2019 1:12 AM, Viresh Kumar wrote: > > On 10-07-19, 18:37, Natarajan, Janakarajan wrote: > >> +static int amd_cpufreq_cpu_init(struct cpufreq_policy *policy) > >> +{ > >> + return 0; > >> +} > >> + > >> +static int amd_cpufreq_cpu_exit(struct cpufreq_policy *policy) > >> +{ > >> + return 0; > >> +} > >> + > >> +static int amd_cpufreq_cpu_verify(struct cpufreq_policy *policy) > >> +{ > >> + return 0; > >> +} > >> + > >> +static int amd_cpufreq_cpu_target_index(struct cpufreq_policy *policy, > >> + unsigned int index) > >> +{ > >> + return 0; > >> +} > > All empty helpers ? There is nothing you need to do ? > > > When we posted v2 of this patchset, Rafael let us know that he was > uncomfortable > > going behind the (acpi-cpufreq) drivers back by letting the user > communicate directly > > with the platform. That's the reason we have an empty driver whose > primary purpose > > is to expose sysfs entries for the user. I read his comments now and what he suggested is: "What about handling this like the others do, through a proper cpufreq driver?" I am not sure if he meant something like that you have here. Only one cpufreq driver can be registered at any point of time with the kernel, and so if this one is there then acpi-cpufreq or intel-pstate can't be there. Who will do DVFS ? -- viresh