Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp329665rwd; Tue, 16 May 2023 01:26:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XTE2Rpk68o8ru9hExt8NEsBz/+CskiGvH0e/+WepbB27BOBrMUBWo+5GoqUTVqA0GtAnR X-Received: by 2002:a05:6a20:12c5:b0:105:4184:17d4 with SMTP id v5-20020a056a2012c500b00105418417d4mr13956946pzg.19.1684225562837; Tue, 16 May 2023 01:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684225562; cv=none; d=google.com; s=arc-20160816; b=012OuipUNipZ1GuJkxVq7vZ8fn43Tuc4+2ViyA2NocE6dKj74eztGv+XXISI3/dk08 scFtavevE2SgeaDV0f71g9hu9GKbmlQ669wClwrKvHwS3fV1BgcAJSq4gscPLMdIqN5U omj60iQ3gAj/ZBQf7RpBuFe9k5VReUx4Fue9YtS/jEvmuX3m8Yl/R8TAzEjuIUuapCT9 m5NSsnKlwSjlHDyNZ9C1SRPN8iBLfby7XO9ev6R4102gJ6UeZWCPR/ZjTFBxjWTcEF3i QHGee1rEaFwk6dJFPWPcb1YrnOtMxBwblPeGF8K7IZsCtNj0pqxoskqHP//xnw0gXgls qMJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=/zOa7snEU3Cp/EeHjqLX2PpkdorLY7kygrSpj6S6YOk=; b=n5rlY8bnAzyggKdrugVWMeGgVhGeLoLJ4Z1ebTTJ7JAHdGWnN62BQrGhIMEiuZWDm2 CqHOUvPUsCWi8uvN3/YvIXZnuy8STakNQlMLUmOPvHr5km14SwJgSgRmomyMLljc4nhj CE+qNxFag+JYOpwM1QMoMDHzN9CU9DUn2o8EmcedAux5uXRya2tHBL/zRVLZaLChrLzC 7BJ9SCUdccjS86aqkfvVsTfcjaxQ0Prxc6CUsz7ObfJKmfIqadzqu7hI05vw7D8M0Bgx otG1eCHFIl+clwI2l8SaAIc+DC3eGe9Kfgi97U6h34Ziq7hhegV9r3BnNU5OPvAOYdP3 /wJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="FAEydWB/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VltTvEGR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a63e444000000b005340955881asi5101250pgk.700.2023.05.16.01.25.48; Tue, 16 May 2023 01:26:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="FAEydWB/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VltTvEGR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231626AbjEPIUP (ORCPT + 99 others); Tue, 16 May 2023 04:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231741AbjEPIUH (ORCPT ); Tue, 16 May 2023 04:20:07 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4123040DE; Tue, 16 May 2023 01:19:59 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id AE00A5C01BA; Tue, 16 May 2023 04:19:58 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 16 May 2023 04:19:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684225198; x=1684311598; bh=/z Oa7snEU3Cp/EeHjqLX2PpkdorLY7kygrSpj6S6YOk=; b=FAEydWB/kiSkfeXIOD C2AI0MFMwa0AYMof78OjMTcYRKAP28pWtvKNzwid6BnCvSevEWC3/X/QcSfCToU2 F8fM4azm9lKq0wQdollznwHX9js7QB0amVRvWJXk7mG1LkAd8o7kGrGI8fk2tEeZ exJQgaODPo2NsBmZF/pKpB9Gyy1kAlotpa55UwkZyueem1xlfhrZ+PEcIGMC+A77 riNyhuPPl71MicJaiHVQxKRalo+MAvEWzeIGA/A/OIsiweKXxqevwTRF4NikIax8 o+rB21JmmlqVaK7yALgrAZFtviAahN3F77kzKxqUa3+OtzaYWlo5NQp+ss7gne2P Tugw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684225198; x=1684311598; bh=/zOa7snEU3Cp/ EeHjqLX2PpkdorLY7kygrSpj6S6YOk=; b=VltTvEGRgjkVrCYFHjhqv2JcrnYA7 kP0az0DvZdTVRJLCMLhRmW6O08T9CK14RBrcsI/BbiYtuXs6huZtYcYlin9jptyb AmKhBcnnxqT3oYbX6Ix2PVuDT02mrdTLdIHAFdmu0WvVuUsIQ2SWPWpkN5Y0anZX yGcvTDX00c4J1Ouhhnj/89TKEff/ADZ62lk0+Hsr1BYmSi0hrymazgSQXAeo761K 0bHl46u533+x6spAOzsA700NilOdNIKEn0lwR2Ce5nKF2Q+Zwpy6I+bp3fLyODf0 NtJWxwJhrGPB3sJqLaDipf8DvVqw9ktQUvIoqmHYd6pNybxu4e9xOOzFg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehledgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7C615B60086; Tue, 16 May 2023 04:19:58 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-415-gf2b17fe6c3-fm-20230503.001-gf2b17fe6 Mime-Version: 1.0 Message-Id: <3faa9bf7-b42c-4951-8103-9ea2fe02eac1@app.fastmail.com> In-Reply-To: <35863b47c04c2edd7ae49c57d23682aba6111d4f.1683628357.git.quic_schowdhu@quicinc.com> References: <35863b47c04c2edd7ae49c57d23682aba6111d4f.1683628357.git.quic_schowdhu@quicinc.com> Date: Tue, 16 May 2023 10:19:38 +0200 From: "Arnd Bergmann" To: "Souradeep Chowdhury" , "Andy Gross" , "Konrad Dybcio" , "Krzysztof Kozlowski" , "Bjorn Andersson" , "Rob Herring" Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, "Sibi Sankar" , "Rajendra Nayak" Subject: Re: [PATCH V6 2/3] soc: qcom: boot_stat: Add Driver Support for Boot Stats Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 9, 2023, at 12:52, Souradeep Chowdhury wrote: > All of Qualcomm's proprietary Android boot-loaders capture boot time > stats, like the time when the bootloader started execution and at what > point the bootloader handed over control to the kernel etc. in the IMEM > region. This information is captured in a specific format by this driver > by mapping a structure to the IMEM memory region and then accessing the > members of the structure to show the information within debugfs file. > This information is useful in verifying if the existing boot KPIs have > regressed or not. The information is shown in milliseconds, a sample > log from sm8450(waipio) device is as follows:- > > /sys/kernel/debug/qcom_boot_stats # cat abl_time > 17898 ms > /sys/kernel/debug/qcom_boot_stats # cat pre_abl_time > 2879 ms > > The Module Power Manager(MPM) sleep counter starts ticking at the PBL > stage and the timestamp generated by the sleep counter is logged by > the Qualcomm proprietary bootloader(ABL) at two points-> First when it > starts execution which is logged here as "pre_abl_time" and the second > when it is about to load the kernel logged as "abl_time". Documentation > details are also added in Documentation/ABI/testing/debugfs-driver-bootstat > > Signed-off-by: Souradeep Chowdhury > --- > .../ABI/testing/debugfs-driver-bootstat | 17 +++ > drivers/soc/qcom/Kconfig | 10 ++ > drivers/soc/qcom/Makefile | 1 + > drivers/soc/qcom/boot_stats.c | 100 ++++++++++++++++++ As mentioned in my reply to the binding, I don't think this should be a driver at all. On top of that, even if it was a driver, it is clearly not a "soc" driver since nothing in it has any relevance to the hardware, rather than the first-stage loader, and drivers/soc/ drivers should never have their own user space interface either. Arnd