On Mon, 9 Feb 2009 04:59:13 +0000 (UTC)
Pyun YongHyeon <yong...@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:
r...@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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to