Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7651531rwl; Tue, 10 Jan 2023 03:45:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXsDUxtDFrQjTqJsAr2u7oEnNv9teO6EDnB3b3Bfjqu6zmU9PT0cIaN7+hGpnWfELu9rn/qA X-Received: by 2002:a17:906:d0d0:b0:7c1:23f2:5b51 with SMTP id bq16-20020a170906d0d000b007c123f25b51mr64901160ejb.60.1673351115680; Tue, 10 Jan 2023 03:45:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673351115; cv=none; d=google.com; s=arc-20160816; b=XayfyGc8yk2h2XFL4DqZrDIxR4vyYmTx9hQQjL1Pzd4KP1GH4Y+0Cj5wGI5afzrOXr iWQIS6rTyx8P9efg+TzqqA1bj3zdlMtvVuNWxuHZMfhjKDD1KqBZZ6heMpUppPAHB+2l rds/Glbr/1gq/o9SdAxAGTspfe4peI+SSYZbuzL1DLKUBM/Im1F3/KoeTXeeICTGdeP9 /azSnyY3ANoIsmrNKZ3IdUloGU/RWdtcKJ6eAAPvh9uG2EVIhq3RcR9Qzg7jFY2WAGL/ DjvcjA7dm9RtHjAZEfQh9j0GqwHG/wpeG9uPu9LwFO02DVzR3E/QOPdbb/mRYh5wrQn/ bGMg== 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=ySX3CqiWYeBusCdMeRMR9e/8ifnzdKBQyuw3gT2RojM=; b=YFINwc9BlDX5c9qk65oD+ceUGUtXRmOXXF9Sqp+VoFAkVxV/SU+NOwr7ijkdNiQn7d dy1kujrsojcd3q+9N5oIzGqgHZpyGAB5lFblfLAQRy7dwwVFrHnuXnSlSL0NZ4vFuwcJ hrut0Sp1eYQX4LXw+p+EyQabFIqrxWBJgwIBpgfuQJOkqqcMf9gEEo22CKbeW6Cc4aHZ TSKaql1omGgX+PNE8Ohe1BsGNUxTWFplK9RxAdBljiYuxstJkbyjVsNmANm89jAzuFTt 1PDJx9wFf5Bni735NBklIJlipPyMlldK3CtnXY0sPL0KFrlaBIAg9tnQPS4L/lMKSqxa 5PjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=C5rR2ThI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr5-20020a170907720500b007c12e19ba40si12019477ejc.666.2023.01.10.03.45.02; Tue, 10 Jan 2023 03:45:15 -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=qcppdkim1 header.b=C5rR2ThI; 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 S233210AbjAJLCy (ORCPT + 55 others); Tue, 10 Jan 2023 06:02:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238630AbjAJLAh (ORCPT ); Tue, 10 Jan 2023 06:00:37 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF004E95; Tue, 10 Jan 2023 02:59:54 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30A5T1dL030732; Tue, 10 Jan 2023 10:59:44 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=ySX3CqiWYeBusCdMeRMR9e/8ifnzdKBQyuw3gT2RojM=; b=C5rR2ThI1vdViUguH/vKJAfFF84gWCoNq162vWZjstxbaelXh+XYOpWVJlvbxJ+1rPV4 27utJIdYNESqlIVn8ITtcpVL+QJT+P2FfLFuZ6wtG8ZIvLao02pgp0uNdhkjsrBmAy4z H23hcKXfIWn17BggzXtP1cTDR9dbjS2Po0A/ZYv4UQ9yFuI4tqvhzrMvbuS7YZFSWK8G oSB/h8nAEOIJ5p0leQ6nXwb+XIdMevbeDKOxV/+so8zryCr1mY0vrA4FQVTHMeSalCOI RMmwVI7qK2aM413HYZY0FFOCge2NWgJdOASLJnaBpT9zJV54SvwORmqbJ77bPMPrKMr3 vA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n0x0jh2xm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 10:59:44 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30AAxh1I026269 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 10:59:43 GMT Received: from [10.50.61.82] (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.986.36; Tue, 10 Jan 2023 02:59:40 -0800 Message-ID: Date: Tue, 10 Jan 2023 16:29:37 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH V1 0/1] soc: qcom: dcc: Add QAD, Cti-trigger and Bootconfig support for Data Capture and Compare(DCC) Content-Language: en-US To: Bjorn Andersson CC: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Alex Elder , , , , Sai Prakash Ranjan , Sibi Sankar , "Rajendra Nayak" , References: <20230109151818.hxpi2nleb53ibv7w@builder.lan> From: Souradeep Chowdhury In-Reply-To: <20230109151818.hxpi2nleb53ibv7w@builder.lan> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: Z-yrnfP8mfooE5llZCV1f06lKYXwjIlo X-Proofpoint-ORIG-GUID: Z-yrnfP8mfooE5llZCV1f06lKYXwjIlo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-10_03,2023-01-10_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301100066 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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 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 = >> qcom-link-list =
, >> } >> } >> >> 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 >>