All of lore.kernel.org
 help / color / mirror / Atom feed
* DMA problem
@ 2004-01-16 19:24 claude parisot
  2004-01-16 19:32 ` Andreas Unterkircher
  0 siblings, 1 reply; 9+ messages in thread
From: claude parisot @ 2004-01-16 19:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Claude.PARISOT

  Hello !

Sorry to post a seconfd message on the list, I am only trying
to get an answern for this - it seems so - DMA-problem ??


I have some
problems with a brand new Plextor-drive, PX-W5224TA/T3B, I cannot
mount any CD or burn a CDR or CD-RW, except if I disable DMA with
following command :# hdparm -d0 /dev/hdd , a little bit annoying,
isn't it ?

If I insert a cdrom in the drive the led doesn't go out, it flashes
as usual but it stays green.

It seems to be a DMA-problem or a kernel-bug ???
Its only a supposition, I am a Linux-newbie, and I am looking
for an explanation and a solution ....

By mounting a cdrom I get following error messages :

Jan 11 20:46:00 ishwara kernel: scsi : aborting command due to timeout
: pid 102, scsi0, channel 0, id 1, lun 0 0x28 00 00 00 00 10 00 00 01 00
Jan 11 20:46:00 ishwara kernel: hdd: error waiting for DMA
Jan 11 20:46:00 ishwara kernel: hdd: dma timeout retry: status=0x7f {
DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index
Error } Jan 11 20:46:00 ishwara kernel: hdd: dma timeout retry:
error=0x7f Jan 11 20:46:00 ishwara kernel: hdd: DMA disabled
Jan 11 20:46:00 ishwara kernel: hdd: ATAPI reset complete
Jan 11 20:46:00 ishwara kernel: hdd: irq timeout: status=0x80 { Busy }
Jan 11 20:46:00 ishwara kernel: hdd: ATAPI reset complete
Jan 11 20:46:00 ishwara kernel: hdd: irq timeout: status=0x80 { Busy }
Jan 11 20:46:00 ishwara kernel: hdd: ATAPI reset complete
Jan 11 20:46:07 ishwara kernel: hdd: irq timeout: status=0x80 { Busy }
Jan 11 20:46:07 ishwara kernel: scsi0 channel 0 : resetting for second
half of retries. Jan 11 20:46:07 ishwara kernel: SCSI bus is being reset
for host 0 channel 0. Jan 11 20:46:07 ishwara kernel: hdd: status
timeout: status=0x80 { Busy } Jan 11 20:46:07 ishwara kernel: hdd: drive
not ready for command Jan 11 20:46:07 ishwara kernel: hdd: ATAPI reset
complete Jan 11 20:46:32 ishwara kernel: scsi : aborting command due to
timeout : pid 103, scsi0, channel 0, id 1, lun 0 0x28 00 00 00 00 10 00
rive not ready for command

And then I have a freeze or at least a blocking of the sysem.
I have to reboot.

Could someone give me an explanation of what is happening and a way to
solve the problem .... is this a kernel-bug ? Or an incompatibility
between the motherboard and the drive ??

If you choose to help me, please don't be to esoteric, as I already
said, I am a newbie.

Please, could you Cc all answers to the adress :

Claude.PARISOT@wanadoo.fr

My apologizes for my english ....


Claude

System : Pentium 2,8C
Asus P4P800 DeLuxe
Intel I865PE














^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: DMA problem
@ 2004-01-16 20:45 DOSProfi
  0 siblings, 0 replies; 9+ messages in thread
From: DOSProfi @ 2004-01-16 20:45 UTC (permalink / raw)
  To: linux-kernel

There are many reasons for this Problem. Which Kernel Version are you running
(uname -a). Which distribution? SuSE, Debian, Mandrake, RedHat?

On Friday 16 January 2004 20:24, claude parisot wrote:
>   Hello !
>
> Sorry to post a seconfd message on the list, I am only trying
> to get an answern for this - it seems so - DMA-problem ??
>
>
> I have some
> problems with a brand new Plextor-drive, PX-W5224TA/T3B, I cannot
> mount any CD or burn a CDR or CD-RW, except if I disable DMA with
> following command :# hdparm -d0 /dev/hdd , a little bit annoying,
> isn't it ?
>
> If I insert a cdrom in the drive the led doesn't go out, it flashes
> as usual but it stays green.
>
> It seems to be a DMA-problem or a kernel-bug ???
> Its only a supposition, I am a Linux-newbie, and I am looking
> for an explanation and a solution ....
>
> By mounting a cdrom I get following error messages :
>
> Jan 11 20:46:00 ishwara kernel: scsi : aborting command due to timeout
>
> : pid 102, scsi0, channel 0, id 1, lun 0 0x28 00 00 00 00 10 00 00 01 00
>
> Jan 11 20:46:00 ishwara kernel: hdd: error waiting for DMA
> Jan 11 20:46:00 ishwara kernel: hdd: dma timeout retry: status=0x7f {
> DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index
> Error } Jan 11 20:46:00 ishwara kernel: hdd: dma timeout retry:
> error=0x7f Jan 11 20:46:00 ishwara kernel: hdd: DMA disabled
> Jan 11 20:46:00 ishwara kernel: hdd: ATAPI reset complete
> Jan 11 20:46:00 ishwara kernel: hdd: irq timeout: status=0x80 { Busy }
> Jan 11 20:46:00 ishwara kernel: hdd: ATAPI reset complete
> Jan 11 20:46:00 ishwara kernel: hdd: irq timeout: status=0x80 { Busy }
> Jan 11 20:46:00 ishwara kernel: hdd: ATAPI reset complete
> Jan 11 20:46:07 ishwara kernel: hdd: irq timeout: status=0x80 { Busy }
> Jan 11 20:46:07 ishwara kernel: scsi0 channel 0 : resetting for second
> half of retries. Jan 11 20:46:07 ishwara kernel: SCSI bus is being reset
> for host 0 channel 0. Jan 11 20:46:07 ishwara kernel: hdd: status
> timeout: status=0x80 { Busy } Jan 11 20:46:07 ishwara kernel: hdd: drive
> not ready for command Jan 11 20:46:07 ishwara kernel: hdd: ATAPI reset
> complete Jan 11 20:46:32 ishwara kernel: scsi : aborting command due to
> timeout : pid 103, scsi0, channel 0, id 1, lun 0 0x28 00 00 00 00 10 00
> rive not ready for command
>
> And then I have a freeze or at least a blocking of the sysem.
> I have to reboot.
>
> Could someone give me an explanation of what is happening and a way to
> solve the problem .... is this a kernel-bug ? Or an incompatibility
> between the motherboard and the drive ??
>
> If you choose to help me, please don't be to esoteric, as I already
> said, I am a newbie.
>
> Please, could you Cc all answers to the adress :
>
> Claude.PARISOT@wanadoo.fr
>
> My apologizes for my english ....
>
>
> Claude
>
> System : Pentium 2,8C
> Asus P4P800 DeLuxe
> Intel I865PE
>
>
>
>
>
>
>
>
>
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 9+ messages in thread
* DMA Problem
@ 2005-04-20 17:37 Sanjay Bajaj
  0 siblings, 0 replies; 9+ messages in thread
From: Sanjay Bajaj @ 2005-04-20 17:37 UTC (permalink / raw)
  To: linuxppc-embedded

I am having a setup issue with the DMA channel 0 with the DMA Controller 
on PPC440GX. The code I wrote is:

#if defined(CONFIG_PPC4xx_DMA)
    /* Setup the DMA */
    DPRINTK("PPC4xx pwidth: %d\n", ppc4xx_get_peripheral_width(DMA_CH0));
    ppc4xx_set_dma_mode(DMA_CH0, DMA_MODE_READ);
    ppc4xx_set_src_addr(DMA_CH0, (phys_addr_t)(pdev->x2mem_phys_addr + 
src_addr));
    ppc4xx_set_dst_addr(DMA_CH0, (phys_addr_t)dst_addr);
    ppc4xx_set_dma_count(DMA_CH0, count);
    ppc4xx_enable_dma(DMA_CH0);
    DPRINTK("PPC4xx DMA Status: %d\n", ppc4xx_get_dma_status());
#endif

The DMA never completes and leaves a residue of 'count'. What am I missing?

Please Help.
Sanjay

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-20 17:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16 19:24 DMA problem claude parisot
2004-01-16 19:32 ` Andreas Unterkircher
2004-01-16 19:42   ` claude parisot
2004-01-16 21:03     ` DOSProfi
2004-01-16 20:18       ` claude parisot
2004-01-16 19:50   ` Wes Janzen
2004-01-16 20:03     ` claude parisot
  -- strict thread matches above, loose matches on Subject: below --
2004-01-16 20:45 DOSProfi
2005-04-20 17:37 DMA Problem Sanjay Bajaj

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.