[lkml]   [2003]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [ACPI] Re: S4bios support for 2.5.63
On Tue, Mar 04, 2003 at 11:06:50AM +1300, Nigel Cunningham wrote:

> You were hitting the BUG_ON before swsusp was even trying to write the
> image?!! That is interesting! Since count_and_copy is first called post
> driver suspend in the current version, perhaps they are somehow related.

Sure, I get this too:

It now says (copied by hand):

freeing memory: .....................|
(this 'freeing' takes ages, around 30 seconds, while in progress, the disk
light blinks every once in a while, perhaps each time while a dot is being
syncing disks
suspending devices
suspending device c0418bcc
suspending devices
suspending device c0418bcc
suspending: hda ------------------[ cut here
trace back:


This happens, I think, from here in kernel/suspend.c:

/* Called from process context */
static int drivers_suspend(void)
device_suspend(4, SUSPEND_NOTIFY);
device_suspend(4, SUSPEND_SAVE_STATE);
device_suspend(4, SUSPEND_DISABLE);

I think the problem occurs on the second call, SUSPEND_SAVE_STATE:

static int idedisk_suspend(struct device *dev, u32 state, u32 level)
ide_drive_t *drive = dev->driver_data;

printk("Suspending device %p\n", dev->driver_data);

/* I hope that every freeze operation from the upper levels have
* already been done...

if (level != SUSPEND_SAVE_STATE)
return 0;

/* set the drive to standby */
printk(KERN_INFO "suspending: %s ", drive->name);
drive->blocked = 1;

BUG_ON (HWGROUP(drive)->handler); // <----- this BUGs
return 0;



-- Open source, database driven DNS Software Linux Advanced Routing & Traffic Control HOWTO Consulting
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.085 / U:7.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site