85xx: Fix detection of MP cpu spin up
PATCH 1/1 85xx: Fix detection of MP cpu spin up
We were looking at the wrong memory offset to determine of a secondary cpu had been spun up or not. Also added a warning message if the all the secondary cpus we expect don't spin up.
---
This is a bug fix for 1.3.3.
- k
cpu/mpc85xx/mp.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
cpu/mpc85xx/mp.c +5 -1
@@ -154,7 +154,7 @@ static void pq3_mp_up(unsigned long bootpg)while (timeout) {int i;for (i =1 ; i <CONFIG_NR_CPUS ; i++) { -if (table[i *NUM_BOOT_ENTRY ]) +if (table[i *NUM_BOOT_ENTRY +BOOT_ENTRY_ADDR_LOWER ]) cpu_up_mask |= (1 << i); };
@@ -165,6 +165,10 @@ static void pq3_mp_up(unsigned long bootpg) timeout--; } +if (timeout ==0 ) +printf ("CPU up timeout. CPU up mask is %x should be %x\n" , + cpu_up_mask, up); +/* enable time base@the platform */ if (whoami) devdisr |= MPC85xx_DEVDISR_TB1;
Signature · 1 line
1.5.4.1
PATCH 1/1 85xx: Fix detection of MP cpu spin up
Quoted 5 lines · In message <[email protected]> you wrote:
We were looking at the wrong memory offset to determine of a secondary cpu had been spun up or not. Also added a warning message if the all the secondary cpus we expect don't spin up.
Signed-off-by Kumar Gala <[email protected]>
Andy?
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You young'uns. That was *long* before AltaVista, DejaNews, or even
(gasp) the *Web*! In fact, we typed that thread on steam-powered card
punchers, and shipped it around via Pony Express.
-- Randal Schwartz in <[email protected]>PATCH 1/1 85xx: Fix detection of MP cpu spin up
Quoted 10 lines · Wolfgang Denk
In message <Pine.LNX.
Quoted 6 lines · 4.64.0804090420320.17674 at blarg.am.freescale.net> you wrote:
We were looking at the wrong memory offset to determine of a secondary
cpu had been spun up or not. Also added a warning message if the all the secondary cpus we expect don't spin up.Signed-off-by Kumar Gala <[email protected]>Andy?
Already in your tree. Commit 97b3ecb575a92fa34c1765229dbc06f2b662f139
- k