impossible to set pata dma mode?
Norbert Koch
nkoch at demig.de
Thu Jan 28 09:03:42 UTC 2016
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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
--
Dipl.-Ing. Norbert Koch
Entwicklung Prozessregler
More information about the freebsd-hackers
mailing list