<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 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 <Jason.Jin@freescale.com><br>To: agnel juni <junijoseph@yahoo.co.in><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... </font></span></div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007"></span> </div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><span class="373023102-19012007"> </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"> </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, 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"> </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"> </span><span class="373023102-19012007"> </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
<Jason.Jin@freescale.com><br>To: Kumar Gala
<galak@kernel.crashing.org>; agnel juni
<junijoseph@yahoo.co.in><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>>What kinda of interrupt do you want on
IRQ_OUT/INTA?<br><br>>- k<br><br>On Jan 16, 2007, at 7:54 PM, agnel juni
wrote:<br><br>> Yes IRQ_OUT is wired to INTA.<br>><br>> 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>> Thanks<br>> J-<br>><br>> ----- Original Message
----<br>> From: Kumar Gala <galak@kernel.crashing.org><br>> To:
agnel juni <junijoseph@yahoo.co.in><br>> Cc:
linuxppc-embedded@ozlabs.org<br>> Sent: Tuesday, 16 January, 2007 5:29:01
PM<br>> Subject: Re: PCI IRQ -MPC8540<br>><br>><br>> On Jan 16,
2007, at 5:20 PM, agnel juni wrote:<br>><br>> > Hello all:<br>>
><br>> > I would like to understand if there is a way to program the
PCI <br>> > interrupt pin register of MPC8540. I did look for this in the
<br>> > datasheet, but couldn't find any positive answer.<br>>
><br>> > Currently, I am working in a set-up where MPC8540 is an agent,
<br>> > plugged into the PC host. I couldn't get an IRQ for the card when
<br>> > plugged in some PCI slots, whereas in one of the slots I do see a
<br>> > non-zero value.<br>> ><br>> > It would be great if you
could help me understand the issue.<br>> ><br>> > I am sorry if the
question is inapporpriate in the group. I am <br>> > desperate to solve
the issue.<br>> ><br>> > Thanks for any help.<br>><br>> You
need to find out how the PCI edge interrupts are wired on you <br>> board
than we can talk about how to generate an interrupt based on <br>>
that. I'd guess IRQ_OUT is wired to INTA, but it would be good to
<br>> verify that.<br>><br>> - k<br>><br>> > J.Joseph<br>>
><br>> > ----- Original Message ----<br>> > From: Kumar Gala
<galak@kernel.crashing.org><br>> > To: Wang Matthew-R59995
<Qi.W@freescale.com><br>> > Cc: linuxppc-embedded@ozlabs.org<br>>
> Sent: Wednesday, 18 October, 2006 6:54:24 PM<br>> > Subject: Re:
Linuxppc-embedded Digest, Vol 26, Issue 36<br>> ><br>> ><br>>
> On Oct 18, 2006, at 8:10 PM, Wang Matthew-R59995 wrote:<br>>
><br>> > > Hi Kumar,<br>> > ><br>> > > Actually I
do many trials about it. Vxwerks Bootrom is smaller<br>> than<br>> >
> U-Boot. The key difference between Bootrom and U-boot is that some <br>>
> > source code of Bootrom is invisible to the users.<br>> >
><br>> > > Actually the rfi instruction which I point out is the
first rfi <br>> > > instruction of Linux PowerPC bringup.<br>> >
><br>> > > Before that, it's TLB entry invalidation and temp TLB
entry<br>> mapping.<br>> > ><br>> > > I check MMU setting
carefully before coming Linux Kernel.<br>> > ><br>> > > I just
want to know if other guys met similar scenario like me. I <br>> > >
don't need the precise answer, just overall suggestion about it<br>> because
I<br>> > > understand that not everyone has the same bootloader of
mine, that <br>> > > bootloader is actually a customized
bootloader.<br>> ><br>> > I understand that, thus I was asking what
exact problem you were <br>> > seeing to try and help.<br>>
><br>> > > Anyway thank you.<br>> > ><br>> > > R9
point to LR register, mask the high 20 bit of r9 and send to<br>> r7,<br>>
> > and<br>> > > then add 24, which means stride 6 instructions
for rfi instruction <br>> > > execution.<br>> > ><br>> >
> Of course, rfi can switch the TLB entry, both the previous TLB <br>>
> > entry and the temp TLB entry point to the same physical
address.<br>> > ><br>> > > I've checked it.<br>>
><br>> > I know what the code does, I wrote it :)<br>> ><br>>
> - kumar<br>> ><br>> ><br>> ><br>> >
_______________________________________________<br>> > Linuxppc-embedded
mailing list<br>> > Linuxppc-embedded@ozlabs.org <br>> > <a rel="nofollow" target="_blank" href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br>>
><br>> ><br>> > Here's a new way to find what you're looking for
- Yahoo! Answers<br>><br>><br>><br>> 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>