[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mm
Subject: Making PCI Memory Cachable
From: John Fusco <fusco_john () yahoo ! com>
Date: 2006-11-28 14:02:42
Message-ID: 456C4182.4020302 () yahoo ! com
[Download RAW message or body]
I have numerous custom PCI devices that implement SRAM or DRAM on the
PCI bus. I would like to explore making this memory cachable in the
hopes that writes to memory can be done from user space and will be done
in bursts rather than single cycles.
Is this crazy or what? I assumed that the VM_IO flag in remap_pfn_range
controls this, but that doesn't appear to be the case.
A simple test from user space is the following:
ptr = mmap(...)
memset(ptr, 'a', size)
The driver gets the pointer with remap_pfn_range, but I always see
64-bit writes to memory (this is x86_64 architecture). If this were
cachable and the HW waqs cooperative, I would expect to see cache line
bursts (e.g. 128 bytes).
I think one of two things is happening:
a) The kernel is not making this memory cachable
b) The memory is cachable, but the chipset is throttling the bursts
Can someone enlighten me?
Thanks,
John
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic