From: Vojtech Pavlik <vojtech@suse.cz>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: Patrick Petermair <black666@inode.at>,
AnonimoVeneziano <voloterreno@tin.it>,
Nicolas Mailhot <Nicolas.Mailhot@laPoste.net>,
linux-kernel@vger.kernel.org
Subject: Re: IDE-CD and VT8235 issue!!!
Date: Mon, 16 Dec 2002 11:39:24 +0100 [thread overview]
Message-ID: <20021216113924.A31907@ucw.cz> (raw)
In-Reply-To: <20021216113458.A31837@ucw.cz>; from vojtech@suse.cz on Mon, Dec 16, 2002 at 11:34:58AM +0100
[-- Attachment #1: Type: text/plain, Size: 1309 bytes --]
On Mon, Dec 16, 2002 at 11:34:58AM +0100, Vojtech Pavlik wrote:
> On Sun, Dec 15, 2002 at 10:56:25PM +0100, Patrick Petermair wrote:
> > Vojtech Pavlik:
> >
> > > You're not alone with this problem. I suspect some fishy stuff in the
> > > vt8235, because the driver programs it exactly the same as vt8233a,
> > > but while the vt8233a doesn't seem to have problems with DVDs and
> > > CDs, the vt8235 fails for many people.
> >
> > Thanks for the info ... like I expected ...
> >
> > > Can you send me 'hdparm -i' of the drive?
> >
> > starbase:/# hdparm -i /dev/hdc
> >
> > /dev/hdc:
> >
> > Model=TOSHIBA DVD-ROM SD-M1302, FwRev=1006, SerialNo=X900304741
> > Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
> > RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
> > BuffType=unknown, BuffSize=256kB, MaxMultSect=0
> > (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
> > IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
> > PIO modes: pio0 pio1 pio2 pio3 pio4
> > DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
> > UDMA modes: udma0 udma1 *udma2
> > AdvancedPM=no
> >
> > Thanks for all your effort here. It's great to see such a good
> > community.
>
> If you can, please try 2.4.20 with this patch.
Patch attached now.
--
Vojtech Pavlik
SuSE Labs
[-- Attachment #2: vt8235-dvd --]
[-- Type: text/plain, Size: 2412 bytes --]
ChangeSet@1.884, 2002-12-16 11:00:04+01:00, vojtech@suse.cz
Workaround problems with vt8235 and certain CD/DVD-ROMs.
via82cxxx.c | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff -Nru a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c
--- a/drivers/ide/pci/via82cxxx.c Mon Dec 16 11:33:37 2002
+++ b/drivers/ide/pci/via82cxxx.c Mon Dec 16 11:33:37 2002
@@ -67,6 +67,7 @@
#define VIA_SET_FIFO 0x040 /* Needs to have FIFO split set */
#define VIA_NO_UNMASK 0x080 /* Doesn't work with IRQ unmasking on */
#define VIA_BAD_ID 0x100 /* Has wrong vendor ID (0x1107) */
+#define VIA_NO_CMD_AS 0x200 /* Don't program command and address setup timings */
/*
* VIA SouthBridge chips.
@@ -80,10 +81,10 @@
u16 flags;
} via_isa_bridges[] = {
#ifdef FUTURE_BRIDGES
- { "vt8237", PCI_DEVICE_ID_VIA_8237, 0x00, 0x2f, VIA_UDMA_133 },
+ { "vt8237", PCI_DEVICE_ID_VIA_8237, 0x00, 0x2f, VIA_UDMA_133 | VIA_NO_CMD_AS },
#endif
- { "vt8235", PCI_DEVICE_ID_VIA_8235, 0x00, 0x2f, VIA_UDMA_133 },
- { "vt8233a", PCI_DEVICE_ID_VIA_8233A, 0x00, 0x2f, VIA_UDMA_133 },
+ { "vt8235", PCI_DEVICE_ID_VIA_8235, 0x00, 0x2f, VIA_UDMA_133 | VIA_NO_CMD_AS },
+ { "vt8233a", PCI_DEVICE_ID_VIA_8233A, 0x00, 0x2f, VIA_UDMA_133 | VIA_NO_CMD_AS },
{ "vt8233c", PCI_DEVICE_ID_VIA_8233C_0, 0x00, 0x2f, VIA_UDMA_100 },
{ "vt8233", PCI_DEVICE_ID_VIA_8233_0, 0x00, 0x2f, VIA_UDMA_100 },
{ "vt8231", PCI_DEVICE_ID_VIA_8231, 0x00, 0x2f, VIA_UDMA_100 },
@@ -292,12 +293,15 @@
{
u8 t;
- pci_read_config_byte(dev, VIA_ADDRESS_SETUP, &t);
- t = (t & ~(3 << ((3 - dn) << 1))) | ((FIT(timing->setup, 1, 4) - 1) << ((3 - dn) << 1));
- pci_write_config_byte(dev, VIA_ADDRESS_SETUP, t);
+ if (~via_config->flags & VIA_NO_CMD_AS) {
+
+ pci_read_config_byte(dev, VIA_ADDRESS_SETUP, &t);
+ t = (t & ~(3 << ((3 - dn) << 1))) | ((FIT(timing->setup, 1, 4) - 1) << ((3 - dn) << 1));
+ pci_write_config_byte(dev, VIA_ADDRESS_SETUP, t);
- pci_write_config_byte(dev, VIA_8BIT_TIMING + (1 - (dn >> 1)),
- ((FIT(timing->act8b, 1, 16) - 1) << 4) | (FIT(timing->rec8b, 1, 16) - 1));
+ pci_write_config_byte(dev, VIA_8BIT_TIMING + (1 - (dn >> 1)),
+ ((FIT(timing->act8b, 1, 16) - 1) << 4) | (FIT(timing->rec8b, 1, 16) - 1));
+ }
pci_write_config_byte(dev, VIA_DRIVE_TIMING + (3 - dn),
((FIT(timing->active, 1, 16) - 1) << 4) | (FIT(timing->recover, 1, 16) - 1));
next prev parent reply other threads:[~2002-12-16 10:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-14 18:40 IDE-CD and VT8235 issue!!! AnonimoVeneziano
2002-12-14 19:19 ` Patrick Petermair
2002-12-14 23:55 ` AnonimoVeneziano
2002-12-15 13:21 ` AnonimoVeneziano
2002-12-15 20:50 ` Vojtech Pavlik
2002-12-15 21:16 ` AnonimoVeneziano
2002-12-15 21:56 ` Patrick Petermair
2002-12-16 10:34 ` Vojtech Pavlik
2002-12-16 10:39 ` Vojtech Pavlik [this message]
2002-12-16 13:45 ` Patrick Petermair
[not found] ` <3DFDD2FC.2030700@tin.it>
[not found] ` <20021216141945.A32729@ucw.cz>
2002-12-16 14:13 ` AnonimoVeneziano
2002-12-18 9:03 ` Vojtech Pavlik
[not found] ` <3E00EE72.1020506@BitWagon.com>
2002-12-18 22:06 ` AnonimoVeneziano
2002-12-18 19:27 ` Marcelo Tosatti
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=20021216113924.A31907@ucw.cz \
--to=vojtech@suse.cz \
--cc=Nicolas.Mailhot@laPoste.net \
--cc=black666@inode.at \
--cc=linux-kernel@vger.kernel.org \
--cc=voloterreno@tin.it \
/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.