From: Etienne Basset <etienne.basset-Bf/eaXMDFuuXqB7oj33eUg@public.gmane.org>
To: Jeff Chua <jeff.chua.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Bartlomiej Zolnierkiewicz
<bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
wuzhangjin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>,
rjw-KKrjLPT3xs0@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Ralf Baechle <ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org>,
linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org,
linux-ide-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [Bug #13663] suspend to ram regression (IDE related)
Date: Wed, 01 Jul 2009 23:30:31 +0200 [thread overview]
Message-ID: <4A4BD577.2080609@numericable.fr> (raw)
In-Reply-To: <b6a2187b0907011028r27d35be4xc62c7ed4496dfb2f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Jeff Chua wrote:
> On Thu, Jul 2, 2009 at 12:29 AM, Bartlomiej
> Zolnierkiewicz<bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Here is the more complete version, also taking into the account changes
>> in ide_intr() and ide_timer_expiry():
>
> This works great for. Survived STR, STD. I just applied on top vanilla
> latest Linus's git pull. Nothing else to revert.
>
> Thanks,
> Jeff.
>
>
i confirm, this works for me too :)
thanks,
Etienne
>> ---
>> drivers/ide/ide-io.c | 15 ++++++++++-----
>> 1 file changed, 10 insertions(+), 5 deletions(-)
>>
>> Index: b/drivers/ide/ide-io.c
>> ===================================================================
>> --- a/drivers/ide/ide-io.c
>> +++ b/drivers/ide/ide-io.c
>> @@ -532,7 +532,8 @@ repeat:
>>
>> if (startstop == ide_stopped) {
>> rq = hwif->rq;
>> - hwif->rq = NULL;
>> + if ((drive->dev_flags & IDE_DFLAG_BLOCKED) == 0)
>> + hwif->rq = NULL;
>> goto repeat;
>> }
>> } else
>> @@ -679,8 +680,10 @@ void ide_timer_expiry (unsigned long dat
>> spin_lock_irq(&hwif->lock);
>> enable_irq(hwif->irq);
>> if (startstop == ide_stopped && hwif->polling == 0) {
>> - rq_in_flight = hwif->rq;
>> - hwif->rq = NULL;
>> + if ((drive->dev_flags & IDE_DFLAG_BLOCKED) == 0) {
>> + rq_in_flight = hwif->rq;
>> + hwif->rq = NULL;
>> + }
>> ide_unlock_port(hwif);
>> plug_device = 1;
>> }
>> @@ -856,8 +859,10 @@ irqreturn_t ide_intr (int irq, void *dev
>> */
>> if (startstop == ide_stopped && hwif->polling == 0) {
>> BUG_ON(hwif->handler);
>> - rq_in_flight = hwif->rq;
>> - hwif->rq = NULL;
>> + if ((drive->dev_flags & IDE_DFLAG_BLOCKED) == 0) {
>> + rq_in_flight = hwif->rq;
>> + hwif->rq = NULL;
>> + }
>> ide_unlock_port(hwif);
>> plug_device = 1;
>> }
>>
next prev parent reply other threads:[~2009-07-01 21:30 UTC|newest]
Thread overview: 115+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 0:26 2.6.31-rc1-git3: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-06-29 0:26 ` [Bug #13109] High latency on /sys/class/thermal Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13219] Intel 440GX: Since kernel 2.6.30-rc1, computers hangs randomly but not with kernel <= 2.6.29.4 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13318] AGP doesn't work anymore on nforce2 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13179] CD-R: wodim intermittent failures Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13277] 2.6.30 regression - hang on 2nd resume - bisected - Thinkpad X40 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13119] Trouble with make-install from a NFS mount Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13306] hibernate slow on _second_ run Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13319] Page allocation failures with b43 and p54usb Rafael J. Wysocki
2009-06-29 16:51 ` Larry Finger
[not found] ` <4A48F114.1010702-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
2009-06-29 23:15 ` Rafael J. Wysocki
2009-06-29 23:47 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906291642520.17663-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 2:06 ` Larry Finger
2009-06-30 5:47 ` David Rientjes
2009-06-30 6:55 ` Pekka Enberg
[not found] ` <84144f020906292355o7cf63f7ch47bd19961cf92da3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-30 7:47 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906300032310.11018-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 8:24 ` Pekka Enberg
2009-06-30 14:38 ` Larry Finger
[not found] ` <84144f020906300124n24e206b5tc85dd5cc4661bde7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-30 20:25 ` David Rientjes
2009-06-30 14:32 ` Christoph Lameter
2009-06-30 15:01 ` Pekka Enberg
2009-06-30 15:14 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0906301114450.3879-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-06-30 20:04 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906301248000.16312-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 21:05 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0906301632570.22158-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-06-30 21:15 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906301413460.24397-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 21:23 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0906301722280.17682-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-06-30 21:52 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906301445070.26290-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 22:18 ` Christoph Lameter
2009-07-01 5:53 ` Pekka Enberg
[not found] ` <84144f020906302253n2424d4a5k3aaf124838a041df-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-02 17:18 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0907021016380.30890-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-03 7:23 ` Pekka Enberg
[not found] ` <84144f020907030023v2d09632bt13b6c25f96c0b803-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-07 6:02 ` [patch] slub: add option to disable higher order debugging slabs David Rientjes
[not found] ` <alpine.DEB.2.00.0907062252500.9699-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-07 7:14 ` [patch v2] " David Rientjes
[not found] ` <alpine.DEB.2.00.0907070013400.14978-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-07 15:57 ` Christoph Lameter
[not found] ` <alpine.DEB.1.10.0907071150010.5124-gkYfJU5Cukgdnm+yROfE0A@public.gmane.org>
2009-07-09 23:26 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0907091620470.16817-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-10 6:54 ` Pekka Enberg
2009-07-10 18:47 ` Christoph Lameter
2009-06-29 0:30 ` [Bug #13328] b44: eth0: BUG! Timeout waiting for bit 00000002 of register 42c to clear Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13337] [post 2.6.29 regression] hang during suspend of b44/b43 modules Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13341] Random Oops at boot at loading ip6tables rules Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13362] rt2x00: slow wifi with correct basic rate bitmap Rafael J. Wysocki
2009-06-30 18:37 ` Alejandro Riveira Fernández
2009-06-29 0:30 ` [Bug #13373] fbcon, intelfb, i915: INFO: possible circular locking dependency detected Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13351] 2.6.30 corrupts my system after suspend resume with readonly mounted hard disk Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13374] reiserfs blocked for more than 120secs Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13401] pktcdvd writing is really slow with CFQ scheduler (bisected) Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13389] Warning 'Invalid throttling state, reset' gets displayed when it should not be Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13408] Performance regression in 2.6.30-rc7 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13424] possible deadlock when doing governor switching Rafael J. Wysocki
2009-06-29 1:25 ` Mathieu Desnoyers
2009-06-29 18:37 ` Pallipadi, Venkatesh
[not found] ` <1246300665.4534.26170.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-06-29 19:05 ` Mathieu Desnoyers
2009-06-29 0:30 ` [Bug #13407] adb trackpad disappears after suspend to ram Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13471] Loading parport_pc kills the keyboard if ACPI is enabled Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13472] Oops with minicom and USB serial Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13475] suspend/hibernate lockdep warning Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13502] GPE storm causes polling mode, which causes /proc/acpi/battery read to take 4 seconds - MacBookPro4,1 Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13512] D43 on 2.6.30 doesn't suspend anymore Rafael J. Wysocki
2009-06-29 6:21 ` Daniel Smolik
[not found] ` <4A485D71.5020204-0pWKB23IDFjrBKCeMvbIDA@public.gmane.org>
2009-06-29 23:20 ` Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13554] linux-image-2.6.30-1-686, KMS enabled: black screen, no X window Rafael J. Wysocki
2009-06-29 3:27 ` Jos van Wolput
[not found] ` <4A4834B9.2080507-kN7GrHn7egj0B9fh5IxImPP6llvjuJOh@public.gmane.org>
2009-06-29 23:24 ` Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13528] au0828: major drop in reception quality between 2.6.29.4 and 2.6.30 on HVR-950q Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13514] acer_wmi causes stack corruption Rafael J. Wysocki
2009-06-29 0:30 ` [Bug #13518] slab grows with NFS write activity Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13558] Tracelog during resume Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13613] lockups with JFS (inconsistent lock state) Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13581] ath9k doesn't work with newer kernels Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13620] acpi_enforce_resources broken - conflicting i2c module loaded on some EeePCs Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13621] xfs hangs with assertion failed Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13646] warn_on tty_io.c, broken bluetooth Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13634] [drm:drm_wait_vblank] *ERROR* failed to acquire vblank counter, -22 Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13644] hibernation/swsusp lockup due to acpi-cpufreq Rafael J. Wysocki
2009-06-30 0:40 ` Johannes Stezenbach
[not found] ` <20090630004041.GA11641-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
2009-06-30 12:48 ` Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13624] usb: wrong autosuspend initialization Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13649] Bad page state in process with various applications Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13647] fb/mmap lockdep report Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13648] nfsd: page allocation failure Rafael J. Wysocki
2009-06-30 0:02 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0906291659550.17663-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-06-30 8:05 ` Justin Piszcz
[not found] ` <alpine.DEB.2.00.0906300404210.13871-0qmrozcXWo8bm2hyYBkBBg@public.gmane.org>
2009-06-30 8:48 ` David Rientjes
2009-06-29 0:31 ` [Bug #13668] Can't boot 2.6.30 powerpc kernel under qemu Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13660] Crashes during boot on 2.6.30 / 2.6.31-rc, random programs Rafael J. Wysocki
2009-07-01 20:36 ` Joao Correia
[not found] ` <a5d9929e0907011336g31599a29hca3c204f1b53b775-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-07 14:05 ` Américo Wang
[not found] ` <2375c9f90907070705p1ae6ebe4x61bda34dd072c1c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-07 14:22 ` Joao Correia
2009-07-07 14:44 ` Américo Wang
2009-06-29 0:31 ` [Bug #13651] Anyone know what happened with PC speaker in 2.6.30? Rafael J. Wysocki
2009-06-29 0:31 ` [Bug #13663] suspend to ram regression (IDE related) Rafael J. Wysocki
2009-06-29 10:29 ` Etienne Basset
2009-06-29 10:37 ` David Miller
[not found] ` <20090629.033730.193709457.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2009-06-29 15:51 ` Etienne Basset
[not found] ` <4A48E307.2010208-Bf/eaXMDFuuXqB7oj33eUg@public.gmane.org>
2009-06-29 16:21 ` Jeff Chua
[not found] ` <b6a2187b0906290921w15afd443qccb943ccfd48688b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 14:31 ` Jeff Chua
[not found] ` <b6a2187b0907010731k510150b5u1c7fce8cbed7c33b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 14:47 ` Wu Zhangjin
2009-07-01 16:21 ` Bartlomiej Zolnierkiewicz
[not found] ` <200907011821.26091.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-07-01 16:29 ` Bartlomiej Zolnierkiewicz
[not found] ` <200907011829.16850.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-07-01 17:28 ` Jeff Chua
[not found] ` <b6a2187b0907011028r27d35be4xc62c7ed4496dfb2f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-01 21:30 ` Etienne Basset [this message]
2009-07-02 1:46 ` Wu Zhangjin
2009-07-02 2:09 ` Jeff Chua
2009-07-02 10:46 ` Ralf Baechle
2009-07-02 16:13 ` Bartlomiej Zolnierkiewicz
[not found] ` <200907021813.57322.bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-07-03 3:58 ` Wu Zhangjin
2009-07-03 4:06 ` Wu Zhangjin
2009-07-03 13:08 ` Bartlomiej Zolnierkiewicz
2009-07-03 15:31 ` Wu Zhangjin
2009-07-06 14:57 ` Bartlomiej Zolnierkiewicz
2009-07-06 19:22 ` David Miller
2009-06-29 17:45 ` Bartlomiej Zolnierkiewicz
2009-06-29 0:31 ` [Bug #13669] Kernel bug with dock driver Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-07-06 23:57 2.6.31-rc2: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-07-07 0:01 ` [Bug #13663] suspend to ram regression (IDE related) Rafael J. Wysocki
2009-07-07 18:02 ` Etienne Basset
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=4A4BD577.2080609@numericable.fr \
--to=etienne.basset-bf/eaxmdfuuxqb7oj33eug@public.gmane.org \
--cc=bzolnier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org \
--cc=jeff.chua.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-ide-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
--cc=wuzhangjin-Re5JQEeQqe8AvxtiuMwx3w@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;
as well as URLs for NNTP newsgroup(s).