Re: [Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64

2007-05-20 Thread Stefan Richter
Rafael J. Wysocki wrote:
 libx86-0.99 $ make
 
 Actually, on x86-64 you have to compile it with
 
 $ make BACKEND=x86emu

Yes, both libx86 and s2ram compile now.  There are a few compiler
warnings a la initialization from incompatible pointer typ, cast from
pointer to integer of different size and a printf format string
mismatch.  I will try sometime later what the cvs-downloaded s2ram will
do to my PC.  :-)

 Seife, perhaps we should add this information to README?

Yes please, or add some uname -m | grep x86_64 automatism.
(Maybe I get bored next week and send something.  Unlikely though.)

Thanks for the help.
-- 
Stefan Richter
-=-=-=== -=-= =-=--
http://arcgraph.de/sr/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64

2007-05-20 Thread Stefan Richter
Tim Dijkstra wrote:
 On Sun, 20 May 2007 15:27:18 +0200
 Stefan Richter [EMAIL PROTECTED] wrote:
 
 Rafael wrote:

 Actually, on x86-64 you have to compile it with
 $ make BACKEND=x86emu
 
 Seife, perhaps we should add this information to README?  
 
 It is already clearly documented in the HOWTO.

Now that you point it out --- indeed it is.  I must admit a violation of
the RTFM rule on my part.  On the other hand, I didn't expect the
content of libx86/INSTALL to be found in suspend/HOWTO.

 Yes please, or add some uname -m | grep x86_64 automatism.
 (Maybe I get bored next week and send something.  Unlikely though.)
 
 We agreed to not have libx86 in our cvs anymore. We do not maintain it
 nor develop it. With did a small poll back then; most distros had it
 packaged already.

It's fortunate that they are packaging it, because the upstream libx86
lacks refinement WRT packaging.  (For example, libx86/INSTALL doesn't
exist.)

 So maybe you can package it for gentoo so other people can benefit
 from it.

I wish I had the time, and a machine which would resume after s2ram.
(Maybe with cvs-suspend's s2ram, I'll see.)

But good for me, an old APM notebook finished compiling a new kernel
right now.  This should suffice for my purpose.  I merely wanted to
react on an s2ram related bug report of a driver whose subsystem I
maintain.  I don't need suspend or hibernate for anything else than for
working on that bug.

Anyway, thanks for all the help so far.
-- 
Stefan Richter
-=-=-=== -=-= =-=--
http://arcgraph.de/sr/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64

2007-05-20 Thread Stefan Richter
Rafael J. Wysocki wrote:
 On Sunday, 20 May 2007 20:31, Tim Dijkstra wrote:
(libx86)
 most distros had it packaged already.

Debian-derived distros seem to have it.

 Not available in OpenSUSE 10.2 (or I don't know which package it's in), not
 available in Gentoo, apparently.

The closest things in Gentoo are packages of vbetool and of lrmi, but
these packages don't provide libx86.  There doesn't seem to be an
externally maintained package either.

 Fedora, anyone?

-- 
Stefan Richter
-=-=-=== -=-= =-=--
http://arcgraph.de/sr/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


[Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64

2007-05-19 Thread Stefan Richter
Hi,

the last release of s2ram, the one in suspend-0.5, does not work with
Linux 2.6.22-rc2:

# s2ram -f -a3
Switching from vt7 to vt1
/proc/sys/kernel/acpi_video_flags does not exist; you need a kernel
=2.6.16.
switching back to vt7

The same happens after I switched this deprecated option on:
CONFIG_ACPI_PROCFS=y


So I downloaded the cvs version today and learned that it needs libx86
to be built.  Downloaded libx86-0.99.tar.gz because Gentoo Linux
apparently doesn't provide it.

libx86-0.99 $ make
make LIBRARY=static static
make[1]: Entering directory `/home/stefan/Download/libx86-0.99'
cc -O2 -Wall -DDEBUG -g   -c -o lrmi.o lrmi.c
lrmi.c:83: error: field 'vm' has incomplete type
lrmi.c: In function 'get_int_seg':
lrmi.c:111: warning: cast to pointer from integer of different size
lrmi.c: In function 'get_int_off':
lrmi.c:118: warning: cast to pointer from integer of different size
lrmi.c: In function 'LRMI_init':
lrmi.c:147: warning: cast from pointer to integer of different size
lrmi.c:155: warning: cast from pointer to integer of different size
lrmi.c:156: warning: cast from pointer to integer of different size
lrmi.c: In function 'set_regs':
lrmi.c:191: error: 'IF_MASK' undeclared (first use in this function)
lrmi.c:191: error: (Each undeclared identifier is reported only once
lrmi.c:191: error: for each function it appears in.)
lrmi.c:191: error: 'IOPL_MASK' undeclared (first use in this function)
lrmi.c: In function 'em_inbl':
lrmi.c:337: error: invalid lvalue in asm output 0
lrmi.c: In function 'em_inb':
lrmi.c:345: error: invalid lvalue in asm output 0
lrmi.c: In function 'em_inw':
lrmi.c:353: error: invalid lvalue in asm output 0
lrmi.c: In function 'em_inl':
lrmi.c:361: error: invalid lvalue in asm output 0
lrmi.c: In function 'run_vm86':
lrmi.c:594: warning: implicit declaration of function 'VM86_TYPE'
lrmi.c:594: error: 'VM86_INTx' undeclared (first use in this function)
lrmi.c:595: warning: implicit declaration of function 'VM86_ARG'
lrmi.c:613: error: 'VIF_MASK' undeclared (first use in this function)
lrmi.c:613: error: 'TF_MASK' undeclared (first use in this function)
lrmi.c:618: error: 'VM86_UNKNOWN' undeclared (first use in this function)
lrmi.c: In function 'LRMI_int':
lrmi.c:840: error: 'IF_MASK' undeclared (first use in this function)
lrmi.c:840: error: 'IOPL_MASK' undeclared (first use in this function)
make[1]: *** [lrmi.o] Error 1
make[1]: Leaving directory `/home/stefan/Download/libx86-0.99'
make: *** [default] Error 2


So I added an #include asm-i386/vm86.h to lrmi.c because this defines
struct vm86_struct for me.  Next try:

$ make
make LIBRARY=static static
make[1]: Entering directory `/home/stefan/Download/libx86-0.99'
cc -O2 -Wall -DDEBUG -g   -c -o lrmi.o lrmi.c
lrmi.c: In function 'get_int_seg':
lrmi.c:112: warning: cast to pointer from integer of different size
lrmi.c: In function 'get_int_off':
lrmi.c:119: warning: cast to pointer from integer of different size
lrmi.c: In function 'LRMI_init':
lrmi.c:148: warning: cast from pointer to integer of different size
lrmi.c:156: warning: cast from pointer to integer of different size
lrmi.c:157: warning: cast from pointer to integer of different size
lrmi.c: In function 'emulate':
lrmi.c:410: warning: cast to pointer from integer of different size
/tmp/cc2LxyZV.s: Assembler messages:
/tmp/cc2LxyZV.s:627: Error: Incorrect register `%rax' used with `l' suffix
/tmp/cc2LxyZV.s:922: Error: Incorrect register `%rax' used with `l' suffix
make[1]: *** [lrmi.o] Error 1
make[1]: Leaving directory `/home/stefan/Download/libx86-0.99'
make: *** [default] Error 2


There doesn't seem to be any contact address for libx86 bug reports, so
I'm posting here.

$ uname -m
x86_64
$ gcc --version
gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
-- 
Stefan Richter
-=-=-=== -=-= =--==
http://arcgraph.de/sr/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


[Suspend-devel] empty /sys/power/state?

2007-05-19 Thread Stefan Richter
What's wrong here?

# cat /sys/power/state
# echo mem  /sys/power/state
-su: echo: write error: No such device
# uname -a
Linux mini 2.6.22-rc2 #3 SMP PREEMPT Sat May 19 20:56:46 CEST 2007
x86_64 Intel(R) Core(TM)2 CPU T7600  @ 2.33GHz GenuineIntel
GNU/Linux
# grep -e _PM -e _ACPI /usr/src/linux/.config
CONFIG_PM=y
# CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set
# CONFIG_PM_SYSFS_DEPRECATED is not set
CONFIG_ACPI=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_FAN=m
# CONFIG_ACPI_DOCK is not set
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set
# CONFIG_ACPI_SBS is not set
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_THINKPAD_ACPI is not set
CONFIG_ATA_ACPI=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_PM3 is not set

-- 
Stefan Richter
-=-=-=== -=-= =--==
http://arcgraph.de/sr/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel