From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Thomas Kuther <gimpel@sonnenkinder.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: IT821x: no DMA since 2.6.21
Date: Wed, 16 May 2007 11:46:19 +0200 [thread overview]
Message-ID: <200705161146.19497.bzolnier@gmail.com> (raw)
In-Reply-To: <20070516100924.11273ce4@SiRiUS.home>
Hi,
On Wednesday 16 May 2007, Thomas Kuther wrote:
> On Mi, 16.05.07 02:58 Bartlomiej Zolnierkiewicz wrote:
>
> >
> > Hi,
> >
> > On Tuesday 15 May 2007, Alan Cox wrote:
> > > On Tue, 15 May 2007 12:53:08 +0200
> > > Thomas Kuther <gimpel@sonnenkinder.org> wrote:
> > >
> > > > Hi!
> > > >
> > > > Since 2.6.21 I have a problem with the it821x driver on my ITE
> > > > 8212 controller.
> > > > Now I saw some updates to it821x in 2.6.22-rc1 and gave that a
> > > > try, but the problem persists.
> > >
> > > I've had multiple reports of this. I would recommend you use the
> > > libata driver. IT821x hasn't changed over the past few releases so
> > > its someting
> >
> > commit 0e9b4e535fec7e2a189952670937adfbe2826b63
> > Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> > Date: Sat May 5 22:03:50 2007 +0200
> >
> > it821x: PIO mode setup fixes
> >
> > ...
> >
> > *cough, cough* ;)
> >
> > > in the core IDE code that broke it [note it might not of course be
> > > that the problem is in the core code..].
> >
> > The real problem seems to be that IT821x "virtual" ID misses info
> > about supported DMA modes (while it seems to contain enabled DMA
> > mode info).
Close but not really it, the it821x_fixup() was done after probe_hwif()
so IDE core code was using the original (incorrect) value of id->field_valid
(before "id->field_valid &= 1" fixup).
The rest of the problem analysis is still valid (DMA worked by pure luck
before Jens' fixes).
> > This would be the logical explanation why the driver broke after:
> >
> > [...]
> >
> > It seems that somebody has already debugged this issue to
> > the aforementioned changes:
> >
> > http://lkml.org/lkml/2007/1/14/110
> >
> >
> > Thomas, does the following patch against 2.6.22-rc1 fix the issue?
> >
>
> Hi Bartlomiej,
>
> yes, this patch completely fixes it. Looks very good now even.
> I loaded it with option noraid=1
>
> ------------------------------8<----------------------------
> IT8212: IDE controller at PCI slot 0000:00:09.0
> ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 18
> IT8212: chipset revision 17
> it8212: forcing bypass mode.
> it821x: controller in pass through mode.
> IT8212: 100% native mode on irq 18
> ide2: BM-DMA at 0xdc00-0xdc07, BIOS settings: hde:pio, hdf:pio
> ide3: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdg:pio, hdh:pio
> Probing IDE interface ide2...
> hde: SAMSUNG SP2514N, ATA DISK drive
> hdf: Maxtor 6Y120L0, ATA DISK drive
> hde: selected mode 0x45
> hdf: selected mode 0x46
> ide2 at 0xec00-0xec07,0xe802 on irq 18
> hde: max request size: 512KiB
> hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
> UDMA(100) hde: cache flushes supported
> hde: hde1
> hdf: max request size: 128KiB
> hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63,
> UDMA(133) hdf: cache flushes supported
> -------------------------------------->8------------------------------
> So all those drive seek errors are gone too.
> Hdparm does not complain anymore, speed is OK.
> Nice, so I can get rid of libata again, as all other drives run with the
> IDE layer too.
>
> Many thanks!
>
> Shall I test it without "noraid=1" too?
Please do, the main goal of the patch was to fix "RAID mode"
("noraid=1" should work fine also without the patch?).
Thanks,
Bart
next prev parent reply other threads:[~2007-05-16 9:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 10:53 IT821x: no DMA since 2.6.21 Thomas Kuther
2007-05-15 11:26 ` Thomas Kuther
2007-05-15 11:31 ` Alan Cox
2007-05-15 11:35 ` Thomas Kuther
2007-05-15 11:48 ` Alan Cox
2007-05-15 12:20 ` Thomas Kuther
2007-05-16 0:58 ` Bartlomiej Zolnierkiewicz
2007-05-16 8:09 ` Thomas Kuther
2007-05-16 9:46 ` Bartlomiej Zolnierkiewicz [this message]
2007-05-18 9:47 ` Thomas Kuther
2007-05-24 9:46 ` Bartlomiej Zolnierkiewicz
2007-05-31 19:23 ` Thomas Kuther
2007-06-02 21:32 ` Bartlomiej Zolnierkiewicz
2007-05-16 12:40 ` Alan Cox
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=200705161146.19497.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=gimpel@sonnenkinder.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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 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.