mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Problem mounting dvd if the drive spin down
@ 2005-04-02 16:33 Nate Grey
  2005-04-02 19:30 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Nate Grey @ 2005-04-02 16:33 UTC (permalink / raw)
  To: linux-kernel

Hello guys, this is my first post in this list, I'm not a subscriner so
please CC me for reply and comments. Thank you.


I've got an Acer Aspire 1601LC laptop and I get strange issue when
mounting dvd (I cannot say the time 'cause firstly I thought to bad
dvd).
If I close the try and then mount the dvd everything is ok, but if the
drive stops, for example if I insert the dvd and go on with reading my
mail and try to access again the dvd this hangs up.

The drive is a Matshita as dmesg say:

hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)

Example:
I put the dvd into the drive, wait some time... the drive spin down
$ mount /mnt/cdrom

I got this in /var/log/messages
Apr  2 18:11:58 maggot kernel: hdc: DMA disabled

and dmesg:
hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hdc: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
ide: failed opcode was: unknown

I'm using 2.6.11 kernel, but 2.6.10 wasn't better.
I notice that if I run

$ hdparm -Y /dec/hdc

output:/dev/hdc:
 issuing sleep command
 HDIO_DRIVE_CMD(sleep) failed: Input/output error

the drive seems to wake up and I can run mount without problems.

This is the output from hdparm -i:/dev/hdc:

 Model=UJDA740 DVD/CDRW, FwRev=1.00, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=512kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=yes, tPIO={min:180,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 
 AdvancedPM=no
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3: 

 * signifies the current active mode


Is there any solution to this problem?

Thank in advance, and go on this way.




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

* Re: Problem mounting dvd if the drive spin down
  2005-04-02 16:33 Problem mounting dvd if the drive spin down Nate Grey
@ 2005-04-02 19:30 ` Andrew Morton
  2005-04-03  9:51   ` Nate Grey
  2005-04-09  9:32   ` Nate Grey
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2005-04-02 19:30 UTC (permalink / raw)
  To: Nate Grey; +Cc: linux-kernel

Nate Grey <nate@paranoici.org> wrote:
>
> Hello guys, this is my first post in this list, I'm not a subscriner so
> please CC me for reply and comments. Thank you.
> 
> 
> I've got an Acer Aspire 1601LC laptop and I get strange issue when
> mounting dvd (I cannot say the time 'cause firstly I thought to bad
> dvd).
> If I close the try and then mount the dvd everything is ok, but if the
> drive stops, for example if I insert the dvd and go on with reading my
> mail and try to access again the dvd this hangs up.

Did it work OK under any other kernel versions?  If so, which?

> The drive is a Matshita as dmesg say:
> 
> hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
> 
> Example:
> I put the dvd into the drive, wait some time... the drive spin down
> $ mount /mnt/cdrom
> 
> I got this in /var/log/messages
> Apr  2 18:11:58 maggot kernel: hdc: DMA disabled
> 
> and dmesg:
> hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
> hdc: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
> ide: failed opcode was: unknown
> 
> I'm using 2.6.11 kernel, but 2.6.10 wasn't better.
> I notice that if I run
> 
> $ hdparm -Y /dec/hdc
> 
> output:/dev/hdc:
>  issuing sleep command
>  HDIO_DRIVE_CMD(sleep) failed: Input/output error
> 
> the drive seems to wake up and I can run mount without problems.
> 
> This is the output from hdparm -i:/dev/hdc:
> 
>  Model=UJDA740 DVD/CDRW, FwRev=1.00, SerialNo=
>  Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
>  RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
>  BuffType=unknown, BuffSize=512kB, MaxMultSect=0
>  (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
>  IORDY=yes, tPIO={min:180,w/IORDY:120}, tDMA={min:120,rec:120}
>  PIO modes:  pio0 pio1 pio2 pio3 pio4 
>  DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 
>  UDMA modes: udma0 udma1 *udma2 
>  AdvancedPM=no
>  Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3: 
> 
>  * signifies the current active mode
> 
> 
> Is there any solution to this problem?
> 
> Thank in advance, and go on this way.
> 
> 
> 
> -
> 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] 4+ messages in thread

* Re: Problem mounting dvd if the drive spin down
  2005-04-02 19:30 ` Andrew Morton
@ 2005-04-03  9:51   ` Nate Grey
  2005-04-09  9:32   ` Nate Grey
  1 sibling, 0 replies; 4+ messages in thread
From: Nate Grey @ 2005-04-03  9:51 UTC (permalink / raw)
  To: linux-kernel

On Sat, 2005-04-02 at 11:30 -0800, Andrew Morton wrote:

> Did it work OK under any other kernel versions?  If so, which?

At least it works in 2.6.7, I jump from .7 to .9 then .10 and
finally .11, I notice this problem in 2.6.10 firstly.

If you need addictional info about the drive just ask.

I forgot to say that at boot time hdparm is run on the device:

hdparm -c1 -d1 -u1 -X66 /dev/hdc


Thank you.


P.S.

hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hdc: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
ide: failed opcode was: unknown
hdc: ide_intr: huh? expected NULL handler on exit
hdc: ATAPI reset complete
end_request: I/O error, dev hdc, sector 64
isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16



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

* Re: Problem mounting dvd if the drive spin down
  2005-04-02 19:30 ` Andrew Morton
  2005-04-03  9:51   ` Nate Grey
@ 2005-04-09  9:32   ` Nate Grey
  1 sibling, 0 replies; 4+ messages in thread
From: Nate Grey @ 2005-04-09  9:32 UTC (permalink / raw)
  To: Linux Kernel Mailing List

> At least it works in 2.6.7

I correct myself, I try 2.6.7 kernel and I got the same problem...

Is it the drive itself going down?
( The drive seems to work without problem on Windows XP )


Thank you.


P.S.
Please Cc: me and sorry for my English.


Bye Bye



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

end of thread, other threads:[~2005-04-09  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-02 16:33 Problem mounting dvd if the drive spin down Nate Grey
2005-04-02 19:30 ` Andrew Morton
2005-04-03  9:51   ` Nate Grey
2005-04-09  9:32   ` Nate Grey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®