linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
@ 2008-02-25 19:05 Gerold Jury
  2008-02-25 23:32 ` Andrew Morton
  2008-02-28  7:30 ` Mike Galbraith
  0 siblings, 2 replies; 13+ messages in thread
From: Gerold Jury @ 2008-02-25 19:05 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have two DVD drives, one connected to the SATA port (LG) the other to the 
IDE port (PHILIPS) of a via chipset.
They are driven by VIA SATA support (SATA_VIA) and VIA PATA support 
(PATA_VIA).

When I write an iso image to the drive on the SATA port /dev/sr0 it has some 
extra bytes on disk which make the disk unreadable.
Writing to the IDE drive /dev/sr1 works well.

A simple test with a DVD RAM and dd instead of growisofs

dd if=/dev/zero of=/dev/srX bs=1024k count=10

and a readback afterwards

dd if=/dev/srX of=imageX.bin bs=1024k count=10

gives me an all zero file from the IDE drive but a file
full of probably scsi commands for the SATA drive and looks like

00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00  |*.......@.......|
00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00  |*...............|
00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00  |........*.......|
00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00 00  |@...............|
00061030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00  |........*.......|
00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00 00  |@...............|
00081030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00  |........*....B..|
000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00 00  |@....B..........|
000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00  |........*.......|
000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00 00  |@...............|
000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

I really need some hints to make the SATA drive usable, please.

best Regards
Gerold


uname -a
Linux blaubaer 2.6.24.2 #4 Sun Feb 24 21:50:21 CET 2008 x86_64 AMD Athlon(tm) 
64 Processor 3400+ AuthenticAMD GNU/Linux

lspvi -v

00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID 
Controller (rev 80)
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V Deluxe/K8V-X/A8V Deluxe 
motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 20
        I/O ports at e800 [size=8]
        I/O ports at e400 [size=4]
        I/O ports at e000 [size=8]
        I/O ports at d800 [size=4]
        I/O ports at d400 [size=16]
        I/O ports at d000 [size=256]
        Capabilities: [c0] Power Management version 2
        Kernel driver in use: sata_via

00:0f.1 IDE interface: VIA Technologies, Inc. 
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a 
[Master SecP PriP])
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X/A8V Deluxe motherboard
        Flags: bus master, medium devsel, latency 32, IRQ 20
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
        I/O ports at fc00 [size=16]
        Capabilities: [c0] Power Management version 2
        Kernel driver in use: pata_via

