🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4142

Re: [PATCH net-next v3 5/6] net: ftgmac100: Add AST2700 upper DMA address support

#4142
From: Andrew Lunn
Date: Fri, 16 Oct 2026 21:04
18 lines
6838 bytes
On Thu, Oct 15, 2026 at 02:46:57PM +0800, Jacky Chou wrote:
> Program the high RX and TX descriptor ring base registers and carry the
> upper DMA address bits in RX and TX descriptors. Rebuild full buffer DMA
> addresses in a 64-bit type before unmapping them so bits 34:32 are not
> lost to 32-bit arithmetic.
> 
> The descriptor format provides three upper buffer address bits, so
> request a 35-bit DMA mask instead of advertising an address range that
> the hardware cannot encode. Gate all extended address handling with a
> match-data quirk so older register layouts remain untouched and later
> compatible controllers can opt into the same capability.
> 
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <2f0b9424-b9d0-488d-872a-9bfc205c3e46@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347543-linux-kernel-netdev=dewy.ru
References: <20261015-support_ast2700-v3-0-8d7999171ac4@aspeedtech.com> <20261015-support_ast2700-v3-5-8d7999171ac4@aspeedtech.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347543-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 5/6] net: ftgmac100: Add AST2700 upper DMA
 address support
Date: Fri, 16 Oct 2026 23:04:39 +0200
Organization: Usenet Network
Message-ID: <2f0b9424-b9d0-488d-872a-9bfc205c3e46@lunn.ch>
References: <20261015-support_ast2700-v3-0-8d7999171ac4@aspeedtech.com>
 <20261015-support_ast2700-v3-5-8d7999171ac4@aspeedtech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2882135"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:OAjWm1iwW+s94FYuFLAqjjHgCwc= sha256:TQWkqTNfMGalrYWjVUUCaB3PQ1BlGkhT/FITLFO88xA=
	sha1:97/uPuzn1Oc+GeLraCVvNaAnWTY= sha256:/6o1rejj+Z0c24OSLzsqweRBZXH9/38Z1uvaPAP9zWs=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 1B1271105D3; Sat, 17 Oct 2026 00:05:09 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xIbszZ2ZKln1;
	Sat, 17 Oct 2026 00:05:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-347543-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 10EDE1105EB; Sat, 17 Oct 2026 00:04:56 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id AAC8437701; Fri, 16 Oct 2026 21:04:54 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1144A3E4C6B;
	Fri, 16 Oct 2026 21:04:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="y69Ss/Lx"
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(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 A8B293B6C00;
	Fri, 16 Oct 2026 21:04:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792184694; cv=none; b=JUd8SUnhMoI7CHcVJQ+KiWuj400wxgVjdKtvNG96WLsWwbnDsTYqUfkooejTCivnSslsdJwY8HgoDkQpZo1/gBmJmpHyxqBalsxmcacvzX+uPHy+w2thFTOQPOElb3Do0gw5CGc+vx4YfNd9LKqw3l6cjUSZHNP7ChxbfAFBszc=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792184694; c=relaxed/simple;
	bh=ZGp+J06eERhRbOHAuPLv1b9Eu2kgbyfRFp8n1/qjoj8=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=YnxLpHLFb1zLLbxTPiXYI7KWX2kuIyAC4yY9CsR0MfLnG8NmQrBJgX3PAQZ5pGumfwYD24UGbwdPku3KIupH2YcBOTn3rR6aPDiYqQPeMsxKP97403iEZMe4h57fQ6NQjqJKMkUNBoYjJl9v2VNd0uY4kkbHSVFzaFm3+tbDz9o=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=y69Ss/Lx; arc=none smtp.client-ip=156.67.10.101
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=hhV8CmkcUTV2PD33TUL5A3kJzfshn1FwvWO3Wmasnbo=; b=y69Ss/LxionSAElhMqlyZTdaV0
	1oo75Oze4HPzbpF9sfOcr485iiA2gNMKTh3rpyEQ0yzAJkPtU42y2S/DFxFh3JQbXIGOfeSIVgVtT
	Fncbuju8VxcFYBDLsto0KIQoOyMfeBSDJFCBNISADusRNcOejOe4OYXb2hIttiN7x/Mk=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xHp6V-00BE28-43; Fri, 16 Oct 2026 23:04:39 +0200
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Po-Yu Chuang <ratbert@faraday-tech.com>,
	Eric Dumazet <edumazet@kernel.org>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261015-support_ast2700-v3-5-8d7999171ac4@aspeedtech.com>