From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: Re: S3 resume on Fujitsu-Siemens Amilo A7620 (CONTINUES) Date: Mon, 18 Oct 2004 23:22:08 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20041018212208.GA10490@elf.ucw.cz> References: <20041018134238.4cf1b380.albeclemit@yahoo.it> <20041018124756.GA28463@elf.ucw.cz> <20041018225412.397dcd1f.albeclemit@yahoo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20041018225412.397dcd1f.albeclemit-whZMOeQn8C0@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alberto Piai 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 List-Id: linux-acpi@vger.kernel.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