Re: hw.ata.atapi_dma vanished

2003-11-03 Thread Harald Schmalzbauer
On Monday 03 November 2003 05:42, Kent Stewart wrote:
 On Sunday 02 November 2003 03:40 pm, Harald Schmalzbauer wrote:
  Hello, grumpf,
 
  after having had the first spontanous reboot with -current for a long
  time I wanted to look for hw.ata.atapi_dma (since the machine crashed
  (without ANY report) when I tried to access the CD) and found it's gone.
  The man page still tells my stories about that sysctl.
 
  What news did I miss?

 man ata You add it to /boot/loader.conf now.

I always had it in loader.conf.local but why is this sysctl not listed 
anymore?
cale:~ sysctl hw.ata
hw.ata.ata_dma: 1
hw.ata.wc: 1

I can remember some other sysctl which were not displayed before altered.
How can I get ALL sysctls? (-a also just shows these two hw.ata)

I think some time ago hw.ata.atapi_dma was listed, no matter if it was alered 
before or not.

Thanks,

-Harry



 Kent


pgp0.pgp
Description: signature


Re: hw.ata.atapi_dma vanished

2003-11-03 Thread Soren Schmidt
It seems Harald Schmalzbauer wrote:
 
 I always had it in loader.conf.local but why is this sysctl not listed 
 anymore?
 cale:~ sysctl hw.ata
 hw.ata.ata_dma: 1
 hw.ata.wc: 1
 
 I can remember some other sysctl which were not displayed before altered.
 How can I get ALL sysctls? (-a also just shows these two hw.ata)
 
 I think some time ago hw.ata.atapi_dma was listed, no matter if it was alered 
 before or not.

It diapeared some time ago, but setting it in loader.conf still works
you just cannot see it. Its on my TODO list, but real bugs has priority
over this minor nit...

-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hw.ata.atapi_dma vanished

2003-11-03 Thread Dag-Erling Smørgrav
Soren Schmidt [EMAIL PROTECTED] writes:
 It diapeared some time ago, but setting it in loader.conf still works
 you just cannot see it. Its on my TODO list, but real bugs has priority
 over this minor nit...

Then you won't mind if I commit the attached patch?

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]

Index: ata-all.c
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-all.c,v
retrieving revision 1.195
diff -u -r1.195 ata-all.c
--- ata-all.c	12 Oct 2003 12:37:11 -	1.195
+++ ata-all.c	3 Nov 2003 09:01:30 -
@@ -76,8 +76,14 @@
 /* sysctl vars */
 SYSCTL_NODE(_hw, OID_AUTO, ata, CTLFLAG_RD, 0, ATA driver parameters);
 TUNABLE_INT(hw.ata.ata_dma, ata_dma);
+SYSCTL_INT(_hw_ata, OID_AUTO, ata_dma, CTLFLAG_RDTUN, ata_dma, 0,
+	   ATA disk DMA mode control);
 TUNABLE_INT(hw.ata.wc, ata_wc);
+SYSCTL_INT(_hw_ata, OID_AUTO, wc, CTLFLAG_RDTUN, ata_wc, 0,
+	   ATA disk write caching);
 TUNABLE_INT(hw.ata.atapi_dma, atapi_dma);
+SYSCTL_INT(_hw_ata, OID_AUTO, atapi_dma, CTLFLAG_RDTUN, atapi_dma, 0,
+	   ATAPI device DMA mode control);
 int ata_dma = 1;
 int ata_wc = 1;	 
 int atapi_dma = 0;
Index: ata-disk.c
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-disk.c,v
retrieving revision 1.161
diff -u -r1.161 ata-disk.c
--- ata-disk.c	21 Oct 2003 18:28:34 -	1.161
+++ ata-disk.c	3 Nov 2003 09:01:09 -
@@ -67,13 +67,6 @@
 static MALLOC_DEFINE(M_AD, AD driver, ATA disk driver);
 static u_int32_t adp_lun_map = 0;
 
-/* sysctl vars */
-SYSCTL_DECL(_hw_ata);
-SYSCTL_INT(_hw_ata, OID_AUTO, ata_dma, CTLFLAG_RDTUN, ata_dma, 0,
-	   ATA disk DMA mode control);
-SYSCTL_INT(_hw_ata, OID_AUTO, wc, CTLFLAG_RDTUN, ata_wc, 0,
-	   ATA disk write caching);
-
 void
 ad_attach(struct ata_device *atadev)
 {
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hw.ata.atapi_dma vanished

2003-11-03 Thread Soren Schmidt
It seems Dag-Erling Smørgrav wrote:
 Soren Schmidt [EMAIL PROTECTED] writes:
  It diapeared some time ago, but setting it in loader.conf still works
  you just cannot see it. Its on my TODO list, but real bugs has priority
  over this minor nit...
 
 Then you won't mind if I commit the attached patch?

No, just go ahead..

-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hw.ata.atapi_dma vanished

2003-11-02 Thread Kent Stewart
On Sunday 02 November 2003 03:40 pm, Harald Schmalzbauer wrote:
 Hello, grumpf,

 after having had the first spontanous reboot with -current for a long time
 I wanted to look for hw.ata.atapi_dma (since the machine crashed (without
 ANY report) when I tried to access the CD) and found it's gone.
 The man page still tells my stories about that sysctl.

 What news did I miss?


man ata You add it to /boot/loader.conf now.

Kent
-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]