linux/arch/tile/include/asm
Chris Metcalf f133ecca9c arch/tile: more /proc and /sys file support
This change introduces a few of the less controversial /proc and
/proc/sys interfaces for tile, along with sysfs attributes for
various things that were originally proposed as /proc/tile files.
It also adjusts the "hardwall" proc API.

Arnd Bergmann reviewed the initial arch/tile submission, which
included a complete set of all the /proc/tile and /proc/sys/tile
knobs that we had added in a somewhat ad hoc way during initial
development, and provided feedback on where most of them should go.

One knob turned out to be similar enough to the existing
/proc/sys/debug/exception-trace that it was re-implemented to use
that model instead.

Another knob was /proc/tile/grid, which reported the "grid" dimensions
of a tile chip (e.g. 8x8 processors = 64-core chip).  Arnd suggested
looking at sysfs for that, so this change moves that information
to a pair of sysfs attributes (chip_width and chip_height) in the
/sys/devices/system/cpu directory.  We also put the "chip_serial"
and "chip_revision" information from our old /proc/tile/board file
as attributes in /sys/devices/system/cpu.

Other information collected via hypervisor APIs is now placed in
/sys/hypervisor.  We create a /sys/hypervisor/type file (holding the
constant string "tilera") to be parallel with the Xen use of
/sys/hypervisor/type holding "xen".  We create three top-level files,
"version" (the hypervisor's own version), "config_version" (the
version of the configuration file), and "hvconfig" (the contents of
the configuration file).  The remaining information from our old
/proc/tile/board and /proc/tile/switch files becomes an attribute
group appearing under /sys/hypervisor/board/.

Finally, after some feedback from Arnd Bergmann for the previous
version of this patch, the /proc/tile/hardwall file is split up into
two conceptual parts.  First, a directory /proc/tile/hardwall/ which
contains one file per active hardwall, each file named after the
hardwall's ID and holding a cpulist that says which cpus are enclosed by
the hardwall.  Second, a /proc/PID file "hardwall" that is either
empty (for non-hardwall-using processes) or contains the hardwall ID.

