Re: API change for bus_dma

From: Terry Lambert (tlambert2_at_mindspring.com)
Date: 06/28/03

  • Next message: Max Khon: "Re: Jailed sysvipc implementation."
    Date: Sat, 28 Jun 2003 00:52:10 -0700
    To: Andrew Gallatin <gallatin@cs.duke.edu>
    
    

    Andrew Gallatin wrote:
    > Scott Long writes:
    > > The approach taken with busdma is that you don't assume coherency. The
    >
    > Unfortunately, in our application we must assume coherency in some
    > situations. We have kernel memory mmap'ed into user space for
    > zero-copy io of small messages. Doing a system call to force the dma
    > sync would add unacceptable latency. (we're talking sub 10us latencies
    > here, without syscalls).

    "contigmalloc"

    You have to do the same thing for BT848 and fram buffers that eat
    host memory instead of having their own to play in. In general,
    this has to be done in the device driver, very early on in the life
    of the system to stand any chance of succeeding: because we do not
    properly use ELF section attribute tags, it's not possible to defrag
    physical memory in FreeBSD to do these allocations later. The tags
    are necessary to identify code in the defragmentation code path so
    that it does not attempt to relocate itself while it's running itself.

    NB: FreeBSD doesn't support kernel paging and discard of init routines
    in device drivers, once the driver is operational, for the same reason:
    lack of section tags indicating "paging path" in the first instance,
    and lack of section tags indicating "discard after initialization" in
    the second.

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


  • Next message: Max Khon: "Re: Jailed sysvipc implementation."