kernel-testers.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Kernel Testers List <kernel-testers@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	Jose Marino <braket@hotmail.com>,
	ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Linux PCI <linux-pci@vger.kernel.org>,
	Dominik Brodowski <linux@dominikbrodowski.net>
Subject: Re: Help needed, Re: [Bug #14334] pcmcia suspend regression from 2.6.31.1 to 2.6.31.2 - Dell Inspiron 600m
Date: Sun, 01 Nov 2009 08:01:30 +1100	[thread overview]
Message-ID: <1257022890.7907.14.camel@pasglop> (raw)
In-Reply-To: <200910311031.17660.rjw@sisk.pl>

On Sat, 2009-10-31 at 10:31 +0100, Rafael J. Wysocki wrote:

> > To me the proper approach would be to split it so that
> 
> Well, agreed, but ...
> 
> >  - early_resume() restores power & config space etc... so that existing
> > devices can move on (might check for removal). There's no other hotplug
> > activity
> 
> ... that's exactly what doesn't work at the moment.

BTW. This is a PCMCIA problem, a Cardbus or both ? I'll see if I can dig
something on monday ?

From the little email history I caught, it smells like pcmcia old style.

I don't see a problem per-se with the mutex usage with the new interrupt
masking style as Linus says. socket_resume() also looks reasonably sane,
it's the whole handling of removal that should be deferred. Maybe
instead of doing socket_remove_drivers()...send_event() etc.. in there,
we could simply just shut the socket down (PCMCIA drivers should cope
with sockets returning ffff's for a short amount of time), flag it dead
in skt->state and have the "late" resume  actually fire off the driver
removal and sending of the event.

BTW. Have we ever documented whether it's kosher to ->remove() a driver
before ->resume()'ing it ? (In which case obviously we wouldn't resume
it).

Cheers,  
Ben.


  reply	other threads:[~2009-10-31 21:01 UTC|newest]

Thread overview: 125+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26 18:45 2.6.32-rc5-git3: Reported regressions from 2.6.31 Rafael J. Wysocki
2009-10-26 18:45 ` [Bug #14277] Caught 8-bit read from freed memory in b43 driver at association Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14331] Radeon XPRESS 200M: System hang with radeon DRI and Fedora 10 userspace unless DRI=off Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14302] Kernel panic on i386 machine when booting with profile=2 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14298] warning at manage.c:361 (set_irq_wake), matrix-keypad related? Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14297] console resume broken since ba15ab0e8d Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14296] spitz boots but suspend/resume is broken Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14299] oops in wireless, iwl3945 related? Rafael J. Wysocki
2009-10-27  0:46   ` Pavel Machek
     [not found]     ` <20091027004600.GD5019-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2009-10-27  8:25       ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14354] Bad corruption with 2.6.32-rc1 and upwards Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14353] BUG: sleeping function called from invalid context at kernel/mutex.c:280 Rafael J. Wysocki
2009-10-26 19:11   ` Johannes Berg
     [not found]     ` <1256584306.4237.1.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
2009-10-26 19:18       ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14334] pcmcia suspend regression from 2.6.31.1 to 2.6.31.2 - Dell Inspiron 600m Rafael J. Wysocki
2009-10-30 18:48   ` Help needed, " Rafael J. Wysocki
2009-10-30 19:47     ` Linus Torvalds
2009-10-30 20:32       ` Rafael J. Wysocki
2009-10-30 20:40         ` Linus Torvalds
2009-10-30 21:17           ` Linus Torvalds
     [not found]             ` <alpine.LFD.2.01.0910301412500.31845-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-10-30 22:17               ` Rafael J. Wysocki
2009-10-30 23:54             ` Benjamin Herrenschmidt
2009-10-30 23:57       ` Benjamin Herrenschmidt
2009-10-31  9:31         ` Rafael J. Wysocki
2009-10-31 21:01           ` Benjamin Herrenschmidt [this message]
2009-10-31 21:27             ` Rafael J. Wysocki
2009-10-31 21:44               ` Linus Torvalds
2009-10-31 21:52                 ` Rafael J. Wysocki
     [not found]                   ` <200910312252.39446.rjw-KKrjLPT3xs0@public.gmane.org>
2009-10-31 21:57                     ` Linus Torvalds
     [not found]                       ` <alpine.LFD.2.01.0910311455520.31845-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-10-31 22:10                         ` Rafael J. Wysocki
     [not found]               ` <200910312227.15493.rjw-KKrjLPT3xs0@public.gmane.org>
2009-10-31 22:56                 ` Benjamin Herrenschmidt
2009-10-31 23:10                   ` Rafael J. Wysocki
2009-10-31 23:24                     ` Rafael J. Wysocki
2009-11-01  8:36                       ` Rafael J. Wysocki
2009-11-01 16:47                         ` Dominik Brodowski
     [not found]                           ` <20091101164736.GA5666-S7uyTPAaJ/sb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>
2009-11-02 13:35                             ` Rafael J. Wysocki
     [not found]                         ` <200911010936.10409.rjw-KKrjLPT3xs0@public.gmane.org>
2009-11-01 17:18                           ` Linus Torvalds
2009-11-02 13:39                             ` Rafael J. Wysocki
2009-11-02 17:38                               ` Dominik Brodowski
     [not found]                                 ` <20091102173843.GA662-S7uyTPAaJ/sb6pqDj42GsMgv3T4z79SOrE5yTffgRl4@public.gmane.org>
2009-11-02 18:40                                   ` Rafael J. Wysocki
     [not found]                               ` <200911021439.28266.rjw-KKrjLPT3xs0@public.gmane.org>
2009-11-02 17:50                                 ` Linus Torvalds
2009-11-02 22:22                                 ` Benjamin Herrenschmidt
2009-11-12 12:14                                   ` Pavel Machek
2009-10-26 18:55 ` [Bug #14352] WARNING: at net/mac80211/scan.c:267 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14372] ath5k wireless not working after suspend-resume - eeepc Rafael J. Wysocki
2009-10-26 20:15   ` Fabio Comolli
2009-10-26 20:56     ` Rafael J. Wysocki
     [not found]     ` <b637ec0b0910261315u43033948ge041cf70292bfa58-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-27  9:42       ` Harald Arnesen
     [not found]         ` <87aazddvft.fsf-exrMVdEGsfKEgazeWs4jLoSLwOllVvif@public.gmane.org>
2009-11-04 20:07           ` [Bug #14372] ath5k wireless not working after rfkill [BISECTED] Sitsofe Wheeler
2009-11-04 20:12             ` Fabio Comolli
     [not found]             ` <20091104200714.GA24699-Ae9UE+oIsuU@public.gmane.org>
2009-11-04 22:00               ` John W. Linville
2009-11-04 22:35                 ` Darren Salt
2009-10-26 18:55 ` [Bug #14373] Task blocked for more than 120 seconds Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14355] USB serial regression after 2.6.31.1 with Huawei E169 GSM modem Rafael J. Wysocki
2009-10-27  1:54   ` Benjamin Herrenschmidt
2009-10-27  8:28     ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14375] Intel(R) I/OAT DMA Engine init failed Rafael J. Wysocki
2009-10-26 21:57   ` Alexander Beregalov
     [not found]     ` <a4423d670910261457o2e1ccb7t768199dfd9985270-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-26 22:12       ` Rafael J. Wysocki
2009-10-26 22:13     ` Dan Williams
2009-10-26 18:55 ` [Bug #14376] Kernel NULL pointer dereference/ kvm subsystem Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14378] Problems with net/core/skbuff.c Rafael J. Wysocki
2009-10-26 19:50   ` Eric Dumazet
     [not found]     ` <4AE5FD84.8070906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-26 20:57       ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14379] ACPI Warning for _SB_.BAT0._BIF: Converted Buffer to expected String Rafael J. Wysocki
2009-10-26 19:15   ` Justin P. Mattock
2009-10-26 19:30     ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14383] hackbench regression with kernel 2.6.32-rc1 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14381] iwlagn lost connection after s2ram (with warnings) Rafael J. Wysocki
2009-10-26 19:56   ` Carlos R. Mafra
2009-10-26 18:55 ` [Bug #14380] Video tearing/glitching with T400 laptops Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14389] Build system issue Rafael J. Wysocki
2009-10-26 20:05   ` Ingo Molnar
2009-10-26 20:59     ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14384] tbench regression with 2.6.32-rc1 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14387] deadlock with fallocate Rafael J. Wysocki
2009-10-26 20:41   ` Christoph Hellwig
     [not found]     ` <20091026204120.GA4673-jcswGhMUV9g@public.gmane.org>
2009-10-26 20:46       ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14406] uvcvideo stopped work on Toshiba Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14408] sysctl check failed Rafael J. Wysocki
2009-10-28  3:56   ` Eric W. Biederman
     [not found]     ` <m1k4ygcgsy.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-10-28 18:48       ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14415] Reboot on kernel load Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14390] "bind" a device to a driver doesn't not work anymore Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14430] sync() hangs in bdi_sched_wait Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14472] EXT4 corruption Rafael J. Wysocki
2009-10-29 19:57   ` Andrew Lutomirski
     [not found]     ` <cb0375e10910291257t1f2f16ciade932bd78689ccc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-29 21:33       ` Rafael J. Wysocki
2009-10-29 22:23       ` Theodore Tso
     [not found]         ` <cb0375e10910291534j485b9e55vc42c3ce94a30252c@mail.gmail.com>
2009-10-29 22:43           ` Shawn Starr
     [not found]         ` <20091029222335.GJ18464-3s7WtUTddSA@public.gmane.org>
2009-10-29 22:34           ` Andrew Lutomirski
2009-11-03 23:43           ` Andrew Lutomirski
     [not found]             ` <cb0375e10911031543n5cfcc090k8780449a1413b067-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-05 19:31               ` Theodore Tso
2009-10-26 18:55 ` [Bug #14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14466] EFI boot on x86 fails in .32 Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14467] Linker errors on ia64 with NR_CPUS=4096 Rafael J. Wysocki
2009-10-27 20:28   ` Christoph Lameter
2009-10-27 18:24     ` Jiri Kosina
     [not found]       ` <alpine.LSU.2.00.0910271922490.19847-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2009-10-29 18:39         ` Christoph Lameter
2009-10-29 14:48           ` Tejun Heo
     [not found]             ` <4AE9AB23.8010207-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2009-10-29 18:57               ` Christoph Lameter
2009-10-29 15:11                 ` Tejun Heo
     [not found]                   ` <4AE9B090.9090107-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2009-10-29 19:18                     ` Christoph Lameter
2009-10-29 15:33                       ` Tejun Heo
2009-10-26 18:55 ` [Bug #14473] ATA related kernel warning after resume Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14477] possible circular locking dependency in ISDN PPP Rafael J. Wysocki
2009-10-26 22:00   ` Tilman Schmidt
     [not found]     ` <4AE61C10.5030409-ZTO5kqT2PaM@public.gmane.org>
2009-10-26 22:09       ` Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14480] 2 locks held by cat -- running "find /sys | head -c 4" --> system hang Rafael J. Wysocki
2009-10-26 18:55 ` [Bug #14479] nfs oops Rafael J. Wysocki
2009-10-26 21:07   ` Egon Alter
     [not found]     ` <200910262207.30953.egon.alter-hi6Y0CQ0nG0@public.gmane.org>
2009-10-26 22:16       ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14482] kernel BUG at fs/dcache.c:670 +lvm +md +ext3 Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14481] umount blocked for more than 120 seconds after USB drive removal Rafael J. Wysocki
2009-10-26 23:45   ` Robert Hancock
     [not found]     ` <51f3faa70910261645x16235582keb00a5875f64db14-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-27  8:29       ` Rafael J. Wysocki
2009-10-27  2:04   ` Yong Zhang
2009-10-27  8:30     ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14483] WARNING: at drivers/base/sys.c:353 __sysdev_resume+0x54/0xca() Rafael J. Wysocki
2009-10-26 20:08   ` Justin P. Mattock
     [not found]     ` <4AE601B1.7050000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-26 21:01       ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14484] no video output after suspend Rafael J. Wysocki
2009-10-27 21:25   ` Riccardo Magliocchetti
     [not found]     ` <4AE7654B.6040401-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-27 22:12       ` Rafael J. Wysocki
2009-10-26 18:56 ` [Bug #14485] System lockup running "cat /sys/kernel/debug/dri/0/i915_regs" 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=1257022890.7907.14.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=braket@hotmail.com \
    --cc=gregkh@suse.de \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    --cc=rjw@sisk.pl \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).