Skip to contentSkip to conversation

BUG: Patch "Convert some mftb/mftbu into mfspr" breaks MPC885

DISCUSSION leroy christophe 2 participants 2 messages Nov 20, 2013

lore
Share & tools
lore
#0 lore raw

Scott,

The patch "Convert some mftb/mftbu into mfspr" (beb2dc0a7a84be003ce54e98b95d65cc66e6e536 <https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/powerpc/include/asm/reg.h?id=beb2dc0a7a84be003ce54e98b95d65cc66e6e536>) breaks startup on MPC885.

The CPU traps (SoftwareEmulation trap) at sched_clock() when trying to read TBU with mfspr.

Reverting the patch solves the issue.

What's the prefered way to fix this ?

Christophe

#1 lore raw
Quoted 6 lines · leroy christophe

Scott,

The patch "Convert some mftb/mftbu into
mfspr" (beb2dc0a7a84be003ce54e98b95d65cc66e6e536) breaks startup on MPC885.

Quoted 6 lines

The CPU traps (SoftwareEmulation trap) at sched_clock() when trying to read TBU with mfspr.

Reverting the patch solves the issue.

What's the prefered way to fix this ?

I guess we need to add an ifdef.

-Scott