Re: VAIO F270, ep0 and -current
On Fri, Nov 19, 1999 at 10:40:19AM -0700, Warner Losh wrote: In message [EMAIL PROTECTED] Josef Karthauser writes: : If you can give me some clues I'll work on it. I've got zero familiarity : with the code :(. [..] Somewhere in the above, something goes wrong :-(. Maybe it is the first parenthetical statement about waiting for the spl to be lowered, which would be something like: /* *disable_slot - Disables the slot by removing *the power and unmapping the I/O */ static void real_disable_slot(struct slot *slt); static void disable_slot(struct slot *slt) { slt-poff_ch = timeout(real_disable_slot, (caddr_t) slot, 0); } static void real_disable_slot(struct slot *slt) { // guts of the old disable_slot goes here } but there may be some more complicated book keeping needed... This didn't help. Interestingly if I unplug the network card and wait a while (minutes) and then suspend it hangs, however if I _never_ put the card in in the first place susspend works fine. I believe that the suspend is a read herring, and what actually happen is that the card doesn't detatch properly. Joe -- Josef KarthauserFreeBSD: How many times have you booted today? Technical Manager Viagra for your server (http://www.uk.freebsd.org) Pavilion Internet plc. [[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
VAIO F270, ep0 and -current
Greetings, I have been in light contact with Warner over the course of the last couple of weeks, and I am still at wits end with this one. Currently, my laptop (VAIO F270 with a 3Com 589E pcmcia nic card) runs 3.3-REL with the PAO hacks, and works near-perfect. However, I would love to use this machine as a development box, which means I should really be running current on it. Now, everything but pccard works, which fails with ENOTTY on the following ioctl() call: usr.sbin/pccard/pccardd/cardd.c, line 590: if (ioctl(sp-fd, PIOCSDRV, drv)) { This is now the only thing holding me back. Anyone had a similar experience? Relevant configuration follows. pccard.conf -- io 0x240-0x360 irq 3 5 10 11 13 15 memory 0xd4000 96k card "3Com" "Megahertz 589E" config 0x1 "ep0" ? insert echo 3Com Megahertz Ethernet card inserted insert /etc/pccard_ether ep0 remove echo 3Com Megahertz Ethernet card removed remove /sbin/ifconfig ep0 delete the kernel config is a chopped down PCCARD Cheers, -- Dan Moschuk ([EMAIL PROTECTED]) "Cure for global warming: One giant heatsink and dual fans!" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
On Thu, Nov 18, 1999 at 02:35:07PM -0700, Warner Losh wrote: In message [EMAIL PROTECTED] Josef Karthauser writes: : I've got problems with F290 and ep0 and 'zzz' :) : I've running a kernel from 20th Oct (FreeBSDCon ;) to solve it. : : It may be fixed more recently, but last week's kernel didn't solve it. The suspend/card eject problem is still there. I've not found the time, energy or motivation to fix it. No body else has sent me patches either. I also don't have my laptop, but I could work around that if I were motivated to work on the old stuff. :-(. I'm bad, I like working on the new stuff more. Warner If you can give me some clues I'll work on it. I've got zero familiarity with the code :(. Joe -- Josef KarthauserFreeBSD: How many times have you booted today? Technical Manager Viagra for your server (http://www.uk.freebsd.org) Pavilion Internet plc. [[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
In message [EMAIL PROTECTED] Josef Karthauser writes: : If you can give me some clues I'll work on it. I've got zero familiarity : with the code :(. Sure. I posted this once to -mobile, so you might want to look in the archives there as well as here. The basic problem is that it appears that detach may be called AFTER the power is removed from the card generating an interrupt causing the interrupt routine to be called when the card is no longer there, which leads to an instant hang. Either that, or the act of removing the card causes an interupt to the card, then on the pcic which pulls the rug out from under the card and then it just hangs. I'm not completely sure and don't have a machine to test this on extenstively right now, so here goes at an off the cuff analysis. Looking at pcicintr in sys/pccard/pcic.c we see that the card_inserted event gets called (pccard_event in sys/pccard/pccard.c). This calls disable_slot and sets the state of the slot to empty and wakes up the pccardd proces. Looking at code it appears that we go ahead and delete the child in disable_slot (which should really be delayed until spl has been lowered via a timeout) which should be right. We then wait 1/2 second and power off the slot. Looks like we call the controllers disable routine for the slot (which is pcic_disable in pcic.c) where we turn off the card at the bridge chip. It is when we power the card off that we hang in the cards interrupt routine. Given this sequence of events, we should be safe. For the ep card we if_down, teardown the interrupt and free the resources and print unload. Somewhere in the above, something goes wrong :-(. Maybe it is the first parenthetical statement about waiting for the spl to be lowered, which would be something like: /* * disable_slot - Disables the slot by removing * the power and unmapping the I/O */ static void real_disable_slot(struct slot *slt); static void disable_slot(struct slot *slt) { slt-poff_ch = timeout(real_disable_slot, (caddr_t) slot, 0); } static void real_disable_slot(struct slot *slt) { // guts of the old disable_slot goes here } but there may be some more complicated book keeping needed... Lemme know if this helps... Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
I've got problems with F290 and ep0 and 'zzz' :) I've running a kernel from 20th Oct (FreeBSDCon ;) to solve it. It may be fixed more recently, but last week's kernel didn't solve it. Joe -- Josef KarthauserFreeBSD: How many times have you booted today? Technical Manager Viagra for your server (http://www.uk.freebsd.org) Pavilion Internet plc. [[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
[.] io 0x240-0x360 irq 3 5 10 11 13 15 memory 0xd4000 96k card "3Com" "Megahertz 589E" config 0x1 "ep0" ? [.] FWIW, I've got: io 0x240-0x360 irq 10 11 13 memory 0xc 96k card "3Com Corporation" "3C589" config 0x1 "ep0" 11 [.] so we don't share the same card. but, I'd advise disabling your IrDA port - the default is to use irq3, which may conflict with your setup. I've also got device pcic0 at isa? irq 10 device pcic1 at isa? controller card0 in my kenrel config and get pcic-pci0: Ricoh RL5C478 PCI-CardBus Brige at device 10.0 on pci0 pcic-pci1: Ricoh RL5C478 PCI-CardBus Brige at device 10.1 on pci0 pcic0: Intel i82365 at irq 10 on isa0 at boot time. -- Brian [EMAIL PROTECTED][EMAIL PROTECTED] http://www.Awfulhak.org [EMAIL PROTECTED] Don't _EVER_ lose your sense of humour ! [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
In message [EMAIL PROTECTED] Josef Karthauser writes: : I've got problems with F290 and ep0 and 'zzz' :) : I've running a kernel from 20th Oct (FreeBSDCon ;) to solve it. : : It may be fixed more recently, but last week's kernel didn't solve it. The suspend/card eject problem is still there. I've not found the time, energy or motivation to fix it. No body else has sent me patches either. I also don't have my laptop, but I could work around that if I were motivated to work on the old stuff. :-(. I'm bad, I like working on the new stuff more. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
In message [EMAIL PROTECTED] Dan Moschuk writes: : | if (ioctl(sp-fd, PIOCSDRV, drv)) { Do you have any cards that work? Are you 100% positive that your kernel and pccardd match? ENOTTY is returned only when the pccard driver doesn't know about the ioctl. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
| : | if (ioctl(sp-fd, PIOCSDRV, drv)) { | | Do you have any cards that work? Are you 100% positive that your | kernel and pccardd match? ENOTTY is returned only when the pccard | driver doesn't know about the ioctl. | | Warner The steps I take are as follows: i) cvsup ii) make/make install usr.sbin/pccard iii) copy new pccard.conf into place iv) build and reboot new kernel If I've forgotten a step, please let me know. Thanks, -- Dan Moschuk ([EMAIL PROTECTED]) "Cure for global warming: One giant heatsink and dual fans!" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
In message [EMAIL PROTECTED] Dan Moschuk writes: : The steps I take are as follows: : i) cvsup ia) make includes in src : ii) make/make install usr.sbin/pccard : iii) copy new pccard.conf into place : iv) build and reboot new kernel You need to make sure that you are compiling against the right kernel headers. Not that I'm saying that you are, just making sure. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: VAIO F270, ep0 and -current
| You need to make sure that you are compiling against the right kernel | headers. Not that I'm saying that you are, just making sure. | | Warner Doh! Are my cheeks red. After rebuilding /usr/include, and recompiling pccard all is well. Thanks! -- Dan Moschuk ([EMAIL PROTECTED]) "Cure for global warming: One giant heatsink and dual fans!" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message