From: Kokoris, Ioannis <hidden> Date: 2011-11-11 16:13:37
Hi,
QE Microcode Initialization using qe_upload_microcode() does not work on P1=
021 if the IRAM-Ready register is not set after the microcode upload. This =
patch adds a definition for the "I-RAM Ready" register and sets it uppon mi=
crocode upload completion.
Signed-off-by: Ioannis Kokkoris <redacted>
diff -Nru a/arch/powerpc/include/asm/immap_qe.h b/arch/powerpc/include/asm/=
immap_qe.h
=20
for (i =3D 0; i < be32_to_cpu(ucode->count); i++)
out_be32(&qe_immr->iram.idata, be32_to_cpu(code[i]));
+=09
+ /* Set I-RAM Ready Register */=09
+ out_be32(&qe_immr->iram.iready, be32_to_cpu(QE_IRAM_READY));
}
=20
/*
--
Best Regards,
Ioannis
From: Tabi Timur-B04825 <hidden> Date: 2011-11-11 16:39:40
Kokoris, Ioannis wrote:
Hi,
QE Microcode Initialization using qe_upload_microcode() does not work
on P1021 if the IRAM-Ready register is not set after the microcode
upload. This patch adds a definition for the "I-RAM Ready" register and
sets it uppon microcode upload completion.
Will this code still work on other QE parts, like the MPC8323?
--=20
Timur Tabi
Linux kernel developer at Freescale=
From: Kokoris, Ioannis <hidden> Date: 2011-11-14 08:55:09
Kokoris, Ioannis wrote:
quoted
Hi,
QE Microcode Initialization using qe_upload_microcode() does not work
on P1021 if the IRAM-Ready register is not set after the microcode
upload. This patch adds a definition for the "I-RAM Ready" register and
sets it uppon microcode upload completion.
Will this code still work on other QE parts, like the MPC8323?
Ready register is needed for ROM-less devices such as P1021, MPC859, MPC830=
6 etc.=20
For ROM-based devices such as MCP8323 the Ready register does not exist.
Is there a global definition for conditionally including this code?
Regards,
Ioannis
From: Tabi Timur-B04825 <hidden> Date: 2011-11-16 03:02:48
On Mon, Nov 14, 2011 at 2:55 AM, Kokoris, Ioannis
[off-list ref] wrote:
Ready register is needed for ROM-less devices such as P1021, MPC859, MPC8=
306 etc.
For ROM-based devices such as MCP8323 the Ready register does not exist.
Is there a global definition for conditionally including this code?
I'll have to check. But this patch can't be applied as-is unless it's
proven safe for all QE-enabled chips.
--=20
Timur Tabi
Linux kernel developer at Freescale=
From: Timur Tabi <hidden> Date: 2012-03-16 16:07:17
Kumar Gala wrote:
quoted
quoted
Haiying said it should be ok, but I haven't tried it yet. I'll try it on Monday.
Did you ever test this?
No, I forgot all about it. I'll try it today, assuming the lone 8323
board in the board farm still works.
--
Timur Tabi
Linux kernel developer at Freescale
From: Timur Tabi <hidden> Date: 2012-07-02 18:19:23
Kumar Gala wrote:
quoted
quoted
No, I forgot all about it. I'll try it today, assuming the lone 8323
board in the board farm still works.
Do you remember if you ever tested this?
Well, I tried to test it. We have an 83xx board that has a QE UART that
needs firmware uploaded, but I don't know how to connect that QE to an
actual RS232 port. It needs a riser which I don't think we have.
I can verify that the QE UART driver does not hang which this patch, and
that it appears to still be sending data, but I have no way of knowing for
sure.
--
Timur Tabi
Linux kernel developer at Freescale
From: Kumar Gala <hidden> Date: 2012-07-10 12:24:41
On Nov 11, 2011, at 10:05 AM, Kokoris, Ioannis wrote:
Hi,
=20
QE Microcode Initialization using qe_upload_microcode() does not work =
on P1021 if the IRAM-Ready register is not set after the microcode =
upload. This patch adds a definition for the "I-RAM Ready" register and =
sets it uppon microcode upload completion.