Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 10:19:07 -0700
From:      Jack Vogel <jfvogel@gmail.com>
To:        Alexander Sack <pisymbol@gmail.com>
Cc:        Juli Mallett <jmallett@freebsd.org>, freebsd-net@freebsd.org, Andrew Boyer <aboyer@averesystems.com>
Subject:   Re: Dual-rate transceivers with ixgbe?
Message-ID:  <AANLkTil8vIRF8Y4pruy01AgLkhyvg5fJucbw4LSCDNCG@mail.gmail.com>
In-Reply-To: <AANLkTimHAH9rNU9wPgykEKwLwm4sGAYEgRx_hkdXjwGm@mail.gmail.com>
References:  <AANLkTinO9NZ8F9TeS68I2ULQgdlMGzlXkinCsywWosAM@mail.gmail.com> <AANLkTinS607kd3wc3F2WWmA6Zk9KL4GhscxEHPtcvxA5@mail.gmail.com> <AANLkTimkxOn9h6SAkTPDqfUM9kl2CZiFrZC_BuNDfRyB@mail.gmail.com> <AANLkTikcQMXk8UebmaynOeeInGiwx8yr0NMGE1yJfm8u@mail.gmail.com> <AANLkTil_YRvU54qHtIMO7mP4yYjojeHVrCHaRcl2K2Ug@mail.gmail.com> <AANLkTim5Ao9nSh6T6HF7NztLgvbTzxuVyr8lSXAJ7bMo@mail.gmail.com> <AANLkTim9-Za5mzLTw7MDAHY_TuIQsQ0SF0_1xpxyGY7v@mail.gmail.com> <AANLkTik-V2frmirwBLtg4RemdEVvPhUmVsOP7CqEkvUi@mail.gmail.com> <AANLkTikqjQic_M3mX7OTx-V0OJxbk4vzxajPmHmIUAKa@mail.gmail.com> <AANLkTikjs42mE5QHnSvZ9x9DI1xfYowvIES-DRORz6hH@mail.gmail.com> <AANLkTilqb4y0zEmom0jyg-HEi4yp8D3nkkbUWGHUjWPt@mail.gmail.com> <AANLkTinOnzvjrmmLb3w5jOYEk02CY2tWCwnKxTv8sHS8@mail.gmail.com> <82D310BD-48DE-4F79-84C6-356AB4F04C42@averesystems.com> <AANLkTikDM5l71isz28jJNv7nk9K-kmqTKptAC_yY3ACq@mail.gmail.com> <AANLkTimHAH9rNU9wPgykEKwLwm4sGAYEgRx_hkdXjwGm@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I am NOT going to accept patches to defeat the code that Intel has put in
place,
if you want to hack the code that's your perogative but its like any other
custom
change, you made it, you manage it.

1G SFP do not work and are not supported, there IS a supported SFP+
multispeed
that can link at 1G, this was tested here.

I've said this a couple times now, if you are buying this pluggable type
hardware
do yourself a favor and buy supported optics.

Jack


On Mon, Jun 14, 2010 at 9:21 AM, Alexander Sack <pisymbol@gmail.com> wrote:

