public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to set hdparms for ide-scsi devices on devfs?
@ 2001-02-28 21:48 Eduard Hasenleithner
  2001-03-01 11:10 ` Andre Hedrick
  0 siblings, 1 reply; 8+ messages in thread
From: Eduard Hasenleithner @ 2001-02-28 21:48 UTC (permalink / raw)
  To: linux-kernel

Sorry, if this issue was already discussed in lkml. I didn't find
a reference to this at www.geocrawler.com

My Problem:
I want to set the unmaskirq and dma -flag for my ide cd-recorder.
The Problem is, that devfs creates no ide device, but only
the /dev/scsi/../{cd,general} devices are created. And hdparm
don't accepts this devices for setting the ide-parameters.

My current workaround is to create a /dev/hd? device "by hand"
at system startup. This is not very beautiful. Furthermore, if
the device numbers in devfs are deactivated, this won't work
anymore.

I can live with my current solution. But i would be very happy
if someone can present a clean solution.

I posted this message intentionally not on the devfs mailing list
as i think this problem is related to accessing the same device
through different /dev entries. Under devfs, the /dev/ide/...
device node gets allocated after the corresponding ide-xx.o has
been loaded. But this is not possible with ide-scsi claiming
the device :(

Thanks in advance

-- 
Eduard Hasenleithner
student of
Salzburg University of Applied Sciences and Technologies

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

* Re: How to set hdparms for ide-scsi devices on devfs?
@ 2001-03-01  3:35 Jeremy Jackson
  0 siblings, 0 replies; 8+ messages in thread
From: Jeremy Jackson @ 2001-03-01  3:35 UTC (permalink / raw)
  To: Eduard Hasenleithner, linux-kernel


Eduard Hasenleithner wrote:

> Sorry, if this issue was already discussed in lkml. I didn't find
> a reference to this at www.geocrawler.com
>
> My Problem:
> I want to set the unmaskirq and dma -flag for my ide cd-recorder.
> The Problem is, that devfs creates no ide device, but only
> the /dev/scsi/../{cd,general} devices are created. And hdparm
> don't accepts this devices for setting the ide-parameters.
>
> My current workaround is to create a /dev/hd? device "by hand"
> at system startup. This is not very beautiful. Furthermore, if
> the device numbers in devfs are deactivated, this won't work
> anymore.
>
> I can live with my current solution. But i would be very happy
> if someone can present a clean solution.
>
> I posted this message intentionally not on the devfs mailing list
> as i think this problem is related to accessing the same device
> through different /dev entries. Under devfs, the /dev/ide/...
> device node gets allocated after the corresponding ide-xx.o has
> been loaded. But this is not possible with ide-scsi claiming
> the device :(
>
> Thanks in advance

workaround - before ide-scsi is loaded in boot sequence
(finding is left as an exercise to the reader :) do:

modprobe ide-cd
hdparm -u 1 -d 1 /dev/xxx
rmmod ide-cd

might have to do near top of /etc/rc.d/rc.sysinit under redhat,
but this is good since problems will happen before root filesystem
is remounted read-write, so any problems with hdparm settings
won't mess up disk.




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

* Re: How to set hdparms for ide-scsi devices on devfs?
  2001-02-28 21:48 How to set hdparms for ide-scsi devices on devfs? Eduard Hasenleithner
@ 2001-03-01 11:10 ` Andre Hedrick
  2001-03-02  8:48   ` Eduard Hasenleithner
  0 siblings, 1 reply; 8+ messages in thread
From: Andre Hedrick @ 2001-03-01 11:10 UTC (permalink / raw)
  To: Eduard Hasenleithner; +Cc: linux-kernel


procfs

echo unmaskirq:1 /proc/ide/hdx/settings

Andre Hedrick
Linux ATA Development
ASL Kernel Development
-----------------------------------------------------------------------------
ASL, Inc.                                     Toll free: 1-877-ASL-3535
1757 Houret Court                             Fax: 1-408-941-2071
Milpitas, CA 95035                            Web: www.aslab.com


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

* Re: How to set hdparms for ide-scsi devices on devfs?
  2001-03-01 11:10 ` Andre Hedrick
@ 2001-03-02  8:48   ` Eduard Hasenleithner
  2001-03-02 12:08     ` Wakko Warner
  0 siblings, 1 reply; 8+ messages in thread
From: Eduard Hasenleithner @ 2001-03-02  8:48 UTC (permalink / raw)
  To: linux-kernel

On Thu, Mar 01, 2001 at 03:10:53AM -0800, Andre Hedrick wrote:
> 
> procfs
> 
> echo unmaskirq:1 /proc/ide/hdx/settings
> 

Thank you, thats perfect. Is setting the parameters a relatively
new feature? I searched for a possibiliy like this and found no
references.

