Skip to contentSkip to conversation

MPC8xx IDMA and console garbage

DISCUSSION Steven Scholz 2 participants 3 messages Apr 23, 2002

lore
Share & tools
lore
#0 lore raw

Hi there,

I am trying to get DMA support for MPC8xx IDE. For now I use the IDMA channel.
It is kind of working although it's not much more than a framework yet.

BUT:

My problem right now is this:

After activating the DMA (e.g. using hdparm -d1 /dev/hda) the output of my serial console (connected to SMC1) gets garbaged when there is HDD activity.

If I telnet into my machine and do e.g. a "fdisk -l /dev/hda" the output of the serial console looks something like this

^PttyS: 80 input overrun(s)
^P^P^P^P^P^P^P^P^P^ ^PP ^ ^PP ^ ^PP ^P ^P^P^P^P^P^P ^P
^P^P^P^P^P^P^P^P^P^P^P^P^PttyS: 80 input overrun(s)

If I redirect console input into a file it contains 0x10 and 0x20 bytes.

So someone is flooding the serial port (SMC) with the two byte 0x10 and 0x20 !
(I might have seen 0x10 and 0xA0 as well.)

Any ideas?

Could there be a problem in using the internal ram area. Maybe my IDMA is conflicting with anyother existing driver (SMC???) ?

Thanks,

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

I also played around with IDMA and noticed the
same thing.

Serial works ok if you put idma priority below
SMC priority. Never investigated further...

/Thomas

Quoted 28 lines · Steven Scholz

Hi there,

I am trying to get DMA support for MPC8xx IDE. For now I use the IDMA channel.
It is kind of working although it's not much more than a framework yet.

BUT:

My problem right now is this:

After activating the DMA (e.g. using hdparm -d1 /dev/hda) the output of my serial console (connected to SMC1) gets garbaged when there is HDD activity.

If I telnet into my machine and do e.g. a "fdisk -l /dev/hda" the output of the serial console looks something like this

^PttyS: 80 input overrun(s)
^P^P^P^P^P^P^P^P^P^ ^PP ^ ^PP ^ ^PP ^P ^P^P^P^P^P^P ^P
^P^P^P^P^P^P^P^P^P^P^P^P^PttyS: 80 input overrun(s)

If I redirect console input into a file it contains 0x10 and 0x20 bytes.

So someone is flooding the serial port (SMC) with the two byte 0x10 and 0x20 !
(I might have seen 0x10 and 0xA0 as well.)

Quoted 9 lines

Any ideas?

Could there be a problem in using the internal ram area. Maybe my IDMA is conflicting with anyother existing driver (SMC???) ?

Thanks,

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 6 lines · Thomas Lange

I also played around with IDMA and noticed the
same thing.

Serial works ok if you put idma priority below
SMC priority. Never investigated further...

Thanks a million.

That helped. But why? :-(

Cheers,

Steven

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/