From: ole.rohne-vJEk5272eHo@public.gmane.org
To: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
aman-e31a5gnSYeGubukWoKzokaxOck334EZe@public.gmane.org,
stefandoesinger-RbZlAiThDcE@public.gmane.org,
emmanuel.thome-/zGXu1G9BXs@public.gmane.org,
software-v2/BnvaKusE@public.gmane.org
Subject: Re: Radeon S3/resume: VGA ROM POST from kernel
Date: 24 Jul 2004 17:26:48 +0200 [thread overview]
Message-ID: <yzosmbhpgsn.fsf@localhost.localdomain> (raw)
In-Reply-To: <20040724131432.GB3004-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
Pavel> Agreed, I like this patch.
Cool... Let's see if it's still like that when I've explained how it
works.
Pavel> If you are adding comment with function name, you should at least
Pavel> explain what the function does... or not add the comment at all.
Sure. Ditto for acpi_restore_state from the stock kernel sources that
I started with:-)
Pavel> Please indent using one tab.
Sorry, I must have forgotten to M-x load linux-c-mode
>> (...)
>> + do_vgapost_lowlevel(acpi_wakeup_address);
>> (...)
Pavel> This needs BUG_ON(num_online_cpus() != 1) to avoid bad
Pavel> disaster, right?
Sounds like a good idea.
>> testl $1, video_flags - wakeup_code
>> jz 1f
>> + movw video_flags - wakeup_code + 2, %ax
>> lcall $0xc000,$3
Pavel> Are you sure you wanted to touch this code? Zeroing %ax on entry to
Pavel> BIOS might be good idea, but...
It is absolutely necessary, see below for how I've reused the
real->pmode switch. The VGA BIOS expect the PCI bus/slot/function from
%ax and C passes us that information in the upper 16 bits of
acpi_video_flags.
Pavel> Ouch, so you call wakeup_start once again?
Yes, I didn't want to implement yet another real->pmode switch, it
would have been a blue-print copy of wakeup_start and
acpi_copy_wakeup_routine anyway.
Pavel> ...that's certainly interesting design. Does that mean that
Pavel> 'phony return code' is never reached?
It is never reached and should be deleted. It is just a remnant of an
early test stage.
Pavel> How do you manage to return from this routine?
Precisely like do_suspend_lowlevel_s4bios: calling save_registers and
effectively reusing the tail-end of do_suspend_lowlevel.
Ole
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
next prev parent reply other threads:[~2004-07-24 15:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e1c05edd04070109394afd3332@mail.gmail.com>
[not found] ` <e1c05edd04070109394afd3332-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2004-07-19 9:31 ` Radeon S3/resume: VGA ROM POST from kernel ole.rohne-vJEk5272eHo
[not found] ` <yzoy8lggx6v.fsf_-_-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-07-19 17:38 ` Stefan Dösinger
[not found] ` <200407191938.17104.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-07-19 20:29 ` Aman Gupta
2004-07-19 21:21 ` Herman Sheremetyev
[not found] ` <1090272101.2163.228.camel-O4LVqDAXoJg@public.gmane.org>
2004-07-24 12:51 ` Pavel Machek
2004-07-24 13:14 ` Pavel Machek
[not found] ` <20040724131432.GB3004-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-07-24 15:26 ` ole.rohne-vJEk5272eHo [this message]
[not found] ` <yzosmbhpgsn.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-07-24 15:56 ` Pavel Machek
2004-07-30 9:35 ` Emmanuel Thomé
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=yzosmbhpgsn.fsf@localhost.localdomain \
--to=ole.rohne-vjek5272eho@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=aman-e31a5gnSYeGubukWoKzokaxOck334EZe@public.gmane.org \
--cc=emmanuel.thome-/zGXu1G9BXs@public.gmane.org \
--cc=pavel-+ZI9xUNit7I@public.gmane.org \
--cc=software-v2/BnvaKusE@public.gmane.org \
--cc=stefandoesinger-RbZlAiThDcE@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