From onemda at gmail.com Wed Sep 2 09:16:07 2009 From: onemda at gmail.com (Paul B. Mahol) Date: Wed Sep 2 09:16:13 2009 Subject: introducing a FreeBSD driver for the Apple Touchpad; and a few questions.. In-Reply-To: <426bed110908191416q35cf8613ue912b741d6285f1c@mail.gmail.com> References: <426bed110908190616m21d39e9bm95a60f624b831418@mail.gmail.com> <20090819194426.3bf401d9@baby-jane.lamaiziere.net> <426bed110908191416q35cf8613ue912b741d6285f1c@mail.gmail.com> Message-ID: <3a142e750909020155t584be8fck34596e715f4a466c@mail.gmail.com> On 8/19/09, Rohit Grover wrote: > On Thu, Aug 20, 2009 at 1:44 AM, Patrick Lamaiziere > wrote: > >> Le Wed, 19 Aug 2009 21:16:06 +0800, >> Rohit Grover a ?crit : >> >> > I have developed a driver for the Touchpad device on Apple Macbooks. >> > Mine is a Macbook 3,1, and I run FreeBSD7.2 >> >> Cool! Shall it work on a MacBookPro 3,1? > > > Please give it a try. The number of Y sensors on a MacBookPro might be > different. On my MacBook, I've got 20 X sensors and 10 Y sensors; but that > is with a mouse-button at the bottom of the touch-sensitive area. The button > has been replaced with additional touchpad surface in the MacBookPro. So it > will require a bit of experimentation, and even some reverse-engineering. > The key to interpreting data from the device is atp_read_sensors(). That > might have to change to support newer models. > > If someone is willing to contribute with testing, I can create a version of > the driver which logs additional detail to help us with the reverse > engineering. > > >> Do you plan a version to the new usb stack on 8.0? >> > > Certainly. I can't yet run 8.0 on my MacBook. ACPI panics the kernel right > at the beginning of boot, and even if I disable ACPI, the kernel is still > unable to mount the root partition. I have tried compiling my driver against > 8.0, and I see that I will need to adapt to the new USB stack. I'm very keen > on moving to 8.0 once it can boot on my laptop. I'd be happy to maintain > support for multiple versions of FreeBSD. > > >> >> > For my algorithms, I would like to allocate memory dynamically out of >> > a small pool of fixed sized structures. I have read a bit about UMA; >> > is UMA a good alternative for managing a small pool (~20) of buffers >> > (of around 20 bytes in size)? >> >> I'm not sure for this, IMHO UMA does not care about the size of the >> buffers, and malloc uses UMA for the allocation. >> > > But is UMA a very heavy-weight approach to managing a small pool of fixed > sized buffers whose total footprint is under 512 bytes? > > >> I've read a bit the source, you should not use spl on 7.x, they are >> no-ops. Instead use some mutexes. And you should not use the giant lock. >> > > Thanks for pointing this out. I will research the use of SMP primitives. The > 'ums' driver, which is what I am replacing, also uses splx(). Could you tell > me which giant lock I am using in my code? Is there any documentation I can > refer to for SMP synchronization under FreeBSD? mutex(9) > regards, > Rohit. > _______________________________________________ > 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" > -- Paul From h8msft at gmail.com Fri Sep 18 14:23:41 2009 From: h8msft at gmail.com (Bob McClure) Date: Fri Sep 18 14:23:48 2009 Subject: BCM5709S ethernet adapter driver. Message-ID: Greetings Driver Experts. I am trying to find out if anyone is working on adding driver support for a Broadcom BCM5709S Ethernet adapter on FreeBSD. I will have the opportunity to migrate some of my servers to IBM LS42 Blade servers. I am told this is the only adapter available, so selecting another interface at least at this point is not an option. Any input will be greatly appreciated. Thanks for you assistance. Bob McClure From jhb at FreeBSD.org Sat Sep 19 08:07:19 2009 From: jhb at FreeBSD.org (John Baldwin) Date: Sat Sep 19 08:07:26 2009 Subject: BCM5709S ethernet adapter driver. In-Reply-To: References: Message-ID: <4AB49138.4090206@FreeBSD.org> Bob McClure wrote: > Greetings Driver Experts. > > I am trying to find out if anyone is working on adding driver support for > a Broadcom BCM5709S Ethernet adapter on FreeBSD. > > > I will have the opportunity to migrate some of my servers to IBM LS42 Blade > servers. I am told this is the only > > adapter available, so selecting another interface at least at this point is > not an option. > > > Any input will be greatly appreciated. A patch was recently posted to the lists from the forums I believe and marius@ was going to review it when he gets some time. I believe the patch was reported as working for both 7 and 8. I think it was posted to hackers@ IIRC. -- John Baldwin From imp at bsdimp.com Sat Sep 19 15:57:33 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Sep 19 15:57:44 2009 Subject: BCM5709S ethernet adapter driver. In-Reply-To: <4AB49138.4090206@FreeBSD.org> References: <4AB49138.4090206@FreeBSD.org> Message-ID: <20090919.095624.-1408366588.imp@bsdimp.com> In message: <4AB49138.4090206@FreeBSD.org> John Baldwin writes: : Bob McClure wrote: : > Greetings Driver Experts. : > : > I am trying to find out if anyone is working on adding driver support for : > a Broadcom BCM5709S Ethernet adapter on FreeBSD. : > : > : > I will have the opportunity to migrate some of my servers to IBM LS42 Blade : > servers. I am told this is the only : > : > adapter available, so selecting another interface at least at this point is : > not an option. : > : > : > Any input will be greatly appreciated. : : A patch was recently posted to the lists from the forums I believe and : marius@ was going to review it when he gets some time. I believe the : patch was reported as working for both 7 and 8. I think it was posted : to hackers@ IIRC. Yes. Sam and I have reviewed the patches as well, and there's problems with them. While they appear to work, they are frobbing bits that shouldn't need to be frobbed relating to receiving beacons (effectively putting the card into promiscuous mode, iirc), which will have a performance problem. This is why I've not just pushed the patches into the tree... Warner From imp at bsdimp.com Sat Sep 19 15:57:36 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Sep 19 15:57:44 2009 Subject: BCM5709S ethernet adapter driver. In-Reply-To: <20090919.095624.-1408366588.imp@bsdimp.com> References: <4AB49138.4090206@FreeBSD.org> <20090919.095624.-1408366588.imp@bsdimp.com> Message-ID: <20090919.095708.2009459858.imp@bsdimp.com> In message: <20090919.095624.-1408366588.imp@bsdimp.com> M. Warner Losh writes: : In message: <4AB49138.4090206@FreeBSD.org> : John Baldwin writes: : : Bob McClure wrote: : : > Greetings Driver Experts. : : > : : > I am trying to find out if anyone is working on adding driver support for : : > a Broadcom BCM5709S Ethernet adapter on FreeBSD. : : > : : > : : > I will have the opportunity to migrate some of my servers to IBM LS42 Blade : : > servers. I am told this is the only : : > : : > adapter available, so selecting another interface at least at this point is : : > not an option. : : > : : > : : > Any input will be greatly appreciated. : : : : A patch was recently posted to the lists from the forums I believe and : : marius@ was going to review it when he gets some time. I believe the : : patch was reported as working for both 7 and 8. I think it was posted : : to hackers@ IIRC. : : Yes. Sam and I have reviewed the patches as well, and there's : problems with them. While they appear to work, they are frobbing bits : that shouldn't need to be frobbed relating to receiving beacons : (effectively putting the card into promiscuous mode, iirc), which will : have a performance problem. This is why I've not just pushed the : patches into the tree... Ooops, wrong thread about a BCM part. Ignore what I just said. It applies to a wireless part. Warner From rgrover1 at gmail.com Sun Sep 20 11:05:56 2009 From: rgrover1 at gmail.com (Rohit Grover) Date: Sun Sep 20 11:06:03 2009 Subject: Apple Touchpad driver for Macbook Message-ID: <426bed110909200405p6a8c98fn14ff5db01149b3a3@mail.gmail.com> Hello Everybody, I have developed a driver for the Touchpad device on Apple Macbooks. Mine is a Macbook 3,1, and I run FreeBSD7.2 on it--so testing has so far been limited to this configuration. In its present state, the driver supports multi-tap, edge detection, and movement smoothening. You may get the driver from git://github.com/rgrover/freebsd-atp.git. Instructions for installing and using the driver may be obtained from: http://wiki.github.com/rgrover/freebsd-atp I have put in significant work in the area of movement smoothening, and in setting up an infrastructure for tracking individual finger strokes (which may later be evolved into gesture detection). There may be potential for this code to form the basis for a generic touchpad driver. I have been using this driver for a few weeks now. It is stable. Please help me test this driver for a wider range of Apple hardware. I will also be porting this code to 8-CURRENT once I get that to boot on my MacBook. I would like to see this driver committed to FreeBSD. I request the committers to please guide me in this process. regards, Rohit. From rpaulo at freebsd.org Sun Sep 20 12:04:10 2009 From: rpaulo at freebsd.org (Rui Paulo) Date: Sun Sep 20 12:04:47 2009 Subject: Apple Touchpad driver for Macbook In-Reply-To: <426bed110909200405p6a8c98fn14ff5db01149b3a3@mail.gmail.com> References: <426bed110909200405p6a8c98fn14ff5db01149b3a3@mail.gmail.com> Message-ID: On 20 Sep 2009, at 12:05, Rohit Grover wrote: > Hello Everybody, > > I have developed a driver for the Touchpad device on Apple Macbooks. > Mine is a Macbook 3,1, and I run FreeBSD7.2 on it--so testing has so > far been limited to this configuration. In its present state, the > driver supports multi-tap, edge detection, and movement smoothening. > > You may get the driver from git://github.com/rgrover/freebsd-atp.git. > Instructions for installing and using the driver may be obtained from: > http://wiki.github.com/rgrover/freebsd-atp > > I have put in significant work in the area of movement smoothening, > and in setting up an infrastructure for tracking individual finger > strokes (which may later be evolved into gesture detection). There may > be potential for this code to form the basis for a generic touchpad > driver. > > I have been using this driver for a few weeks now. It is stable. > Please help me test this driver for a wider range of Apple hardware. > I will also be porting this code to 8-CURRENT once I get that to boot > on my MacBook. > > I would like to see this driver committed to FreeBSD. I request the > committers to please guide me in this process. Great work. I haven't seen the code but this looks promising. If you can port it to FreeBSD 8's USB stack, we can start thinking about committing it. Thanks, -- Rui Paulo From moonlightakkiy at yahoo.ca Tue Sep 22 06:40:04 2009 From: moonlightakkiy at yahoo.ca (Tango) Date: Tue Sep 22 06:40:11 2009 Subject: run driver Message-ID: <552058.40986.qm@web51801.mail.re2.yahoo.com> Hello everyone! I have just decided to port openbsd's run driver (ru"N' not ru'M') http://www.openbsd.org/cgi-bin/man.cgi?query=run&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html to freebsd since just-bought wusb54gc ver 3 doesn't work with rum (ver 0 is working fine with rum) and yelling at usb dongle won't make it to work. If anyone has started porting please let me know. Also, this is going to be my very first freebsd project. Any advice will be appreciated. Wish me luck! __________________________________________________________________ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca From realliukai at gmail.com Wed Sep 23 02:22:41 2009 From: realliukai at gmail.com (=?GB2312?B?wfW/rQ==?=) Date: Wed Sep 23 03:18:56 2009 Subject: manual of Atheros AR5424 chip Message-ID: <7237120a0909221858n4d54a34ew8a04a05cd7c47316@mail.gmail.com> Hi All, Recently I start to modify the driver of Atheros AR5424. So I wonder if anyone has the manual of the wirless card chip. Thanks, -- Kevin From kennethcf at earthlink.net Wed Sep 30 07:16:37 2009 From: kennethcf at earthlink.net (Kenneth) Date: Wed Sep 30 07:16:44 2009 Subject: nVidia SYSCONS Problem on Compaq Presario CQ60 Message-ID: <7341706.1254293628593.JavaMail.root@wamui-hunyo.atl.sa.earthlink.net> Can anyone help with a syscons error when loading the screen saver on boot up (yes, I know I don't need it if I use X, but I would like to get it working)? The error looks like... Configuring syscons: keyrate blanktime screensaver module_register_init: MOD_LOAD (rain_saver, 0xc709a7a0, 0) error 19 I have a Compaq Presario CQ60 running freeBSD 7.2 from a 4G usb drive. My Compaq has a GeForce 8200m G on vgapci0. #dmesg | grep nvidia vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] And my /boot/loader.conf has... nvidia_load="YES" (just recently built..pkg_info says "nvidia-driver-185.18.29") And my /etc/rc.conf has (among other things)... blanktime="300" saver="rain" hald_enable="YES" dbus_enable="YES" Let me know, and I'll send whatever information you need. From jhb at freebsd.org Wed Sep 30 13:07:29 2009 From: jhb at freebsd.org (John Baldwin) Date: Wed Sep 30 13:07:47 2009 Subject: nVidia SYSCONS Problem on Compaq Presario CQ60 In-Reply-To: <7341706.1254293628593.JavaMail.root@wamui-hunyo.atl.sa.earthlink.net> References: <7341706.1254293628593.JavaMail.root@wamui-hunyo.atl.sa.earthlink.net> Message-ID: <200909300806.23872.jhb@freebsd.org> On Wednesday 30 September 2009 2:53:48 am Kenneth wrote: > Can anyone help with a syscons error when loading the screen saver on boot up (yes, I know I don't need it if I use X, but I would like to get it working)? > > The error looks like... > Configuring syscons: keyrate blanktime screensaver module_register_init: MOD_LOAD (rain_saver, 0xc709a7a0, 0) error 19 > > I have a Compaq Presario CQ60 running freeBSD 7.2 from a 4G usb drive. > > My Compaq has a GeForce 8200m G on vgapci0. > #dmesg | grep nvidia > vgapci0: child nvidia0 requested pci_enable_busmaster > vgapci0: child nvidia0 requested pci_enable_io > nvidia0: [GIANT-LOCKED] > nvidia0: [ITHREAD] > > And my /boot/loader.conf has... > nvidia_load="YES" (just recently built..pkg_info says "nvidia-driver-185.18.29") > > And my /etc/rc.conf has (among other things)... > blanktime="300" > saver="rain" > hald_enable="YES" > dbus_enable="YES" > > Let me know, and I'll send whatever information you need. The nvidia driver is completely unrelated to syscons. I think the rain saver is failing because it doesn't think the relevant graphics mode is available. Maybe check for this message in /var/log/messages? log(LOG_NOTICE, "%s: the console does not support M_VGA_CG320\n", SAVER_NAME); return (ENODEV); -- John Baldwin