Re: [Bug 9291] pdflush stuck in D state with v2.6.24-rc1-192-gef49c32

2007-12-04 Thread Thomas Kuther
On Di, 04.12.07 11:28 Ingo Molnar <[EMAIL PROTECTED]> wrote:

> 
> * Thomas <[EMAIL PROTECTED]> wrote:
> 
> > I can confirm this issue too on any .24-rc. I'm also using reiserfs
> > on a LVM.
> > 
> > And there is one more user on Gentoo forums having the same issue. 
> > http://forums.gentoo.org/viewtopic-t-612959.html
> > 
> > So you are not alone, florian.
> 
> any progress on this issue? Seems a bit stalled.
> 
>   Ingo

For me the two patches
 * mm-speed-up-writeback-ramp-up-on-clean-systems.patch 
 * reiserfs-writeback-fix.patch
solved the issue.

IIRC one was from this thread, the other from
http://lkml.org/lkml/2007/10/23/93

So since 2.6.24-rc2-git5 all is fine again. No problems since.

Regards,
Thomas


signature.asc
Description: PGP signature


Re: [Bug 9291] pdflush stuck in D state with v2.6.24-rc1-192-gef49c32

2007-12-04 Thread Thomas Kuther
On Di, 04.12.07 11:28 Ingo Molnar [EMAIL PROTECTED] wrote:

 
 * Thomas [EMAIL PROTECTED] wrote:
 
  I can confirm this issue too on any .24-rc. I'm also using reiserfs
  on a LVM.
  
  And there is one more user on Gentoo forums having the same issue. 
  http://forums.gentoo.org/viewtopic-t-612959.html
  
  So you are not alone, florian.
 
 any progress on this issue? Seems a bit stalled.
 
   Ingo

For me the two patches
 * mm-speed-up-writeback-ramp-up-on-clean-systems.patch 
 * reiserfs-writeback-fix.patch
solved the issue.

IIRC one was from this thread, the other from
http://lkml.org/lkml/2007/10/23/93

So since 2.6.24-rc2-git5 all is fine again. No problems since.

Regards,
Thomas


signature.asc
Description: PGP signature


2.6.21.3-rt9: SMP errors with VIA Rhine on Uniproc

2007-06-09 Thread Thomas Kuther
Hi,

I'm having some trouble with the 2.6.21 -rt series on my single
processor machine:

APIC error on CPU0: 01(01)
 [] smp_error_interrupt+0x5b/0x70
 [] error_interrupt+0x28/0x30
 [] iowrite16+0x28/0x30
 [] rhine_interrupt+0x6f/0xb20
 [] __sched_text_start+0x303/0x800
 [] handle_IRQ_event+0x5c/0xe0
 [] thread_simple_irq+0x59/0x90
 [] do_irqd+0x25b/0x2e0
 [] do_irqd+0x0/0x2e0
 [] kthread+0xa8/0xe0
 [] kthread+0x0/0xe0
 [] kernel_thread_helper+0x7/0x1c
 ===

This looks like it has to do with my onbaord VIA Rhine VT6102 ethernet
controller. After two or three of these errors, the network performance
decreases massively.

On vanilla 2.6.22-rc series I also get a lot of APIC errors, but they
show no trace at all.

The kernel is compiled without SMP support.

Any idea for a fix?

Thanks,
Thomas


signature.asc
Description: PGP signature


2.6.21.3-rt9: SMP errors with VIA Rhine on Uniproc

2007-06-09 Thread Thomas Kuther
Hi,

I'm having some trouble with the 2.6.21 -rt series on my single
processor machine:

