arch/tile: fix hardwall for tilegx and generalize for idn and ipi
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Mar 2012 20:01:48 +0000 (16:01 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 25 May 2012 16:48:27 +0000 (12:48 -0400)
commitb8ace0833feb308b1cb69d8b33ab08e0602dd2d2
treef65f6914dd2c5d7dcdb233178ca5bc101003982d
parent621b19551507c8fd9d721f4038509c5bb155a983
arch/tile: fix hardwall for tilegx and generalize for idn and ipi

The hardwall drain code was not properly implemented for tilegx,
just tilepro, so you couldn't reliably restart an application that
made use of the udn.

In addition, the code was only applicable to the udn (user dynamic
network).  On tilegx there is a second user network that is available
(the "idn"), and there is support for having I/O shims deliver
user-level interrupts to applications ("ipi") which functions in a
very similar way to the inter-core permissions used for udn/idn.
So this change also generalizes the code from supporting just the udn
to supports udn/idn/ipi on tilegx.

By default we now use /dev/hardwall/{udn,idn,ipi} with separate
minor numbers for the three devices.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/arch/spr_def_32.h
arch/tile/include/arch/spr_def_64.h
arch/tile/include/asm/hardwall.h
arch/tile/include/asm/processor.h
arch/tile/include/asm/setup.h
arch/tile/kernel/hardwall.c
arch/tile/kernel/intvec_64.S
arch/tile/kernel/process.c