Re: pmdisk working on ppc (WAS: Help port swsusp to ppc)

From: Colin Leroy
Date: Sun Jan 25 2004 - 13:16:14 EST


On 25 Jan 2004 at 10h01, Benjamin Herrenschmidt wrote:

Hi,

> > Didn't you forget to include include/asm-ppc/suspend.h ? ;-)
>
> Yes, but you could have re-created it easily:

Thanks - I wasn't sure about it.
The kernel now builds. However, after doing
echo disk > /sys/power/state
or "hda14" or "/dev/hda14" (which is my swap partition) instead of "disk",
nothing happens (and nothing gets logged).
The only things different from your patch is that I added PMAC_MB_CAN_SLEEP
to my iBook's entry in pmac_feature.c, and added
return -EBUSY;
after your
if (state != 2 && state != 3)
return 0;
in radeon_pm.c (to avoid pmud putting the iBook to sleep by mistake).

relevant .config part:
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_PM_DISK=y
CONFIG_PM_DISK_PARTITION="/dev/hda14"

Any pointer ? (did I miss something obvious?)

Thanks,
--
Colin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/