Re: IDE-problems

2000-08-06 Thread Andre Berger
Andre Berger <[EMAIL PROTECTED]> writes: > > I get the timeouts with both 2.2.17pre13-ben2 und > > 2.2.17pre15-ben1 when using pmud. > > (on PB 3400) > > > > hda: Enabling MultiWord DMA 2 > > > hda: dma_intr: status=0x00 { } > > > media bay 0 contains a floppy disk drive > > > hda: Enabling Mult

Re: IDE-problems

2000-08-06 Thread Andre Berger
Andre Berger <[EMAIL PROTECTED]> writes: > I get the timeouts with both 2.2.17pre13-ben2 und > 2.2.17pre15-ben1 when using pmud. (on PB 3400) > > hda: Enabling MultiWord DMA 2 > > hda: dma_intr: status=0x00 { } > > media bay 0 contains a floppy disk drive > > hda: Enabling MultiWord DMA 2 With

Re: IDE-problems

2000-08-06 Thread Andre Berger
Andre Berger <[EMAIL PROTECTED]> writes: I get the timeouts with both 2.2.17pre13-ben2 und 2.2.17pre15-ben1 when using pmud. > Claus <[EMAIL PROTECTED]> writes: > > > now it's 2.2.17pre13-ben2 > > hda: Enabling MultiWord DMA 2 > hda: dma_intr: status=0x00 { } > media bay 0 contains a floppy dis

Re: IDE-problems

2000-08-02 Thread Andre Berger
Claus <[EMAIL PROTECTED]> writes: > now it's 2.2.17pre13-ben2 hda: Enabling MultiWord DMA 2 hda: dma_intr: status=0x00 { } media bay 0 contains a floppy disk drive hda: Enabling MultiWord DMA 2 But no crashes with pmud so far. Andre

Re: IDE-problems

2000-07-31 Thread Michael Schmitz
> >: No problem here on Lombard with the 'same' kernel. Forced crash, you say - > >: how so, and how would be rebooting from a crash differ from just booting > >: using yaboot? > > > :) > > in my case there was a problem with 2.2.16, sometimes lost interrupts, > especially during boot when p

Re: IDE-problems

2000-07-31 Thread Claus
>: > >: > there's no timeout in normal cases without extended fsck'ing, >: > so I think benh's modifications do prevent lost interrupts etc. >: >: No problem here on Lombard with the 'same' kernel. Forced crash, you say - >: how so, and how would be rebooting from a crash differ from just b

Re: IDE-problems

2000-07-31 Thread Michael Schmitz
> now it's 2.2.17pre13-ben2 > > after a forced crash: > Jul 31 11:56:45 apple pmud: PMU version 9: 2400/3400/3500 > Jul 31 11:56:46 apple pmud: pmud startup succeeded > Jul 31 11:56:46 apple pmud[306]: running /etc/power/pwrctl maximum ac > Jul 31 11:56:46 apple pcmcia: Starting PCMCIA services: >

Re: IDE-problems

2000-07-31 Thread Wilhelm *Rafial* Fitzpatrick
>what's with your problems, -raf , Andre? I've not had time to do any kernel compiles, so I haven't been trying out any of this stuff. But if somebody has a pointer to a precompiled kernel, I'd be happy to give it a whirl... __

Re: IDE-problems

2000-07-31 Thread Claus
>: hda: Enabling MultiWord DMA 2 >: ide_pmace: wait_for_ready, error status: 51 >: pmac_ide_do_setfeature disk not ready after SET_FEATURE ! >: hda: dma_intr: status=0x00 { } >: hda: Failed ! >: >: >: [9][22:56]uname -r >: 2.2.16pmac_stable now it's 2.2.17pre13-ben2 after a forced cra

Re: IDE-problems

2000-07-28 Thread Claus
>: Hast Du eigentlich auch die IDE-Probleme? Und was mich am meisten saw it this time: Registered ide 1 for media bay 0 hda: IBM-DARA-212000, ATA DISK drive hdc: CD-ROMFFREDDIE+, ATAPI CDROM drive ide0 at 0x102-0x1020007,0x1020160 on irq 13 ide1 at 0x1021000-0x1021007,0x1021160 on irq 14 hda

Re: IDE-problems

2000-07-28 Thread Michael Schmitz
> > Also, to get rid of the interrupt, can you try changing > > pmac_ide_do_setfeature() this way: (hand-made diff) > > I'll give it a try, but as it takes almost an hour to compile > a kernel here, it may take some time. Just recompiling the kernel after changing a few lines in ide-pmac won't ta

Re: IDE-problems

2000-07-28 Thread Benjamin Herrenschmidt
>> >Let me first say that >>> In function dma_bits_to_command(), comment out the MDMA 2 case >gave me Multiword DMA 1 instead of 2, but didn't have any other effect. Well, I wanted to be sure you driver didn't report a bogus capability about MDMA 2. Ben.

Re: IDE-problems

2000-07-28 Thread Andre Berger
Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > Thanks. Now, I'd like if you could try to get more precise values because > those I sent you are really too high. > Let me first say that >> In function dma_bits_to_command(), comment out the MDMA 2 case gave me Multiword DMA 1 instead of 2, bu

Re: IDE-problems

2000-07-27 Thread Andreas Tobler
Benjamin Herrenschmidt wrote: > Ok, I've pushed a slightly modified version, can you test again ? No luck, unplugging the CD-ROM during boot (while it waits) helps. The book boots without CD-ROM. I commented out the line 641: OUT_BYTE(drive->ctl|2,IDE_CONTROL_REG); Then it boots again. Andrea

Re: IDE-problems

2000-07-27 Thread Andreas Tobler
Benjamin Herrenschmidt wrote: > Interesting... obviously that should not happen. Let me double check the > code. Note that the timeout is set to 10 secs, I suppose you have waited > more than that ? About two minutes. > > Ok, I've pushed a slightly modified version, can you test again ? I resy

Re: IDE-problems

2000-07-27 Thread Benjamin Herrenschmidt
> >A synced tree from about 14:00 results here in a hanger on a wallstreet I. > >-> hdc: Enabling MultiWord DMA 2 >nothing more.. > >I resync again. Interesting... obviously that should not happen. Let me double check the code. Note that the timeout is set to 10 secs, I suppose you have waited

Re: IDE-problems

2000-07-27 Thread Andreas Tobler
Benjamin Herrenschmidt wrote: > >media bay 0 contains a CD-ROM drive > >media-bay 0 is ide 1 > >hda: Enabling MultiWord DMA 2 > >hdc: Enabling MultiWord DMA 2 > >ide1: unexpected interrupt, status=0x00, count=1 > > Hum... looking at the code again, it appears that the IDE_WAKEUP_DELAY_MS > is n

Re: IDE-problems

2000-07-27 Thread Benjamin Herrenschmidt
>> - First, try increasing the wait_for_ready to a larger value >> line 597: >> int timeout = 5000 (was 2000) >> - Try increasing the IDE_WAKEUP_DELAY_MS definition to a much larger >> > value (1 ?) >> line 102: >> #define IDE_WAKEUP_DELAY_MS 1 (was 1500) > >Those two measures seem to hav

Re: IDE-problems

2000-07-27 Thread Benjamin Herrenschmidt
>Those two measures seem to have solved the problem for now. I just get >the following message when waking the machine up from pmud: Thanks. Now, I'd like if you could try to get more precise values because those I sent you are really too high. Can you try changing only one of them, and then try

Re: IDE-problems

2000-07-27 Thread Andre Berger
Andre Berger <[EMAIL PROTECTED]> writes: > - First, try increasing the wait_for_ready to a larger value > line 597: > int timeout = 5000 (was 2000) > - Try increasing the IDE_WAKEUP_DELAY_MS definition to a much larger > > value (1 ?) > line 102: > #define IDE_WAKEUP_DELAY_MS 1 (was 1500

Re: IDE-problems

2000-07-26 Thread Andre Berger
Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > >I have recompiled my 2.2.17pre11 kernel with int timeout=5000; nothing > >has changed (PB 3400): > Sounds like a bogus hard disk, it's returning an error status from the > SET_FEATURE command while advertising some DMA support. I'll double chec

Re: IDE-problems

2000-07-26 Thread Michael Schmitz
> >Anything in the interrupt code, or the arch independent IDE code since > >then? From the descriptions posted, there was a stray IDE interrupt after > >the set multiword DMA failure in most cases. Should the SET_FEATURE > >command that performs the set multiword DMA 2 operation generate an > >int

Re: IDE-problems

