Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7480888rdb; Wed, 3 Jan 2024 18:55:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxP5ZJpWGD21IyYLqqHjqW4ekm2mjtcSdKDN49TgSBg5/WZqcZib9KnEwN+l2tuGB4BpGx X-Received: by 2002:ae9:f405:0:b0:781:b8cc:47ff with SMTP id y5-20020ae9f405000000b00781b8cc47ffmr7074064qkl.33.1704336937043; Wed, 03 Jan 2024 18:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704336937; cv=none; d=google.com; s=arc-20160816; b=Pv+K6f2HF5QohvrTTBwVvcQuOo4JawU2SFjMxgCEMV7wG43J3GDibG5zqExE1JBnqB PmW/nyQOuzgjYUzZk8hdaHpD/N80xd05Bnrlhdegp/G6xz89yIeaMgSBhvIbN/2iWevA GYDS4zXAYWj8bup6TlTZwMWLLrE6f/blgZrk4DU7rKle2ZjHyBfHcs4JuZbTRZZXKiLJ xWLWRI49wrDCp7+qhLNHU4lmDlL1Lh4Qimb2/qp3c34YMw1Om3eqej2vp98ZqU7WFlnL MknV5GFBScRGc4pj54ZiIhyQQ/1O0BQTi4E1OI0ntjdGHHLNpWmR5z8Lu26Qoz+OKQX8 4bTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-language:thread-index :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=OiF6tUgd+ueRws57hnQ7jHdR9ExFm1BoqeA7YyNenFM=; fh=0/WgqFbMOdHySoAZxJ6KBKXSmOlKlOaLKkHV81+2poo=; b=XdbOqJvj4iDJ0QsR6Pi688HlwEsryyS0RRLHjgFUanc05KoznhDoXAdzDP43LZwFcw gj/ZUGfo1hTN70yTDhQ3DE1ImBffNgLr3BCEXkHYInguRKXUpoqGQbELVThIk92qV7oZ tolAA/jc1LuX3oYzHxL3uWmArAMQNhynnWowo4Aw3pYzuotNuIf+AepFEoz1n4Wb8Qt9 5VWCKMOS9FCeejkukobYQLz+hk8qMAN5OHpUWdlhxWgPuBTApp9+YBC4NRSCer70Yd6+ 60+MdKYn+Y5z9bJ5j4oSbZlHZDm8/sD0wCb2aBpI2NKxf3Rt4Rk9Kr3A+fKWs/x2tDMS nj3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Gy+qwlJ/"; spf=pass (google.com: domain of linux-kernel+bounces-16214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bs9-20020a05620a470900b0077f4d0ccb58si32883759qkb.453.2024.01.03.18.55.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 18:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Gy+qwlJ/"; spf=pass (google.com: domain of linux-kernel+bounces-16214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B26EF1C24A85 for ; Thu, 4 Jan 2024 02:55:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 140934C9D; Thu, 4 Jan 2024 02:55:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Gy+qwlJ/" X-Original-To: linux-kernel@vger.kernel.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 060A44C8E for ; Thu, 4 Jan 2024 02:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240104025523epoutp03dfadf259fea22b003c0b0c3ed486827b~nBWb2X3Sp2987729877epoutp03Y for ; Thu, 4 Jan 2024 02:55:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240104025523epoutp03dfadf259fea22b003c0b0c3ed486827b~nBWb2X3Sp2987729877epoutp03Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1704336923; bh=OiF6tUgd+ueRws57hnQ7jHdR9ExFm1BoqeA7YyNenFM=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=Gy+qwlJ/MGOJblbEV652VnWfOoXXZ8eAIE3yalowInA1+bfGifISG8p7c0CpnSIHh bZTRuxswVgwoWrMkVEnNyrP9JmSgGSUWfrLyje9DNAiFLpcFVNNwhEqDZ25JFkbkFj Ywv21jYCIJZrvHg0hNk0UwNA6wIjFurikp6eL/J4= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240104025522epcas5p24b9230be2421bb0d20030464e92d4560~nBWa45Cfa1864018640epcas5p2u; Thu, 4 Jan 2024 02:55:22 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.176]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4T5B604NNFz4x9Q2; Thu, 4 Jan 2024 02:55:20 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 4A.F3.10009.81E16956; Thu, 4 Jan 2024 11:55:20 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20240103054323epcas5p1c66603ad92fc4af4efda6a4999fbec2e~mv-0ullNs1533915339epcas5p1O; Wed, 3 Jan 2024 05:43:23 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240103054323epsmtrp23ed95c1b41e03c2abe461efbe81c2d57~mv-0ttVE40670206702epsmtrp2A; Wed, 3 Jan 2024 05:43:23 +0000 (GMT) X-AuditID: b6c32a4a-ff1ff70000002719-2a-65961e18e9d2 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 40.CA.08755.AF3F4956; Wed, 3 Jan 2024 14:43:22 +0900 (KST) Received: from FDSFTE462 (unknown [107.122.81.248]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240103054321epsmtip2b82d46e8f2e04dbc7774751e17704108~mv-y3kFen0960509605epsmtip25; Wed, 3 Jan 2024 05:43:21 +0000 (GMT) From: "Shradha Todi" To: "'Manivannan Sadhasivam'" Cc: , , , , , , , , , , , In-Reply-To: Subject: RE: [PATCH v2 0/3] Add support for RAS DES feature in PCIe DW controller Date: Wed, 3 Jan 2024 11:13:20 +0530 Message-ID: <000601da3e07$c39e5e00$4adb1a00$@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQG/Q0WxGB9EWFeblm7N70OL8blxhQGR1/IBAmU4G1qwrtlAgIAu9wGg Content-Language: en-in X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPJsWRmVeSWpSXmKPExsWy7bCmhq6E3LRUg83TFC2WNGVY7LrbwW4x a9tcRosVX2ayW/xfkG/R0POb1eLyrjlsFmfnHWezaPnTwmLRcrSdxeJuSyerxaKtX4DK9uxg d+D12DnrLrvHgk2lHrde23psWtXJ5nHn2h42jydXpjN5bHy3g8mjb8sqRo8t+z8zenzeJBfA FZVtk5GamJJapJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQN0uZJC WWJOKVAoILG4WEnfzqYov7QkVSEjv7jEVim1ICWnwKRArzgxt7g0L10vL7XEytDAwMgUqDAh O6Px03TWgk79io7/v9gbGHepdTFyckgImEgs397H2MXIxSEksJtRYsf6B6wQzidGiRUHzkM5 3xgljh3qZYFpWX95HwtEYi+jxKWzn5khnBeMEq8ermYCqWIT0JF4cuUPM4gtIuAg0f72E1gH s8BeJomtr3YDzeXg4BTglZjwzxqkRlggWGL61C6wDSwCKhInV71hBbF5BSwlvm9ayA5hC0qc nPkErIZZQFti2cLXzBAXKUj8fLqMFWKXm8SljcuZIWrEJY7+7AE7TkLgDofE0n8XWCEaXCSa 5h2AekdY4tXxLewQtpTE53d72SDsdImVm2dALciR+LZ5CROEbS9x4MocFpD7mQU0Jdbv0ocI y0pMPbWOCWIvn0Tv7ydQ5bwSO+bB2MoSX/7ugVorKTHv2GXWCYxKs5C8NgvJa7OQvDALYdsC RpZVjJKpBcW56anFpgVGeanl8BhPzs/dxAhO2VpeOxgfPvigd4iRiYPxEKMEB7OSC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R2M21d9 0DvEyMTBeIhRgoNZSYR3/brJqUK8KYmVValF+fFFpTmpxYcYpTlYlMR5xV/0pggJpCeWpGan phakFsFkmTg4pRqYlCsbvOXlPCunBTi+YJDq+3A1xe8wv0ow/3qbBs5E7lv3dGvvOvKGfnVe nuCrZRm8wk3dwjo4wXOfzL5CV/uTiz8KCc8K6+X+/Du8w3Jpu5++JMuVyRNljO8rvPdllWyW nuIba/NEydZ/ev32Mwyavyate6rH2xHAIBzZaMJd5btBx/Z83nHusPjSR+y/H9/bO0/h11aP jXErlK3zhW3X27NEF996slVf0Kygi/nNO/mJG2Zc6GN+ZbZS8MnpB+85io2mi7FOLpIVeeb1 0STgSkf6c2b7h6cZSzTW7Foc9Phn93LB1Szf/mc6vt64cnsEy3Pml0eeH3zsemZfOVPV4eBp 6Teq1abuvzOTY7ESS3FGoqEWc1FxIgAnUgVIRwMAAA== X-CMS-MailID: 20240103054323epcas5p1c66603ad92fc4af4efda6a4999fbec2e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231130115055epcas5p4e29befa80877be45dbee308846edc0ba References: <20231130115044.53512-1-shradha.t@samsung.com> <20231130165514.GW3043@thinkpad> > -----Original Message----- > From: Shradha Todi > Sent: 04 December 2023 14:10 > To: 'Manivannan Sadhasivam' > Cc: 'lpieralisi=40kernel.org' ; 'kw=40linux.com' > ; 'robh=40kernel.org' ; > 'bhelgaas=40google.com' ; 'jingoohan1=40gmail.com' > ; 'gustavo.pimentel=40synopsys.com' > ; 'josh=40joshtriplett.org' > ; 'lukas.bulwahn=40gmail.com' > ; 'hongxing.zhu=40nxp.com' > ; 'pankaj.dubey=40samsung.com' > ; 'linux-kernel=40vger.kernel.org' kernel=40vger.kernel.org>; 'linux-pci=40vger.kernel.org' pci=40vger.kernel.org> > Subject: RE: =5BPATCH v2 0/3=5D Add support for RAS DES feature in PCIe D= W > controller >=20 >=20 >=20 > > -----Original Message----- > > From: Manivannan Sadhasivam =5Bmailto:manivannan.sadhasivam=40linaro.or= g=5D > > Sent: 30 November 2023 22:25 > > To: Shradha Todi > > Cc: lpieralisi=40kernel.org; kw=40linux.com; robh=40kernel.org; > > bhelgaas=40google.com; jingoohan1=40gmail.com; > > gustavo.pimentel=40synopsys.com; josh=40joshtriplett.org; > > lukas.bulwahn=40gmail.com; hongxing.zhu=40nxp.com; > > pankaj.dubey=40samsung.com; linux-kernel=40vger.kernel.org; linux- > > pci=40vger.kernel.org > > Subject: Re: =5BPATCH v2 0/3=5D Add support for RAS DES feature in PCIe= DW > > controller > > > > On Thu, Nov 30, 2023 at 05:20:41PM +0530, Shradha Todi wrote: > > > DesignWare controller provides a vendor specific extended capability > > > called RASDES as an IP feature. This extended capability provides > > > hardware information like: > > > - Debug registers to know the state of the link or controller. > > > - Error injection mechanisms to inject various PCIe errors including > > > sequence number, CRC > > > - Statistical counters to know how many times a particular event > > > occurred > > > > > > However, in Linux we do not have any generic or custom support to be > > > able to use this feature in an efficient manner. This is the reason > > > we are proposing this framework. Debug and bring up time of > > > high-speed IPs are highly dependent on costlier hardware analyzers > > > and this solution will in some ways help to reduce the HW analyzer us= age. > > > > > > The debugfs entries can be used to get information about underlying > > > hardware and can be shared with user space. Separate debugfs entries > > > has been created to cater to all the DES hooks provided by the contro= ller. > > > The debugfs entries interacts with the RASDES registers in the > > > required sequence and provides the meaningful data to the user. This > > > eases the effort to understand and use the register information for > > debugging. > > > > > > v1 version was posted long back and for some reasons I couldn't work > > > on it. I apologize for the long break. I'm restarting this activity > > > and have taken care of all previous review comments shared. > > > v1: > > > https://lore.kernel.org/all/20210518174618.42089-1-shradha.t=40samsun= g > > > .c > > > om/T/ > > > > > > > There is already a series floating to add similar functionality via > > perf > > subsystem: https://lore.kernel.org/linux-pci/20231121013400.18367-1- > > xueshuai=40linux.alibaba.com/ > > > > - Mani > > >=20 > Hi Mani, >=20 > The series proposed in perf includes only time based-analysis and event c= ounters > which will monitor performance (Group 6 and 7). The patch or framework th= at we > have proposed includes debug information, error injection facility and er= ror > counters (Group 0 - 5) which are not included as part of the functionalit= y > implemented via perf. In my opinion, these functionalities don't count as > performance monitoring or counters but rather as debug counters. How abou= t > we take this up as a debugfs framework as proposed in my patch? > Or if others feel it can be taken via perf driver then I am happy to exte= nd the perf > driver if authors do not have objection. Let me know what you think of th= is? > Meanwhile I will review the perf patches and share my feedback. >=20 Hello Mani, Any update on the above comment? IMO, even though the perf patches and this patchset are both part of the DWC vendor specific capability - RASDES, the= y cover different features. The perf file includes performance based paramete= rs like time-based analysis and event counters for count of packets whereas th= is patchset includes debugging fields, error injection and event counters for = count of errors. I think having a separate debugfs file fits more but would you s= uggest we extend the perf file itself?=20 Shradha > > > Shradha Todi (3): > > > PCI: dwc: Add support for vendor specific capability search > > > PCI: debugfs: Add support for RASDES framework in DWC > > > PCI: dwc: Create debugfs files in DWC driver > > > > > > drivers/pci/controller/dwc/Kconfig =7C 8 + > > > drivers/pci/controller/dwc/Makefile =7C 1 + > > > .../controller/dwc/pcie-designware-debugfs.c =7C 476 > > ++++++++++++++++++ > > > .../controller/dwc/pcie-designware-debugfs.h =7C 0 > > > drivers/pci/controller/dwc/pcie-designware.c =7C 20 + > > > drivers/pci/controller/dwc/pcie-designware.h =7C 18 + > > > 6 files changed, 523 insertions(+) > > > create mode 100644 > > > drivers/pci/controller/dwc/pcie-designware-debugfs.c > > > create mode 100644 > > > drivers/pci/controller/dwc/pcie-designware-debugfs.h > > > > > > -- > > > 2.17.1 > > > > > > > -- > > =E0=AE=AE=E0=AE=A3=E0=AE=BF=E0=AE=B5=E0=AE=A3=E0=AF=8D=E0=AE=A3=E0=AE= =A9=E0=AF=8D=20=E0=AE=9A=E0=AE=A4=E0=AE=BE=E0=AE=9A=E0=AE=BF=E0=AE=B5=E0=AE= =AE=E0=AF=8D=0D=0A=0D=0A