NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



On Wed, Sep 26, 2018 at 11:33:49PM +0200, Riccardo Mottola wrote:
> T43 "new": does go to sleep, but does not resume (while stock 8 does).

Better strategy: since we you have a machine that worked at some point,
you should try to bisect it. it's a somewhat tedious process of testing
~13 different kernels, but it is easier to do.

1. do a full clone of the netbsd git mirror:
git clone https://github.com/netbsd/src
git checkout 219a1cc39c1610407f456c7a08a21d6e951cfb1c # netbsd-8 branch

Do a build of this and confirm it works.

git checkout trunk
git bisect start
git bisect bad HEAD # HEAD doesn't work
git bisect good 219a1cc39c1610407f456c7a08a21d6e951cfb1c

Now, you are bisecting, you need to do a clean build of tools and kernel
most of the time.
use ./build.sh ... -O ~/obj tools kernel=GENERIC
and delete ~/obj between attempts.

If a change can suspend, use 'git bisect good'.
If it fails, 'git bisect bad'
If it fails to build, use 'git bisect skip'

Personally my first 2-3 attempts at bisect I confused something and got
to the wrong commit, but when it worked, it really did pinpoint the
problem very efficiently.


Home | Main Index | Thread Index | Old Index