From david.somayajulu at qlogic.com Thu Jun 4 02:00:58 2009 From: david.somayajulu at qlogic.com (David Somayajulu) Date: Thu Jun 4 02:01:05 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? Message-ID: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> Hi All, I would appreciate if you could let me know, how I can pass configuration parameters to a device driver, which can be processed during either probe() or attach() ? Is there a way to read them from a conf file of some sort ? Basically, I am interested in setting some tunable parameters during driver initialization, without needing to recompile the driver every time. thanks david Somayajulu From larrypatrickmaloney at yahoo.com Thu Jun 4 02:18:41 2009 From: larrypatrickmaloney at yahoo.com (Larry Maloney) Date: Thu Jun 4 02:18:48 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> Message-ID: <4A272BF7.8060604@yahoo.com> David Somayajulu wrote: > Hi All, > I would appreciate if you could let me know, how I can pass configuration parameters to a device driver, which can be processed during either probe() or attach() ? Is there a way to read them from a conf file of some sort ? Basically, I am interested in setting some tunable parameters during driver initialization, without needing to recompile the driver every time. > > thanks > david Somayajulu > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" > > Isn't that what the hints file is for? Larry -- ============================== Larry P. Maloney CEO/CTO SoftNet Solutions Phone: 650-961-2315 Web: www.softnetsolution.com From david.somayajulu at qlogic.com Thu Jun 4 02:28:12 2009 From: david.somayajulu at qlogic.com (David Somayajulu) Date: Thu Jun 4 02:28:18 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <4A272BF7.8060604@yahoo.com> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> Message-ID: <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> Larry Maloney wrote: > David Somayajulu wrote: > > Hi All, > > I would appreciate if you could let me know, how I can pass > configuration parameters to a device driver, which can be processed > during either probe() or attach() ? Is there a way to read them from a > conf file of some sort ? Basically, I am interested in setting some > tunable parameters during driver initialization, without needing to > recompile the driver every time. > > > > thanks > > david Somayajulu > > > > _______________________________________________ > > freebsd-drivers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > > To unsubscribe, send any mail to "freebsd-drivers- > unsubscribe@freebsd.org" > > > > > Isn't that what the hints file is for? Sorry, I am sort of new to FreeBSD. From what I understand /boot/device.hints gets read during boot time, the values cannot be changed by the user while the kernel is running - am I correct ? I have a loadable driver module and would like to do the following: 1. Set some tunable parameters of the driver. 2. Load the driver. Run a few tests. 3. Unload the driver. 4. repeat steps 1 thru 3. > > Larry > > -- > ============================== > Larry P. Maloney > CEO/CTO SoftNet Solutions > > Phone: 650-961-2315 > Web: www.softnetsolution.com From sam at freebsd.org Thu Jun 4 03:47:17 2009 From: sam at freebsd.org (Sam Leffler) Date: Thu Jun 4 03:47:23 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> Message-ID: <4A273F45.8050700@freebsd.org> David Somayajulu wrote: > Larry Maloney wrote: > >> David Somayajulu wrote: >> >>> Hi All, >>> I would appreciate if you could let me know, how I can pass >>> >> configuration parameters to a device driver, which can be processed >> during either probe() or attach() ? Is there a way to read them from a >> conf file of some sort ? Basically, I am interested in setting some >> tunable parameters during driver initialization, without needing to >> recompile the driver every time. >> loader(8) allows you to set tunable parameters before boot; this is equivalent to linux-style module parameters (mostly). Unfortunately I don't see anything in the man pages that documents them; check sys/sys/kernel.h for the details and/or loader(8). Sam From won.derick at yahoo.com Thu Jun 4 04:12:57 2009 From: won.derick at yahoo.com (Won De Erick) Date: Thu Jun 4 04:13:03 2009 Subject: What driver/NIC is using cxgb feature/s? Message-ID: <798432.42061.qm@web45803.mail.sp1.yahoo.com> Hello, I am just curious what driver/NIC is using cxgb msi tunable. I don't have a Chelsio NIC installed on the box. # sysctl -a | grep msi hw.bce.msi_enable: 1 hw.cxgb.msi_allowed: 2 hw.pci.honor_msi_blacklist: 1 hw.pci.enable_msix: 1 hw.pci.enable_msi: 1 Some relevant info: # uname -msrp FreeBSD 7.1-RELEASE-p5 amd64 amd64 # ifconfig bge0: flags=8843 metric 0 mtu 1500 options=9b ether 00:08:9b:bb:02:ff inet6 fe80::208:9bff:febb:2ff%bge0 prefixlen 64 scopeid 0x1 media: Ethernet autoselect (1000baseTX ) status: active bge1: flags=8843 metric 0 mtu 1500 options=9b ether 00:08:9b:bb:03:00 inet6 fe80::208:9bff:febb:300%bge1 prefixlen 64 scopeid 0x2 inet [removed] netmask 0xfffffff0 broadcast [removed] inet6 2001:418:5403:5000::1 prefixlen 52 inet [removed] netmask 0xffffffff broadcast [removed] media: Ethernet autoselect (1000baseTX ) status: active ste0: flags=8843 metric 0 mtu 1500 options=8 ether 00:05:5d:64:b0:0e inet6 fe80::205:5dff:fe64:b00e%ste0 prefixlen 64 scopeid 0x3 inet 10.2.62.62 netmask 0xfff00000 broadcast 10.15.255.255 inet6 2001:418:5403:2410:62:62:62:62 prefixlen 64 media: Ethernet autoselect (100baseTX ) status: active ste1: flags=8843 metric 0 mtu 1500 options=8 ether 00:05:5d:64:b0:0f inet6 fe80::205:5dff:fe64:b00f%ste1 prefixlen 64 scopeid 0x4 inet 10.255.255.1 netmask 0xffffff00 broadcast 10.255.255.255 media: Ethernet autoselect (100baseTX ) status: active ste2: flags=8802 metric 0 mtu 1500 options=8 ether 00:05:5d:64:b0:10 media: Ethernet autoselect (none) status: no carrier ste3: flags=8802 metric 0 mtu 1500 options=8 ether 00:05:5d:64:b0:11 media: Ethernet autoselect (none) status: no carrier pfsync0: flags=41 metric 0 mtu 1460 pfsync: syncdev: lo0 syncpeer: 224.0.0.240 maxupd: 128 pflog0: flags=100 metric 0 mtu 33160 lo0: flags=8049 metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff000000 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet6 ::1 prefixlen 128 enc0: flags=0<> metric 0 mtu 1536 gif0: flags=8051 metric 0 mtu 1280 tunnel inet 124.107.255.62 --> 204.2.248.1 inet6 2001:418:5403::c --> 2001:418:5403::a prefixlen 128 inet6 fe80::208:9bff:febb:2ff%gif0 prefixlen 64 scopeid 0xc vlan3800: flags=8843 metric 0 mtu options=3 ether 00:08:9b:bb:02:ff inet6 fe80::208:9bff:febb:2ff%vlan3800 prefixlen 64 scopeid 0xb inet 124.107.255.62 netmask 0xfffffffc broadcast 124.107.255.63 media: Ethernet autoselect (1000baseTX ) status: active vlan: 3800 parent interface: bge0 Thanks! Won From marc.loerner at hob.de Thu Jun 4 06:58:03 2009 From: marc.loerner at hob.de (Marc Loerner) Date: Thu Jun 4 06:58:14 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> Message-ID: <200906040822.41153.marc.loerner@hob.de> Am Donnerstag 04 Juni 2009 04:27:25 schrieb David Somayajulu: > Larry Maloney wrote: > > David Somayajulu wrote: > > > Hi All, > > > I would appreciate if you could let me know, how I can pass > > > > configuration parameters to a device driver, which can be processed > > during either probe() or attach() ? Is there a way to read them from a > > conf file of some sort ? Basically, I am interested in setting some > > tunable parameters during driver initialization, without needing to > > recompile the driver every time. > > > > > thanks > > > david Somayajulu > > > > > > _______________________________________________ > > > freebsd-drivers@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > > > To unsubscribe, send any mail to "freebsd-drivers- > > > > unsubscribe@freebsd.org" > > > > > > Isn't that what the hints file is for? > > Sorry, I am sort of new to FreeBSD. From what I understand > /boot/device.hints gets read during boot time, the values cannot be changed > by the user while the kernel is running - am I correct ? > > I have a loadable driver module and would like to do the following: > 1. Set some tunable parameters of the driver. > 2. Load the driver. Run a few tests. > 3. Unload the driver. > 4. repeat steps 1 thru 3. > I think exactly what you search is sysctls. There you have tunables to change at runtime Regards, Marc > > Larry > > > > -- > > ============================== > > Larry P. Maloney > > CEO/CTO SoftNet Solutions > > > > Phone: 650-961-2315 > > Web: www.softnetsolution.com > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" From imp at bsdimp.com Thu Jun 4 06:58:03 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Thu Jun 4 06:58:15 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> Message-ID: <20090604.005723.1179135550.imp@bsdimp.com> In message: <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> David Somayajulu writes: : : : Larry Maloney wrote: : > David Somayajulu wrote: : > > Hi All, : > > I would appreciate if you could let me know, how I can pass : > configuration parameters to a device driver, which can be processed : > during either probe() or attach() ? Is there a way to read them from a : > conf file of some sort ? Basically, I am interested in setting some : > tunable parameters during driver initialization, without needing to : > recompile the driver every time. : > > : > > thanks : > > david Somayajulu : > > : > > _______________________________________________ : > > freebsd-drivers@freebsd.org mailing list : > > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers : > > To unsubscribe, send any mail to "freebsd-drivers- : > unsubscribe@freebsd.org" : > > : > > : > Isn't that what the hints file is for? : : Sorry, I am sort of new to FreeBSD. From what I understand /boot/device.hints gets read during boot time, the values cannot be changed by the user while the kernel is running - am I correct ? : : I have a loadable driver module and would like to do the following: : 1. Set some tunable parameters of the driver. : 2. Load the driver. Run a few tests. : 3. Unload the driver. : 4. repeat steps 1 thru 3. kenv can set hints. Hints are properly retrieved with things like resource_int_value. prefer_iomap = 0; resource_int_value(device_get_name(dev), device_get_unit(dev), "prefer_iomap", &prefer_iomap); would look for the hint "hints...prefer_iomap" and return the value if it finds it. Warner From imp at bsdimp.com Thu Jun 4 07:02:07 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Thu Jun 4 07:02:13 2009 Subject: What driver/NIC is using cxgb feature/s? In-Reply-To: <798432.42061.qm@web45803.mail.sp1.yahoo.com> References: <798432.42061.qm@web45803.mail.sp1.yahoo.com> Message-ID: <20090604.010024.502288660.imp@bsdimp.com> In message: <798432.42061.qm@web45803.mail.sp1.yahoo.com> Won De Erick writes: : I am just curious what driver/NIC is using cxgb msi tunable. I don't have a Chelsio NIC installed on the box. cxgb is using it. : # sysctl -a | grep msi : hw.bce.msi_enable: 1 : hw.cxgb.msi_allowed: 2 : hw.pci.honor_msi_blacklist: 1 : hw.pci.enable_msix: 1 : hw.pci.enable_msi: 1 This just means that if you had a cxgb device, the hints are suggesting you use it. If you don't have one, then nothing will happen. You get this because you have cxgb compiled into the kernel, or loaded as a module. Warner From imp at bsdimp.com Thu Jun 4 07:19:04 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Thu Jun 4 07:20:34 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <200906040822.41153.marc.loerner@hob.de> References: <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> <200906040822.41153.marc.loerner@hob.de> Message-ID: <20090604.011758.87764865.imp@bsdimp.com> In message: <200906040822.41153.marc.loerner@hob.de> Marc Loerner writes: : Am Donnerstag 04 Juni 2009 04:27:25 schrieb David Somayajulu: : > Larry Maloney wrote: : > > David Somayajulu wrote: : > > > Hi All, : > > > I would appreciate if you could let me know, how I can pass : > > : > > configuration parameters to a device driver, which can be processed : > > during either probe() or attach() ? Is there a way to read them from a : > > conf file of some sort ? Basically, I am interested in setting some : > > tunable parameters during driver initialization, without needing to : > > recompile the driver every time. : > > : > > > thanks : > > > david Somayajulu : > > > : > > > _______________________________________________ : > > > freebsd-drivers@freebsd.org mailing list : > > > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers : > > > To unsubscribe, send any mail to "freebsd-drivers- : > > : > > unsubscribe@freebsd.org" : > > : > > : > > Isn't that what the hints file is for? : > : > Sorry, I am sort of new to FreeBSD. From what I understand : > /boot/device.hints gets read during boot time, the values cannot be changed : > by the user while the kernel is running - am I correct ? : > : > I have a loadable driver module and would like to do the following: : > 1. Set some tunable parameters of the driver. : > 2. Load the driver. Run a few tests. : > 3. Unload the driver. : > 4. repeat steps 1 thru 3. : > : : I think exactly what you search is sysctls. There you have tunables to change : at runtime It depends a lot on how the sysctl/tunable is used/set. If you are using pure hints, then you need to use the kenv method I talked about. If you are using a more general tunable (eg hw.DRIVERNAME.rx_buffers, say), then that can be set at runtime, and there's hooks into the driver that allow it to react to the new value. This can be a better choice than hints, but is a little harder to code up. But the different isn't that huge... Warner From volker at vwsoft.com Thu Jun 4 11:35:34 2009 From: volker at vwsoft.com (Volker) Date: Thu Jun 4 11:35:42 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> Message-ID: <4A2759F2.7070007@vwsoft.com> On 06/04/09 03:48, David Somayajulu wrote: > Hi All, > I would appreciate if you could let me know, how I can pass configuration parameters to a device driver, which can be processed during either probe() or attach() ? Is there a way to read them from a conf file of some sort ? Basically, I am interested in setting some tunable parameters during driver initialization, without needing to recompile the driver every time. > David, you may want to look up the kernel sources for TUNEABLE_XXX() macros. Volker From david.somayajulu at qlogic.com Thu Jun 4 19:13:43 2009 From: david.somayajulu at qlogic.com (David Somayajulu) Date: Thu Jun 4 19:13:51 2009 Subject: How do I pass configuration parameters to a FreeBSD Device Driver ? In-Reply-To: <20090604.005723.1179135550.imp@bsdimp.com> References: <75E1A2A7D185F841A975979B0906BBA65A4D0C658A@AVEXMB1.qlogic.org> <4A272BF7.8060604@yahoo.com> <75E1A2A7D185F841A975979B0906BBA65A4D0C6595@AVEXMB1.qlogic.org> <20090604.005723.1179135550.imp@bsdimp.com> Message-ID: <75E1A2A7D185F841A975979B0906BBA65A4D0C663A@AVEXMB1.qlogic.org> M. Warner Losh wrote: > : I have a loadable driver module and would like to do the following: > : 1. Set some tunable parameters of the driver. > : 2. Load the driver. Run a few tests. > : 3. Unload the driver. > : 4. repeat steps 1 thru 3. > > kenv can set hints. > > Hints are properly retrieved with things like resource_int_value. > > prefer_iomap = 0; > resource_int_value(device_get_name(dev), device_get_unit(dev), > "prefer_iomap", &prefer_iomap); > > would look for the hint "hints...prefer_iomap" and > return the value if it finds it. > > Warner Thanks a lot. This is exactly what I need. Appreciate everyone's responses. thanks david S. From aric.shipley at gmail.com Thu Jun 4 19:24:09 2009 From: aric.shipley at gmail.com (AJ Shipley) Date: Thu Jun 4 19:24:15 2009 Subject: Kernel Loadable Driver vs. Custom Compiled Driver Question Message-ID: Hi, I am in the process of integrating a 3rd party HW vendor?s driver into our FreeBSD code base. The driver works when it is loaded as a KLM using kldload ?v but when I modified the kernel using config and compiled the driver into the kernel, it does not work. The kernel builds and installs fine, but the driver does not load correctly. I was able to verify that the first 10 steps of the driver works during load in both cases and that the driver is loading the device into the same PCI memory range (it?s a PCI based HW card). However, at a critical step in the driver, it polls an ISR register waiting for a bit to toggle high indicating that the board is ready and out of reset and it never does, and eventually hits the driver timeout and aborts its load. Why would a driver work as a KLM but not statically compiled into the kernel? Thanks AJ Shipley From onemda at gmail.com Thu Jun 4 20:37:40 2009 From: onemda at gmail.com (Paul B. Mahol) Date: Thu Jun 4 20:38:05 2009 Subject: Kernel Loadable Driver vs. Custom Compiled Driver Question In-Reply-To: References: Message-ID: <3a142e750906041314o5666cfc5ibe93b1810e1b825@mail.gmail.com> On 6/4/09, AJ Shipley wrote: > Hi, > > I am in the process of integrating a 3rd party HW vendor's driver into > our FreeBSD code base. The driver works when it is loaded as a KLM > using kldload -v but when I modified the kernel using > config and compiled the driver into the kernel, it does not work. The > kernel builds and installs fine, but the driver does not load > correctly. > > I was able to verify that the first 10 steps of the driver works > during load in both cases and that the driver is loading the device > into the same PCI memory range (it's a PCI based HW card). However, > at a critical step in the driver, it polls an ISR register waiting for > a bit to toggle high indicating that the board is ready and out of > reset and it never does, and eventually hits the driver timeout and > aborts its load. > > Why would a driver work as a KLM but not statically compiled into the > kernel? Races? -- Paul From ericd at free.fr Fri Jun 5 10:12:19 2009 From: ericd at free.fr (Eric) Date: Fri Jun 5 10:12:58 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell Message-ID: <5E42C46B1EB84E55963EC55EF515B4A0@PCdeEricDHEM> Hi, Does any one find solution to this problem as we have same, try a proposed patch but still have problem and don't find anywhere the solution? Regards, Eric. From ericd at free.fr Fri Jun 5 10:20:28 2009 From: ericd at free.fr (Eric) Date: Fri Jun 5 10:20:37 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell Message-ID: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> Hi, Does any one find solution to this problem as we have same, try a proposed patch but still have problem? Regards, Eric. From ericd at free.fr Fri Jun 5 10:32:47 2009 From: ericd at free.fr (Eric) Date: Fri Jun 5 10:32:54 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> References: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> Message-ID: I mean : I have a dell R710 with four : bce: To: Sent: Friday, June 05, 2009 12:19 PM Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell Hi, Does any one find solution to this problem as we have same, try a proposed patch but still have problem? Regards, Eric. _______________________________________________ freebsd-drivers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-drivers To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" From jhb at freebsd.org Fri Jun 5 13:55:07 2009 From: jhb at freebsd.org (John Baldwin) Date: Fri Jun 5 13:55:14 2009 Subject: Kernel Loadable Driver vs. Custom Compiled Driver Question In-Reply-To: References: Message-ID: <200906050836.04538.jhb@freebsd.org> On Thursday 04 June 2009 3:02:30 pm AJ Shipley wrote: > Hi, > > I am in the process of integrating a 3rd party HW vendor?s driver into > our FreeBSD code base. The driver works when it is loaded as a KLM > using kldload ?v but when I modified the kernel using > config and compiled the driver into the kernel, it does not work. The > kernel builds and installs fine, but the driver does not load > correctly. > > I was able to verify that the first 10 steps of the driver works > during load in both cases and that the driver is loading the device > into the same PCI memory range (it?s a PCI based HW card). However, > at a critical step in the driver, it polls an ISR register waiting for > a bit to toggle high indicating that the board is ready and out of > reset and it never does, and eventually hits the driver timeout and > aborts its load. > > Why would a driver work as a KLM but not statically compiled into the kernel? Are you depending on working interrupts? If so, you will need to defer that work using config_intrhook(9). -- John Baldwin From cpardo at fastsoft.com Fri Jun 5 18:09:54 2009 From: cpardo at fastsoft.com (Carlos Pardo) Date: Fri Jun 5 18:10:07 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: References: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> Message-ID: Eric, We made the driver a loadable module and it seems to work. It is a temporary workaround. -----Original Message----- From: owner-freebsd-drivers@freebsd.org [mailto:owner-freebsd-drivers@freebsd.org] On Behalf Of Eric Sent: Friday, June 05, 2009 3:32 AM To: freebsd-drivers@freebsd.org Subject: Re: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell I mean : I have a dell R710 with four : bce: To: Sent: Friday, June 05, 2009 12:19 PM Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell Hi, Does any one find solution to this problem as we have same, try a proposed patch but still have problem? Regards, Eric. _______________________________________________ freebsd-drivers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-drivers To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" _______________________________________________ freebsd-drivers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-drivers To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" From ericd at free.fr Mon Jun 8 16:12:31 2009 From: ericd at free.fr (Eric) Date: Mon Jun 8 16:12:38 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: References: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> Message-ID: <963E46D314FF43B29DA5F02F6CFEE7EF@PCdeEricDHEM> Thanks for your answer Carlos. I try to do same but still doesn't have network after hot reboot and still have message: bce0: /usr/src/sys/modules/bce/../../dev/bce/if_bce.c(1386); Unable to write CTX.... Here is what I do : - get back source from dvd - Remove MII and bce from my kernel configuration file - make new kernel (make buildkernel) - install new kernel ( make installkernel) - add yes to if_bce on loader.conf - do make then make install on "/usr/src/sys/modules/bce" halt system; shutdown power; boot=> ok Reboot => unable to wriet ctx.... ;=( Any Idea of what to do to make it work? My config is : DELL R710 with Freebsd 7.2 AMD64 Release. Thanks for your help. Eric. ----- Original Message ----- From: "Carlos Pardo" To: "Eric" ; Sent: Friday, June 05, 2009 8:09 PM Subject: RE: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell Eric, We made the driver a loadable module and it seems to work. It is a temporary workaround. -----Original Message----- From: owner-freebsd-drivers@freebsd.org [mailto:owner-freebsd-drivers@freebsd.org] On Behalf Of Eric Sent: Friday, June 05, 2009 3:32 AM To: freebsd-drivers@freebsd.org Subject: Re: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell I mean : I have a dell R710 with four : bce: To: Sent: Friday, June 05, 2009 12:19 PM Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell Hi, Does any one find solution to this problem as we have same, try a proposed patch but still have problem? Regards, Eric. _______________________________________________ freebsd-drivers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-drivers To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" _______________________________________________ freebsd-drivers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-drivers To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" From delphij at delphij.net Mon Jun 8 18:17:42 2009 From: delphij at delphij.net (Xin LI) Date: Mon Jun 8 18:17:53 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: <963E46D314FF43B29DA5F02F6CFEE7EF@PCdeEricDHEM> References: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> <963E46D314FF43B29DA5F02F6CFEE7EF@PCdeEricDHEM> Message-ID: <4A2D5575.4070901@delphij.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric wrote: > Does any one find solution to this problem as we have same, try a > proposed > patch but still have problem? Did you tried my driver backport or the latest 7-STABLE? http://lists.freebsd.org/pipermail/freebsd-stable/2009-June/050489.html Note that if you may have to rebuild the kernel if your miibus and/or bce is compiled into kernel which is the usual case. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkotVXUACgkQi+vbBBjt66BUHgCeJa1J/N75nE2p3mVLdslpP1en wR8An09WcVBXoGNCtEsUjNsNRRrH7SvN =etha -----END PGP SIGNATURE----- From ericd at free.fr Tue Jun 9 10:17:47 2009 From: ericd at free.fr (Eric) Date: Tue Jun 9 10:18:56 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: <4A2D5575.4070901@delphij.net> References: <7758B5F61AA742B1B52EB2682F090282@PCdeEricDHEM> <963E46D314FF43B29DA5F02F6CFEE7EF@PCdeEricDHEM> <4A2D5575.4070901@delphij.net> Message-ID: Yes, I try as a module or as static but unfortunatly with same result. ;=( I also try to change all settings on bios or on managment firmware of the nic but same result. ;=( I try to run Dos diagnostic software to disable the managment firmware but as I'm on AMD64 I can't run dos emulator "doscmd" and server is now on a far datacenter... ;=( ----- Original Message ----- From: "Xin LI" To: "Eric" Cc: "Carlos Pardo" ; Sent: Monday, June 08, 2009 8:16 PM Subject: Re: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Eric wrote: >> Does any one find solution to this problem as we have same, try a >> proposed >> patch but still have problem? > > Did you tried my driver backport or the latest 7-STABLE? > > http://lists.freebsd.org/pipermail/freebsd-stable/2009-June/050489.html > > Note that if you may have to rebuild the kernel if your miibus and/or > bce is compiled into kernel which is the usual case. > > Cheers, > - -- > Xin LI http://www.delphij.net/ > FreeBSD - The Power to Serve! > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.11 (FreeBSD) > > iEYEARECAAYFAkotVXUACgkQi+vbBBjt66BUHgCeJa1J/N75nE2p3mVLdslpP1en > wR8An09WcVBXoGNCtEsUjNsNRRrH7SvN > =etha > -----END PGP SIGNATURE----- > From bo.coopci at i-waihui.com Wed Jun 10 10:38:51 2009 From: bo.coopci at i-waihui.com (cooper) Date: Wed Jun 10 10:38:57 2009 Subject: how to write a block driver Message-ID: <4A2F85CE.3030306@gmail.com> There are a lot of examples about how to write a charactor device, I didn't find one about block device( or in moden word, a disk device? ) Is there a tutorial about it? From unixmania at gmail.com Wed Jun 10 12:35:30 2009 From: unixmania at gmail.com (Carlos A. M. dos Santos) Date: Wed Jun 10 12:35:37 2009 Subject: how to write a block driver In-Reply-To: <4A2F85CE.3030306@gmail.com> References: <4A2F85CE.3030306@gmail.com> Message-ID: 2009/6/10 cooper : > There are a lot of examples about how to write a charactor device, I > didn't find one about block device( or in moden word, a disk device? ) > Is there a tutorial about it? There are no block devices in FreeBSD since a long time ago: http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html -- My preferred quotation of Robert Louis Stevenson is "You cannot make an omelette without breaking eggs". Not because I like the omelettes, but because I like the sound of eggs being broken. From dejamuse at yahoo.com Thu Jun 11 20:17:14 2009 From: dejamuse at yahoo.com (Jeff) Date: Thu Jun 11 20:17:21 2009 Subject: Realtek 8111C LAN chip status? Message-ID: <708306.80677.qm@web62507.mail.re1.yahoo.com> Hi, I would like to use the Asus P6T motherboard with PCBSD (FBSD 7.2) but not sure if the LAN device is supported.? According to the MAN page for the re(4) driver it's not.? The P6T has a Realtek 8111C chip.? The re(4) MAN page lists a similar device, the 8111S but I'm not sure if that covers the C device too. I Googled around and found some information that suggested the 7.2 release does support the C chip but it's not completely clear. Is the MAN page just out of date and the Realtek 8111C LAN chip is supported? If not, how can I fix this short of buying another NIC card? Tnx, Jeff From pyunyh at gmail.com Fri Jun 12 01:01:48 2009 From: pyunyh at gmail.com (Pyun YongHyeon) Date: Fri Jun 12 01:01:54 2009 Subject: Realtek 8111C LAN chip status? In-Reply-To: <708306.80677.qm@web62507.mail.re1.yahoo.com> References: <708306.80677.qm@web62507.mail.re1.yahoo.com> Message-ID: <20090612003809.GA72855@michelle.cdnetworks.co.kr> On Thu, Jun 11, 2009 at 12:50:33PM -0700, Jeff wrote: > Hi, > > I would like to use the Asus P6T motherboard with PCBSD (FBSD 7.2) but not sure if the LAN device is supported.? According to the MAN page for the re(4) driver it's not.? The P6T has a Realtek 8111C chip.? > > The re(4) MAN page lists a similar device, the 8111S but I'm not sure if that covers the C device too. > > I Googled around and found some information that suggested the 7.2 release does support the C chip but it's not completely clear. > > Is the MAN page just out of date and the Realtek 8111C LAN chip is supported? > I guess man page needs more cleanups for newer controllers. Your RTL8111C controller should work out of the box with 7.2-RELEASE. > If not, how can I fix this short of buying another NIC card? > > Tnx, Jeff From davidch at broadcom.com Tue Jun 16 01:48:03 2009 From: davidch at broadcom.com (David Christensen) Date: Tue Jun 16 01:48:10 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: <5E42C46B1EB84E55963EC55EF515B4A0@PCdeEricDHEM> References: <5E42C46B1EB84E55963EC55EF515B4A0@PCdeEricDHEM> Message-ID: <5D267A3F22FD854F8F48B3D2B523819339EBCC774C@IRVEXCHCCR01.corp.ad.broadcom.com> > Does any one find solution to this problem as we have same, > try a proposed patch but still have problem and don't find > anywhere the solution? I've worked with a few people off list and it seems there is an issue with the way the management firmware loaded on the 5709C enables packet reception before the FreeBSD driver has an opportunity to load. I haven't been able to find a driver only workaround that works with the "production" firmware on the Dell systems. (I don't have any reason to believe this issue is limited to just the Dell systems but I simply haven't been able to test I on other systems yet.) The only reliable workaround at present is to disable the management firmware on the 5709C. You should have a DOS based "uxdiag.exe" utility on the driver disks you recevied from Dell. If you run the commands "C:\>uxdiag.exe -c 1 -mfw 0" "C:\>uxdiag.exe -c 1 -mfw 0" You will disable the management firmware on both devices. I have tested an unreleased version of firmware which does seem reliably resolve the problem but we could be a month on more away from releasing it. Dave From ericd at free.fr Tue Jun 16 10:09:13 2009 From: ericd at free.fr (Eric) Date: Tue Jun 16 10:09:19 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: <5D267A3F22FD854F8F48B3D2B523819339EBCC774C@IRVEXCHCCR01.corp.ad.broadcom.com> References: <5E42C46B1EB84E55963EC55EF515B4A0@PCdeEricDHEM> <5D267A3F22FD854F8F48B3D2B523819339EBCC774C@IRVEXCHCCR01.corp.ad.broadcom.com> Message-ID: Thanks David. If it may help other : a bootable iso image of cdrom with tools is available here : http://www.broadcom.com/support/ethernet_nic/driver-sla.php?driver=NX2-diag Having someone going to datacenter tomorrow and then let you know result. ;=) Have a nice day. Eric. ----- Original Message ----- From: "David Christensen" To: "Eric" ; Sent: Tuesday, June 16, 2009 3:47 AM Subject: RE: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell > Does any one find solution to this problem as we have same, > try a proposed patch but still have problem and don't find > anywhere the solution? I've worked with a few people off list and it seems there is an issue with the way the management firmware loaded on the 5709C enables packet reception before the FreeBSD driver has an opportunity to load. I haven't been able to find a driver only workaround that works with the "production" firmware on the Dell systems. (I don't have any reason to believe this issue is limited to just the Dell systems but I simply haven't been able to test I on other systems yet.) The only reliable workaround at present is to disable the management firmware on the 5709C. You should have a DOS based "uxdiag.exe" utility on the driver disks you recevied from Dell. If you run the commands "C:\>uxdiag.exe -c 1 -mfw 0" "C:\>uxdiag.exe -c 1 -mfw 0" You will disable the management firmware on both devices. I have tested an unreleased version of firmware which does seem reliably resolve the problem but we could be a month on more away from releasing it. Dave From ericd at free.fr Thu Jun 18 18:34:06 2009 From: ericd at free.fr (Eric) Date: Thu Jun 18 18:34:13 2009 Subject: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell In-Reply-To: References: <5E42C46B1EB84E55963EC55EF515B4A0@PCdeEricDHEM><5D267A3F22FD854F8F48B3D2B523819339EBCC774C@IRVEXCHCCR01.corp.ad.broadcom.com> Message-ID: Thanks a lot it's the solution. ;=) Here is procedure : Make a bootable crdom with this image : http://www.broadcom.com/support/ethernet_nic/driver-sla.php?driver=NX2-diag Boot with this cdrom At boot prompt : click enter to continue Then : select 1 Install to hardisk using Freedos Setup (d'ont worry it do nothing until you make good choice to second next step) Then : Press enter to select English Then : VERY IMPORTANT : Run freedos from cdrom Then disable the managment firmware on both cards : >cd nx2 >uxdiag -c 1 -mfw 0 >uxdiag -c 2 -mfw 0 If you have Idrac, at first reboot you lost it but then reboot and do a cancel servicices and at next reboot it will be back there. Then Enjoy. ;=) Eric. N.B : - If you want in future enable back managment firmware do same thing but at the end with : >uxdiag -c 1 -mfw 1 - I try to disable managment in only one card but it doesn't work. Need to disable it in 2 cards. - Thanks to DELL that made new server ( R710) wich take near than 6 minutes to boot !!!! It take me near 4 hours to do those manipulation !!!! ----- Original Message ----- From: "Eric" To: "David Christensen" ; Sent: Tuesday, June 16, 2009 12:09 PM Subject: Re: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and Dell > Thanks David. > If it may help other : a bootable iso image of cdrom with tools is > available here : > http://www.broadcom.com/support/ethernet_nic/driver-sla.php?driver=NX2-diag > > Having someone going to datacenter tomorrow and then let you know result. > ;=) > > Have a nice day. > > Eric. > > > ----- Original Message ----- > From: "David Christensen" > To: "Eric" ; > Sent: Tuesday, June 16, 2009 3:47 AM > Subject: RE: Broadcom NetXtreme II BCM5709 Gigabit Ethernet Dell 610 and > Dell > > >> Does any one find solution to this problem as we have same, >> try a proposed patch but still have problem and don't find >> anywhere the solution? > > I've worked with a few people off list and it seems there is an > issue with the way the management firmware loaded on the 5709C > enables packet reception before the FreeBSD driver has an > opportunity to load. I haven't been able to find a driver only > workaround that works with the "production" firmware on the Dell > systems. (I don't have any reason to believe this issue is > limited to just the Dell systems but I simply haven't been able > to test I on other systems yet.) The only reliable workaround > at present is to disable the management firmware on the 5709C. > You should have a DOS based "uxdiag.exe" utility on the driver > disks you recevied from Dell. If you run the commands > > "C:\>uxdiag.exe -c 1 -mfw 0" > "C:\>uxdiag.exe -c 1 -mfw 0" > > You will disable the management firmware on both devices. > I have tested an unreleased version of firmware which does seem > reliably resolve the problem but we could be a month on more > away from releasing it. > > Dave > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" > From pg at 2lazy.ru Sat Jun 20 20:46:11 2009 From: pg at 2lazy.ru (Pavel Gubin) Date: Sat Jun 20 20:46:18 2009 Subject: Wireless, Realtek RTL8185L-based PCI adapter. Message-ID: <4A3D43AF.7060009@2lazy.ru> Hi All, Recently I've got 802.11b/g adapter TL-WN353GD from TP-Link, based on Realtek RTL8185L chip. Seems that there is no support for it in FreeBSD yet, but there are some mentionings about 8185 in /sys/dev/usb/wlan/if_urtw*. Also, Realtek has a Linux driver for it, and this driver is partly based on NetBSD's if_rtw driver for RTL8180 (which seems to be 802.11a/b predecessor of 8185). So, I'm wondering - does someone work already on a driver for this chip, or maybe I should try to write a driver myself? Thanks, -- Pavel Gubin Jabber: xmpp:pg@2lazy.ru / Phone +79218959055 / sip:pg@2lazy.ru From realliukai at gmail.com Mon Jun 22 03:11:29 2009 From: realliukai at gmail.com (=?GB2312?B?wfW/rQ==?=) Date: Mon Jun 22 03:11:36 2009 Subject: Wireless,Atheros AR5008-based PCI adapter,mode 11n Message-ID: <7237120a0906211950t5a76e6eaq93e8a6437ca185fa@mail.gmail.com> Hi All, Recently I've got 802.11b/g adapter TL-WN353GD from TP-Link, based on Atheros AR5008 chip.It's a 802.11n NIC. I can make it work in mode 11g in stead of 11n with the FreeBSD 8.0 current. So,I have a question that whether there is support for 802.11n in FreeBSD 8.0 current yet. And if It support 802.11n, how can I config the parameters to make it work in mode 11n. Thanks, -- Kevin From weongyo.jeong at gmail.com Mon Jun 22 04:54:51 2009 From: weongyo.jeong at gmail.com (Weongyo Jeong) Date: Mon Jun 22 04:54:57 2009 Subject: Wireless, Realtek RTL8185L-based PCI adapter. In-Reply-To: <4A3D43AF.7060009@2lazy.ru> References: <4A3D43AF.7060009@2lazy.ru> Message-ID: <20090622043224.GC31161@weongyo.cdnetworks.kr> On Sun, Jun 21, 2009 at 12:16:47AM +0400, Pavel Gubin wrote: > Hi All, > > Recently I've got 802.11b/g adapter TL-WN353GD from TP-Link, based on > Realtek RTL8185L chip. > > Seems that there is no support for it in FreeBSD yet, but there are some > mentionings about 8185 in /sys/dev/usb/wlan/if_urtw*. Also, Realtek has > a Linux driver for it, and this driver is partly based on NetBSD's > if_rtw driver for RTL8180 (which seems to be 802.11a/b predecessor of 8185). > > So, I'm wondering - does someone work already on a driver for this chip, > or maybe I should try to write a driver myself? As far as I know, there's no one to work on it. regards, Weongyo Jeong From on at cs.ait.ac.th Thu Jun 25 03:36:00 2009 From: on at cs.ait.ac.th (Olivier Nicole) Date: Thu Jun 25 03:36:07 2009 Subject: Port Multiplier Message-ID: <200906250314.n5P3Eehe002119@banyan.cs.ait.ac.th> Hi, Is port multiplier supported in FreeBSD 7.2 RELENG? I want to build a cheap storage for backup, with SiI3124 card (or another cheap card with PCI/PCI-X). Best regards, Olivier From mav at mavhome.dp.ua Fri Jun 26 07:34:10 2009 From: mav at mavhome.dp.ua (Alexander Motin) Date: Fri Jun 26 07:34:18 2009 Subject: Port Multiplier In-Reply-To: <1245914580.00131786.1245901202@10.7.7.3> References: <1245914580.00131786.1245901202@10.7.7.3> Message-ID: <4A446BDB.5070201@mavhome.dp.ua> Olivier Nicole wrote: > Is port multiplier supported in FreeBSD 7.2 RELENG? No, it is only supported in 8-CURRENT now. > I want to build a cheap storage for backup, with SiI3124 card (or > another cheap card with PCI/PCI-X). Not so much cards are supporting FIS Based Switching technology (and none of FreeBSD SATA drivers at this moment) needed to operate drives beyond PM in parallel. So you will not obtain any performance benefit from having several drives connected to the same controller channel, just an additional capacity. -- Alexander Motin From deepak.katagade at gmail.com Sat Jun 27 06:39:06 2009 From: deepak.katagade at gmail.com (Deepak Madhusudan) Date: Sat Jun 27 06:39:13 2009 Subject: How to get SystemMemorySize? Message-ID: <6f0f8ee70906262308y20968e22h249ec4a2535851ee@mail.gmail.com> Hi All, In linux driver in order to get the system memory size we can get it using the following call. struct sysinfo si; si_meminfo(&si); return (si.tatotalram); Is there any similar call in freebsd to get the following information.Currently i am using freebsd 6.3.Please let me know. Thanks and regards, Deepak