cat /var/log/messages

Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: version 2.3
Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20 (level, 
low) -> IRQ 20
Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: routed to hard irq line 10
Feb 25 18:20:57 blaubaer scsi3 : sata_via
Feb 25 18:20:57 blaubaer scsi4 : sata_via
Feb 25 18:20:57 blaubaer ata4: SATA max UDMA/133 cmd 0xe800 ctl 0xe400 bmdma 
0xd400 irq 20
Feb 25 18:20:57 blaubaer ata5: SATA max UDMA/133 cmd 0xe000 ctl 0xd800 bmdma 
0xd408 irq 20
Feb 25 18:20:57 blaubaer ata4: SATA link down 1.5 Gbps (SStatus 0 SControl 
300)
Feb 25 18:20:57 blaubaer ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 
300)
Feb 25 18:20:57 blaubaer ata5.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00, max 
UDMA/100
Feb 25 18:20:57 blaubaer ata5.00: configured for UDMA/100
Feb 25 18:20:57 blaubaer scsi 4:0:0:0: CD-ROM            HL-DT-ST DVDRAM 
GH20NS10  EL00 PQ: 0 ANSI: 5
Feb 25 18:20:57 blaubaer sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw 
xa/form2 cdda tray
Feb 25 18:20:57 blaubaer Uniform CD-ROM driver Revision: 3.20
Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi CD-ROM sr0
Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi generic sg2 type 5
Feb 25 18:20:57 blaubaer pata_via 0000:00:0f.1: version 0.3.3
Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20 (level, 
low) -> IRQ 20
Feb 25 18:20:57 blaubaer scsi5 : pata_via
Feb 25 18:20:57 blaubaer scsi6 : pata_via
Feb 25 18:20:57 blaubaer ata6: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 
0xfc00 irq 14
Feb 25 18:20:57 blaubaer ata7: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 
0xfc08 irq 15
Feb 25 18:20:57 blaubaer ata6.00: ATAPI: PHILIPS SPD2411P, BP01, max UDMA/66
Feb 25 18:20:57 blaubaer ata6.00: limited to UDMA/33 due to 40-wire cable
Feb 25 18:20:57 blaubaer ata6.00: configured for UDMA/33
Feb 25 18:20:57 blaubaer scsi 5:0:0:0: CD-ROM            PHILIPS  SPD2411P         
BP01 PQ: 0 ANSI: 5
Feb 25 18:20:57 blaubaer sr1: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw 
xa/form2 cdda tray
Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi CD-ROM sr1
Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi generic sg3 type 5

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-02-25 19:05 extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2 Gerold Jury
@ 2008-02-25 23:32 ` Andrew Morton
  2008-02-26 18:57   ` Gerold Jury
  2008-02-28  7:30 ` Mike Galbraith
  1 sibling, 1 reply; 13+ messages in thread
From: Andrew Morton @ 2008-02-25 23:32 UTC (permalink / raw)
  To: Gerold Jury; +Cc: linux-kernel, linux-ide

On Mon, 25 Feb 2008 20:05:22 +0100 Gerold Jury <gml@inode.at> wrote:

> Hello,
> 
> I have two DVD drives, one connected to the SATA port (LG) the other to the 
> IDE port (PHILIPS) of a via chipset.
> They are driven by VIA SATA support (SATA_VIA) and VIA PATA support 
> (PATA_VIA).
> 
> When I write an iso image to the drive on the SATA port /dev/sr0 it has some 
> extra bytes on disk which make the disk unreadable.
> Writing to the IDE drive /dev/sr1 works well.
> 
> A simple test with a DVD RAM and dd instead of growisofs
> 
> dd if=/dev/zero of=/dev/srX bs=1024k count=10
> 
> and a readback afterwards
> 
> dd if=/dev/srX of=imageX.bin bs=1024k count=10
> 
> gives me an all zero file from the IDE drive but a file
> full of probably scsi commands for the SATA drive and looks like
> 
> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
> 00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00  |*.......@.......|
> 00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00  |*...............|
> 00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00  |........*.......|
> 00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00 00  |@...............|
> 00061030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00  |........*.......|
> 00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00 00  |@...............|
> 00081030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00  |........*....B..|
> 000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00 00  |@....B..........|
> 000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00  |........*.......|
> 000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00 00  |@...............|
> 000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> 
> I really need some hints to make the SATA drive usable, please.
> 

(added linux-ide)

Did any earlier kernel work OK?  2.6.22?

Thanks.

> 
> uname -a
> Linux blaubaer 2.6.24.2 #4 Sun Feb 24 21:50:21 CET 2008 x86_64 AMD Athlon(tm) 
> 64 Processor 3400+ AuthenticAMD GNU/Linux
> 
> lspvi -v
> 
> 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID 
> Controller (rev 80)
>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V Deluxe/K8V-X/A8V Deluxe 
> motherboard
>         Flags: bus master, medium devsel, latency 64, IRQ 20
>         I/O ports at e800 [size=8]
>         I/O ports at e400 [size=4]
>         I/O ports at e000 [size=8]
>         I/O ports at d800 [size=4]
>         I/O ports at d400 [size=16]
>         I/O ports at d000 [size=256]
>         Capabilities: [c0] Power Management version 2
>         Kernel driver in use: sata_via
> 
> 00:0f.1 IDE interface: VIA Technologies, Inc. 
> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a 
> [Master SecP PriP])
>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X/A8V Deluxe motherboard
>         Flags: bus master, medium devsel, latency 32, IRQ 20
>         [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
>         [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
>         [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
>         [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
>         I/O ports at fc00 [size=16]
>         Capabilities: [c0] Power Management version 2
>         Kernel driver in use: pata_via
> 
> cat /var/log/messages
> 
> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: version 2.3
> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20 (level, 
> low) -> IRQ 20
> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: routed to hard irq line 10
> Feb 25 18:20:57 blaubaer scsi3 : sata_via
> Feb 25 18:20:57 blaubaer scsi4 : sata_via
> Feb 25 18:20:57 blaubaer ata4: SATA max UDMA/133 cmd 0xe800 ctl 0xe400 bmdma 
> 0xd400 irq 20
> Feb 25 18:20:57 blaubaer ata5: SATA max UDMA/133 cmd 0xe000 ctl 0xd800 bmdma 
> 0xd408 irq 20
> Feb 25 18:20:57 blaubaer ata4: SATA link down 1.5 Gbps (SStatus 0 SControl 
> 300)
> Feb 25 18:20:57 blaubaer ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 
> 300)
> Feb 25 18:20:57 blaubaer ata5.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00, max 
> UDMA/100
> Feb 25 18:20:57 blaubaer ata5.00: configured for UDMA/100
> Feb 25 18:20:57 blaubaer scsi 4:0:0:0: CD-ROM            HL-DT-ST DVDRAM 
> GH20NS10  EL00 PQ: 0 ANSI: 5
> Feb 25 18:20:57 blaubaer sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw 
> xa/form2 cdda tray
> Feb 25 18:20:57 blaubaer Uniform CD-ROM driver Revision: 3.20
> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi CD-ROM sr0
> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi generic sg2 type 5
> Feb 25 18:20:57 blaubaer pata_via 0000:00:0f.1: version 0.3.3
> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20 (level, 
> low) -> IRQ 20
> Feb 25 18:20:57 blaubaer scsi5 : pata_via
> Feb 25 18:20:57 blaubaer scsi6 : pata_via
> Feb 25 18:20:57 blaubaer ata6: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 
> 0xfc00 irq 14
> Feb 25 18:20:57 blaubaer ata7: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 
> 0xfc08 irq 15
> Feb 25 18:20:57 blaubaer ata6.00: ATAPI: PHILIPS SPD2411P, BP01, max UDMA/66
> Feb 25 18:20:57 blaubaer ata6.00: limited to UDMA/33 due to 40-wire cable
> Feb 25 18:20:57 blaubaer ata6.00: configured for UDMA/33
> Feb 25 18:20:57 blaubaer scsi 5:0:0:0: CD-ROM            PHILIPS  SPD2411P         
> BP01 PQ: 0 ANSI: 5
> Feb 25 18:20:57 blaubaer sr1: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw 
> xa/form2 cdda tray
> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi CD-ROM sr1
> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi generic sg3 type 5



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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-02-25 23:32 ` Andrew Morton
@ 2008-02-26 18:57   ` Gerold Jury
  0 siblings, 0 replies; 13+ messages in thread
From: Gerold Jury @ 2008-02-26 18:57 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-ide

It does happen with 2.6.22 too.

Do you see any known pattern in these extra bytes ?

Best Regards
Gerold


00000000  2a 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |*.......@.......|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00  |*.......@.......|
00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00  |*...............|
00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00  |........*.......|
00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00 00  |@...............|
00061030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00  |........*.......|
00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00 00  |@...............|
00081030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00  |........*....B..|
000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00 00  |@....B..........|
000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00  |........*.......|
000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00 00  |@...............|
000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*



On Tuesday 26 February 2008 00:32:49 Andrew Morton wrote:
>On Mon, 25 Feb 2008 20:05:22 +0100 Gerold Jury <gml@inode.at> wrote:
>> Hello,
>>
>> I have two DVD drives, one connected to the SATA port (LG) the other to
>> the IDE port (PHILIPS) of a via chipset.
>> They are driven by VIA SATA support (SATA_VIA) and VIA PATA support
>> (PATA_VIA).
>>
>> When I write an iso image to the drive on the SATA port /dev/sr0 it has
>> some extra bytes on disk which make the disk unreadable.
>> Writing to the IDE drive /dev/sr1 works well.
>>
>> A simple test with a DVD RAM and dd instead of growisofs
>>
>> dd if=/dev/zero of=/dev/srX bs=1024k count=10
>>
>> and a readback afterwards
>>
>> dd if=/dev/srX of=imageX.bin bs=1024k count=10
>>
>> gives me an all zero file from the IDE drive but a file
>> full of probably scsi commands for the SATA drive and looks like
>>
>> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
>> |................| *
>> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00 
>> |*....@..@....@..| 00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
>> 00  |................| *
>> 00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00 
>> |*.......@.......| 00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
>> 00  |................| *
>> 00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00 
>> |*...............| 00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
>> 00  |................| *
>> 00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00 
>> |........*.......| 00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00
>> 00  |@...............| 00061030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................| *
>> 00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00 
>> |........*.......| 00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00
>> 00  |@...............| 00081030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................| *
>> 000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00 
>> |........*....B..| 000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00
>> 00  |@....B..........| 000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................| *
>> 000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00 
>> |........*.......| 000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00
>> 00  |@...............| 000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................|
>>
>> I really need some hints to make the SATA drive usable, please.
>
>(added linux-ide)
>
>Did any earlier kernel work OK?  2.6.22?
>
>Thanks.
>
>> uname -a
>> Linux blaubaer 2.6.24.2 #4 Sun Feb 24 21:50:21 CET 2008 x86_64 AMD
>> Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
>>
>> lspvi -v
>>
>> 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
>> Controller (rev 80)
>>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V Deluxe/K8V-X/A8V
>> Deluxe motherboard
>>         Flags: bus master, medium devsel, latency 64, IRQ 20
>>         I/O ports at e800 [size=8]
>>         I/O ports at e400 [size=4]
>>         I/O ports at e000 [size=8]
>>         I/O ports at d800 [size=4]
>>         I/O ports at d400 [size=16]
>>         I/O ports at d000 [size=256]
>>         Capabilities: [c0] Power Management version 2
>>         Kernel driver in use: sata_via
>>
>> 00:0f.1 IDE interface: VIA Technologies, Inc.
>> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if
>> 8a [Master SecP PriP])
>>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X/A8V Deluxe
>> motherboard Flags: bus master, medium devsel, latency 32, IRQ 20
>>         [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
>>         [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
>>         [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
>>         [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
>>         I/O ports at fc00 [size=16]
>>         Capabilities: [c0] Power Management version 2
>>         Kernel driver in use: pata_via
>>
>> cat /var/log/messages
>>
>> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: version 2.3
>> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20
>> (level, low) -> IRQ 20
>> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: routed to hard irq line 10
>> Feb 25 18:20:57 blaubaer scsi3 : sata_via
>> Feb 25 18:20:57 blaubaer scsi4 : sata_via
>> Feb 25 18:20:57 blaubaer ata4: SATA max UDMA/133 cmd 0xe800 ctl 0xe400
>> bmdma 0xd400 irq 20
>> Feb 25 18:20:57 blaubaer ata5: SATA max UDMA/133 cmd 0xe000 ctl 0xd800
>> bmdma 0xd408 irq 20
>> Feb 25 18:20:57 blaubaer ata4: SATA link down 1.5 Gbps (SStatus 0 SControl
>> 300)
>> Feb 25 18:20:57 blaubaer ata5: SATA link up 1.5 Gbps (SStatus 113 SControl
>> 300)
>> Feb 25 18:20:57 blaubaer ata5.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00,
>> max UDMA/100
>> Feb 25 18:20:57 blaubaer ata5.00: configured for UDMA/100
>> Feb 25 18:20:57 blaubaer scsi 4:0:0:0: CD-ROM            HL-DT-ST DVDRAM
>> GH20NS10  EL00 PQ: 0 ANSI: 5
>> Feb 25 18:20:57 blaubaer sr0: scsi3-mmc drive: 48x/48x writer dvd-ram
>> cd/rw xa/form2 cdda tray
>> Feb 25 18:20:57 blaubaer Uniform CD-ROM driver Revision: 3.20
>> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi CD-ROM sr0
>> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi generic sg2 type 5
>> Feb 25 18:20:57 blaubaer pata_via 0000:00:0f.1: version 0.3.3
>> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20
>> (level, low) -> IRQ 20
>> Feb 25 18:20:57 blaubaer scsi5 : pata_via
>> Feb 25 18:20:57 blaubaer scsi6 : pata_via
>> Feb 25 18:20:57 blaubaer ata6: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma
>> 0xfc00 irq 14
>> Feb 25 18:20:57 blaubaer ata7: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma
>> 0xfc08 irq 15
>> Feb 25 18:20:57 blaubaer ata6.00: ATAPI: PHILIPS SPD2411P, BP01, max
>> UDMA/66 Feb 25 18:20:57 blaubaer ata6.00: limited to UDMA/33 due to
>> 40-wire cable Feb 25 18:20:57 blaubaer ata6.00: configured for UDMA/33
>> Feb 25 18:20:57 blaubaer scsi 5:0:0:0: CD-ROM            PHILIPS  SPD2411P
>> BP01 PQ: 0 ANSI: 5
>> Feb 25 18:20:57 blaubaer sr1: scsi3-mmc drive: 48x/48x writer dvd-ram
>> cd/rw xa/form2 cdda tray
>> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi CD-ROM sr1
>> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi generic sg3 type 5



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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-02-25 19:05 extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2 Gerold Jury
  2008-02-25 23:32 ` Andrew Morton
