Re: Hdparm and 2.4 kernel
On Mon, 19 Mar 2001, Ethan Benson wrote: : On Mon, Mar 19, 2001 at 07:59:57AM +, Chris Howells wrote: : Generally you need to be root to use hdparm. : : I am root! I wouldn't imagine it working it with a non-priveleged user. : : There seems to be a gerneral problem with hdparm not being happy under : the 2.4 kernel -- if I boot 2.2.18 again it works fine. : : what chipset? some (VIA) have been blacklisted in the kernel since : they are too buggy (or the kernel driver is too buggy) maybe someone could give me a hint.. apple:~# lspci 00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 0305 (rev 03) 00:01.0 PCI bridge: VIA Technologies, Inc.: Unknown device 8305 00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super] (rev 22) 00:07.2 USB Controller: VIA Technologies, Inc. VT82C586B USB (rev 10) 00:07.3 USB Controller: VIA Technologies, Inc. VT82C586B USB (rev 10) 00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30) 00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 [Apollo Super AC97/Audio] (rev 20) 01:00.0 VGA compatible controller: nVidia Corporation Riva TNT2 Model 64 (rev 15) dmesg: PCI: PCI BIOS revision 2.10 entry at 0xfb260, last bus=1 PCI: Probing PCI hardware PCI: device 00:07.1 has unknown header type 20, ignoring. Unknown bridge resource 0: assuming transparent PCI: Using IRQ router VIA [1106/0686] at 00:07.0 apple:~# uname -r 2.4.2 apple:~# hdparm -d1 /dev/hda /dev/hda: setting using_dma to 1 (on) HDIO_SET_DMA failed: Die Operation ist nicht erlaubt using_dma= 0 (off) apple:~# cat /proc/ide/hda/model ST320423A apple:~# cat /usr/src/linux-2.4.2/.config snip CONFIG_BLK_DEV_IDE=y # CONFIG_BLK_DEV_HD_IDE is not set # CONFIG_BLK_DEV_HD is not set CONFIG_BLK_DEV_IDEDISK=y CONFIG_IDEDISK_MULTI_MODE=y CONFIG_BLK_DEV_IDEPCI=y CONFIG_IDEPCI_SHARE_IRQ=y CONFIG_BLK_DEV_IDEDMA_PCI=y # CONFIG_BLK_DEV_OFFBOARD is not set CONFIG_IDEDMA_PCI_AUTO=y CONFIG_BLK_DEV_IDEDMA=y # CONFIG_IDEDMA_PCI_WIP is not set # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set CONFIG_BLK_DEV_VIA82CXXX=y # CONFIG_IDE_CHIPSETS is not set CONFIG_IDEDMA_AUTO=y # CONFIG_IDEDMA_IVB is not set CONFIG_DMA_NONPCI is not set CONFIG_BLK_DEV_IDE_MODES=y apple:~# ls -asl /proc/ide/ insgesamt 0 0 dr-xr-xr-x4 root root0 Mär 20 15:36 . 0 dr-xr-xr-x 62 root root0 Mär 20 16:10 .. 0 -r--r--r--1 root root0 Mär 20 15:36 drivers 0 lrwxrwxrwx1 root root8 Mär 20 15:36 hda - ide0/hda 0 lrwxrwxrwx1 root root8 Mär 20 15:36 hdc - ide1/hdc 0 dr-xr-xr-x3 root root0 Mär 20 15:36 ide0 0 dr-xr-xr-x3 root root0 Mär 20 15:36 ide1 so I'm a bit lost here, drivers/ide/via82cxxx.c suggests a file /proc/ide/via to be, but there's no and no boot message regarding via82cxxx.c': printk(KERN_INFO VP_IDE: VIA %s (rev %02x) IDE %s controller on pci%s\n Thanks Claus pgpkSGC2HyjKn.pgp Description: PGP signature
Re: Hdparm and 2.4 kernel
Ethan Benson wrote: what chipset? some (VIA) have been blacklisted in the kernel since they are too buggy (or the kernel driver is too buggy) Nope, like I said in the original message, the Intel LX. The same hardware has worked fine under Mandrake, with the same kernel version. -- Chris Howells E-Mail: [EMAIL PROTECTED] ICQ: 93699029 Web: http://www.chowells.uklinux.net
Re: Hdparm and 2.4 kernel
Generally you need to be root to use hdparm. I am root! I wouldn't imagine it working it with a non-priveleged user. There seems to be a gerneral problem with hdparm not being happy under the 2.4 kernel -- if I boot 2.2.18 again it works fine. Even more generally you shouldn't need to use hdparm with 2.4.x kernels. 2.4.x has much better IDE support. I get much better benchmark results with DMA set on. -- Chris Howells E-Mail: [EMAIL PROTECTED] ICQ: 93699029 Web: http://www.chowells.uklinux.net
Re: Hdparm and 2.4 kernel
Forrest English wrote: is your kernel compiled with dma support? because if it's not, thats not gonna work. Yup, pretty sure it is. I'll check though. Cheers, -- Chris Howells E-Mail: [EMAIL PROTECTED] ICQ: 93699029 Web: http://www.chowells.uklinux.net
Re: Hdparm and 2.4 kernel
is your kernel compiled with dma support? because if it's not, thats not gonna work. Yup, pretty sure it is. I'll check though. If your chipset supports DMA, along with your drives, and you select the Use DMA when available... option in the kernel, it should already have DMA enabled. If not, I would be hesitant to force it on with hdparm. Hall
Re: Hdparm and 2.4 kernel
On Mon, Mar 19, 2001 at 07:59:57AM +, Chris Howells wrote: Generally you need to be root to use hdparm. I am root! I wouldn't imagine it working it with a non-priveleged user. There seems to be a gerneral problem with hdparm not being happy under the 2.4 kernel -- if I boot 2.2.18 again it works fine. what chipset? some (VIA) have been blacklisted in the kernel since they are too buggy (or the kernel driver is too buggy) -- Ethan Benson http://www.alaska.net/~erbenson/ pgpxLZklSdcyY.pgp Description: PGP signature
Re: Hdparm and 2.4 kernel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A long time ago, in a galaxy far, far way, someone said... Even more generally you shouldn't need to use hdparm with 2.4.x kernels. 2.4.x has much better IDE support. I get much better benchmark results with DMA set on. Yes you will but you still don't need hdparm to set DMA mode. Kernel 2.4 is *very* good at doing that automatically, provided you have your kernel compiled right. - -- - -- Phil Brutsche [EMAIL PROTECTED] GPG fingerprint: 9BF9 D84C 37D0 4FA7 1F2D 7E5E FD94 D264 50DE 1CFC GPG key id: 50DE1CFC GPG public key: http://tux.creighton.edu/~pbrutsch/gpg-public-key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6tiyR/ZTSZFDeHPwRApKHAJ0cn7Z/lzYX/vKe43n76ExzEtdH5gCZATo5 GxyUliX3oDWfTlQ5qlpLQ0I= =GHr2 -END PGP SIGNATURE-
Re: Hdparm and 2.4 kernel
On Mon, 19 Mar 2001, Phil Brutsche wrote: Yes you will but you still don't need hdparm to set DMA mode. Kernel 2.4 is *very* good at doing that automatically, provided you have your kernel compiled right. I had my kernel compiled with DMA support, passed some command line parameters throug lilo.conf and DMA was not set by kernel; I did it by hand (hdparm). I'm using a Dell OptiPlex GX110 with i810 chipset and a Maxtor 20GB UDMA. []s Mario O.de MenezesMany are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails http://curiango.ipen.br/~mario Prov. 19.21
Re: Hdparm and 2.4 kernel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A long time ago, in a galaxy far, far way, someone said... I'm having trouble using hdparm (versions 3.6 and 4.1) on a Debian Potato system. When I do: hdparm -d1 /dev/hda The message is: HDIO_SET_DMA failed: Operation not permitted. Does anybody have any suggesstions why? The same hardware worked with DMA under Linux on Mandrake 7.0 (LX chipset + Maxtor disk drive) Even compiling my own version of hdparm doesn't help. Generally you need to be root to use hdparm. Even more generally you shouldn't need to use hdparm with 2.4.x kernels. 2.4.x has much better IDE support. - -- - -- Phil Brutsche [EMAIL PROTECTED] GPG fingerprint: 9BF9 D84C 37D0 4FA7 1F2D 7E5E FD94 D264 50DE 1CFC GPG key id: 50DE1CFC GPG public key: http://tux.creighton.edu/~pbrutsch/gpg-public-key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6tGpK/ZTSZFDeHPwRAl1lAJ4jDRHK60VO8O/7GdCFgdarFo6qbwCeIuQA z1O9xIx5WS3VBQcfHMN1DAE= =O6v5 -END PGP SIGNATURE-
Re: Hdparm and 2.4 kernel
is your kernel compiled with dma support? because if it's not, thats not gonna work. -- Forrest English http://truffula.net When we have nothing left to give There will be no reason for us to live But when we have nothing left to lose You will have nothing left to use -Fugazi On Sun, 18 Mar 2001, Phil Brutsche wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A long time ago, in a galaxy far, far way, someone said... I'm having trouble using hdparm (versions 3.6 and 4.1) on a Debian Potato system. When I do: hdparm -d1 /dev/hda The message is: HDIO_SET_DMA failed: Operation not permitted. Does anybody have any suggesstions why? The same hardware worked with DMA under Linux on Mandrake 7.0 (LX chipset + Maxtor disk drive) Even compiling my own version of hdparm doesn't help. Generally you need to be root to use hdparm. Even more generally you shouldn't need to use hdparm with 2.4.x kernels. 2.4.x has much better IDE support. - -- - -- Phil Brutsche [EMAIL PROTECTED] GPG fingerprint: 9BF9 D84C 37D0 4FA7 1F2D 7E5E FD94 D264 50DE 1CFC GPG key id: 50DE1CFC GPG public key: http://tux.creighton.edu/~pbrutsch/gpg-public-key.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6tGpK/ZTSZFDeHPwRAl1lAJ4jDRHK60VO8O/7GdCFgdarFo6qbwCeIuQA z1O9xIx5WS3VBQcfHMN1DAE= =O6v5 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]