Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-12-05 Thread Masanobu SAITOH
On 2018/12/06 0:22, David Brownlee wrote: On Sat, 1 Dec 2018 at 01:27, SAITOH Masanobu wrote: Committed. Hi - is this worth pulling up into netbsd-8? Of course yes! I ran a quick test and my T420s suspends/resumes fine with a netbsd-8 kernel and no X11 running. x11 looks to have

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-12-05 Thread David Brownlee
On Sat, 1 Dec 2018 at 01:27, SAITOH Masanobu wrote: > > Committed. > Hi - is this worth pulling up into netbsd-8? I ran a quick test and my T420s suspends/resumes fine with a netbsd-8 kernel and no X11 running. x11 looks to have issues which seem resolved in current, but it feels like a

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-12-02 Thread Riccardo Mottola
Hi, David H. Gutteridge wrote: I have good news and bad news, and it's the same thing: I was hoping the Toshiba laptop had more parity with one of your laptops in terms of hardware, but unfortunately, it's a consumer model, an M40X with an Intel Dothan CPU, integrated 915GM graphics, a RealTek

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-30 Thread SAITOH Masanobu
Committed. Thank you all! On 2018/12/01 7:17, David Brownlee wrote: > On Thu, 29 Nov 2018 at 06:15, Masanobu SAITOH wrote: >> >> On 2018/11/28 22:12, SAITOH Masanobu wrote: > http://ftp.netbsd.org/pub/NetBSD/misc/abs/acpi-suspend-resume/pcidump.pre >

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-30 Thread David Brownlee
On Thu, 29 Nov 2018 at 06:15, Masanobu SAITOH wrote: > > On 2018/11/28 22:12, SAITOH Masanobu wrote: > >>> http://ftp.netbsd.org/pub/NetBSD/misc/abs/acpi-suspend-resume/pcidump.pre > >>> http://ftp.netbsd.org/pub/NetBSD/misc/abs/acpi-suspend-resume/pcidump.post > >> > >> The diff says we should

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-29 Thread David H. Gutteridge
On Sat, 2018-11-24 at 18:33 +0100, Riccardo Mottola wrote: > On 11/21/18 6:57 AM, David H. Gutteridge wrote: > > I have access to a Toshiba Satellite Pro that's a roughly similar > > vintage to your T43; I'll see how it behaves when I have a chance. > > That would be interesting. Try it as-is,

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-29 Thread David H. Gutteridge
On Thu, 2018-11-29 at 15:15 +0900, Masanobu SAITOH wrote: > On 2018/11/28 22:12, SAITOH Masanobu wrote: > > On 2018/11/28 14:18, Masanobu SAITOH wrote: > > > The diff says we should save/restore MSI table. > > > We also should save/restore some other registers. > > > > > > Give me one or two

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-29 Thread Brett Lymn
On Thu, Nov 29, 2018 at 03:15:31PM +0900, Masanobu SAITOH wrote: > On 2018/11/28 22:12, SAITOH Masanobu wrote: > > But, my X61 survived from suspend with this patch! > My fujitsu lifebook S904 came back from suspend with this patch too! Thank you very much for this. -- Brett Lymn Let go, or

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-28 Thread Masanobu SAITOH
On 2018/11/28 22:12, SAITOH Masanobu wrote: On 2018/11/28 14:18, Masanobu SAITOH wrote: Hi, David. On 2018/11/28 6:09, David Brownlee wrote: On Tue, 27 Nov 2018 at 18:10, David Brownlee wrote: On Tue, 27 Nov 2018 at 08:27, Masanobu SAITOH wrote:    Hi, David. On 2018/11/26 6:11, David

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-28 Thread SAITOH Masanobu
On 2018/11/28 14:18, Masanobu SAITOH wrote: > Hi, David. > > On 2018/11/28 6:09, David Brownlee wrote: >> On Tue, 27 Nov 2018 at 18:10, David Brownlee wrote: >>> >>> On Tue, 27 Nov 2018 at 08:27, Masanobu SAITOH wrote:    Hi, David. On 2018/11/26 6:11, David Brownlee wrote:

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-28 Thread David Brownlee
On Wed, 28 Nov 2018 at 02:20, David H. Gutteridge wrote: > > On Sat, 2018-11-24 at 22:47 +, David Brownlee wrote: > > On Sat, 24 Nov 2018 at 18:52, David H. Gutteridge > > wrote: > > > On Fri, 2018-11-23 at 21:42 +, David Brownlee wrote: > > > > netbsd-8 Single user: > > > > - Suspend

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread Masanobu SAITOH
Hi, David. On 2018/11/28 6:09, David Brownlee wrote: On Tue, 27 Nov 2018 at 18:10, David Brownlee wrote: On Tue, 27 Nov 2018 at 08:27, Masanobu SAITOH wrote: Hi, David. On 2018/11/26 6:11, David Brownlee wrote: I've bisected the changes against the github src copy, and it looks like

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread David H. Gutteridge
On Sat, 2018-11-24 at 22:47 +, David Brownlee wrote: > On Sat, 24 Nov 2018 at 18:52, David H. Gutteridge > wrote: > > On Fri, 2018-11-23 at 21:42 +, David Brownlee wrote: > > > netbsd-8 Single user: > > > - Suspend (hw.acpi.sleep.state=3) and resume appears to work > > > reliably > > >

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread David H. Gutteridge
On Tue, 2018-11-27 at 18:08 +, David Brownlee wrote: > On Sun, 25 Nov 2018 at 21:11, David Brownlee wrote: > > I've bisected the changes against the github src copy, and it looks like > > the suspend/resume issue is related to the following commit: > > > > commit

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread David Brownlee
On Tue, 27 Nov 2018 at 18:10, David Brownlee wrote: > > On Tue, 27 Nov 2018 at 08:27, Masanobu SAITOH wrote: > > > > Hi, David. > > > > On 2018/11/26 6:11, David Brownlee wrote: > > > I've bisected the changes against the github src copy, and it looks like > > > the suspend/resume issue is

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread David Brownlee
On Tue, 27 Nov 2018 at 08:27, Masanobu SAITOH wrote: > > Hi, David. > > On 2018/11/26 6:11, David Brownlee wrote: > > I've bisected the changes against the github src copy, and it looks like > > the suspend/resume issue is related to the following commit: > > > > commit

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread David Brownlee
On Sun, 25 Nov 2018 at 21:11, David Brownlee wrote: > > I've bisected the changes against the github src copy, and it looks like the > suspend/resume issue is related to the following commit: > > commit 0fe469276f49bf0dc003300e0b8a35a80b7b246d (HEAD) > Author: jdolecek > Date: Mon Oct 22

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread Masanobu SAITOH
On 2018/11/27 17:27, Masanobu SAITOH wrote:  Hi, David. On 2018/11/26 6:11, David Brownlee wrote: I've bisected the changes against the github src copy, and it looks like the suspend/resume issue is related to the following commit: commit 0fe469276f49bf0dc003300e0b8a35a80b7b246d (HEAD)

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-27 Thread Masanobu SAITOH
Hi, David. On 2018/11/26 6:11, David Brownlee wrote: I've bisected the changes against the github src copy, and it looks like the suspend/resume issue is related to the following commit: commit 0fe469276f49bf0dc003300e0b8a35a80b7b246d (HEAD) Author: jdolecek Date:   Mon Oct 22 20:57:07 2018

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-25 Thread David Brownlee
I've bisected the changes against the github src copy, and it looks like the suspend/resume issue is related to the following commit: commit 0fe469276f49bf0dc003300e0b8a35a80b7b246d (HEAD) Author: jdolecek Date: Mon Oct 22 20:57:07 2018 + enable MSI support where available, blatantly

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-24 Thread David Brownlee
On Sat, 24 Nov 2018 at 18:52, David H. Gutteridge wrote: > > On Fri, 2018-11-23 at 21:42 +, David Brownlee wrote: > > Another couple of data points in case it helps > > > > Tested on Thinkpad T420s and T530 with NetBSD/amd64 - both have > > similar behaviour > > > > 8.99.25 Single user: > > -

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-24 Thread David H. Gutteridge
On Fri, 2018-11-23 at 21:42 +, David Brownlee wrote: > Another couple of data points in case it helps > > Tested on Thinkpad T420s and T530 with NetBSD/amd64 - both have > similar behaviour > > 8.99.25 Single user: > - Suspends and seems to resume but hangs on first disk access "wd0a: >

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-24 Thread Riccardo Mottola
Hi, On 11/21/18 6:57 AM, David H. Gutteridge wrote: True. What I can also say is that I tested the i386 port with it too (see kern/53658), and it worked too. I've also tested i386 with an LG X110 that I used to run NetBSD 5.x and then 7.x on. I could never get it to suspend. With 8.0, it

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-23 Thread David Brownlee
Another couple of data points in case it helps Tested on Thinkpad T420s and T530 with NetBSD/amd64 - both have similar behaviour 8.99.25 Single user: - Suspends and seems to resume but hangs on first disk access "wd0a: device timeout reading fsbn ..." netbsd-8 Single user: - Suspend

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-20 Thread David H. Gutteridge
On Tue, 2018-11-20 at 16:25 +0100, Riccardo Mottola wrote: > Hi David, > > David H. Gutteridge wrote: > > FWIW, I'm able to get suspend and resume to work reliably on a > > Lenovo > > T420 with NetBSD-8.0_STABLE. (With 8.99.x, it doesn't work as > > reliably > > because the SATA driver seems to

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-20 Thread maya
On Tue, Nov 20, 2018 at 06:02:36PM +0100, Riccardo Mottola wrote: > Hi, > > m...@netbsd.org wrote: > > For general context, suspend does work on -current. I tried on an older > > amd64.http://netbsd.org/~maya/n4030-suspend > > (No driver disabled, but I tried from r/o root in an installer) > > >

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-20 Thread Riccardo Mottola
Hi, m...@netbsd.org wrote: For general context, suspend does work on -current. I tried on an older amd64.http://netbsd.org/~maya/n4030-suspend (No driver disabled, but I tried from r/o root in an installer) Unfortunately my shinier machine is a pain to suspend. I might end up giving up. at

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-20 Thread Riccardo Mottola
Hi David, David H. Gutteridge wrote: FWIW, I'm able to get suspend and resume to work reliably on a Lenovo T420 with NetBSD-8.0_STABLE. (With 8.99.x, it doesn't work as reliably because the SATA driver seems to have issues after resumption which don't occur with 8.0.) I didn't have to do

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-20 Thread Paul Goyette
On Tue, 20 Nov 2018, David H. Gutteridge wrote: FWIW, I'm able to get suspend and resume to work reliably on a Lenovo T420 with NetBSD-8.0_STABLE. (With 8.99.x, it doesn't work as reliably because the SATA driver seems to have issues after resumption which don't occur with 8.0.) Jaromir

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-19 Thread David H. Gutteridge
On Wed, 14 Nov 2018, at 13:10:55 +0100, Riccardo Mottola wrote: >HI all, > >I take the discussion started on a similar thread on netbsd-users over here, >since it is still a "current" issue and to debug it I am using netbsd-GENERIV >kernels from RelEng. [...] > >the question is again..

Re: ThinkPad - suspend-to-RAM intel-x86 issues and tests

2018-11-15 Thread maya
For general context, suspend does work on -current. I tried on an older amd64. http://netbsd.org/~maya/n4030-suspend (No driver disabled, but I tried from r/o root in an installer) Unfortunately my shinier machine is a pain to suspend. I might end up giving up.