APIC error on CPU0: 01(01)
 [a010ce5b] smp_error_interrupt+0x5b/0x70
 [a01034f8] error_interrupt+0x28/0x30
 [a024ca38] iowrite16+0x28/0x30
 [a02c7ecf] rhine_interrupt+0x6f/0xb20
 [a039d553] __sched_text_start+0x303/0x800
 [a013f37c] handle_IRQ_event+0x5c/0xe0
 [a013f8c9] thread_simple_irq+0x59/0x90
 [a013febb] do_irqd+0x25b/0x2e0
 [a013fc60] do_irqd+0x0/0x2e0
 [a012e538] kthread+0xa8/0xe0
 [a012e490] kthread+0x0/0xe0
 [a010361b] kernel_thread_helper+0x7/0x1c
 ===

This looks like it has to do with my onbaord VIA Rhine VT6102 ethernet
controller. After two or three of these errors, the network performance
decreases massively.

On vanilla 2.6.22-rc series I also get a lot of APIC errors, but they
show no trace at all.

The kernel is compiled without SMP support.

Any idea for a fix?

Thanks,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-31 Thread Thomas Kuther
On Do, 24.05.07 11:46 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
wrote:

> 
> Hi,
> 
> [...]
> 
> Improved patch - this time the issue should be fixed for good (I was
> looking only at the RAID specific part of the fixups and I overlooked
> the fact that the original code was clearing too much of
> id->field_valid), there is now also an extra debugging printk to give
> us some more info.
> 
> Please give it a try.
> 
> [ recal_intr warning (which should be harmless) is not fixed by this
>   patch because it is a different problem and requires some more
> work. ]
> 

Hi,

Sorry again for late response.

This patch works. At least it restores the behaviour before .21 :)

IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] -> GSI 17 (level, low) -> IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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: field_valid=0007 capability=2f dma_mword=0007 dma_status=04
hde: Performing identify fixups.
hdf: field_valid=0007 capability=2f dma_mword=0007 dma_status=04
hdf: Performing identify fixups.
hde: selected mode 0x22
hdf: selected mode 0x22
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
DMA hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hde: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63, DMA
 hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hdf: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hdf1


hdparm does not complain, and disk IO speed is OK.

Regards,
Tom



signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-31 Thread Thomas Kuther
On Do, 24.05.07 11:46 Bartlomiej Zolnierkiewicz [EMAIL PROTECTED]
wrote:

 
 Hi,
 
 [...]
 
 Improved patch - this time the issue should be fixed for good (I was
 looking only at the RAID specific part of the fixups and I overlooked
 the fact that the original code was clearing too much of
 id-field_valid), there is now also an extra debugging printk to give
 us some more info.
 
 Please give it a try.
 
 [ recal_intr warning (which should be harmless) is not fixed by this
   patch because it is a different problem and requires some more
 work. ]
 

Hi,

Sorry again for late response.

This patch works. At least it restores the behaviour before .21 :)

IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] - GSI 17 (level, low) - IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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: field_valid=0007 capability=2f dma_mword=0007 dma_status=04
hde: Performing identify fixups.
hdf: field_valid=0007 capability=2f dma_mword=0007 dma_status=04
hdf: Performing identify fixups.
hde: selected mode 0x22
hdf: selected mode 0x22
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
DMA hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hde: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63, DMA
 hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hdf: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hdf1


hdparm does not complain, and disk IO speed is OK.

Regards,
Tom



signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-18 Thread Thomas Kuther
On Mi, 16.05.07 11:46 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
wrote:

> > 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

Hi,

sorry for late response. Now the results in smart mode:
---
IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] -> GSI 17 (level, low) -> IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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: Performing identify fixups.
hdf: Performing identify fixups.
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63
 hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hde: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63
 hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hdf: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hdf1
--

# hdparm -d1 /dev/hde

/dev/hde:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Input/output error
 using_dma =  0 (off)

---

Buffered reads: 3.06MB/s

Seems I shot too quick, DMA in smart mode still does not work.
"noraid=1" also works without the patch, correct.

Best,
Tom


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-18 Thread Thomas Kuther
On Mi, 16.05.07 11:46 Bartlomiej Zolnierkiewicz [EMAIL PROTECTED]
wrote:

  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

