[V1,0/1] soc: qcom: dcc: Add QAD, Cti-trigger and Bootconfig support for Data Capture and Compare(DCC)
Message ID | cover.1673270769.git.quic_schowdhu@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2179832wrt; Mon, 9 Jan 2023 06:15:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSDi0tom3mRqkAgKetj2d5FxqAo8InzFQMnoT5PDNkzjVZFdjnsvy522C5lVMDviiytQoz X-Received: by 2002:a05:6402:550e:b0:47d:ca3a:3b32 with SMTP id fi14-20020a056402550e00b0047dca3a3b32mr70364557edb.9.1673273745212; Mon, 09 Jan 2023 06:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673273745; cv=none; d=google.com; s=arc-20160816; b=0M5UJHxulOX1w4CoDP+iFF+mU15Ei25zdE04TOggyPDrlsAjEWH273VNbCKDggagZr 80Mll1NdVgaOIuyDvAfeUadWyb2k4TbLXcxUWtGCyREBRqqXh1TkFeijOkTAIQKCBan7 G2yDnWvEX+Zu0bukXTkq4qhNX0LH2yQAqGi2L4RQuDJmiW1L4/kaUX09YzRW1LScW9/v LW+jRx03N338Bs3nNR2rTocx8KmMqj6EW8QU7fySbk90tmaN7j2XKf2L4CNUHH04kdiE Fa7/rkGop3NEfBH+0HqJX5WevhefR2XTwd4kEH33MfuvhwU1U86U5u4fyLcG50Z86DeL fCOg== 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=WgTYfSYdaLwQBeKjDZ79qcKrIi+QJDn2vkdsvCTF9KQ=; b=Y7ZuqPwbXyz6romMJmPTqBpXggkjfUm20XftKxGZ1Zs2wf/lVdd+HojUKC6+VEnmOs hCz6KJvnWlqXN9ADumTFqoA3k7rZVFajH1wUtmhzHJypce9jbWovvC/7FB+WihlrT1B3 kR8aCYEfErBDaybyQVXkFwYy/xrG7PJc/3RPU+hRU7Ar94arXHwi8zPD7ewMscb6t0p4 Yp4AP9nGSbSgaZQDvefQYtm8brY+mG7MgtofPyzWvggjyRiNx3seUMuR4NQLJbrJHuXd FeFsnvgBucdwntcq4uqQ7BAc/pQHJZ0SaVWC0SsIQnbJuPJ+i1yapkXNj6fTCy/UJJM6 Gwtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=EcUAvOgI; 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 g14-20020a056402090e00b0048721e1b62csi10669518edz.613.2023.01.09.06.15.20; Mon, 09 Jan 2023 06:15:45 -0800 (PST) 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=qcdkim header.b=EcUAvOgI; 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 S234915AbjAIOGB (ORCPT <rfc822;274620705z@gmail.com> + 99 others); Mon, 9 Jan 2023 09:06:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237269AbjAIOFT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Jan 2023 09:05:19 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 084642A2; Mon, 9 Jan 2023 06:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1673273116; x=1704809116; h=from:to:cc:subject:date:message-id:mime-version; bh=WgTYfSYdaLwQBeKjDZ79qcKrIi+QJDn2vkdsvCTF9KQ=; b=EcUAvOgIsoRGkfqOUisnfA/UT3PrqRmZgf1bCe6Un3Nyh5Mu7yDgS/Cn PCEK9rTBvLVhQH/xR+IfeGn3hS0QamdaR1Yfm/lnqROsH8qYtzSQb8K/u 8Ym6k3etWAoR1OGkgCJlz28k2/szSdTosy7nJhyF9k5h+q3jFS65J3deu E=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 09 Jan 2023 06:05:15 -0800 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 06:05:15 -0800 Received: from blr-ubuntu-525.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 06:05:10 -0800 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>, Alex Elder <elder@ieee.org> CC: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>, Sai Prakash Ranjan <quic_saipraka@quicinc.com>, Sibi Sankar <quic_sibis@quicinc.com>, "Rajendra Nayak" <quic_rjendra@quicinc.com>, <vkoul@kernel.org>, Souradeep Chowdhury <quic_schowdhu@quicinc.com> Subject: [PATCH V1 0/1] soc: qcom: dcc: Add QAD, Cti-trigger and Bootconfig support for Data Capture and Compare(DCC) Date: Mon, 9 Jan 2023 19:32:25 +0530 Message-ID: <cover.1673270769.git.quic_schowdhu@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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?1754554690454248558?= X-GMAIL-MSGID: =?utf-8?q?1754554690454248558?= |
Series |
soc: qcom: dcc: Add QAD, Cti-trigger and Bootconfig support for Data Capture and Compare(DCC)
|
|
Message
Souradeep Chowdhury
Jan. 9, 2023, 2:02 p.m. UTC
This patch adds the Bootconfig, QAD and CTI-Trigger support for DCC. 1.Bootconfig Bootconfig parser has been added to DCC driver so that the register addresses can be configured during boot-time. This is used to debug crashes that can happen during boot-time. The expected format of a bootconfig is as follows:- dcc_config { link_list_0 { qcom-curr-link-list = <The list number to configure> qcom-link-list = <Address as same format as dcc separated by '_'>, } } Example: dcc_config { link_list_0 { qcom-curr-link-list = 6 qcom-link-list = R_0x1781005c_1_apb, R_0x1782005c_1_apb } link_list_1 { qcom-curr-link-list = 5 qcom-link-list = R_0x1784005c_1_apb } } 2.QAD QAD can be enabled as a part of debugfs file under each individual list folder. QAD is used to specify the access control for DCC configurations, on enabling it the access control to dcc configuration space is restricted. 3.CTI-trigger CTI trigger is used to enable the Cross trigger interface for DCC. On enabling CTI trigger the dcc software trigger can be done by writing to CTI trig-out. Also the hwtrigger debugfs file is created which needs to be disabled for enabling CTI-trigger. Changes in V1 *Fixed the W=1 warnings in V0 of the patch Souradeep Chowdhury (1): soc: qcom: dcc: Add QAD, Ctitrigger and Bootconfig support for DCC Documentation/ABI/testing/debugfs-driver-dcc | 24 +++ drivers/soc/qcom/dcc.c | 284 ++++++++++++++++++++++++++- 2 files changed, 304 insertions(+), 4 deletions(-) -- 2.7.4
Comments
On Mon, Jan 09, 2023 at 07:32:25PM +0530, Souradeep Chowdhury wrote: > This patch adds the Bootconfig, QAD and CTI-Trigger support for DCC. > As with the other patch, please move your motivation into the commit message of the patch. That said, this seems to be 3 different topics, and hence should be three different patches. > 1.Bootconfig > > Bootconfig parser has been added to DCC driver so that the register addresses > can be configured during boot-time. This is used to debug crashes that can happen > during boot-time. The expected format of a bootconfig is as follows:- > > dcc_config { > link_list_0 { > qcom-curr-link-list = <The list number to configure> > qcom-link-list = <Address as same format as dcc separated by '_'>, > } > } > > Example: > > dcc_config { > link_list_0 { The name of the node does not seem to have any significance; this could be nice to mention. I also think it would set a good precedence if you used the number of the qcom-curr-link-list in the node name, rather than just an iterator... > qcom-curr-link-list = 6 > qcom-link-list = R_0x1781005c_1_apb, > R_0x1782005c_1_apb > } > link_list_1 { > qcom-curr-link-list = 5 > qcom-link-list = R_0x1784005c_1_apb > } > } > > 2.QAD > > QAD can be enabled as a part of debugfs file under each individual list folder. > QAD is used to specify the access control for DCC configurations, on enabling > it the access control to dcc configuration space is restricted. > Who is locked out from this restricted access? Please mention why this is a good thing. > 3.CTI-trigger > > CTI trigger is used to enable the Cross trigger interface for DCC. On enabling > CTI trigger the dcc software trigger can be done by writing to CTI trig-out. > Also the hwtrigger debugfs file is created which needs to be disabled for enabling > CTI-trigger. > Please mention why hwtrigger needs to be disabled, and why does it need to be disabled? > Changes in V1 > > *Fixed the W=1 warnings in V0 of the patch Please follow the standard practice of giving your first version of a patch version 1. Thanks, Bjorn > > Souradeep Chowdhury (1): > soc: qcom: dcc: Add QAD, Ctitrigger and Bootconfig support for DCC > > Documentation/ABI/testing/debugfs-driver-dcc | 24 +++ > drivers/soc/qcom/dcc.c | 284 ++++++++++++++++++++++++++- > 2 files changed, 304 insertions(+), 4 deletions(-) > > -- > 2.7.4 >
On 1/9/2023 8:48 PM, Bjorn Andersson wrote: > On Mon, Jan 09, 2023 at 07:32:25PM +0530, Souradeep Chowdhury wrote: >> This patch adds the Bootconfig, QAD and CTI-Trigger support for DCC. >> > > As with the other patch, please move your motivation into the commit > message of the patch. > > That said, this seems to be 3 different topics, and hence should be > three different patches. Ack > >> 1.Bootconfig >> >> Bootconfig parser has been added to DCC driver so that the register addresses >> can be configured during boot-time. This is used to debug crashes that can happen >> during boot-time. The expected format of a bootconfig is as follows:- >> >> dcc_config { >> link_list_0 { >> qcom-curr-link-list = <The list number to configure> >> qcom-link-list = <Address as same format as dcc separated by '_'>, >> } >> } >> >> Example: >> >> dcc_config { >> link_list_0 { > > The name of the node does not seem to have any significance; this could > be nice to mention. I also think it would set a good precedence if you > used the number of the qcom-curr-link-list in the node name, rather than > just an iterator... Ack > >> qcom-curr-link-list = 6 >> qcom-link-list = R_0x1781005c_1_apb, >> R_0x1782005c_1_apb >> } >> link_list_1 { >> qcom-curr-link-list = 5 >> qcom-link-list = R_0x1784005c_1_apb >> } >> } >> >> 2.QAD >> >> QAD can be enabled as a part of debugfs file under each individual list folder. >> QAD is used to specify the access control for DCC configurations, on enabling >> it the access control to dcc configuration space is restricted. >> > > Who is locked out from this restricted access? Please mention why this > is a good thing. Ack > >> 3.CTI-trigger >> >> CTI trigger is used to enable the Cross trigger interface for DCC. On enabling >> CTI trigger the dcc software trigger can be done by writing to CTI trig-out. >> Also the hwtrigger debugfs file is created which needs to be disabled for enabling >> CTI-trigger. >> > > Please mention why hwtrigger needs to be disabled, and why does it need > to be disabled? Ack > >> Changes in V1 >> >> *Fixed the W=1 warnings in V0 of the patch > > Please follow the standard practice of giving your first version of a > patch version 1. Ack > > Thanks, > Bjorn > >> >> Souradeep Chowdhury (1): >> soc: qcom: dcc: Add QAD, Ctitrigger and Bootconfig support for DCC >> >> Documentation/ABI/testing/debugfs-driver-dcc | 24 +++ >> drivers/soc/qcom/dcc.c | 284 ++++++++++++++++++++++++++- >> 2 files changed, 304 insertions(+), 4 deletions(-) >> >> -- >> 2.7.4 >>
On 09/01/2023 15:02, Souradeep Chowdhury wrote: > This patch adds the Bootconfig, QAD and CTI-Trigger support for DCC. > (...) > Souradeep Chowdhury (1): > soc: qcom: dcc: Add QAD, Ctitrigger and Bootconfig support for DCC > > Documentation/ABI/testing/debugfs-driver-dcc | 24 +++ > drivers/soc/qcom/dcc.c | 284 ++++++++++++++++++++++++++- No need to send the patch to unrelated people. Be sure to rebase it on latest kernel and then use scripts/get_maintainers.pl to get folks and lists necessary to CC. Unless your code adds here DT properties, but then you miss bindings, so would have to be fixed. Best regards, Krzysztof