Message ID | cover.1688533340.git.quic_schowdhu@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1647214vqx; Tue, 4 Jul 2023 22:41:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHdh5YKMntG1xLnQZGK3gRjgkeaCBBD2P0XIbi8oaI/LfRafgJ/h9a1HJIAZQqbDrATS9dU X-Received: by 2002:a05:6a20:a5a8:b0:12d:a534:42bb with SMTP id bc40-20020a056a20a5a800b0012da53442bbmr12043110pzb.20.1688535677112; Tue, 04 Jul 2023 22:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688535677; cv=none; d=google.com; s=arc-20160816; b=ezEcSRmt+gBvE3n09RvcWzPoZ99jjcosiryfHx46VxBFXoT5dqkPgJqAlrw2uKyNig LzBngXODH70D2NG4YSJmEMOk40Dqux1youe4X/YWRABIi7rX0oRU6y7KE+C+0Kxjkb42 8ckmiNtdW7vWVyL1PNU1xiZM72syjRXc6iCZsfwuf4//YUttg+4uMtZmUeK87j8nyTq9 jXR2NtgukrVGbe+/JvmmutezR5gnCvHHZS3G3EJWBw7zjax3UroQKZjjzgpkwag+L3nb Spo1I4eCtx6PcMBj96hMcQFBau/d0koU5gYBJfgmixAsukxCiKben+7ol9rDUeRbf2Gh kuJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=fMI+CGIPKH5SbOwUbji5gwSRrdN0l3dcn45P2g6P+iM=; fh=KjGPWrsGkiU6pCyabXJPV1gHDl97izJMXiUv/IbyhFQ=; b=KUkKZM/+J0uEj+t0IwMyLeucAs0ks0GrKqLjOLLFFfd70sPxBCqvdxr3pnF3AZp9DT IhTelRzAg2Wsya84+k+jbVPhieIA9w8gQKbrRMSjtsPy7HuAolOd65GeY5byTreEwHtR iw1jR2PO0w2Q/Wr6nzYmCScb90yQy0X80FFYy9RweqtQg/sTL8pXa8YEiCrnD8z1Xzof /RNA60CnLZFctAviTCB2n3HWO0p9nn7iDjGPS1+MhbqLpnwrQYfAdT8THQZemxRBCGeu hf9oqWo2RVcco7YTWezg4n+pAfjzrQK6Et1CoUhhIub+pMh1WHVw1KjltMU0CWhQKYrs Opmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cz3CLVNA; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a170902780500b001b8af83d939si776584pll.537.2023.07.04.22.41.02; Tue, 04 Jul 2023 22:41:17 -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=@quicinc.com header.s=qcppdkim1 header.b=cz3CLVNA; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbjGEFdc (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 01:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbjGEFdY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 01:33:24 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA46BE3; Tue, 4 Jul 2023 22:33:23 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3655R9s6010520; Wed, 5 Jul 2023 05:33:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=fMI+CGIPKH5SbOwUbji5gwSRrdN0l3dcn45P2g6P+iM=; b=cz3CLVNA2zDbZ7WRpSSSjeoKVWmelpkuHDQz9ULBJRHIMMWksFuLS8KZMVCR4Ewka7ao L5ed7b6EBJ46IDvpr7X1LEPQWIGzZi2CQsVu+5xGTyvdihCTYPzs5yAbB1nJEarK76bW evm+RGgyPE2E1+Q56vK3ozCT4k7fVqgpfR9ABqCkVqwoy3WIOmkLMst/g1qJg2OaT+n0 4ZGKqTaCZaPHEhUi9+jWDmaRG4lorLeW5RMviBsXoJPwZP4v0PCU1xpopIpln1YvFsBo w/sViZv0wknQYpM+YORceKOGxCd1ITLyFEUTwoC8OA3hYmdp369nwawdsRrdS9MUnjg0 Ig== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rn2cp809d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jul 2023 05:33:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3655X1vM002420 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Jul 2023 05:33:01 GMT Received: from hu-schowdhu-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.7; Tue, 4 Jul 2023 22:32:57 -0700 From: Souradeep Chowdhury <quic_schowdhu@quicinc.com> To: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Arnd Bergmann <arnd@arndb.de> CC: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, Sibi Sankar <quic_sibis@quicinc.com>, Rajendra Nayak <quic_rjendra@quicinc.com>, Souradeep Chowdhury <quic_schowdhu@quicinc.com> Subject: [PATCH V7 0/2] firmware: Add support for boot_stats Date: Wed, 5 Jul 2023 11:02:30 +0530 Message-ID: <cover.1688533340.git.quic_schowdhu@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: -NcZajytzaNAr-41PGjW7zBddm3IesMk X-Proofpoint-ORIG-GUID: -NcZajytzaNAr-41PGjW7zBddm3IesMk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-04_16,2023-07-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 spamscore=0 clxscore=1015 bulkscore=0 mlxlogscore=534 lowpriorityscore=0 suspectscore=0 impostorscore=0 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050050 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,SPF_HELO_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770557986453878619?= X-GMAIL-MSGID: =?utf-8?q?1770557986453878619?= |
Series |
firmware: Add support for boot_stats
|
|
Message
Souradeep Chowdhury
July 5, 2023, 5:32 a.m. UTC
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 by the bootloader and populated on the device tree properties "pre-abl-time" and "abl-time" which can be be viewed from the user space like as follows:- /sys/firmware/devicetree/base/bootstats # cat abl_time 17898 As a part of this patch series added the bindings for boot-stats which was suggested in the v6 of the series. The link for the same is as follows:- https://lore.kernel.org/linux-arm-kernel/7d397e67-5d56-4975-98af-1ac9746c07f4@app.fastmail.com/ Souradeep Chowdhury (2): dt-bindings: firmware: bootstats: Add the dtschema MAINTAINERS: Add the entry for boot_stats support .../bindings/firmware/qcom,bootstats.yaml | 38 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml -- 2.17.1
Comments
On Wed, Jul 05, 2023 at 11:02:30AM +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 by the bootloader and populated on > the device tree properties "pre-abl-time" and "abl-time" which can be > be viewed from the user space like as follows:- > > /sys/firmware/devicetree/base/bootstats # cat abl_time > 17898 > > As a part of this patch series added the bindings for boot-stats which > was suggested in the v6 of the series. The link for the same is as > follows:- Should boot statistics be exposed to userspace through the qcom socinfo driver? I see that the socinfo v19 metadata has fields for the boot core and boot cluster [1], so boot timing wouldn't be out of place. Brian [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/soc/qcom/socinfo.c#n572
On 7/10/2023 8:50 PM, Brian Masney wrote: > On Wed, Jul 05, 2023 at 11:02:30AM +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 by the bootloader and populated on >> the device tree properties "pre-abl-time" and "abl-time" which can be >> be viewed from the user space like as follows:- >> >> /sys/firmware/devicetree/base/bootstats # cat abl_time >> 17898 >> >> As a part of this patch series added the bindings for boot-stats which >> was suggested in the v6 of the series. The link for the same is as >> follows:- > > Should boot statistics be exposed to userspace through the qcom socinfo > driver? I see that the socinfo v19 metadata has fields for the boot core > and boot cluster [1], so boot timing wouldn't be out of place. "Boot Cluster" and "boot core" are soc specific info which are fixed for a particular qcom soc recorded in smem region of memory. "Boot_stats" is not a property of a soc as such, they are KPI measurements in the boot time path stored in the imem region. So I not sure if this is the right home for it. > > Brian > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/soc/qcom/socinfo.c#n572 >