Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp427380yba; Wed, 15 May 2019 03:56:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtBZQ3iaf87LJP5riEOKYGx6kRBd0WsdOL1BzEjSyXERgtY78zb1sF7nV4DZbP1JYWJ3an X-Received: by 2002:a17:902:b184:: with SMTP id s4mr5291136plr.46.1557917793228; Wed, 15 May 2019 03:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557917793; cv=none; d=google.com; s=arc-20160816; b=lzfZI4XnQSr9BoZwt8d6jhfZlZ5rkGuJePBv8pA8oORMBkF2ls6nTILp2vRFwTbbZn CKE6XH6F11AeskUTatPJ+dJLNVifJN2foBLWWQO4K1D9vMH0GII85aGs7XJbiuR3eiTB 51uqDbEZyje4s3jffnybCeu+rFiTYWH4KEGlIJIzNbfYReKWp+nniyvxiqVAD2wcbT42 8F4h4w3P/4cxo4MGpd326gT2dzn06S1tNCE3Jr0V3/xrQR22eY19RE/eL2MII8DW0n3T KloNZzetnVz3ySvDsNHB+N9nGczzi27V7U9IgO1vKz/aOVsKygz2nA/sJOQQgjHSW7OM 8wpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yCGaHsCBgstblM6mBuRdN67cN8JHM7IAOcSPPHfwyxk=; b=RMsew5DcsVfnjHJcK7dDgV1g0PfFCucBgGZMo1yK8LRuunK4LrpjwXJ8UrhdD49O5x YZlOumhX1e35MlAvlPEfL8ed3h2C1MZViRJMZWyLGuSahpXbczd4jG9x6DJjq+G7Rqpd ZiScNw/PpDUOC8TJZgk8nqpqbv2BNjxo6Uozw4ayyfLxPih33MEaniElWwuvcBITGI/r 0rOupT1T2XBwC8pOhi3zOiaIplxxEw4bQrjo2dDKP3r8VQ10MbobSJOpNB4ZDerV4Hcr Jpr652XEtFg974nFPqCXCIFKIPM/aS85ZyJeBuGQ3JGkU8eJ+XiiAgoMMBOeKzBpu9kq r+WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ycvY7sZw; 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 11si1790964pfu.224.2019.05.15.03.56.18; Wed, 15 May 2019 03:56:33 -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=ycvY7sZw; 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 S1726441AbfEOKyP (ORCPT + 99 others); Wed, 15 May 2019 06:54:15 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37628 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbfEOKyO (ORCPT ); Wed, 15 May 2019 06:54:14 -0400 Received: by mail-wm1-f66.google.com with SMTP id 7so2013507wmo.2 for ; Wed, 15 May 2019 03:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yCGaHsCBgstblM6mBuRdN67cN8JHM7IAOcSPPHfwyxk=; b=ycvY7sZwj/lO/v1FWXvxEh3TFW351keKaPN0WjyORa91GJS7lYUvz9ErzxnVOWcmNu Hb3lLuRHWl2koQYmjB5BVSP23O8rstj2YEiT464J3sf7p0fmLS5eDvpYQ+vhD2Wcd3KB +ftoa7BUra3VE+K7xh/0wGwlIhCm8FaSfACLmc/CV2C/BKjJUa98HBSik+sJSKOSUm6Z n5+UkSOgBN5TCCMUzvuWnFdzw7fZ/Avp7d8gmAb8uRJSTrfSwjp1BV/iVbDxg1coEVtZ Ojz9DrV4/06srKWY2PE3ywMKzf74iNoTBcJvMNmUmvICDM/bck3Wld9LznaGQRjEAKap a5GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yCGaHsCBgstblM6mBuRdN67cN8JHM7IAOcSPPHfwyxk=; b=PcfnPIdpnC0v8D5nrETwJmzMdnrlYIMQxy9+Wl0B44gEFNomvMG29lie2WTl7wl1gA GBaMp+KM6q7cmy6LLUwMu5vB3O5iRtiaxIC5zna4nOkUrEjrYkiisogGUGl1IFvcZZZv UuHeM8PiNYK0CThfCPX/m5bIkFCRyw+yQt5EpbW/of6qLfQnsVY7PEN5t3V5IeL+Ym5s iKQlMC9XhM1TXC5rjvhWjIU7qOIuBQng/t1/KS5UwoiaAkV4YNexAoSdjFlywPRwPC2K GzK8ioc27+IhX2IiqInTYux/mKUVSzReuV9fkpmZf8Bx0tG552Bt0Swqk6eUHBY22lEY yzZg== X-Gm-Message-State: APjAAAW9IfbYKqwVVn8NoOnPQXKYCFRMGe6bxYHT3KNo8JxPrJfMk54D RajuVqkZeDh/Hgp4YboPHOYeNdUfZfU= X-Received: by 2002:a7b:ce03:: with SMTP id m3mr21051346wmc.99.1557917652174; Wed, 15 May 2019 03:54:12 -0700 (PDT) Received: from [192.168.0.41] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id y17sm1691446wrp.70.2019.05.15.03.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2019 03:54:11 -0700 (PDT) Subject: Re: [PATCH v4 2/3] PM / EM: Expose perf domain struct To: Quentin Perret , Viresh Kumar Cc: edubezval@gmail.com, rui.zhang@intel.com, javi.merino@kernel.org, amit.kachhap@gmail.com, rjw@rjwysocki.net, will.deacon@arm.com, catalin.marinas@arm.com, dietmar.eggemann@arm.com, ionela.voinescu@arm.com, mka@chromium.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20190515082318.7993-1-quentin.perret@arm.com> <20190515082318.7993-3-quentin.perret@arm.com> <0ced18eb-e424-fe6b-b11e-165a3c108170@linaro.org> <20190515091658.sbpg6qiovhtblqyr@queper01-lin> <698400c0-e0a4-4a86-b9df-cdb9bd683c0f@linaro.org> <20190515100748.q3t4kt72h2akdpcs@queper01-lin> <20190515102200.s6uq63qnwea6xtpl@vireshk-i7> <20190515104043.vogspxgkapp6qsny@queper01-lin> From: Daniel Lezcano Message-ID: Date: Wed, 15 May 2019 12:54:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190515104043.vogspxgkapp6qsny@queper01-lin> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/05/2019 12:40, Quentin Perret wrote: > On Wednesday 15 May 2019 at 15:52:00 (+0530), Viresh Kumar wrote: >> On 15-05-19, 12:16, Daniel Lezcano wrote: >>> Viresh what do you think ? >> >> I agree with your last suggestions. They do make sense. > > Good :-) > > So, FWIW, the below compiles w/ or w/o THERMAL_GOV_POWER_ALLOCATOR. I'll > test it and clean it up some more and put it as patch 1 in the series if > that's OK. > > Thanks, > Quentin > > > diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c > index f7c1f49ec87f..ee431848ef71 100644 > --- a/drivers/thermal/cpu_cooling.c > +++ b/drivers/thermal/cpu_cooling.c > @@ -58,7 +58,9 @@ > */ > struct freq_table { > u32 frequency; I suspect we will have a problem here as cpufreq_set_cur_state uses the frequency and when switching to EM, we will still need a freq table. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog