[gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Sven Köhler
 I've run onto few posting on Google regarding DMA resetting itself but
 no solution.

That is simply annoying, that the Linux-Kernel resets DMA.

You could try hdparm -k1 - but somethimes that doesn't help either.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
On Thu, 2006-03-23 at 20:18 +0100, Sven Köhler wrote:
  I've run onto few posting on Google regarding DMA resetting itself but
  no solution.
 
 That is simply annoying, that the Linux-Kernel resets DMA.
 
 You could try hdparm -k1 - but somethimes that doesn't help either.

Yes, I've tried -k1 too, it doesn't help.
It seems like kernel bug, I was able to duplicate resetting CD/DVD DMA
on both machines:
amd64 with BenQ DVD writer and
x86 with Plextor CD writer

-- 
#Joseph

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
On Thu, 2006-03-23 at 16:15 -0500, JimD wrote:
 On Thu, 23 Mar 2006 12:54:44 -0700
 Joseph [EMAIL PROTECTED] wrote:
 
  Yes, I've tried -k1 too, it doesn't help.
  It seems like kernel bug, I was able to duplicate resetting CD/DVD DMA
  on both machines:
  amd64 with BenQ DVD writer and
  x86 with Plextor CD writer
 
 It might be a bug, though it probably is only for certain drives.  I
 have a LITE-ON DVDRW LDW-451S on amd64.  Here is a test I just ran:
 
 
 [EMAIL PROTECTED] $ sudo hdparm /dev/hdc
 /dev/hdc:
  IO_support   =  1 (32-bit)
  unmaskirq=  1 (on)
  using_dma=  1 (on)
  keepsettings =  0 (off)
  readonly =  0 (off)
  readahead= 256 (on)
  HDIO_GETGEO failed: Invalid argument
 
 [EMAIL PROTECTED] $ sudo eject
 
 [EMAIL PROTECTED] $ sudo hdparm /dev/hdc
 /dev/hdc:
  IO_support   =  1 (32-bit)
  unmaskirq=  1 (on)
  using_dma=  1 (on)
  keepsettings =  0 (off)
  readonly =  0 (off)
  readahead= 256 (on)
  HDIO_GETGEO failed: Invalid argument
 
 [EMAIL PROTECTED] $ sudo eject
 
 [EMAIL PROTECTED] $ sudo hdparm /dev/hdc
 /dev/hdc:
  IO_support   =  1 (32-bit)
  unmaskirq=  1 (on)
  using_dma=  1 (on)
  keepsettings =  0 (off)
  readonly =  0 (off)
  readahead= 256 (on)
  HDIO_GETGEO failed: Invalid argument
 
 [EMAIL PROTECTED] $ eject  --version
 eject version 2.1.0 by Jeff Tranter ([EMAIL PROTECTED])
 
 Running eject as root or a regular user did not reset my DMA
 settings for my DVD-RW.
 
 Jim

Before ejecting put any CD / DVD disk IN and run:
dd if=/dev/hdc of=backup.iso  or
cat /dev/hdc backup.iso

When finished run eject ... 
and 
hdparm /dev/hdc

See if the parameter using_dma was reset.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
On Thu, 2006-03-23 at 14:26 -0700, Joseph wrote:
 Before ejecting put any CD / DVD disk IN and run:
 dd if=/dev/hdc of=backup.iso  or
 cat /dev/hdc backup.iso
 
 When finished run eject ... 

to be specific: eject /dev/hdc

 and 
 hdparm /dev/hdc
 
 See if the parameter using_dma was reset.
 
-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Nick Rout

On Thu, 23 Mar 2006 12:54:44 -0700
Joseph wrote:

 On Thu, 2006-03-23 at 20:18 +0100, Sven Köhler wrote:
   I've run onto few posting on Google regarding DMA resetting itself but
   no solution.
  
  That is simply annoying, that the Linux-Kernel resets DMA.
  
  You could try hdparm -k1 - but somethimes that doesn't help either.
 
 Yes, I've tried -k1 too, it doesn't help.
 It seems like kernel bug, I was able to duplicate resetting CD/DVD DMA
 on both machines:
 amd64 with BenQ DVD writer and
 x86 with Plextor CD writer
 
 -- 
 #Joseph

do they both use the same kernel version?


-- 
Nick Rout [EMAIL PROTECTED]


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem

2006-03-23 Thread Joseph
On Thu, 2006-03-23 at 17:25 -0500, JimD wrote:
 On Thu, 23 Mar 2006 14:26:20 -0700
 Joseph [EMAIL PROTECTED] wrote:
 
  Before ejecting put any CD / DVD disk IN and run:
  dd if=/dev/hdc of=backup.iso  or
  cat /dev/hdc backup.iso
  
  When finished run eject ... 
  and 
  hdparm /dev/hdc
  
  See if the parameter using_dma was reset.
 
 [EMAIL PROTECTED] # dd if=/dev/hdc of=backup.iso
 CTRL+C
 37824+0 records in
 37824+0 records out
 
 /tmp
 [EMAIL PROTECTED] # ls -l backup.iso
 -rw-r--r--  1 root root 19M Mar 23 17:20 backup.iso
 
 [EMAIL PROTECTED] # hdparm /dev/hdc
 /dev/hdc:
  IO_support   =  1 (32-bit)
  unmaskirq=  1 (on)
  using_dma=  1 (on)
  keepsettings =  0 (off)
  readonly =  0 (off)
  readahead= 256 (on)
  HDIO_GETGEO failed: Invalid argument
 
 DMA is still on.  I don't know why I always get that HDIO_GETGEO
 failed error.
 
 Do you have another CD/DVD drive you can try?  Are you using SCSI
 emulation?
 
 I am using kernel 2.6.15-gentoo-r7
 
 Jim

Did you do eject /dev/hdc between dd and hdparm?

dd if=/dev/hdc of=backup.iso
eject dev/hdc
hdparm /dev/hdc

Yes, I've tried this combination on two different machines with two
different drives and DMA gests rest on both.
amd64 + BenQ DVD
x86 + Plexwriter

I'm using kernel 2.6-15

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list