Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3428858pxt; Tue, 10 Aug 2021 03:30:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztQBcAY4hh8Q8VcVt2xPOLu22//Y7E+D/VwSy+bnxJsKZJy8/mDcI7zBd50wCMQuQMNvyK X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr27339146ejc.356.1628591431722; Tue, 10 Aug 2021 03:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628591431; cv=none; d=google.com; s=arc-20160816; b=IwwVj7mYa6KfqrfX84uzcvD3TsxYKNeddRkscu/Q00siNKxFfmY2V2KTjB4pgjqHhE hVGImdRmO+J+3HZwWQLhMnz7aB58M6De7UGFX4B+btex/78bOYcuV5UVfgRQW3Zq8YOq xsp6HB2ULchCQyQ1xSnUTDPV8cYxf1OgDsOY0uIUWd2I4NmhAwt3BPyWw/UZ6iXGRIIO W/hY4x53FCJh35NDsfdzH/5GeJGw0ahL0d2zFRsDqbR+CAYAG5It8Dg83qAPuaZG/DoI 7QJJPWAtfOLnxbKgPsOX096Kx7DNj/g6UTg90Gd4WtsZbYydceLEsKA9Ea4lFOrDYUqb wulw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vmGUDQVffEqjbU2fZFvw8N47aHxiBCcFlMvcbAC01SE=; b=LVvVPB8LLMwnLmsr+Db6nL3LZZhtTLXMtjOgDfhwDo8+p6Vz83HEmzGh0GdK5cqEfY Mn3U6VV2JJKV5RC2A8dUGX6iHTawklpBEevPlyzg0UK2/+CK17HDcB8aq3k/nK59z9TV uoOgVe51b0X1IaocEM2c73/R3Q2+9+kKw6LyFrtKB7bON1b60oiC781v12GxcSXaL4VF kTECFoxwO6nTJ7GetzBqQpa5ViT5427GgUCatw29ao7i1MgSCLX/Tpin8lg/TyYFGAJq r72tOtVGvzSoJl/INUlpXV3XrQS4Vc25of0hWqMksy/zoOBjc1MJwnckKy2EZdhxXSN+ lpqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rc8M6nZC; 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 fv35si18755172ejc.454.2021.08.10.03.30.05; Tue, 10 Aug 2021 03:30:31 -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=rc8M6nZC; 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 S239216AbhHJJiy (ORCPT + 99 others); Tue, 10 Aug 2021 05:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236860AbhHJJix (ORCPT ); Tue, 10 Aug 2021 05:38:53 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4BF1C061798 for ; Tue, 10 Aug 2021 02:38:31 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id t3so20189764plg.9 for ; Tue, 10 Aug 2021 02:38:31 -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=vmGUDQVffEqjbU2fZFvw8N47aHxiBCcFlMvcbAC01SE=; b=rc8M6nZCQwEpSRpemhf/Q1rL6/CIirc2mlzmVyR1qN/PYfCrHzBm4N3m2WofOIbmFG bHD+r/QwBap/2vi2ZQL00lgZHY3qzqSxS9+61KYKaEziQfCzrQNwofBekE5aGPl0rZac lgeZyr7TouXlOCti0z7vr1MUrNtJH7o3cbfYXtBsN8coOIl/c1J9+GNbEH3jZ+mzn1w8 KQeH0J1FAXbbaEDcz8gYjnwqXz6NNTqDIB6nncZaDvnIZMT4wHv8BWFVAWKKCXR3reOz IaK0BCjbmZTrdfcS59kLCjx23dXcKSm/FHYfNs8E1MN978YoNK8eOj4/FKlva8ZAVbRC DEKg== 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=vmGUDQVffEqjbU2fZFvw8N47aHxiBCcFlMvcbAC01SE=; b=haCyw1Dvv92lXW2pDA07oMPukaYEb8fMVUBz1E/wHcvC6PkNbsJ+X5t3DAq7MQMpha MIkZqHYM/jx/0ypxfSyHkRi7e55mI+uievojdOGDFbRDEVgUHygSa+CdXHbTAS6UaPi5 cReEWbjEKJ02xhN29afC+BOP1IkOOQ+SwIAOGe3vCL96ILf47x1jYFXZ/e64gmK6XXsD X1qtyUfOs3oQM5CF0sPnA+OqvMtE9bilJYQOqPGAypMK6ebewVKCjo6hDvsoW+TlMf0g dsOW6sg/Fc3xK3wGbVk5JmwGb1xSuLyJQmTbN9WnA0SUc9dlf7NYHH3kfW1lB4E7+I6Q LkFQ== X-Gm-Message-State: AOAM533/gF8/ythwwqWPXFIxjhpYPwoHi2YQfNAYDQq0ZQb4yZSZW3yQ +Lt9QO+XU0+DVa1Q5MOHUSA1bA== X-Received: by 2002:a17:90b:802:: with SMTP id bk2mr30864189pjb.51.1628588311453; Tue, 10 Aug 2021 02:38:31 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id c9sm21394623pgq.58.2021.08.10.02.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 02:38:30 -0700 (PDT) Date: Tue, 10 Aug 2021 15:08:28 +0530 From: Viresh Kumar To: Lukasz Luba Cc: Rafael Wysocki , Vincent Donnefort , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] cpufreq: Auto-register with energy model if asked Message-ID: <20210810093828.drel3kuurmhd4ki7@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-08-21, 10:36, Lukasz Luba wrote: > The of_cpufreq_cooling_register() should be called after the EM > is present for the CPU device. When you check that function, > you will see that we call > em_cpu_get(policy->cpu) > to get the EM pointer. Otherwise IPA might fail. Good point. -- viresh