Bug 151747

Summary: different kernel on 10.1b4 and nld10b4
Product: [openSUSE] SUSE Linux 10.1 Reporter: Rasmus Plewe <rplewe>
Component: KernelAssignee: Andreas Jaeger <aj>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P5 - None CC: aj, behlert, chuller, trenn
Version: Beta 3.5internal   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: powersave_logs.tar.gz

Description Rasmus Plewe 2006-02-17 10:17:59 UTC
Using beta 3.95

Suspend to disk is not working any more (was working in beta3). I will attach the relevant /var/log/message from a "powersave -U" attempt.
Comment 2 Stefan Behlert 2006-02-17 10:21:32 UTC
Please run /usr/share/doc/packages/powersave/powersave_logs and append the logfile-archive created from that script.
Comment 3 Rasmus Plewe 2006-02-17 10:27:28 UTC
Created attachment 68988 [details]
powersave_logs.tar.gz
Comment 4 Rasmus Plewe 2006-02-17 10:37:16 UTC
Just to clarify: "does not work" in this case *really* means "does not work". The machine starts to prepare, after displaying "synching disks 50%" it locks the display, and that's it. No more visible progress. 
Comment 5 Holger Macht 2006-02-17 10:42:06 UTC
Please increase the debug level:
  Set DEBUG="" to DEBUG="15" in /etc/powersave/common

Do suspend to disk and paste the output in /var/log/messages starting from the suspend. Thanks.
Comment 7 Rasmus Plewe 2006-02-17 11:00:03 UTC
echo "disk" > /sys/power/state
results in "echo: write error: Invalid argument", /sys/power/state is still "mem". -> kernel-bug
Kernel is 2.6.16-rc3-git3-2-smp for x86_64. 
Comment 8 Holger Macht 2006-02-17 11:17:47 UTC
Just to make this clear. /sys/power/state on x86_64 with Beta 3.95 _only_ contains 'mem'. Assigning to kernel maintainer...
Comment 9 Rasmus Plewe 2006-02-17 18:01:26 UTC
The problem is still present in beta4. 
Comment 10 Pavel Machek 2006-02-18 20:17:08 UTC
Stefan, is it broken on other x86-64 systems, too? Did someone disable CONFIG_SWSUSP or what?
Comment 11 Forgotten User ZhJd0F0L3x 2006-02-19 11:12:38 UTC
i have no idea, but the kernel team has lots of x86_64 machines in the suse network; should be easy to check.
Comment 12 Pavel Machek 2006-02-20 13:57:57 UTC
Heh, we should really get at least one x86_64 machine near to you. Perhaps you can steal Bodo's :-).
Comment 13 Rasmus Plewe 2006-02-20 15:13:52 UTC
Too late, I already got Bodo's old machi^YYes, you could steal Bodo's, I think. ;-)

Anyway, from /proc/config.gz:
CONFIG_SOFTWARE_SUSPEND=y


Comment 14 Pavel Machek 2006-02-20 18:03:42 UTC
Does it happen on more than one machine? Holger, can you reproduce it?
Comment 15 Forgotten User ZhJd0F0L3x 2006-02-20 18:29:30 UTC
i am installing an x86_64 machine right now.
Comment 16 Forgotten User ZhJd0F0L3x 2006-02-20 18:55:37 UTC
works fine. Works also fine on Rasmus' machine. It might be that there was a problem after the first boot (maybe the resume-partition setup was incorrect?) that caused the missing "disk" in /sys/power/state, but now everything is fine.

