From: Andrew Morton <akpm@osdl.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: len.brown@intel.com, linux-kernel@vger.kernel.org,
shaohua.li@intel.com, pavel@suse.cz
Subject: Re: 2.6.12-rc1-mm3: box hangs solid on resume from disk while resuming device drivers
Date: Mon, 2 May 2005 15:54:40 -0700 [thread overview]
Message-ID: <20050502155440.3db8d544.akpm@osdl.org> (raw)
In-Reply-To: <200503251229.47705.rjw@sisk.pl>
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
>
> Hi,
>
> On Friday, 25 of March 2005 09:21, Andrew Morton wrote:
> >
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc1/2.6.12-rc1-mm3/
> >
> > - Mainly a bunch of fixes relative to 2.6.12-rc1-mm2.
>
> First, rmmod works again (thanks ;-)).
>
> > - Again, we'd like people who have had recent DRM and USB resume problems to
> > test and report, please.
>
> My box is still hanged solid on resume (swsusp) by the drivers:
>
> ohci_hcd
> ehci_hcd
> yenta_socket
>
> possibly others, too. To avoid this, I had to revert the following patch from
> the Len's tree:
Rafael, does this problem still exist in latest -mm?
I think it does...
> diff -Naru a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
> --- a/drivers/acpi/pci_link.c 2005-03-24 04:57:27 -08:00
> +++ b/drivers/acpi/pci_link.c 2005-03-24 04:57:27 -08:00
> @@ -72,10 +72,12 @@
> u8 active; /* Current IRQ */
> u8 edge_level; /* All IRQs */
> u8 active_high_low; /* All IRQs */
> - u8 initialized;
> u8 resource_type;
> u8 possible_count;
> u8 possible[ACPI_PCI_LINK_MAX_POSSIBLE];
> + u8 initialized:1;
> + u8 suspend_resume:1;
> + u8 reserved:6;
> };
>
> struct acpi_pci_link {
> @@ -530,6 +532,10 @@
>
> ACPI_FUNCTION_TRACE("acpi_pci_link_allocate");
>
> + if (link->irq.suspend_resume) {
> + acpi_pci_link_set(link, link->irq.active);
> + link->irq.suspend_resume = 0;
> + }
> if (link->irq.initialized)
> return_VALUE(0);
>
> @@ -713,38 +719,24 @@
> return_VALUE(result);
> }
>
> -
> -static int
> -acpi_pci_link_resume (
> - struct acpi_pci_link *link)
> -{
> - ACPI_FUNCTION_TRACE("acpi_pci_link_resume");
> -
> - if (link->irq.active && link->irq.initialized)
> - return_VALUE(acpi_pci_link_set(link, link->irq.active));
> - else
> - return_VALUE(0);
> -}
> -
> -
> static int
> -irqrouter_resume(
> - struct sys_device *dev)
> +irqrouter_suspend(
> + struct sys_device *dev,
> + u32 state)
> {
> struct list_head *node = NULL;
> struct acpi_pci_link *link = NULL;
>
> - ACPI_FUNCTION_TRACE("irqrouter_resume");
> + ACPI_FUNCTION_TRACE("irqrouter_suspend");
>
> list_for_each(node, &acpi_link.entries) {
> -
> link = list_entry(node, struct acpi_pci_link, node);
> if (!link) {
> ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid link context\n"));
> continue;
> }
> -
> - acpi_pci_link_resume(link);
> + if (link->irq.active && link->irq.initialized)
> + link->irq.suspend_resume = 1;
> }
> return_VALUE(0);
> }
> @@ -856,7 +848,7 @@
>
> static struct sysdev_class irqrouter_sysdev_class = {
> set_kset_name("irqrouter"),
> - .resume = irqrouter_resume,
> + .suspend = irqrouter_suspend,
> };
>
>
> # This is a BitKeeper generated diff -Nru style patch.
> #
> # ChangeSet
> # 2005/03/18 16:30:29-05:00 len.brown@intel.com
> # [ACPI] S3 Suspend to RAM: interrupt resume fix
> #
> # Delete PCI Interrupt Link Device .resume method --
> # it is the device driver's job to request interrupts,
> # not the Link's job to remember what the devices want.
> #
> # This addresses the issue of attempting to run
> # the ACPI interpreter too early in resume, when
> # interrupts are still disabled.
> #
> # http://bugzilla.kernel.org/show_bug.cgi?id=3469
> #
> # Signed-off-by: David Shaohua Li <shaohua.li@intel.com>
> # Signed-off-by: Len Brown <len.brown@intel.com>
> #
> # drivers/acpi/pci_link.c
> # 2005/03/02 22:23:50-05:00 len.brown@intel.com +14 -22
> # Delete PCI Interrupt Link .resume method
> #
>
> Greets,
> Rafael
>
>
> --
> - Would you tell me, please, which way I ought to go from here?
> - That depends a good deal on where you want to get to.
> -- Lewis Carroll "Alice's Adventures in Wonderland"
next prev parent reply other threads:[~2005-05-02 22:54 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 8:21 2.6.12-rc1-mm3 Andrew Morton
2005-03-25 10:46 ` 2.6.12-rc1-mm3 Brice Goglin
2005-03-25 11:29 ` 2.6.12-rc1-mm3: box hangs solid on resume from disk while resuming device drivers Rafael J. Wysocki
2005-05-02 22:54 ` Andrew Morton [this message]
2005-05-03 19:34 ` Rafael J. Wysocki
2005-03-25 16:46 ` 2.6.12-rc1-mm3 Borislav Petkov
2005-03-31 13:05 ` 2.6.12-rc1-mm3 Borislav Petkov
2005-03-31 20:11 ` 2.6.12-rc1-mm3 Andrew Morton
2005-03-31 20:57 ` 2.6.12-rc1-mm3 Borislav Petkov
2005-03-25 18:17 ` 2.6.12-rc1-mm3 Barry K. Nathan
2005-03-25 19:50 ` 2.6.12-rc1-mm3 (cannot read cd-rom, 2.6.12-rc1 is OK) Steven Cole
2005-03-25 20:17 ` Steven Cole
2005-03-25 20:24 ` Andrew Morton
2005-03-25 21:22 ` Steven Cole
2005-03-25 21:49 ` Andrew Morton
2005-03-25 22:31 ` Steven Cole
2005-03-25 21:49 ` Jason Munro
2005-03-25 22:06 ` Andrew Morton
2005-03-25 22:23 ` Andrew Morton
2005-03-25 22:43 ` Steven Cole
2005-03-25 22:43 ` Jason Munro
2005-03-25 22:58 ` Andrew Morton
2005-03-25 22:27 ` Chris Wright
2005-03-25 22:27 ` Jason Munro
2005-03-25 22:30 ` Jason Munro
2005-03-26 1:43 ` 2.6.12-rc1-mm3 Jason Uhlenkott
2005-03-26 1:56 ` [ACPI] 2.6.12-rc1-mm3 Len Brown
2005-03-26 2:02 ` Jason Uhlenkott
2005-03-26 2:24 ` Len Brown
2005-03-26 2:57 ` Jason Uhlenkott
2005-03-26 3:40 ` Jesse Barnes
2005-03-26 4:12 ` Len Brown
2005-03-26 5:52 ` Jason Uhlenkott
2005-03-26 10:19 ` 2.6.12-rc1-mm3, sound card lost id Jean Delvare
2005-03-29 12:24 ` [Alsa-devel] " Takashi Iwai
2005-03-29 17:57 ` Jean Delvare
2005-03-29 20:17 ` Lee Revell
2005-03-29 20:46 ` Jean Delvare
2005-03-29 20:52 ` Lee Revell
2005-03-29 21:13 ` Jean Delvare
2005-03-29 21:18 ` Lee Revell
2005-03-30 12:24 ` Takashi Iwai
2005-03-26 19:39 ` PCMCIA Oops (was Re: 2.6.12-rc1-mm3) Sean Neakums
2005-03-26 22:00 ` Dominik Brodowski
2005-03-25 12:54 2.6.12-rc1-mm3: box hangs solid on resume from disk while resuming device drivers Li, Shaohua
2005-03-25 14:19 ` Rafael J. Wysocki
2005-03-26 18:23 ` Rafael J. Wysocki
2005-03-26 19:07 ` Rafael J. Wysocki
2005-03-28 1:22 ` Li Shaohua
2005-03-29 10:33 ` Rafael J. Wysocki
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=20050502155440.3db8d544.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
--cc=rjw@sisk.pl \
--cc=shaohua.li@intel.com \
/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
Powered by JetHome