From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Carl-Daniel Hailfinger
<c-d.hailfinger.devel.2005-hi6Y0CQ0nG0@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Re: S3 suspend and serial console
Date: Tue, 8 Feb 2005 17:31:43 +0100 [thread overview]
Message-ID: <20050208163143.GF1622@elf.ucw.cz> (raw)
In-Reply-To: <4208C674.1000002-hi6Y0CQ0nG0@public.gmane.org>
Hi!
> >>Regarding the original problem:
> >>It seems the following call is sufficient to make the console work
> >>again. However, I haven't found a function which would give me
> >>the parameters needed to call ->set_termios.
> >>
> >>serial/8250.c: serial8250_set_termios
> >>
> >>Do you have any idea how to obtain the termios and tty structures
> >>for a given port, e.g. ttyS0?
> >
> > Save some termios passed to it in static variable and than use that
> > one as a quick hack...
>
> Yes, that will hopefully work. The hack I'm using right now causes
> random oopses, but at least the serial console can display them :-|
Are you using 8250.c? It seems to have some suspend/resume
support. Perhaps you should talk to Russell King?
> --- 1.44/drivers/acpi/sleep/main.c 2005-01-15 23:01:53 +01:00
> +++ edited/drivers/acpi/sleep/main.c 2005-02-08 13:16:13 +01:00
> @@ -18,6 +18,7 @@
> #include <acpi/acpi_bus.h>
> #include <acpi/acpi_drivers.h>
> #include "sleep.h"
> +#include <linux/syscalls.h>
>
> u8 sleep_states[ACPI_S_STATE_COUNT];
>
> @@ -82,6 +83,7 @@
> acpi_status status = AE_OK;
> unsigned long flags = 0;
> u32 acpi_state = acpi_suspend_states[pm_state];
> + struct file* filp;
>
> ACPI_FLUSH_CPU_CACHE();
>
> @@ -126,6 +128,8 @@
> if (pm_state > PM_SUSPEND_STANDBY)
> acpi_restore_state_mem();
>
> + filp = filp_open("/dev/ttyS0", O_WRONLY, 0);
> + filp_close(filp, NULL);
> Any idea why that darn thing oopses on me at random locations?
Yes, you can only do such stuff from process context etc... not from
some random place like this.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
prev parent reply other threads:[~2005-02-08 16:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 14:09 S3 suspend and serial console Carl-Daniel Hailfinger
[not found] ` <42023083.8030508-hi6Y0CQ0nG0@public.gmane.org>
2005-02-05 13:29 ` Carl-Daniel Hailfinger
[not found] ` <4204CA50.8090906-hi6Y0CQ0nG0@public.gmane.org>
2005-02-05 15:58 ` Karol Kozimor
[not found] ` <20050205155845.GA20131-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2005-02-05 22:06 ` Stefan Seyfried
[not found] ` <20050205220619.GA30739-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2005-02-07 2:16 ` Carl-Daniel Hailfinger
[not found] ` <4206CF63.2090600-hi6Y0CQ0nG0@public.gmane.org>
2005-02-07 14:16 ` Pavel Machek
[not found] ` <20050207141655.GB8040-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-02-07 14:28 ` Carl-Daniel Hailfinger
[not found] ` <42077B07.5090606-hi6Y0CQ0nG0@public.gmane.org>
2005-02-07 14:32 ` Pavel Machek
[not found] ` <20050207143242.GE8040-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-02-07 17:14 ` Carl-Daniel Hailfinger
[not found] ` <4207A211.3000305-hi6Y0CQ0nG0@public.gmane.org>
2005-02-07 22:04 ` Nigel Cunningham
2005-02-08 12:54 ` Pavel Machek
[not found] ` <20050208125453.GA1622-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-02-08 14:02 ` Carl-Daniel Hailfinger
[not found] ` <4208C674.1000002-hi6Y0CQ0nG0@public.gmane.org>
2005-02-08 16:31 ` Pavel Machek [this message]
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=20050208163143.GF1622@elf.ucw.cz \
--to=pavel-+zi9xunit7i@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=c-d.hailfinger.devel.2005-hi6Y0CQ0nG0@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