]> pilppa.com Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
16 years agoBlackfin Serial Driver: fix bug - use mod_timer to replace only add_timer.
Sonic Zhang [Thu, 24 Apr 2008 20:36:47 +0000 (04:36 +0800)]
Blackfin Serial Driver: fix bug - use mod_timer to replace only add_timer.

http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=4045
If adding timer in both timer handler and rx interrupt, a timer may be
added when it is till in the pending list.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years agoBlackfin Serial Driver: the uart break anomaly has been given its own number, so...
Mike Frysinger [Thu, 24 Apr 2008 19:03:03 +0000 (03:03 +0800)]
Blackfin Serial Driver: the uart break anomaly has been given its own number, so switch to it

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years agoBlackfin Serial Driver: use BFIN_UART_NR_PORTS to help SIR driver in uart port.
Graf Yang [Thu, 24 Apr 2008 18:55:49 +0000 (02:55 +0800)]
Blackfin Serial Driver: use BFIN_UART_NR_PORTS to help SIR driver in uart port.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years agoBlackfin Serial Driver: Fix bug - kernel hangs when accessing uart 0 on bf537 when...
Sonic Zhang [Wed, 23 Apr 2008 01:43:20 +0000 (09:43 +0800)]
Blackfin Serial Driver: Fix bug - kernel hangs when accessing uart 0 on bf537 when booting u-boot and linux on uart 1

Wait only when this UART is enabled.
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3995

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years agoBlackfin Serial Driver: punt unused lsr variable
Mike Frysinger [Wed, 23 Apr 2008 20:56:02 +0000 (04:56 +0800)]
Blackfin Serial Driver: punt unused lsr variable

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years agoBlackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBF...
Graf Yang [Fri, 29 Feb 2008 03:31:08 +0000 (11:31 +0800)]
Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add include/boot .gitignore files
Mike Frysinger [Fri, 25 Apr 2008 00:29:11 +0000 (08:29 +0800)]
[Blackfin] arch: add include/boot .gitignore files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Functional power management support: Add support for cpu frequency...
Michael Hennerich [Thu, 24 Apr 2008 20:58:29 +0000 (04:58 +0800)]
[Blackfin] arch: Functional power management support: Add support for cpu frequency scaling

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Functional power management support: Remove broken cpu frequency...
Michael Hennerich [Thu, 24 Apr 2008 20:52:11 +0000 (04:52 +0800)]
[Blackfin] arch: Functional power management support: Remove broken cpu frequency scaling drivers

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Equalize include files: Add PLL_DIV Masks
Michael Hennerich [Thu, 24 Apr 2008 20:41:49 +0000 (04:41 +0800)]
[Blackfin] arch: Equalize include files: Add PLL_DIV Masks

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Add a warning about the value of CLKIN.
Sonic Zhang [Thu, 24 Apr 2008 20:39:28 +0000 (04:39 +0800)]
[Blackfin] arch: Add a warning about the value of CLKIN.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: take DDR DEVWD into consideration as well for BF548
Michael Hennerich [Thu, 24 Apr 2008 20:31:23 +0000 (04:31 +0800)]
[Blackfin] arch: take DDR DEVWD into consideration as well for BF548

Pointed-out-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Remove the circular buffering mechanism for exceptions
Bernd Schmidt [Thu, 24 Apr 2008 21:02:33 +0000 (05:02 +0800)]
[Blackfin] arch: Remove the circular buffering mechanism for exceptions

Remove the circular buffering mechanism for exceptions.  Instead, point RETX
at a safe location from which to fetch three NOPs.

This safe location is now in the fixed code area, and also used for certain
anomaly workarounds, to ensure that user space can find a valid ICPLB when
things are built with CONFIG_MPU.

Also, save I/DCPLB_FAULT_ADDRESS when lowering to level 5, since the hardware
reg is valid only at exception level.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: lose unnecessary dependency on CONFIG_BFIN_ICACHE for MPU
Bernd Schmidt [Thu, 24 Apr 2008 19:26:48 +0000 (03:26 +0800)]
[Blackfin] arch: lose unnecessary dependency on CONFIG_BFIN_ICACHE for MPU

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - before assign new channel to the map register, need clear...
Graf Yang [Thu, 24 Apr 2008 19:10:04 +0000 (03:10 +0800)]
[Blackfin] arch: fix bug - before assign new channel to the map register, need clear the bits first.

