<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: PCI driver on EB8347</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Kumar,<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here is lspci -v from my P2P system. In case you have any suggestion do let me know. I appreciate your help<BR>
<BR>
00:11.0 PCI bridge: Texas Instruments PCI2050 PCI-to-PCI Bridge (rev 02) (prog-if 00 [Normal decode])<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags: bus master, 66Mhz, medium devsel, latency 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bus: primary=00, secondary=01, subordinate=01, sec-latency=0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O behind bridge: 0000f000-0000ffff<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory behind bridge: 9e000000-9fffffff<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prefetchable memory behind bridge: 000000009df00000-000000009df00000<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Capabilities: [dc] Power Management version 2<BR>
<BR>
01:01.0 Non-VGA unclassified device: Texas Instruments: Unknown device 9065 (rev 01)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags: bus master, 66Mhz, medium devsel, latency 128, IRQ 18<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory at 9fc00000 (32-bit, prefetchable) [size=4M]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory at 9f000000 (32-bit, non-prefetchable) [size=8M]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at 3ffffff0 [size=16]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Capabilities: [40] Power Management version 2<BR>
<BR>
01:02.0 Non-VGA unclassified device: Texas Instruments: Unknown device 9065 (rev 01)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags: bus master, 66Mhz, medium devsel, latency 128, IRQ 19<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory at 9ec00000 (32-bit, prefetchable) [size=4M]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory at 9e000000 (32-bit, non-prefetchable) [size=8M]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at 3fffffe0 [size=16]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Capabilities: [40] Power Management version 2<BR>
<BR>
<BR>
Regards<BR>
-Rajan Rai<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Kumar Gala [<A HREF="mailto:galak@kernel.crashing.org">mailto:galak@kernel.crashing.org</A>]<BR>
Sent: Sat 8/12/2006 8:54 AM<BR>
To: rajan rai<BR>
Cc: Liu Dave-r63238; Gala Kumar K.-galak; linuxppc-embedded@ozlabs.org<BR>
Subject: Re: PCI driver on EB8347<BR>
<BR>
<BR>
On Aug 12, 2006, at 7:34 AM, Rajan Rai wrote:<BR>
<BR>
&gt;<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks IRQ problem is resolved. As&nbsp; pointed out it was&nbsp;<BR>
&gt; problem with IRQ IDSEL mapping. Mapping needs to be different on&nbsp;<BR>
&gt; Eval board I'm using and our custom design. But my driver is still&nbsp;<BR>
&gt; not working on our custom design. PCI device doesn't receive any&nbsp;<BR>
&gt; messages from MPC8347 on our custom design mother board which uses&nbsp;<BR>
&gt; pci-bridge where as it works fine on Eval board which doesn't use&nbsp;<BR>
&gt; PCI bridge.<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I guess problem lies at the kernel level&nbsp;<BR>
&gt; and not the driver. Any tips apart from IDSEL IRQ settings at&nbsp;<BR>
&gt; kernel level what else I need to change when I move from 1 mother&nbsp;<BR>
&gt; board to another.&nbsp; My PCI&nbsp; devices do get base address 0 and 1&nbsp;<BR>
&gt; allocated properly by the OS. But when I try to write any messages&nbsp;<BR>
&gt; on those addresses PCI device doesn't see them<BR>
<BR>
Is the bridge getting configured correctly?&nbsp; An lspci output would be&nbsp;<BR>
helpful from your system with the P2P bridge.<BR>
<BR>
- kumar<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>