From patchwork Wed Jul 5 05:32:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souradeep Chowdhury X-Patchwork-Id: 115940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1650192vqx; Tue, 4 Jul 2023 22:50:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Kl1rtHkRWzApXcSsfq3JvR8xjlnh0OGXNF2kfQ+dI/e5XtqJVsddgJPqkk+DuQTuxcN/2 X-Received: by 2002:a05:6870:75ca:b0:1aa:30e3:6a5e with SMTP id de10-20020a05687075ca00b001aa30e36a5emr18826815oab.22.1688536218272; Tue, 04 Jul 2023 22:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688536218; cv=none; d=google.com; s=arc-20160816; b=WAnuSsrlpR6tAjKBuPT5hxteT37XEkiRPin0ccdqWef142jQ5yS90FfR7nIQGa5/5N ilaDgGzPzRTkYOseEIqnasxBpZqszJhW6TVj2QHZTwasjWWhtl9P+OUSJw+n4vBYIYSO PA9HGfQjPjicapPMju+fMj87atNj7xfMM2gh87RiI5hRlGfZD1q/3A9grxGgu9D779SA 5luAjTeSkonrY81jlrlJnBzLaQ6OnbY4nXSHJuAjpAZYuZ+EdVANHYP8NdjbxTIGaSCu RLc71L6qLr9OgT1cXl0LeqJ46SdivbFVBulZN3lSseb3ldshkz/TzgLtZ+v1ipR0tfL9 1g/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pylOfRWfH248mlqc1U0JPUDCsmfMI/NoUbc91IZ6M8Y=; fh=jC45Mg5WXDXLXBnv56DxbXtmLsAdfnrQ890ArfI/DI0=; b=vIJzJF+7721TaWZl//tv5reCGIVQG2GfpKreOv44j2YajTxeJK04qOLwUhK3Ch4TWf GVRgbEw2pm023UQSoQunHheT9STZiMUWcCmVQKtReKaslrUWdFNhroKQw8AUfa3zKARE UIpcbCq/JeI235sHYSwVpXBp63Riw6B6vl69zQBVts98Aqai/Nqgctc+fWZs77V4leT0 Mqj9EHM6WR57HuQ0UbDzqRzr6ipWhGXss1Z3okyfr33oYfcFuQvEeevj3aEZpLimVjuZ 5bGsa8UKtIQDXW2KWLgJ9Y1CoEfdK9561KANG9CmTFiINjxi2Qnr2gk9oG4Q7BfOr5cP V+ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dfPagyoK; 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 nu4-20020a17090b1b0400b0025669d0176asi1046203pjb.134.2023.07.04.22.50.01; Tue, 04 Jul 2023 22:50:18 -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=dfPagyoK; 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 S231331AbjGEFdZ (ORCPT + 99 others); Wed, 5 Jul 2023 01:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjGEFdX (ORCPT ); Wed, 5 Jul 2023 01:33:23 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10361E3; Tue, 4 Jul 2023 22:33:21 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3655AJrW022700; Wed, 5 Jul 2023 05:33:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=pylOfRWfH248mlqc1U0JPUDCsmfMI/NoUbc91IZ6M8Y=; b=dfPagyoKkQVdsIGmniW/sTWEaSQB8WVp+R8oqpFcH7EuGjgR8aryqEwJTdlI4bPMhhPL hefkbLDkzj1aC0rdnMCkHTkvBrxB0i4KXrzlKaULNbDBekOvmvZZQ+mzJXvYMhTvk+8h FHPwz6MTvXwiAKgkwszfnFTx90/TNWU8dj+Nqf6TB369zlA+QCYM2CFsGOiJVARcf7JG Z8zMch47j/KHUrlsEkIRp2IiICajNfp98OhvgodrRepo8bGtu2BKXbBszW345vcBBxCv m5Q948zy9/a3zy35YrwccsFbzWQ/nObfyRh6awiqOTosOx2JqJgeG5snkgWWaPd5q1mv QQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rm8v9jxrd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jul 2023 05:33:06 +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 3655X52h013701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Jul 2023 05:33:05 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:33:01 -0700 From: Souradeep Chowdhury To: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Rob Herring , Arnd Bergmann CC: , , , , Sibi Sankar , Rajendra Nayak , Souradeep Chowdhury Subject: [PATCH V7 1/2] dt-bindings: firmware: bootstats: Add the dtschema Date: Wed, 5 Jul 2023 11:02:31 +0530 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 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-ORIG-GUID: md7FFK7CBCdVAN8pRFrjBIamFuZUnvbN X-Proofpoint-GUID: md7FFK7CBCdVAN8pRFrjBIamFuZUnvbN 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 impostorscore=0 adultscore=0 mlxlogscore=794 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050050 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770558553523221162?= X-GMAIL-MSGID: =?utf-8?q?1770558553523221162?= Add the device tree bindings for boot stats. This has 2 properties pre-abl-time and abl-time which records the timestamps for boot stats. Signed-off-by: Souradeep Chowdhury Link: https://lore.kernel.org/linux-arm-kernel/7d397e67-5d56-4975-98af-1ac9746c07f4@app.fastmail.com/ --- .../bindings/firmware/qcom,bootstats.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml diff --git a/Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml b/Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml new file mode 100644 index 000000000000..22e697524058 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/qcom,bootstats.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Boot Stats + +maintainers: + - Souradeep Chowdhury + +description: | + 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. + This is captured in the unit of ms in devicetree property. + +properties: + pre-abl-time: + description: The property to store the starting point of abl in ms. + $ref: /schemas/types.yaml#/definitions/string-array + + abl-time: + description: The property to store the duration of abl in ms. + $ref: /schemas/types.yaml#/definitions/string-array + +required: + - pre-abl-time + - abl-time + +additionalProperties: false + +examples: + - | + bootstats { + pre-abl-time="17627"; + abl-time="26748"; + }; From patchwork Wed Jul 5 05:32:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souradeep Chowdhury X-Patchwork-Id: 115942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1654233vqx; Tue, 4 Jul 2023 23:01:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHq0K6dpU1PX/3dOF8Pt/SKawFaS/U9JpQBZPRmU+KS8gYU2rKKFmprsUIjgSvPctT7ZwR9 X-Received: by 2002:a92:c604:0:b0:345:ca59:1546 with SMTP id p4-20020a92c604000000b00345ca591546mr15718531ilm.10.1688536906817; Tue, 04 Jul 2023 23:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688536906; cv=none; d=google.com; s=arc-20160816; b=dfCPGEEIiQAm+U00j5I2t3pqhAzj2DgEFD+LvHxGDdbEnAyoL+KalsdEMLD/EBgcAx KjkrVBdo9CM6labd6I6mgQDwsHPFZ9qoYW73Jlj933KQUCRoFprKyW6NMraeEqIO9OvU DkvW0PzP0shexgExmd+sEKCbb4i6hD+lx3XasgQK4u8FVt7c8lp/+Bo9a3OcTiEH3kAA 6YOskWeH39JodXyu2iuuxsoBqKiN/EDd8/tvMmUVP6Ynl/othjAKjEBVlNXO/6L1h3Ex qnQyS8MqduANk0F65ZISyKrMAhiTJq9h8RwnIujeaW5+ryrGTBQjFU063iPUcugwD2eb v3NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VBn+6g/AKZ/5N8BfkTAaOPp196/bz1KtLYKjGE+AT1I=; fh=KjGPWrsGkiU6pCyabXJPV1gHDl97izJMXiUv/IbyhFQ=; b=WJTJPkn5O9uHYCy+hYkZQZln8d0lJXaIZJC6XrNFJH/DfuYylXHEztfhXIA8BPt27P 9v4xKv4L+OEsm/BOs1V7i/174jVhBq1r99wzLfYXdLAAU27oUvIa/KdkmEVh3+/kW/Lm E+OGQ27HCVuOmIXHnzbuCbpZpVFwjCu3JVNBfODRs9XZFYWsgB+KeT20oWa1dLbAXli7 DOrURyFRXkrb7kWHTVSQFRcyhKUptJWYgIbAY7ChcEvOlenyiWfIFV6l/roeMPhDZ5vB M8EN2zFwjnti5g6G9DZUTC2PlbMIv5TBX2AFZp23NK58tm/bQI0VxDu3pM0e5tQdoeR5 +7yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=E6v3pTg4; 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 bk13-20020a056a02028d00b005576708cc6bsi22943416pgb.475.2023.07.04.23.01.33; Tue, 04 Jul 2023 23:01:46 -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=E6v3pTg4; 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 S231177AbjGEFd2 (ORCPT + 99 others); Wed, 5 Jul 2023 01:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjGEFdX (ORCPT ); Wed, 5 Jul 2023 01:33:23 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DFA0E72; Tue, 4 Jul 2023 22:33:22 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3652MLji002170; Wed, 5 Jul 2023 05:33:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=VBn+6g/AKZ/5N8BfkTAaOPp196/bz1KtLYKjGE+AT1I=; b=E6v3pTg4EXs7Ra8WcufnsDUtr8HIrcsJqIhVcQbNPwRGJxnNq91uCMvaAmPX/7srxnwA FiHXS2zQnmCDg1F0Twcxo+uZe9vKOj3XOnNVrKQN8bardEEU5HhT9nKGA2GDB/rHIqGk ExaCfAuuNBqJlbemJpY3HwcKFKTifVlckM0+Y+TteTmHyLUPiMI+x/FtDGZ6zmuoSAL1 Zcq8fP6VWoOVcisO+LS5moBW2dxr1UjnCGP4t9GgLPolS/0plWEpKEWb+P/Kf1ezeyKA 21Qg6LqdvlGQJcbN6LpK9krrvzCeH8c0q50H6jCvM4cwi9Qv7PYyeeQcSnZiLAcuBEWW iQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rm8v9jxrg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jul 2023 05:33:09 +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 3655X9Zx013751 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Jul 2023 05:33:09 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:33:05 -0700 From: Souradeep Chowdhury To: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Rob Herring , Arnd Bergmann CC: , , , , Sibi Sankar , Rajendra Nayak , Souradeep Chowdhury Subject: [PATCH V7 2/2] MAINTAINERS: Add the entry for boot_stats support Date: Wed, 5 Jul 2023 11:02:32 +0530 Message-ID: <0ec18563282e218fdf0d17fa239d4832ab391b78.1688533340.git.quic_schowdhu@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 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-ORIG-GUID: L2xleMS0oc5bTy2bbkJH1KTDeEMg22lK X-Proofpoint-GUID: L2xleMS0oc5bTy2bbkJH1KTDeEMg22lK 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 impostorscore=0 adultscore=0 mlxlogscore=722 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050050 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770559275904000876?= X-GMAIL-MSGID: =?utf-8?q?1770559275904000876?= Add the entry for the file added as a part of support for boot stats. Signed-off-by: Souradeep Chowdhury --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4eba5e88c6b0..ee64b9e7b7cc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17173,6 +17173,12 @@ F: sound/soc/codecs/wsa881x.c F: sound/soc/codecs/wsa883x.c F: sound/soc/qcom/ +QCOM BOOT_STATS DRIVER +M: Souradeep Chowdhury +L: linux-arm-msm@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml + QCOM EMBEDDED USB DEBUGGER (EUD) M: Souradeep Chowdhury L: linux-arm-msm@vger.kernel.org