WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] hde: timeout waiting for DMA  (Read 25432 times)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #30 on: January 25, 2011, 10:47:03 PM »
Indeed sounds like a timing issue.

For more debugging you could use following boot params:

Code: [Select]
debug printk.time=y earlyprintk=vga,keep syslog
If boot is successful you could then analyze syslog with

Code: [Select]
less /var/log/messages
This may sound unorthodox if not abusive, but if I were you I might just start to experiment what happens with generously yanking waitusb= in.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11231
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #31 on: January 25, 2011, 11:01:01 PM »
Hi jason
Try these 2 boot codes by themselves.
ide-core.nodma=0.0:0
ide-core.nodma=0.0:1
and see what each does.

tinypoodle: There are no USB ports involved yet.

[EDIT]: Also try irqpoll by itself.
« Last Edit: January 26, 2011, 01:18:32 AM by Rich »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #32 on: January 25, 2011, 11:11:36 PM »
tinypoodle: There are no USB ports involved yet.

Hence the "unorthodox if not abusive"   ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11231
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #33 on: January 25, 2011, 11:19:21 PM »
Ok, but trying that would only make sense without the nodma code since adding any
other code after nodma seems to make it work

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #34 on: January 26, 2011, 12:04:52 AM »
The 'xsetup' boot code is specific to TC and gets picked up by '/usr/init.d/tc-config'. It just sets a flag (i.e. '/tmp/xsetup_requested') which forces the execution of '/usr/bin/xsetup.sh' when 'startx' gets executed (as part of '~/.profile'). So IMHO there is a lot of other stuff happening between the kernel boot (which seems to be when the DMA issues are happening) and the start of the X server.

Still, I'm equally perplexed about this apparent connection of the number of boot codes and 'nodma' being ignored or not.

Offline jason.ritzke

  • Newbie
  • *
  • Posts: 20
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #35 on: January 27, 2011, 08:18:37 AM »

@TP
That does not work. If I don't turn off dma on the CD drive, the system simply does not boot. So no syslog to work with. And by yank waitusb to you mean remove or apply. I can't tell with your writing style.
@rich
I've reinstalled all of the HDDs, so I'm now using "ide-core.nodma=2.0". So you want me to give "ide-core.nodma=2.0:0" and "ide-core.nodma=2.0:1" a shot? Along with irqpoll?
@maro
especially considering that adding "xsetup" after "ide-core.nodma" has an effect. I wonder if the command isn't even getting passed to ide-core because the system doesn't parse it without an additional parameter. But with that hypothesis, the thing that doesn't make sense to me is that it is ordering sensitive.
« Last Edit: January 27, 2011, 08:33:50 AM by jason.ritzke »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11231
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #36 on: January 27, 2011, 08:37:14 AM »
Hi jason
tinypoodle was just suggesting trying something like waitusb=2 to alter the startup
timing. Regardless, you might want to pull off a copy of the output from dmesg to
use as a hardware reference.

[EDIT] Yes, if you have a chance please try those three by themselves and note
          ANY changes in behaviour.
« Last Edit: January 27, 2011, 10:06:00 AM by Rich »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #37 on: January 27, 2011, 09:57:31 AM »
What I meant was for example to add waitusb= either before or after the nodma as the only additional boot parameter.

I suspect you might have overlooked the "if" in my statement about the debugging parameters: 'If boot is successful'
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jason.ritzke

  • Newbie
  • *
  • Posts: 20
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #38 on: January 27, 2011, 10:35:49 AM »
What I meant was for example to add waitusb= either before or after the nodma as the only additional boot parameter.

I suspect you might have overlooked the "if" in my statement about the debugging parameters: 'If boot is successful'

Your antecedents are still vague and unclear. Those debug parameters, do you want them with or without "ide-core.nodma=2.0". Without "ide-core.nodma=2.0", there is not boot. Also it is still unclear as to where exactly where waitusb fits in with all of this. do you want it with the other parameters?

I guess what I'm saying is that since this is a issue that is clearly dependent upon the place and order of the boot time parameters, I need you to be more clear and definite about what you are interested in me putting in to this system. Because the output will depend on the input a great deal.

EDIT: even used verbatim after "ide-core.nodma=2.0" that bootcode does not output to /var/log/messages. I don't know why.

EDIT: tried after another reboot and got an output. Must have typoed somewhere. I'll post below.
« Last Edit: January 27, 2011, 11:00:04 AM by jason.ritzke »

Offline jason.ritzke

  • Newbie
  • *
  • Posts: 20
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #39 on: January 27, 2011, 10:36:51 AM »
Hi jason
tinypoodle was just suggesting trying something like waitusb=2 to alter the startup
timing. Regardless, you might want to pull off a copy of the output from dmesg to
use as a hardware reference.

[EDIT] Yes, if you have a chance please try those three by themselves and note
          ANY changes in behaviour.

I'll pull a dmesg and also see what I can do

Edit: about the other options, I mean.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #40 on: January 27, 2011, 11:07:53 AM »
Boot with
1. ide-core.nodma=2.0 waitusb=1
2. waitusb=1 ide-core.nodma=2.0
without any other additional params and see what happens in either case.

If you don't get any output to /var/log/messages after booting with 'syslog', check if daemons are running:
Code: [Select]
ps |grep logd
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jason.ritzke

  • Newbie
  • *
  • Posts: 20
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #41 on: January 27, 2011, 11:25:49 AM »
waitusb=1 in conjunction with ide-core.nodma=2.0 boots fine, either way.
irqpoll in conjunction with ide-core.nodma=2.0 boots fine, either way.
ide=core.nodma=2.0:0  with or without an additional parameter does not boot.
ide=core.nodma=2.0:1 with an additional parameter boots. Without does not boot.

All of the boot failures are "waiting for dma" timeouts.


First three are dmesg outputs, last one is output of "less /var/log/messages"

Edit : sorry, the first two are duplicates. Other than that my previous statment was true.
« Last Edit: January 27, 2011, 11:30:18 AM by jason.ritzke »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #42 on: January 27, 2011, 11:54:21 AM »
From all those errors I'd guess that either the medium is faulty or the reader.
« Last Edit: January 27, 2011, 12:20:37 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jason.ritzke

  • Newbie
  • *
  • Posts: 20
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #43 on: January 27, 2011, 12:01:46 PM »
Which explains why it runs flawlessly?

EDIT:
I guess to be more precise and less terse, I've seen errors like this during boots on a number of systems with livcds. Do you really think that these I/O errors have to do with an actual deficiency of the drive (used a new medium, same errors). Could you explain how, if you were certain? Or point me in the direction of some documentation?
« Last Edit: January 27, 2011, 01:01:18 PM by jason.ritzke »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED] hde: timeout waiting for DMA
« Reply #44 on: January 27, 2011, 12:15:53 PM »
Which explains all the randomess, look at your own logs how "flawlessly" it runs...
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)