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 6EB59C77B73 for ; Wed, 24 May 2023 05:11:04 +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-Type: Content-Transfer-Encoding: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=7dinvoAaJvlk0wmZRSZGCPqIitRIM+6KVF3RkFL4ciM=; b=XbRRsfYCwKbXMF JonALiLDyngkql54CyC87WFAbsGGeCs7WHQMujB/+b+su1K53oxPlFQBidSlTkZe4NtgOVU/wMgP8 f5wPtb7z65rdlG8U/l3EnsMs2TDQLjLNUf4rbhDHdGmmlh36nZUzjOOviQh1gq+hAHfkm8jcyGbMD epJDiyTomGNn30pX+WCsatwL8b5zI8wm4kFTiZLW22TSKqD+lh1B/l12teAsDsJg4LH/M3spANDN7 YIrXtCCrfv8mM3t6rE4vg4YREsc6eOaNo/gxyRFazAVuibTvNruIUjxAkzpzQm1iN1PQSCD0wIZtU /B5AzxNXRDv/ZWSfJxWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1gli-00CNiS-1z; Wed, 24 May 2023 05:10:38 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1glf-00CNht-12 for linux-arm-kernel@lists.infradead.org; Wed, 24 May 2023 05:10:37 +0000 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34O4Rl07001172; Wed, 24 May 2023 05:10:25 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=fXlhhgotv+zjBaI7kXw+A5yCd+ZQWu/NGIrjHlelH5I=; b=WrOmJT0EqmZYpfjOgYl/ZHCw009d34gy6N7RyVUu9GwmVyCYjxyuKfbv7+yya6k7tEwm ZUMx27RtL1C7bVK8SwJENm4mjK6W90eWq5mVNBOmSUGvuV6JxP5aFncLoeS3MuZjZShY YJEwquwz5LPNbHLehtI3o0ZJsNaoJDM88jq3Ny4nrks5O+N3V7PaV5CCuDBgAT3Cq4K1 RvvucdiVej/IkBff0WS3cWTxScrkLOamfUAqkIFuif3JAWHRyCmuh9KaYXoEVOOcoive 7NgYoHdmegY1X5599S6JDZZnP24+k2ZN/LihlDvqieJtFfr3AQdbYkONolFD/FwTYGri MA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qs42urtwe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 05:10:25 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34O5AOe1006626 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 05:10:24 GMT Received: from [10.110.74.38] (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.42; Tue, 23 May 2023 22:10:23 -0700 Message-ID: <6b3b33c1-0186-3a3f-0d6a-03bf0725fb73@quicinc.com> Date: Tue, 23 May 2023 22:10:22 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH V23 2/3] misc: dcc: Add driver support for Data Capture and Compare unit(DCC) Content-Language: en-US To: Souradeep Chowdhury , Andy Gross , Konrad Dybcio , "Krzysztof Kozlowski" , Bjorn Andersson , Rob Herring , Alex Elder , Arnd Bergmann , Greg Kroah-Hartman CC: , , , , Sibi Sankar , Rajendra Nayak References: <2259ab0348282349e88905ea99bcb4aa815d941f.1683265984.git.quic_schowdhu@quicinc.com> From: Trilok Soni In-Reply-To: <2259ab0348282349e88905ea99bcb4aa815d941f.1683265984.git.quic_schowdhu@quicinc.com> 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: csK27XIL3la5b1AArh6lGkSjXrTw374m X-Proofpoint-GUID: csK27XIL3la5b1AArh6lGkSjXrTw374m X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-24_02,2023-05-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxlogscore=958 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305240042 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_221035_509748_08761486 X-CRM114-Status: GOOD ( 24.17 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/4/2023 11:36 PM, Souradeep Chowdhury wrote: > The DCC is a DMA Engine designed to capture and store data during system > crash or software triggers. The DCC operates based on user inputs via > the debugfs interface. The user gives addresses as inputs and these > addresses are stored in the dcc sram. In case of a system crash or a > manual software trigger by the user through the debugfs interface, the > dcc captures and stores the values at these addresses. This patch > contains the driver which has all the methods pertaining to the debugfs > interface, auxiliary functions to support all the four fundamental > operations of dcc namely read, write, read/modify/write and loop. The > probe method here instantiates all the resources necessary for dcc to > operate mainly the dedicated dcc sram where it stores the values. The > DCC driver can be used for debugging purposes without going for a reboot > since it can perform software triggers as well based on user inputs. > > Also update the documentation for debugfs entries which explains the > functionalities of each debugfs file that has been created for dcc. > Update the documentation to reflect new module name for dcc. > > The following is the justification of using debugfs interface over the > other alternatives like sysfs/ioctls > > i) As can be seen from the debugfs attribute descriptions, some of the > debugfs attribute files here contains multiple arguments which needs to > be accepted from the user. This goes against the design style of sysfs. > > ii) The user input patterns have been made simple and convenient in this > case with the use of debugfs interface as user doesn't need to shuffle > between different files to execute one instruction as was the case on > using other alternatives. > > Signed-off-by: Souradeep Chowdhury > Reviewed-by: Alex Elder Bjorn, do you have any remaining comments here? Are you going to provide your Reviewed-by here and other patches? If there are no comments then I would like this series to be picked by the maintainer you suggest. ---Trilok Soni _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel