Re: [PATCH] Use a sensible tlbex default for unknown CPUs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 25 Oct 2007, Thiemo Seufer wrote:

> This is circular, as isa_level won't be initialized for a unknown CPU.
> The *_r2 check suggested by Ralf has the same problem AFAICS, so it
> looks like we have to stick with the original solution.

 Hmm, it looks like we have a misfeature in the probing code.  I think it 
would be reasonable to perform full discovery of features for all MIPS 
Architecture processors, even if the Company or Processor ID as reported 
by the PRId register is not a recognised one.  This is because for these 
processors we have all the necessary information about the privileged 
resource architecture implemented reported through the cp0 Config 
registers, including the type of the TLB and the topology of caches.  
With the revision 2 of the architecture, we also have the "ehb" and 
"jr.hb" instructions available to take care of cp0 hazards in a generic 
way.  So in a sense, we should be able to handle these processors 
correctly without the knowledge of what has been printed on their cases.

 Ralf's proposal is essentially the same code, except expressed a little 
bit differently, so no surprise it suffers from the same problem.

  Maciej


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux