LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-18-2007, 09:54 AM   #1
srinivasbakki
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
how to use PCI shared memory ?


Hi,
I have a i386 host machine. on the PCI bus i have a device which needs to access a shared memory on another PCI device. This shared memory is shared between device and the host processor. Iam using linux kernel 2.6.14. I use the shared memory this way :

ioremap the shared memory and then i give the physical address of this shared memory to the PCI device which wants to access it. i get this physical address from lspci output. i get this error " Uhhuh. NMI received Dazed and confused u probably have bad RAM chips..."

Here do i need to make virt_to_bus of the address i got from the ioremap ?
But its generally taken that on the i386 machine both the bus address and physical address are the same.

But still if i do virt_to_bus on the ioremaped address i see that the bus address and the physical address are not the same.

Any help ???
 
  


Reply

Tags
confused, error, kernel, memory, nmi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shared memory hegdeshashi Linux - Newbie 1 12-20-2006 06:14 AM
Shared memory yhus Programming 1 09-28-2006 02:24 PM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
shared memory blackzone Programming 1 10-14-2004 11:52 AM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration