From owner-freebsd-hackers@freebsd.org Tue Apr 24 04:24:41 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06549FB9230; Tue, 24 Apr 2018 04:24:41 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C73487638; Tue, 24 Apr 2018 04:24:40 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by mail-pg0-x242.google.com with SMTP id 82so47218pge.11; Mon, 23 Apr 2018 21:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NkOCBYEh4HvyhXn8z2lm6NInAKrdNxClPlRophR/6bY=; b=FtzkOwJHhrqAhiaO5+j5K4MFMnjMeCu0aDTDGFZBH/4wS2lyC2vluzGgs3MqCyLzBX l6NWLFXaj33MgFxWmoAi+TQtjgx2qW68gNIyquOx/ZtJIluYyxLh3f5KYpeeUzbUu0OH FfvtXOSYxfZUX7NFyonUNzyI/zcjSv8ozaJsEd+Ad1E98Ky3mcm27+Zr1EP+dJYOH57t fy7FLAVE00w8DLzjgJyekEI6PeEmYJ5dKiL+orF5wwqdzP+nPQkau4X3b8bRf45xoe4p JtLlo2/YMZKWxpnFdzrAfcvYQrkDHc9n3QBZgOpd2acsKVVIMChdZHuQa4BmGsC8H5wO fh8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=NkOCBYEh4HvyhXn8z2lm6NInAKrdNxClPlRophR/6bY=; b=HXcTodohSsExPghdfWDkh68pz6+jBOoj9Idy4sjlR/uhEWJK+YU5gfhV42Rz6a2dky 9Ud38h0TaTqunqsZSIBV/W1Uzwzhis8BshAQSvenCxD1pLkJM3k+Tabz00wvM0gdVLrU aACdcnHeQx4LNl8LaLDT6euSn4iCaHtYaX1VibwWR+tpr6tqAp8FQldzpBpcQUBT/xiP 2/xhwZR68CxIUjI46YcFYMV/u3J41idKparQNZiwIPtmKGoq037kv33cmltJE2nB1CRF /+l4VhZPNDX+rmvn7btx/oQ5R0BbseMQgAnkxVNE8VYrzXqw88d6YMd4IuDCG4BsEVkE FwwQ== X-Gm-Message-State: ALQs6tBZPbHyIHNGZFtvrFGM0lUEWto9w4TZBkEuFe40Tmt4kz3Dxb2D Zssf5jFLn/j9kBAmY9kU773rMw== X-Google-Smtp-Source: AIpwx4+H6aqyfkFmQX0bTLWzzU148XHj4J+CxSiaCXBiEArlb8ysM9KunWzimfZkw+1GPk1mDLmOrg== X-Received: by 2002:a17:902:1e3:: with SMTP id b90-v6mr20400466plb.273.1524543879611; Mon, 23 Apr 2018 21:24:39 -0700 (PDT) Received: from localhost ([58.237.141.52]) by smtp.gmail.com with ESMTPSA id l80sm29852053pfk.73.2018.04.23.21.24.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 21:24:38 -0700 (PDT) From: YongHyeon PYUN X-Google-Original-From: "YongHyeon PYUN" Received: by localhost (sSMTP sendmail emulation); Tue, 24 Apr 2018 13:24:34 +0900 Date: Tue, 24 Apr 2018 13:24:34 +0900 To: Dieter BSD Cc: yongari@freebsd.org, freebsd-drivers@freebsd.org, anders@freebsd.org, jpmg@eng.cam.ac.uk, danmason@danmason.net, freebsd-hackers@freebsd.org Subject: Re: Broadcom 5719 Ethernet - Does it work yet? Message-ID: <20180424042434.GA3123@michelle.fasterthan.co.kr> Reply-To: pyunyh@gmail.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2018 04:24:41 -0000 On Sun, Apr 22, 2018 at 11:01:45PM -0700, Dieter BSD wrote: > www.broadcom.com/products/ethernet-connectivity/network-adapters/bcm5719-4p/ > claims that FreeBSD works with the 5719, but > bugs.freebsd.org/bugzilla/show_bug.cgi?id=171121 > is still open, so the question of whether the 5719 works properly > (or at all?) with FreeBSD is clear as mud. :-( > I'm not sure but it shall work. On some HP or Dell systems with ASF/IPMI stuff, it may have some issues as the PR indicated. But I was not able to narrow down the issue at that time. > Question 1: It appears that there were/are problems with both Dell > cards and HP cards. Is there something special about these cards > that could keep FreeBSD from working with them? Do they need to be > in Dell/HP systems or would they work in a vanilla machine? > (I'm thinking of getting one for a vanilla machine but only if it works.) > The 5719 and 5720 are the same except for 4 ports vs 2 ports, right? > Preliminary ASF/IPMI support in bge(4) is included but it may not be enough to fully support customized firmware shipped on HP or Dell systems. This is one of reason why bge(4) suspend/resumes are not reliable on some server class systems. WOL support also requires complicated ASF/IPMI handshake so WOL support was not implemented at all. Blindly activating WOL on bge(4) controllers with ASF/IPMI systems may trigger more issues. > Question 2: > The PR was opened in 2012, and is still open. Do FreeBSD and the > 5719 play together yet? Is anyone working on it? Most 5719/5720 shall work. > Is anyone working on it? I'm not aware of it. > Question 3: > For those who do have it working, are there any problems? > For example, the Realtek 8111 has pauses, which can cause lost data, > even with TCP. See [1] And the AX88179 silently corrupts data, > even with TCP. See [2] > axe(4) does *NOT* support AX88179. AX88179 is supported by axge(4). Last time I tried axge(4) it showed poor performance with lots of RX errors. Enabling flow control slightly mitigates it though. If you see corrupted data with axge(4), try disabling all checksum offloading features and test it again. If you still see the same data corruption without checksum offloading it surely indicates data handling issue of the driver. > Question 4: > > I thought you don't have any working network devices on your box so > > I recommended to use USB based ethernet controller(i.e. axe(4)) to > > get working network on the box. > > The axe(4) man page lists several chips. Do any of these actually work > correctly with FreeBSD? Yes. > I found that the AX88179 silently corrupts data > unless the data rate is very slow. For details, see [2] > > Question 5: > > Unfortunately I didn't get any answers/hints from Broadcom. > > Still nothing from Broadcom? They claim it works with FreeBSD, > but they will not assist? Broadcom used to support FreeBSD for a long time. They donated engineering samples for driver development and answered specific technical questions and submitted support code for new controllers before the controllers are available on market. > Does FreeBSD have anyone who is good at > diplomaticly rattling cages? > > [1] See the "Realtek re(4) driver" thread on hackers@ > [2] See "AX88179 USB-to-Ethernet is slow and silently corrupts data" > on hackers@, drivers@, usb@, net@