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 BDCC8C77B6E for ; Wed, 12 Apr 2023 08:22:16 +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-Transfer-Encoding:Content-Type: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=w7ApNcTTokqKvEbhh/ZK3US4hHqZ2jqhPjifh4h1HkU=; b=ZmPJnWVM8KLu9p YvWpR3oh6Cb+G3aE4mcFhEic1beZAeicqQb7t2rHOQ5rqyj+FKw8r8r9wQ80XYlF/pUXLisxff14a +eUUJcL9HoNv9WqEXZRqLeJEuAefcMyAR/mxelTbkXRdc52QG+UWJqRZ6objmTeZ2NYLX1CXUUNGV 0vQwburHPVBfKKqUkr6thxsGF6B/nOilOJkuDLudMOfH4RMg7oWaVXpJv2++b+l7bWcXcUifrWoxI M9NqpYsdEgKsQN+TvLE3H3EvCkJBHLH1k9KANn1zVz/bg/YvLtIN29TGFJZbdiKb5as1nvWuWGBOo mqpXzbUSSlRdNktkK0Ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmVjJ-002EsX-1z; Wed, 12 Apr 2023 08:21:25 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmVjH-002ErU-0y for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2023 08:21:24 +0000 Received: by mail-ej1-x634.google.com with SMTP id sh8so26673097ejc.10 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=2hSYZp6uVz3+2+4YSIK78q0cU1pr6L94cLgoqgN/UOy8qOdIlIa6zZZ+vRs3j89WEC I1oJO2rdcL6C87ST4kNY43lkA+/Te3hYoO9BSuqgQ4VLV/euL67ytXEIgKC25eudKvOt wHkmG3NDUcvIonXfKwg2AJ/M7ruMS5cPmlCLXyB+SEMQhdIxBZMytp3OhRykPTF5fkW9 ck6Xh4Rwz4QI96JvCJJyjJpPfFl6O1WCryquSAH5AxpDgWNUw/pvjUuovm/h3y01P4Hd omNWzSFExbGX1/i4M4AnhMdmpgkFuOZtFYfXal12i1HMEzHuSPvYJyINw9aQegm04LLn 9PpQ== X-Gm-Message-State: AAQBX9exHilx68ZHjC/pFzYAT0kRpJ3gnW8J+48Ls8qnZmjGm3MInWju 0cbeCNszvqtDYqoKxxlWZlErRg== X-Google-Smtp-Source: AKy350YgD9pPWbZwe31IUoR7ZwLqJFu4tppJMfLi/4jG5W6CI1Yx5BtjvxaAME8sdzTWSeH+UZ9oqA== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230412_012123_343780_728DA371 X-CRM114-Status: GOOD ( 16.61 ) 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel