From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
To: Patrick Wildi <patrick@wildi.com>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
andre@linux-ide.org
Subject: Re: [RFC][PATCH] 2.4 IDE Serverworks OSB4 DMA patch
Date: Fri, 30 Apr 2004 00:37:10 +0200 [thread overview]
Message-ID: <200404300037.10054.bzolnier@elka.pw.edu.pl> (raw)
In-Reply-To: <Pine.LNX.4.58.0404291455480.13881@bern.wildisoft.net>
On Friday 30 of April 2004 00:09, Patrick Wildi wrote:
> On Thu, 29 Apr 2004, Bartlomiej Zolnierkiewicz wrote:
> > On Thursday 29 of April 2004 21:04, Patrick Wildi wrote:
> > > I have been using a OSB4 chipset based system with a CompactFlash
> > > that supports PIO only and a laptop IBM/Hitachi Travelstar HDD
> > > that supports UDMA.
> > > For both drives, the serverworks code misconfigures the drives:
> > >
> > > - for the CF (hooked up as /dev/hda), svwks_config_drive_xfer_rate()
> > > will not match any tests (drive->autodma = 0, id->capability = 2,
> > > id->field_valid = 1), but the function will then call
> > > hwif->ide_dma_on(drive), which it should not do for this drive.
> > > This patch moves the enabling of DMA up into the DMA section of
> > > the code.
> >
> > Yep, known bug, it is fixed in 2.6.
> >
> > It is present in many other drivers, my 2.6 patch needs to be backported.
>
> Are you the maintainer for 2.4 or to whom should I send the changes?
Send them to me.
> > > - for the Travelstart HDD, the settings coming into
> > > svwks_config_drive_xfer_rate() are: drive->autodma = 32,
> > > id->capability = 15, id->field_valid = 7, id->dma_ultra = 0x43f.
> > > But as this is an OSB4, the hwif->ultra_mask is set to not support
> > > UDMA. Unfortunately in that case svwks_config_drive_xfer_rate()
> > > falls through to the end of the function, instead of trying
> > > other DMA modes.
> >
> > Good catch.
> >
> > It seems the same bug can be present in other drivers too (hint, hint).
> > ;)
>
> I noticed that the piix driver uses the exact same logic. I could
> replicate this part of the patch for other 2.4 drivers. I have no
> way of testing them.
> I can send you a combined patch for 2.4. I am not yet using 2.6.
No problem. :)
Thanks!
Bartlomiej
next prev parent reply other threads:[~2004-04-29 22:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-29 19:04 Patrick Wildi
2004-04-29 19:32 ` Bartlomiej Zolnierkiewicz
2004-04-29 22:09 ` Patrick Wildi
2004-04-29 22:37 ` Bartlomiej Zolnierkiewicz [this message]
2004-04-30 16:44 ` Patrick Wildi
2004-04-30 21:27 ` Bartlomiej Zolnierkiewicz
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=200404300037.10054.bzolnier@elka.pw.edu.pl \
--to=b.zolnierkiewicz@elka.pw.edu.pl \
--cc=andre@linux-ide.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrick@wildi.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
all inboxes | Powered by JetHome®