Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1127992ybt; Wed, 1 Jul 2020 20:03:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6mqeYOG79E1Rpu7U2wD/Oa2fXBtxfMSUqJawmW7uYhRMezOuIx3egrRUwURjswLLIPNSY X-Received: by 2002:a17:907:2094:: with SMTP id pv20mr21165816ejb.512.1593658984153; Wed, 01 Jul 2020 20:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593658984; cv=none; d=google.com; s=arc-20160816; b=rG5cRJnaMNW5NuVRDPbjcJeTkqWLx+MupyjqR8J03w6fUXE/bMHgUEpgxf7G6woF3Z 0YlsHtX3piu19O5Y/BAhDQdW6Nk73tEo9mwcdntuXbOlLr2Ag9CM85p8CNMCBqFshnQ3 F6X7VjqrSf2sXjdJTHu6HMGdv+04GwN16Nczuf3Ns5bbs1jkiFSD86AhcZgVHnJgxWsW SZsQksWNugospY8ScvqJ56gdTYu8/uWL9XQsfNIeikidk8EkoqWS+bBlzQyM23HLQlGN Hef3RbEhmFQdstMDXKqyIRXW6wqjIhhZwcg5DVbaSkgywXP3jJfjOLVzPONtfW8PMxLU iItg== 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=jKKNTT8pA7O67OgNnb6AO36mHyhlEaO/ODFH5iFbjNM=; b=EC8U0lQ55G79zSuE47J1hjw86QUNx2sBdguGOsu93x/WPn9D/VjgHScCMIJJIYFug7 vDmSIyDMe73MmaXAnJogLbuSpNMcXuULYJZesaUYj4ucvpffdAAcEQVajj+DLOelDFyY CALviQhm5cHypwTV06f1X35QuTZDkoKyH+ae9Cfy4xM4NaoG9RshzdJ5ySjRFp1UdipU 2iaUTgROPolvAiKl22YGOOocjW/MyMs6lfsoVqRK7CNDfg4s1WXHr/FqTq5mjMRIoYFq UVfBTSx2MLzDFZE+h8iw2LO8E4dR6d4wq8AdOrEfIdfQtDKxpfxFz9AmyPzFht+jySIM 3LZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AyPvqL65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h1si2966260ejk.3.2020.07.01.20.02.41; Wed, 01 Jul 2020 20:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AyPvqL65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726262AbgGBDBx (ORCPT + 99 others); Wed, 1 Jul 2020 23:01:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgGBDBx (ORCPT ); Wed, 1 Jul 2020 23:01:53 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15C6DC08C5C1 for ; Wed, 1 Jul 2020 20:01:52 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id e18so12735665pgn.7 for ; Wed, 01 Jul 2020 20:01:52 -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=jKKNTT8pA7O67OgNnb6AO36mHyhlEaO/ODFH5iFbjNM=; b=AyPvqL65OszIANNa7RlNshUwuqXqnecC2UHRKr86/uKOpMUOnrbqLv6opCoAQKswM6 Pl2gA51+SZatHMckdbShLpCeyUmv2Pc1U/SF+LahGtpUL388m1BGXcwfCo9+LqXMZjS4 MrDxTwYyrKfekyqv4Q8sfXCxtekavD8aEsab+UW1SHkECbb9qUqpv2mfFNMZJr1hZfhU XKJgRcApRCDlIqyeFgBvMyj9tpbtd9sgGciUslcYXXhzTByuq3bgcFXM4Rkt/JMO44qf cbj5QU0LmcNJ/2arl3Tbk6oApjgcqm0zRWTPdvHhmWgYHILCKSwwBoNEzS7vkmJlgvFF WnEQ== 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=jKKNTT8pA7O67OgNnb6AO36mHyhlEaO/ODFH5iFbjNM=; b=chpso77EKzc1xYSxbQ0gs/E0PlS9gt2F6B6U+IDpcqfX+ubj2jS17uyl/ky4MbVnnB 1GUKSY3U0GOkhVVbOBdNxq+IG0uHtB0YHbKua0P6i2WiuhyEHNLSWEJ4gCCPr/nXJp38 85xh/jWH05Rwx9jtQhxhwDDTf8BpOrGo+wLEqyj7NIJFri0FguxRWhRWWfn0z6dJWBqk 6rZ8bbluOb4pZ4r8MNMxvS9zr8HAWhoFGZe8OIOIEygBCbzQK75WVoZIqX4VwQUGMG9W ZFXe4b5gAbVbw3b3UZO/da9uvGfl1SypgTjU2AY28m2QK52X0KjOWShgj5nTTNuc+9Ca 43rQ== X-Gm-Message-State: AOAM530Z8/n6pb9rEPFZJps72cqsLLkeaQWRQJIIXU8/q4MBVQwPjaj5 uklh1S93fXhNUDSOwkQrFLHmlw== X-Received: by 2002:a62:140f:: with SMTP id 15mr25885220pfu.50.1593658911615; Wed, 01 Jul 2020 20:01:51 -0700 (PDT) Received: from localhost ([223.235.247.110]) by smtp.gmail.com with ESMTPSA id r6sm6628604pfl.142.2020.07.01.20.01.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2020 20:01:50 -0700 (PDT) Date: Thu, 2 Jul 2020 08:31:49 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Ionela Voinescu , "Rafael J. Wysocki" , Catalin Marinas , Sudeep Holla , Will Deacon , Russell King - ARM Linux , Valentin Schneider , Ingo Molnar , Peter Zijlstra , Dietmar Eggemann , Linux PM , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH 2/8] cpufreq: move invariance setter calls in cpufreq core Message-ID: <20200702030149.stwqpozhrspjz7sp@vireshk-i7> References: <20200701090751.7543-1-ionela.voinescu@arm.com> <20200701090751.7543-3-ionela.voinescu@arm.com> <20200701095219.gxrkowtukosnfmwp@vireshk-i7> <20200701152751.GA29496@arm.com> 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 01-07-20, 17:51, Rafael J. Wysocki wrote: > On Wed, Jul 1, 2020 at 5:28 PM Ionela Voinescu wrote: > > On Wednesday 01 Jul 2020 at 16:16:19 (+0530), Viresh Kumar wrote: > > > On 01-07-20, 10:07, Ionela Voinescu wrote: > > > > setpolicy() > > > > =========== > > > > This callback does not have any designated way of informing what was the > > > > end choice. But there are only two drivers using setpolicy(), and none > > > > of them have current FIE support: > > > > > > > > drivers/cpufreq/longrun.c:281: .setpolicy = longrun_set_policy, > > > > drivers/cpufreq/intel_pstate.c:2215: .setpolicy = intel_pstate_set_policy, > > > > > > > > The intel_pstate is known to use counter-driven frequency invariance. > > > > > > Same for acpi-cpufreq driver as well ? > > > > > > > The acpi-cpufreq driver defines target_index() and fast_switch() so it > > should go through the setting in cpufreq core. But x86 does not actually > > define arch_set_freq_scale() so when called it won't do anything (won't > > set any frequency scale factor), but rely on counters to set it through > > the arch_scale_freq_tick(). > > Right. > > So on x86 (Intel flavor of it at least), cpufreq has nothing to do > with this regardless of what driver is in use. -- viresh