Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp177829rdb; Thu, 1 Feb 2024 05:44:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXJV1YxGwgCJv4iuRRUh6CBZjlSuIFZisecvP3qrdsq1FZSQ+QXKqwztM0mowJBFDqiu62 X-Received: by 2002:a17:907:764b:b0:a36:50fb:37ef with SMTP id kj11-20020a170907764b00b00a3650fb37efmr3135750ejc.28.1706795063894; Thu, 01 Feb 2024 05:44:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706795063; cv=pass; d=google.com; s=arc-20160816; b=p8M83B6RNuhcRD3pL3Xwvx/gvfbzArnyWoziAsX7sdva7HVzhsbtM3/9EyqtFADoNt BHoVaeUJMiC3Z97zgSWpJUxI6Y0Ckjatt/hu29rc+H14ft7aVuQ6i9mMkLyCjtBoZvYd WI6CaeMwQDYvztmF130xP97ak9+VY09XUEsWf3eSXlo4cTwaVOBkDbQOItCqx00wCpaj OA9KJMIJzAwBeMblxSio6uVaniCshZz9+skcUH3lGv4SPLyoF84ZZm1gLRqXDQpizLvT k9fr4o19JOUsu78VQWQJ8UJ0L/VmcIwFMdhC1x17ENjKBCspcJWG5NxoN1SJ9ySKK2XY 0+Eg== 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:dkim-signature; bh=UZ2PBrVbIz1Ad8QLCod95/Esgfd9G+467wFNu33m2Gs=; fh=WgGw5uM6/0TFW+Cqya55+5vAmQzN/FvEhufXtooqqYY=; b=kgFI3V1KM9/dq7wXibTqcizYGb+KTmwvOsyeaR10WoozEfAB9IwKJZmNf3JQThf+yW cpSfTtM9LvTB8aVz93uAIBLlWtDFeEKpSzAPtJQzHrdWryMSQrGuXtNwYnseWu2w9GVE 05JjymD/DLUtnhrxJgphdhdeRZ6jzHRRovtwj4P6PY4uj0d9Z94DhcqRotieQMpr61fA i0Ied7+3VRWzBwUAaBUeoCf2DoR8bBU5tJLFJMCEYLyRlszNvbgvyi8UUG14hCjk4Jj8 dhZ0UFh/tYZICihJypA1cEV6rB7lERgp+7oGfOy17sbtTDJXNYjS4s7q7kxRWehA/fHh B0LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpvwpqNH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWbL2U3AdOgdzrl8bZaPA5w6ovTUpWg0zk73hpKxiUt0f4TPYBH8dBx1yCaiwHQfcD5a9tj2K6nWUv5ahvDhUIgq69IXgpsMUT58o0WgQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i22-20020a17090639d600b00a3527578043si5679661eje.740.2024.02.01.05.44.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:44:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpvwpqNH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 9FED01F2656C for ; Thu, 1 Feb 2024 13:44:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A54D53371; Thu, 1 Feb 2024 13:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BpvwpqNH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 372E25CDE2; Thu, 1 Feb 2024 13:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706795056; cv=none; b=rneNXuxXY/QrpOvurVxQqlzcmTJqUcEZ5DwVwriiH+Fr2PsdPevIb/R2AnRR3kIJTzs4/LFY3c2hPLditeDtKJIW5ajWVH58Jwk9U4zktFdccTIXhVSI9e2El95+sS36Ts8fSaZu/l6UiXimy0nkvVReeGYnARFClLxlycLb7I8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706795056; c=relaxed/simple; bh=Msf2lTT82pvd+Y2JFn9SvqSk+OAHLJCSOGfkBm5c9aE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tfRYSQjJ6D6m6t8Q7W0sdLX5mbGs1barV0LMC+/ONd9vvFM3iLJEbFDkkT8kz3MB8V7eXYVBlv/uz2d5U+0W/SRI78twtcx1FlFpm3XJM58H8zieWhO7p+qejaVUU3x7s6UHTxUCDyhRxCvuswbP4c6HkaexweZ1bfujW0buTwk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BpvwpqNH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A3CDC433C7; Thu, 1 Feb 2024 13:44:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706795055; bh=Msf2lTT82pvd+Y2JFn9SvqSk+OAHLJCSOGfkBm5c9aE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BpvwpqNHfGxpiG5WFFWI74s4F2ZciU5GrmZYIAennh8bH+DenvJ9lfuxHSuVXgIwI ulX4YyFhwDseSLSpCyQPCPtbv274afIykVymHUM1DpTRsYQQin4sKAIY/zrd5JFH7L piRAEUXENuq49IRH58HqIYwuP8fxLft0aizTUlydFWzbXRcXOk8Q54C4CIilr14eZ6 rwiPUhqkKFh8IDptO2xiEh60BkAD1xYQ6quOyvasDjn8PfnMun669laS1zUnUc0oNG +nBhNUTLiwLGbEeS5WUuvxxr4uDNGVNBEFRumokVgqzHysJ5taoYCOVmHiE12QhU6r pm9pS7cygFoPQ== Date: Thu, 1 Feb 2024 14:44:09 +0100 From: Simon Horman To: Furong Xu <0x1207@gmail.com> Cc: "David S. Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Joao Pinto , Serge Semin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xfr@outlook.com, rock.xu@nio.com Subject: Re: [PATCH net v3] net: stmmac: xgmac: fix handling of DPP safety error for DMA channels Message-ID: <20240201134409.GD530335@kernel.org> References: <20240131020828.2007741-1-0x1207@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240131020828.2007741-1-0x1207@gmail.com> On Wed, Jan 31, 2024 at 10:08:28AM +0800, Furong Xu wrote: > Commit 56e58d6c8a56 ("net: stmmac: Implement Safety Features in > XGMAC core") checks and reports safety errors, but leaves the > Data Path Parity Errors for each channel in DMA unhandled at all, lead to > a storm of interrupt. > Fix it by checking and clearing the DMA_DPP_Interrupt_Status register. > > Fixes: 56e58d6c8a56 ("net: stmmac: Implement Safety Features in XGMAC core") > Signed-off-by: Furong Xu <0x1207@gmail.com> > --- > Changes in v3: > - code style fix, thanks Paolo Abeni > > Changes in v2: > - explicit enable Data Path Parity Protection > - add new counters to stmmac_safety_stats > - add detailed log Thanks for the updates. Reviewed-by: Simon Horman