Re: tunning PCI latency ...

From: Stefan Eßer (se_at_FreeBSD.org)
Date: 11/12/04

  • Next message: Anish Mistry: "Re: usb dead on sony vaio"
    Date: Fri, 12 Nov 2004 01:02:01 +0100
    To: current@freebsd.org
    
    

    On 2004-11-12 09:38 +1030, "Wilkinson, Alex" <alex.wilkinson@dsto.defence.gov.au> wrote:
    > 0n Thu, Nov 11, 2004 at 11:01:24PM +0100, Stefan Eßer wrote:
    >
    > On 2004-11-11 12:22 +1030, "Wilkinson, Alex" <alex.wilkinson@dsto.defence.gov.au> wrote:
    > > Hi all,
    > >
    > > Is it possible to change the latency of PCI devs in RELENG_5 ?
    > > i.e in the same respect it can be done in Linux with setpci(8).
    >
    > What do you try to achieve?
    >
    > I wanted to experiment with changing the amount of time PCI devices were allocated
    > to burst data across the bus and the effects of doing so.

    Hmmm, you are aware that the latency timer value is irrelevant
    unless there are multiple competing bus-masters?

    It is not a time slice assigned to a device, but the minimum time
    slice that the device gets granted in case of competition (i.e.
    once it gets to use the bus, a higher priority master will have
    to at least let it have that many cycles).

    The master latency timer in the host bridge may have a lower value
    than the device latency timer, causing the latter to never trigger.

    The sum of all latency timers must be low enough to permit all
    possible bus-masters to access the bus before their internal fifo
    buffers overflow. That puts a maximum on the sum, which in theory
    depends on the maximum latency value reported by the device with
    the (in relation to its nominal effective transfer rate) smallest
    buffer. Lower values will just cause the bus to be given up early
    and will cause a higher fraction of address vs. data cycles.

    Normal latency timer values (in the range of 16 to 32 cycles)
    should get you 75% to 90% of the theoretical bandwidth, while
    the maximum latency for 2 or 3 competing bus masters is at most
    2 micro seconds (less than 200bytes at Gigabit Ethernet data
    rates).

    I don't think that changing the latency timer is going to make
    any a difference, except under extremely high bus load ...

    Regards, STefan
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Anish Mistry: "Re: usb dead on sony vaio"

    Relevant Pages

    • Re: Knowledge in DUP-line protocol?
      ... short the bus. ... 0,3 - 0,5 ms, ie when the master tries to make a zero by ... If, for some reason, one channel is to be transmitted as a 1 ... might have been dis-connected unless a transmitter is ...
      (sci.electronics.design)
    • Re: [RFC/PATCH 0/22] W1: sysfs, lifetime and other fixes
      ... > which is managed by bus master dirver, but also some logic over it, ... Only if caller would send request and continue one woudl ... > which will implement only read/write interface. ...
      (Linux-Kernel)
    • [PATCH] w1: Updates the w1 documentation (w1.generic)
      ... When some device is found on the bus, ... -checks if driver for it's family is loaded. ... +All w1 slave devices must be connected to a w1 bus master device. ...
      (Linux-Kernel)
    • Re: EDK and Custom Peripheral: error occur when generating bitstream
      ... That seems your case, in your plb address bus, master ... see if your core has been assigned the second master slot on the PLB ... You can look at this file to see how EDK has connected the ...
      (comp.arch.fpga)
    • Re: DAW, mixing console setup suggestions.
      ... of Nuendo's master bus, or it's broken. ... There are no grey areas. ... I was talking about capturing the stereo signal coming out of master ... It's from this that we got the concept of analog summing being somehow ...
      (rec.audio.pro)