Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp651784pxb; Tue, 19 Oct 2021 10:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd5AXWs1a2E/yAMeN4IlM6JxOKP6KsOV/ZJrot2iRZfBkj4vISyLU3qvEN6oDKDHBknwKC X-Received: by 2002:a63:4622:: with SMTP id t34mr29197034pga.293.1634663226570; Tue, 19 Oct 2021 10:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634663226; cv=none; d=google.com; s=arc-20160816; b=O8xmaaBATIBkmRoRJuD0aZS15kSzmkMdn5r+m4zPVTOjRRUrkdGDn7OMkZfzp8lB3T 9Iued+tk+mAOZ6qlAbnqaaZMdyQ1vvoaVAzRC4mRnltT1PtqakPm2hgVe+i4l5fixe47 bh/1nU41X+1cspa1Ys5who2tKmDGalRbzz8crgZep0TmjYc3S1MlJp4J/6nOwRjk7iUP bBeDfr2IZHol5M/ZPIOam5CE6CaMkMqP/vUodRMxffPO944ZJ2xDR5mWeFDU8OthhJhr vR2LieItOH03P+YKEG3jEvDVkU2bX6EB71vGHFGgACNqGiKXdtwL3fxCFp6A5r/FJpOw wzow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=MKTEgwxrx3fSDefNMKuEpIiZjVx0OaZxS+m7ppSH+qo=; b=C7+BeJhZHpsLpfq4RoUVi5ZNUKqD4lWePjE6M8/SBLLBQVNGpzjA1bL/FnUQ3DQG5E /qs6NFq0/VpfFVJI2Mf5d3Ve/sdhGp/FwPnEJTKgIlDd3EONAUf65GiCPtcK68/HWbTX JJfslN2Tncgtzd4cPTsSctW6s3Mqurui3SWB9a48RZ+gRbkkBKfjYZj9BeFszU9Ot86P omUVKsaIrnyvpBIkydyK4vzIcJwshq9G1BHw0YmZiSH/Sg5UGt3WL3EKPvLHKTSKAsgi expjsgLOE4nadyNrS+7MUfCy6vwMGkRZsocXecE9QjE64l/GE2srktpWO9TAlRKghMNF 5Myg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l191si2681610pge.141.2021.10.19.10.06.51; Tue, 19 Oct 2021 10:07:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231226AbhJSRHl (ORCPT + 99 others); Tue, 19 Oct 2021 13:07:41 -0400 Received: from foss.arm.com ([217.140.110.172]:52118 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbhJSRHk (ORCPT ); Tue, 19 Oct 2021 13:07:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A380BD6E; Tue, 19 Oct 2021 10:05:27 -0700 (PDT) Received: from [10.57.21.130] (unknown [10.57.21.130]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A8363F694; Tue, 19 Oct 2021 10:05:26 -0700 (PDT) Subject: Re: [PATCH] PM: EM: do not allow pd creation prior to debugfs initialization To: Lingutla Chandrasekhar 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: Lukasz Luba Message-ID: Date: Tue, 19 Oct 2021 18:05:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20211019152819.6141-1-clingutla@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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