public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Nathan Bryant <nbryant@optonline.net>
To: Nathan Bryant <nbryant@optonline.net>
Cc: Norbert Preining <preining@logic.at>,
	Stefan Seyfried <seife@gmane0305.slipkontur.de>,
	acpi-devel@lists.sourceforge.net, linux-net@vger.kernel.org
Subject: b44 driver suspend/resume (was Re: [ACPI] Re: Re: various problems with Acer TM654, suspend, ACAD, radeon)
Date: Wed, 25 Aug 2004 10:23:49 -0400	[thread overview]
Message-ID: <412CA0F5.4@optonline.net> (raw)
In-Reply-To: <412C9980.803@optonline.net>

Nathan Bryant wrote:
> Norbert Preining wrote:
> 
>> But: I cannot load b44 module, I always get this treadfull error, see
>> other thread about     b44: Error, poll already scheduled
> 
> 
> Right now this looks like a driver issue, since the driver isn't 
> claiming the interrupt after resume. (From your /proc/interrupts in your 
> previous email.)
> 
> Somebody needs to check if there is some code path that could prevent 
> b44 from calling request_irq()...
> 

Oops, never mind that. That's just because you hadn't ifup'd the device 
yet. But I still suspect a driver issue; your IRQ routing looks like it 
should be OK, but somebody is sending repeated interrupts. You could 
test with "acpi=noirq", but I don't think that will help.

What seems to be happening is the b44 hardware (or somebody else on 
irq5, maybe usb) is posting interrupts and the b44's status bit is never 
getting cleared.

This could be happening because the PCI card's I/O space hasn't been 
mapped. When I/O space is not mapped, you tend to read 0xFF from the I/O 
space, which would cause our IRQ handler to behave like this. I guess it 
wouldn't be mapped because the machine has just booted (resume from 
disk.) I'm not sure why the kernel doesn't seem to remap the I/O space 
when we call pci_enable_device(), but I have seen and fixed similar 
issues in 3c59x. See 
http://marc.theaimsgroup.com/?l=linux-net&m=109228179320361&w=2

Maybe what's happening here is the kernel believes I/O is already 
mapped, because it has loaded the memory image from before suspend.

I think the first step is to fix the b44 driver's suspend and resume 
callbacks. They are definitely missing some critical PCI calls.

  parent reply	other threads:[~2004-08-25 14:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20 16:19 various problems with Acer TM654, suspend, ACAD, radeon Norbert Preining
     [not found] ` <20040820161911.GA24510-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-20 19:47   ` Stefan Dösinger
     [not found]     ` <200408202147.51250.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-22 10:35       ` Norbert Preining
     [not found]         ` <20040822103542.GA17227-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-22 18:02           ` Stefan Dösinger
     [not found]             ` <200408222002.31563.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-22 19:45               ` Norbert Preining
     [not found]                 ` <20040822194512.GA8158-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-22 20:16                   ` Norbert Preining
     [not found]                     ` <20040822201636.GA10152-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-22 20:33                       ` Stefan Dösinger
     [not found]                         ` <200408222233.30755.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-23  7:35                           ` Norbert Preining
2004-08-23  7:05   ` Stefan Seyfried
     [not found]     ` <20040823070534.GD24853-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2004-08-23 10:35       ` Norbert Preining
     [not found]         ` <20040823103515.GH8635-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-24 23:31           ` Stefan Seyfried
     [not found]             ` <20040824233153.GA15474-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2004-08-25 13:11               ` Norbert Preining
     [not found]                 ` <20040825131109.GD6119-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-25 13:52                   ` Nathan Bryant
     [not found]                     ` <412C9980.803-p32f3XyCuykqcZcGjlUOXw@public.gmane.org>
2004-08-25 14:03                       ` Norbert Preining
2004-08-25 14:23                     ` Nathan Bryant [this message]
2004-08-25 14:40                       ` b44 driver suspend/resume (was Re: [ACPI] Re: Re: various problems with Acer TM654, suspend, ACAD, radeon) Norbert Preining
     [not found]                         ` <20040825144038.GA17522-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-25 14:53                           ` b44 driver suspend/resume (was " Nathan Bryant
2004-08-25 14:54                             ` b44 driver suspend/resume (was Re: [ACPI] " Norbert Preining
2004-08-25 13:52                   ` Re: Re: various problems with Acer TM654, suspend, ACAD, radeon Karol Kozimor
     [not found]                     ` <20040825135213.GA27584-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2004-08-25 13:59                       ` Norbert Preining
     [not found]                         ` <20040825135900.GF6119-DqSSrKF0TaySnEC3TeqHn5dqbFPxfnh/@public.gmane.org>
2004-08-25 14:19                           ` Karol Kozimor
2004-08-26 23:34                   ` Stefan Seyfried

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=412CA0F5.4@optonline.net \
    --to=nbryant@optonline.net \
    --cc=acpi-devel@lists.sourceforge.net \
    --cc=linux-net@vger.kernel.org \
    --cc=preining@logic.at \
    --cc=seife@gmane0305.slipkontur.de \
    /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