@ 2008-02-28  7:30 ` Mike Galbraith
  2008-02-29 21:59   ` Gerold Jury
  1 sibling, 1 reply; 13+ messages in thread
From: Mike Galbraith @ 2008-02-28  7:30 UTC (permalink / raw)
  To: Gerold Jury; +Cc: linux-kernel

On Mon, 2008-02-25 at 20:05 +0100, Gerold Jury wrote:
> Hello,

Hi,

> I have two DVD drives, one connected to the SATA port (LG) the other to the 
> IDE port (PHILIPS) of a via chipset.
> They are driven by VIA SATA support (SATA_VIA) and VIA PATA support 
> (PATA_VIA).
> 
> When I write an iso image to the drive on the SATA port /dev/sr0 it has some 
> extra bytes on disk which make the disk unreadable.
> Writing to the IDE drive /dev/sr1 works well.

I take it kernels < 2.6.23 are known to be functional?  If so, a git
bisect should be really easy if you're a git user _and_ the breakage is
in drivers/ata/sata_via.c, there are only two meaningful commits
involved.

homer:..git/linux-2.6 # git bisect start -- drivers/ata/sata_via.c
homer:..git/linux-2.6 # git bisect good v2.6.22
homer:..git/linux-2.6 # git bisect bad v2.6.23
Bisecting: 2 revisions left to test after this

A full bisection would take quite a few more builds.

(I haven't noticed anybody else reporting similar troubles, and quite a
lot of time has passed since 2.6.22 was released.. that makes me
suspicious of your hardware)

Maybe you should post again, and add cc's to  linux-ide@vger.kernel.org
and  linux-scsi@vger.kernel.org, perhaps someone there can give you a
better idea.

