Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Call For Review: Sonics Silicon Backplane(SSB) driver

1 view
Skip to first unread message

Weongyo Jeong

unread,
Nov 29, 2009, 10:41:10 PM11/29/09
to
Hello,

I've written a Sonics Silicon Backplane driver which is widely used for
Broadcom Wireless driver that bwi(4) can use this driver though it has
its own routines in it.

I don't have any knowledge to write a bus driver like this so I'm not
sure my approach is correct. Please review!

You can download a driver at:

http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz

regards,
Weongyo Jeong

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

Gonzalo Nemmi

unread,
Nov 30, 2009, 12:22:42 AM11/30/09
to
On Mon, Nov 30, 2009 at 4:41 AM, Weongyo Jeong <weongy...@gmail.com> wrote:
> Hello,
>
> I've written a Sonics Silicon Backplane driver which is widely used for
> Broadcom Wireless driver that bwi(4) can use this driver though it has
> its own routines in it.
>
> I don't have any knowledge to write a bus driver like this so I'm not
> sure my approach is correct.  Please review!
>
> You can download a driver at:
>
>        http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz
>
> regards,
> Weongyo Jeong

Hi there Weongyo!
I´d like to know .. will it compile under 8.0-RELEASE or -STABLE?
Should I try your module instead of bwi(4)?

And just in case you find it usefull, in ssb_pci.c, {
PCI_VENDOR_BROADCOM, 0x4315, "Unknown" }, is actually a 'Broadcom
Wireless b/g (BCM4315/BCM22062000)'. I have one .. here you´ll find my
pciconf -lcvb usinf bwi(4) with parado´s firmware:
http://pastebin.com/f1f40900c

#bwi0@pci0:12:0:0: class=0x028000 card=0x000b1028
chip=0x431514e4 rev=0x01 hdr=0x00
# vendor = 'Broadcom Corporation'
# device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
# class = network
# cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
# cap 09[58] = vendor (length 120)
# cap 05[e8] = MSI supports 1 message, 64 bit
# cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)

bwi0: PHY: type 5, rev 1, ver 6
bwi0: RF: manu 0x17f, type 0x2062, rev 2

Hope that help :)

Best Regards
Gonzalo

Weongyo Jeong

unread,
Nov 30, 2009, 9:46:19 PM11/30/09
to
On Mon, Nov 30, 2009 at 06:22:42AM +0100, Gonzalo Nemmi wrote:
> On Mon, Nov 30, 2009 at 4:41 AM, Weongyo Jeong <weongy...@gmail.com> wrote:
> > Hello,
> >
> > I've written a Sonics Silicon Backplane driver which is widely used for
> > Broadcom Wireless driver that bwi(4) can use this driver though it has
> > its own routines in it.
> >
> > I don't have any knowledge to write a bus driver like this so I'm not
> > sure my approach is correct. ?Please review!

> >
> > You can download a driver at:
> >
> > ? ? ? ?http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz

> >
> > regards,
> > Weongyo Jeong
>
> Hi there Weongyo!
> I�d like to know .. will it compile under 8.0-RELEASE or -STABLE?

Yes it should be.

> Should I try your module instead of bwi(4)?

No. ssb driver is a kind of bus driver that it's not a wireless driver
so can not use. But I'm working on new driver (aka bwn(4)) for
replacing bwi(4) that it uses v4 firmware (latest firmware) and supports
more H/Ws. It's almost done that it works to associate with AP and
pings for RX/TX but not public yet. When it's available let you know
for testing. :-)

>
> And just in case you find it usefull, in ssb_pci.c, {
> PCI_VENDOR_BROADCOM, 0x4315, "Unknown" }, is actually a 'Broadcom
> Wireless b/g (BCM4315/BCM22062000)'. I have one .. here you�ll find my
> pciconf -lcvb usinf bwi(4) with parado�s firmware:
> http://pastebin.com/f1f40900c
>
> #bwi0@pci0:12:0:0: class=0x028000 card=0x000b1028
> chip=0x431514e4 rev=0x01 hdr=0x00
> # vendor = 'Broadcom Corporation'
> # device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
> # class = network
> # cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
> # cap 09[58] = vendor (length 120)
> # cap 05[e8] = MSI supports 1 message, 64 bit
> # cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
>
> bwi0: PHY: type 5, rev 1, ver 6
> bwi0: RF: manu 0x17f, type 0x2062, rev 2
>
> Hope that help :)

