NET: Add network driver

This patch adds an driver for the debug LAN device used in EZchip NPS boards.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add eznps platform

This platform include boards:
	Hardware Emulator (HE)
	Simulator based upon nSIM.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add eznps default board configurations

Signed-off-by: Noam Camus <noamc@ezchip.com>

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: [plat-eznps] Add eznps DTS file

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add device for Data Plane Linux

Add new device /dev/dpl.
This device enable access to cmem in other cores.

It is usefull for debugging when gdbserver is attached to process
which runs in a different CPU than gdbserver.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Tal Zilcer <talz@ezchip.com>
ARC: [plat-eznps] restore aux dpc at context switch

Now thread_struct got new field for dp.
At the moment it got place for auxiliary DPC.

This commit insures that data plane control is part of task status.

We give special care while trying to access from ptrace by gdb.
Then DPC is taken from debuged task and not the current which is gdb.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] disable RCU warnings

It happens on nSIM when there is high load and CONFIG_NO_HZ_IDLE=y.
For example when running hackbench.

Maybe this is an artifact working with nSIM.

I choosed to do it inside platform and not from:
/sys/module/rcupdate/parameters/rcu_cpu_stall_suppress

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: Set user stack top from configuration.

Now per configuration user stack top address can be set.
It is usefull in case the default (TASK_SIZE) is used by other
special memory e.g. CMEM/FMT in eznps platform.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: update vmalloc space

Add 192M taken from gutter to vmalloc space
It is needed for 4k CPUs since percpu allocate chunks from it.
Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: cmdline not from bootloader

When there is no bootloader then we get cmdline from memory.
e.g. when using nSIM vmlinux is launched without u-boot.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [SMP] don't use identity AUX reg.

With identity num of CPUs is limited to 256 (8 bit).
We use our own alternative AUX register GLOBAL_ID (12 bit).
Now we can support up to 4096 CPUs.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [SMP] init cpus maps according to given maps.

platform can set its own set of possible/present cpus at run time.

NOTE: map must include cpu 0.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [mm] Fix compilation breakage

Structure name and variable name were erroneously interchanged
Signed-off-by: Noam Camus <noamc@ezchip.com>