Hi,

sorry for late response. Now the results in smart mode:
---
IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] - GSI 17 (level, low) - IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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: Performing identify fixups.
hdf: Performing identify fixups.
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63
 hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hde: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63
 hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error }
hdf: recal_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
 hdf1
--

# hdparm -d1 /dev/hde

/dev/hde:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Input/output error
 using_dma =  0 (off)

---

Buffered reads: 3.06MB/s

Seems I shot too quick, DMA in smart mode still does not work.
noraid=1 also works without the patch, correct.

Best,
Tom


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-16 Thread Thomas Kuther
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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).
> 
> 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 :00:09.0
ACPI: PCI Interrupt :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? 

Regards,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-16 Thread Thomas Kuther
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 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).
 
 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 :00:09.0
ACPI: PCI Interrupt :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? 

Regards,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
On Di, 15.05.07 12:48 Alan Cox <[EMAIL PROTECTED]> wrote:

> > I already tried pata_it821x and it failed to recognize the second
> > harddisk hdf. I use the controller only for additional harddrives,
> > no RAID, no cd-rom.
> 
> Logs from that would be most helpful as I am maintaining the
> pata_it821x driver.
> 
> Alan

Okay, I removed the IDE one and tried your libata driver again.

What I maybe just did wrong on my first try, was loading it without any
parameters, as:
--
pata_it821x: Unknown parameter `it8212.noraid'
pata_it821x: Unknown parameter `it8212_noraid'
--
Loading without any parameters on this kernel resulted in:
--
pata_it821x: controller in smart mode.
ACPI: PCI Interrupt :00:09.0[A] -> GSI 17 (level, low) -> IRQ 18
scsi3 : pata_it821x
scsi4 : pata_it821x
ata3: PATA max MWDMA2 cmd 0x0001ec00 ctl 0x0001e802 bmdma 0x0001dc00
irq 0 
ata4: PATA max MWDMA2 cmd 0x0001e400 ctl 0x0001e002 bmdma 0x0001dc08
irq 0 
ata3: SRST failed (errno=-16)
ata3: SRST failed (errno=-16)
ata3: SRST failed (errno=-16)
ata3: SRST failed (errno=-16)
ata3: reset failed, giving up
---

Now I tried with "noraid=1", and now all seems to be working fine.

Thanks very much!
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
On Di, 15.05.07 12:31 Alan Cox <[EMAIL PROTECTED]> wrote:

> On Tue, 15 May 2007 12:53:08 +0200
> Thomas Kuther <[EMAIL PROTECTED]> 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 in the core IDE code that broke it [note it might not of
> course be that the problem is in the core code..].
> 
> I have no plans at this point to debug the old IT821x driver due to
> time constraints, and if anyone wants to have a crack at debugging
> this and fixing it go for it.
> 
> BTW: I also note you have the controller in smart mode but are not
> using the hardware raid functions. In that situation it generally
> runs faster (and does CD-ROM) if you flash the ATAPI firmware to the
> controller or boot with the noraid option "it8212.noraid=1"
> 
> Alan

Hi Alan,
thanks for the suggestion. 

I already tried pata_it821x and it failed to recognize the second
harddisk hdf. I use the controller only for additional harddrives, no
RAID, no cd-rom.

But I will try again. Maybe I just did something wrong then.

Thanks,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
On Di, 15.05.07 12:53 Thomas Kuther 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.
> 

Back on 2.6.20 - here is some output from the working driver.

There is actually no difference in dmesg:
-8<---
IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] -> GSI 17 (level, low) -> IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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: Performing identify fixups.
hdf: Performing identify fixups.
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
BUG DMA OFF 
hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hde:recal_intr: error=0x04 { DriveStatusError } ide: failed opcode was:
unknown
 hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63,