http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=2445

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add Blackfin on-chip SIR IrDA driver support
Graf Yang [Thu, 24 Apr 2008 19:09:15 +0000 (03:09 +0800)]
[Blackfin] arch: add Blackfin on-chip SIR IrDA driver support

 - add platform device resources in board files
 - add new bfin_sir.h to each machines

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: BF54x memsizes are in mbits, not mbytes
Mike Frysinger [Thu, 24 Apr 2008 18:19:17 +0000 (02:19 +0800)]
[Blackfin] arch: BF54x memsizes are in mbits, not mbytes

Pointed-out-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: try to remove condition that causes double fault, by checking curren...
Robin Getz [Thu, 24 Apr 2008 19:36:31 +0000 (03:36 +0800)]
[Blackfin] arch: try to remove condition that causes double fault, by checking current before it gets dereferenced

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Update anomaly list.
Sonic Zhang [Thu, 24 Apr 2008 19:28:10 +0000 (03:28 +0800)]
[Blackfin] arch: Update anomaly list.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Clean up the definition and correct the commentary for current_threa...
Robert P. J. Day [Thu, 24 Apr 2008 01:02:00 +0000 (09:02 +0800)]
[Blackfin] arch: Clean up the definition and correct the commentary for current_thread_info().

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Acked-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: define our own BUG() so we can dump the blackfin hardware trace...
Mike Frysinger [Thu, 24 Apr 2008 00:58:44 +0000 (08:58 +0800)]
[Blackfin] arch: define our own BUG() so we can dump the blackfin hardware trace buffer

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Add platform support for MTD DATAFLASH
Michael Hennerich [Thu, 24 Apr 2008 00:46:19 +0000 (08:46 +0800)]
[Blackfin] arch: Add platform support for MTD DATAFLASH

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: reorganize some of the board-customization options so that similar...
Mike Frysinger [Thu, 24 Apr 2008 18:11:24 +0000 (02:11 +0800)]
[Blackfin] arch: reorganize some of the board-customization options so that similar things are together and only available as needed

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Allow concurrent use of GPIO and GPIO IRQ
Michael Hennerich [Thu, 24 Apr 2008 00:10:10 +0000 (08:10 +0800)]
[Blackfin] arch: Allow concurrent use of GPIO and GPIO IRQ

The irq setup code no longer calls gpio request and free.
This patch also changes the default gpio_free behavior on Blackfin.
A freed GPIO keeps it's last state, and is not defaulted back to
an input. This is also what all other architectures do.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: detect the memory available in the system on the fly by default
Mike Frysinger [Thu, 24 Apr 2008 18:04:05 +0000 (02:04 +0800)]
[Blackfin] arch: detect the memory available in the system on the fly by default

detect the memory available in the system on the fly by default
rather than forcing people to set this manually in the kconfig

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Prevent potential Core Hang situation
Michael Hennerich [Wed, 23 Apr 2008 23:32:41 +0000 (07:32 +0800)]
[Blackfin] arch: Prevent potential Core Hang situation

If the new value written to the PLL_CTL or VR_CTL register is the
same as the previous value, the PLL wake-up will occur immediately
(PLL is already locked), but the core and system clock will be
bypassed for the PLL_LOCKCNT duration. For this interval, code will
execute at the CLKIN rate instead of at the expected CCLK rate.
Software should guard against this condition by comparing the
current value to the new value before writing the new value.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add implicit icplb for the bootrom so we can use the utility functio...
Mike Frysinger [Wed, 23 Apr 2008 23:23:36 +0000 (07:23 +0800)]
[Blackfin] arch: add implicit icplb for the bootrom so we can use the utility functions in the kernel

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Adjust the u-boot and kernel image partition size in mtd device.
Grace Pan [Wed, 23 Apr 2008 22:33:56 +0000 (06:33 +0800)]
[Blackfin] arch: Adjust the u-boot and kernel image partition size in mtd device.

Signed-off-by: Grace Pan <grace.pan@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: use the same style for missing L1 sections
Mike Frysinger [Wed, 23 Apr 2008 22:21:25 +0000 (06:21 +0800)]
[Blackfin] arch: use the same style for missing L1 sections

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: now that we can panic() early, dont need the delayed L1 overflow...
Mike Frysinger [Wed, 23 Apr 2008 22:20:11 +0000 (06:20 +0800)]
[Blackfin] arch: now that we can panic() early, dont need the delayed L1 overflow check

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - Section data_l1_cacheline_aligned should be defined in...
Sonic Zhang [Wed, 23 Apr 2008 22:13:37 +0000 (06:13 +0800)]
[Blackfin] arch: fix bug - Section data_l1_cacheline_aligned should be defined in link script of kernel

