From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48A48EB64DC for ; Tue, 11 Jul 2023 05:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iqapJ44WMuZ7wA4804KD9gYkBCNYHDzoIYQ6ZchJtlY=; b=uQnSqbJ+kSxK1W v/uIHgpbw5wpcO3QQzf2Wm938SxFfrhi2xSrY8V2V+rSFJUyam+GMjLC8cuvV8puUgIBK0dYiismG cfOaaxWVQ6mnN8+YGfDhF2kCsbKz0ZI4zSyw6a36saUvp0hCFC2pwMXrv5VXpg/pabXKyKyAL0g2C +Fna+Jjg9VwXPZuVaNa7+V5Wv/ygFO/iQkc+rlZUeuSZ6W1eCZMXIYheOyWcbD1TWc4r2YW4lTEuu DvfzzdUniViUZGVn+aYGuhHdihtn5kvnnMTnIY1vx+sBEwmddu0MrX/gbOoMXlMz+ezBidMC5L7W4 iyWaMBeewcNjmPskZbqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJ5yo-00DlM9-39; Tue, 11 Jul 2023 05:32:06 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJ5yl-00DlKw-2h for linux-arm-kernel@lists.infradead.org; Tue, 11 Jul 2023 05:32:05 +0000 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36B53qBL023938; Tue, 11 Jul 2023 05:31:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=m/CC5OB0w71/IgL8c8C7UM203werPDp0QoX4/Uvu5Jc=; b=Le53YbwOg/otVxIZhSejurIBnulnt7WtP7wWstCvf7fHAKQ8kG8r5J89QmkEmI98M3s6 zjWQ+j0MKE9NerYF3E4ROwRTfijgW6s4dx6ivkiMOwMZUA5AmtEIxvEr8eBbRbBi8+lT sQ5BKwZhrbQEzMyZfOtPfo3XZOVfcxXiNQPLVFYqE3JUckbKYTdtywMWD7EGCexjBI4f Ih8L/7LTqPhgNO9IhH3bBHt/CcMfdwKQa/yxQ9PLwkyCw7XOcIPYEcOsttc583JYv4VZ 7AbvmnUy6W13wf3Su2/eBCLICujBDJDBtyEqGlUT1k4tilTykX10nXPWOHg0VowiGV5s qA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rs0kpg1b5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jul 2023 05:31:44 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36B5VIjW024546 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jul 2023 05:31:18 GMT Received: from [10.50.43.38] (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.30; Mon, 10 Jul 2023 22:31:14 -0700 Message-ID: Date: Tue, 11 Jul 2023 11:00:59 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH V7 0/2] firmware: Add support for boot_stats To: Brian Masney CC: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Rob Herring , Arnd Bergmann , , , , , Sibi Sankar , Rajendra Nayak References: Content-Language: en-US From: Souradeep Chowdhury In-Reply-To: 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: SbiCwzJyJJ0oeB5LrmC2A6lA_byGY6BT X-Proofpoint-ORIG-GUID: SbiCwzJyJJ0oeB5LrmC2A6lA_byGY6BT 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-11_02,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 suspectscore=0 clxscore=1011 malwarescore=0 phishscore=0 spamscore=0 priorityscore=1501 adultscore=0 mlxlogscore=754 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307110048 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_223204_013336_0693B11D X-CRM114-Status: GOOD ( 19.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel