From nobody Thu Apr 2 12:17:43 2026 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ECC9F9D9; Sun, 29 Mar 2026 12:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774787573; cv=none; b=Osf7si/fCuR1sP7/L9bX7vvFnEHUc2Xts0cj+0EbyogErIpmPQnrM/GSODfMmRzYsTh0i2RtMrRycM7YU6hZGQ1k1whSaF6sMMF8M/cnzK58VB+7nTqzFCdfHpllGJLrdbqHA1AYb1qU7DLPsKo+B8dNOrQhyRY+VdWGndx86DA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774787573; c=relaxed/simple; bh=sukW0mVRC0HkGydmkMxneEH0cG5b+882rL4crifTwl4=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=aVlnnN5mZAveyjRceDpafzDEL6Ru7VSlTmxOKSCSoEIijgk6bqmXD48J9BGSDPCajJqWK8dRYAxUJvUy0p48b7aRt5fmMc55MSATP0JrkrhqAEwyukaRiGuMurWtOeHXXZ+ecwLvoQZ0e+JCOzeCPDamoM7vn7XcBu0pUMxP++c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 8EB519200B4; Sun, 29 Mar 2026 14:32:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 87BEF9200B3; Sun, 29 Mar 2026 13:32:51 +0100 (BST) Date: Sun, 29 Mar 2026 13:32:51 +0100 (BST) From: "Maciej W. Rozycki" To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/2] declance: Rate-limit DMA errors In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 Content-Type: text/plain; charset="utf-8" Prevent the system from becoming unusable due to a flood of DMA error messages. Signed-off-by: Maciej W. Rozycki Reviewed-by: Andrew Lunn --- drivers/net/ethernet/amd/declance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) linux-declance-ratelimit.diff Index: linux-macro/drivers/net/ethernet/amd/declance.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- linux-macro.orig/drivers/net/ethernet/amd/declance.c +++ linux-macro/drivers/net/ethernet/amd/declance.c @@ -727,7 +727,7 @@ static irqreturn_t lance_dma_merr_int(in { struct net_device *dev =3D dev_id; =20 - printk(KERN_ERR "%s: DMA error\n", dev->name); + pr_err_ratelimited("%s: DMA error\n", dev->name); return IRQ_HANDLED; } From nobody Thu Apr 2 12:17:43 2026 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B39ECF9D9; Sun, 29 Mar 2026 12:32:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774787578; cv=none; b=UfGlPhM6aKEx11lYO+DHidu8331bYxiNy4Rr7OM+99NjNdhBK1nPdL++QDCcQIqAqZDIiQiLoYHVhLfxICixR6L08npmd6KlblqnfaNAczKnNE8iYQFUKXph8SDNIUv3cCu/A5rKPUYEs6yXFFDAnlW6qSZxRMekd7PlpxmWgFQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774787578; c=relaxed/simple; bh=mdftbmWyKv+KEZRvzk6ehhJTa0juTCj8+XtqTkrNhTY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=rY5yTP4ej+hR8rc7q8Iao8U+iuq4rtSm04OGWOYpMEecwbgJfVsENcMKPvI+SG9Lw1MRB30rVupLSuZoIst4NH34+LuchlgoAqZ0kCGtmHjUPE/2WD1tVyeXXRoXs76w2b+V7GLmzgzMNLT6YTRoksmdb+x7KFWLJtn3V9xf2II= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id BAACF9200BB; Sun, 29 Mar 2026 14:32:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id B45A09200B3; Sun, 29 Mar 2026 13:32:56 +0100 (BST) Date: Sun, 29 Mar 2026 13:32:56 +0100 (BST) From: "Maciej W. Rozycki" To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/2] declance: Include the offending address with DMA errors In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 Content-Type: text/plain; charset="utf-8" The address latched in the I/O ASIC LANCE DMA Pointer Register uses the=20 TURBOchannel bus address encoding and therefore bits 33:29 of location=20 referred occupy bits 4:0, bits 28:2 are left-shifted by 3, and bits 1:0=20 are hardwired to zero. In reality no TURBOchannel system exceeds 1GiB=20 of RAM though, so the address reported will always fit in 16 hex digits. Signed-off-by: Maciej W. Rozycki --- drivers/net/ethernet/amd/declance.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) linux-declance-dma-merr-addr.diff Index: linux-macro/drivers/net/ethernet/amd/declance.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- linux-macro.orig/drivers/net/ethernet/amd/declance.c +++ linux-macro/drivers/net/ethernet/amd/declance.c @@ -726,8 +726,10 @@ static void lance_tx(struct net_device * static irqreturn_t lance_dma_merr_int(int irq, void *dev_id) { struct net_device *dev =3D dev_id; + u64 ldp =3D ioasic_read(IO_REG_LANCE_DMA_P); =20 - pr_err_ratelimited("%s: DMA error\n", dev->name); + pr_err_ratelimited("%s: DMA error at %#010llx\n", dev->name, + (ldp & 0x1f) << 29 | (ldp & 0xffffffe0) >> 3); return IRQ_HANDLED; }