Finally, this change pushes the /proc/sys/tile/unaligned_fixup/
directory, with knobs controlling the kernel code for handling the
fixup of unaligned exceptions.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2011-05-27 10:39:05 -04:00
..
Kbuild arch/tile: export <asm/hardwall.h> to userspace 2011-03-01 16:20:23 -05:00
asm-offsets.h
atomic.h arch/tile: use better definitions of xchg() and cmpxchg() 2011-05-19 22:55:49 -04:00
atomic_32.h arch/tile: use better definitions of xchg() and cmpxchg() 2011-05-19 22:55:49 -04:00
atomic_64.h arch/tile: use better definitions of xchg() and cmpxchg() 2011-05-19 22:55:49 -04:00
auxvec.h
backtrace.h arch/tile: refactor backtracing code 2011-05-02 13:49:14 -04:00
bitops.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
bitops_32.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
bitops_64.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
bitsperlong.h
bug.h
bugs.h
byteorder.h
cache.h arch/tile: catch up with section naming convention in 2.6.35 2011-03-01 16:18:52 -05:00
cacheflush.h arch/tile: clarify flush_buffer()/finv_buffer() function names 2011-05-04 14:41:20 -04:00
checksum.h
compat.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
cputime.h
current.h
delay.h
device.h
div64.h
dma-mapping.h tile,mn10300: add device parameter to dma_cache_sync() 2011-05-04 14:41:36 -04:00
dma.h
edac.h drivers/edac: provide support for tile architecture 2011-03-10 13:30:14 -05:00
elf.h arch/tile: Miscellaneous cleanup changes. 2010-07-06 13:41:51 -04:00
emergency-restart.h
errno.h
fb.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
fcntl.h
fixmap.h
ftrace.h
futex.h futex: Sanitize futex ops argument types 2011-03-11 12:23:31 +01:00
hardirq.h
hardwall.h arch/tile: more /proc and /sys file support 2011-05-27 10:39:05 -04:00
highmem.h arch/tile: complete migration to new kmap_atomic scheme 2010-11-01 15:30:36 -04:00
homecache.h
hugetlb.h arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
hv_driver.h
hw_irq.h
ide.h
io.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
irq_regs.h
irqflags.h arch/tile: support newer binutils assembler shift semantics 2011-03-17 14:32:06 -04:00
kdebug.h
kexec.h
kmap_types.h arch/tile: complete migration to new kmap_atomic scheme 2010-11-01 15:30:36 -04:00
linkage.h
local.h
memprof.h
mman.h arch/tile: provide a definition of MAP_STACK 2010-10-14 15:09:02 -04:00
mmu.h
mmu_context.h tile: replace mm->cpu_vm_mask with mm_cpumask() 2011-05-04 14:41:44 -04:00
mmzone.h
module.h
msgbuf.h
mutex.h
opcode-tile.h
opcode-tile_32.h arch/tile: refactor backtracing code 2011-05-02 13:49:14 -04:00
opcode-tile_64.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
opcode_constants.h
opcode_constants_32.h
opcode_constants_64.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
page.h arch/tile: kernel-related cleanups from removing static page size 2011-05-04 14:41:13 -04:00
param.h
parport.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
pci.h arch/tile: improve support for PCI hotplug 2011-05-04 14:39:53 -04:00
percpu.h
pgalloc.h arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
pgtable.h arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
pgtable_32.h arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
pgtable_64.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
poll.h
posix_types.h
processor.h arch/tile: support signal "exception-trace" hook 2011-05-19 22:55:59 -04:00
ptrace.h arch/tile: bug fix: exec'ed task thought it was still single-stepping 2011-03-01 16:19:58 -05:00
resource.h
scatterlist.h tile: remove unused ISA_DMA_THRESHOLD define 2010-08-11 10:38:06 -04:00
sections.h arch/tile: Miscellaneous cleanup changes. 2010-07-06 13:41:51 -04:00
sembuf.h
serial.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
setup.h arch/tile: export only COMMAND_LINE_SIZE to userspace. 2010-08-15 12:14:41 -04:00
shmbuf.h
shmparam.h
sigcontext.h arch/tile: Change struct sigcontext to be more useful 2010-09-15 11:16:08 -04:00
sigframe.h
siginfo.h arch/tile: Fix a couple of issues with the COMPAT code for TILE-Gx. 2010-08-13 08:32:21 -04:00
signal.h arch/tile: support signal "exception-trace" hook 2011-05-19 22:55:59 -04:00
smp.h arch/tile: Enable more sophisticated IRQ model for 32-bit chips. 2010-07-06 13:34:01 -04:00
socket.h
sockios.h
spinlock.h
spinlock_32.h arch/tile: fix deadlock bugs in rwlock implementation 2011-03-10 16:10:41 -05:00
spinlock_64.h arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
spinlock_types.h
stack.h arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
stat.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
statfs.h
string.h
swab.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
syscall.h
syscalls.h arch/tile: Use <asm-generic/syscalls.h> 2010-10-14 14:34:33 -04:00
system.h arch/tile: use extended assembly to inline __mb_incoherent() 2011-03-01 16:20:54 -05:00
termbits.h
termios.h
thread_info.h arch/tile: support TIF_NOTIFY_RESUME 2011-05-02 18:53:35 -04:00
timex.h arch/tile: fix __ndelay etc to work better 2011-03-01 16:20:04 -05:00
tlb.h
tlbflush.h
topology.h arch/tile: disable SD_WAKE_AFFINE flag on CPU/NODE scheduling domain 2011-05-04 14:40:16 -04:00
traps.h arch/tile: support TIF_NOTIFY_RESUME 2011-05-02 18:53:35 -04:00
types.h
uaccess.h arch/tile: Various cleanups. 2010-08-13 08:52:19 -04:00
ucontext.h
unaligned.h
unistd.h arch/tile: cleanups for tilegx compat mode 2011-05-19 22:56:13 -04:00
user.h
vga.h arch/tile: various header improvements for building drivers 2011-05-04 14:40:54 -04:00
xor.h