Article View: linux.kernel.netdev
Article #21738Re: [PATCH net v3 1/3] tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported
From: Simon Horman
Date: Tue, 24 Nov 2026 11:43
Date: Tue, 24 Nov 2026 11:43
40 lines
9689 bytes
9689 bytes
On Wed, Nov 18, 2026 at 04:24:06PM +0530, Pavan Chebbi wrote:
> Commit 614f4d166eee ("tg3: Set coherent DMA mask bits to 31 for
> BCM57766 chipsets") lowered the coherent DMA mask to 31 bits as a
> workaround for a spurious address overflow error in the hardware.
> The result of dma_set_coherent_mask() is fatal to probe, so on
> platforms that cannot satisfy such a mask the device fails to probe:
>
> tg3 0000:01:00.0: Unable to obtain 64 bit DMA for consistent allocations
> tg3 0000:01:00.0: probe with driver tg3 failed with error -5
>
> This was reported on a Mac mini (Macmini6,2, BCM57766) running a
> kernel built without CONFIG_ZONE_DMA and with IOMMU passthrough as
> the default. Without CONFIG_ZONE_DMA, dma_direct_supported() only
> accepts a mask narrower than 32 bits if it covers the highest
> physical memory address, so with direct mapping a 31-bit coherent
> mask is rejected whenever memory extends above 2GB.
>
> Treat the 31-bit mask as best effort. If it is refused, warn and fall
> back to the mask used before 614f4d166eee, so that the device still
> probes. Platforms that accept the mask are unaffected. Where it is
> refused, 614f4d166eee never protected the device, it only stopped it
> from probing, so this restores the behaviour of kernels before that
> commit. Warn when a status block lands at an address matching the
> pattern described in 614f4d166eee, so that a resulting TX timeout can
> be identified.
Hi Pavan,
I am not following how a BCM57766 device can be used on a system that
rejects a 31-bit mask. Is the idea that TX timeouts are infrequent
and can be lived with in such an environment?
>
> Fixes: 614f4d166eee ("tg3: Set coherent DMA mask bits to 31 for BCM57766 chipsets")
> Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
> Link: https://lore.kernel.org/netdev/CALjTZvYKHWrD5m+RXimjxODvpFPw7Cq_EOEuzRi1PZT9_JxF+g@mail.gmail.com/
> Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
...
Technical Details
Message-ID:
<20261124114338.GK31322@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370293-linux-kernel-netdev=dewy.ruReferences:
<20261118105408.1076095-1-pavan.chebbi@broadcom.com> <20261118105408.1076095-2-pavan.chebbi@broadcom.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370293-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 1/3] tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported Date: Tue, 24 Nov 2026 11:43:38 +0000 Organization: Usenet Network Message-ID: <20261124114338.GK31322@horms.kernel.org> References: <20261118105408.1076095-1-pavan.chebbi@broadcom.com> <20261118105408.1076095-2-pavan.chebbi@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="4125886"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+rHLNaHY56xlnwbkMJ2a2TVqvpE= sha256:Fd7xAcK0mMtepGbxeiGP6G76VMJy3cEuqq6eSe8nZrM= sha1:pQHwSQ98NSfJYheRud1b8CLrmSM= sha256:l11VJwUkqkdi4uDEzTtri5BhMbSeO5OzKtd2S/C+ndw= 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 112E4125E00; Tue, 24 Nov 2026 14:44:01 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (2048-bit key) header.d=kernel.org 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 jjkrxAno27vA; Tue, 24 Nov 2026 14:43:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-370293-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 16D9B125DFC; Tue, 24 Nov 2026 14:43:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 6AB0A60691B; Tue, 24 Nov 2026 11:43:47 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795520625; b=2G8XeWtEgpSVL5pWPggb+FuELPhfwMgEVCN67yVjhbcGSgWiKteB9F3TdGsaYJPAtHB1 0jKSzMD75/L9M6fhEMb5MXuzy7Lhm8WHVTNzFp7nh9G/XvJStbZImYZdG51sGNJm28YxD SyHvQGt4WvMyZEL3qoHeQvoTGxxFHi9OWop5GVWtgs1K0zu0OQ8Ud+UicHQrJXQFHqRdW SAQAfYjhc65Sz+3eUC2n0aEkVl8fgny+mg3mx66H+ZHn93PPtzwcNVdKu/DLcD4NaCyGK tWeO4fxXf6l5qooHuCU3vvKKSezmzl1aWpvXN3EHaR8+xxMJ3oSLslyRg/PqWsZZdrg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795520625; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=6qu+7Lmy3A39iDT57VU11u0Vh7SIl/5fOSeCu4xBzcw=; b=VcsC1/JP1+w0hENW+jJEra05E2OJQA3A6UVCa9z42keLRdgDqjwALnH0ZZro3ie/8pHG 9GCbKjR3592cGA/JRaGuS4x7AfkvZi2wp2gndTuTwRMFfpJeNDdLYIz/mAe569Xj2TGHd nqOPtA9qxXT5XJ1zUXGHN3QLF5EWRVJ638lmJLig+zXN0SUvNb96LDic9qk8Gutij3RgK hbfSLPRdMkRa99Fclhbd0fpDgyvaZYZLi0bGhaSjaYUkPlwZwBhKyekf3qRi7lD80LQdd gPKCn9GC6J5y03JRHsQjrNyx3T5doCBM5afAZOErvfAxTFYwe7BMXvAqNmBn2t+3cxw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gwzg+NUO; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCE49606A32C; Tue, 24 Nov 2026 11:43:44 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gwzg+NUO X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795520624; b=s24JD4YnhyiQO9xYoa5f6pe0lEfVL2s8JgcCxO56o53Te91kymc688ElePGBVdS+XEwI IgxL6BjDJ3xbpWuGODxYeLjv6aSVrejKyN5peOos5G9F9P40baoLiJBOAi+X+SS8lSBhZ uAgcSTCIKegjLfgihn01JahC9aGgUv/bMcsD+yInEBsiuArLX54kP24uYjZBdhWgmhNlm rk+gbbhe200R3Z/piKZoeaCNt5NMFFLyndMEKjb8xsp8zbjMxrXxy5QcXE++ZTEUX5sQO Q9JoRSp6e0yDRi8Lm0xGG8/U5XTHIQadLVJf8gQwOj8VB0YewQp9gZSqQJMAbW4jYFw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795520624; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=6qu+7Lmy3A39iDT57VU11u0Vh7SIl/5fOSeCu4xBzcw=; b=22nqsgiCW5X8UIkk8mY7ee6qxjLaRKWEM8Zd8neXVTB1otKN+HgJ6jzaD3FvKoFXtm/w u5AEet5vLCKzkX89fXlsNzdo6TKsojcoq6GlAp6CDn4sdC5qrItLOAS8gV+UlFvnVgque +hE0YC3K31yk2df9FcBX4xmrgg0lG5e4gw0tL9qO/h357YB9Byzk73FROxeIUG167yjpz GKJ7dIhlrxtDsyFMGk668GwJfeYSrF9UB2v36Vg4FTv636vNfkth+XLcdy2PpSXlOvmNO ibP1v8rskbUZX07g0Z1bkyBaB+1nQxoGH2WBwTBdm2Z/dJ97RAHMWD1Z+HlA1C+Z+Nw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gwzg+NUO; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0381A606A31E for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 11:43:43 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDD141F000C0; Tue, 24 Nov 2026 11:43:41 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795520623; bh=6qu+7Lmy3A39iDT57VU11u0Vh7SIl/5fOSeCu4xBzcw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=gwzg+NUO7SgLCjrwJ6NpI8racz8Wzlgb82u6xrOXHGKvj9roTswRt4c4eHbJHfoXm 6VfXTtBDGtgzSslTc0FslGupQNukg7dYt69yM2V6rxEJ2F3wArZQFHBjHSiAgintBR EryVVugMWdZmFwGdbW3yDE991gIYio81IuB6uTsrTQxxaDO/0/Fw+cW2+r5p7HXuFQ GrbM3TdHQlS4ps8Vv0lxg9GD0ftC5bz0BSxCPRXCZ4npPIG0zZSF4j814HFhaj8mlh rsk1ElBNSR4q8ofKxIXsZPCYFxOvXPYiYtugXinhYeZyEO9ttjD+OmtOPOalsky7EX bScRzL7s/t8zw== X-Cc: michael.chan@broadcom.com, kuba@kernel.org, andrew+netdev@lunn.ch, andrew.gospodarek@broadcom.com, davem@davemloft.net, edumazet@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, Rui Salvaterra <rsalvaterra@gmail.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261118105408.1076095-2-pavan.chebbi@broadcom.com>