[PATCH] fsl-booke: declare tlbcam_index and num_tlbcam_entries for use in c file

Liu Yu Yu.Liu at freescale.com
Thu Dec 11 13:16:00 EST 2008


> -----Original Message-----
> From: Piepho Trent-B16872 
> Sent: Wednesday, December 10, 2008 10:04 PM
> To: Liu Yu-B13201
> Cc: linuxppc-dev at ozlabs.org; kvm-ppc at vger.kernel.org; Wood 
> Scott-B07421; Gala Kumar-B11780
> Subject: Re: [PATCH] fsl-booke: declare tlbcam_index and 
> num_tlbcam_entries for use in c file
> 
> On Wed, 10 Dec 2008, Liu Yu wrote:
> > KVM on E500 platform currently utilize TLB1 entries without 
> bothering host,
> > that is using unused TLB1 entries.
> >
> > So, KVM needs to read tlbcam_index and num_tlbcam_entries 
> to know exactly
> > which TLB1 entry is unused.
> 
> Do you need really need num_tlbcam_entries?  It's completely 
> unused and
> I've already sent out a patch to remove it.  If you want to know how
> big TLB1 is, just read it from SPRN_TLB1CFG.
> 

Ah, I missed your patch.
Certainly I can use SPRN_TLB1CFG.
I thought if kernel provide a way to get it, then I would rather get it
from kernel than from hardware.



More information about the Linuxppc-dev mailing list