From: Vojtech Pavlik <vojtech@suse.cz>
To: Shane Wegner <shane@cm.nu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] VIA 4.2x driver for 2.2 kernels
Date: Wed, 21 Feb 2001 08:23:48 +0100 [thread overview]
Message-ID: <20010221082348.A908@suse.cz> (raw)
In-Reply-To: <20010220134028.A5762@suse.cz> <20010220155927.A1543@cm.nu> <20010221080919.A469@suse.cz> <20010220231502.A4618@cm.nu>
In-Reply-To: <20010220231502.A4618@cm.nu>; from shane@cm.nu on Tue, Feb 20, 2001 at 11:15:02PM -0800
On Tue, Feb 20, 2001 at 11:15:02PM -0800, Shane Wegner wrote:
> On Wed, Feb 21, 2001 at 08:09:19AM +0100, Vojtech Pavlik wrote:
> > On Tue, Feb 20, 2001 at 03:59:27PM -0800, Shane Wegner wrote:
> >
> > > > You wanted my VIA driver for 2.2. Here is a patch that brings the very
> > > > latest 4.2 driver to the 2.2 kernel. The patch is against the
> > > > 2.2.19-pre13 kernel plus yours 1221 ide patch.
> > >
> > > This drivers breaks with my HP 8110 CD-R drive. It's
> > > sitting on primary slave of a Via 686B controler. When I
> > > try to do a hdparm -d1 -u1 -k1 /dev/hdb, the kernel locks
> > > up hard. Not even an oops. Reverting to the old driver
> > > works fine.
> >
> > Don't do that. Use the kernel option to enable DMA instead.
> >
> > Hmm, I'll have to look into this anyway - many users seem to do that
> > and it isn't as harmless as it looks (it worked by pure luck with
> > the previous version).
> Ok, can I still use -u1 -k1 -c1 on the drives or is it even
> necessary anymore.
If you enable automatic DMA in the kernel config, it isn't necessary at
all. The VIA driver sets up everything.
> Is the deprecation of -d1 VIA IDE
> specific or does it apply to the entire subsystem.
Well, in my opinion it was always a potentially dangerous option and so
it remains. I'll update the VIA driver to make sure its not dangerous
at least with it anymore.
Scenario:
1) AutoDMA not enabled
2) VIA sets PIO mode on boot
3) User enables DMA -> IDE driver starts using dma
4) But VIA is still set to PIO mode
I'll have to make the VIA driver check when IDE dma is enabled, test
whether the chipset was already programmed for it and program the
chipset for it if needed.
--
Vojtech Pavlik
SuSE Labs
next prev parent reply other threads:[~2001-02-21 7:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-20 12:40 [patch] VIA 4.2x driver for 2.2 kernels Vojtech Pavlik
2001-02-20 23:59 ` Shane Wegner
2001-02-21 7:09 ` Vojtech Pavlik
2001-02-21 7:15 ` Shane Wegner
2001-02-21 7:23 ` Vojtech Pavlik [this message]
2001-02-21 14:05 ` Rogerio Brito
2001-02-21 21:23 ` Vojtech Pavlik
2001-02-21 23:45 ` Shane Wegner
2001-02-21 14:00 ` Rogerio Brito
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=20010221082348.A908@suse.cz \
--to=vojtech@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=shane@cm.nu \
/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