NetBSD Problem Report #37762

From arto.huusko@pp2.inet.fi  Tue Jan 15 12:15:38 2008
Return-Path: <arto.huusko@pp2.inet.fi>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2D58B63B100
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 Jan 2008 12:15:38 +0000 (UTC)
Message-Id: <20080115121534.578732F5382@vekotin.local>
Date: Tue, 15 Jan 2008 14:15:34 +0200 (EET)
From: arto.huusko@pp2.inet.fi
Reply-To:
To: gnats-bugs@gnats.NetBSD.org
Subject: bge hw assist problems
X-Send-Pr-Version: 3.95

>Number:         37762
>Category:       kern
>Synopsis:       bge hw assist problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 15 12:20:00 +0000 2008
>Closed-Date:    Mon Dec 10 15:40:11 +0000 2018
>Last-Modified:  Mon Dec 10 15:40:11 +0000 2018
>Originator:     arto.huusko@pp2.inet.fi
>Release:        NetBSD 4.99.49
>Organization:
>Environment:
System: NetBSD vekotin.local 4.99.49 NetBSD 4.99.49 (VEKOTIN) #1: Sun Jan 13 00:31:02 EET 2008 root@mutteri.local:/local/netbsd/build/netbsd-current/amd64/obj/sys/arch/amd64/compile/VEKOTIN amd64
Architecture: x86_64
Machine: amd64
>Description:
	There are some problems with hardware assisted TCP segmentation and
	checksumming in the bge driver. The NIC is attached like so:

bge0 at pci2 dev 0 function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at ioapic0 pin 18 (irq 11)
bge0: ASIC BCM5754/5787 A2 (0xb002), Ethernet address 00:1b:38:2b:fc:30
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM5754/5787 1000BASE-T media interface, rev. 0
bge0: block failed to stop: reg 0x1400, bit 0x00000002

	ifconfig bge0 says:

bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=3f80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx>
        enabled=0
        address: 00:1b:38:2b:fc:30
        media: Ethernet autoselect (100baseTX full-duplex,flowcontrol,rxpause,txpause)
        status: active
        inet 10.0.0.11 netmask 0xffffff00 broadcast 10.0.0.255

	I don't have any specifics what exactly is going wrong, but the symptoms
	are

	- With TSO4, NFS (client) is useless. With even a little traffic the
	  client seems to think the server is gone (server not responding
	  messages).
	  tcpdumping the traffic shows some NFS traffic happening constantly,
	  but tcpdump shows for example invalid rpc response codes etc.

	- With TCP checksum options turned on, bad checksums occur.
	  One interesting effect was that I couldn't access www.facebook.com,
	  but other sites worked mostly. When I turned TCP checksum offload
	  off, everything seems to work (except skype).

	  netstat -s on this machine shows 208 received packets discarded due
	  to bad checksums. The LAN router shows 480 received packets
	  discarded due to checksums.

	- IP4 csum offload possibly works, netstat -s shows no IP packets
	  discarded due to checksum. Same for UDP.

	- Even with all offload options turned off I still can't connect skype,
	  but that could be due to linux32 emulation problems and not bge. But
	  I wouldn't rule bge out either.
>How-To-Repeat:
	Run bge on Acer Aspire 5310 with various hw assist options turned on.
>Fix:
	Not known.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Mon, 26 Nov 2018 14:23:17 +0000
State-Changed-Why:
If you still have the hardware can you check a newer kernel ?
TSO4 has been disabled for this ASIC, and AFAIK others checksum offloads
should work


State-Changed-From-To: feedback->closed
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Mon, 10 Dec 2018 15:40:11 +0000
State-Changed-Why:
feedback mail bounced


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.