Re: bus-dma question

From: John Baldwin (jhb_at_FreeBSD.org)
Date: 09/26/05

  • Next message: eoghan: "Re: mysql port install"
    To: freebsd-hackers@freebsd.org, hselasky@c2i.net
    Date: Mon, 26 Sep 2005 15:25:05 -0400
    
    

    On Monday 26 September 2005 01:31 pm, Hans Petter Selasky wrote:
    > Hi,
    >
    > I see something suspicious on Amd64, when allocating small blocks of
    > DMA-able memory:
    >
    > bus_dmamap_load_callback: 0x0000000000caf200
    > ^^^^ this is physical address
    >
    > QH(0xffffff0000caf200) at 0x00caf200:
    > ^^^^ this is kernel address
    >
    > Shouldn't kernel addresses always be different from physical addresses ?

    No. Especially not on archs like alpha, ia64, amd64, and sparc64 where part
    of KVA is direct-mapped to physical memory either in hardware (alpha's K0Seg)
    or via software (ia64, amd64, and sparc64).

    > When allocating larger blocks of memory I get, for example:
    >
    > bus_dmamap_load_callback: 0x000000003bc50000
    >
    > which seems correct.
    >
    > --HPS
    > _______________________________________________
    > freebsd-hackers@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: eoghan: "Re: mysql port install"

    Relevant Pages

    • bus-dma question
      ... I see something suspicious on Amd64, when allocating small blocks of DMA-able ... Shouldn't kernel addresses always be different from physical addresses? ... When allocating larger blocks of memory I get, ...
      (freebsd-hackers)
    • Re: Is there any way to increase the KVM?
      ... PAE enabled rather than amd64. ... The whole 8G physical memory is available in our system, ... concerned is that the kernel cannot use more than 2G memory in kernel ...
      (freebsd-hackers)
    • Re: Removal of GEOM_BSD, GEOM_MBR, GEOM_PC98 and GEOM_SUNLABEL (recap)
      ... Same with all attempts with any previous amd64 revision). ... first question: Where were those nice GEOM devices that so nicely showed up and held ALL of the above on my previous 7.2-STABLE? ... Tried by taking GEOM_PART out of the picture and kernel recompile. ... "I think it is less painful for folks upgrading from 7 to just use the old names. ...
      (freebsd-current)
    • Re: kernel mess
      ... Correct semprons were originally Socket A cpu's as a replacement for the Athlon XP etc. AMD ditched the socket A in favour of S754, but disabled the 64 bit instruction on the semprons promoting the AMD64 instead. ... I was using -amd64 while running k8 kernel. ...
      (Debian-User)
    • Re: amd64: change VM_KMEM_SIZE_SCALE to 1?
      ... Anyone knows any reason why VM_KMEM_SIZE_SCALE on amd64 should not be set to 1? ... more than e.g. 1/3 of physical memory means needing more PTEs. ... FreeBSD architecture limiting the size of the kernel virtual space ...
      (freebsd-arch)