Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp622516rwl; Wed, 12 Apr 2023 01:29:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvM3oxZT+xf8UhvP53KqUxQOdfianjgQlidJpaibrp7uRWIku9tfcxNJk48fzm8ZG7he24 X-Received: by 2002:a17:906:6c93:b0:94a:5503:e919 with SMTP id s19-20020a1709066c9300b0094a5503e919mr12155685ejr.35.1681288143798; Wed, 12 Apr 2023 01:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681288143; cv=none; d=google.com; s=arc-20160816; b=Flc8mil1sluKkRIrOX+yQaNkLnHFc7ME20LyVILyzYVBlPmXLR9qYMtivVVREHa+ic 9WGyJx4VDzoX5aUu2kAdQvJD4kExZ3gEHe+G7QUk9Yg1qqXfLQkbvxMENp7pZERk1Sss o6NnW2uENh1Lnch6Kvwhfy2u0zwLkE9FY8VTI53Ujair3a9c7RbRxphsOyk6aEdQ79g8 07xTEgfWa5Hi0vnJ4PjAE4Zp7ZZPdaTdC3bSHyjAAXRDxnqVknx2x4HIRajP0FQcZpQv tYHFvMzkBgA8A4Zy4qQ8df/5Tk/zEQ4zs1JBFmIl/xDIdsSFOJSeTszqQpXLoo+VoDeW RyEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bUO++GBBoZIwNOjnNCFjzZBL93b05/ZV0KX55fLaOwU=; b=QWSY4WLp4oxjbHyzRjtR/U/FKv28M9itaJnNbd02fBQ4lfd8O6ZBPri38iHQgvJF90 hsH8K8eiGXt3MmKpDlszlDEORvbfXlVWlEsy8T589AimB9LQGnoJGMYvEDd/TivsJuVq xIjRZHx9CVUzckgnDhVKPw3/HaFTFTW46DMJPTNlfnFxdcjg3VBnxSxlr4v0H/hiNVGa brkkjSLSRXXljPaGsyBv87U0CeaAkYY+ctMpgV1goMtGeuuKQYGmeayWyMD/tvyccYG/ OcRi1zEXpTd+McCK0xvx2hwabH/nc+Jjz95+ZS8ChRfvkHCNjVVG0crwvPSk0w59Fbl3 tKnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ermxDx5y; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a1709062a4800b0094a52b052adsi5183974eje.455.2023.04.12.01.28.39; Wed, 12 Apr 2023 01:29:03 -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=@linaro.org header.s=google header.b=ermxDx5y; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbjDLIVh (ORCPT + 99 others); Wed, 12 Apr 2023 04:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjDLIVg (ORCPT ); Wed, 12 Apr 2023 04:21:36 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C506765AB for ; Wed, 12 Apr 2023 01:21:21 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id kt17so14549141ejb.11 for ; Wed, 12 Apr 2023 01:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681287680; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bUO++GBBoZIwNOjnNCFjzZBL93b05/ZV0KX55fLaOwU=; b=ermxDx5yXw3LJg8LQ8y2VaBrAXai3Mv+rhv8GcQn3FHDDqqQowqbBAoeC5yZDFfR+w XwTQzHDu0O0A4613YnmWvj8BIy4fHL4xrfax2BpHR9nTxxPY/jytPjb9Lkz8PqkBfmIm 8VBNl1sIGXD4ZaG9ztqGv+pfB7IYo5yVRPi67YZsysR/AxCmCIVssdR90eIedq4CRdvg sfV7BKKAZrXcwI6AkqTH/IUWm9Od9NyCszcED2Ken8jJDSCzorU/uYvgGSrsNB1GNb9I 3keRCkUtEG1PgtAPyTVaxfgrXniQFBlS4zIZrjPi4AgJHEClRPsSys3MIQqVyyPcOEUL kr/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681287680; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bUO++GBBoZIwNOjnNCFjzZBL93b05/ZV0KX55fLaOwU=; b=wlzGC/peOWnrhgkKoZ1EBWi8twO23uxamxs4Ldp2ABRkpy0itVjp8wrDgeGFbvuG0t zOAXOn0sw1m6z7ghfFaJRWv40zAzrC5X2cueNM0KdDaYgWDMqoHi8iX620gHS0bD0tc9 V3pDQOLrfVj5mlzp49PsNcJipjvP+LVSEjxNajYWn0tYZklS2RD5GLCXFRYqGDWLTsl8 MQmcI03uow+jaUcEG8GQ6tDxWeAci4OhG11zPV186enBNzphJEO+S7vCpZHiAF/u/Fmo 6H/nUZOYiVo/MsYxSXH1WsfPtuB3MKES8u/148YtF37mq3wo9z2A5bpdSbV+PNnCjaZB fBPg== X-Gm-Message-State: AAQBX9etiSVbJF0NhAm4Xk61sXaTU1L4Ll+81IRDONRk/2s7SSF5JB8H HJUwXYXx3fyURXy8mX+hoF7yKg== X-Received: by 2002:a17:907:1ca3:b0:92e:eecf:b742 with SMTP id nb35-20020a1709071ca300b0092eeecfb742mr16457515ejc.2.1681287680177; Wed, 12 Apr 2023 01:21:20 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:8fa0:9989:3f72:b14f? ([2a02:810d:15c0:828:8fa0:9989:3f72:b14f]) by smtp.gmail.com with ESMTPSA id sb2-20020a1709076d8200b0094a785e362dsm3305279ejc.141.2023.04.12.01.21.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 01:21:19 -0700 (PDT) Message-ID: Date: Wed, 12 Apr 2023 10:21:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH V2 2/3] soc: qcom: boot_stat: Add Driver Support for Boot Stats Content-Language: en-US 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 References: <5eeeb46e9b3f61656a37cb77c2ad6a04e383c16d.1680874520.git.quic_schowdhu@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <5eeeb46e9b3f61656a37cb77c2ad6a04e383c16d.1680874520.git.quic_schowdhu@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 07/04/2023 16:04, 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 print the information. This information is > useful in verifying if the existing boot KPIs have regressed or not. > A sample log in SM8450(waipio) device is as follows:- > > + > +static int boot_stats_probe(struct platform_device *pdev) > +{ > + struct device_node *np_mpm2; > + struct device *boot_stat = &pdev->dev; > + > + boot_stats = of_iomap(boot_stat->of_node->child, 0); > + if (!boot_stats) > + return dev_err_probe(&pdev->dev, -ENOMEM, > + "failed to map imem region\n"); > + > + np_mpm2 = of_find_compatible_node(NULL, NULL, > + "qcom,mpm2-sleep-counter"); This is undocumented and non-existing compatible. No, we cannot take this. Also, referencing other nodes should be with phandles, not compatibles. Best regards, Krzysztof