<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hello all:<br>
<br>
Can someone provide me the pointer for the patch for u-boot-1.1.2 to set-up&nbsp; MPC8540 as an agent correctly.<br><br>Thanks<br>J.Joseph<br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jin Zhengxiong-R64188 &lt;Jason.Jin@freescale.com&gt;<br>To: agnel juni &lt;junijoseph@yahoo.co.in&gt;<br>Sent: Thursday, 18 January, 2007 6:43:55 PM<br>Subject: RE: PCI IRQ -MPC8540<br><br><title>Message</title>

 
<style type="text/css">DIV {
MARGIN:0px;}
</style>


<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007"><font color="#0000ff" face="Arial" size="2"><font face="Arial">T</font>he comments inline the mail, FYI...&nbsp;</font></span></div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007"></span>&nbsp;</div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007">&nbsp;</span>Ok.<br><br>The issue is , for the agent 
driver to route the IRQ, if I understand right ... the PCI(being the host) BIOS 
should assign an IRQ value isn't?.<br><span class="373023102-19012007"><font color="#0000ff" face="Arial" size="2">&nbsp;</font></span></div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font color="#0000ff" face="Arial" size="2"><span class="373023102-19012007">Do you means the 
IRQ value should be write to the 8540 pci config space? If the 8540 card was set 
as agent correctly(there's another patch for the 8540 u-boot to set the agent 
correctly), it's the responsibility of the host to settup it's PCI IRQ. The 
agent should just act like and normal PCI card,&nbsp;such as the ether card.the 
agent just need to generate a interrupt on the IRQ_OUT ping when 
needed.</span></font></div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007">&nbsp;</span><br>This doesn't happen in our 
case.<br><br>When we plug the 8540 card as an agent to the PC host, only in one 
of the slots does the <span style="font-weight: bold;">host PC BIO</span>S 
assigns an IRQ value for the card. In others it doesn't.<br><span class="373023102-19012007"><font color="#0000ff" face="Arial" size="2"></font></span></div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font color="#0000ff" face="Arial" size="2"><span class="373023102-19012007">Try to patch the 
8540 u-boot to set the agent correctly, you can also pay attention to the start 
up sequence of the agent and host, may be you need to stat up the agent u-boot 
first(I can't remember this clearly,just FYI)</span></font></div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007">&nbsp;</span><span class="373023102-19012007">&nbsp;</span><br>I am just trying to understand the 
possible reason.<br><br>Thanks<br>J.Joseph<br></div><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- 
Original Message ----<br>From: Jin Zhengxiong-R64188 
&lt;Jason.Jin@freescale.com&gt;<br>To: Kumar Gala 
&lt;galak@kernel.crashing.org&gt;; agnel juni 
&lt;junijoseph@yahoo.co.in&gt;<br>Cc: linuxppc-embedded@ozlabs.org<br>Sent: 
Wednesday, 17 January, 2007 1:34:06 AM<br>Subject: RE: PCI IRQ -MPC8540<br><br>
<div><br><br>&gt;What kinda of interrupt do you want on 
IRQ_OUT/INTA?<br><br>&gt;- k<br><br>On Jan 16, 2007, at 7:54 PM, agnel juni 
wrote:<br><br>&gt; Yes IRQ_OUT is wired to INTA.<br>&gt;<br>&gt; Could you 
please advise on how to generate interrupt for this.<br><br>You can refer to a 
Freescale Linux BSP for MPC8540EVAL board. There's a pci agent driver for 
MPC8540, and the corresponding host driver for MPC8560. The agent driver use a 
message interrupt in MPC8540 and redirect the interrupt to IRQ_OUT. As the 
IRQ_OUT is wired to INTA, you can treat MPC8540 as a PCI device.<br><br>Jason 
Jin<br><br><br>&gt; Thanks<br>&gt; J-<br>&gt;<br>&gt; ----- Original Message 
----<br>&gt; From: Kumar Gala &lt;galak@kernel.crashing.org&gt;<br>&gt; To: 
agnel juni &lt;junijoseph@yahoo.co.in&gt;<br>&gt; Cc: 
linuxppc-embedded@ozlabs.org<br>&gt; Sent: Tuesday, 16 January, 2007 5:29:01 
PM<br>&gt; Subject: Re: PCI IRQ -MPC8540<br>&gt;<br>&gt;<br>&gt; On Jan 16, 
2007, at 5:20 PM, agnel juni wrote:<br>&gt;<br>&gt; &gt; Hello all:<br>&gt; 
&gt;<br>&gt; &gt; I would like to understand if there is a way to program the 
PCI <br>&gt; &gt; interrupt pin register of MPC8540. I did look for this in the 
<br>&gt; &gt; datasheet, but couldn't find any positive answer.<br>&gt; 
&gt;<br>&gt; &gt; Currently, I am working in a set-up where MPC8540 is an agent, 
<br>&gt; &gt; plugged into the PC host. I couldn't get an IRQ for the card when 
<br>&gt; &gt; plugged in some PCI slots, whereas in one of the slots I do see a 
<br>&gt; &gt; non-zero value.<br>&gt; &gt;<br>&gt; &gt; It would be great if you 
could help me understand the issue.<br>&gt; &gt;<br>&gt; &gt; I am sorry if the 
question is inapporpriate in the group. I am <br>&gt; &gt; desperate to solve 
the issue.<br>&gt; &gt;<br>&gt; &gt; Thanks for any help.<br>&gt;<br>&gt; You 
need to find out how the PCI edge interrupts are wired on you <br>&gt; board 
than we can talk about how to generate an interrupt based on <br>&gt; 
that.&nbsp;&nbsp;I'd guess IRQ_OUT is wired to INTA, but it would be good to 
<br>&gt; verify that.<br>&gt;<br>&gt; - k<br>&gt;<br>&gt; &gt; J.Joseph<br>&gt; 
&gt;<br>&gt; &gt; ----- Original Message ----<br>&gt; &gt; From: Kumar Gala 
&lt;galak@kernel.crashing.org&gt;<br>&gt; &gt; To: Wang Matthew-R59995 
&lt;Qi.W@freescale.com&gt;<br>&gt; &gt; Cc: linuxppc-embedded@ozlabs.org<br>&gt; 
&gt; Sent: Wednesday, 18 October, 2006 6:54:24 PM<br>&gt; &gt; Subject: Re: 
Linuxppc-embedded Digest, Vol 26, Issue 36<br>&gt; &gt;<br>&gt; &gt;<br>&gt; 
&gt; On Oct 18, 2006, at 8:10 PM, Wang Matthew-R59995 wrote:<br>&gt; 
&gt;<br>&gt; &gt; &gt; Hi Kumar,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Actually I 
do many trials about it. Vxwerks Bootrom is smaller<br>&gt; than<br>&gt; &gt; 
&gt; U-Boot. The key difference between Bootrom and U-boot is that some <br>&gt; 
&gt; &gt; source code of Bootrom is invisible to the users.<br>&gt; &gt; 
&gt;<br>&gt; &gt; &gt; Actually the rfi instruction which I point out is the 
first rfi <br>&gt; &gt; &gt; instruction of Linux PowerPC bringup.<br>&gt; &gt; 
&gt;<br>&gt; &gt; &gt; Before that, it's TLB entry invalidation and temp TLB 
entry<br>&gt; mapping.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I check MMU setting 
carefully before coming Linux Kernel.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I just 
want to know if other guys met similar scenario like me. I <br>&gt; &gt; &gt; 
don't need the precise answer, just overall suggestion about it<br>&gt; because 
I<br>&gt; &gt; &gt; understand that not everyone has the same bootloader of 
mine, that <br>&gt; &gt; &gt; bootloader is actually a customized 
bootloader.<br>&gt; &gt;<br>&gt; &gt; I understand that, thus I was asking what 
exact problem you were <br>&gt; &gt; seeing to try and help.<br>&gt; 
&gt;<br>&gt; &gt; &gt; Anyway thank you.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; R9 
point to LR register, mask the high 20 bit of r9 and send to<br>&gt; r7,<br>&gt; 
&gt; &gt; and<br>&gt; &gt; &gt; then add 24, which means stride 6 instructions 
for rfi instruction <br>&gt; &gt; &gt; execution.<br>&gt; &gt; &gt;<br>&gt; &gt; 
&gt; Of course, rfi can switch the TLB entry, both the previous TLB <br>&gt; 
&gt; &gt; entry and the temp TLB entry point to the same physical 
address.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I've checked it.<br>&gt; 
&gt;<br>&gt; &gt; I know what the code does, I wrote it :)<br>&gt; &gt;<br>&gt; 
&gt; - kumar<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 
_______________________________________________<br>&gt; &gt; Linuxppc-embedded 
mailing list<br>&gt; &gt; Linuxppc-embedded@ozlabs.org <br>&gt; &gt; <a rel="nofollow" target="_blank" href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br>&gt; 
&gt;<br>&gt; &gt;<br>&gt; &gt; Here's a new way to find what you're looking for 
- Yahoo! Answers<br>&gt;<br>&gt;<br>&gt;<br>&gt; Here's a new way to find what 
you're looking for - Yahoo! 
Answers<br><br>_______________________________________________<br>Linuxppc-embedded 
mailing list<br>Linuxppc-embedded@ozlabs.org <a rel="nofollow" target="_blank" href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br></div></div><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"></div></div><br>
<hr size="1">
Here¢s a new way to find what you're looking for - <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! 
Answers</a> </div><br></div></div><br>
        

        
                <hr size=1></hr> 
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a> </body></html>