Thanks you for informations.

regards,
Weongyo Jeong

Gonzalo Nemmi

unread,
Dec 1, 2009, 12:04:26 AM12/1/09
to
On Tue, Dec 1, 2009 at 3:46 AM, Weongyo Jeong <weongy...@gmail.com> wrote:
> On Mon, Nov 30, 2009 at 06:22:42AM +0100, Gonzalo Nemmi wrote:
>> On Mon, Nov 30, 2009 at 4:41 AM, Weongyo Jeong <weongy...@gmail.com> wrote:
>> > Hello,
>> >
>> > I've written a Sonics Silicon Backplane driver which is widely used for
>> > Broadcom Wireless driver that bwi(4) can use this driver though it has
>> > its own routines in it.
>> >
>> > I don't have any knowledge to write a bus driver like this so I'm not
>> > sure my approach is correct. ?Please review!
>> >
>> > You can download a driver at:
>> >
>> > ? ? ? ?http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz
>> >
>> > regards,
>> > Weongyo Jeong
>>
>> Hi there Weongyo!
>> I´d like to know .. will it compile under 8.0-RELEASE or -STABLE?
>
> Yes it should be.

Good to know !
I´ll install FreeBSD 8.0 tomorrow and give your driver a go and as
soon as I have something, I´ll report back to you :)

>> Should I try your module instead of bwi(4)?
>
> No.  ssb driver is a kind of bus driver that it's not a wireless driver
> so can not use.  But I'm working on new driver (aka bwn(4)) for
> replacing bwi(4) that it uses v4 firmware (latest firmware) and supports
> more H/Ws.  It's almost done that it works to associate with AP and
> pings for RX/TX but not public yet.  When it's available let you know
> for testing. :-)

That´s even better than I expected because bwi(4) simply doesn´t
support my hardware!

So what shoudl I do?
Load it alonside bwi(4)?
Just load it and see what I get on /var/log/messages and dmesg and report back?

And since you are writing a new driver, can I help to make it work
with ACPI from the get go?

>>
>> And just in case you find it usefull, in ssb_pci.c, {
>> PCI_VENDOR_BROADCOM, 0x4315, "Unknown" }, is actually  a 'Broadcom
>> Wireless b/g (BCM4315/BCM22062000)'. I have one .. here you´ll find my
>> pciconf -lcvb usinf bwi(4) with parado´s firmware:
>> http://pastebin.com/f1f40900c
>>
>> #bwi0@pci0:12:0:0:       class=0x028000 card=0x000b1028
>> chip=0x431514e4 rev=0x01 hdr=0x00
>> #    vendor     = 'Broadcom Corporation'
>> #    device     = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
>> #    class      = network
>> #    cap 01[40] = powerspec 3  supports D0 D1 D2 D3  current D0
>> #    cap 09[58] = vendor (length 120)
>> #    cap 05[e8] = MSI supports 1 message, 64 bit
>> #    cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
>>
>> bwi0: PHY: type 5, rev 1, ver 6
>> bwi0: RF: manu 0x17f, type 0x2062, rev 2
>>
>> Hope that help :)
>
> Thanks you for informations.

You are welcome !
I´ll be sending more info as I get my hands dirty with it :D

Best Regards
Gonzalo Nemmi

Aditya Sarawgi

unread,
Dec 1, 2009, 1:35:55 PM12/1/09
to
On Sun, Nov 29, 2009 at 07:41:10PM -0800, Weongyo Jeong wrote:
> Hello,
>
> I've written a Sonics Silicon Backplane driver which is widely used for
> Broadcom Wireless driver that bwi(4) can use this driver though it has
> its own routines in it.
>
> I don't have any knowledge to write a bus driver like this so I'm not
> sure my approach is correct. Please review!

>
> You can download a driver at:
>

One more thing can we add BCM4315 to the list of known devices. Please
see the attached patch.


--
Aditya Sarawgi

ssb.patch

Aditya Sarawgi

