Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1429949pxb; Wed, 20 Oct 2021 05:06:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwUG2QMsqS4n3aAKLoJLu/GNIYFXGFhp/k+wgXO21H4KsKgP0mIUbzUzdSby+WdQoOu8cr X-Received: by 2002:a17:90a:be02:: with SMTP id a2mr6898175pjs.59.1634731574441; Wed, 20 Oct 2021 05:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634731574; cv=none; d=google.com; s=arc-20160816; b=Zh8h7M+kAVCD2GoREoMEIhE3ztDn7VRpaCGN3suZEsGUjki9jUMYSygEyM8y4MRcx6 eHE7v/oTP2E4uHBQggdg0hPeq7fXbWcPaj4OCe2aYN5wtY1fWQY6MrFs5Db8DtNzAaVi 4KE+8uIw3HJJIaTZCIHiS/3+g1WcgiGKKuf+xWk8awF+eJDBlkrdcZ1epnA7U1zUjk84 V359+G9fB1Tj+wDEl26fcZ+OjBZrdE0N11xUKcJF2pSud5J9DAzI0i36VoG7RhcNG740 Ktss3zKaLR2HVu8IKTkPyujisBVvkpTm51Fwfd6kZ6qzSefjdeETqDmrKn0PtMAgJG87 AYQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=O0IH1Cq3STR9DF8CefTN3jktoLIAHu/Gkj+D6afaP00=; b=MhnNh+B1nlZ/cCcYTC4xhuv97x+wbA6+4HUL2wWC1GHU935yUJPSBjkPKwX72LaczF rBBVte9gqJme9s0YKz0CirZLizHEY+V48HbylkPlNolS7eOs+q4ylXNXnALuI/cY4gyt JOK5JQaKO18Kz6z/JMU5sIYN2rQ0kqNZ57OfvlqVnQ3Hs0Q1fNYovM7ht9Of4rKfzjRu DKRZKwF3U2WVg7mbhmbXRjTV12vo3LXiQ7k+BgzjLo4Ru7BKRcqxfr5Y/BeNg503RKOQ g6GFPRYTmfs6kBqB8ASGOMFnM6U6WwWoXKn8UgoL2pNnQGWC0574suM6ZMQBgVyfexYC +jSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=pbFUMHJR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si2545324plr.427.2021.10.20.05.05.58; Wed, 20 Oct 2021 05:06:14 -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=@mg.codeaurora.org header.s=smtp header.b=pbFUMHJR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbhJTMGY (ORCPT + 99 others); Wed, 20 Oct 2021 08:06:24 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:52052 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbhJTMGY (ORCPT ); Wed, 20 Oct 2021 08:06:24 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634731450; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=O0IH1Cq3STR9DF8CefTN3jktoLIAHu/Gkj+D6afaP00=; b=pbFUMHJR89vS4eXAC1hhGqUA56b1ANEt9tEsck9ExxdkxQAIMzlSUJ80DB35bc31+jaaIneP AGXJUUEm5umWkjxYDukE/QMcguAHh6odaFxIeaoJC+JDOienENm29YzCZs8dbaEbAGn6rGF3 JyKrsNUqQVqy/h0ej0FAsVIXtC0= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 6170058d59612e01006cb13d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 20 Oct 2021 12:03:25 GMT Sender: clingutla=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A18DBC4338F; Wed, 20 Oct 2021 12:03:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.43.40] (unknown [223.185.83.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: clingutla) by smtp.codeaurora.org (Postfix) with ESMTPSA id 70153C4338F; Wed, 20 Oct 2021 12:03:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 70153C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Subject: Re: [PATCH] PM: EM: do not allow pd creation prior to debugfs initialization To: Lukasz Luba Cc: rafael.j.wysocki@intel.com, qperret@google.com, daniel.lezcano@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20211019152819.6141-1-clingutla@codeaurora.org> From: Chandrasekhar L Message-ID: <0c42bec7-4358-a8d6-b1db-f52218a8e59a@codeaurora.org> Date: Wed, 20 Oct 2021 17:33:18 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Lukasz for comment. For any reason (ex: HW dependency, etc), if  init_call level of cpufreq/devfreq driver changed prior to fs_init call, we would land there right? One of such example is, 'drivers/cpufreq/qcom-cpufreq-hw.c' uses postcore_initcall(). Thanks, Chandrasekhar L On 10/19/2021 10:35 PM, Lukasz Luba wrote: > > > On 10/19/21 4:28 PM, Lingutla Chandrasekhar wrote: >> em_dev_register_perf_domain() can be called from any initcall level before > > The EM is registered by cpufreq drivers (or devfreq), which is later > than fs_initcall, so the debugfs is setup. We even have added recently > a dedicated callback into the cpufreq (register_em()) for that. > > Do you have such code which registers EM for CPUs (or some devfreq) > earlier than this fs_initcall? > > I cannot find such code in mainline. > > Regards, > Lukasz -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.