From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Jack Byer <ojbyer@usa.net>
Cc: linux-kernel@vger.kernel.org,
Robert Hancock <hancockrwd@gmail.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>, Andreas Mohr <andi@lisas.de>,
linux-ide@vger.kernel.org
Subject: Re: Extremely slow IO with a PCMCIA CompactFlash adapter
Date: Tue, 4 Aug 2009 12:54:08 +0200 [thread overview]
Message-ID: <200908041254.08315.bzolnier@gmail.com> (raw)
In-Reply-To: <cdb43e8a0908021825y7d029614pffad28e6dd70f04c@mail.gmail.com>
On Monday 03 August 2009 03:25:18 Jack Byer wrote:
> >
> > Seems like there is also a bug in ali5451 sound driver..
> >
> > This should help:
[...]
> Those patches do not appear to have worked:
My bad, jiffies checks need to be reversed now (corrected patch attached)..
Please also post output of dmidecode command -- we may try to workaround
the issue by not using IRQ mode in pata_pcmcia for this particular system
and resorting to libata's polling mode instead..
---
sound/pci/ali5451/ali5451.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Index: b/sound/pci/ali5451/ali5451.c
===================================================================
--- a/sound/pci/ali5451/ali5451.c
+++ b/sound/pci/ali5451/ali5451.c
@@ -314,8 +314,11 @@ static int snd_ali_codec_ready(struct sn
res = snd_ali_5451_peek(codec,port);
if (!(res & 0x8000))
return 0;
+ if (!time_after_eq(end_time, jiffies))
+ break;
schedule_timeout_uninterruptible(1);
- } while (time_after_eq(end_time, jiffies));
+ } while (1);
+
snd_ali_5451_poke(codec, port, res & ~0x8000);
snd_printdd("ali_codec_ready: codec is not ready.\n ");
return -EIO;
@@ -327,15 +330,17 @@ static int snd_ali_stimer_ready(struct s
unsigned long dwChk1,dwChk2;
dwChk1 = snd_ali_5451_peek(codec, ALI_STIMER);
- dwChk2 = snd_ali_5451_peek(codec, ALI_STIMER);
end_time = jiffies + msecs_to_jiffies(250);
do {
dwChk2 = snd_ali_5451_peek(codec, ALI_STIMER);
if (dwChk2 != dwChk1)
return 0;
+ if (!time_after_eq(end_time, jiffies))
+ break;
schedule_timeout_uninterruptible(1);
- } while (time_after_eq(end_time, jiffies));
+ } while (1);
+
snd_printk(KERN_ERR "ali_stimer_read: stimer is not ready.\n");
return -EIO;
}
prev parent reply other threads:[~2009-08-04 10:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-01 14:02 Extremely slow IO with a PCMCIA CompactFlash adapter Jack Byer
2009-08-01 15:52 ` Andreas Mohr
2009-08-01 18:32 ` Robert Hancock
2009-08-01 22:44 ` Jack Byer
2009-08-02 6:57 ` Robert Hancock
2009-08-02 10:58 ` Alan Cox
2009-08-02 13:24 ` Jack Byer
2009-08-02 17:04 ` Robert Hancock
2009-08-02 13:38 ` Bartlomiej Zolnierkiewicz
2009-08-02 15:30 ` Jack Byer
2009-08-02 18:27 ` Bartlomiej Zolnierkiewicz
2009-08-03 1:25 ` Jack Byer
2009-08-04 10:54 ` Bartlomiej Zolnierkiewicz [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=200908041254.08315.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andi@lisas.de \
--cc=hancockrwd@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ojbyer@usa.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.