disable CPC (L3) for T1040/T2080

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

disable CPC (L3) for T1040/T2080

927 Views
hv
Contributor II

According to the reference manual, this is the sequence to disable CPC for T1040/T2080:

# a. Clear all bits in CPCPAR0-CPCPAR15 to prevent new transactions from allocating in the CPC

# b. Set CPCCSR0[CPCFL]

# c. Wait for CPCCSR0[CPCFL] to be cleared by hardware

# d. Clear CPCCSR0[CPCE]

in u-boot, I did this:

mw 0xfe010208 0x0; sleep 1; mw 0xfe010000 0xc0000800; sleep 5; mw 0xfe010000 0x0; sleep 1

is that correct?

Thanks!

0 Kudos
Reply
3 Replies

748 Views
LPP
NXP Employee
NXP Employee

The only remark is that you should clear 15 CPCPARn registers on the first step : 0xfe010208 - 0xfe0102e8


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

748 Views
hv
Contributor II

I found a document called “Cache Latencies of the PowerPC MPC7451” by Bill Brock/Michael Exerman. Is there similar document for the T1040 (e5500)/T2080 (e6500) processors?

Thanks!

0 Kudos
Reply

748 Views
hv
Contributor II

Thanks!

When L3 (CPC) is disabled for the T1040, the throughput seemed to get better (i.e. the code execute faster)! I’m confused! Is there an explanation for that?

0 Kudos
Reply