linux-mips
[Top] [All Lists]

Re: [PATCH 1/7] Netlogic XLR/XLS processor IDs.

To: Jayachandran C <jayachandranc@netlogicmicro.com>
Subject: Re: [PATCH 1/7] Netlogic XLR/XLS processor IDs.
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Fri, 25 Mar 2011 14:26:57 +0300
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <bf492d3d03640f86bdd9963d892545423567451d.1301028081.git.jayachandranc@netlogicmicro.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1301028080.git.jayachandranc@netlogicmicro.com> <bf492d3d03640f86bdd9963d892545423567451d.1301028081.git.jayachandranc@netlogicmicro.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
Hello.

On 25-03-2011 7:57, Jayachandran C wrote:

Add Netlogic Microsystems company ID and processor IDs for XLR
and XLS processors for CPU probe. Add CPU_XLR to cpu_type_enum.

Signed-off-by: Jayachandran C<jayachandranc@netlogicmicro.com>
[...]

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index f65d4c8..a995d56 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -988,6 +988,59 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips 
*c, unsigned int cpu)
        }
  }

+static inline void cpu_probe_netlogic(struct cpuinfo_mips *c, int cpu)
+{
+       decode_configs(c);
+
+       c->options = (MIPS_CPU_TLB     |

   Perhaps should align | with others...

+                       MIPS_CPU_4KEX    |
+                       MIPS_CPU_COUNTER |
+                       MIPS_CPU_DIVEC   |
+                       MIPS_CPU_WATCH   |
+                       MIPS_CPU_EJTAG   |
+                       MIPS_CPU_LLSC);
[...]
+       default:
+               printk(KERN_INFO "Unknown Netlogic chip id [%02x]!\n",

   Not %04x?

+                      c->processor_id);
+               c->cputype = CPU_XLR;
+               break;
+       }
+
+       c->isa_level = MIPS_CPU_ISA_M64R1;
+       c->tlbsize = ((read_c0_config1() >> 25) & 0x3f) + 1;
+}
+
  #ifdef CONFIG_64BIT
  /* For use by uaccess.h */
  u64 __ua_limit;

WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>