http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3978

Section data_l1_cacheline_aligned should be defined in
link script of kernel, when L1 data sram bank A is not available.

In bf536 with all data cache is enabled, there is no L1 data sram.
Current link script won't define section data_l1.cacheline_aligned in
this case. But, if user select put cacheline_aligned data into l1 sram
in kernel menuconfig, these data will be dropped and access to these
data will trigger data CPLB exception.

Do panic in l1 relocation code as well.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Add a little bit more runtime info for MPU
Robin Getz [Wed, 23 Apr 2008 21:57:13 +0000 (05:57 +0800)]
[Blackfin] arch: Add a little bit more runtime info for MPU

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: make the mask explicit rather than writing a negative number in hex
Mike Frysinger [Wed, 23 Apr 2008 21:56:07 +0000 (05:56 +0800)]
[Blackfin] arch: make the mask explicit rather than writing a negative number in hex

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: cplb-mpu code clean up
Mike Frysinger [Wed, 23 Apr 2008 21:44:32 +0000 (05:44 +0800)]
[Blackfin] arch: cplb-mpu code clean up

 - allow bootrom to be readable from supervisor mode
 - delete unused local variable "addr"
 - punt unused local defines of cplbinfo.c

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Give the DMA base registers a more descriptive name
Bernd Schmidt [Wed, 23 Apr 2008 21:31:18 +0000 (05:31 +0800)]
[Blackfin] arch: Give the DMA base registers a more descriptive name

The DMA base registers are available in a global named "base_addr" for
every Blackfin variant. Give this a more descriptive name, and remove
duplicate tables from some drivers.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Consistently export base_addr for all Blackfin variants.
Bernd Schmidt [Wed, 23 Apr 2008 21:23:31 +0000 (05:23 +0800)]
[Blackfin] arch: Consistently export base_addr for all Blackfin variants.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Allow AD1836A board to be connected, either to SPORT2 or SPORT3.
Bernd Schmidt [Wed, 23 Apr 2008 21:19:02 +0000 (05:19 +0800)]
[Blackfin] arch: Allow AD1836A board to be connected, either to SPORT2 or SPORT3.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: actually implement get_cycles function
Mike Frysinger [Wed, 23 Apr 2008 21:07:29 +0000 (05:07 +0800)]
[Blackfin] arch: actually implement get_cycles function

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add boot messages to quickly distinguish between MPU/NOMPU settings
Mike Frysinger [Wed, 23 Apr 2008 21:13:10 +0000 (05:13 +0800)]
[Blackfin] arch: add boot messages to quickly distinguish between MPU/NOMPU settings

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: theres no need to declare ram{end,start,base} in the head.S files
Mike Frysinger [Wed, 23 Apr 2008 21:12:09 +0000 (05:12 +0800)]
[Blackfin] arch: theres no need to declare ram{end,start,base} in the head.S files

theres no need to declare ram{end,start,base} in the head.S files
when declaring them with the other memory related variables in setup.c
is so much simpler/nicer

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: remove duplicated prototypes for internal cplb structures from the...
Mike Frysinger [Wed, 23 Apr 2008 21:09:06 +0000 (05:09 +0800)]
[Blackfin] arch: remove duplicated prototypes for internal cplb structures from the global blackfin header

remove duplicated prototypes for internal cplb structures from
the global blackfin header as nothing else should be accessing these

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: declare list of peripherals as const since we dont modify the incomi...
Mike Frysinger [Wed, 23 Apr 2008 21:04:24 +0000 (05:04 +0800)]
[Blackfin] arch: declare list of peripherals as const since we dont modify the incoming array

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: merge ip0x-specific board changes
Mike Frysinger [Wed, 23 Apr 2008 21:03:26 +0000 (05:03 +0800)]
[Blackfin] arch: merge ip0x-specific board changes

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: USB header files are now located under linux/usb/.
Peter Korsgaard [Wed, 23 Apr 2008 19:34:13 +0000 (03:34 +0800)]
[Blackfin] arch: USB header files are now located under linux/usb/.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Resolve the clash issue of UART defines between blackfin headers...
Graf Yang [Wed, 23 Apr 2008 20:43:14 +0000 (04:43 +0800)]
[Blackfin] arch: Resolve the clash issue of UART defines between blackfin headers and include/linux/serial_reg.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Cc: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Apply Bluetechnix vendor patch
Michael Hennerich [Wed, 23 Apr 2008 19:18:59 +0000 (03:18 +0800)]
[Blackfin] arch: Apply Bluetechnix vendor patch

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: This allows XIP to work with FD-PIC.
Bernd Schmidt [Wed, 23 Apr 2008 19:06:15 +0000 (03:06 +0800)]
[Blackfin] arch: This allows XIP to work with FD-PIC.