So i' would say...
Comment 17 Rasmus Plewe 2006-02-21 10:28:17 UTC
OK, so you mixed something up (suspending NLD10 b4 does not mean it's working with SL10.1 b4 also), and I mixed something up, because the 
CONFIG_SOFTWARE_SUSPEND on SL10.0 is actually not set (comment #13 was NLD10 b4, because I also mixed up the installations). 
Comment 18 Forgotten User ZhJd0F0L3x 2006-02-21 11:13:31 UTC
(In reply to comment #17)
> OK, so you mixed something up (suspending NLD10 b4 does not mean it's working
> with SL10.1 b4 also), and I mixed something up, because the 
> CONFIG_SOFTWARE_SUSPEND on SL10.0 is actually not set (comment #13 was NLD10
> b4, because I also mixed up the installations). 

So there is a difference between NLD10B4 kernel and SL10.1B4 kernel.
Comment 19 Forgotten User ZhJd0F0L3x 2006-02-21 11:14:47 UTC
since Code10 is binary identical packages, this is a blocker IMO
Comment 20 Andreas Jaeger 2006-02-21 12:26:24 UTC
Please prove that they are different:

aj@reger:/mounts/dist/install/SLP/NLD-10-Beta4/i386/CD1/suse/i586> l kernel-default-2.6.16_rc3_git3-2.i586.rpm
-rw-r--r--  1 root root 17814624 2006-02-16 03:49 kernel-default-2.6.16_rc3_git3-2.i586.rpm

2aab37dc63f60000436ad90624b32de1  kernel-default-2.6.16_rc3_git3-2.i586.rpm


aj@reger:/mounts/dist/install/SLP/SUSE-10.1-Beta4/i386/CD1/suse/i586> l kernel-default-2.6.16_rc3_git3-2.i586.rpm
-rw-r--r--  1 root root 17814624 2006-02-16 03:49 kernel-default-2.6.16_rc3_git3-2.i586.rpm
aj@reger:/mounts/dist/install/SLP/SUSE-10.1-Beta4/i386/CD1/suse/i586> md5sum kernel-default-2.6.16_rc3_git3-2.i586.rpm
2aab37dc63f60000436ad90624b32de1  kernel-default-2.6.16_rc3_git3-2.i586.rpm


So, the two media have exactly the same kernel.
Comment 21 Forgotten User ZhJd0F0L3x 2006-02-21 14:39:47 UTC
Rasmus, either show what you installed or close as invalid :-)
Comment 22 Rasmus Plewe 2006-02-21 15:06:48 UTC
/etc/SuSE-release
SUSE LINUX 10.0.42 (X86-64) OSS Beta4
VERSION = 10.0.42
kernel-default-2.6.16_rc3_git3-2
/proc/config.gz:
# CONFIG_SOFTWARE_SUSPEND is not set
-> powersave -U does not work


/etc/SuSE-release
Novell Linux Desktop 10 (x86_64)
VERSION = 10
RELEASE = 9
kernel-default-2.6.16_rc3_git3-2
/proc/config.gz:
CONFIG_SOFTWARE_SUSPEND=y
-> powersave -U does work


I'm not sure what Andreas wants to tell us by quoting i386 kernel md5sums, but fact is that the x86_64 kernels are identical, too. 

Comment 23 Rasmus Plewe 2006-02-21 15:22:51 UTC
NLD10 beta4:
# uname -a
Linux kaczynski 2.6.16-rc3-git3-2-default #1 Wed Feb 15 15:03:23 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
# rpm -q kernel-default --changelog |head
* Wed Feb 15 2006 - axboe@suse.de
- patches.drivers/sata-mv-fua: FUA write command missing from
  its dma list.

* Wed Feb 15 2006 - hare@suse.de
- patches.arch/s390-01-09-october2005.diff
  Add statistics support for zfcp (149742 - LTC21427)
- patches.arch/s390-statistic-disclamier.diff
  Add disclaimer for statistics interface.
- Update config files


SL10.1 beta4
# uname -a
Linux kaczynski 2.6.16-rc3-git3-2-smp #1 SMP Wed Feb 15 15:03:23 UTC 2006 x86_64 x86_64 x86_64 GNU
/Linux
# rpm -q kernel-default --changelog |head
* Wed Feb 15 2006 - axboe@suse.de
- patches.drivers/sata-mv-fua: FUA write command missing from
  its dma list.

* Wed Feb 15 2006 - hare@suse.de
- patches.arch/s390-01-09-october2005.diff
  Add statistics support for zfcp (149742 - LTC21427)
- patches.arch/s390-statistic-disclamier.diff
  Add disclaimer for statistics interface.
- Update config files


Andreas said to close and retest with beta5...
Comment 24 Rasmus Plewe 2006-03-10 14:26:29 UTC
Problem still exists with beta7:
- NLD kernel is able to suspend to disk (CONFIG_SOFTWARE_SUSPEND=y)
- SL kernel is not able to suspend to disk (# CONFIG_SOFTWARE_SUSPEND is not set)
Comment 25 Andreas Jaeger 2006-03-10 15:21:18 UTC
I don't believe it and will come to your office on monday to look personally at the machine.
Comment 26 Rasmus Plewe 2006-03-10 15:31:18 UTC
You're welcome (don't forget to bring some cake, though! ;-). 

The SL 10.1 beta7 installation can be identified by:
# cat /etc/SuSE-release
SUSE LINUX 10.0.42 (X86-64) OSS Beta6
VERSION = 10.0.42

The NLD 10 beta7 installation can be identified by:
# cat /etc/SuSE-release
Novell Linux Desktop 10 (x86_64)
VERSION = 10
RELEASE = 9

You know it has to be beta7, because the one number that definitely is not involved is a "7"...
Comment 28 Andreas Jaeger 2006-03-13 20:42:12 UTC
Comment #26 was a SMP Beta6 kernel vs. a UP Beta7 kernel.  Those are configured
differentely...

Rasmus, better install everywhere an UP kernel!
Comment 29 Rasmus Plewe 2006-03-22 16:47:33 UTC
Beta8, SLED (SL works), the story continues: 

uname -r
2.6.16-rc6-git1-4-smp

/proc/cmdline
root=/dev/hda2 vga=791 selinux=0 resume=/dev/hda3 splash=silent
[I had to add the "resume=" manually, it was not put there by the installation procedure]

/proc/config.gz:
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_SUSPEND_SMP=y

/sys/power/state 
mem 

Symptom: System does not suspend to disk. 

Now, please don't tell me "please install the right kernel" here. *I* didn't install anything, I simply hit "enter" the whole time during installation, so if the outcome is wrong, there is a bug. Having an Enterprise Desktop that is unable to suspend to disk on a machine where it's possible to do so is not good. 
Comment 30 Forgotten User ZhJd0F0L3x 2006-03-22 17:09:58 UTC
and even smp kernels on AMD64 should be able to suspend AFAIK.
Comment 31 Andreas Jaeger 2006-03-22 18:38:20 UTC
The bug your reported is fixed.

this is a different bug - and fixed:
-------------------------------------------------------------------
Wed Mar 22 16:17:02 CET 2006 - trenn@suse.de

- Update config files.
  Added CONFIG_SOFTWARE_SUSPEND=y for x86_64 smp.