Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1030504rwl; Fri, 7 Apr 2023 08:56:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YvJC7Ic2Ai6c9UuLOLCwOCQCK3Ud4NdDa44XdNl0zQ8s6AmaspI3CM7c76D2BE7j54SHpa X-Received: by 2002:a17:902:b485:b0:19d:553:746b with SMTP id y5-20020a170902b48500b0019d0553746bmr2841383plr.66.1680882970684; Fri, 07 Apr 2023 08:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680882970; cv=none; d=google.com; s=arc-20160816; b=z0ilZMDNW6dKX9SjlEhk0ooRSctiwAYj0rDlx45SmbdOpx9sYUyf6o61YktQrZIl7Y P2cpkcWT3ja0dND6FIzgMB4O2FcVfQ5xBMnWX4BN577Rr+iraseAwrtdsxqKHNG6/dho l1qq2Irq9Q61GtsBIJflQFnit13GWAvpJ+kGXyRjhXlh8ZvP9SR3xJFuxXjmsrZDu4au tCdQ285v272Otow10J+5sVoEfFY2eJnBOMf5/rKqkKfhQcnQIm364wOUEEjPr99SMD4H yEmxia88GMTYD9FuHzGtW5ZAv0iIT5qkzb3DKuo48ZFud7qG28J33H58MW81QG0oi6VP CcmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k2A/fljO5/UtVzcCN1uU+jrT2SZDpck/mXuP9lYe+/c=; b=vGy6NLoUjlr29jL2zs8Uy6Me3VV0YNEVvPJO5q54yCtMPx7j0RKwRSF9sD45DcVi+d 5QozV9+YWLxLh3PUHrrvkhswYdm+q1Kdkuctvk1I4pYApqQwTtSV19ki4pL/0mijPCNj m8Ca1z/QP+sXCzup8drcCvIhDxM8mG0++D8YeLEzzVkzEYaGy4nhzljfcj+azhgWeiQ8 SU2FDAewVzi1e6+ozOskP9Pj/jwD/RJKg0ZxBRde/eBet7EnmgmSzb4+Dm46TY4srY4f YT3nMjUQFUeGUZaL2p8xnpkXEuCSw+GJRCboqWcCZzQfrQfczWzyHVomMvmpMLFw4BsK PRjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mPzV60c1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw2-20020a170903044200b001a1e4051dbbsi4069478plb.31.2023.04.07.08.55.57; Fri, 07 Apr 2023 08:56:10 -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=@kernel.org header.s=k20201202 header.b=mPzV60c1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231635AbjDGPlt (ORCPT + 99 others); Fri, 7 Apr 2023 11:41:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjDGPlr (ORCPT ); Fri, 7 Apr 2023 11:41:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB25E8A72; Fri, 7 Apr 2023 08:41:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 466BD6121D; Fri, 7 Apr 2023 15:41:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB0AC433D2; Fri, 7 Apr 2023 15:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680882105; bh=0TH7wao0u0XHYRas2C6c5JKYGQoZXugn+nq3+N4xTJk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mPzV60c1UwAVMfNfbVy+e73ZkApGMgI0fINmSiICLkTrG0kedj+gAsbihCIGgLkGp DY+Zwd0haHBBiTu/VLN0HuGGMvYsuHwk+1eosEdCfDOg/L9nXsa9ZqYyf/afsVZ39K HfenXNdWQhJ5L6w0qeqrB+YY/LCKKciwE1QLAuXvbbCIGoIZ4m4UZhNK5Nh04eV4l8 DTiPPszubCoToxejLfmHSkVrnt0+AScVDDg4YOapAmoX7NRV84rpNBrQRBVKVHjsSw 8jvtW0niDXS6uqs7DDs6xmrJ+Cybs+M9GXFyFdBQMnsTOQkspBqV4UAftUjCkqeQ84 MhVDemxnuQHTA== Date: Fri, 7 Apr 2023 08:44:35 -0700 From: Bjorn Andersson To: Souradeep Chowdhury Cc: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , 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 V2 0/3] soc: qcom: boot_stats: Add driver support for boot_stats Message-ID: <20230407154435.2wzrld365p3dcabd@ripper> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Fri, Apr 07, 2023 at 07:34:34PM +0530, Souradeep Chowdhury wrote: > 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 print the information. This information is > useful in verifying if existing boot KPIs have regressed or not. > A sample log in SM8450(waipio) device is as follows:- > > KPI: Pre ABL Time = 3s > KPI: ABL Time = 14s > KPI: Kernel MPM timestamp = 890206 > > 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". Both these > values are read up by the driver from IMEM region and printed as above. > The current sleep counter timestamp is also logged by the driver. > > Changes in V2 > > *Implemented comments on version 1 of the patch This doesn't give a particular good indication of what you actually changed. So please spell it out going forward. Thanks, Bjorn > > *Changed the boot_stats driver to module_platform_driver > > *Dropped the DT binding for mpm sleep counter > > Souradeep Chowdhury (3): > dt-bindings: sram: qcom,imem: Add Boot Stat region within IMEM > soc: qcom: boot_stat: Add Driver Support for Boot Stats > MAINTAINERS: Add the entry for boot_stats driver support > > .../devicetree/bindings/sram/qcom,imem.yaml | 21 +++++ > MAINTAINERS | 6 ++ > drivers/soc/qcom/Kconfig | 7 ++ > drivers/soc/qcom/Makefile | 1 + > drivers/soc/qcom/boot_stats.c | 95 ++++++++++++++++++++++ > 5 files changed, 130 insertions(+) > create mode 100644 drivers/soc/qcom/boot_stats.c > > -- > 2.7.4 >