Previously, init failed to do anything meaningful;
it turns out that the reason is that FD-PIC has a readonly data
section which can be located in the XIP filesystem, and various address checks
in the kernel reject such addresses for syscall arguments.  Hence, init's
  execve ("/bin/sh", ...)
failed with error code EFAULT.

There's room for improvement here: in case people want to have filesystems
on flash rather than in main memory, _access_ok should be modified to
allow this.

This bug fix is also dedicated to Michael Hennerich.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: support the reserved memory region in the MPU code
Bernd Schmidt [Wed, 23 Apr 2008 18:58:26 +0000 (02:58 +0800)]
[Blackfin] arch: support the reserved memory region in the MPU code

Pointed-out-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - a crash on bootup with CONFIG_MPU on the BF548
Bernd Schmidt [Wed, 23 Apr 2008 18:56:36 +0000 (02:56 +0800)]
[Blackfin] arch: fix bug - a crash on bootup with CONFIG_MPU on the BF548

The function flush_switched_dcplbs was clearing the CPLB entries covering
the process permission bitmasks.  This means that the sequence

flush_switched_dcplbs ();
        set_mask_dcplbs(mm->context.page_rwx_mask);

has a problem: if kernel code (such as an interrupt) causes a CPLB miss before
set_mask_dcplbs completes, the CPLB handler function causes a double fault,
with an instantaneous reboot.

This bug fix is dedicated to Michael Hennerich, the only person in the world
capable of providing working JTAG hardware.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: a rather old performance improvement for the signal handling code
Bernd Schmidt [Wed, 23 Apr 2008 18:51:36 +0000 (02:51 +0800)]
[Blackfin] arch: a rather old performance improvement for the signal handling code

This is a rather old performance improvement for the signal handling
code, which was originally only committed on the 2007R1 branch as a
workaround for what we suspected to be a hardware bug.

There's no point in constructing a sigreturn stub on the stack and
flushing caches; we can just make signal handlers return to a known
location in the fixed code area.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: finish removing remnants of old BF537_PORT_H option of Blackfin...
Mike Frysinger [Wed, 23 Apr 2008 18:37:27 +0000 (02:37 +0800)]
[Blackfin] arch: finish removing remnants of old BF537_PORT_H option of Blackfin EMAC driver

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: Jeff Garzik <jeff@garzik.org>
16 years ago[Blackfin] arch: LARGE_ALLOCS was dropped along the way ... bring Blackfin in line
Mike Frysinger [Wed, 23 Apr 2008 02:19:59 +0000 (10:19 +0800)]
[Blackfin] arch: LARGE_ALLOCS was dropped along the way ... bring Blackfin in line

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: we no longer use BFIN_{SINGLE,DUAL}_CORE in our source
Mike Frysinger [Wed, 23 Apr 2008 02:14:14 +0000 (10:14 +0800)]
[Blackfin] arch: we no longer use BFIN_{SINGLE,DUAL}_CORE in our source

Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: boards and machines defconfig updates
Bryan Wu [Wed, 23 Apr 2008 21:02:04 +0000 (05:02 +0800)]
[Blackfin] arch: boards and machines defconfig updates

Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: __FUNCTION__ is gcc-specific, use __func__
Harvey Harrison [Wed, 23 Apr 2008 01:39:01 +0000 (09:39 +0800)]
[Blackfin] arch: __FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: remove unused/incorrect definition
Meihui Fan [Wed, 23 Apr 2008 01:07:25 +0000 (09:07 +0800)]
[Blackfin] arch: remove unused/incorrect definition

Signed-off-by: Meihui Fan <mhfan@hhcn.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - make sure we check the right L1 length
Meihui Fan [Wed, 23 Apr 2008 00:55:26 +0000 (08:55 +0800)]
[Blackfin] arch: fix bug - make sure we check the right L1 length

Signed-off-by: Meihui Fan <mhfan@hhcn.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add support for the rest of the gptimers on the BF54x
Meihui Fan [Wed, 23 Apr 2008 00:53:15 +0000 (08:53 +0800)]
[Blackfin] arch: add support for the rest of the gptimers on the BF54x