2000-07-26 Thread Benjamin Herrenschmidt
> >Anything in the interrupt code, or the arch independent IDE code since >then? From the descriptions posted, there was a stray IDE interrupt after >the set multiword DMA failure in most cases. Should the SET_FEATURE >command that performs the set multiword DMA 2 operation generate an >interrupt?

Re: IDE-problems

2000-07-26 Thread Michael Schmitz
> >the second try get me running, don't know why. > >kernel 2.2.15pre14 didn't do this for sure, pmud is the same plus > >garcia's pmu patch (enabling wmapm) > > I don't think I changed anything to either IDE or serial sleep code since > 2.2.15pre14. Weird... Anything in the interrupt code, or th

Re: IDE-problems

2000-07-26 Thread Benjamin Herrenschmidt
> >the second try get me running, don't know why. >kernel 2.2.15pre14 didn't do this for sure, pmud is the same plus >garcia's pmu patch (enabling wmapm) I don't think I changed anything to either IDE or serial sleep code since 2.2.15pre14. Weird... Ben.

Re: IDE-problems

2000-07-26 Thread Claus
>: >: I have recompiled my 2.2.17pre11 kernel with int timeout=5000; nothing >: has changed (PB 3400): I just ran into the described hangup, timeout=2000 :) the machine was in 'snooze' for about two hours; then I wake it up and tried to connect to my ISP (isdn modem, ttyS0). The connector was

Re: IDE-problems

2000-07-26 Thread Benjamin Herrenschmidt
>I have recompiled my 2.2.17pre11 kernel with int timeout=5000; nothing >has changed (PB 3400): > >ide0 at 0x102-0x1020007,0x1020160 on irq 13 >ide1 at 0x1021000-0x1021007,0x1021160 on irq 14 >hda: Enabling MultiWord DMA 2 >hda: IBM-DMCA-21440, 1378MB w/96kB Cache, CHS=2800/16/63, DMA >hdc: Ena

Re: IDE-problems