PS: Is there still a possibility for setting the IDE-sleep timeout
	for a ide-scsi harddisk?  (I know, this doesnt make sense)
-- 
Eduard Hasenleithner
student of
Salzburg University of Applied Sciences and Technologies

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

* Re: How to set hdparms for ide-scsi devices on devfs?
  2001-03-02  8:48   ` Eduard Hasenleithner
@ 2001-03-02 12:08     ` Wakko Warner
  2001-03-02 14:03       ` Jeremy Jackson
  2001-03-02 21:39       ` Andre Hedrick
  0 siblings, 2 replies; 8+ messages in thread
From: Wakko Warner @ 2001-03-02 12:08 UTC (permalink / raw)
  To: Eduard Hasenleithner, linux-kernel

> PS: Is there still a possibility for setting the IDE-sleep timeout
> 	for a ide-scsi harddisk?  (I know, this doesnt make sense)

I didn't know you could use ide-scsi emulation for hard drives.

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

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

* Re: How to set hdparms for ide-scsi devices on devfs?
  2001-03-02 12:08     ` Wakko Warner
@ 2001-03-02 14:03       ` Jeremy Jackson
  2001-03-02 14:21         ` Jens Axboe
  2001-03-02 21:39       ` Andre Hedrick
  1 sibling, 1 reply; 8+ messages in thread
From: Jeremy Jackson @ 2001-03-02 14:03 UTC (permalink / raw)
  To: Wakko Warner; +Cc: Eduard Hasenleithner, linux-kernel

Wakko Warner wrote:

> > PS: Is there still a possibility for setting the IDE-sleep timeout
> >       for a ide-scsi harddisk?  (I know, this doesnt make sense)

Yeah, why would you ?   ide-scsi is mainly to support cd-rw
drives, AFAIK

>
>
> I didn't know you could use ide-scsi emulation for hard drives.
>
> --
>  Lab tests show that use of micro$oft causes cancer in lab animals
> -
> 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] 8+ messages in thread

* Re: How to set hdparms for ide-scsi devices on devfs?
  2001-03-02 14:03       ` Jeremy Jackson
@ 2001-03-02 14:21         ` Jens Axboe
  0 siblings, 0 replies; 8+ messages in thread
From: Jens Axboe @ 2001-03-02 14:21 UTC (permalink / raw)
  To: Jeremy Jackson; +Cc: Wakko Warner, Eduard Hasenleithner, linux-kernel

On Fri, Mar 02 2001, Jeremy Jackson wrote:
> Wakko Warner wrote:
> 
> > > PS: Is there still a possibility for setting the IDE-sleep timeout
> > >       for a ide-scsi harddisk?  (I know, this doesnt make sense)
> 
> Yeah, why would you ?   ide-scsi is mainly to support cd-rw
> drives, AFAIK

It's a general SCSI-over-ATAPI interface, and as such regular ATA
hard drives cannot be run with ide-scsi.

-- 
Jens Axboe


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

* Re: How to set hdparms for ide-scsi devices on devfs?
  2001-03-02 12:08     ` Wakko Warner
  2001-03-02 14:03       ` Jeremy Jackson
@ 2001-03-02 21:39       ` Andre Hedrick
  1 sibling, 0 replies; 8+ messages in thread
From: Andre Hedrick @ 2001-03-02 21:39 UTC (permalink / raw)
  To: Wakko Warner; +Cc: Eduard Hasenleithner, linux-kernel


There are mystert ATAPI harddrives in the world!

On Fri, 2 Mar 2001, Wakko Warner wrote:

> > PS: Is there still a possibility for setting the IDE-sleep timeout
> > 	for a ide-scsi harddisk?  (I know, this doesnt make sense)
> 
> I didn't know you could use ide-scsi emulation for hard drives.
> 
> -- 
>  Lab tests show that use of micro$oft causes cancer in lab animals
> -
> 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/
> 

Andre Hedrick
Linux ATA Development
ASL Kernel Development
-----------------------------------------------------------------------------
ASL, Inc.                                     Toll free: 1-877-ASL-3535
1757 Houret Court                             Fax: 1-408-941-2071
Milpitas, CA 95035                            Web: www.aslab.com


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

end of thread, other threads:[~2001-03-02 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-28 21:48 How to set hdparms for ide-scsi devices on devfs? Eduard Hasenleithner
2001-03-01 11:10 ` Andre Hedrick
2001-03-02  8:48   ` Eduard Hasenleithner
2001-03-02 12:08     ` Wakko Warner
2001-03-02 14:03       ` Jeremy Jackson
2001-03-02 14:21         ` Jens Axboe
2001-03-02 21:39       ` Andre Hedrick
  -- strict thread matches above, loose matches on Subject: below --
2001-03-01  3:35 Jeremy Jackson

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