Signed-off-by: Meihui Fan <mhfan@hhcn.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix obvious bfin_write typos
Meihui Fan [Wed, 23 Apr 2008 00:50:53 +0000 (08:50 +0800)]
[Blackfin] arch: fix obvious bfin_write typos

Signed-off-by: Meihui Fan <mhfan@hhcn.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Fix bug - Properly calculate DDR clock.
Sonic Zhang [Thu, 24 Apr 2008 19:06:10 +0000 (03:06 +0800)]
[Blackfin] arch: Fix bug - Properly calculate DDR clock.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix some obvious typos -- some of which prevent SDH building for...
Mike Frysinger [Wed, 23 Apr 2008 00:27:06 +0000 (08:27 +0800)]
[Blackfin] arch: fix some obvious typos -- some of which prevent SDH building for the BF542

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: relocate MAX_SWITCH_{D,I}_CPLBS from the header to the file where...
Mike Frysinger [Wed, 23 Apr 2008 00:23:51 +0000 (08:23 +0800)]
[Blackfin] arch: relocate MAX_SWITCH_{D,I}_CPLBS from the header to the file where it actually gets used.

relocate MAX_SWITCH_{D,I}_CPLBS from the header to the file
where it actually gets used.  this way when we change
CONFIG_MEM_SIZE in our kconfig, we only rebuild one or two files
rather than a whole bunch that implicitly include cplb.h.

this will also remove the ability to clear the swapcount on
the fly, but i really dont think that functionality is important.

ultimate goal is for CONFIG_MEM_SIZE to go away and calculate
this value on the fly based on what u-boot programmed for us.

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: replace implied numbers with real values
Mike Frysinger [Wed, 23 Apr 2008 00:09:45 +0000 (08:09 +0800)]
[Blackfin] arch: replace implied numbers with real values