BUG DMA OFF 
hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hdf:recal_intr: error=0x04 { DriveStatusError } ide: failed opcode was:
unknown hdf1
-->8---

But hdparm works:
---
# hdparm -d1 /dev/hde
/dev/hde:
 setting using_dma to 1 (on)
 using_dma =  1 (on)

# hdparm -tT /dev/hde

/dev/hde:
 Timing cached reads:   372 MB in  2.01 seconds = 185.17 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error 
 Timing buffered disk reads:  124 MB in  3.01 seconds =  41.18 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error

hdparm version is 7.3.
DMA is enabled in the controller's BIOS, of course.

Hope this helps a bit.

Thanks,
Thomas


signature.asc
Description: PGP signature


IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
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.

It seems that DMA is broken on it8212 somehow since the merge of
the it8213 driver.

dmesg shows some BUG DMA OFF:
-8<-
IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] -> GSI 17 (level, low) -> IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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
hde: Performing identify fixups.
hdf: Performing identify fixups.
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
BUG DMA OFF 
hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hde:recal_intr: error=0x04 { DriveStatusError } 
ide: failed opcode was: unknown hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63,
BUG DMA OFF 
hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hdf:recal_intr: error=0x04 { DriveStatusError } 
ide: failed opcode was: unknown hdf1
>8---

Until 2.6.20 (since 2.6.10) the driver worked quite fine, but since
2.6.21 moving/copying files from/to any drive on the controller is 
a) really slow, 
b) music starts skipping, 
c) mouse stopps moving for short periods, 
and hdparm does not work anymore:

# hdparm -d1 /dev/hde
/dev/hde:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Input/output error
 using_dma =  0 (off)

This has not been a problem before. hdparm -tT showed something around
40MB/s for buffered reads, now it looks like this:

# hdparm -tT /dev/hde

/dev/hde:
 Timing cached reads:   356 MB in  2.01 seconds = 177.30 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error 
 Timing buffered disk reads:   10 MB in  3.28 seconds =   3.05 MB/sec 
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error

more: http://phpfi.com/234217

If there is more info needed, please tell me what. And please CC as I
am not subscribed.

Thanks,
Thomas


signature.asc
Description: PGP signature


IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
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.

It seems that DMA is broken on it8212 somehow since the merge of
the it8213 driver.

dmesg shows some BUG DMA OFF:
-8-
IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] - GSI 17 (level, low) - IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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
hde: Performing identify fixups.
hdf: Performing identify fixups.
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
BUG DMA OFF 
hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hde:recal_intr: error=0x04 { DriveStatusError } 
ide: failed opcode was: unknown hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63,
BUG DMA OFF 
hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hdf:recal_intr: error=0x04 { DriveStatusError } 
ide: failed opcode was: unknown hdf1
8---

Until 2.6.20 (since 2.6.10) the driver worked quite fine, but since
2.6.21 moving/copying files from/to any drive on the controller is 
a) really slow, 
b) music starts skipping, 
c) mouse stopps moving for short periods, 
and hdparm does not work anymore:

# hdparm -d1 /dev/hde
/dev/hde:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Input/output error
 using_dma =  0 (off)

This has not been a problem before. hdparm -tT showed something around
40MB/s for buffered reads, now it looks like this:

# hdparm -tT /dev/hde

/dev/hde:
 Timing cached reads:   356 MB in  2.01 seconds = 177.30 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error 
 Timing buffered disk reads:   10 MB in  3.28 seconds =   3.05 MB/sec 
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error

more: http://phpfi.com/234217

If there is more info needed, please tell me what. And please CC as I
am not subscribed.

Thanks,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
On Di, 15.05.07 12:53 Thomas Kuther 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.
 

Back on 2.6.20 - here is some output from the working driver.