2000-07-26 Thread Andre Berger
Claus <[EMAIL PROTECTED]> writes: > drivers/block/ide-pmac.c line 597 > > wait_for_ready(ide_drive_t *drive) > { > /* Timeout bumped for some powerbooks */ > int timeout = 2000; > byte stat; I have recompiled my 2.2.17pre11 kernel with int timeout=5000; nothing has changed (P

Re: IDE-problems

2000-07-26 Thread Michael Schmitz
> >: could you name the file to fix? > > sorry, > I guess it's (2.2.16 here) > drivers/block/ide-pmac.c line 597 > > wait_for_ready(ide_drive_t *drive) > { > /* Timeout bumped for some powerbooks */ > int timeout = 2000; > byte stat; That's the one, yes. Michael

Re: IDE-problems

2000-07-26 Thread Michael Schmitz
> > New hypothesis: generic too short timeout - please increase timeout to > > 5000 in wait_for_ready. > > > > Michael > > Where could I increase that timeout? In drivers/block/ide-pmac.d:wait_for_ready(), it's set to 2000 right now. Recompile and try the resulting kernel. Michael

Re: IDE-problems

2000-07-25 Thread Claus
>: >: >: >: >: New hypothesis: generic too short timeout - please increase timeout to >: >: 5000 in wait_for_ready. >: >: could you name the file to fix? sorry, I guess it's (2.2.16 here) drivers/block/ide-pmac.c line 597 wait_for_ready(ide_drive_t *drive) { /* Timeout bum

Re: IDE-problems

2000-07-25 Thread Claus
On Tue, Jul 25, 2000 at 08:18:51PM +0200, Michael Schmitz: >: > information in the pot and say I often see this sort of error during boot, >: > and sometimes the system recovers and continues, and othertimes it locks in my case it never locks at boot >: > up before the login prompt appears

Re: IDE-problems

2000-07-25 Thread Andre Berger
Michael Schmitz <[EMAIL PROTECTED]> writes: > New hypothesis: generic too short timeout - please increase timeout to > 5000 in wait_for_ready. > > Michael Where could I increase that timeout? -- Andre

Re: IDE-problems

2000-07-25 Thread Wilhelm Fitzpatrick
> New hypothesis: generic too short timeout - please increase timeout to > 5000 in wait_for_ready. There may be something here. I just updated to 2.2.17 as packaged in frozen (compile date of Jul 18th). I got some form of the usual IDE errors on boot, from which it finally recovered, which incl

Re: IDE-problems

2000-07-25 Thread Michael Schmitz
> > There's been a dma_intr status=0x00 message for the hda case as well, > > apparently enabling the multiword DMA will generate a DMA interrupt. > > Please note that the set multiword DMA 2 command succeeded earlier for hdc > > during driver init. Seems the problem is only with this function bein

Re: IDE-problems

2000-07-25 Thread Wilhelm Fitzpatrick
> There's been a dma_intr status=0x00 message for the hda case as well, > apparently enabling the multiword DMA will generate a DMA interrupt. > Please note that the set multiword DMA 2 command succeeded earlier for hdc > during driver init. Seems the problem is only with this function being > used

Re: IDE-problems

2000-07-25 Thread Michael Schmitz
> Well there seems to be a multiword DMA 2 problem. All -d1... commands > on /dev/hda result in the orig. error; -d0 solves the problem. Note the Ok, that sorts out the timeout hypothesis. If the -d1 always fails I don't understand why the problem doesn't happen during kernel init though. You can

Re: IDE-problems

2000-07-25 Thread Andre Berger
Michael Schmitz <[EMAIL PROTECTED]> writes: > You could try the following to narrow down the problem further: > > - omit the -p in the wakeup hdparm command, to make sure we're not running > into a problem with PIO mode autotune here (the kernel option is kind of > defeated by that option for all

Re: IDE-problems

2000-07-25 Thread Michael Schmitz
> > You could try the following to narrow down the problem further: > > > > - omit the -p in the wakeup hdparm command, to make sure we're not running > > into a problem with PIO mode autotune here (the kernel option is kind of > > defeated by that option for all I can see). > > Sorry, which one

Re: IDE-problems

2000-07-25 Thread Andre Berger
Michael Schmitz <[EMAIL PROTECTED]> writes: > > > Your error message looks like the disk doesn't like one of the feature set > > > commands the kernel sends it. I'll have to look at the IDE driver to see > > > if that's the DMA setting or some other drive command. Did you try > > > hda=noautotune,

Re: IDE-problems

2000-07-25 Thread Michael Schmitz
> > Your error message looks like the disk doesn't like one of the feature set > > commands the kernel sends it. I'll have to look at the IDE driver to see > > if that's the DMA setting or some other drive command. Did you try > > hda=noautotune, and does this happen with all kernel versions? > >

Re: IDE-problems

2000-07-25 Thread Michael Schmitz
> >hda: Enabling MultiWord DMA 2 > >ide_pmace: wait_for_ready, error status: 51 > >pmac_ide_do_setfeature disk not ready after SET_FEATURE ! > >hda: dma_intr: status=0x00 { } > >hda: Failed ! > > I get similar ide related errors or lockups on boot on my PB3400, with both > the packaged kernels ava

Re: IDE-problems

2000-07-25 Thread Andre Berger
Michael Schmitz <[EMAIL PROTECTED]> writes: > > hda: Enabling MultiWord DMA 2 > > ide_pmace: wait_for_ready, error status: 51 > > pmac_ide_do_setfeature disk not ready after SET_FEATURE ! > > hda: dma_intr: status=0x00 { } > > hda: Failed ! > > > > I have an 'alien'ized pmud 0.6.1 installed and i

Re: IDE-problems

2000-07-25 Thread Michael Schmitz
> hda: Enabling MultiWord DMA 2 > ide_pmace: wait_for_ready, error status: 51 > pmac_ide_do_setfeature disk not ready after SET_FEATURE ! > hda: dma_intr: status=0x00 { } > hda: Failed ! > > I have an 'alien'ized pmud 0.6.1 installed and its script You can install the pmu 0.6 deb from unstable. I

Re: IDE-problems

2000-07-25 Thread Wilhelm *Rafial* Fitzpatrick
PB3400, with both the packaged kernels available in frozen (.15pre? and .17pre?) but the error message I see most often is "lost interrupt" I haven't been able to figure out why. I can say that I ran several different older kernel versions under LinuxPPC without ever having any IDE

IDE-problems

2000-07-25 Thread Andre Berger
I get the follpwing message every now and then on my potato box, a PowerBook 3400 (custom 2.2.17pre11, IDE settings not changed from pmac standard), or even a complete lockup at boot time which forces me to press the reset btn, and has already resulted in data loss(t+found): hda: Enabling MultiW