non-cacheable PCI-X memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am writing PCI-X device driver. DPRAM is memory-mapped to PCI-X card. I
want to use that memory as non-cacheable memory.
ioremap_uncached() is to be used when device driver wants to write/read data
from that memory-mapped DPRAM, using virtual address. But here, Data trasfer
is done through PCI-X bus master. Let me know whether i have to do
ioremap_uncached() for this DPRAM. DPRAM is used as buffer.

One more query:
Base address(physical address) of hardware register is stored at BAR-0 PCI-X
configuration space.  Can i use "virt_to_phys()" to get virtual address from
this physical address. And can i use that virtual address for
reading/writing/configuring registers ? Or I have to use
request_mem_region() calls to allocate the memory and use it.

Another query:
I allocated kernel memory using kmalloc(). And then each pages of that
memory is reserved using
SetPageReserved() API call. Is this action equal to converting the memory to
non-cacheable.
	kmalloc() ==> virt_to_page() ==> SetPageReserved() 

Pls let me know.

Regards,
Munees.
DISCLAIMER 
The contents of this e-mail and any attachment(s) are confidential and intended for the 

named recipient(s) only. It shall not attach any liability on the originator or HCL or its 

affiliates. Any views or opinions presented in this email are solely those of the author and 

may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, 

dissemination, copying, disclosure, modification, distribution and / or publication of this 

message without the prior written consent of the author of this e-mail is strictly 

prohibited. If you have received this email in error please delete it and notify the sender 

immediately. Before opening any mail and attachments please check them for viruses and 

defect.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux