LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 04-04-2007, 10:49 AM   #1
KaanKaynar
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
How to connect two linux computers via their pci slots?


Hi,
We are attemting to connect two desktop motherboards via a pci-to-pci bridge plugged into each motherboard's pci slot. One desktop(cpu) will do the security processing needed by the other cpu. Both computers will have Linux loaded.

*We don't know how to emulate "pci configuration space" on the security processing computer to let the other computer's BIOS (or OS) locate the emulated pci conf space and read the necessary information(I/O memory address range, device id etc..).

*Also, we want to learn how to emulate an I/O memory on the security processing computer(i.e., how to map a pci bus address to a logical/physical RAM address) to let the other computer read/write from/to the security processing computer's I/O memory using its pci bus address.

Later, we want to replace the security processing computer with a PC/104+ single board computer and connect this
to the other computer via a pci-to-pc/104+ bridge. Can the two problems stated above be solved same as in the first case?

Thanks in advance for any help.
Kaan
 
Old 04-04-2007, 01:13 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 112Reputation: 112
You have to satisfy the electrical, mechanical, and logical specifications of the PCI bus on both machines. You can't do something as simple as cabling between the two machines.

There are PCI development cards available that will permit you to focus on your development "off the bus" in that they provide you with a complete interface to the PCI bus. Get one of these for each machine, study them, then build some logic on those cards that will permit you to ship your data back and forth between machines. For instance, the input buffers on one PCI card would map to the output buffers on the other, and vice-versa.

After you have done this, your PCI interface will be automatically detected by BIOS and by Linux. You then will have the job of writing drivers for both sides to do what you want to do.

Have fun.
 
Old 04-04-2007, 01:27 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
Creating a multi-processor system in this manner is going to be a pretty significant technical endeavor. You can't just arbitrarily read another processor's memory without expecting to cause an impact on that other processor. Writing to that other processor's memory space would be disastrous, since you have no way to update the on-chip memory cache in that other CPU. My advice is to forget it now before you have too much effort in the idea. If you want a multi-processor system, buy a system with multiple processors. If you have two machines that you want to play with for shared tasking, then bind them together with gigabit ethernet and mess around with some of the task sharing software that's already out there.
 
Old 04-04-2007, 02:01 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 169Reputation: 169
You might want to look at clusters (more than one computer tied together over ethernet to work on one task).
 
Old 04-04-2007, 02:11 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
Thanks lazlow, for some reason I couldn't come up with either clustering or distributed processing when I posted.
 
Old 04-04-2007, 03:05 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 169Reputation: 169
Quake

Oh, you have brain farts too. Wait till you see what it is like when you pass 50.

Lazlow
 
Old 04-04-2007, 03:10 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
"Oh, you have brain farts too. Wait till you see what it is like when you pass 50."

In my case, the brain farts are from fibromyalgia - I lose words but not concepts. But don't get the idea from my name that I'm just a kid. I'll be 55 in June.
 
Old 04-04-2007, 03:26 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 169Reputation: 169
Thank God. I thought I was the oldest one around here.
 
Old 04-04-2007, 04:09 PM   #9
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 112Reputation: 112
Good grief.

You're both geezers! Both of you!

I, on the other hand, although past 50, am definitely NOT a geezer!

...although, last night at the restaurant, they gave me the "senior" price without asking me...

Last edited by jiml8; 04-04-2007 at 04:12 PM.
 
Old 04-04-2007, 04:35 PM   #10
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
"...although, last night at the restaurant, they gave me the "senior" price without asking me."

I suppose you don't look a day over 60?
 
Old 04-04-2007, 06:28 PM   #11
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 112Reputation: 112
Actually, I'm just shy of 51. Have a bit of grey in the hair (and a lot of grey in the moustache). Muscular, fairly fit. Holding up a LOT better than many of my contemporaries. I'm rather surprised when people do something like that.
 
Old 04-05-2007, 07:08 AM   #12
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Rep: Reputation: 33
Hey Kids,Whats this all about..hehe
Im not tell'n my age..
jolphil
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get the number of PCI slots Madhusudhan Linux - Software 5 07-03-2011 11:45 AM
How can I check PCI slots remotely? win32sux Linux - Hardware 13 02-19-2011 12:32 PM
Slots, it isnt PCI, AGP, PCI-E or ISA... what is it ? qwijibow Linux - Hardware 5 01-18-2005 07:00 AM
Motherboard with PCI-E slots satimis Linux - Hardware 0 07-30-2004 03:41 AM
PCI slots dunkyb Linux - Hardware 5 07-20-2003 08:20 PM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration