MFC of Realtek if_re support?

From: Barry Bouwsma (freebsd-misuser_at_remove-NOSPAM-to-reply.NOSPAM.dyndns.dk)
Date: 07/29/04

  • Next message: Warren Pollans: "Re: perl5.8 with 4.10 stable?"
    Date: Thu, 29 Jul 2004 14:28:06 +0200 (CEST)
    To: FreeBSD Stable <freebsd-stable@freebsd.org>
    
    

    Yeah, yeah, and all that.

    Is there any plan to either MFC the if_re Realtek driver with
    support for GigEthernet into 4.x, or less likely, unrevert the
    reversion of if_rl which had early support for some chipsets,
    reverted right before a release when it apparently broke other
    support, and bring that up-to-date?

    I've tried out the un-reverted if_rl with my newly-purchased
    card just for fun, where it's clear that more additions are
    needed to the code from that point of time to make it coexist
    with my card. Also, it's not the way of -current.

    Then I tried hacking the if_re from -current to shoehorn it
    into compiling with my -stable, and after a disturbing number
    of hacks whose correctness I cannot vouch for (I'm no hacker
    or programmer and have no idea what I'm doing), finally got
    something that compiled, woo.

    After adding rgephy to miibus, I'm able to kldload the if_re
    kernel module and it actually recognizes my card:
    re0: <RealTek 8169S Single-chip Gigabit Ethernet> port 0x6200-0x62ff mem 0xe1002000-0xe10020ff irq 9 at device 10.0 on pci0
    miibus0: <MII bus> on re0
    rgephy0: <RTL8169S/8110S media interface> on miibus0
    rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
    bpf: re0 attached

    After a few days of additional hacking, I'm able to `ifconfig'
    it to actually do something, too. I'd almost say it works, but
    I don't really have the network to test it.

    There seem to be a number of minor issues, like I can't force
    100Mbit full-duplex, while autoselect works fine to give me
    full-duplex 100Mbit, but I see the same thing under the NetBSD-
    current import of the driver. (I don't have FreeBSD-current
    ability at the moment.)

    My hacks are uglier than sin, and I'd prefer that someone
    who actually knows what they are doing make a patch for -stable,
    but I'll grudgingly share my hideous hacks privately with any
    interested parties.

    I haven't tried this card other than connected to a fast switch,
    and under any OS but my 4.x (and a brief foray into NetBSD-current)
    yet, and I thought it would be best to pass this to some expert
    who might know more than I do.

    And by the way, I'm curious whether anyone can say anything about
    this chip, like whether the comments about other Realtek chipsets
    apply, or what. (For the price I paid, I don't expect stellar
    performance, but I'm curious how it stacks up against the others.)

    thanks
    barry bouwsma

    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Warren Pollans: "Re: perl5.8 with 4.10 stable?"

    Relevant Pages

    • Re: You passed an undefined mode number
      ... Yeah! ... When I checked if the card is set to support X in Yast, ...
      (alt.os.linux.suse)
    • [patch 000/176] Video4Linux Updates
      ... Support for em28xx based usb2 boards; ... -Don't enable gpioirq until after card probe. ... -Some changes to allow compiling cx88 and saa7134 without ... -Fixed settings for MSI Vox USB 2.0 ...
      (Linux-Kernel)
    • Re: Help needed in rec.audio.pro
      ... > Rewire you can add even more to your environment (like Reason, FL Studio, ... Linux also has LADSPA and some VST's work as well. ... I have that card (sblive! ... Emu support seems to exist now. ...
      (comp.os.linux.misc)
    • Re: Help needed in rec.audio.pro
      ... > Rewire you can add even more to your environment (like Reason, FL Studio, ... Linux also has LADSPA and some VST's work as well. ... I have that card (sblive! ... Emu support seems to exist now. ...
      (alt.os.linux)
    • Re: MCE 2006 Wish List
      ... Yep - and almost all of the radio channels available with a Sky Digital ... DVB-S card to receive them without an analogue link in the chain! ... The lack of support for these transmission systems ...
      (microsoft.public.windows.mediacenter)