Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 18:10:56 +0100
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        Pyun YongHyeon <yongari@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r188381 - head/sys/dev/re
Message-ID:  <20090209181056.40db0ba2@ernst.jennejohn.org>
In-Reply-To: <200902090459.n194xDa3045928@svn.freebsd.org>
References:  <200902090459.n194xDa3045928@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 9 Feb 2009 04:59:13 +0000 (UTC)
Pyun YongHyeon <yongari@FreeBSD.org> wrote:

> Author: yongari
> Date: Mon Feb  9 04:59:13 2009
> New Revision: 188381
> URL: http://svn.freebsd.org/changeset/base/188381
> 
> Log:
>   Reclaim transmitted frames in re_tick(). This is for PCIe
>   controllers that lose Tx completion interrupts under certain
>   conditions. With this change it's safe to use MSI on PCIe
>   controllers so enable MSI on these controllers.
> 
> Modified:
>   head/sys/dev/re/if_re.c
> 

This does not work with my re(4).  When I allow MSI it never transmits.
I noticed this while booting when the sendmail startup hung.  A test
with ping(8) showed that there was no output (or maybe no input, hard
to tell with ping).

Here dmesg output when it fails:
re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit Ethernet> port 0xde00-0xdeff mem 0xfdaff000-0xfdafffff,0xfdae0000-0xfdaeffff irq 18 at device 0.0 on pci2
re0: Using 2 MSI messages
re0: Chip rev. 0x3c000000
re0: MAC rev. 0x00400000
re0: Ethernet address: 00:1f:d0:8f:5a:43
re0: [FILTER]
re0: [FILTER]
re0: link state changed to UP

Here dmesg output when it succeeds:
re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit Ethernet> port 0xde00-0xdeff mem 0xfdaff000-0xfdafffff,0xfdae0000-0xfdaeffff irq 18 at device 0.0 on pci2
re0: turning off MSI enable bit.
re0: Chip rev. 0x3c000000
re0: MAC rev. 0x00400000
re0: Ethernet address: 00:1f:d0:8f:5a:43
re0: [FILTER]
re0: link state changed to UP

And here pciconf output:
re0@pci0:2:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x02 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
    class      = network
    subclass   = ethernet

---
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090209181056.40db0ba2>