replace implied numbers with real values so that strace is able to
calculate things automatically ... the numbers are frozen in our ABI,
so having them based off other __NR_xxx values really doesnt matter
-- no functional changes

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: MEM_ADD_WIDTH only gets used when reprogramming clocks, so dont...
Mike Frysinger [Wed, 23 Apr 2008 00:07:05 +0000 (08:07 +0800)]
[Blackfin] arch: MEM_ADD_WIDTH only gets used when reprogramming clocks, so dont bother exposing it in the menu normally

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: update reboot code to match latest info (really just copy from u...
Mike Frysinger [Wed, 23 Apr 2008 00:01:31 +0000 (08:01 +0800)]
[Blackfin] arch: update reboot code to match latest info (really just copy from u-boot)

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: Add dma_map_page and dma_unmap_page stub for MMC SPI compiling
Bryan Wu [Tue, 22 Apr 2008 23:41:52 +0000 (07:41 +0800)]
[Blackfin] arch: Add dma_map_page and dma_unmap_page stub for MMC SPI compiling

Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - Make the MPU code aware of the async banks and the uncache...
Bernd Schmidt [Tue, 22 Apr 2008 23:26:23 +0000 (07:26 +0800)]
[Blackfin] arch: fix bug - Make the MPU code aware of the async banks and the uncached DMA area.

Bug: CONFIG_MPU doesn't seem to handle access to ASYNC/IO Memory well
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3912

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - when using trace buffer with CONFIG_MPU enabled.
Bernd Schmidt [Tue, 22 Apr 2008 23:17:34 +0000 (07:17 +0800)]
[Blackfin] arch: fix bug - when using trace buffer with CONFIG_MPU enabled.

There were a couple of problems with the way the trace buffer state
is saved/restored in assembly.  The DEBUG_HWTRACE_SAVE/RESTORE macros
save a value to the stack, which is not immediately obvious; the CPLB
exception code needed changes to load the correct value of the stack
pointer.  The other problem is that the SAVE/RESTORE macros weren't
pushing and popping the value downwards on the stack, but rather moving
it _upwards_, which is of course completely broken.

We also need to make sure there's a matching DEBUG_HWTRACE_RESTORE in
the error case of the CPLB handler.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix up - CONFIG_BLKFIN_WT was renamed CONFIG_BFIN_WT while the MPU...
Bernd Schmidt [Tue, 22 Apr 2008 23:11:55 +0000 (07:11 +0800)]
[Blackfin] arch: fix up - CONFIG_BLKFIN_WT was renamed CONFIG_BFIN_WT while the MPU code was out-of-tree.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: remove TWI I2C register accessing helper macros, because we moved...
Bryan Wu [Wed, 26 Mar 2008 23:25:21 +0000 (07:25 +0800)]
[Blackfin] arch: remove TWI I2C register accessing helper macros, because we moved to use i2c new-style interface

Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - grab locks when not atomic
Robin Getz [Wed, 26 Mar 2008 01:17:43 +0000 (09:17 +0800)]
[Blackfin] arch: fix bug - grab locks when not atomic

grab locks when not atomic - this fixes the issues
sometimes seen when using magic sysrq.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix bug - when we crash, current is not valid
Robin Getz [Wed, 26 Mar 2008 01:15:58 +0000 (09:15 +0800)]
[Blackfin] arch: fix bug - when we crash, current is not valid

Sometimes when we crash, current is not valid, (has been written
over), so the existing code causes a invalid read during exception
context - which is a unrecoverable double fault. This fixes this.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add i2c board info struct and move to new-style i2c interface
Bryan Wu [Wed, 26 Mar 2008 02:02:13 +0000 (10:02 +0800)]
[Blackfin] arch: add i2c board info struct and move to new-style i2c interface

Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: fix up gpio code style -- no functional changes
Mike Frysinger [Wed, 26 Mar 2008 00:35:46 +0000 (08:35 +0800)]
[Blackfin] arch: fix up gpio code style -- no functional changes

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: dump the stack before printing out an error otherwise the stack...
Mike Frysinger [Wed, 26 Mar 2008 00:34:23 +0000 (08:34 +0800)]
[Blackfin] arch: dump the stack before printing out an error otherwise the stack dump is useless as it shows us tracing through printk

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: conditionally enable flash resources since it requests the async...
Mike Frysinger [Wed, 26 Mar 2008 00:09:12 +0000 (08:09 +0800)]
[Blackfin] arch: conditionally enable flash resources since it requests the async memory bank

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add code to initialize globals declared in linux/bootmem.h: max_pfn...
Yi Li [Tue, 25 Mar 2008 23:08:12 +0000 (07:08 +0800)]
[Blackfin] arch: add code to initialize globals declared in linux/bootmem.h: max_pfn, max_low_pfn, min_low_pfn.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: remove NOTES from linker script
Bernd Schmidt [Tue, 25 Mar 2008 22:39:15 +0000 (06:39 +0800)]
[Blackfin] arch: remove NOTES from linker script

Since
  r3658 | vapier | 2007-09-12 16:26:11 +0200 (Wed, 12 Sep 2007) | 1 line

  add more common defines for output sections

we've had a new line, NOTES, in our linker script, which causes upstream
binutils to complain about "missing phdr".  Currently the only other arch
that uses NOTES is i386, and the patch which added it also added
PHDRS {
text PT_LOAD FLAGS(5); /* R_E */
data PT_LOAD FLAGS(7); /* RWE */
note PT_NOTE FLAGS(0); /* ___ */
}
and a few other modifications to use ":text" and ":data" to the linker
script.

It seems that we don't need NOTES at all, so just remove it.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add twi resources to CM_BF537 board as reported by Servaes Joordens
Mike Frysinger [Tue, 25 Mar 2008 22:00:18 +0000 (06:00 +0800)]
[Blackfin] arch: add twi resources to CM_BF537 board as reported by Servaes Joordens

Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: declare CHECKFLAGS to make sparse output more readable
Mike Frysinger [Thu, 6 Mar 2008 18:43:48 +0000 (02:43 +0800)]
[Blackfin] arch: declare CHECKFLAGS to make sparse output more readable

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add missing __user marking to ss_sp member of signalstack and a...
Mike Frysinger [Thu, 6 Mar 2008 18:37:41 +0000 (02:37 +0800)]
[Blackfin] arch: add missing __user marking to ss_sp member of signalstack and a few userspace system functions

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: turn generic time on by default
Mike Frysinger [Fri, 29 Feb 2008 04:26:41 +0000 (12:26 +0800)]
[Blackfin] arch: turn generic time on by default

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: add board bluetechnix kernel defconfigs to kernel
Mike Frysinger [Fri, 29 Feb 2008 04:14:25 +0000 (12:14 +0800)]
[Blackfin] arch: add board bluetechnix kernel defconfigs to kernel

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years ago[Blackfin] arch: initial generic time and clock sources
Vitja Makarov [Fri, 29 Feb 2008 04:24:23 +0000 (12:24 +0800)]
[Blackfin] arch: initial generic time and clock sources

This patch enables Hight-Res Timers and tickless kernel

Signed-off-by: Vitja Makarov <vitja.makarov@gmail.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
16 years agoslab_err: Pass parameters correctly to slab_bug
Christoph Lameter [Wed, 23 Apr 2008 19:28:01 +0000 (12:28 -0700)]
slab_err: Pass parameters correctly to slab_bug

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
Linus Torvalds [Wed, 23 Apr 2008 19:24:19 +0000 (12:24 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
  [patch 7/7] vfs: mountinfo: show dominating group id
  [patch 6/7] vfs: mountinfo: add /proc/<pid>/mountinfo
  [patch 5/7] vfs: mountinfo: allow using process root
  [patch 4/7] vfs: mountinfo: add mount peer group ID
  [patch 3/7] vfs: mountinfo: add mount ID
  [patch 2/7] vfs: mountinfo: add seq_file_root()
  [patch 1/7] vfs: mountinfo: add dentry_path()
  [PATCH] remove unused label in xattr.c (noise from ro-bind)

16 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Linus Torvalds [Wed, 23 Apr 2008 19:23:45 +0000 (12:23 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
  iwlwifi: Fix built-in compilation of iwlcore
  net: Unexport move_addr_to_{kernel,user}
  rt2x00: Select LEDS_CLASS.
  iwlwifi: Select LEDS_CLASS.
  leds: Do not guard NEW_LEDS with HAS_IOMEM
  [IPSEC]: Fix catch-22 with algorithm IDs above 31
  time: Export set_normalized_timespec.
  tcp: Make use of before macro in tcp_input.c
  hamradio: Remove unneeded and deprecated cli()/sti() calls in dmascc.c
  [NETNS]: Remove empty ->init callback.
  [DCCP]: Convert do_gettimeofday() to getnstimeofday().
  [NETNS]: Don't initialize err variable twice.
  [NETNS]: The ip6_fib_timer can work with garbage on net namespace stop.
  [IPV4]: Convert do_gettimeofday() to getnstimeofday().
  [IPV4]: Make icmp_sk_init() static.
  [IPV6]: Make struct ip6_prohibit_entry_template static.
  tcp: Trivial fix to correct function name in a comment in net/ipv4/tcp.c
  [NET]: Expose netdevice dev_id through sysfs
  skbuff: fix missing kernel-doc notation
  [ROSE]: Fix soft lockup wrt. rose_node_list_lock

16 years agopnpacpi: fix potential corruption on "pnpacpi: exceeded the max number of IRQ resourc...
Len Brown [Wed, 23 Apr 2008 04:09:13 +0000 (00:09 -0400)]
pnpacpi: fix potential corruption on "pnpacpi: exceeded the max number of IRQ resources 2"

PNP_MAX_IRQ is 2
If a device invokes pnpacpi_parse_allocated_irqresource() 0, 1, or 2 times, we are happy.
The 3rd time, we will fail and print "pnpacpi: exceeded the max number of IRQ resources: 2"
The 4th and subsequent calls (if this ever happened) would silently scribble on
irq_resource[2], which doesn't actualy exist.

Found-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 years agoiwlwifi: Fix built-in compilation of iwlcore
Tomas Winkler [Wed, 23 Apr 2008 10:48:57 +0000 (03:48 -0700)]
iwlwifi: Fix built-in compilation of iwlcore

This patch fixes problem in Makefile that prevented
built-in compilation of iwlcore

Commit that caused this problem: eadd3c4b ("iwlwifi: make Makefile
more concise")

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Yi Zhu <yi.zhu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agonet: Unexport move_addr_to_{kernel,user}
Adrian Bunk [Wed, 23 Apr 2008 10:37:49 +0000 (03:37 -0700)]
net: Unexport move_addr_to_{kernel,user}

After the removal of the Solaris binary emulation the exports of
move_addr_to_{kernel,user} are no longer used.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agort2x00: Select LEDS_CLASS.
David S. Miller [Wed, 23 Apr 2008 10:34:50 +0000 (03:34 -0700)]
rt2x00: Select LEDS_CLASS.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoiwlwifi: Select LEDS_CLASS.
David S. Miller [Wed, 23 Apr 2008 10:34:31 +0000 (03:34 -0700)]
iwlwifi: Select LEDS_CLASS.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years agoleds: Do not guard NEW_LEDS with HAS_IOMEM
David S. Miller [Wed, 23 Apr 2008 10:33:32 +0000 (03:33 -0700)]
leds: Do not guard NEW_LEDS with HAS_IOMEM

The LEDS infrastructure itself does not require anything
that a platform dependant upon HAS_IOMEM.

The individual drivers do, but they are properly guarded
with the necessary platform dependencies.

One can even imagine a hypervisor based LED driver that
a platform without HAS_IOMEM might have.

Signed-off-by: David S. Miller <davem@davemloft.net>
16 years ago[patch 7/7] vfs: mountinfo: show dominating group id
Miklos Szeredi [Thu, 27 Mar 2008 12:06:26 +0000 (13:06 +0100)]
[patch 7/7] vfs: mountinfo: show dominating group id

Show peer group ID of nearest dominating group that has intersection
with the mount's namespace.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
16 years ago[patch 6/7] vfs: mountinfo: add /proc/<pid>/mountinfo
Ram Pai [Thu, 27 Mar 2008 12:06:25 +0000 (13:06 +0100)]
[patch 6/7] vfs: mountinfo: add /proc/<pid>/mountinfo

[mszeredi@suse.cz] rewrite and split big patch into managable chunks

/proc/mounts in its current form lacks important information:

 - propagation state
 - root of mount for bind mounts
 - the st_dev value used within the filesystem
 - identifier for each mount and it's parent

It also suffers from the following problems:

 - not easily extendable
 - ambiguity of mountpoints within a chrooted environment
 - doesn't distinguish between filesystem dependent and independent options
 - doesn't distinguish between per mount and per super block options

This patch introduces /proc/<pid>/mountinfo which attempts to address
all these deficiencies.

Code shared between /proc/<pid>/mounts and /proc/<pid>/mountinfo is
extracted into separate functions.

Thanks to Al Viro for the help in getting the design right.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
16 years ago[patch 5/7] vfs: mountinfo: allow using process root
Miklos Szeredi [Thu, 27 Mar 2008 12:06:24 +0000 (13:06 +0100)]
[patch 5/7] vfs: mountinfo: allow using process root

Allow /proc/<pid>/mountinfo to use the root of <pid> to calculate
mountpoints.

 - move definition of 'struct proc_mounts' to <linux/mnt_namespace.h>
 - add the process's namespace and root to this structure
 - pass a pointer to 'struct proc_mounts' into seq_operations

In addition the following cleanups are made:

 - use a common open function for /proc/<pid>/{mounts,mountstat}
 - surround namespace.c part of these proc files with #ifdef CONFIG_PROC_FS
 - make the seq_operations structures const

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
16 years ago[patch 4/7] vfs: mountinfo: add mount peer group ID
Miklos Szeredi [Thu, 27 Mar 2008 12:06:23 +0000 (13:06 +0100)]
[patch 4/7] vfs: mountinfo: add mount peer group ID

Add a unique ID to each peer group using the IDR infrastructure.  The
identifiers are reused after the peer group dissolves.

The IDR structures are protected by holding namepspace_sem for write
while allocating or deallocating IDs.

IDs are allocated when a previously unshared vfsmount becomes the
first member of a peer group.  When a new member is added to an
existing group, the ID is copied from one of the old members.

IDs are freed when the last member of a peer group is unshared.

Setting the MNT_SHARED flag on members of a subtree is done as a
separate step, after all the IDs have been allocated.  This way an
allocation failure can be cleaned up easilty, without affecting the
propagation state.

Based on design sketch by Al Viro.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
16 years ago[patch 3/7] vfs: mountinfo: add mount ID
Miklos Szeredi [Wed, 26 Mar 2008 21:11:34 +0000 (22:11 +0100)]
[patch 3/7] vfs: mountinfo: add mount ID

Add a unique ID to each vfsmount using the IDR infrastructure.  The
identifiers are reused after the vfsmount is freed.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
16 years ago[patch 2/7] vfs: mountinfo: add seq_file_root()
Miklos Szeredi [Thu, 27 Mar 2008 12:06:21 +0000 (13:06 +0100)]
[patch 2/7] vfs: mountinfo: add seq_file_root()

Add a new function:

  seq_file_root()

This is similar to seq_path(), but calculates the path relative to the
given root, instead of current->fs->root.  If the path was unreachable
from root, then modify the root parameter to reflect this.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
16 years ago[patch 1/7] vfs: mountinfo: add dentry_path()
Ram Pai [Thu, 27 Mar 2008 12:06:20 +0000 (13:06 +0100)]
[patch 1/7] vfs: mountinfo: add dentry_path()

[mszeredi@suse.cz] split big patch into managable chunks

Add the following functions:

  dentry_path()
  seq_dentry()

These are similar to d_path() and seq_path().  But instead of
calculating the path within a mount namespace, they calculate the path
from the root of the filesystem to a given dentry, ignoring mounts
completely.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>