Re: Atheros 9220 don't return from S3 state

2013-01-14 Thread Ian Smith
On Sun, 13 Jan 2013 11:25:37 -0800, Adrian Chadd wrote: The problem here is I can't easily test this. We detach and re-attach cardbus devices during suspend/resume, so although I have AR9220 mini-PCI NICs, they don't stay connected the normal way. The slot gets fully powered down and

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Ian Smith
On Sat, 12 Jan 2013 09:05:37 -0800, Adrian Chadd wrote: We can't patch pci space if they're all 0x, that means nothing is there. That's the point; the card hasn't come back on from suspend. So we need to do something _before_ it suspends. We can't do anything to the card

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Adrian Chadd
The problem here is I can't easily test this. We detach and re-attach cardbus devices during suspend/resume, so although I have AR9220 mini-PCI NICs, they don't stay connected the normal way. The slot gets fully powered down and reset upon power up. Adrian

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Slawa Olhovchenkov
On Mon, Jan 14, 2013 at 06:21:54AM +1100, Ian Smith wrote: On Sat, 12 Jan 2013 09:05:37 -0800, Adrian Chadd wrote: We can't patch pci space if they're all 0x, that means nothing is there. That's the point; the card hasn't come back on from suspend. So we need to do

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Adrian Chadd
Right. That should be a good indication. It's a shame you can't just get a multimeter and measure the relevant pins. :) Adrian ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe,

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Adrian Chadd
.. and it may not be the slot power. It could also be the PCI bridge (re) programming. It needs to have the right BAR and such programmed into it, or it won't route things correctly to child slots. I had this problem with cardbus a few months ago. After a resume, not all of the relevant PCI

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Slawa Olhovchenkov
On Sun, Jan 13, 2013 at 12:19:22PM -0800, Adrian Chadd wrote: On 13 January 2013 12:07, Slawa Olhovchenkov s...@zxy.spb.ru wrote: On Sun, Jan 13, 2013 at 11:43:55AM -0800, Adrian Chadd wrote: Right. That should be a good indication. After 10 min card still hot. Ok, so that means the

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Slawa Olhovchenkov
On Sun, Jan 13, 2013 at 04:32:16PM -0500, Adrian Chadd wrote: Ok. So don't use that :) I'll dig up the pci hostif registers and see what I can find. But, hm. We should dump and compare the pci conf registers for the bridge that device is on.nbsp; If it is pcib3@pci0:0:30:0:

Re: Atheros 9220 don't return from S3 state

2013-01-13 Thread Adrian Chadd
Well. Compare the other bridges too, out of interest. Adrian Sent from my Palm Pre on ATamp;T On Jan 13, 2013 4:40 PM, Slawa Olhovchenkov lt;s...@zxy.spb.rugt; wrote: On Sun, Jan 13, 2013 at 04:32:16PM -0500, Adrian Chadd wrote: gt; Ok. So don't use that :) gt; gt; I'll dig up the

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Slawa Olhovchenkov
On Sat, Jan 12, 2013 at 07:27:02AM -0800, Adrian Chadd wrote: Hi, There's no firmware for the AR9220 .. it's all in the driver/HAL. If XP restore isn't working; maybe there's something in the ACPI/BIOS that's screwing things up? I am use last available BIOS. After restore don't working

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Adrian Chadd
Ah, is it perhaps rfkill related? I've seen issues with rfkill before, where it is implemented as disable the power to the entire slot rather than assert the RF kill line to the device. It's possible this is how it has to happen with the intel NICs? do you have an rfkill button on the keyboard

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Slawa Olhovchenkov
On Sat, Jan 12, 2013 at 07:52:19AM -0800, Adrian Chadd wrote: Ah, is it perhaps rfkill related? I've seen issues with rfkill before, where it is implemented as disable the power to the entire slot rather than assert the RF kill line to the device. It's possible this is how it has to happen

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Adrian Chadd
.. right, try flipping the rf kill switch off/on after suspend, dump the config registers. Adrian On 12 January 2013 08:28, Slawa Olhovchenkov s...@zxy.spb.ru wrote: On Sat, Jan 12, 2013 at 07:52:19AM -0800, Adrian Chadd wrote: Ah, is it perhaps rfkill related? I've seen issues with

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Adrian Chadd
On 12 January 2013 08:37, Slawa Olhovchenkov s...@zxy.spb.ru wrote: On Sat, Jan 12, 2013 at 08:25:22AM -0800, Adrian Chadd wrote: .. right, try flipping the rf kill switch off/on after suspend, dump the config registers. don't react -- 255 times 'ff' Okay. Well, I'll see if there's anything

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Slawa Olhovchenkov
On Sat, Jan 12, 2013 at 08:38:49AM -0800, Adrian Chadd wrote: On 12 January 2013 08:37, Slawa Olhovchenkov s...@zxy.spb.ru wrote: On Sat, Jan 12, 2013 at 08:25:22AM -0800, Adrian Chadd wrote: .. right, try flipping the rf kill switch off/on after suspend, dump the config registers.

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Slawa Olhovchenkov
On Sat, Jan 12, 2013 at 08:50:58AM -0800, Adrian Chadd wrote: I don't know the first thing about ACPI, I'm sorry. OK, what about patching pci config space? Remove indication of support D3 state? or system don't suspend after this complete? (sorry for dumb question). Perhaps ask on the freebsd

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Slawa Olhovchenkov
On Sat, Jan 12, 2013 at 09:05:37AM -0800, Adrian Chadd wrote: We can't patch pci space if they're all 0x, that means nothing is there. That's the point; the card hasn't come back on from suspend. So we need to do something _before_ it suspends. We can't do anything to the card

Re: Atheros 9220 don't return from S3 state

2013-01-12 Thread Adrian Chadd
On 12 January 2013 09:13, Slawa Olhovchenkov s...@zxy.spb.ru wrote: On Sat, Jan 12, 2013 at 09:05:37AM -0800, Adrian Chadd wrote: We can't patch pci space if they're all 0x, that means nothing is there. That's the point; the card hasn't come back on from suspend. So we need to do

Re: Atheros 9220 don't return from S3 state

2013-01-10 Thread Adrian Chadd
.. odd. Is anything else behind that PCI bridge? I can do some digging in a couple weeks; I don't have any AR9220's on me at the moment. Adrian On 10 January 2013 00:07, Slawa Olhovchenkov s...@zxy.spb.ru wrote: On Wed, Jan 09, 2013 at 06:00:21PM -0500, Adrian Chadd wrote: Does it happen

Re: Atheros 9220 don't return from S3 state

2013-01-10 Thread Slawa Olhovchenkov
On Thu, Jan 10, 2013 at 08:08:07PM -0800, Adrian Chadd wrote: .. odd. Is anything else behind that PCI bridge? bge0@pci0:2:0:0 work fine (work after resume). fwohci0@pci0:6:6:0 report working I can do some digging in a couple weeks; I don't have any AR9220's on me at the moment.