Re: DRAM and PCI devices at same physical address

From: Matt Porter (mporter_at_kernel.crashing.org)
Date: 06/27/04

  • Next message: Matthew Dharm: "Re: drivers/block/ub.c"
    Date:	Sat, 26 Jun 2004 20:26:48 -0700
    To: Matt Sexton <sexton@mc.com>
    
    

    On Fri, Jun 25, 2004 at 05:23:00PM -0400, Matt Sexton wrote:
    > I have a dual Xeon system with the Lindenhurst (E7710) chip set and 1 GB
    > of memory. In order to reserve a very large block of memory for a
    > (user-space) device driver I am writing, I pass "mem=XX" to the kernel
    > at boot time. Unfortunately, /proc/pci shows two devices now appearing
    > in the reserved upper memory range.

    <snip>
     
    > The devices always appear right after the limit I specify on the kernel
    > boot line. If I specify "mem=512M", then the first device appears at
    > 0x20000000. If I specify nothing, then it appears at 0x40000000. All
    > other PCI devices show up at addresses of 0xDD000000 and above.
    >
    > Is there any way to prevent these devices from showing up in the
    > physical address range of my reserved memory?

    You could try using reserve_bootmem() to reserve your driver memory.

    > Should they be appearing there at all? Does Linux make any guarantees
    > when there is more physical memory than specified by "mem=" ?

    Depends on the arch, I don't know what ia32 does.
     
    -Matt
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Matthew Dharm: "Re: drivers/block/ub.c"

    Relevant Pages

    • [RFC][PATCH 0/9] Network receive deadlock prevention for NBD
      ... Convergence of network and storage paths" ... "Net vm deadlock fix " ... Maybe it is another memory deadlock, ... dipping into the memalloc reserve if it must. ...
      (Linux-Kernel)
    • Re: [PATCH 00/28] Swap over NFS -v16
      ... memory they can consume. ... So we need the extra (skb) ... included in the reserve? ... if the allocation had to dip into emergency reserves, ...
      (Linux-Kernel)
    • Re: Windows 2000 Server StandardEdition /PAE Question
      ... I would like to add here that the reserved memory address space by the devices is not necessarily reserved to talk to the processor. ... They may not necessarily talk to the processor at those addresses but the end result is the same, the private addresses will be marked as off limits to the processor and the RAM will still end up short of addresses in the lower 4GB memory arena. ... For example, the BIOS and system board will reserve and use a bit less than 1 megabyte of address space directly at the processor, when the processor needs to talk with the BIOS or motherboard it will do so directly by using their reserved addresses, the addresses reserved by and given to the system board cannot be used by the RAM. ... Windows 2000 Professional, Windows 2000 Server, Windows XP 32-bits and Vista 32-bits do not make full use of this /PAE feature, they are unable to use RAM addressed above the 4GB boundary. ...
      (microsoft.public.win2000.general)
    • Re: [PATCH] reserve end-of-conventional-memory to 1MB on 32-bit
      ... This patch adds explicit detection of the EBDA and reservation ... the EBDA size was hardcoded as 4Kb. ... we'll fake a memory map. ... * workaround for Dell systems that neglect to reserve EBDA ...
      (Linux-Kernel)
    • FlashROM as as a FAT-disk in CE 5.0?
      ... Eboot.bib and virtual memory map and possibly ... RAM 83100000 $RAM ... Reserve ZBANK virtual block (No physical memory ...
      (microsoft.public.windowsce.platbuilder)