Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-06-05 Thread Harald Dunkel
Hi Tejun, Tejun Heo wrote: Hello, Harald Dunkel wrote: Hi Tejun, Setting the timeout to 15 did not help, either :-(. All your patches are still in, of course. Hmm... I'm out of ideas. I'll try it when I get back home. Any news about this? At the end I had the impression that this is a

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-24 Thread Jeff Garzik
Daniel Beichl wrote: +static int sil_check_atapi_dma(struct ata_queued_cmd *qc) +{ + /* limit atapi commands less than 60bytes to pio as certain sil */ + /* chips seem to have trouble to perform dma for these commands */ + if ( (qc-scsicmd != NULL) +

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-11 Thread Tejun Heo
Hello, Harald Dunkel wrote: Hi Tejun, Setting the timeout to 15 did not help, either :-(. All your patches are still in, of course. Hmm... I'm out of ideas. I'll try it when I get back home. May 10 22:15:55 pluto kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-10 Thread Tejun Heo
Hello, Harald Dunkel wrote: Hi Tejun, Sorry to say, but after applying your patch it still doesn't work. If I insert the DVD and wait before running xine, then I can watch it. But if I keep the tray open and run xine, then xine closes the tray. It gets stuck for some time, and then I get

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-10 Thread Harald Dunkel
Hi Tejun, Setting the timeout to 15 did not help, either :-(. All your patches are still in, of course. Regards Harri === kern.log says: May 10 22:15:55 pluto kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-08 Thread Tejun Heo
Harald Dunkel wrote: Hi Tejun, Your last patch contained zero bytes. Please check. Sorry, new patch attached. Tejun Heo wrote: Please report the result of... $ strace xine whatever you need to play dvd out 21 out.gz is 400KByte compressed. See private EMail. Below is the output in

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-08 Thread Tejun Heo
Hello, Daniel Beichl wrote: I gave the whole thing some thought. You suspected the sil dma engine to cause the issue, because it might only be usable with a certain command packet size. If these commands result in packets their size is not zero. Not all packet commands transfer data

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-08 Thread Alan Cox
A thing that crossed my mind was a timing issue. Perhaps the dmaing of 60 bytes is that fast that the interrupt that causes it is not yet handled correctly. But this is just a very wild guess. I don't think that can happen. Controllers are required to queue interrupt till FIFO is

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-08 Thread Tejun Heo
Alan Cox wrote: A thing that crossed my mind was a timing issue. Perhaps the dmaing of 60 bytes is that fast that the interrupt that causes it is not yet handled correctly. But this is just a very wild guess. I don't think that can happen. Controllers are required to queue interrupt till

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-07 Thread Tejun Heo
Hello, Daniel. Daniel Beichl wrote: Okay, I've been thinking about it for some time. I think I know what's going on now. Those authentication related commands are issued by invoking ioctls on the device node. The cdrom driver receives the ioctls and issues respective SCSI commands for it.

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-07 Thread Tejun Heo
Hello, Harald. Harald Dunkel wrote: If I enter a movie DVD into my drive (Samsung SH-S183A, SATA) and run xine dvd:/dev/scd0 immediately (while the drive's LED is still blinking), then there is some timeout problem. kern.log says: May 4 19:10:17 pluto kernel: ata2.00: exception Emask 0x0

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-07 Thread Daniel Beichl
Hello Tejun, Tejun Heo wrote: Hello, Daniel. Daniel Beichl wrote: Okay, I've been thinking about it for some time. I think I know what's going on now. Those authentication related commands are issued by invoking ioctls on the device node. The cdrom driver receives the ioctls and issues

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-07 Thread Harald Dunkel
Hi Tejun, Your last patch contained zero bytes. Please check. Tejun Heo wrote: Please report the result of... $ strace xine whatever you need to play dvd out 21 out.gz is 400KByte compressed. See private EMail. Below is the output in kern.log. This time it is the correct output

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-04 Thread Harald Dunkel
Hi folks, Tejun Heo suggested to post my problem here. If I enter a movie DVD into my drive (Samsung SH-S183A, SATA) and run xine dvd:/dev/scd0 immediately (while the drive's LED is still blinking), then there is some timeout problem. kern.log says: May 4 19:10:17 pluto kernel: ata2.00:

Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work

2007-05-04 Thread Daniel Beichl
Tejun Heo wrote: Daniel Beichl wrote: I reverted to my initial patch and added a printk line to log the first command byte and qc-nbytes for each command that has been reduced to pio and authenticated a dvd: not Authenticated ata2.00: Reduce cmd 0xa4 (nbytes=0) to pio Request AGID [1]...