[PATCH v2] Make 83xx perfmon support selectable

Kumar Gala galak at kernel.crashing.org
Thu Mar 20 10:48:12 EST 2008


On Mar 18, 2008, at 12:05 PM, Scott Wood wrote:

> On Fri, Mar 07, 2008 at 05:59:03PM -0600, Andy Fleming wrote:
>> Not all e300 cores support the performance monitors, and the ones
>> that don't will be confused by the mf/mtpmr instructions.  This
>> allows the support to be optional, so the 8349 can turn it off
>> while the 8379 can turn it on.  Sadly, those aren't config options,
>> so it will be left to the defconfigs and the users to make that
>> determination.
>
> So does this mean we can't do multiplatform of something with  
> perfmon and
> something without perfmon?  Seems like this should come from the  
> device
> tree, or PVR, or some other runtime check.

It possible if your binutils supports generating the instructions.  I  
believe Kim was going to look at doing a patch to use a #define  
MFPMR(x)/#define MTPMR() so we don't have to worry about toolchain  
versions.

- k



More information about the Linuxppc-dev mailing list