> On Thu, Jun 10, 2010 at 5:25 PM, Alexander Sack <pisymbol@gmail.com>
> wrote:
> > On Thu, Jun 10, 2010 at 5:12 PM, Andrew Boyer <aboyer@averesystems.com>
> wrote:
> >>
> >> On Jun 10, 2010, at 3:59 PM, Alexander Sack wrote:
> >>>
> >>>> One thing that the base driver probably ought to do is not fail in
> >>>> attach if there's an unrecognized SFP+ module.  Since we get
> >>>> interrupts on module change (although this doesn't seem to always work
> >>>> *entirely* right in the stock sources, mostly wrt stored values of
> >>>> AUTOC and the like) it should be possible to bring the interface up
> >>>> with the unsupported (and disabled) SFP+ module and do the SFP+ module
> >>>> probing we already do on hot-swap.
> >>>
> >>> Alright, let me see if I can test that.  Let me rephrase so I validate
> >>> what you are saying:
> >>>
> >>> The driver can come up with an unsupported module but disable the
> >>> interface (ifconfig shows the interface, etc.).
> >>>
> >>> If you then hot-swap a supported SFP, it should come up then with a
> >>> ifconfig down/up cycle.  Right?
> >>>
> >>> As it stand now, if you load the driver with an unsupported module, it
> >>> will not attach at all causing you to reload the entire driver OR
> >>> reboot the box to have it reattach to the other SFP.
> >>>
> >>
> >> We use this patch to allow the driver to attach when no module is
> installed.  This might be a starting point for you.  I haven't tested it
> without all of our other changes in place so my apologies if it doesn't
> quite work.  We only have Intel modules around for testing.
> >>
> >> -Andrew
> >>
> >> --- ixgbe.c     2010-06-10 16:53:08.000000000 -0400
> >> +++ ixgbe.c     2010-06-10 16:55:26.000000000 -0400
> >> @@ -566,7 +566,7 @@
> >>        } else if (error == IXGBE_ERR_SFP_NOT_SUPPORTED)
> >>                device_printf(dev,"Unsupported SFP+ Module\n");
> >>
> >> -       if (error) {
> >> +       if (error && error != IXGBE_ERR_SFP_NOT_PRESENT) {
> >>                error = EIO;
> >>                device_printf(dev,"Hardware Initialization Failure\n");
> >>                goto err_late;
> >>
> >> --- ixgbe_82598.c       2010-06-10 16:53:24.000000000 -0400
> >> +++ ixgbe_82598.c       2010-06-10 16:56:31.000000000 -0400
> >> @@ -257,10 +257,6 @@
> >>                ret_val = ixgbe_get_sfp_init_sequence_offsets(hw,
> >>                                                            &list_offset,
> >>
>  &data_offset);
> >> -               if (ret_val != IXGBE_SUCCESS) {
> >> -                       ret_val = IXGBE_ERR_SFP_NOT_SUPPORTED;
> >> -                       goto out;
> >> -               }
> >>                break;
> >>        default:
> >>                break;
> >
> > Thank you Andrew!  I am on the same path as above! (though I also had
> > 82599 changes which may not be meaningful to your application).
> >
> > I will have access to numerous SFP/SFP+ very soon (all Finisar based -
> > though I think the Intel supplied ones are Finisar too anyway).   I
> > will test the dual-rate as well with both 10G and 1G traffic.
> >
> > Stay tuned, I want to test all of this in the lab.
> >
> > -aps
> >
>
> A little update, I have been playing with my card over the weekend
> until we had a power outage and I am without a network (don't ask how
> I am writing this email right now).
>
> Couple of tidbits/musings:
>
> 1)  I don't think this card supports 1G SFPs at all at this point?  It
> relies on getting the right sequence offsets based on the SFP type
> stored in the EEPROM which is buried in
> ixgbe_identify_sfp_module_generic().  I tried using a standard 1G SFP
> (Finisar) and set the sfp_type manually (I tried short range and long
> range) and it doesn't work!  :(  (Obviously Jack, you know best!)  Of
> course, this maybe directly related to #3 on this list (see below).
>
> 2)  I can definitely get my Finisar 10G SFP+ to work fine with my set
> of patches.  I see no issues with this other than policy.  I will
> submit very soon.
>
> 3)  Like Juli, I can not get the 1G link to come up no matter how hard
> I try.  At this point I am about to kick start the latest Linux to
> just see if it works.  I stared at the driver and there were a few
> minor differences, but nothing drastic.  The SFP gets recognized but
> the AUTOC/LINKS registers are not happy.  (I do notice Jack that in
> the setup sfp/link tasks, Linux sets autoneg to false explicitly
> before doing the multispeed fiber stuff).
>
> Anyway I will a more formal patch set tomorrow.  I'd like to
> understand why Linux works and FreeBSD does not with the 1G link in a
> supported Intel dual-rate SFP+ module?
>
> -aps
>
> PS This card hangs my Nehalem machine but I am going to try a new bios
> (v50) to see if it goes away (I am right now on a S5000PAL).
>



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