From patchwork Mon Jan 30 05:13:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souradeep Chowdhury X-Patchwork-Id: 13120412 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 0AEAAC54EAA for ; Mon, 30 Jan 2023 05:17:11 +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:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=njeXRKJgUd3BFTDWQ474oq2aGXS1TQDculHQiLcKfF0=; b=ZixuRDy3//opfo uASiPdHPBKID+LE10k0bRKry6VgId+fQTJCVvOyz5sNWYGh3kXgwGo50cSnjDkCwA70Kck2Hjyejb tdUEeCco5M0ZYfh6l/ECedFbDY6fXT/QIwQ+h+9+iZvjoZz5Sg7ojOm4/eiK64ZH7nrdbE2EKO+bc WofEUGc2jJS/g6ew+aBBrOR+39b0OtShZQPgz7oXotoalkSKSZP2PBJf0qLrnZejhaOI8/m30oUCf +6gM8wCHps3OK5vofRMe/7+b2gvwGfKhiLFYEzFp82VCPPynDn/dosv6jgRAx7zfgjkICgsEqHO39 aMo7k70lVXd9vKEGloqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMMVn-002O6o-BD; Mon, 30 Jan 2023 05:15:23 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMMV4-002O5w-65 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jan 2023 05:14:39 +0000 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 30U39JgS022614; Mon, 30 Jan 2023 05:14:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=Pw6dA7lXBfHsLc86fXrX1AniFEhG2jBSh7rS/QpUxAU=; b=OGKrr9COMKwE8hbmiEEyDoDsFutl8JuVcPBZmRKeIyEZ4f57ZtVPUHfTM7DWgTdbdWO3 /7G0mdm4YBDFelDM74NpyzvgIrBbayw7rej3MsT5ImZg6wKMCY9cj71J1hMAiaHHEX7f WpI3T174Is25i+HsdIoY1S67KWXzFdRAEzxhP953DigjtBwTAezjwmNxpH7/d+CQ1A/Q TEU7vsseI7/DLuzVXNu1nBg64jWCTW+R/i7BwPDtwpRkdyBozF1A0JTU+o07TRf+jIx+ RPbkR7YlnlKz7OlWfOi2F+LGoBDeEahgL0YLLwCLfbT4HxQZ169qhWgFP9fMLiFHbD5j oA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ncut2jxge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 05:14:30 +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 30U5ETce020637 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 05:14:29 GMT Received: from blr-ubuntu-525.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.986.36; Sun, 29 Jan 2023 21:14:25 -0800 From: Souradeep Chowdhury To: Andy Gross , Konrad Dybcio , Bjorn Andersson , "Alex Elder" CC: , , , Sai Prakash Ranjan , Sibi Sankar , "Rajendra Nayak" , , Souradeep Chowdhury Subject: [PATCH V3 0/3] Add QAD, Cti-trigger and Bootconfig support for Data Capture and Compare(DCC) Date: Mon, 30 Jan 2023 10:43:54 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 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-GUID: 4-PwPm6x6OvvCgSrCUignqm3sk3Mjnvp X-Proofpoint-ORIG-GUID: 4-PwPm6x6OvvCgSrCUignqm3sk3Mjnvp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-30_03,2023-01-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301300048 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230129_211438_381192_683E570C X-CRM114-Status: GOOD ( 18.13 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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_ { id = items =
, } } Example: dcc_config { link_list_6 { id = 6 items = R_0x1781005c_1_apb, R_0x1782005c_1_apb } link_list_5 { id = 5 items = 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. On setting the QAD value, the list gets locked out for a particular component and cannot be used by the rest. 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. Hwtrigger needs to be disabled for components to be able to write to CTI-trig-out. Changes in V3 *Fixed the module build error in V2 of the patch Souradeep Chowdhury (3): soc: qcom: dcc: Add bootconfig support for DCC soc: qcom: dcc: Add CTI-trigger support for DCC soc: qcom: dcc: Add QAD support for DCC Documentation/ABI/testing/debugfs-driver-dcc | 24 +++ drivers/soc/qcom/Kconfig | 3 +- drivers/soc/qcom/dcc.c | 290 ++++++++++++++++++++++++++- 3 files changed, 309 insertions(+), 8 deletions(-) --- 2.7.4