From owner-freebsd-arm@FreeBSD.ORG Tue Jan 29 06:52:42 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0D52ED45 for ; Tue, 29 Jan 2013 06:52:42 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id CC36CAE3 for ; Tue, 29 Jan 2013 06:52:41 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r0T6qZ1D038671 for freebsd-arm@freebsd.org; Tue, 29 Jan 2013 06:52:35 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 3dnf4vitmsd7gsn2itpvy8rhys; for freebsd-arm@freebsd.org; Tue, 29 Jan 2013 06:52:35 +0000 (UTC) (envelope-from kientzle@freebsd.org) From: Tim Kientzle Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: CfT: Revised CPSW driver for BeagleBone Date: Mon, 28 Jan 2013 22:52:33 -0800 Message-Id: <3F0C7436-3CC5-4B57-A4CB-431D83AFCAFE@freebsd.org> To: freebsd-arm Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 06:52:42 -0000 I have another iteration of the BeagleBone network driver almost ready to commit and would appreciate any feedback. The code is on github; you can browse it at https://github.com/kientzle/cpsw or download a snapshot from: https://github.com/kientzle/cpsw/archive/master.zip Just copy the three if_cpsw* files to sys/arm/ti/cpsw/ and rebuild. Here are the improvements since my last update: * Finally (!!) fixed the regular watchdog timeouts (turned out to be misconfigured Ethernet flow control) * TX performance improvements: = Eliminated TX interrupt = queue fragmented packets directly without defragmenting * Debugging: Connected up the "Host Error" interrupt to print detailed traces whenever the controller gets confused. * Debugging: "sysctl dev.cpsw" gives a variety of statistics, including packet error counters, queue and watchdog statistics Unless something shows up, I expect to commit it to FreeBSD-CURRENT this coming weekend. Tim