There is actually no difference in dmesg:
-8---
IT8212: IDE controller at PCI slot :00:09.0
ACPI: PCI Interrupt :00:09.0[A] - GSI 17 (level, low) - IRQ 18
IT8212: chipset revision 17
it821x: controller in smart 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: Performing identify fixups.
hdf: Performing identify fixups.
ide2 at 0xec00-0xec07,0xe802 on irq 18
hde: max request size: 128KiB
hde: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63,
BUG DMA OFF 
hde:hde: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hde:recal_intr: error=0x04 { DriveStatusError } ide: failed opcode was:
unknown
 hde1
hdf: max request size: 128KiB
hdf: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63,
BUG DMA OFF 
hdf:hdf: recal_intr: status=0x51 { DriveReady SeekComplete Error } 
hdf:recal_intr: error=0x04 { DriveStatusError } ide: failed opcode was:
unknown hdf1
--8---

But hdparm works:
---
# hdparm -d1 /dev/hde
/dev/hde:
 setting using_dma to 1 (on)
 using_dma =  1 (on)

# hdparm -tT /dev/hde

/dev/hde:
 Timing cached reads:   372 MB in  2.01 seconds = 185.17 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error 
 Timing buffered disk reads:  124 MB in  3.01 seconds =  41.18 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Input/output
error

hdparm version is 7.3.
DMA is enabled in the controller's BIOS, of course.

Hope this helps a bit.

Thanks,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
On Di, 15.05.07 12:31 Alan Cox [EMAIL PROTECTED] wrote:

 On Tue, 15 May 2007 12:53:08 +0200
 Thomas Kuther [EMAIL PROTECTED] 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 in the core IDE code that broke it [note it might not of
 course be that the problem is in the core code..].
 
 I have no plans at this point to debug the old IT821x driver due to
 time constraints, and if anyone wants to have a crack at debugging
 this and fixing it go for it.
 
 BTW: I also note you have the controller in smart mode but are not
 using the hardware raid functions. In that situation it generally
 runs faster (and does CD-ROM) if you flash the ATAPI firmware to the
 controller or boot with the noraid option it8212.noraid=1
 
 Alan

Hi Alan,
thanks for the suggestion. 

I already tried pata_it821x and it failed to recognize the second
harddisk hdf. I use the controller only for additional harddrives, no
RAID, no cd-rom.

But I will try again. Maybe I just did something wrong then.

Thanks,
Thomas


signature.asc
Description: PGP signature


Re: IT821x: no DMA since 2.6.21

2007-05-15 Thread Thomas Kuther
On Di, 15.05.07 12:48 Alan Cox [EMAIL PROTECTED] wrote:

  I already tried pata_it821x and it failed to recognize the second
  harddisk hdf. I use the controller only for additional harddrives,
  no RAID, no cd-rom.
 
 Logs from that would be most helpful as I am maintaining the
 pata_it821x driver.
 
 Alan

Okay, I removed the IDE one and tried your libata driver again.

What I maybe just did wrong on my first try, was loading it without any
parameters, as:
--
pata_it821x: Unknown parameter `it8212.noraid'
pata_it821x: Unknown parameter `it8212_noraid'
--
Loading without any parameters on this kernel resulted in:
--
pata_it821x: controller in smart mode.
ACPI: PCI Interrupt :00:09.0[A] - GSI 17 (level, low) - IRQ 18
scsi3 : pata_it821x
scsi4 : pata_it821x
ata3: PATA max MWDMA2 cmd 0x0001ec00 ctl 0x0001e802 bmdma 0x0001dc00
irq 0 
ata4: PATA max MWDMA2 cmd 0x0001e400 ctl 0x0001e002 bmdma 0x0001dc08
irq 0 
ata3: SRST failed (errno=-16)
ata3: SRST failed (errno=-16)
ata3: SRST failed (errno=-16)
ata3: SRST failed (errno=-16)
ata3: reset failed, giving up
---

Now I tried with noraid=1, and now all seems to be working fine.

Thanks very much!
Thomas


signature.asc
Description: PGP signature