Date: Thu, 28 Jan 2016 10:03:13 +0100 From: Norbert Koch <nkoch@demig.de> To: <freebsd-hackers@FreeBSD.org> Subject: Re: impossible to set pata dma mode? Message-ID: <56A9D951.5040500@demig.de> In-Reply-To: <56A9D502.7010809@demig.de> References: <56A9D502.7010809@demig.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Modifying camcontrol like below
seems to cause no obvious problems
(at least for me):
--- /usr/src/sbin/camcontrol/camcontrol.c 2013-02-04
11:01:17.000000000 +0100
+++ camcontrol.c 2016-01-28 09:56:29.000000000 +0100
@@ -3617,12 +3617,14 @@
retval = 1;
goto ratecontrol_bailout;
}
+#if 0
if (!user_settings) {
warnx("You can modify only user mode "
"settings for ATA/SATA");
retval = 1;
goto ratecontrol_bailout;
}
+#endif
if (pata) {
pata->mode = mode;
pata->valid |= CTS_ATA_VALID_MODE;
Am 28.01.2016 um 09:44 schrieb Norbert Koch:
> Hello.
>
> I have to reduce dma mode from udma to wdma2
> for a flash device.
>
> In the past this was easy using atacontrol
> but, afaiks it seems to be impossible using camcontrol.
>
> camcontrol negotiate ada0 -M wdma
> ...You can only modify user parameters
>
> camcontrol negotiate ada0 -NM wdma
> Works, but I see no way how those user
> parameters become active parameters as the
> driver only reads then in attach as far as
> I can see.
>
> It seems like the ata driver's interface
> allows to change the current settings
> (XPT_SET_TRAN_SETTINGS/CTS_TYPE_CURRENT_SETTINGS)
> so, why is camcontrol so restrictive?
>
> Thank you,
> Norbert Koch
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
--
Dipl.-Ing. Norbert Koch
Entwicklung Prozessregler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56A9D951.5040500>
