<br><br><div><span class="gmail_quote">On 3/1/06, <b class="gmail_sendername">Brian Wood</b> &lt;<a href="mailto:beww@beww.org">beww@beww.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>On Mar 1, 2006, at 1:42 PM, Dylan R. Semler wrote:<br><br>&gt; &lt;<a href="http://www.mythtv.org/wiki/index.php/PCI_Latency">http://www.mythtv.org/wiki/index.php/PCI_Latency</a>&gt;<br>&gt;<br>&gt;&gt;&gt; I found my IDE controller latency was set to zero, so I reset it to
<br>&gt;&gt;&gt; 32 (20hex).&nbsp;&nbsp;I'm not at home to try playback right now, but I was<br>&gt;&gt;&gt; wondering what others who are having this problem find for their<br>&gt;&gt;&gt; IDE/SATA controller latency.&nbsp;&nbsp;Maybe this could fix us up?!?!&nbsp;&nbsp;I'll
<br>&gt;&gt;&gt; report back later tonight what I find out.<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; So far, with a very limited number of samples, the people who have<br>&gt;&gt; found their disk controllers set to zero have either been unable to
<br>&gt;&gt; reset the latency value, or have not seen any positive results from<br>&gt;&gt; doing so.<br>&gt;&gt;<br>&gt;&gt; Only the machines which have drive controller latency set to 32 or 64<br>&gt;&gt; initially have had much luck in adjusting them.
<br>&gt;&gt;<br>&gt;&gt; Again, this is from a *very* limited number of samples (6 to be<br>&gt;&gt; exact)<br>&gt;&gt; so please report your results, positive or negative, as well as the<br>&gt;&gt; chipset your mobo is using (perhaps on the WiKi page ??)
<br>&gt;<br>&gt; I just tried changing the latency on my three machines.&nbsp;&nbsp;I have two<br>&gt; Dell<br>&gt; 8200 desktops from about 2002 and a Sager laptop from December<br>&gt; 2005.&nbsp;&nbsp;In<br>&gt; all three machines, the initial IDE latency was 0 and changing it with
<br>&gt;<br>&gt; setpci -v -s 00:1f.1 latency_timer=b0 (or any other value)<br>&gt;<br>&gt; did not seem to do anything.&nbsp;&nbsp;At least lspci -v continued to display<br>&gt; their latency as 0 (I have not been able to test this with Myth yet).
<br>&gt; Furthermore, I found that if tried this command on ANY controller<br>&gt; whose<br>&gt; intial latency was 0, the command did nothing.&nbsp;&nbsp;If the initial latency<br>&gt; was not zero, the command would change the latency to the desired
<br>&gt; value.&nbsp;&nbsp;I Also tested that if a controller ititially had a non-zero<br>&gt; latency, and I changed it to zero, I was still able to change it<br>&gt; back to<br>&gt; other values.&nbsp;&nbsp;I have no idea why this is or what can be done, but I
<br>&gt; thought I'd add some more datapoints to the set.&nbsp;&nbsp;If anyone wants the<br>&gt; maker of these mobos, I can probably find that out somehow.<br>&gt;<br><br>That matches out what I have recorded. The one incident of somebody
<br>setting a zero latency to something else could not be repeated and I<br>take it as bad data.<br><br>I think by spec latency does not have to be settable unless the<br>device is capable of bus mastering and bursting two or more shots
<br>over the bus, but I can't imagine a drive controller that wouldn't<br>want to be able to do that. The latency might just be fixed at some<br>unknown value and not readable by lspci for some reason.<br></blockquote></div>
<br><br>Maybe I'm an exception to the rule, but setpci lets me adjust the latency of the IDE controller, and checking again afterwards with lspci -v seems to indicate the change has held:<br><br>00:14.1 IDE interface: ATI Technologies Inc: Unknown device 4349 (prog-if 8a [Master SecP PriP])
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subsystem: ATI Technologies Inc: Unknown device 4349<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags: bus master, medium devsel, latency 32<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at &lt;ignored&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at &lt;ignored&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at &lt;ignored&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at &lt;ignored&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at ff00 [size=16]<br><br><br><br>however, the ISA bridge also has a latency of 0 and that doesn't change after setting with setpci:<br><br>00:14.3 ISA bridge: ATI Technologies Inc: Unknown device 434c
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subsystem: ATI Technologies Inc: Unknown device 434c<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags: bus master, 66Mhz, medium devsel, latency 0<br><br><br><br>