public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Alberto Piai <albeclemit-whZMOeQn8C0@public.gmane.org>
Cc: HIROIT-JE5g2YyFxFHQT0dZR+AlfA@public.gmane.org,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Subject: Re: Re: S3 resume on Fujitsu-Siemens Amilo A7620 (CONTINUES)
Date: Mon, 18 Oct 2004 23:22:08 +0200	[thread overview]
Message-ID: <20041018212208.GA10490@elf.ucw.cz> (raw)
In-Reply-To: <20041018225412.397dcd1f.albeclemit-whZMOeQn8C0@public.gmane.org>

Hi!

> > Yes, you are going out of wakeup.S... Actually no. You are going to
> > ret_point down in do_suspend_lowlevel.
> 
> Update: code is executed until
> [...]
> ENTRY(do_suspend_lowlevel)
> 	call	save_processor_state
> 	call	save_registers
> 	pushl	$3
> 	call	acpi_enter_sleep_state
> 	addl	$4,%esp
> 	ret
> 	.p2align 4,,7
> ret_point:
> 	call	restore_registers
> 	call	restore_processor_state
> 	# Here it's still alive :)
> 	ret
> [...]
> 
> So now it's going out of wakeup.S, right?

Good.

> We should be in drivers/acpi/sleep/main.c at that point

Yes. I assume that video does not work for you? Do you see at least
blinking cursor?

...hmm, problem is that normal video calls really require stack. Very
bad.

> 	case PM_SUSPEND_STANDBY:
> 		barrier();
> 		status = acpi_enter_sleep_state(acpi_state);
> 		break;
> 
> 	case PM_SUSPEND_MEM:
> 		do_suspend_lowlevel();
> 		break;
> 
> 	case PM_SUSPEND_DISK:
> 		if (acpi_pm_ops.pm_disk_mode == PM_DISK_PLATFORM)
> 			status = acpi_enter_sleep_state(acpi_state);
> 		else
> 			do_suspend_lowlevel_s4bios();
> 		break;
> 	default:
> 		return -EINVAL;
> 	}
> 	local_irq_restore(flags);
> 	printk(KERN_DEBUG "Back to C!\n");
> [...]
> right? 
> Can i use some beep code from here as well?

You'd have to wrap it with asm("") at least, and need right
constraints.... Hmm, this should be C-equivalent. First try it
somewhere in normal code.

outb(inb(97), 0x80); outb_p(3, 97); outb_p(-74,67); outb_p(-119,66);
outb_p(15,66);


> I won't sleep until this laptop resumes! ;)

Given that human can only handle about 72 hours without sleep... I'd
say that is bad idea.

								Pavel

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

  parent reply	other threads:[~2004-10-18 21:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 11:42 S3 resume on Fujitsu-Siemens Amilo A7620 (CONTINUES) Alberto Piai
     [not found] ` <20041018134238.4cf1b380.albeclemit-whZMOeQn8C0@public.gmane.org>
2004-10-18 12:47   ` Pavel Machek
     [not found]     ` <20041018124756.GA28463-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-10-18 20:54       ` Alberto Piai
     [not found]         ` <20041018225412.397dcd1f.albeclemit-whZMOeQn8C0@public.gmane.org>
2004-10-18 21:22           ` Pavel Machek [this message]
     [not found]             ` <20041018212208.GA10490-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-10-18 22:21               ` Alberto Piai
     [not found]                 ` <20041019002115.2faa9436.albeclemit-whZMOeQn8C0@public.gmane.org>
2004-10-18 23:00                   ` Pavel Machek
     [not found]                     ` <20041018230008.GC10490-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-10-27 22:44                       ` Alberto Piai
     [not found]                         ` <20041028004424.1b0f95fb.albeclemit-whZMOeQn8C0@public.gmane.org>
2004-10-27 23:47                           ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2004-11-30 11:39 Yu, Luming
2004-12-07 19:12 ` Alberto Piai

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=20041018212208.GA10490@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=HIROIT-JE5g2YyFxFHQT0dZR+AlfA@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=albeclemit-whZMOeQn8C0@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /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