lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 08 Sep 2009 22:04:22 +0400
From:	Sergei Shtylyov <sshtylyov@...mvista.com>
To:	Alan Stern <stern@...land.harvard.edu>
Cc:	Frederik Deweerdt <frederik.deweerdt@...og.eu>,
	linux-ide@...r.kernel.org,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: Limiting DMA speeds for individual IDE drives

Hello.

Frederik Deweerdt wrote:

>>Is there any simple way to force the old IDE driver to limit the DMA
>>speed for a particular device?

    No, you can only disable DMA totally, and then set the needed speed via 
hdparm.

>>I've got a situation where a drive claims to be capable of supporting
>>UDMA/100, but it's in a noisy environment and gets lots of errors at
>>that speed.  I'd like to limit it to UDMA/66 or even UDMA/33.

    Are you sure that it's all because of the noise and not a cable type 
misdetection?

>>The hdparm command should be able to do this but I can't run it until 
>>the system has booted, by which time a bunch of CRC and possibly other 
>>errors have already occurred.  Ideally it should be possible to limit 
>>the speed starting as early as device detection, but I can't find any 
>>way to do it.  Is there support for such a thing or will I have to hack 
>>it in?

> Does passing ide=nodma at bootime, and then having init set the DMA at
> the right speed, would work?

    ide=nodma is now obsolete -- use ide_core.nodma=<interface>,<device> 
instead. Read Documentation/ide/ide.txt before advising. ;-)

> Regards,
> Frederik

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