Date: Sat, 12 Jan 2013 09:59:18 -0800 From: Adrian Chadd <adrian.chadd@gmail.com> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: Atheros 9220 don't return from S3 state Message-ID: <CAJ-Vmok2wD9ru8C8ac3Ftju59_8ZoVgtRqCxEOeaOASBgPZmGg@mail.gmail.com> In-Reply-To: <20130112171337.GM67643@zxy.spb.ru> References: <20130112154404.GH67643@zxy.spb.ru> <CAJ-Vmomy4jVNs9r0H2XzVO-Q6tq7=O4EzJn-NLCOO=n%2BSJce_g@mail.gmail.com> <20130112162851.GI67643@zxy.spb.ru> <CAJ-VmomUdkCtsGfzvd=hoeoNYPVip11nxNFb5z48a0EFWkbCTQ@mail.gmail.com> <20130112163712.GJ67643@zxy.spb.ru> <CAJ-VmonnDy81joHZ_Z_meMZxdUmSKsQWQ8Mud-42Knremq=Z3A@mail.gmail.com> <20130112165235.GK67643@zxy.spb.ru> <CAJ-VmomM5z1vjw%2B3--OYkfb=J5qm1k1egM19Njx660SHdAdJkw@mail.gmail.com> <20130112170707.GL67643@zxy.spb.ru> <CAJ-Vmo=oKw7HNJvvLu%2BxN1WSk_i-C-PZMS3zCS8jfvU0BDO0jA@mail.gmail.com> <20130112171337.GM67643@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12 January 2013 09:13, Slawa Olhovchenkov <slw@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 0xffffffff, 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 after it resumes; we can only do stuff to the PCI bus. > > No, patch before suspend. If card don't report support D3 state -- on > sleep card not lost power? Or after resume got full reset? Well, I think there's more to it than that. I could program the card, sure, but what about the PCI bus and the ACPI code that fiddles with the PCI slot. I'm not at all clued up on how PCI sleep/resume works, so I'm scratching in the dark here. I think there's some code in the windows driver to put some older cards into some very specific PCI sleep states (and force them to not enter deep deep sleep?) but I'd have to re-review it. Adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmok2wD9ru8C8ac3Ftju59_8ZoVgtRqCxEOeaOASBgPZmGg>