Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2969657rdb; Tue, 13 Feb 2024 03:00:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjH7IBizlSPhNnSaFuk4MQLNUzyVF8XtBsvfBwQKRhDokBOSx7Oj1O6u7VSm+iJj0S7aNW8H0OtBCyLCZqO8qbvxqpJPmUIpJrNmq8Fg== X-Google-Smtp-Source: AGHT+IEObRzuvfqPQX+oORkmiwG7FAzHtfv/P0Sj7DnQQeY0i45uO33YTD0mOo+a+HtErHcUMrfZ X-Received: by 2002:a17:906:5694:b0:a3c:f7f3:5eed with SMTP id am20-20020a170906569400b00a3cf7f35eedmr1130343ejc.69.1707822050054; Tue, 13 Feb 2024 03:00:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707822050; cv=pass; d=google.com; s=arc-20160816; b=e+LR/cIRb1WCf7dibzSYT38ey2z3w0h/16lzqW1tl5qnRXLZdCQ+AXWQ7P+wqeTYQU 7IzfLZ60C0+xHZJdjjZyuLHcSA1ThulDa79szZcAb/YdCI4rX9HvrZLbIw+liR+mRa5D ynqPvOIX06Qnf94t4tGyDVoXsOS1c92wHd83iNLFGkynVkhscKux8xoCeAq9X2R+qFpQ FW1SvK089fcoiXBrtO98JZvQeM4cO6wPakCLr2QkwKj4EFouBau80m6lFoMvA/wo9AAc Glgb2hSy7QT3ZCvuIMosgyCQmMt8HTdTHKb4rsNmKU8FHm+vFaYvmZ5kXg3ATAHI2Clc HjDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=alBT9JDKewaT/BiYtIVCexZIA3HVSwXErlWaNhWhFGk=; fh=1fWBXzKre9rqw2hlYj7J9b8Ukc8TWMIXMrE+cC7+xZs=; b=KaCgHVvowKy2k2f9rzPWXQJvlUppA1/num1wsAN5tw21DMua0gzhbLwie6NEsEpDgA dbN6uoPp8B1f+CQ0RpAih+cJ8ePVNihB1ktdceXD3t6ebuPk2CEXPd1GKobUtwvbafbP Nyu07g8OHJvoH2Vzr4MhsHbmDF5JN4RQBJFrT89zfOczXk/sdxNFf9ZKfndE25EDPBgj vdemcGcNEOqEycCgXhdcAH94coBZXPzAfR9P/K6tZrZFtN1WGcCkhHb5x5C2Oa107u7R PvQQKFa08gU4KyyvkphKiEn816COV+JMesgwwSvCp9XHUax+ADlt++Nxgk6fwJ373Buw 95VA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63388-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWPHtrJkIcUFpE1ovJIutwm21RGiwHRyInZbWVDlz+Okk2ight3dQphL324CSNUENcgzgt9NXUOsA/woQO8SKo9ITx1CExyxZPsJgEJtQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id md19-20020a170906ae9300b00a3cbbaf5c11si1157015ejb.639.2024.02.13.03.00.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:00:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63388-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id CA8BA1F255E0 for ; Tue, 13 Feb 2024 11:00:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59D372C69A; Tue, 13 Feb 2024 11:00:43 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 85C552BD1C for ; Tue, 13 Feb 2024 11:00:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707822042; cv=none; b=ZnYGyarAsOunudCZxsTqVPwaM7ycy03gKzwxKsZ2Nsr3UvuYJQvIMMH9e2Vgnr0LD6W5l8skKnl+EFg+Zh6JNLvrl5x1iP+yayCPM96mfHL9wHQsSd2NNyLVz8UUlpkLsqh9vhtwrrHjzOwUcFHZcvx8zc69sviK7srWxiH03+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707822042; c=relaxed/simple; bh=+RNmFerRabSoDvfbT+rohW1J8Y7o+4ePKtvKyk/5nio=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PIi+BnKJL/mwGdi1YH2MflkknsFqIbMTxU0SPXvNjD79FO7pKjoIBEv98aLmU1KGn3Xk7zUZjq3J92Rti+HaTI24BKdBp+XJK58HN1v5hZpNhVWzGK+cmbU5aKJ/Q3Jl+h267VZ6i7L5noYDOSsX7iAzODFVsqvj/YFi3BYWwik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rZqWY-00066h-Hf; Tue, 13 Feb 2024 12:00:26 +0100 Received: from [2a0a:edc0:0:b01:1d::7b] (helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZqWX-000Sxb-EA; Tue, 13 Feb 2024 12:00:25 +0100 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 03AAF28D5D3; Tue, 13 Feb 2024 11:00:25 +0000 (UTC) Date: Tue, 13 Feb 2024 12:00:24 +0100 From: Marc Kleine-Budde To: Srinivas Goud Cc: wg@grandegger.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, git@amd.com, michal.simek@xilinx.com, linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v7 0/3] can: xilinx_can: Add ECC feature support Message-ID: <20240213-reactor-vertebrae-af419800fcdc-mkl@pengutronix.de> References: <1705059453-29099-1-git-send-email-srinivas.goud@amd.com> <20240213-evasion-crevice-3faa375c1666-mkl@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pcfdyjxuszkxzmew" Content-Disposition: inline In-Reply-To: <20240213-evasion-crevice-3faa375c1666-mkl@pengutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --pcfdyjxuszkxzmew Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 13.02.2024 11:22:49, Marc Kleine-Budde wrote: > On 12.01.2024 17:07:30, Srinivas Goud wrote: > > Add ECC feature support to Tx and Rx FIFOs for Xilinx CAN Controller. > > ECC is an IP configuration option where counter registers are added in > > IP for 1bit/2bit ECC errors count and reset. > > Also driver reports 1bit/2bit ECC errors for FIFOs based on ECC error > > interrupts. > >=20 > > Add xlnx,has-ecc optional property for Xilinx AXI CAN controller > > to support ECC if the ECC block is enabled in the HW. > >=20 > > Add ethtool stats interface for getting all the ECC errors information. > >=20 > > There is no public documentation for it available. >=20 > Lately I was using ethtool based stats, too and figured out, there's no > need for a spinlock, you can use a struct u64_stats_sync, > u64_stats_update_begin(), u64_stats_update_end(), and > u64_stats_fetch_retry() instead. These are no-ops on 64 bit systems and > sequential locks on 32 bit systems. >=20 > I'll send a v8. https://lore.kernel.org/all/20240213-xilinx_ecc-v8-0-8d75f8b80771@pengutron= ix.de/ Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --pcfdyjxuszkxzmew Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEUEC6huC2BN0pvD5fKDiiPnotvG8FAmXLS8QACgkQKDiiPnot vG8czQf/aG7oFJxKdh1Q53rxG1f7aBqGyD1mOGPP8tUpbBujLHlZ8bTAF8KE9qTw 4w2mFpYKOGhsRgTf1FD4mIWemqWnlaTESbQDu3r3n8x7iP46Chj6YH6hyrWJWpAW /wAc5jaMCjbkEBQmHRGJxDvZ1cedH/A2St+RpO8GeLvQCkq3qsNkNqI6JwEqc9ek bbSViga7DX6sokcg0zmhonSrgeKDBv7gf/ZBkWTeNjlFlsjpUXN8bAbRqlt/EqRw M3ckdj63rdRGTwrOCqHPVYtn/VwhdNvR3vafM8iFZI/9lG9EPeJ1A5Zu+jGIr7IO Z8UkkTzODpkD/G411piaTJ4I+h47ow== =DPr0 -----END PGP SIGNATURE----- --pcfdyjxuszkxzmew--