> A simple test with a DVD RAM and dd instead of growisofs
> 
> dd if=/dev/zero of=/dev/srX bs=1024k count=10
> 
> and a readback afterwards
> 
> dd if=/dev/srX of=imageX.bin bs=1024k count=10
> 
> gives me an all zero file from the IDE drive but a file
> full of probably scsi commands for the SATA drive and looks like
> 
> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
> 00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00  |*.......@.......|
> 00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00  |*...............|
> 00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00  |........*.......|
> 00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00 00  |@...............|
> 00061030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00  |........*.......|
> 00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00 00  |@...............|
> 00081030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00  |........*....B..|
> 000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00 00  |@....B..........|
> 000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00  |........*.......|
> 000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00 00  |@...............|
> 000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> 
> I really need some hints to make the SATA drive usable, please.
> 
> best Regards
> Gerold
> 
> 
> uname -a
> Linux blaubaer 2.6.24.2 #4 Sun Feb 24 21:50:21 CET 2008 x86_64 AMD Athlon(tm) 
> 64 Processor 3400+ AuthenticAMD GNU/Linux
> 
> lspvi -v
> 
> 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID 
> Controller (rev 80)
>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V Deluxe/K8V-X/A8V Deluxe 
> motherboard
>         Flags: bus master, medium devsel, latency 64, IRQ 20
>         I/O ports at e800 [size=8]
>         I/O ports at e400 [size=4]
>         I/O ports at e000 [size=8]
>         I/O ports at d800 [size=4]
>         I/O ports at d400 [size=16]
>         I/O ports at d000 [size=256]
>         Capabilities: [c0] Power Management version 2
>         Kernel driver in use: sata_via
> 
> 00:0f.1 IDE interface: VIA Technologies, Inc. 
> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a 
> [Master SecP PriP])
>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X/A8V Deluxe motherboard
>         Flags: bus master, medium devsel, latency 32, IRQ 20
>         [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
>         [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
>         [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
>         [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
>         I/O ports at fc00 [size=16]
>         Capabilities: [c0] Power Management version 2
>         Kernel driver in use: pata_via
> 
> cat /var/log/messages
> 
> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: version 2.3
> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20 (level, 
> low) -> IRQ 20
> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: routed to hard irq line 10
> Feb 25 18:20:57 blaubaer scsi3 : sata_via
> Feb 25 18:20:57 blaubaer scsi4 : sata_via
> Feb 25 18:20:57 blaubaer ata4: SATA max UDMA/133 cmd 0xe800 ctl 0xe400 bmdma 
> 0xd400 irq 20
> Feb 25 18:20:57 blaubaer ata5: SATA max UDMA/133 cmd 0xe000 ctl 0xd800 bmdma 
> 0xd408 irq 20
> Feb 25 18:20:57 blaubaer ata4: SATA link down 1.5 Gbps (SStatus 0 SControl 
> 300)
> Feb 25 18:20:57 blaubaer ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 
> 300)
> Feb 25 18:20:57 blaubaer ata5.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00, max 
> UDMA/100
> Feb 25 18:20:57 blaubaer ata5.00: configured for UDMA/100
> Feb 25 18:20:57 blaubaer scsi 4:0:0:0: CD-ROM            HL-DT-ST DVDRAM 
> GH20NS10  EL00 PQ: 0 ANSI: 5
> Feb 25 18:20:57 blaubaer sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw 
> xa/form2 cdda tray
> Feb 25 18:20:57 blaubaer Uniform CD-ROM driver Revision: 3.20
> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi CD-ROM sr0
> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi generic sg2 type 5
> Feb 25 18:20:57 blaubaer pata_via 0000:00:0f.1: version 0.3.3
> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20 (level, 
> low) -> IRQ 20
> Feb 25 18:20:57 blaubaer scsi5 : pata_via
> Feb 25 18:20:57 blaubaer scsi6 : pata_via
> Feb 25 18:20:57 blaubaer ata6: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 
> 0xfc00 irq 14
> Feb 25 18:20:57 blaubaer ata7: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 
> 0xfc08 irq 15
> Feb 25 18:20:57 blaubaer ata6.00: ATAPI: PHILIPS SPD2411P, BP01, max UDMA/66
> Feb 25 18:20:57 blaubaer ata6.00: limited to UDMA/33 due to 40-wire cable
> Feb 25 18:20:57 blaubaer ata6.00: configured for UDMA/33
> Feb 25 18:20:57 blaubaer scsi 5:0:0:0: CD-ROM            PHILIPS  SPD2411P         
> BP01 PQ: 0 ANSI: 5
> Feb 25 18:20:57 blaubaer sr1: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw 
> xa/form2 cdda tray
> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi CD-ROM sr1
> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi generic sg3 type 5
> --
> 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] 13+ messages in thread

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-02-28  7:30 ` Mike Galbraith
@ 2008-02-29 21:59   ` Gerold Jury
  2008-03-01 11:53     ` Sergey Vlasov
  0 siblings, 1 reply; 13+ messages in thread
From: Gerold Jury @ 2008-02-29 21:59 UTC (permalink / raw)
  To: Mike Galbraith; +Cc: linux-kernel, linux-ide, linux-scsi

The oldest kernel that i tried is now 2.6.18 and behaves the same as all the 
others up to 2.6.24.2.
I did the tests on 2.6.18 in runlevel 1 with only udevd running to make sure 
no other program is sending any commands to the drive.

I am suspicious about the LG hardware as well so i hooked it to the friendly 
windows pc in the neighborhood but it works quite well there.

The SATA port the LG drive is connected to, was previously occupied by a 
maxtor harddrive and did it's work without troubles.

Does anybody know a possible meaning of the byte sequence
2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00
in the context of scsi dvd writing
 
Regards
Gerold


On Thursday 28 February 2008 08:30:44 Mike Galbraith wrote:
>On Mon, 2008-02-25 at 20:05 +0100, Gerold Jury wrote:
>> Hello,
>
>Hi,
>
>> I have two DVD drives, one connected to the SATA port (LG) the other to
>> the IDE port (PHILIPS) of a via chipset.
>> They are driven by VIA SATA support (SATA_VIA) and VIA PATA support
>> (PATA_VIA).
>>
>> When I write an iso image to the drive on the SATA port /dev/sr0 it has
>> some extra bytes on disk which make the disk unreadable.
>> Writing to the IDE drive /dev/sr1 works well.
>
>I take it kernels < 2.6.23 are known to be functional?  If so, a git
>bisect should be really easy if you're a git user _and_ the breakage is
>in drivers/ata/sata_via.c, there are only two meaningful commits
>involved.
>
>homer:..git/linux-2.6 # git bisect start -- drivers/ata/sata_via.c
>homer:..git/linux-2.6 # git bisect good v2.6.22
>homer:..git/linux-2.6 # git bisect bad v2.6.23
>Bisecting: 2 revisions left to test after this
>
>A full bisection would take quite a few more builds.
>
>(I haven't noticed anybody else reporting similar troubles, and quite a
>lot of time has passed since 2.6.22 was released.. that makes me
>suspicious of your hardware)
>
>Maybe you should post again, and add cc's to  linux-ide@vger.kernel.org
>and  linux-scsi@vger.kernel.org, perhaps someone there can give you a
>better idea.
>
>> A simple test with a DVD RAM and dd instead of growisofs
>>
>> dd if=/dev/zero of=/dev/srX bs=1024k count=10
>>
>> and a readback afterwards
>>
>> dd if=/dev/srX of=imageX.bin bs=1024k count=10
>>
>> gives me an all zero file from the IDE drive but a file
>> full of probably scsi commands for the SATA drive and looks like
>>
>> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
>> |................| *
>> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00 
>> |*....@..@....@..| 00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
>> 00  |................| *
>> 00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00 
>> |*.......@.......| 00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
>> 00  |................| *
>> 00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00 
>> |*...............| 00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
>> 00  |................| *
>> 00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00 
>> |........*.......| 00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00
>> 00  |@...............| 00061030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................| *
>> 00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00 
>> |........*.......| 00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00
>> 00  |@...............| 00081030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................| *
>> 000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00 
>> |........*....B..| 000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00
>> 00  |@....B..........| 000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................| *
>> 000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00 
>> |........*.......| 000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00
>> 00  |@...............| 000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00
>> 00 00 00  |................|
>>
>> I really need some hints to make the SATA drive usable, please.
>>
>> best Regards
>> Gerold
>>
>>
>> uname -a
>> Linux blaubaer 2.6.24.2 #4 Sun Feb 24 21:50:21 CET 2008 x86_64 AMD
>> Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
>>
>> lspvi -v
>>
>> 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
>> Controller (rev 80)
>>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V Deluxe/K8V-X/A8V
>> Deluxe motherboard
>>         Flags: bus master, medium devsel, latency 64, IRQ 20
>>         I/O ports at e800 [size=8]
>>         I/O ports at e400 [size=4]
>>         I/O ports at e000 [size=8]
>>         I/O ports at d800 [size=4]
>>         I/O ports at d400 [size=16]
>>         I/O ports at d000 [size=256]
>>         Capabilities: [c0] Power Management version 2
>>         Kernel driver in use: sata_via
>>
>> 00:0f.1 IDE interface: VIA Technologies, Inc.
>> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if
>> 8a [Master SecP PriP])
>>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X/A8V Deluxe
>> motherboard Flags: bus master, medium devsel, latency 32, IRQ 20
>>         [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
>>         [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
>>         [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
>>         [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
>>         I/O ports at fc00 [size=16]
>>         Capabilities: [c0] Power Management version 2
>>         Kernel driver in use: pata_via
>>
>> cat /var/log/messages
>>
>> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: version 2.3
>> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20
>> (level, low) -> IRQ 20
>> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: routed to hard irq line 10
>> Feb 25 18:20:57 blaubaer scsi3 : sata_via
>> Feb 25 18:20:57 blaubaer scsi4 : sata_via
>> Feb 25 18:20:57 blaubaer ata4: SATA max UDMA/133 cmd 0xe800 ctl 0xe400
>> bmdma 0xd400 irq 20
>> Feb 25 18:20:57 blaubaer ata5: SATA max UDMA/133 cmd 0xe000 ctl 0xd800
>> bmdma 0xd408 irq 20
>> Feb 25 18:20:57 blaubaer ata4: SATA link down 1.5 Gbps (SStatus 0 SControl
>> 300)
>> Feb 25 18:20:57 blaubaer ata5: SATA link up 1.5 Gbps (SStatus 113 SControl
>> 300)
>> Feb 25 18:20:57 blaubaer ata5.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00,
>> max UDMA/100
>> Feb 25 18:20:57 blaubaer ata5.00: configured for UDMA/100
>> Feb 25 18:20:57 blaubaer scsi 4:0:0:0: CD-ROM            HL-DT-ST DVDRAM
>> GH20NS10  EL00 PQ: 0 ANSI: 5
>> Feb 25 18:20:57 blaubaer sr0: scsi3-mmc drive: 48x/48x writer dvd-ram
>> cd/rw xa/form2 cdda tray
>> Feb 25 18:20:57 blaubaer Uniform CD-ROM driver Revision: 3.20
>> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi CD-ROM sr0
>> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi generic sg2 type 5
>> Feb 25 18:20:57 blaubaer pata_via 0000:00:0f.1: version 0.3.3
>> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20
>> (level, low) -> IRQ 20
>> Feb 25 18:20:57 blaubaer scsi5 : pata_via
>> Feb 25 18:20:57 blaubaer scsi6 : pata_via
>> Feb 25 18:20:57 blaubaer ata6: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma
>> 0xfc00 irq 14
>> Feb 25 18:20:57 blaubaer ata7: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma
>> 0xfc08 irq 15
>> Feb 25 18:20:57 blaubaer ata6.00: ATAPI: PHILIPS SPD2411P, BP01, max
>> UDMA/66 Feb 25 18:20:57 blaubaer ata6.00: limited to UDMA/33 due to
>> 40-wire cable Feb 25 18:20:57 blaubaer ata6.00: configured for UDMA/33
>> Feb 25 18:20:57 blaubaer scsi 5:0:0:0: CD-ROM            PHILIPS  SPD2411P
>> BP01 PQ: 0 ANSI: 5
>> Feb 25 18:20:57 blaubaer sr1: scsi3-mmc drive: 48x/48x writer dvd-ram
>> cd/rw xa/form2 cdda tray
>> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi CD-ROM sr1
>> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi generic sg3 type 5
>> --
>> 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] 13+ messages in thread

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-02-29 21:59   ` Gerold Jury
@ 2008-03-01 11:53     ` Sergey Vlasov
  2008-03-01 12:29       ` Gerold Jury
  0 siblings, 1 reply; 13+ messages in thread
From: Sergey Vlasov @ 2008-03-01 11:53 UTC (permalink / raw)
  To: Gerold Jury; +Cc: Mike Galbraith, linux-kernel, linux-ide, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 7070 bytes --]

On Fri, 29 Feb 2008 22:59:11 +0100 Gerold Jury wrote:

> The oldest kernel that i tried is now 2.6.18 and behaves the same as all the
> others up to 2.6.24.2.
> I did the tests on 2.6.18 in runlevel 1 with only udevd running to make sure
> no other program is sending any commands to the drive.
>
> I am suspicious about the LG hardware as well so i hooked it to the friendly
> windows pc in the neighborhood but it works quite well there.
>
> The SATA port the LG drive is connected to, was previously occupied by a
> maxtor harddrive and did it's work without troubles.
>
> Does anybody know a possible meaning of the byte sequence
> 2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00
> in the context of scsi dvd writing

0x2a is the SCSI WRITE(10) command; the following 10 bytes look like
its arguments (bytes 2-5 - logical block address, bytes 7-8 - transfer
length in blocks); last 4 bytes seem to be another copy of the logical
block address.

> >> A simple test with a DVD RAM and dd instead of growisofs
> >>
> >> dd if=/dev/zero of=/dev/srX bs=1024k count=10
> >>
> >> and a readback afterwards
> >>
> >> dd if=/dev/srX of=imageX.bin bs=1024k count=10
> >>
> >> gives me an all zero file from the IDE drive but a file
> >> full of probably scsi commands for the SATA drive

Does this happen only with DVD-RAM?  Could you try with a DVD+RW disk
(these disks could also be written to with a simple "dd" after initial
formatting)?

> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
> 00020010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00  |*.......@.......|
> 00040010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00060000  2a 00 00 00 00 c0 00 00  02 00 00 00 00 c0 00 00  |*...............|
> 00060010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00061010  00 00 00 00 00 00 00 00  2a 00 00 00 00 c2 00 00  |........*.......|
> 00061020  40 00 00 00 00 c2 00 00  00 00 00 00 00 00 00 00  |@...............|
> 00061030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00081010  00 00 00 00 00 00 00 00  2a 00 00 00 01 02 00 00  |........*.......|
> 00081020  40 00 00 00 01 02 00 00  00 00 00 00 00 00 00 00  |@...............|
> 00081030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000a1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 42 00 00  |........*....B..|
> 000a1020  40 00 00 00 01 42 00 00  00 00 00 00 00 00 00 00  |@....B..........|
> 000a1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 000c1010  00 00 00 00 00 00 00 00  2a 00 00 00 01 82 00 00  |........*.......|
> 000c1020  40 00 00 00 01 82 00 00  00 00 00 00 00 00 00 00  |@...............|
> 000c1030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

Definitely looks like SCSI WRITE(10) commands, and the LBA field
corresponds to the location of the broken data (assuming 2KB block
size).

> >> uname -a
> >> Linux blaubaer 2.6.24.2 #4 Sun Feb 24 21:50:21 CET 2008 x86_64 AMD
> >> Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
> >>
> >> lspvi -v
> >>
> >> 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
> >> Controller (rev 80)
> >>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V Deluxe/K8V-X/A8V
> >> Deluxe motherboard
> >>         Flags: bus master, medium devsel, latency 64, IRQ 20
> >>         I/O ports at e800 [size=8]
> >>         I/O ports at e400 [size=4]
> >>         I/O ports at e000 [size=8]
> >>         I/O ports at d800 [size=4]
> >>         I/O ports at d400 [size=16]
> >>         I/O ports at d000 [size=256]
> >>         Capabilities: [c0] Power Management version 2
> >>         Kernel driver in use: sata_via
> >>
> >> 00:0f.1 IDE interface: VIA Technologies, Inc.
> >> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if
> >> 8a [Master SecP PriP])
> >>         Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X/A8V Deluxe
> >> motherboard Flags: bus master, medium devsel, latency 32, IRQ 20
> >>         [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
> >>         [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
> >>         [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
> >>         [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
> >>         I/O ports at fc00 [size=16]
> >>         Capabilities: [c0] Power Management version 2
> >>         Kernel driver in use: pata_via
> >>
> >> cat /var/log/messages
> >>
> >> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: version 2.3
> >> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20
> >> (level, low) -> IRQ 20
> >> Feb 25 18:20:57 blaubaer sata_via 0000:00:0f.0: routed to hard irq line 10
> >> Feb 25 18:20:57 blaubaer scsi3 : sata_via
> >> Feb 25 18:20:57 blaubaer scsi4 : sata_via
> >> Feb 25 18:20:57 blaubaer ata4: SATA max UDMA/133 cmd 0xe800 ctl 0xe400
> >> bmdma 0xd400 irq 20
> >> Feb 25 18:20:57 blaubaer ata5: SATA max UDMA/133 cmd 0xe000 ctl 0xd800
> >> bmdma 0xd408 irq 20
> >> Feb 25 18:20:57 blaubaer ata4: SATA link down 1.5 Gbps (SStatus 0 SControl
> >> 300)
> >> Feb 25 18:20:57 blaubaer ata5: SATA link up 1.5 Gbps (SStatus 113 SControl
> >> 300)
> >> Feb 25 18:20:57 blaubaer ata5.00: ATAPI: HL-DT-ST DVDRAM GH20NS10, EL00,
> >> max UDMA/100
> >> Feb 25 18:20:57 blaubaer ata5.00: configured for UDMA/100
> >> Feb 25 18:20:57 blaubaer scsi 4:0:0:0: CD-ROM            HL-DT-ST DVDRAM
> >> GH20NS10  EL00 PQ: 0 ANSI: 5
> >> Feb 25 18:20:57 blaubaer sr0: scsi3-mmc drive: 48x/48x writer dvd-ram
> >> cd/rw xa/form2 cdda tray
> >> Feb 25 18:20:57 blaubaer Uniform CD-ROM driver Revision: 3.20
> >> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi CD-ROM sr0
> >> Feb 25 18:20:57 blaubaer sr 4:0:0:0: Attached scsi generic sg2 type 5
> >> Feb 25 18:20:57 blaubaer pata_via 0000:00:0f.1: version 0.3.3
> >> Feb 25 18:20:57 blaubaer ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20
> >> (level, low) -> IRQ 20
> >> Feb 25 18:20:57 blaubaer scsi5 : pata_via
> >> Feb 25 18:20:57 blaubaer scsi6 : pata_via
> >> Feb 25 18:20:57 blaubaer ata6: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma
> >> 0xfc00 irq 14
> >> Feb 25 18:20:57 blaubaer ata7: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma
> >> 0xfc08 irq 15
> >> Feb 25 18:20:57 blaubaer ata6.00: ATAPI: PHILIPS SPD2411P, BP01, max
> >> UDMA/66 Feb 25 18:20:57 blaubaer ata6.00: limited to UDMA/33 due to
> >> 40-wire cable Feb 25 18:20:57 blaubaer ata6.00: configured for UDMA/33
> >> Feb 25 18:20:57 blaubaer scsi 5:0:0:0: CD-ROM            PHILIPS  SPD2411P
> >> BP01 PQ: 0 ANSI: 5
> >> Feb 25 18:20:57 blaubaer sr1: scsi3-mmc drive: 48x/48x writer dvd-ram
> >> cd/rw xa/form2 cdda tray
> >> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi CD-ROM sr1
> >> Feb 25 18:20:57 blaubaer sr 5:0:0:0: Attached scsi generic sg3 type 5

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-03-01 11:53     ` Sergey Vlasov
@ 2008-03-01 12:29       ` Gerold Jury
  2008-03-07  8:40         ` Tejun Heo
  0 siblings, 1 reply; 13+ messages in thread
From: Gerold Jury @ 2008-03-01 12:29 UTC (permalink / raw)
  To: Sergey Vlasov; +Cc: Mike Galbraith, linux-kernel, linux-ide, linux-scsi

Yes it happens with the DVD+RW (testet with dd now) and with DVD+R

Thank you for the byte interpretation.
Now I have a hint where to start with the debugging.

Regards
Gerold

On Saturday 01 March 2008 12:53:54 Sergey Vlasov wrote:
>
>0x2a is the SCSI WRITE(10) command; the following 10 bytes look like
>its arguments (bytes 2-5 - logical block address, bytes 7-8 - transfer
>length in blocks); last 4 bytes seem to be another copy of the logical
>block address.
>
>
>Does this happen only with DVD-RAM?  Could you try with a DVD+RW disk
>(these disks could also be written to with a simple "dd" after initial
>formatting)?
>

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-03-01 12:29       ` Gerold Jury
@ 2008-03-07  8:40         ` Tejun Heo
  2008-03-07 19:09           ` Gerold Jury
  0 siblings, 1 reply; 13+ messages in thread
From: Tejun Heo @ 2008-03-07  8:40 UTC (permalink / raw)
  To: Gerold Jury
  Cc: Sergey Vlasov, Mike Galbraith, linux-kernel, linux-ide, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

Hello,

Gerold Jury wrote:
> Yes it happens with the DVD+RW (testet with dd now) and with DVD+R
> 
> Thank you for the byte interpretation.
> Now I have a hint where to start with the debugging.

I've tried to reproduce the problem here but failed.  Can you please try
the test with the file generated with the attached program?  "genseqfile
524288 > testfile" will give you 1 meg testfile and it will give us
better idea how the data is getting corrupted.

Thanks.

-- 
tejun

[-- Attachment #2: genseqfile.c --]
[-- Type: text/x-csrc, Size: 170 bytes --]

#include <unistd.h>
#include <stdio.h>

int main(int argc, char **argv)
{
	unsigned int i;

	for (i = 0; i < atoi(argv[1]); i++)
		fwrite(&i, 2, 1, stdout);
	return 0;
}

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-03-07  8:40         ` Tejun Heo
@ 2008-03-07 19:09           ` Gerold Jury
  2008-03-07 19:52             ` Frans Pop
  0 siblings, 1 reply; 13+ messages in thread
From: Gerold Jury @ 2008-03-07 19:09 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Sergey Vlasov, Mike Galbraith, linux-kernel, linux-ide, linux-scsi

Here it goes

And the sequence is broken at address 000e1010.


00000000  2a 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |*.......@.......|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
00000030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
00000040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
00000050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
--- skip
0001ffc0  d0 ff d1 ff d2 ff d3 ff  d4 ff d5 ff d6 ff d7 ff  |................|
0001ffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
0001ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
0001fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
00020010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
00020020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
00020030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
00020040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
00020050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
00020060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip
0003ffc0  d0 ff d1 ff d2 ff d3 ff  d4 ff d5 ff d6 ff d7 ff  |................|
0003ffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
0003ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
0003fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
00040000  2a 00 00 00 00 80 00 00  40 00 00 00 00 80 00 00  |*.......@.......|
00040010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
00040020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
00040030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
00040040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
00040050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
00040060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip
0005ffb0  c8 ff c9 ff ca ff cb ff  cc ff cd ff ce ff cf ff  |................|
0005ffc0  d0 ff d1 ff d2 ff d3 ff  d4 ff d5 ff d6 ff d7 ff  |................|
0005ffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
0005ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
0005fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
00060000  2a 00 00 00 00 c0 00 00  40 00 00 00 00 c0 00 00  |*.......@.......|
00060010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
00060020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
00060030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
00060040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
00060050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
00060060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip
0007ffc0  d0 ff d1 ff d2 ff d3 ff  d4 ff d5 ff d6 ff d7 ff  |................|
0007ffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
0007ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
0007fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
00080000  2a 00 00 00 01 00 00 00  40 00 00 00 01 00 00 00  |*.......@.......|
00080010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
00080020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
00080030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
00080040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
00080050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
00080060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip
0009ffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
0009ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
0009fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
000a0000  2a 00 00 00 01 40 00 00  40 00 00 00 01 40 00 00  |*....@..@....@..|
000a0010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
000a0020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
000a0030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
000a0040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
000a0050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
000a0060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip
000bffc0  d0 ff d1 ff d2 ff d3 ff  d4 ff d5 ff d6 ff d7 ff  |................|
000bffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
000bffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
000bfff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
000c0000  2a 00 00 00 01 80 00 00  40 00 00 00 01 80 00 00  |*.......@.......|
000c0010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
000c0020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
000c0030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
000c0040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
000c0050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
000c0060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip
000dffc0  d0 ff d1 ff d2 ff d3 ff  d4 ff d5 ff d6 ff d7 ff  |................|
000dffd0  d8 ff d9 ff da ff db ff  dc ff dd ff de ff df ff  |................|
000dffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
000dfff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
000e0000  2a 00 00 00 01 c0 00 00  02 00 00 00 01 c0 00 00  |*...............|
000e0010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
000e0020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
000e0030  08 00 09 00 0a 00 0b 00  0c 00 0d 00 0e 00 0f 00  |................|
000e0040  10 00 11 00 12 00 13 00  14 00 15 00 16 00 17 00  |................|
000e0050  18 00 19 00 1a 00 1b 00  1c 00 1d 00 1e 00 1f 00  |................|
000e0060  20 00 21 00 22 00 23 00  24 00 25 00 26 00 27 00  | .!.".#.$.%.&.'.|
--- skip to the not so funny part
000e0fc0  d0 07 d1 07 d2 07 d3 07  d4 07 d5 07 d6 07 d7 07  |................|
000e0fd0  d8 07 d9 07 da 07 db 07  dc 07 dd 07 de 07 df 07  |................|
000e0fe0  e0 07 e1 07 e2 07 e3 07  e4 07 e5 07 e6 07 e7 07  |................|
000e0ff0  e8 07 e9 07 ea 07 eb 07  ec 07 ed 07 ee 07 ef 07  |................|
000e1000  f0 07 f1 07 f2 07 f3 07  f4 07 f5 07 f6 07 f7 07  |................|
000e1010  f8 07 f9 07 fa 07 fb 07  2a 00 00 00 01 c2 00 00  |........*.......|
000e1020  3e 00 00 00 01 c2 00 00  08 07 09 07 0a 07 0b 07  |>...............|
000e1030  08 07 09 07 0a 07 0b 07  00 08 01 08 02 08 03 08  |................|
000e1040  04 08 05 08 06 08 07 08  08 08 09 08 0a 08 0b 08  |................|
000e1050  0c 08 0d 08 0e 08 0f 08  10 08 11 08 12 08 13 08  |................|
000e1060  14 08 15 08 16 08 17 08  18 08 19 08 1a 08 1b 08  |................|
000e1070  1c 08 1d 08 1e 08 1f 08  20 08 21 08 22 08 23 08  |........ .!.".#.|
000e1080  24 08 25 08 26 08 27 08  28 08 29 08 2a 08 2b 08  |$.%.&.'.(.).*.+.|
--- skip
000fffa0  b4 ff b5 ff b6 ff b7 ff  b8 ff b9 ff ba ff bb ff  |................|
000fffb0  bc ff bd ff be ff bf ff  c0 ff c1 ff c2 ff c3 ff  |................|
000fffc0  c4 ff c5 ff c6 ff c7 ff  c8 ff c9 ff ca ff cb ff  |................|
000fffd0  cc ff cd ff ce ff cf ff  d0 ff d1 ff d2 ff d3 ff  |................|
000fffe0  d4 ff d5 ff d6 ff d7 ff  d8 ff d9 ff da ff db ff  |................|
000ffff0  dc ff dd ff de ff df ff  e0 ff e1 ff e2 ff e3 ff  |................|
00100000

Regards
Gerold

On Friday 07 March 2008 09:40:07 Tejun Heo wrote:
>Hello,
>
>Gerold Jury wrote:
>> Yes it happens with the DVD+RW (testet with dd now) and with DVD+R
>>
>> Thank you for the byte interpretation.
>> Now I have a hint where to start with the debugging.
>
>I've tried to reproduce the problem here but failed.  Can you please try
>the test with the file generated with the attached program?  "genseqfile
>524288 > testfile" will give you 1 meg testfile and it will give us
>better idea how the data is getting corrupted.
>
>Thanks.



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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-03-07 19:09           ` Gerold Jury
@ 2008-03-07 19:52             ` Frans Pop
  2008-03-07 20:32               ` Frans Pop
  2008-11-17  3:05               ` Tejun Heo
  0 siblings, 2 replies; 13+ messages in thread
From: Frans Pop @ 2008-03-07 19:52 UTC (permalink / raw)
  To: Gerold Jury; +Cc: efault, htejun, linux-ide, linux-kernel, linux-scsi, vsu

Gerold Jury wrote:
> 0001ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
> 0001fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|

Looks broken here too.

> 00020010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
> 00020020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|

It also seems like part gets repeated after the break in both cases.

Cheers,
FJP

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-03-07 19:52             ` Frans Pop
@ 2008-03-07 20:32               ` Frans Pop
  2008-11-17  3:05               ` Tejun Heo
  1 sibling, 0 replies; 13+ messages in thread
From: Frans Pop @ 2008-03-07 20:32 UTC (permalink / raw)
  To: Frans Pop; +Cc: efault, gml, htejun, linux-ide, linux-kernel, linux-scsi, vsu

Frans Pop wrote:
> Gerold Jury wrote:
>> 0001ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff 
>> |................|
>> 0001fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff 
>> |................|
>> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00 
>> |*....@..@....@..|
> 
> Looks broken here too.

Please ignore. I probably wasn't looking right.

Sorry for the noise.

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-03-07 19:52             ` Frans Pop
  2008-03-07 20:32               ` Frans Pop
@ 2008-11-17  3:05               ` Tejun Heo
  2008-11-17  8:18                 ` Frans Pop
  1 sibling, 1 reply; 13+ messages in thread
From: Tejun Heo @ 2008-11-17  3:05 UTC (permalink / raw)
  To: Frans Pop; +Cc: Gerold Jury, efault, linux-ide, linux-kernel, linux-scsi, vsu

Frans Pop wrote:
> Gerold Jury wrote:
>> 0001ffe0  e0 ff e1 ff e2 ff e3 ff  e4 ff e5 ff e6 ff e7 ff  |................|
>> 0001fff0  e8 ff e9 ff ea ff eb ff  ec ff ed ff ee ff ef ff  |................|
>> 00020000  2a 00 00 00 00 40 00 00  40 00 00 00 00 40 00 00  |*....@..@....@..|
> 
> Looks broken here too.
> 
>> 00020010  08 ff 09 ff 0a ff 0b ff  08 ff 09 ff 0a ff 0b ff  |................|
>> 00020020  00 00 01 00 02 00 03 00  04 00 05 00 06 00 07 00  |................|
> 
> It also seems like part gets repeated after the break in both cases.

Can you guys please add yourselves to bz#10743?

  http://bugzilla.kernel.org/show_bug.cgi?id=10743

Please test 2.6.28-rc5 as it contains sata_via changes (TF access needed
specific workaround) and see whether the problem is fixed and report on bz.

Thanks a lot.  Let's get this thing solved.

-- 
tejun

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

* Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2
  2008-11-17  3:05               ` Tejun Heo
@ 2008-11-17  8:18                 ` Frans Pop
  0 siblings, 0 replies; 13+ messages in thread
From: Frans Pop @ 2008-11-17  8:18 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Gerold Jury, efault, linux-ide, linux-kernel, linux-scsi, vsu

On Monday 17 November 2008, Tejun Heo wrote:
> Can you guys please add yourselves to bz#10743?
>
>   http://bugzilla.kernel.org/show_bug.cgi?id=10743
>
> Please test 2.6.28-rc5 as it contains sata_via changes (TF access
> needed specific workaround) and see whether the problem is fixed and
> report on bz.

I cannot really help here. I never saw the problem myself, but just 
thought I saw some pattern in the breakage that might provide a clue.

Sorry,
FJP

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

end of thread, other threads:[~2008-11-17  8:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-25 19:05 extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2 Gerold Jury
2008-02-25 23:32 ` Andrew Morton
2008-02-26 18:57   ` Gerold Jury
2008-02-28  7:30 ` Mike Galbraith
2008-02-29 21:59   ` Gerold Jury
2008-03-01 11:53     ` Sergey Vlasov
2008-03-01 12:29       ` Gerold Jury
2008-03-07  8:40         ` Tejun Heo
2008-03-07 19:09           ` Gerold Jury
2008-03-07 19:52             ` Frans Pop
2008-03-07 20:32               ` Frans Pop
2008-11-17  3:05               ` Tejun Heo
2008-11-17  8:18                 ` Frans Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).