mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alfred E. Heggestad" <linuxedmund@home.no>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Fix stack handling in acpi_wakeup.S
Date: 15 Feb 2003 13:15:20 +0100	[thread overview]
Message-ID: <1045311319.14740.25.camel@tellus> (raw)
In-Reply-To: <20030211184452.GA24966@elf.ucw.cz>

Hi Pavel

I applied this patch to 2.5.60 and when doing the
software suspend it did manage to start the freezing
process (process X into refrigerator etc...) but crashed
once in ide.c - apologies I do not have any more details
and I cannot reproduce that one.

Doing software suspend now will freeze all procs and
hang on the last one:

# echo 4 > /proc/acpi/sleep

...
=<proc> entered refrigerator
=| entered refrigerator

-> hang

This happens both with 2.5.60 plus Pavel acpi_wakeup.S patch
and vanilla 2.5.61, also with or withour X running.

My machine is a Sony Vaio VX71P, details can be found here:

http://lamis.wyrdweb.com/~alfredh/vaio_vx71p/

/alfred

On Tue, 2003-02-11 at 19:44, Pavel Machek wrote:
> Hi!
> 
> This fixes stack handling in acpi_wakeup.S, and makes stack smaller so
> that wakeup code actually fits inside memory allocated for it. Plus
> someone renamed .L1432 to something meaningfull. Please apply,
> 								Pavel
> 
> --- clean/arch/i386/kernel/acpi_wakeup.S	2003-02-11 17:40:33.000000000 +0100
> +++ linux/arch/i386/kernel/acpi_wakeup.S	2003-02-11 12:51:03.000000000 +0100
> @@ -31,7 +31,7 @@
>  	movw	%cs, %ax
>  	movw	%ax, %ds					# Make ds:0 point to wakeup_start
>  	movw	%ax, %ss
> -	mov	wakeup_stack - wakeup_code, %sp			# Private stack is needed for ASUS board
> +	mov	$(wakeup_stack - wakeup_code), %sp		# Private stack is needed for ASUS board
>  	movw	$0x0e00 + 'S', %fs:(0x12)
>  
>  	pushl	$0						# Kill any dangerous flags
> @@ -159,12 +159,14 @@
>  	.code32
>  	ALIGN
>  
> +.org	0x800
> +wakeup_stack_begin:	# Stack grows down
>  
> -.org	0x2000
> +.org	0xff0		# Just below end of page
>  wakeup_stack:
> -.org	0x3000
>  ENTRY(wakeup_end)
> -.org	0x4000
> +	
> +.org	0x1000
>  
>  wakeup_pmode_return:
>  	movl	$__KERNEL_DS, %eax
> @@ -274,7 +276,7 @@
>  
>  ENTRY(do_suspend_lowlevel)
>  	cmpl $0,4(%esp)
> -	jne .L1432
> +	jne ret_point
>  	call save_processor_state
>  
>  	movl %esp, saved_context_esp
> @@ -287,7 +289,7 @@
>  	movl %edi, saved_context_edi
>  	pushfl ; popl saved_context_eflags
>  
> -	movl $.L1432,saved_eip
> +	movl $ret_point,saved_eip
>  	movl %esp,saved_esp
>  	movl %ebp,saved_ebp
>  	movl %ebx,saved_ebx
> @@ -299,7 +301,7 @@
>  	addl $4,%esp
>  	ret
>  	.p2align 4,,7
> -.L1432:
> +ret_point:
>  	movl $__KERNEL_DS,%eax
>  	movw %ax, %ds
>  	movl saved_context_esp, %esp
-- 
Alfred E. Heggestad <linuxedmund@home.no>


  parent reply	other threads:[~2003-02-15 12:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 18:44 Pavel Machek
2003-02-13 19:17 ` David Woodhouse
2003-02-15 12:15 ` Alfred E. Heggestad [this message]
2003-02-15 17:49   ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1045311319.14740.25.camel@tellus \
    --to=linuxedmund@home.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®