unread,
Dec 1, 2009, 1:21:42 PM12/1/09
to
On Sun, Nov 29, 2009 at 07:41:10PM -0800, Weongyo Jeong wrote:
> Hello,
>
> I've written a Sonics Silicon Backplane driver which is widely used for
> Broadcom Wireless driver that bwi(4) can use this driver though it has
> its own routines in it.
>
> I don't have any knowledge to write a bus driver like this so I'm not
> sure my approach is correct. Please review!
>
> You can download a driver at:
>
> http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz
>
> regards,
> Weongyo Jeong
>

Hi,

I have a 'Broadcom Wireless b/g (BCM4315/BCM22062000)' and I tested your
work. After loading the ssb kernel module, dmesg gives

ssb0: <Unknown> mem 0xf4000000-0xf4003fff irq 19 at device 0.0 on pci6

This card doesn't work with the bwi driver so I'm looking foward to test
your bwn driver.

--
Aditya Sarawgi

Weongyo Jeong

unread,
Dec 2, 2009, 2:09:24 PM12/2/09
to
On Tue, Dec 01, 2009 at 06:04:26AM +0100, Gonzalo Nemmi wrote:
> On Tue, Dec 1, 2009 at 3:46 AM, Weongyo Jeong <weongy...@gmail.com> wrote:
> > On Mon, Nov 30, 2009 at 06:22:42AM +0100, Gonzalo Nemmi wrote:
> >> On Mon, Nov 30, 2009 at 4:41 AM, Weongyo Jeong <weongy...@gmail.com> wrote:
> >> > Hello,
> >> >
> >> > I've written a Sonics Silicon Backplane driver which is widely used for
> >> > Broadcom Wireless driver that bwi(4) can use this driver though it has
> >> > its own routines in it.
> >> >
> >> > I don't have any knowledge to write a bus driver like this so I'm not
> >> > sure my approach is correct. ?Please review!

> >> >
> >> > You can download a driver at:
> >> >
> >> > ? ? ? ?http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz
> >> >
> >> > regards,
> >> > Weongyo Jeong
> >>
> >> Hi there Weongyo!
> >> I�d like to know .. will it compile under 8.0-RELEASE or -STABLE?
> >
> > Yes it should be.
>
> Good to know !
> I�ll install FreeBSD 8.0 tomorrow and give your driver a go and as
> soon as I have something, I�ll report back to you :)
>
> >> Should I try your module instead of bwi(4)?
> >
> > No. ?ssb driver is a kind of bus driver that it's not a wireless driver
> > so can not use. ?But I'm working on new driver (aka bwn(4)) for

> > replacing bwi(4) that it uses v4 firmware (latest firmware) and supports
> > more H/Ws. ?It's almost done that it works to associate with AP and
> > pings for RX/TX but not public yet. ?When it's available let you know

> > for testing. :-)
>
> That�s even better than I expected because bwi(4) simply doesn�t
> support my hardware!
>
> So what shoudl I do?
> Load it alonside bwi(4)?
> Just load it and see what I get on /var/log/messages and dmesg and report back?
>
> And since you are writing a new driver, can I help to make it work
> with ACPI from the get go?

Please wait until I'm ready. It'd not take long time.

regards,
Weongyo Jeong

Weongyo Jeong

unread,
Dec 2, 2009, 2:10:43 PM12/2/09
to
On Tue, Dec 01, 2009 at 06:35:55PM +0000, Aditya Sarawgi wrote:

> On Sun, Nov 29, 2009 at 07:41:10PM -0800, Weongyo Jeong wrote:
> > Hello,
> >
> > I've written a Sonics Silicon Backplane driver which is widely used for
> > Broadcom Wireless driver that bwi(4) can use this driver though it has
> > its own routines in it.
> >
> > I don't have any knowledge to write a bus driver like this so I'm not
> > sure my approach is correct. Please review!

> >
> > You can download a driver at:
> >
> > http://people.freebsd.org/~weongyo/ssb_20091129.tar.gz
> >
> > regards,
> > Weongyo Jeong
> >
>
> One more thing can we add BCM4315 to the list of known devices. Please
> see the attached patch.

Applied in my local tree. Thanks you for reporting.

0 new messages