Summary of changes from v2.6.9-rc2 to v2.6.9-rc3
============================================
<akropel1@rochester.rr.com>
input: Add 64-bit compatible ioctls for hiddev.
<vojtech@suse.cz>
Cset exclude: dtor_core@ameritech.net|ChangeSet|20040510063935|25419
<vojtech@suse.cz>
input: An attempt at fixing locking in i8042.c and serio.c
<vojtech@suse.cz>
input: Fix an oops in poll() on uinput. Thanks to Dmitry Torokhov
for suggesting the fix.
<vojtech@suse.cz>
input: Make atomicity and exclusive access to variables explicit
in atkbd.c, using bitops.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Return 0 from uinput poll if device isn't yet created.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Explicit variable access rules for psmouse.c, using bitops.
<vojtech@suse.cz>
input: Add reporting of raw scancodes to atkbd.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Use raw events generated by atkbd in keyboard.c to implement true
rawmode for PS/2 keyboards.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Fixes in serio locking. We need per-serio lock for passthrough
ports, some locks were missing, and spin_lock_irq was wishful
thinking in serio_interrupt. There is no guarantee
that serio_interrupt won't be called twice at the same time.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Disable the AUX LoopBack command in i8042.c on Compaq ProLiant
8-way Xeon ProFusion systems, as it causes crashes and reboots
on these machines. DMI data is used for determining if the
workaround should be enabled.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Make atkbd.c's atkbd_command() function immune to keys being pressed
and scancodes coming from the keyboard while it's executing.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: More locking improvements (and a fix) for serio. This
merges both my and Dmitry's changes.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Add a missong dmi_noloop declaration in i8042.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<dtor_core@ameritech.net>
Cset exclude: dtor_core@ameritech.net|ChangeSet|20040510063935|25419
<dtor_core@ameritech.net>
Input: logips2pp - do not call get_model_info 2 times
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<wli@holomorphy.com>
input: Move CONFIG_USB_HIDDEV a little lower in hiddev.h, to fix
compilation breakage when it is not defined.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Make hardware rawmode optional for AT-keyboards, and check
for rawmode bits in keyboard.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Add a missing extern i8042_dmi_loop.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<herbert@gondor.apana.org.au>
input: Fix boundary checks for GUSAGE/SUSAGE in hiddev.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<zap@homelink.ru>
input:
From: Andrew Zabolotny <zap@homelink.ru>
- Implement the 'raw' touchscreen protocol for backward compatibility
(/dev/input/ts[0-7] now speaks the protocol of the old /dev/h3600_ts, and
the /dev/input/tsraw[0-7] speaks the protocol of the old /dev/h3600_tsraw
device).
- Support the ioctls for setting the calibration parameters. The default
calibration matrix is computed from the xres,yres parameters (duplicate the
old behaviour), however this is not enough for a good translation from
touchscreen space to screen space.
- Fixed a old bug in tsdev: on a pen motion event X1,Y1 -> X2,Y2 the driver
would output three events with coordinates: X1,Y1, X2,Y1, X2,Y2. This
happened not only with coordinates, but with pressure too.
- Update James's email address
- Remove mention of Transvirtual Technologies: they no longer exist.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<dtor_core@ameritech.net>
Input: mousedev - better handle button presses when under load
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: mousedev - implement tapping for touchpads working in absolute
mode, such as Synaptics
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<vojtech@suse.cz>
input: Remove OSB4/Profusion hack in i8042, as it's handled by
DMI blacklist now.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
Input: rearrangements and cleanups in serio.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<zinx@epicsol.org>
input: Fix bad struct hidinput initialization in hid-tmff.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Remove an extra dmi_noloop declaration in i8042.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<pnelson@andrew.cmu.edu>
input: Enhancements/fixes for PSX pad support:
* Adds support for more than one controller. Previously more than
one controller was initialized and the docs said they worked, but
only one was actually read.
* Removes unnecessary detection on initialization. This allows the
module to be initialized without controllers plugged in (hot
swapping controllers works). This removes a warning if the user
has an unrecognized controller plugged in, but the only
unrecognized controller I have been able to find information about
online is the PSX mouse, which I've never actually seen.
* Adds a GC_DDR option value to have direction presses register as
buttons instead of axes. Allows the module to be used for Dance
Dance Revolution emulators like Stepmania.
* Adds psx_* to documentation.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: when probing for ImExPS/2 mice, the ImPS/2 sequence needs
to be sent first, but the result should be ignored.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Fix array overflows in keyboard.c when KEY_MAX > keycode > NR_KEYS > 128.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Add Dell SB Live! PCI ID to the emu10k1-gp driver.
Reported-by: Francisco Moraes <fmoraes74@netzero.net>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<James@superbug.demon.co.uk>
input: Add Audigy LS PCI ID to emu10k1-gp.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<cr7@os.inf.tu-dresden.de>
input: Add CodeMercs IOWarrior to hid-core device blacklist.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Fix Peter Nelson's e-mail address in gamecon.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<dtor_core@ameritech.net>
Input: make connect and disconnect methods mandatory for serio
drivers since that's where serio_{open|close} are called
from to actually bind driver to a port.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: rename serio->driver to serio->port_data in preparation
to sysfs integration
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: more renames in serio in preparations to sysfs integration
- serio_dev -> serio_driver
- serio_[un]register_device -> serio_[un]register_driver
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: switch to dynamic (heap) serio port allocation in preparation
to sysfs integration. By having all data structures dynamically
allocated serio driver modules can be unloaded without waiting
for the last reference to the port to be dropped.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: allow serio drivers to create children ports and register these
ports for them in serio core to avoid having recursion in connect
methods.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: serio sysfs integration
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: allow users manually rebind serio ports, like this:
echo -n "psmouse" > /sys/bus/serio/devices/serio0/driver
echo -n "atkbd" > /sys/bus/serio/devices/serio1/driver
echo -n "none" > /sys/bus/serio/devices/serio1/driver
echo -n "reconnect" > /sys/bus/serio/devices/serio1/driver
echo -n "rescan" > /sys/bus/serio/devices/serio1/driver
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: allow marking some drivers (that don't do HW autodetection)
as manual bind only. Such drivers will only be bound to a
serio port if user requests it by echoing driver name into
port's sysfs driver attribute.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: Add serio_raw driver that binds to serio ports and provides
unobstructed access to the underlying serio port via a char
device. The driver tries to register char device 10,1
(/dev/psaux) first and if it fails goes for dynamically
allocated minor. To bind use sysfs interface:
echo -n "serio_raw" > /sys/bus/serio/devices/serioX/driver
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: link serio ports to their parent devices in ambakmi,
gscps2, pcips2 and sa1111ps2 drivers
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<vojtech@suse.cz>
input: Fix Kconfig so that the joydump module can be compiled.
Reported-by: Matthieu Castet <castetm@ensimag.imag.fr>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Move Compaq ProLiant DMI handling (ServerWorks/OSB workaround)
to i8042.c.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<akropel1@rochester.rr.com>
This patch fixes another disconnect oops in hiddev.
hid-core calls hiddev_disconnect() when the underlying device goes away
(hot unplug or system shutdown). Normally, hiddev_disconnect() will
clean up nicely and return to hid-core who then frees the hid structure.
However, if the corresponding hiddev node is open at disconnect time,
hiddev delays the majority of disconnect work until the device is closed
via hiddev_release(). hiddev_release() calls hiddev_cleanup() which
proceeds to dereference the hid struct which hid-core freed back when
the hardware was disconnected. Oops.
To solve this, we change hiddev_disconnect() to deregister the hiddev
minor and invalidate its table entry immediately and delay only the
freeing of the hiddev structure itself. We're protected against future
operations on the fd since the major fops check hiddev->exists.
There may still be an ordering of events that causes a problem but I can
no longer reproduce any manually. There are enough different subsystems
and object lifetimes interacting here that I may have screwed something
else up; review is certainly welcome.
Signed-off-by: Adam Kropelin <akropel1@rochester.rr.com>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<mochel@digitalimplant.org>
[Power Mgmt] Make pmdisk dependent on swsusp.
<mochel@digitalimplant.org>
[Power Mgmt] Remove duplicate relocate_pagedir() from pmdisk.
- Expose and use version in swsusp.
<mochel@digitalimplant.org>
[Power Mgmt] Remove more duplicate code from pmdisk.
- Use read_swapfiles() in swsusp and rename to swsusp_swap_check().
- Use lock_swapdevices() in swsusp and rename to swsusp_swap_lock().
<mochel@digitalimplant.org>
[Power Mgmt] Share variables between pmdisk and swsusp.
- In pmdisk, change pm_pagedir_nosave back to pagedir_nosave, and
pmdisk_pages back to nr_copy_pages.
- Mark them, and other page count/pagedir variables extern.
- Make sure they're not static in swsusp.
- Remove mention from include/linux/suspend.h, since no one else needs them.
<mochel@digitalimplant.org>
[Power Mgmt] Merge first part of image writing code.
- Introduce helpers to swsusp - swsusp_write_page(), swsusp_data_write() and
swsusp_data_free().
- Delete duplicate copies from pmdisk and fixup names in calls.
- Clean up write_suspend_image() in swsusp and use the helpers.
<mochel@digitalimplant.org>
[Power Mgmt] Consolidate code for allocating image pages in pmdisk and swsusp
- Move helpers calc_order(), alloc_pagedir(), alloc_image_pages(),
enough_free_mem(), and enough_swap() into swsusp.
- Wrap them all with a new function - swsusp_alloc().
- Fix up pmdisk to just call that.
- Fix up suspend_prepare_image() to call that, instead of doing it inline.
<mochel@digitalimplant.org>
[Power Mgmt] Consolidate page count/copy code of pmdisk and swsusp.
- Split count_and_copy_data_pages() into count_data_pages() and
copy_data_pages().
- Move helper saveable() from pmdisk to swsusp, and update to work with
page zones.
- Get rid of uneeded defines in pmdisk.
<mochel@digitalimplant.org>
[swsusp] Add helper suspend_finish, move common code there.
- Move call out of assembly-callbacks and into software_suspend() after
do_magic() returns.
<mochel@digitalimplant.org>
[Power Mgmt] Consolidate pmdisk and swsusp low-level handling.
- Split do_magic into swsusp_arch_suspend() and swsusp_arch_resume().
- Clean up based on pmdisk implementation
- Only save registers we need to.
- Use rep;movsl for copying, rather than doing each byte.
- Create swsusp_suspend and swsusp_resume wrappers for calling the assmebly
routines that:
- Call {save,restore}_processor_state() in each.
- Disable/enable interrupts in each.
- Call swsusp_{suspend,restore} in software_{suspend,resume}
- Kill all the do_magic_* functions.
- Remove prototypes from linux/suspend.h
- Remove similar pmdisk functions.
- Update calls in kernel/power/disk.c to use swsusp versions.
<mochel@digitalimplant.org>
[Power Mgmt] Remove arch/i386/power/pmdisk.S
<mochel@digitalimplant.org>
[Power Mgmt] Fix up call in kernel/power/disk.c to swsusp_suspend().
<mochel@digitalimplant.org>
[Power Mgmt] Consolidate pmdisk and swsusp early swap access.
- Move bio helpers to swsusp.
- Convert swsusp to use them, rathen buffer_heads.
- Expose and fix up calls in pmdisk.
- Clean up swsusp::read_suspend_image() a bit.
<mochel@digitalimplant.org>
[Power Mgmt] Merge pmdisk/swsusp image reading code.
- Create swsusp_data_read() and call from read_suspend_image() in both
swsusp and pmdisk.
- Mark swsusp_pagedir_relocate() as static again.
<mochel@digitalimplant.org>
[Power Mgmt] Merge swsusp and pmdisk info headers.
- Move definition of struct pmdsik_info to power.h and rename to struct
swsusp_info.
- Kill struct suspend_header.
- Move helpers from pmdisk into swsusp: init_header(), dump_info(),
write_header(), sanity_check(), check_header().
- Fix up calls in pmdisk to call the right ones.
- Clean up swsusp code to use helpers; delete duplicates.
<mochel@digitalimplant.org>
[swsusp] Fix nasty bug in calculating next address to read from.
- The bio code already does this for us..
<mochel@digitalimplant.org>
[Power Mgmt] Merge pmdisk and swsusp signature handling.
- Move struct pmdisk_header definition to swsusp and change name to struct
swsusp_header.
- Statically allocate one (swsusp_header), and use it during mark_swapfiles()
and when checking sig on resume.
- Move check_sig() from pmdisk to swsusp.
- Wrap with swsusp_verify(), and move check_header() there.
- Fix up calls in pmdisk and swsusp.
- Make new wrapper swsusp_close_swap() and call from write_suspend_image().
- Look for swsusp_info info in swsusp_header.swsusp_info, instead of magic
location at end of struct.
<mochel@digitalimplant.org>
[Power Mgmt] Merge pmdisk and swsusp pagedir handling.
This embodies the core of the swsusp->pmdisk cleanups. Instead of using the
->dummy variable at the end of each pagedir for a linked list of the page
dirs, this uses a static array, which is kept in the empty space of the
swsusp header.
There are 768 entries, and could be scaled up based on the size of the page
and the amount of room remaining. 768 should be enough anyway, since each
entry is a swp_entry_t to a page-length array of pages. With larger systems
and more memory come larger pages, so each page-sized array will
automatically scale up.
This replaces the read_suspend_image() and write_suspend_image() in swsusp
with the much more concise pmdisk versions (not that big of change at this
point) and fixes up the callers so software_resume() gets it right.
Also, mark the helpers only used in swsusp as static again.
<mochel@digitalimplant.org>
[Power Mgmt] Merge pmdisk and swsusp read wrappers.
- Merge pmdisk_read() and __read_suspend_image() and rename to swsusp_read()
- Fix up call in kernel/power/disk.c to call new name.
- Remove extra error checking from software_resume().
<mochel@digitalimplant.org>
[Power Mgmt] Merge pmdisk and swsusp write wrappers.
- Merge suspend_save_image() from both into one.
- Rename to swsusp_write().
- Remove pmdisk_write().
- Fixup call in kernel/power/disk.c and software_suspend().
- Mark lock_swapdevices() static again.
<mochel@digitalimplant.org>
[Power Mgmt] Remove pmdisk_free()
- Change name of free_suspend_pagedir() to swsusp_free().
- Call from kernel/power/disk.c
<mochel@digitalimplant.org>
[Power Mgmt] Make default partition config option part of swsusp.
- Remove from pmdisk.
- Remove pmdisk= command line option.
<mochel@digitalimplant.org>
[Power Mgmt] Remove pmdisk.
- Remove kernel/power/pmdisk.c.
- Remove CONFIG_PM_STD config option.
- Fix up Makefile.
<mochel@digitalimplant.org>
[swsusp] Remove unneeded suspend_pagedir_lock.
<mochel@digitalimplant.org>
[Power Mgmt] Merge swsusp entry points with the PM core.
- Add {enable,disable}_nonboot_cpus() to prepare() and finish() in
kernel/power/disk.c
- Move swsusp __setup options there. Remove resume_status variable in favor
of simpler 'noresume' variable, and check it in pm_resume().
- Remove software_resume() from swsusp; rename pm_resume() to software_resume().
The latter is considerably cleaner, and leverages the core code.
- Move software_suspend() to kernel/power/main.c and shrink it down a
wrapper that takes pm_sem and calls pm_suspend_disk(), which does the
same as the old software_suspend() did.
This keeps the same entry points (via ACPI sleep and the reboot() syscall),
but actually allows those to use the low-level power states of the system
rather than always shutting off the system.
- Remove now-unused functions from swsusp.
<mochel@digitalimplant.org>
[swsusp] Fix nasty typo.
<dtor_core@ameritech.net>
Input: move input/serio closer to the top of drivers/Makefile so
serio_bus is available early
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: rearrange code in sunzilog so it registers its serio ports
only after hardware was fully initialized and with interrupts
tuned back on, otherwise it deadlocks.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: workaround for i8042 active multiplexing controllers losing
track of where data is coming from. Also sprinkled some
"likely"s in i8042 interrupt handler.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: add serio_pause_rx and serio_continue_rx so drivers can protect
their critical sections from port's interrupt handler
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: when changing psmouse state (activated, ignore) use srio_pause_rx/
serio_continue_rx so it will not fight with the interrupt handler
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: do not call protocol handler in psmouse unless mouse is
filly initialized - helps when USB Legacy emulation gets
in our way and starts generating junk data stream while
psmouse is detecting hardware
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: synaptics - do not try to process packets from slave device
as if they were coming form the touchpad itself if pass-through
port is disconnected, just pass them to serio core and it will
attempt to bind proper driver to the port
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: rearrange activation/children probe sequence in psmouse so
reconnect on children ports works even after parent port is
fully activated:
- when connecting/reconnecting a port always activate it
- when connecting/reconnecting a pass-throgh port deactivate
parent first and activate it after connect is done
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: drop __attribute__ ((packed)) from mousedev_emul
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: make i8042 a platform device instead of system device so
its serio ports have proper parent
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: integrate ct82c710, maceps2, q40kbd and rpckbd with sysfs
as platform devices so their serio ports have proper parents
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: Switch to use bus' default device and driver attributes to
manage serio sysfs attributes
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: allow marking serio ports (in addition to serio drivers)
as manual bind only, export the flag through sysfs
echo -n "manual" > /sys/bus/serio/devices/serio0/bind_mode
echo -n "auto" > /sys/bus/serio/drivers/serio_raw/bind_mode
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: serio - switch to use driver_find, adjust reference count
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<olh@suse.de>
input: Re-add PC Speaker support for PPC
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<dtor_core@ameritech.net>
Input: fix psmouse_sendbyte logic
- correctly return NAK when command times out on our side
- always reset ACK flag, even when serio_write fails
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: psmouse - harden command mode processing logic
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: switch psmouse driver from busy-polling for command completion
to waiting for event
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: atkbd - harden ACK/NAK and command processing logic
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: switch atkbd driver from busy-polling for command completion
to waiting for event
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: fix reader wakeup conditions in mousedev, joydev and tsdev
(we want readers to wake up when underlying device is gone
so they would get -ENODEV and close the device).
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<dtor_core@ameritech.net>
Input: fix absolute device handling in mousedev that was broken
by recent change that tried to do better multiplexing.
Now every client will keep its own virtual cursor position
and both absolute and relative events will update it
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
<vojtech@suse.cz>
input: Fix a missing index in tmdc.c
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Check the range for HIDIOC?USAGES num_values.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<mochel@digitalimplant.org>
[swsusp] Add big fat comment to calc_order().
<mochel@digitalimplant.org>
[Power Mgmt] Add CONFIG_PM_DEBUG option
- If enabled, add -DDEBUG to command line for kernel/power/ files.
- Fixup redefinitions of DEBUG in main.c and disk.c
- Kill useless DEBUG_* cruft in swsusp.c
- Change printk()s in dump_info() to pr_debug().
<mochel@digitalimplant.org>
[swsusp] Kill unneeded write_header().
- Just inline and remove bad comment.
<mochel@linux.site>
[swsusp] Make sure software_suspend() takes right path
- Make sure it calls enter_state(), which does the proper locking and check
for SMP, etc.
<mochel@linux.site>
[swsusp] Fix x86-64 low-level support.
From Pavel Machek.
<mochel@linux.site>
[swsusp] Make sure we call restore_highmem().
- Also, make highmem calls unconditional, with #ifdef inside functions.
<mochel@linux.site>
[Power Mgmt] Make sure we shutdown devices on shutdown and reboot..
<vojtech@suse.cz>
input: Fix an i8042 access timing violation spotted by Alan Cox.
<rmk@arm.linux.org.uk>
input: Update pcips2 driver
Use pci_request_regions()/pci_release_regions() instead of
request_region()/release_region()
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
<vojtech@suse.cz>
input: Update MAINTAINERS entries for Vojtech Pavlik.
<vojtech@suse.cz>
input: Make sure the HID request queue survives report transfer failures gracefully.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Problem-spotted-by: Alan Stern <stern@rowland.harvard.edu>
<aia21@cantab.net>
NTFS: Remove vol->nr_mft_records as it was pretty meaningless and optimize
the calculation of total/free inodes as used by statfs().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<marcel@holtmann.org>
[Bluetooth] Don't use ISOC transfers for Broadcom dongle
The Broadcom dongles with HID proxy support don't work with SCO over
HCI and so there is no need to start the ISOC transfers.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
<marcel@holtmann.org>
[Bluetooth] Don't send L2CAP reject command for bad responses
If a L2CAP response is bad or not understood there is no need to send
a reject command. The right way is to ignore the response and let the
L2CAP timers trigger the further actions.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
<marcel@holtmann.org>
[Bluetooth] Check checksums for BNEP
The checking of the checksums is needed, because with certain Bluetooth
hardware there are failures which aren't caught otherwise.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
<markgw@sgi.com>
[IA64-SGI] sn_proc_fs.c: convert to use seq_file API
Signed-off-by: Mark Goodwin <markgw@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<jbarnes@sgi.com>
[IA64-SGI]: disable non-display ROM resources
This patch is needed to correctly support the new sysfs rom file. On sn2, we
only allocate PIO space for display option ROMs since PIO space is a
relatively scarce resource (we've seen exhaustion when running with several
qla cards in the same domain). And without this patch we won't zero out
non-display ROM resources which can lead to panics if anyone tries to use the
bogus addresses left over there from the generic PCI probing code.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<alex.williamson@hp.com>
[IA64] discontig.c: fixup pxm_to_nid_map
I'd like to be able to use pxm_to_nid_map in several places to
discover proximity domain to node id associations. Unfortunately, after
reassign_cpu_only_nodes() plays with the node space, the pxm_to_nid_map
doesn't necessarily reflect reality. This fixes up the table so it's
still valid. Note that nid_to_pxm_map is still potentially broken, but
has a one-to-many problem if the above function combines several
proximity domains into a single node. Thanks to Bob Picco for the base
patch.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<alex.williamson@hp.com>
[IA64] sba_iommu.c: sba_iommu NUMA locality
This patch adds NUMA locality info to sba_iommu, allowing coherent
DMA mappings to be allocated from the node nearest to the I/O. This
patch isn't dependent on the previous pxm_to_nid_map fixup, but may be
sub-optimal in some cases without it. Thanks
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<alex.williamson@hp.com>
[IA64] iosapic.h, pci.c, iosapic.c, acpi.c: iosapic NUMA interrupt locality
This patch associates IOSAPICs with NUMA nodes such that interrupts
gets assigned to a reasonably good default CPU. The patch does not
depend on the pxm_to_nid_map fixup, but results will be strange in some
configurations without it. This should work on any NUMA box that
exposes IOSAPICs with _MAT & _PXM methods, but it's only been tested on
an rx8620. There should be no change in behavior for boxes that don't
export both of these in ACPI namespace.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<yoshfuji@linux-ipv6.org>
[NET] NEIGHBOUR: save number of arguments for neigh_update() by flags.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] NDISC: suspect REACHABLE entry if new lladdr is different.
When we receive NA without Override flag, if it comes with
different lladdr from one in our REACHABLE entry,
set the state to STALE. (RFC2461 7.2.5)
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] NDISC: keep original state if new state is STALE and lladdr is unchanged
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[NET] NEIGHBOUR: merge two flags for neigh_update() into one.
This is because SUSPECT_CONNECTED can be effective
only if OVERRIDE is unset, and used only if RETAIN_STATE is set.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] NDISC: update IsRouter flag appropriately.
Update IsRouter (NTF_ROUTER) flag approrpriately.
Specifically,
- we should not update it blindly; if Override Flag is
unset and lladdr is differnt, we should NOT.
- we should set it when we have received RA.
- we should set it when we have received Redirect
whose target is off-link.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[NET] NEIGHBOUR: use time_after() and its friends.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] NDISC: update entry appropriately when receiving NS.
Update neighbour entry appropriately by passing correct flags
when receiving NS.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[NET] NEIGHBOUR: improve neighbour state machine.
This centralizes neighbour state transition by timer into
neigh_timer_handler(), and kill neigh_sync().
This improves timing accuracy of state transition.
neigh_timer_handler() for each entry is now reponsible
for state transition of the entry, and
neigh_periodic_timer() is just for garbage collection.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] NDISC: Fix message validation against Redirects.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] don't use expired default routes.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] ensure to aging default routes.
This patch is product of corraboration with Ville Nuorvala
<vnuorval@tcs.hut.fi>.
Signed-off-by: Hideaki YOSHIFUJi <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] purge routes via non-router neighbour but gateway.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<bzolnier@elka.pw.edu.pl>
[PATCH] ide: small cleanup for sis5513
Sigh, Thomas Gleixner pointed out that his
sis5518 fix didn't need forward porting.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
Add skeleton "generic IO mapping" infrastructure.
Jeff wants to use this to clean up SATA and some network drivers.
<eranian@hpl.hp.com>
[IA64] Makefile: fix for the PTRACE_SYSCALL corruption bug
Thanks to David for his help in tracking it down.
compile the kernel with sibling call optimization
turned off. There is a problem with all functions
using the optimization and the asmlinkage attribute.
The compiler should not perform the optimization on
these functions because it cannot preserve the syscall
parameters in the callee. This caused SIGSEGV on programs
traced with PTRACE_SYSCALL, for instance.
signed-off-by: stephane eranian <eranian@hpl.hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<ak@muc.de>
[NET]: Fix missing spin lock in lltx path.
This fixes a silly missing spin lock in the relock path. For some
reason it seems to still work when you don't have spinlock debugging
enabled.
Please apply.
Thanks to Arjan's spinlock debug kernel for finding it.
Signed-off-by: Andi Kleen <ak@muc.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV6]: Add option to copy DSCP in decap in ip6_tunnel.
Here is a patch that allows the copying of the DSCP during decapsulation
for ip6_tunnel. I've made it a separate option from the one that
determines the copying during encapsulation since the DSCP processing
may be asymmetric. It also means that we preserve compatibility should
anyone be relying on the current behaviour.
inet_ecn.h might appear to be an odd place for ipv6_copy_dscp, but
I couldn't put it in dsfield.h since I want to use ipv6_get_dsfield
in inet_ecn.h later on. The other alternative would be to define
INET_ECN_MASK in dsfield.h.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<torvalds@ppc970.osdl.org>
Export new PCI iomem access interfaces to modules too.
<anton@samba.org>
[PATCH] Clean up compat sched affinity syscalls
Remove the set_fs hack in the compat affinity calls. Create
sched_getaffinity and sched_setaffinity helper functions that both the
native and compat affinity syscalls use.
Also make the compat functions match what the native ones are doing now,
setaffinity calls succeed no matter what length the bitmask is, but
getaffinity calls must pass in bitmasks at least as long as the kernel
type.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] Backward compatibility for compat sched_getaffinity
The follow patch special cases the NR_CPUS <= BITS_PER_COMPAT_LONG case.
Without this patch, a 32bit task would be required to have a 64bit
cpumask no matter what value of NR_CPUS are used.
With this patch a compat long sized bitmask is allowed if NR_CPUS is
small enough to fit within it.
Of course applications should be using the glibc wrappers that use an
opaque cpu_mask_t type, but there could be older applications using the
syscalls directly.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<akpm@osdl.org>
[PATCH] isofs buffer management fix
There's a double-free in the isofs filesystem.
Invalidate this pointer so it doesn't get freed twice.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rmk@flint.arm.linux.org.uk>
[ARM] Fix ARM APM emulation sparse errors
arch/arm/kernel/apm.c:57:16: warning: dubious one-bit signed bitfield
arch/arm/kernel/apm.c:58:17: warning: dubious one-bit signed bitfield
arch/arm/kernel/apm.c:59:17: warning: dubious one-bit signed bitfield
arch/arm/kernel/apm.c:60:23: warning: dubious one-bit signed bitfield
<rmk@flint.arm.linux.org.uk>
[ARM] Remove the hh.org H3600 "example" code.
<rmk@flint.arm.linux.org.uk>
[ARM] Convert list_for_each()/list_entry() to list_for_each_entry()
<rmk@flint.arm.linux.org.uk>
[ARM] Abstract APM circular queue object.
<rmk@flint.arm.linux.org.uk>
[ARM] Convert APM user list lock to r/w sem
Convert user_list_lock spinlock to a read/write semaphore;
the spinlock was affording us very little protection.
<rmk@flint.arm.linux.org.uk>
[ARM] APM: "Battery life" needs to be a signed integer.
<rmk@flint.arm.linux.org.uk>
[ARM] Remove APM standby support - it's unused.
<nico@cam.org>
[PATCH] linux/dma-mapping.h needs linux/device.h
It seems that most architectures already include linux/device.h in their
own asm/dma-mapping.h. Most but not all, and some drivers fail to
compile on those architectures that don't. Since everybody needs it
let's include device.h from one place only and fix compilation for
everybody.
<rmk@flint.arm.linux.org.uk>
[ARM] Convert suspend to a state machine.
The original version had issues when two suspend events came
in at around the same time, causing APM to get confused:
threads became stuck in APM_IOC_SUSPEND and suspends_pending
incremented on each apm --suspend call.
Now, we only add a suspend event to a users queue and increment
suspends_pending if the user isn't already in the middle of
handling a suspend event.
<rmk@flint.arm.linux.org.uk>
[ARM] No point having "nonblock" local variable - kill it.
<rmk@flint.arm.linux.org.uk>
[ARM] Keep APM threads frozen
Ensure threads waiting for suspend to occur in apm_ioctl are
not woken by the pm_suspend thread freezing - they're already
frozen.
<rmk@flint.arm.linux.org.uk>
[ARM] Update APM state definitions
Move existing APM state definitions into struct apm_power_info,
and add further definitions describing other fields.
<rmk@flint.arm.linux.org.uk>
[ARM] Revive kapmd and provide apm_queue_event()
Add kapmd thread to provide a process context to handle "APM"
events submitted via apm_queue_event().
Add apm_queue_event(), which can be called from hardware
interrupt handlers and the like, typically to fire off a
suspend.
<ben-linux@org.rmk.(none)>
[ARM PATCH] 2090/2: S3C2410 - usb gadged (udc) include
Patch from Ben Dooks
Header file for USB gadget controller (udc) for the
Samsung S3C2410 SoC
Signed-off-by: Herbert Poetzl
Signed-off-by: Ben Dooks
<davem@nuts.davemloft.net>
[TCP]: Just silently ignore ICMP Source Quench messages.
Recommended by draft-gont-tcpm-icmp-attacks-01.txt
Signed-off-by: David S. Miller <davem@davemloft.net>
<ben-linux@org.rmk.(none)>
[ARM PATCH] 2091/1: S3C2410 - change id of s3c2410-ohci
Patch from Ben Dooks
Fix missed ID change on s3c2410-usb
Signed-off-by: Ben DOoks
<ben-linux@org.rmk.(none)>
[ARM PATCH] 2092/1: S3C2410 - gpio bugfix and additions
Patch from Ben Dooks
Fix inverted mask in s3c2410_gpio_setpin() function,
add s3c2410_modify_misccr() for shared register, and
add s3c2410_gpio_getpin()
Signed-off-by: Ben Dooks
<ben-linux@org.rmk.(none)>
[ARM PATCH] 2093/1: S3C2410 - remove un-necessary resource from NAND
Patch from Ben Dooks
Removed resource description left by copying error
Thanks to Klaus Fetscher for pointing this out.
Signed-off-by: Ben Dooks
<i@stingr.net>
[IPV4]: Add wccp v1/v2 support to ip_gre.c
Signed-off-by: David S. Miller <davem@davemloft.net>
<acme@conectiva.com.br>
[NET] generalise per protocol slab cache handling
With this patch we get two new slabcaches, for sctp socks, that previously
were being allocated on the default, that was tcp[6]_sock, i.e. wasting 288
bytes per sock in the IPv4 case and 256 bytes for the IPv6 version, this is in
preparation for DCCP (or any other new protocol :) ).
With this in place another nice side effect that is easier to achieve is to
get rid of struct sock sk->sk_slab, and instead use sk->sk_prot->slab, saving
sizeof(void *) on every struct sock instance, but this unfortunatly has to
wait for the conversion of all protocols that use per socket slabcaches to
use sk->sk_prot, AF_UNIX is the only one AFAIK, so I'll try to convert it to
use sk->sk_prot and then get rid of sk->sk_slab.
As for the protocols that don't use per socket slabcaches its just a matter
of defaulting to sk_cachep at sk_free time if sk->sk_prot is NULL.
[root@qemu ~]# modprobe sctp
[root@qemu ~]# grep _sock /proc/slabinfo
sctpv6_sock 9 9 864 9 2 : tunables 54 27 0 :
sctp_sock 0 0 736 5 1 : tunables 54 27 0 :
rawv6_sock 3 6 640 6 1 : tunables 54 27 0 :
udpv6_sock 0 0 608 6 1 : tunables 54 27 0 :
tcpv6_sock 1 7 1120 7 2 : tunables 24 12 0 :
unix_sock 6 10 384 10 1 : tunables 54 27 0 :
raw_sock 2 8 480 8 1 : tunables 54 27 0 :
udp_sock 0 0 512 7 1 : tunables 54 27 0 :
tcp_sock 0 0 1024 4 1 : tunables 54 27 0 :
Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: David S. Miller <davem@redhat.com>
<martin.wilck@fujitsu-siemens.com>
[TG3]: Fix pause handling, we had duplicate flags for the same thing.
Signed-off-by: David S. Miller <davem@davemloft.net>
<shemminger@osdl.org>
[B44]: Fix b44 I/O mem space access warnings.
B44 driver was using unsigned long as an io memory address.
Recent changes caused this to be a warning. This patch fixes that
and makes the readl/writel wrapper into inline's instead of macros
with magic variable side effect (yuck).
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IOMAP]: Make ioport_map() take unsigned long port argument.
Signed-off-by: David S. Miller <davem@davemloft.net>
<jgarzik@pobox.com>
[libata sata_nv] sync with 2.4
Driver should be using LIBATA_MAX_PRD not ATA_MAX_PRD,
due to iommu layer splitting.
<jgarzik@pobox.com>
[libata] remove distinction between MMIO/PIO helper functions
Prepare for use of new generic iomap API.
<jgarzik@pobox.com>
[libata] consolidate legacy/native mode init code into helpers
Eliminates duplicate code in sata_nv, sata_sis, and sata_via.
<davem@nuts.davemloft.net>
[TCP]: Fix logic error in packets_out accounting.
Noticed by Herbert Xu.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: __iomem annotations and iomap implementation.
<nico@org.rmk.(none)>
[ARM PATCH] 2094/1: don't lose the system timer after resuming from sleep on SA11x0 and
PXA2xx
Patch from Nicolas Pitre
Let's make sure OSCR doesn't end up to be restored with a value
past OSMR0 otherwise the system timer won't start ticking until
OSCR wraps around (aprox 17 min.
Also set OSCR _after_ OIER is restored to avoid matching when
corresponding match interrupt is masked out.
Signed-off-by: Nicolas Pitre
<rth@kanga.twiddle.home>
[ALPHA] Check set_fd_set return.
<rth@kanga.twiddle.home>
[ALPHA] Use "long" on some internal bitops routines.
<rth@kanga.twiddle.home>
[ALPHA] Arrange to return EINTR for sigsuspend on signal path.
<rth@kanga.twiddle.home>
[ALPHA] Add waitid.
<aia21@cantab.net>
NTFS: Fix scheduling latencies in ntfs_fill_super() by dropping the BKL
because the code itself is using the ntfs_lock semaphore which
provides safe locking. (Ingo Molnar)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<nathanl@austin.ibm.com>
[PATCH] fix schedstats null deref in sched_exec
In sched_exec, schedstat_inc will dereference a null pointer if no domain
is found with the SD_BALANCE_EXEC flag set. This was exposed during
testing of the previous patches where cpus are temporarily attached to a
dummy domain without SD_BALANCE_EXEC set.
Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jason.davis@unisys.com>
[PATCH] ES7000 subarch update
The patch below implements an algorithm to determine an unique GSI override
for mapping GSIs to IO-APIC pins correctly. GSI overrides are required in
order for ES7000 machines to function properly since IRQ to pin mappings
are NOT all one-to-one. This patch applies only to the Unisys specific
ES7000 machines and has been tested thoroughly on several models of the
ES7000 line.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<davej@redhat.com>
[PATCH] Pointer dereference before NULL check in ACPI thermal driver
Again, found with coverity's checker.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<willschm@us.ibm.com>
[PATCH] ppc64: lparcfg fixes for processor counts
This patch corrects how the lparcfg interface was presenting the number of
active and potential processors. (As reported in LTC bugzilla number 10889).
- Correct output for partition_potential_processors and
system_active_processors.
- suppress pool related values in scenarios where they do not make
sense. (non-shared processor configurations)
- Display pool_capacity as a percentage, to match the behavior from
iSeries code.
Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<willschm@us.ibm.com>
[PATCH] ppc64: lparcfg whitespace and wordwrap cleanup.
This patch is the result of running Lindent against
arch/ppc64/kernel/lparcfg.c.
This cleans up an assortment of whitespace and wordwrap inconsistencies.
Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: remove SPINLINE config option
After the spinlock rework, CONFIG_SPINLINE doesnt work and causes a compile
error. Remove it for now.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: RTAS error logs can appear twice in dmesg
I've started seeing rtas errors printed twice. Remove the second call to
printk_log_rtas.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: Enable NUMA API
Plumb the NUMA API syscalls into ppc64. Also add some missing cond_syscalls
so we still link with NUMA API disabled.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: give the kernel an OPD section
From: Alan Modra <amodra@bigpond.net.au>
Give the kernel an OPD section, required for recent ppc64 toolchains.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: use nm --synthetic where available
On new toolchains we need to use nm --synthetic or we miss code symbols. Sam,
I'm not thrilled about this patch but Im not sure of an easier way. Any ideas?
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: clean up kernel command line code
Clean up some of our command line code:
- We were copying the command line out of the device tree twice, but the
first time we forgot to add CONFIG_CMDLINE. Fix this and remove the
second copy.
- The command line birec code ran after we had done some command line
parsing in prom.c. This had the opportunity to really confuse the
user, with some options being parsed out of the device tree and the
other out of birecs. Luckily we could find no user of the command
line birecs, so remove them.
- remove duplicate printing of kernel command line;
- clean up iseries inits and create an iSeries_parse_cmdline.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: remove unused ppc64_calibrate_delay
- Remove ppc64_calibrate_delay, no longer used
- Formatting fixups
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: remove EEH command line device matching code
We have had reports of people attempting to disable EEH on POWER5 boxes. This
is not supported, and the device will most likely not respond to config space
reads/writes. Remove the IBM location matching code that was being used to
disable devices as well as the global option.
We already have the ability to ignore EEH erros via the panic_on_oops sysctl
option, advanced users should make use of that instead.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: use early_param
Make use of Rusty's early_param code. Its good stuff.
We appear to be the first user :)
Move vpa_init and idle_setup later in boot, we dont have to do them
right up front in setup_system.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: restore smt-enabled=off kernel command line option
Restore the smt-enabled=off kernel command line functionality:
- Remove the SMT_DYNAMIC state now that smt_snooze_delay allows for the
same thing.
- Remove the early prom.c parsing for the option, put it into an
early_param instead.
- In setup_cpu_maps honour the smt-enabled setting
Note to Nathan: In order to allow cpu hotplug add of secondary threads after
booting with smt-enabled=off, I had to initialise cpu_present_map to
cpu_online_map in smp_cpus_done. Im not sure how you want to handle this but
it seems our present map currently does not allow cpus to be added into the
partition that werent there at boot (but were in the possible map).
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: enable POWER5 low power mode in idle loop
Now that we understand (and have fixed) the problem with using low power mode
in the idle loop, lets enable it. It should save a fair amount of power.
(The problem was that our exceptions were inheriting the low power mode and so
were executing at a fraction of the normal cpu issue rate. We fixed it by
always bumping our priority to medium at the start of every exception).
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: clean up idle loop code
Clean up our idle loop code:
- Remove a bunch of useless includes and make most functions static
- There were places where we werent disabling interrupts before checking
need_resched then calling the hypervisor to sleep our thread. We might
race with an IPI and end up missing a reschedule. Disable interrupts
around these regions to make them safe.
- We forgot to turn off the polling flag when exiting the dedicated_idle
idle loop. This could have resulted in all manner problems as other
cpus would avoid sending IPIs to force reschedules.
- Add a missing check for cpu_is_offline in the shared cpu idle loop.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: remove -Wno-uninitialized
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: Fix real bugs uncovered by -Wno-uninitialized removal
The removal of -Wno-uninitialized on ppc64 revealed a number of real
bugs.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: Fix spurious warnings uncovered by -Wno-uninitialized removal
Here are fixes for some false positives.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] hvc: uninitialised variable
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<david@gibson.dropbear.id.au>
[PATCH] ppc64: improved VSID allocation algorithm
This patch has been tested both on SLB and segment table machines. This
new approach is far from the final word in VSID/context allocation, but
it's a noticeable improvement on the old method.
Replace the VSID allocation algorithm. The new algorithm first generates a
36-bit "proto-VSID" (with 0xfffffffff reserved). For kernel addresses this
is equal to the ESID (address >> 28), for user addresses it is:
(context << 15) | (esid & 0x7fff)
These are distinguishable from kernel proto-VSIDs because the top bit is
clear. Proto-VSIDs with the top two bits equal to 0b10 are reserved for
now.
The proto-VSIDs are then scrambled into real VSIDs with the multiplicative
hash:
VSID = (proto-VSID * VSID_MULTIPLIER) % VSID_MODULUS
where VSID_MULTIPLIER = 268435399 = 0xFFFFFC7
VSID_MODULUS = 2^36-1 = 0xFFFFFFFFF
This scramble is 1:1, because VSID_MULTIPLIER and VSID_MODULUS are co-prime
since VSID_MULTIPLIER is prime (the largest 28-bit prime, in fact).
This scheme has a number of advantages over the old one:
- We now have VSIDs for every kernel address (i.e. everything above
0xC000000000000000), except the very top segment. That simplifies a
number of things.
- We allow for 15 significant bits of ESID for user addresses with 20
bits of context. i.e. 8T (43 bits) of address space for up to 1M
contexts, significantly more than the old method (although we will need
changes in the hash path and context allocation to take advantage of
this).
- Because we use a real multiplicative hash function, we have better and
more robust hash scattering with this VSID algorithm (at least based on
some initial results).
Because the MODULUS is 2^n-1 we can use a trick to compute it efficiently
without a divide or extra multiply. This makes the new algorithm barely
slower than the old one.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc32: remove -Wno-uninitialized
Remove -Wno-uninitialized on ppc32 too. Ive just found a number of real bugs
on ppc64 by doing the same.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: pmac cpufreq for ibook 2 600
This patch adds support for the 750CX based ibook2 600Mhz to the cpufreq
powermac driver.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yuvalt@gmail.com>
[PATCH] searching for parameters in 'make menuconfig'
I added the ability to search for parameters in make menuconfig (find a
given parameter's location in the tree).
You use '/' to invoke the feature. Regular expression searches are supported.
Signed-off-by: Yuval Turgeman <yuvalt@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<castet.matthieu@free.fr>
[PATCH] pnpbios parser bugfix
this patch fix a pnpbios problem with independant
resource(http://bugzilla.kernel.org/show_bug.cgi?id=3295) :
the old code assume that they are given at the beggining (before any
SMALL_TAG_STARTDEP entry), but in some case there are found after
SMALL_TAG_ENDDEP entry.
tag : 6 SMALL_TAG_STARTDEP
tag : 8 SMALL_TAG_PORT
tag : 6 SMALL_TAG_STARTDEP
tag : 8 SMALL_TAG_PORT
tag : 7 SMALL_TAG_ENDDEP
tag : 4 SMALL_TAG_IRQ <-- independant resource
tag : f SMALL_TAG_END
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: don't SLAB_HWCACHE_ALIGN
Anton recently removed SLAB_HWCACHE_ALIGN from the fs inode caches, now do the
same for tmpfs inode cache: fits 9 per page where 7 before.
Was saying SLAB_RECLAIM_ACCOUNT too, but that's wrong: tmpfs inodes are not
reclaimed under pressure; and hugetlbfs had copied that too.
Rearrange shmem_inode_info fields so those most likely to be needed are most
likely to be in the same cacheline as the spinlock guarding them.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: inodes and links need lowmem
Keith Mannthey's Bugzilla #3268 drew attention to how tmpfs inodes and
dentries and long names and radix-tree nodes pin lowmem. Assuming about 1k of
lowmem per inode, we need to lower the default nr_inodes limit on machines
with significant highmem.
Be conservative, but more generous than in the original patch to Keith: limit
to number of lowmem pages, which works out around 200,000 on i386. Easily
overridden by giving the nr_inodes= mount option: those who want to sail
closer to the rocks should be allowed to do so.
Notice how tmpfs dentries cannot be reclaimed in the way that disk-based
dentries can: so even hard links need to be costed. They are cheaper than
inodes, but easier all round to charge the same. This way, the limit for hard
links is equally visible through "df -i": but expect occasional bugreports
that tmpfs links are being treated like this.
Would have been simpler just to move the free_inodes accounting from
shmem_delete_inode to shmem_unlink; but that would lose the charge on unlinked
but open files.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: no sbinfo for shm mount
SGI investigations have shown a dramatic contrast in scalability between
anonymous memory and shmem objects. Processes building distinct shmem objects
in parallel hit heavy contention on shmem superblock stat_lock. Across 256
cpus an intensive test runs 300 times slower than anonymous.
Jack Steiner has observed that all the shmem superblock free_blocks and
free_inodes accounting is redundant in the case of the internal mount used for
SysV shared memory and for shared writable /dev/zero objects (the cases which
most concern them): it specifically declines to limit.
Based upon Brent Casavant's SHMEM_NOSBINFO patch, this instead just removes
the shmem_sb_info structure from the internal kernel mount, testing where
necessary for null sbinfo pointer. shmem_set_size moved within CONFIG_TMPFS,
its arg named "sbinfo" as elsewhere.
This brings shmem object scalability up to that of anonymous memory, in the
case where distinct processes are building (faulting to allocate) distinct
objects. It significantly improves parallel building of a shared shmem object
(that test runs 14 times faster across 256 cpus), but other issues remain in
that case: to be addressed in later patches.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: no sbinfo for tmpfs mount?
Some might want a tmpfs mount with the improved scalability afforded by
omitting shmem superblock accounting; or some might just want to test it in an
externally-visible tmpfs mount instance.
Adopt the convention that mount option -o nr_blocks=0,nr_inodes=0 means
without resource limits, and hence no shmem_sb_info. Not recommended for
general use, but no worse than ramfs.
Disallow remounting from unlimited to limited (no accounting has been done so
far, so no idea whether it's permissible), and from limited to unlimited
(because we'd need then to free the sbinfo, and visit each inode to reset its
i_blocks to 0: why bother?).
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: avoid the shmem_inodes list
If we're thinking about shmem scalability... isn't it silly that each shmem
object is added to the shmem_inodes list on creation, and removed on deletion,
yet the only use for that list is in swapoff (shmem_unuse)?
Call it shmem_swaplist; shmem_writepage add inode to swaplist when first swap
allocated (usually never); shmem_delete_inode remove inode from the list after
truncating (if called before, inode could be re-added to it).
Inode can remain on the swaplist after all its pages are swapped back in, just
be lazy about it; but if shmem_unuse finds swapped count now 0, save itself
time by then removing that inode from the swaplist.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: rework majmin and ZERO_PAGE
Very minor adjustments to shmem_getpage return path: I now prefer it to return
NULL and let do_shmem_file_read use ZERO_PAGE(0) in that case; and we don't
need a local majmin variable, do_no_page initializes *type to VM_FAULT_MINOR
already.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hugh@veritas.com>
[PATCH] shmem: Copyright file_setup trivia
I _think_ shmem_file_setup is protected against negative loff_t size by the
TASK_SIZE in each arch, but prefer the security of an explicit test. Wipe
those parentheses off its return(file), and update our Copyright.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] Allocate correct amount of memory for pid hash
We are now allocating twice as much memory as required.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<juhl-lkml@dif.dk>
[PATCH] __copy_to_user() check in cdrom_read_cdda_old()
akpm: really, reads are supposed to return the number-of-bytes-read on faults,
or -EFAULT of no bytes were read. This patch returns either zero or -EFAULT,
ignoring any successfully transferred data. But the user interface (whcih is
an ioctl()) was never set up to do that.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] make kmem_find_general_cachep static in slab.c
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] mark md_interrupt_thread static
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] mark dq_list_lock static
Only used in dq_list_lock these days.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] remove exports from audit code
Tons of exports in the new audit code, but not a single module that
actually uses one of them.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@suse.de>
[PATCH] Add prctl to modify current->comm
This patch adds a prctl to modify current->comm as shown in /proc. This
feature was requested by KDE developers. In KDE most programs are started by
forking from a kdeinit program that already has the libraries loaded and some
other state.
Problem is to give these forked programs the proper name. It already writes
the command line in the environment (as seen in ps), but top uses a different
field in /proc/pid/status that reports current->comm. And that was always
"kdeinit" instead of the real command name. So you ended up with lots of
kdeinits in your top listing, which was not very useful.
This patch adds a new prctl PR_SET_NAME to allow a program to change its comm
field.
I considered the potential security issues of a program obscuring itself with
this interface, but I don't think it matters much because a program can
already obscure itself when the admin uses ps instead of top. In case of a
KDE desktop calling everything kdeinit is much more obfuscation than the
alternative.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mingo@elte.hu>
[PATCH] blk: max_sectors tunables
Introduces two new /sys/block values:
/sys/block/*/queue/max_hw_sectors_kb
/sys/block/*/queue/max_sectors_kb
max_hw_sectors_kb is the maximum that the driver can handle and is
readonly. max_sectors_kb is the current max_sectors value and can be tuned
by root. PAGE_SIZE granularity is enforced.
It's all locking-safe and all affected layered drivers have been updated as
well. The patch has been in testing for a couple of weeks already as part
of the voluntary-preempt patches and it works just fine - people use it to
reduce IDE IRQ handling latencies.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rsa@us.ibm.com>
[PATCH] HVCS fix to replace yield with tty_wait_until_sent in hvcs_close
Following the same advice you gave in a recent hvc_console patch I have
modified HVCS to remove a while() { yield(); } from hvcs_close() which may
cause problems where real time scheduling is concerned and replaced it with
tty_wait_until_sent() which uses a real wait queue and is the proper method
for blocking a tty operation while waiting for data to be sent. This patch
has been tested to verify that all the paths of code that were changed were
hit during the code run and performed as expected including hotplug remove
of hvcs adapters and hangup of ttys.
- Replaced yield() in hvcs_close() with tty_wait_until_sent() to prevent
possible lockup with realtime scheduling.
- Removed hvcs_final_close() and reordered cleanup operations to prevent
discarding of pending data during an hvcs_close() call.
- Removed spinlock protection of hvcs_struct data members in
hvcs_write_room() and hvcs_chars_in_buffer() because they aren't needed.
Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: remove ghash.h
Remove dependency on ghash.h. Remvoe ghash.h, too.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: eliminate useless thread field
This patch eliminates use of task.thread.kernel_stack. It was unnecessary,
confusing, and was masking some kernel stack size assumptions.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: fix scheduler race
This fixes a use-after-free bug in the context switching. A process going
out of context after exiting wakes up the next process and then kills
itself. The problem is that when it gets around to killing itself is up to
the host and can happen a long time later, including after the incoming
process has freed its stack, and that memory is possibly being used for
something else.
The fix is to have the incoming process kill the exiting process just to
make sure it can't be running at the point that its stack is freed.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: fix binary layout assumption
This patch calculates section boundaries differently so as to not get
tripped up by holes in the binary such as are introduced by exec-shield.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: disable pending signals across a reboot
On reboot, all signals and signal sources are disabled so that
late-arriving signals don't show up after the reboot exec, confusing the
new image, which is not expecting signals yet.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<blaisorblade_spam@yahoo.it>
[PATCH] uml: refer to CONFIG_USERMODE, not to CONFIG_UM
Correct one Kconfig dependency, which should refer to CONFIG_USERMODE
rather than to CONFIG_UM.
We should also figure out how to make the config process work better for
UML. We would like to make UML able to "source drivers/Kconfig" and have
the right drivers selectable (i.e. LVM, ramdisk, and so on) and the ones
for actual hardware excluded. I've been reading such a request even from
Jeff Dike at the last Kernel Summit, (in the lwn.net coverage) but without
any followup.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<blaisorblade_spam@yahoo.it>
[PATCH] uml: remove commented old code in Kconfig
Drop a config option which has disappeared from all archs. Btw, this
shouldn't be in the UML-specific part, but since we cannot include generic
Kconfigs to avoid problem with hardware-related configs, it's duplicated
for now.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<blaisorblade_spam@yahoo.it>
[PATCH] uml: smp build fix
From: Sonny Rao <sonny@burdell.org>
Make the SMP code compile, at least, to make testing possible, and remove
its dependency on CONFIG_BROKEN.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<blaisorblade_spam@yahoo.it>
[PATCH] uml: remove CONFIG_UML_SMP
Using CONFIG_UML_SMP and then making CONFIG_SMP = CONFIG_UML_SMP is useless
(there was a reason in 2.4, to have different help texts, but not now).
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<axboe@suse.de>
[PATCH] block highmem flushes
Add a couple of missing cache flushes to the bouncing code.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dsaxena@plexity.net>
[PATCH] Add support for word-length UART registers
UARTS on several Intel IXP2000 systems are connected in such a way that
they can only be addressed using full word accesses instead of bytes.
Following patch adds a UPIO_MEM32 io-type to identify these UARTs.
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jbarnes@engr.sgi.com>
[PATCH] fix uninitialized warnings in mempolicy.c
err may be used uninitialized in mempolicy.c in both compat_set_mempolicy
and compat_mbind. This patch fixes that by setting them both to 0.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] small <linux/hardirq.h> tweaks
- I misspelled CONFIG_PREEMPT CONFIG_PREEPT as various people noticed.
But in fact that ifdef should just go, else we'll get drivers that
compile with CONFIG_PREEMPT but not without sooner or later.
- remove unused hardirq_trylock and hardirq_endlock
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<roland@frob.com>
[PATCH] BSD disklabel: handle more than 8 partitions
NetBSD allows 16 partitions, not just 8. This patch both ups the number,
and makes the recognition code tell you if the count in the disklabel
exceeds the number supported by the kernel.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] <asm/softirq.h> crept back in h8300 and sh64
<asm/softirq.h> went away in 2.5, but new ports keep adding instances again
and again.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] mark amiflop non-unloadable
As it's using the obsolete MOD_{INC,DEC}_USE_COUNT it's implicitly locked
already, but let's remove them and make it explicit so these macros can go
away completely without breaking m68k compile.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mpm@selenic.com>
[PATCH] netpoll endian fixes
Correct wrong ip header in netpoll_send_udp.
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@suse.de>
[PATCH] Fix ABI in set_mempolicy()
Fix ABI in set_mempolicy() that got broken by an earlier change.
Add a check for very big input values and prevent excessive looping in the
kernel.
Cc: Paul "nyer, nyer, your mother wears combat boots!" Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mingo@elte.hu>
[PATCH] i386: elf_read_implies_exec() fixup
The final ia64 related cleanup to elf_read_implies_exec() seems to have
broken it. The effect is that the READ_IMPLIES_EXEC flag is never set
for !pt_gnu_stack binaries!
That's a bit more secure than we need to be, and might break some legacy
app that doesn't expect it.
<torvalds@ppc970.osdl.org>
Fix fork failure case.
It would clear the segment registers in the parent, which
wasn't really intentional. Noticed by Andries Brouwer.
<torvalds@ppc970.osdl.org>
fivafb; Increase DDC/CI timeouts
Nicolas Boichat reports that his monitor needs the slower
i2c bus timings. These values also match atyfb and the
original ones.
<torvalds@ppc970.osdl.org>
Fix up stupid last-minute edit of fork cleanup.
I'm a retard.
<levon@movementarian.org>
[PATCH] fix OProfile locking
This makes OProgile use get_task_mm() as discussed. It also fixes up
Anton's previous patch. Zwane's soaked this patch all night w/o
problems.
<zippel@linux-m68k.org>
[PATCH] properly fix double current_menu
The two current_menu variables are really two separate variables, so keep
them separate.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
Update shipped version of zconfig.tab.c to match bison/yacc file.
<torvalds@ppc970.osdl.org>
ppc64: first cut at new iomap interfaces.
Only the EEH case (pSeries) handled for now.
<yoshfuji@linux-ipv6.org>
[IPV6]: Do not export rt6_dflt_{pointer,lock}.
Modify them using exported procedural interfaces instead.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by; David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Use list.h facilities for fib_info_list.
Do not use a by-hand list implementation.
Signed-off-by: David S. Miller <davem@davemloft.net>
<trini@kernel.crashing.org>
ppc32: Don't make cmd_line be an emptry string
As noted by Olaf Hering, CONFIG_CMDLINE didn't work on PMacs
as we made cmd_line be an empty string and then looked for the
cmdline in odd places.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
<torvalds@ppc970.osdl.org>
Add support for "string" ioread/iowrite.
Things like SATA use this for data transfer.
Also export the iomap routines on ppc64.
<torvalds@ppc970.osdl.org>
Fix up typo in ppc64 eeh ioport_map() code.
Noticed by BenH, happily harmless (nothing that uses that
code has been committed yet, and PIO seems to be pretty much
unused on at least the Apple G5 machines: all the normal
hardware is set up purely for MMIO, to the point that I
couldn't even test this thing).
<jgarzik@pobox.com>
[libata] minor comment updates, preparing for iomap merge
<ananth@broadcom.com>
[libata sata_svw] race condition fix, new device support
* address race condition WRT order of DMA-start and ATA command issue
(see code comment for more details)
* Add support for Frodo 4/8
<herbert@gondor.apana.org.au>
[NET]: Convert RTM+_* to enum.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Make fib_semantics algorithms scale better.
A singly linked list was previously used to
do fib_info object lookup for various actions
in the routing code. This does not scale very
well with many devices and even a moderate number
of routes. This was noted by Benjamin Lahaise.
To fix all of this we use 3 hash tables, two of
which grow dynamically as the number fib_info
objects increases while the final one is fixes in
size.
The statically sized table hashes on device index.
This is used for fib_sync_down, fib_sync_up, and
ip_fib_check_default.
The first dynamically sized table is keyed on
protocol, prefsrc, and priority. This is used
by fib_create_info() to look for existing fib_info
objects matching the new one being constructed.
The last dynamically sized table is keyed on
the preferred source of the route if it has one
specified. This is used by fib_sync_down when
a local address disappears.
There are still some scalability problems for
Bens test case in fib_hash.c and I will try to
attack those next.
Signed-off-by: David S. Miller <davem@davemloft.net>
<michael.waychison@sun.com>
[TG3]: Fix thinko in 5704 fibre hw autoneg code.
Signed-off-by: Mike Waychison <michael.waychison@sun.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[TG3]: Recognize all onboard Sun variants, not just 5704.
Based upon a report from Matthias Merz.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[TG3]: Update driver version and reldate.
<davem@nuts.davemloft.net>
[CRYPTO]: Zero out tfm before freeing in crypto_free_tfm().
Based upon discussions with Ulrich Kuehn
(ukuehn@acm.org)
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<yoshfuji@linux-ipv6.org>
[IPV6]: Missing xfrm_lookup() in icmpv6_{send,echo_reply}()
net/ipv6/icmp.c was not converted in xfrm_lookup() extraction patch.
This patch converts it; adding the missing call to xfrm_lookup in
icmpv6_{send,echo_reply}().
Signed-off-by: Kazunori Miyazawa <kazunori@miyazawa.org>
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
SIgned-off-by: David S. Miller <davem@davemloft.net>
<rth@kanga.twiddle.home>
[ALPHA] Minor updates for cpumask_t.
<rth@kanga.twiddle.home>
[ALPHA] Implement _raw_write_trylock.
<vda@port.imtp.ilyichevsk.odessa.ua>
[PATCH] reduce [compat_]do_execve stack usage
Allocating the 'struct linux_binprm' on the stack chews up too much
stackspace.
Just kmalloc it instead.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<trini@kernel.crashing.org>
ppc32: Fix some warnings in rheap from newer compilers
Signed-off-by: Pantelis Antoniou <panto@intracom.gr>
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
<eric.lemoine@gmail.com>
[SUNGEM]: Add tx_lock
Using tx_lock in SunGEM makes the driver logic in conformance
with tg3 and e1000, easing maintainance.
Signed-off-by: Eric Lemoine <eric.lemoine@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<eric.lemoine@gmail.com>
[SUNGEM]: LLTX support
Signed-off-by: Eric Lemoine <eric.lemoine@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NETFILTER]: Fix off-by-one test error in ip_tables.c
Bug noticed by Ysauyuki Kozakai.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Basic cleanups in fib_hash.c
1) Kill special key, prefix, and hash index types.
They make the code less readable and maintainable.
2) __inline__ --> inline
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Use hlist_for_each_entry_safe in fib_hash_move.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NETFILTER]: Fix tcp_find_option() bug properly.
Signed-off-by: David S. Miller <davem@davemloft.net>
<acme@conectiva.com.br>
[SOCKET] make enum socket_type be arch overridable
To cope with MIPS, that has SOCK_STREAM and SOCK_DGRAM values swapped
to deal with binary compat.
Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<davem@nuts.davemloft.net>
[IPV4]: More fib_hash cleanups.
Kill fn_key_eq and fn_key_leq
Signed-off-by: David S. Miller <davem@davemloft.net>
<tony.luck@intel.com>
[IA64] make INIT dump work again
current can be in region 5, use 'tpa' to convert to physical
Signed-off-by: Tony Luck <tony.luck@intel.com>
<jbarnes@sgi.com>
[IA64-SGI]: fix `qw' might be used uninitialized warning
The compiler has no way of knowing whether nentries will be greater than 0, so
it was generating a warning that qw might be used uninitialized. Fix it by
explicitly setting it to 0. Cc'ing Brian in case he has an internal version
he'd like to keep in sync.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<jgarzik@pobox.com>
[libata] add hook, and export functions needed for sata2 drivers
* add dev_select hook, and default/noop implementations
* export ata_dev_classify
* fix a couple bugs that cropped up when building with
ATA_VERBOSE_DEBUG
* export __sata_phy_reset, a variant that does not call
ata_bus_reset
<airlied@starflyer.(none)>
drm: fix bug introduced in the macro removal
This caused issues with a PCI radeon card.
From: Jon Smirl
Approved-by: Dave Airlie <airlied@linux.ie>
<aia21@cantab.net>
NTFS: Fix a potential bug in fs/ntfs/mft.c::map_extent_mft_record() that
could occur in the future for when we start closing/freeing extent
inodes if we don't set base_ni->ext.extent_ntfs_inos to NULL after
we free it.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<airlied@starflyer.(none)>
drm: add pci_enable_device
Add pci_enable_device for any PCI device we want to use.
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
Approved-by: David Airlie <airlied@linux.ie>
<airlied@starflyer.(none)>
drm: use set_current_state instead of direct assignment
Suggested-by: Nishanth Aravamudan <nacc@us.ibm.com>
Approved-by: Dave Airlie <airlied@linux.ie>
<airlied@starflyer.(none)>
drm: actually __set_current_state is more correct
Alan suggested using __set_current_state as being more correct for
the DRM so do that.
Signed-off-by: Dave Airlie <airlied@linux.ie>
<roland@redhat.com>
[PATCH] back out siginfo_t.si_rusage from waitid changes
As I explained in the waitid patches, I added the si_rusage field to
siginfo_t with the idea of having the siginfo_t waitid fills in contain all
the information that wait4 or any such call could ever tell you. Nowhere
in POSIX nor anywhere else specifies this field in siginfo_t.
When Ulrich and I hashed out the system call interface we wanted, we looked
at siginfo_t and decided there was plenty of space to throw in si_rusage.
Well, it turns out we didn't check the 64-bit platforms. There struct
rusage is ridiculously large (lots of longs for things that are never in a
million years going to hit 2^32), and my changes bumped up the size of
siginfo_t. Changing that size is more trouble than it's worth.
This patch reverts the changes to the siginfo_t structure types,
and no longer provides the rusage details in SIGCHLD signal data.
Instead, I added a fifth argument to the waitid system call to fill in rusage.
waitid is the name of the POSIX function with four arguments. It might
make sense to rename the system call `waitsys' to follow SGI's system call
with the same arguments, or `wait5' in the mindless tradition. But, feh.
I just added the argument to sys_waitid, rather than worrying about
changing the name in all the tables (and choosing a new stupid name).
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rusty@rustcorp.com.au>
[PATCH] Fix ip_nat_ftp registration when no ports= arg
FTP NAT module doesn't register anything with no args. Oops.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<alex.williamson@hp.com>
[PATCH] fix compat_do_execve stack usage
Looks like a couple struct to pointer conversions were missed.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<kaos@sgi.com>
[IA64] ar.k[56] have virtual addresses already, don't convert
r.k[56] used to contain physical addresses but now contain virtual
addresses. There are code remnants which still believe that they are
physical and "convert" ar.k[56] to virtual. This breaks when current
is not in region 7 (e.g. the idle task on cpu 0).
Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<vandrove@vc.cvut.cz>
[PATCH] matroxfb update + sparse annotations
This change switches matroxfb on x86 and x86_64 from dereferencing
pointers to {read,write}[bwl], as __pa() are gone from them, and so gcc
does not need an additional register for preserving address between
consecutive {read,write}[bwl].
Then it switches only supported architecture left (ppc/ppc64/arm) from
dereferencing pointers to __raw_{read,write}[bwl].
Third part is fixing sparse complaints: add __iomem here and there, and
switch one 1bit bitfield from int to unsigned int.
After this there should be no sparse complaints in matroxfb.
Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<eric.lemoine@gmail.com>
[SUNGEM]: Add netpoll support.
Signed-off-by: Eric Lemoine <eric.lemoine@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<jbarnes@sgi.com>
[IA64] Kconfig: Add help text for IA64_SGI_SN2 config option.
Mark Goodwin suggested that we document our platform a bit. This patch adds
help text for the sn2 specific kernel option.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<yoshfuji@linux-ipv6.org>
[IPV6]: NDISC: ensure responding to NS without link-layer information
When sending NA in response to NS, we may not know the
link-layer address for the destination of the NA
since unicast NS is not required to include its link-layer information.
In this case, we first need to resolve the link-layer address.
(RFC 2461 7.2.4)
We now create neighbour entry for the destination
and link-layer information will be automatically solved
in the output path.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV6]: Kill ip6_get_dsfield
This patch kills the duplicate implementation of ip6_get_dsfield in
inet_ecn.h. It now uses ipv6_get_dsfield from dsfield.h instead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPSEC]: Implement DSCP decapsulation
This patch adds DSCP decapsulation for IPsec. This is enabled by
a per-state flag which is off by default. Leaving it off by default
maintains compatibility and is also good for performance reasons.
I decided to not implement a toggle on the output path since not
encapsulating the DSCP can and should be done by netfilter.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<tgraf@suug.ch>
[PKT_SCHED]: Fix slab corruption in cbq_destroy
Fixes slab corruption in cbq_destroy. cbq_destroy_filters and
qdisc_put_rtab(q->link.R_tab) are already called in cbq_destroy_class.
The latter lead to a slab corruption due to repeated freeing of
q->link.R_tab because q->link is part of q->classes. Problem introduced
in 1.21.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<bdschuym@pandora.be>
[NETFILTER]: port physdev to ip6tables
Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Add io{read,write}{8,16,32}_rep().
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Update defconfig.
<davem@nuts.davemloft.net>
[FC4]: Fix iomem warnings in SOC driver.
<davem@nuts.davemloft.net>
[FC4]: Fix iomem warnings in SOCAL driver.
<davem@nuts.davemloft.net>
[SPARC64]: Make IDE ops take __iomem pointers.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in amd7930 sound driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in cs4231 sound driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in i8042-sparcio.h
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[MPTFUSION]: Fix iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SUNHME]: Fix iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<markgw@sgi.com>
[IA64] SGI Altix hardware performance monitoring API
The SGI Altix PROM supports a SAL call for performance monitoring and for
exporting NUMA topology. We need this in community kernels for diagnostic
and performance tools to use, especially on very large machines.
This patch registers a dynamic misc device "sn_hwperf" that supports an
ioctl interface for reading/writing memory mapped registers on Altix
nodes and routers via the new SAL call. It also creates a read-only
procfs file "/proc/sgi_sn/sn_topology" to export NUMA topology and Altix
hardware inventory.
> What tools are using this?
Performance Co-Pilot http://oss.sgi.com/projects/pcp in particular,
pmshub, shubstats and linkstat. Numerous other users include anything
that needs knowledge of numa topology/interconnect in order to perform
well, e.g. mpt. BTW I have not exported any API functions .. at this
point I don't think we need any modules to call the API.
Signed-off-by: Mark Goodwin <markgw@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<davem@nuts.davemloft.net>
[SUNLANCE]: Fix iomem warnings.
Also clear all the bogus volatile usage out of
this driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SUNQE]: Fix iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SUNBMAC]: Fix iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[MYRI_SBUS]: Fix iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[TYPHOON]: Fix iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in envctrl driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in display7seg driver.
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in cpwatchdog driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in flash driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[B44]: Fix remaining iomem warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in esp scsi driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix iomem warnings in qlogicpti driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<olh@suse.de>
[PATCH] mark mace and bmac as ppc32 only
mace and bmac are only used in "oldworld" PowerMacs.
Mark them as ppc32 only.
<davem@nuts.davemloft.net>
[SPARC64]: Fix I/O port args to string routines.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Missing ioremap() in parport support.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC]: Kill dump_dma_regs, unused.
Signed-off-by: David S. Miller <davem@davemloft.net>
<trini@kernel.crashing.org>
ppc32: Fix a problem with the FCC enet driver for CPM2 systems
The Local Protect Bit needs to be set when entering full
duplex mode.
Signed-off-by: Rune Torgersen <runet@innovsys.com>
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
<trini@kernel.crashing.org>
ppc32: The ISA PIC address for int-ack wasn't being picked out right
Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
<akpm@osdl.org>
[PATCH] fix driver name in eth1394 as returned by ETHTOOL_GDRVINFO
From: Thierry Vignaud <tvignaud@mandrakesoft.com>
The GDRVINFO command of the ETHTOOL ioctl returns a bogus driver name.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<david@gibson.dropbear.id.au>
[IPV4]: Initialize newly allocated hash tables in fib_semantics.c
When fib_create_info() allocates new hash tables, it neglects to
initialize them. This leads to an oops during boot on at least
machine I use. This patch addresses the problem.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<Markus.Lidel@shadowconnect.com>
[PATCH] reduce ioremap memory size for Adaptec I2O controllers
The I2O subsystem currently map all memory from the I2O controller for the
controller's in queue, even if it is not necessary. This is a problem,
because on some systems the size returned from pci_resource_len() could be
128MB and only 1-4MB is needed.
Changes:
- only ioremap as much memory as the controller is actually using.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rsa@us.ibm.com>
[PATCH] hvc_console fix to protect hvc_write against ldisc write after hvc_close
Due to the tty ldisc code not stopping write operations against a driver
even after a tty has been closed I added a mechanism to hvc_console in my
previous patch to prevent this by nulling out the tty->driver_data in
hvc_close() but I forgot to check tty->driver_data in hvc_write(). Anton
Blanchard got several oops'es from hvc_write() accessing NULL as if it were
a pointer to an hvc_struct usually stored in tty->driver_data.
So this patch checks tty->driver_data in hvc_write() before it is used.
Hopefully once Alan Cox's patch is checked in ldisc writes won't continue
to happen after tty closes.
Anton Blanchard has tested this patch and is unable to reproduce the oops
with it applied.
Changelog:
drivers/char/hvc_console.c
- Added comment to hvc_close() to explain the reason for NULLing
tty->driver_data.
- Added check to hvc_write() to verify that tty->driver_data is valid
(NOT NULL) which would be the case if the write operation was invoked
after a tty close was initiated on the tty.
Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mingo@elte.hu>
[PATCH] x86 TSS: io port caching
There's one additional step we can do ontop of the ports-max code to get rid
of copying in X.org's case: cache the last task that set up the IO bitmap.
This means we can set the offset to invalid and keep the IO bitmap of that
task, and switch back to a valid offset (without any copying) when switching
back to that task. (or do a copy if there is another ioperm task we switch
to.)
I've attached ioport-cache-2.6.8.1.patch that implements this. When
there's a single active ioperm() using task in the system then the
context-switch overhead is very low and constant:
# ./ioperm-latency
default no ioperm: scheduling latency: 2478 cycles
turning on port 80 ioperm: scheduling latency: 2499 cycles
turning on port 65535 ioperm: scheduling latency: 2481 cycles
This single-ioperm-user situation matches 99% of the actual ioperm()
usage scenarios and gets rid of any copying whatsoever - without relying
on any fault mechanism. I can see no advantage of the GPF approach over
this patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mingo@elte.hu>
[PATCH] x86 TSS: io bitmap lazy updating
This uses Davide's do_general_protection() fault based io-bitmap lazy update
code and combines it with the ioport-owner cache.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<roland@redhat.com>
[PATCH] fix posix-timers leak
Exec fails to clean up posix-timers. This manifests itself in two ways, one
worse than the other. In the single-threaded case, it just fails to clear out
the timers on exec. POSIX says that exec clears out the timers from
timer_create (though not the setitimer ones), so it's wrong that a lingering
timer could fire after exec and kill the process with a signal it's not
expecting. In the multi-threaded case, it not only leaves lingering timers,
but it leaks them entirely when it replaces signal_struct, so they will never
be freed by the process exiting after that exec. The new per-user
RLIMIT_SIGPENDING actually limits the damage here, because a UID will fill up
its quota with leaked timers and then never be able to use timer_create again
(that's what my test program does). But if you have many many untrusted UIDs,
this leak could be considered a DoS risk.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<trini@kernel.crashing.org>
[PATCH] ppc32: Fix arch/ppc/boot/common/ns16550.c
When <linux/timex.h> started including <asm/io.h> this exposed one of the
fragilities of the code in arch/ppc/boot/, namely that it is tied to the
kernel headers for some information, yet not really the kernel. The
following starts us in the direction of being less tied to the kernel by
providing our own serial_state definition (all we care about is the ability
to grab information from SERIAL_PORT_DFNS).
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<olh@suse.de>
[PATCH] ppc32: open_pic2.c build fix
arch/ppc/syslib/open_pic2.c: In function `init_openpic2_sysfs':
arch/ppc/syslib/open_pic2.c:694: error: `ENODEV' undeclared (first use in this function)
arch/ppc/syslib/open_pic2.c:694: error: (Each undeclared identifier is reported only once
arch/ppc/syslib/open_pic2.c:694: error: for each function it appears in.)
possible fix below.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: force_sigsegv fixes
Replace do_exit() in 64bit signal code with force_sig/force_sigsegv where
appropriate.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: powersave_nap sysctl
Implement powersave_nap sysctl, like ppc32. This allows us to disable the
nap function which is useful when profiling with oprofile (to get an
accurate count of idle time).
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: replace mmu_context_queue with idr allocator
Replace the mmu_context_queue structure with the idr allocator. The
mmu_context_queue allocation was quite large (~200kB) so on most machines
we will have a reduction in usage.
We might put a single entry cache on the front of this so we are more
likely to reuse ppc64 MMU hashtable entries that are in the caches.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: iseries build fixes
Fix one compile warning and one build warning on iseries.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: clean up asm/mmu.h
Remove some old definitions that arent relevant to us.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc64: Fix some bogus warnings & cleanup tlbie code path
This patch fixes some warnings that popped up with the removal of
-Wno-uninitialized around the code doing tlbie's.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: Remove A() and AA()
Remove the A() and AA() macros. Now we have compat_ptr we should be using
that.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: export probe_irq_mask
yenta_socket wants probe_irq_mask, so export it.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: don't use state == SYSTEM_BOOTING
From: Nathan Lynch <nathanl@austin.ibm.com>
Fedora has a patch which introduces a new system state during boot. Change
system_state == SYSTEM_BOOTING to system_state < SYSTEM_RUNNING to match
it.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: fix hotplug CPU when building a pseries+pmac kernel
When a pseries+pmac kernel is built, the rtas stop-self token wasnt being
initialised. Since doing this will safely fail on pmac, remove the
!CONFIG_PPC_PMAC restriction
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: disable some drivers broken on 64bit
The mace, bmac and dmasound drivers use virt_to_bus and so will not work on
ppc64. Reflect this in the relevant Kconfig files.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: fix CONFIG_CMDLINE
When I cleaned up our cmdline parsing, I missed a RELOC of CONFIG_CMDLINE
itself. Without it we copy something random into cmd_line, but only when
CONFIG_CMDLINE is enabled.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<david@gibson.dropbear.id.au>
[PATCH] ppc64: remove LARGE_PAGE_SHIFT constant
For historical reasons, ppc64 has ended up with two #defines for the size
of a large (16M) page: LARGE_PAGE_SHIFT and HPAGE_SHIFT. This patch
removes LARGE_PAGE_SHIFT in favour of the more widely used HPAGE_SHIFT.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: add atomic64_t
Add an atomic64_t type to x86-64.
Not used right now, but may be useful in the future, e.g. for rss together
with C.Lameter's page fault scalability patches.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: make APIC errors KERN_DEBUG
Make APIC errors KERN_DEBUG
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: add apic={verbose,quiet,debug}
Ported from i386
Allow to quieten apic boot output on the command line using
apic={verbose,debug,quiet}
Make it quiet by default
Add extra #define for making apic print functions __init or not
__init (for easier debugging)
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: update defconfig
Update x86-64 defconfig
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: avoid deadlock in page fault handler
Avoid deadlock when kernel fault happens inside mmap sem.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: avoid panic when APIC ID cannot be set
Don't panic when io apic id cannot be set.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: IO-APIC suspend/resume
Do IO-APIC suspend/resume.
Untested so far.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: make machine check handler configurable
Make the x86-64 machine check handler configurable when EMBEDDED
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: remove WARN_ON in smp_call_function
Remove WARN_ON in smp_call_function. it breaks the machine check
handling and there is no good way to enable interrupts here.
Call Trace:<ffffffff8011cb33>{smp_call_function+115} <ffffffff8011cbf9>{smp_send_stop+25}
<ffffffff80138012>{panic+274} <ffffffff801187e0>{do_machine_check+0}
<ffffffff80118c3a>{do_machine_check+1114} <ffffffff80111663>{machine_check+127}
<ffffffff803434d7>{net_rx_action+215} <EOE> <IRQ> <ffffffff8013c8e3>{__do_softirq+83}
<ffffffff8013c975>{do_softirq+53} <ffffffff80113cdd>{do_IRQ+317}
<<ffffffff8010f3b0>{default_idle+0} <ffffffff80110b81>{ret_from_intr+0}
<EOI> <ffffffff8010f3d0>{default_idle+32} <ffffffff8010f86a>{cpu_idle+26}
<ffffffff8058f886>{start_kernel+502} <ffffffff8058f1e0>{_sinittext+48
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: print mce bank enable mask in hex
Print mce bank enable mask in sysfs in hex
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: add might_sleeps to more *_user functions
Add might_sleep to more *_user functions.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: fix for mem= on NUMA systems
Fix bug that caused oops with mem= on certain NUMA configurations
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: sibling map fix for clustered mode
From: James Cleverdon
The value that cpuinfo returns for command 1 in ebx is the physical APIC ID
latched when the system comes out of reset.
Ordinarily, this is identical to the value in the local APIC's ID register,
because nearly all BIOSes accept the HW assigned value.
Our systems, made up of individual building blocks, can't do that. Each
node boots as a separate system and is joined together by the BIOS. Thus,
the BIOS rewrites the local APIC ID register with a new value.
Potomac and Nocona chips have a mechanism by which the BIOS writer can
change bits 7:5 to match the assigned cluster ID. Bits 2:0 come from the
thread ID. However, bits 4:3 are still those latched at reset. Oops!
Summary: Large clustered systems can't use cpuid to derive the sibling
information.
Fix: Use the local APIC ID. That's the value we use to online the CPUs, so
it had better be OK. For non-clustered systems, cpuid == local APIC, so
nothing but large boxes should be affected.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: synchronize video.S with i386
Sync x86-64 video.S with i386 changes
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: add read implies exec macro
Add read implies exec personality.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64, x86: don't pass CR2 on alignment faults
Don't pass CR2 address on alignment faults. They report the address of the
last page fault, which is a information leak.
Fix this for i386 and x86-64 by passing 0 instead.
Pointed out by Zachary Amsden <zach@vmware.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: turn tss into per cpu data
Turn per cpu TSS into per cpu data.
Signed-off-by: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ak@muc.de>
[PATCH] x86-64: copy ioperm bitmaps more efficiently at context switch
Copy ioperm bitmaps more efficiently at context switch time. Only copy
upto the highest used port.
Originally from Ingo Molnar
Signed-off-by: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<saw@saw.sw.com.sg>
[PATCH] fix for fsync ignoring writing errors
Currently metadata writing errors are ignored and not returned from
sys_fsync on ext2 and ext3 filesystems. That is, at least ext2 and ext3.
Both ext2 and ext3 resort to sync_inode() in their ->sync_inode method,
which in turn calls ->write_inode. ->write_inode method has void type, and
any IO errors happening inside are lost.
Make ->write_inode return the error code?
Signed-off-by: Andrey Savochkin <saw@saw.sw.com.sg>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<alan@redhat.com>
[PATCH] serial-cs and unusable port size ranges
A couple of GSM GPRS PCMCIA cards advertise 16 rather than 8 port sized
windows for their serial interface. This breaks our current pcmcia serial
driver which ignores any windows that are not 8 bytes.
To avoid any regressions on other cards given this driver contains a
certain amount of "magic" the patch below looks for 8 byte windows first so
will not break existing supported cards (I hope ;))
Patch-by: Alan Cox <alan@redhat.com>
OSDL Developer Certiticate Of Origin included herein by reference
Acked by Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r architecture
Add support for the m32r architecture
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update for profiling
This patch is for profiling support.
profile_tick() is used instead of m32r_do_profile().
* arch/m32r/kernel/smp.c
(smp_local_timer_interrupt): Change profile API, use profile_tick()
instead of m32r_do_profile().
* arch/m32r/kernel/time.c: ditto.
* include/asm-m32r/hw_irq.h (m32r_do_profile): Removed.
* include/asm-m32r/ptrace.h (profile_pc): Add profile_pc() macro.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update zone_sizes_init()
This patch upgrades zone_sizes_init() function.
This patch is required because free_area_init_node()'s interface
has been changed.
* arch/m32r/mm/discontig.c (zone_sizes_init):
Change free_area_init_node() interface.
* arch/m32r/mm/init.c: ditto.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update to fix compile errors
This patch updates code to fix compile errors, and so on.
* arch/m32r/kernel/Makefile:
Change linker script's name from vmlinux.lds.s to vmlinux.lds.
* arch/m32r/kernel/process.c (sys_clone):
Fix the first parameter of do_fork() call.
* arch/m32r/kernel/signal.c:
(handle_signal): Add a new second argument, struct k_sigaction *ka.
(do_signal): Change get_signal_to_deliver() interface.
* include/asm-m32r/hardirq.h:
Some declarations are moved to linux/hardirq.h.
* include/asm-m32r/page.h:
Add devmem_is_allowed() macro.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update uaccess.h
This patch updates asm-m32r/uaccess.h.
* include/asm-m32r/uaccess.h:
(__copy_to_user_inatomic): Added.
(__copy_from_user_inatomic): Added.
Update comments.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update checksum functions
This patch update checksum routines.
And EXPORT_SYMBOL() is moved from m32r_ksyms.c to csum_partial_copy.c.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update CF/PCMCIA drivers
This patch updates m32r-specific CF/PCMCIA drivers and
fixes compile errors.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: update headers to remove useless iBCS2 support code
Here's a patch to update headers, elf.h and poll.h, to remove useless
iBCS2/SVR4 support code for m32r.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] atomic_inc_return for m32r
* include/asm-m32r/atomic.h:
- Add atomic_inc_return(), atomic_dec_return(), atomic_add_return(),
atomic_sub_return() and atomic_clear_mask().
- Change atomic_sub_and_test(), atomic_inc_and_test() and
atomic_dec_and_test() from functions to macros.
- Update comments, etc.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: change from EXPORT_SYMBOL_NOVERS to EXPORT_SYMBOL
arch/m32r/kernel/m32r_ksyms, EXPORT_SYMBOL_NOVERS is deprecated, use
EXPORT_SYMBOL.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: modify sys_ipc() to remove useless iBCS2 support code
The useless iBCS2 supporting code is removed.
However, according to old_ syscalls, I would like to keep backward-
compatibility for a while, due to some old deb packages and
executables for m32r.
I'm struggling to rebuild and replace old packages to new ones.
http://debian.linux-m32r.org/
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata.hirokazu@renesas.com>
[PATCH] m32r: add ELF machine code
Here is a patch for m32r's ELF machine code. And also change from "Hitachi
H8/300" to "Renesas H8/300"(*).
(*) The SuperH, M32R and H8* - now these are all Renesas's products.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: upgrade to 2.6.8.1 kernel
Here is a patch for 2.6.8.1 kernel of Renesas M32R processor.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: support a new bootloader "m32r-g00ff"
- Support new bootloader "m32r-g00ff". m32r-g00ff is newly written by
NIIBE Yutaka and is released under GPL.
http://www.gniibe.org/software/m32r-g00ff-20040729.tar.gz
- arch/m32r/kernel/setup.c (parse_mem_cmdline): Fix to remove unused
region at the end of memory.
- include/asm-m32r/uaccess.h (__put_user_u64): Fix to remove warnings in
compilation time.
NOTE: (for m32r users)
From this version, the bootloader-kernel interface has changed.
- Section order is changed and rearranged for the new bootloader.
- Kernel's entry address is also changed : 0x08001000 --> 0x08002000.
- Paramter-passing method from bootloader to kernel is revised.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: modify IO routines for m32700ut CF access
Here is a patch for M3T-M32700UT board.
- Enable CF access through card-service if CONFIG_M32R_CFC is not defined.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: remove network drivers
Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: modify drivers/net/smc91x.c for m32r
This patch updates drivers/net/smc91x.c and merges m32r support to it.
- Add m32r support.
- Modify for SMP kernel.
Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: modify drivers/net/ne.c for m32r
This patch updates drivers/net/ne.c and merges m32r support to it.
- Add m32r support.
Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: slim arch/m32r/Kconfig
Here is a patch to slim arch/m32r/Kconfig. Useless CONFIG_ options are
removed for m32r.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata.hirokazu@renesas.com>
[PATCH] m32r: upgrade include/asm-m32r/atomic.h
Upgrade include/asm-m32r/atomic.h.
* include/asm-m32r/atomic.h
- Change atomic_add(), atomic_sub(), atomic_inc() and atomic_dec() from
function to macro.
- Change not to use fixed woking register in atomic_clear_mask() and
atomic_set_mask().
- Update comments: "return" to "return it", and so on.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: fix to build SMP kernel
Here is a patch to fix compile errors to build SMP kernel for m32r.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<clameter@sgi.com>
[PATCH] device driver for the SGI system clock, mmtimer
SGI has been using this driver under Linux since 2001 but it was
never included in the upstream kernel. SuSE did include the patch for mmtimer
in SLES 9. The driver has been widely used for applications on the Altix
platform.
The timer hardware was designed around the multimedia timer specification by
Intel but to my knowledge only SGI has implemented that standard. The driver
was written by Jesse Barnes.
The second revision has interrupt support removed and was somewhat simplified
by removing one include file.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<zwane@linuxpower.ca>
[PATCH] Close race with preempt and modular pm_idle callbacks
The following patch from Shaohua Li fixes a race with preempt enabled when
a module containing a pm_idle callback is unloaded. Cached values in local
variables need to be protected as RCU critical sections so that the
synchronize_kernel() call in the unload path waits for all processors.
There original bugzilla entry can be found at
Shaohua, i had to make a small change (variable declaration after code in
code block) so that it compiles with geriatric compilers such as the ones
Andrew is attached to ;)
http://bugzilla.kernel.org/show_bug.cgi?id=1716
Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Zwane Mwaikambo <zwane@linuxpower.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<paulmck@us.ibm.com>
[PATCH] Updates to RCU documentation
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jbarnes@engr.sgi.com>
[PATCH] fix sysrq handling bug in sn_console.c
Fix a stupid bug in the sysrq handling in sn_console.c. Instead of eating
all characters in the sysrq string (preventing them from getting to the tty
layer), only eat those following 'ESC' since that's a pretty important
character for various things. Please apply before 2.6.9 is released as the
console is very unfriendly to use without it.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: update handle_IRQ_event
A small update to make UML's handle_IRQ_event look like the i386 version.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: finish conversion to sigjmp_buf/siglongjmp
UML needs to use siglongjmp instead of longjmp everywhere. This patch fixes
the remaining longjmp/jmp_buf occurrences.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: finish the signals across a reboot fix
Due to me not refreshing this patch earlier, the last reboot signals patch was
missing the actual fix.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: fix a signal race
This patch saves and restores UML's idea of user mode across an interrupt.
Without this, an interrupt arriving at the wrong time can cause UML to lose
track of whether an interrupted handler is handing a userspace interrupt.
From: Ingo Molnar
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: enable the timer *after* the timer handler
Otherwise, we'll sometimes get timer interrupts that we can't handle.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: convert the real-time clock to gettimeofday from rdtsc
There are a whole bunch of reasons to use gettimeofday rather than rdtsc,
so this patch does just that.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: cleaning up
This patch is a whole lot of "obviously won't break anything" changes,
including
renaming the UML console functions more consistently
notes to myself
code movement
making some functions static
error path cleanup
printk fixes
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: let page faults always be delivered immediately
This allows page faults to be delivered when they happen. Without this, it
can happen that a page fault will occur when SIGSEGV is disabled, and the
host will then just kill UML because it can't invoke the handler.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: eliminate signal order delivery dependency
On 2.4 hosts signals are delivered in numeric order when there are multiple
pending at a given time. UML developed a subtle dependency on this
ordering, which broke on 2.6 hosts and the separate process and thread
signal queues.
This patch eliminates that dependency.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: iomem fix
This patch rounds up the size of a file used for iomem emulation up to the
nearest page. This makes mmap work much better on the last page of the
file.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: fix call to sys_clone
This patch changes the calling convention of clone on i386 to match that of
the host by leaving the fourth argument unused.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: copy_user fixes
This patch fixes some copy_user bugs:
- kernelspace page faults that happen on behalf of a process are now
correctly handled
- add copy_user treatment so a fault handler which looks at the faulting
instruction
- added a note to do the same with the ldt stuff some day
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: comment UML's signal handling
This adds a couple of comments so that people don't get confused into making
misguided fixes, and I don't get confused into applying them.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: export memmove
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: restrict tlb flushing
One of UML's tlb flushing routines was ignoring the address range passed in by
its callers. This patch fixes that.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: clean up terminal state handling
This patch cleans up UML's handling of terminal state with better error
handling, interface cleanup, and some code tidying.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: get rid of the arch EXTRAVERSION
I thought this was gone already. It was only intended for my own patch
numbering, and never intended for any other trees.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: more EINTR protection
This adds retrying on EINTR to a couple more places.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: mconsole fixes and cleanups
This patch
makes a couple of functions static
tidies code a bit
sends a response on shutdown before the shutdown happens
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: network driver fixes
This is from Gerd Knorr. It fixes a network hang caused by the host side of
an interface being full when the UML interface is brought up, preventing any
SIGIOs from happening. It also implements an ioctl needed for ethtool.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: remove useless ioctls
The UML block driver had some useless ioctls in it somehow. This gets rid of
them.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: code cleanup
Here's another batch of "obviously harmless" changes:
comments
unsigned long -> __u32 changes for some data that needs to be 32 bits
cleanups
removal of an unused declaration
rearrangement of includes
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: update defconfig
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<killekulla@rdrz.de>
[PATCH] ide: remove obsolete CONFIG_BLK_DEV_ADMA
In drivers/ide/Kconfig there's a hidden config-item named BLK_DEV_ADMA.
Nowhere in the sources are any references to this item, so this option
simply is obsolete.
This patch removes the according item from drivers/ide/Kconfig.
Signed-off-by: Raphael Zimmerer <killekulla@rdrz.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yuasa@hh.iij4u.or.jp>
[PATCH] mips: fixed do_signal in arch/mips/kernel/signal.c
The change of get_signal_to_deliver() is followed.
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<clameter@sgi.com>
[PATCH] time interpolators logic fix
Report the resolution of the time source correctly for time interpolators
with a frequency over 1 Ghz.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dsaxena@plexity.net>
[PATCH] Document ARM pci=firmware option
Added a new pci= command line option specific to ARM systems in
-rc2 and it should be added to kernel-parameters.txt.
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dsaxena@plexity.net>
[PATCH] Update IXP4xx MTD driver from CVS MTD
The following patch updates the IXP4xx MTD driver with a compile fix from
the CVS repository. David has given me the OK to push this upstream.
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dsaxena@plexity.net>
[PATCH] Add MTD map driver for Intel IXP2000 NPU
The following patch adds the MTD map driver for Intel's IXP2000 NPU. The
driver is already in MTD CVS and I've gotten the OK from David to push it
upstream.
Missing Kconfig bits from Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<akpm@osdl.org>
[PATCH] bio_alloc() cleanup
de-spaghettify this function.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mingo@elte.hu>
[PATCH] tune vmalloc size
There are a few devices that use lots of ioremap space. vmalloc space is a
showstopper problem for them.
this patch adds the vmalloc=<size> boot parameter to override
__VMALLOC_RESERVE. The default is 128mb right now - e.g. vmalloc=256m
doubles the size.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjanv@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<holt@sgi.com>
[PATCH] Fix write() return values for tmpfs.
This patch makes the return from the write() syscall actually an ssize_t
instead of an int.
Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<holt@sgi.com>
[PATCH] Fix write() return values for reiserfs.
This patch fixes the direct I/O return value for reiserfs writes to be
ssize_t instead of int.
Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<akpm@osdl.org>
[PATCH] remove sh64 smplock.h
It is unused and obsolete.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<wli@holomorphy.com>
[PATCH] sparc32: vmalloc address fix
Resolves the framebuffer errors on some older sparc32s (we triggered it on
a SparcStation 2).
Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Tom 'spot' Callaway <tcallawa@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
remove i2o_core.c
It is unused and obsolete.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rmk@flint.arm.linux.org.uk>
[ARM] i8042 is available on many footbridge hosts, not just ARCH_EBSA285
<trond.myklebust@fys.uio.no>
[PATCH] __iomem fixups for atiixp soundcards
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
ppc64: Need to define HPAGE_SHIFT even when HUGETLB_PAGE not configured.
Required for the recent removal of LARGE_PAGE_SHIFT.
<torvalds@ppc970.osdl.org>
Do __iomem annotations on VGA state handling
<torvalds@ppc970.osdl.org>
sym53c8xx_2: remove unnecessary IO pointer casts
They just meant that the __iomem annotation couldn't shine
through.
<torvalds@ppc970.osdl.org>
fb: add __iomem annotations to cfbcopyarea
<torvalds@ppc970.osdl.org>
fb: add __iomem annotations to cfbfillrect
<davem@nuts.davemloft.net>
[XFRM] make xfrm_lookup() fully af-independent.
Simplified from 2 patches by Hideaki YOSHIFUJI
<yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Fix BUG triggered in fib_sync_down()
If you modload then unload a network device,
without creating any ipv4 routes, it is possible
for the laddr hash to be not allocated yet
in fib_semantics.
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV4]: Size fib_info_devhash[] correctly.
There is a thinko in the allocation for the devindex hash. We're
only giving it 8 elements when it should be 1<<8 elements.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<rmk@flint.arm.linux.org.uk>
[MMC] Use raw CID rather than decoded CID
Save the raw CID information, and use this to match cards
with their corresponding mmc_card structure. Different
protocol revisions have different CID formats.
<rmk@flint.arm.linux.org.uk>
[MMC] Save MMC card raw CSD structure.
<rmk@flint.arm.linux.org.uk>
[MMC] Export raw MMC card CID and CSD registers via device model.
<rmk@flint.arm.linux.org.uk>
[MMC] Clean up MMC card CID/CSD decoding, stage 1.
Now that the raw CSD and CID information are available in mmc_card,
there's little point not passing the mmc_card structure into the
decode functions themselves.
This will be necessary, since there's several different formats of
CID decode, and the format appears to depend on data in the CSD.
If we are unable to decode the CID or CSD, we can mark the card bad
and refuse to bind it to any drivers. Users can then retrieve the
raw undecoded CID and CSD from sysfs for debugging purposes.
<nickpiggin@yahoo.com.au>
[PATCH] fix missing unlock_page in mm/rmap.c
A required unlock_page will be missed in a very rare (but possible) race
condition. Acked by Hugh, who says:
It'll be hard to hit because of the additional page_mapped test above,
with truncate unmapping ptes from mms before it advances to removing
pages from cache; but nothing to prevent it happening.
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rmk@flint.arm.linux.org.uk>
[MMC] Add v2.x and v3.x CID parsing.
<torvalds@ppc970.osdl.org>
usb: add host controller __iomem annotations
<rmk@flint.arm.linux.org.uk>
[MMC] Fix suspend/resume buglet.
Block wants the queue spinlock and interrupts disabled for
blk_stop_queue() and blk_start_queue().
<acme@conectiva.com.br>
[NET] Calculate ipv6_pinfo offset from struct proto->slab_obj_size
With a new rule for the struct sock hierarchy descendants layout,
that states that the struct ipv6_pinfo member should be last one
in the struct layout (see tcp6_sock, udp6_sock, sctp6_sock, etc),
we can calculate the ipv6_pinfo member offset by using
struct proto->slab_obj_size.
So ditch struct ipv6_sk_offset and struct proto->af_specific.
Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: David S. Miller <davem@redhat.com>
<rmk@flint.arm.linux.org.uk>
[MMC] Fix mmc_block suspend/resume handling (again).
The previous change is not the whole story - the mmc queue
thread may be handling a request. We must wait for outstanding
requests to complete before allowing the suspend to proceed,
otherwise we may suffer loss of data.
<rmk@flint.arm.linux.org.uk>
[MMC] Ensure PXA MMC interrupts are disabled on chip.
<airlied@starflyer.(none)>
drm: complete fix for drm_scatter.h
Another issue from the macro conversion.
Signed-off-by: Dave Airlie <airlied@linux.ie>
<airlied@starflyer.(none)>
drm: drop __HAVE_COUNTER macros
This removes all the __HAVE_COUNTER macro and replaces them with
the driver setting the values in its register_fns.
Signed-off-by: Dave Airlie <airlied@linux.ie>
<rmk@flint.arm.linux.org.uk>
[ARM] Prevent state machine leakage in ARM APM emulation.
Don't allow threads which are acking a suspend request to leave
the APM ioctl call. This prevents the state machine breaking.
<romieu@fr.zoreil.com>
[PATCH] r8169: default on disabling PCIDAC
Default to disabling PCI DAC as this option appears unsafe on amd64
(original suggestion by Hans-Frieder Vogt <hfvogt@arcor.de>).
The driver will typically report PCI System error when something goes
wrong. The relevant interrupt is not masked any more and the driver
can thus be disabled.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
<achirica@telefonica.net>
[PATCH] Compatibility fixes for different card versions
<rmk@flint.arm.linux.org.uk>
[MMC] PXAMCI: enable use of platform specific data.
This allows platforms to hook in their card detection, power control
and power availability information.
<rmk@flint.arm.linux.org.uk>
[MMC] Ensure semaphores are initialised before use. Gah.
<davem@nuts.davemloft.net>
[SPARC64]: Improve kernel stack backtraces.
In particular, handle init_task backtraces.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Fix memset() in sunsu.c and sunzilog.c
sizeof(ptr) --> sizeof(*ptr)
Signed-off-by: David S. Miller <davem@davemloft.net>
<rth@kanga.twiddle.home>
[ALPHA] Fix some compiler warnings from gcc 4.
<rth@kanga.twiddle.home>
Correct prototypes for sys_wait4 and sys_waitpid.
<rth@kanga.twiddle.home>
[ALPHA] Add compile-time assert concerning rt_sigframe layout.
<rth@kanga.twiddle.home>
[ALPHA] Fix signed one bit fields.
<rth@kanga.twiddle.home>
[ALPHA] Add __user as necessary to fix sparse warnings.
<aia21@cantab.net>
NTFS: Rename {find,lookup}_attr() to ntfs_attr_{find,lookup}() as well as
find_external_attr() to ntfs_external_attr_find() to cleanup the
namespace a bit and to be more consistent with libntfs.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: Rename {{re,}init,get,put}_attr_search_ctx() to
ntfs_attr_{{re,}init,get,put}_search_ctx() as well as the type
attr_search_context to ntfs_attr_search_ctx.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<benh@kernel.crashing.org>
[PATCH] ppc64: Fix __raw_* IO accessors
Linus removed the "volatile" statement from the definition of the
__raw_* IO accessors on ppc64, which cause some real bad optisations to
happen in some fbdev's like matroxfb to happen (just imagine that
matroxfb loops reading an IO register waiting for a bit to change).
The __raw_xxxx() functions still want ordered accesses (they avoid the
byteswap, though)
Signed-off-by: Benjamin Herrenschmidt <benh@kenrel.crashing.org>
<rusty@au1.ibm.com>
[PATCH] Another ip_conntrack seq fix: ip_conntrack_expect
/proc/net/ip_conntrack_expect was changed over to seq_file, but a \n
is missing.
<rusty@au1.ibm.com>
[PATCH] Warn that ipchains and ipfwadm are going away
At the recent netfilter workshop in Erlangen, we was decided to remove
the backwards compatibility code for ipchains and ipfwadm. This will
allow significant cleanup of interfaces, since we had to have a
mid-level interface for the backwards compatibility layer to use.
Start off with a warning for 2.6.9, so any remaining users have a chance
to migrate. Their firewall scripts might not check return values, and
they might get a nasty surprise when this goes away.
<roland@redhat.com>
[PATCH] x86-64: waitid fallout
This patch updates the x86-64's compat code to handle the new argument
to waitid.
Sorry for the oversight.
<acme@conectiva.com.br>
[SOCK] remove sk_pair, only really used by AF_UNIX
Added ->peer to struct unix_sock
Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: David S. Miller <davem@redhat.com>
<kevin.tian@intel.com>
[IA64] ia32compat: Put signal restorer code on a gate page
When userland doesn't specify sigaction->sa_restorer, we try to put
the restorer code on the stack. But this breaks ia32 binaries with
non-executable stacks. We now put the restorer code on a gate page.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<gordon.jin@intel.com>
[IA64] ia32compat: Disable syscalls sys32_iopl() and sys32_ioperm() on ia64.
Disable syscalls sys32_iopl() and sys32_ioperm() on ia64.
To emulate these 2 syscalls correctly, we need to guarantee uncached
memory attributes on ia64, which is difficult. The only user of this
interface that we know of is X. So we think it's better to disable it.
Signed-off-by: Gordon Jin <gordon.jin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<jbarnes@sgi.com>
[IA64] sn2_defconfig update take 2
Please apply this one instead. It turns on mmtimer and increases the number
of sg entries for the LSI driver.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<davem@nuts.davemloft.net>
[IPV4]: Clean up fib_hash.c list handling.
1) Use linux/list.h facilities instead of by-hand
list implementation.
2) Use fib_alias structure, hung off of fib_node,
to represent routes which all have the same
destination prefix, yet have different TOS and
priority values.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Zap CONFIG_IP_ROUTE_TOS
These facilities are now available by default.
The config option makes no sense because:
1) It makes no change to the layout of any
data structure, therefore it has no impact
upon memory usage of the routing tables.
2) It makes no significant change to code size,
only a handfull of lookup comparisons are
protected by the option.
3) It is needed for full RFC1812 compliance anyways.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Update compat code for sys_waitid changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
<aia21@cantab.net>
NTFS: - Fix endianness bug in ntfs_external_attr_find().
- Change ntfs_{external_,}attr_find() to return 0 on success, -ENOENT
if the attribute is not found, and -EIO on real error. In the case
of -ENOENT, the search context is updated to describe the attribute
before which the attribute being searched for would need to be
inserted if such an action were to be desired and in the case of
ntfs_external_attr_find() the search context is also updated to
indicate the attribute list entry before which the attribute list
entry of the attribute being searched for would need to be inserted
if such an action were to be desired. Also make ntfs_find_attr()
static and remove its prototype from attrib.h as it is not used
anywhere other than attrib.c. Update ntfs_attr_lookup() and all
callers of ntfs_{external,}attr_{find,lookup}() for the new return
values.
- Force use of ntfs_attr_find() in ntfs_attr_lookup() when searching
for the attribute list attribute itself.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<chas@cmd.nrl.navy.mil>
[ATM]: [drivers] fix warnings related to readl/writel changes
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[ATM]: Use __iomem where appropriate.
Signed-off-by: David S. Miller <davem@davemloft.net>
<chas@cmf.nrl.navy.mil>
[ATM]: [drivers] Use msleep() instead of schedule_timeout()
From Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<chas@cmf.nrl.navy.mil>
[ATM]: [he] Make code more readable with list_for_each_entry
From Domen Puncer <domen@coderock.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<rth@kanga.twiddle.home>
[ALPHA] Update readb and friends for __iomem.
<rth@kanga.twiddle.home>
[ALPHA] Map readb_relaxed to __raw_readb, not plain readb.
<davem@nuts.davemloft.net>
[IPV4]: Fix list traversal in fn_hash_insert().
Could create an endless loop during route
replace operations.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Add ethtool support to loopback driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV4]: Fix some stray IP_ROUTE_TOS references.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<tgraf@suug.ch>
[NET]: Fix ifmap alignment issues over rtnetlink
Introduces a fixed size variant of ifmap for rtnetlink. Fixes
issues with address size mismatch between kernel and userspace.
Obviously this will fail if userspace provides an address greater
than 32bit.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
SIgned-off-by: David S. Miller <davem@davemloft.net>
<yoshfuji@linux-ipv6.org>
[NET]: Fix non-existent reference to tulip.txt
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
Cset exclude: pablo@eurodev.net|ChangeSet|20040828001121|29246
<viro@www.linux.org.uk>
[PATCH] cifs: annotate NEGOTIATE_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate DELETE_FILE_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate DELETE_DIRECTORY_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate CREATE_DIRECTORY_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate OPEN_{REQ,RESP}, endianness bugfix
in assignment to OPEN_REQ ->SecurityFlags we did u8 = cpu_to_le32(v8), which
breaks on big-endian.
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate READ_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate WRITE_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate LOCK_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate RENAME_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_SFI_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate COPY_{REQ,RESP}, minor endianness bugfix
missing le16_to_cpu() in debugging printk
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_SPI_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate NT_RENAME_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_QPI_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACT_IOCTL_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_FFIRST_{REQ,RESP}, typo fix in CIFSSMBFindSingle()
in CIFSSMBFindSingle() pSMB->TotalParameterCount got wrong value due to typo.
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_FNEXT_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_GET_DFS_REFER_{REQ,RESP}, minor endianness bugfix
missing le..._to_cpu() in debugging printk
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACTION2_QFSI_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate file_..._info
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TRANSACT_CHANGE_NOTIFY_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate fea{,list}, endianness bugfix
in CIFSSMSetEA() ->list_len got (__u32)cpu_to_le16() instead of cpu_to_le32().
Broken on big-endian...
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate stat-related structures
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate FILE_DIRECTORY_INFO, clean up cifs_readdir()
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate FILE_SYSTEM_DEVICE_INFO
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate FILE_SYSTEM_ATTRIBUTE_INFO
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate T2_F{FIRST,NEXT|_RSP_PARMS
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate smb_hdr
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate TCONX_{REQ,RESP}
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: annotate SESSION_SETUP_ANX
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: assorted endianness bugfixes
a) Flags2 left little-endian. SMBFLG2_... definitions switched to
cpu_to_le16(...), which kills the need of conversions in ->Flags2.
b) FILE_SYSTEM_UNIX_INFO (never used anywhere) is left little-endian;
when users appear, they can convert themselves.
c) bugfix: in CIFSSessSetup() we used SecurityBlobLength of response
without conversion. That would screw bigendian clients with servers that
give wcnt=4.
d) bugfix: in CIFSNTLMSSPNegotiateSessSetup() we use
SecurityBlob2->NegotiateFlags without conversion. Again, problem on
big-endian.
e) bugfix: SecurityBlob->MessageType is *not* host-endian.
f) bugfix: ->sendmsg() expects its last argument to be equal to sum
of iovec lengths, so the value passed to kernel_sendmsg()/sock_sendmsg()
would better be correct...
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] cifs: IPv4-related endianness annotations and bugfixes
missing htons() in assigning .sin_port for reconnect
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<aia21@cantab.net>
NTFS: 2.1.18 release
- Minor cleanup of fs/ntfs/inode.c::ntfs_init_locked_inode().
- Bump version number and update Documentation/filesystems/ntfs.txt
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: - Remove BKL use from ntfs_setattr() syncing up with the rest of the
kernel.
- Update ->setattr (fs/ntfs/inode.c::ntfs_setattr()) to refuse to
change the uid, gid, and mode of an inode as we do not support NTFS
ACLs yet.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<axboe@suse.de>
[PATCH] bio_unmap_user(): original bio passed in
With the recent bio mapping changes, the caller must pass in the
original bio for unmapping again (and they do). So kill this dead code,
it could cause problems in situations where someone has used bi_private
for something else.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] sysvfs endianness annotations and bugfixes
missing fs32_to_cpu() for on-disk ->s_type.
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] ext3 endianness annotations and bugfixes
* missing le32_to_cpu() in a bunch of printks
* on big-endian boxen ext3_error() failed to set EXT3_ERROR_FS in
->s_state (cpu_to_le32() instead of cpu_to_le16())
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] fat endianness annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] efs endianness annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] jbd endianness annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] afs endianness annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] rxrpc endianness annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] net2280 iomem annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] applicom iomem annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@www.linux.org.uk>
[PATCH] drivers/input annotations
* vortex.c: trivial __iomem annotations
* serio_raw.c and tsdev.c: equally trivial __user ones.
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<roland@topspin.com>
[PATCH] ppc64: remove pSeries IO token translations
Get rid of IO_TOKEN_TO_ADDR() and IO_ADDR_TO_TOKEN() for pSeries EEH;
the conversion to tokens is not needed now that we have __iomem
annotations to prevent drivers from dereferencing IO addresses.
The IO tokens meant that the __raw_ IO accesses wouldn't have worked,
and removing the debugging vestiges simplifies the code noticeably.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<bzolnier@trik.(none)>
[ide] hpt34x: remove dead /proc/ide/hpt34x code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
<bzolnier@trik.(none)>
[ide] remove ide_hwif_t->sg_dma_active
It is always equal to zero.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
<aia21@cantab.net>
NTFS: Get rid of the ugly transparent union in fs/ntfs/dir.c::ntfs_readdir()
and ntfs_filldir() as per suggestion from Al Viro.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: Improve the previous transparent union removal.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<kihara.seiji@lab.ntt.co.jp>
[PATCH] ext3: journalled data fsync fix
This optimisation data=journal isn't working right, because journalled-data
pages are not marked dirty when they are dirty against the journal. Hence
I_DIRTY_PAGES doesn't get set hence we can fail to sync the file under some
circumstances.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jbarnes@engr.sgi.com>
[PATCH] mmtimer cleanups
A few cleanups that probably should have been done a long time ago:
o remove test program from mmtimer.h
o move name, desc., etc. #defines from mmtimer.h to mmtimer.c
o document what mmtimer.c is a little better
o some whitespace cleanups for linewrapping and such
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<shaohua.li@intel.com>
[PATCH] idr: fix missing spin_unlock()
Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<kraxel@bytesex.org>
[PATCH] bttv bugfix
This fixes a initialization order bug in bttv, also known as "dark red
image bug".
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<adaplas@hotpop.com>
[PATCH] fbdev: Fix userland compile breakage
From: Michal Januszewski <spock@gentoo.org>
"The latest changes introduced to the fb structs in linux/fb.h make
compilation of userspace programs break with:
include/linux/fb.h:305: error: field `modelist' has incomplete type
This is caused by struct list_head not being seen from userspace."
This patch removes struct list_head modelist from struct fb_monspecs and
moves it to struct fb_info instead, and for now, enclosed struct
fb_monspecs by #ifdef __KERNEL__/#endif.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<adaplas@hotpop.com>
[PATCH] fbcon: fix fbcon's setup routine
Fix fbcon's setup routine so usage is consistent with previous kernels.
Ie: video=ofonly and video=xxxfb:off should work.
This is done by fb_get_options() returning a nonzero value if:
- 'off' option is present
- 'ofonly' is present but driver name is not 'offb'
All drivers will not proceed with their initialization if return value is
nonzero.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<adaplas@hotpop.com>
[PATCH] fbdev: Initialize i810fb after agpgart
This patch places 'video/i810/' after 'char/' in drivers/Makefile. This order
change makes it unnecessary for i810fb to explicitly call agp_intel_init().
This is untested, as I don't have any i810 hardware anymore, but I believe it
will work. If it does, the ugly 'early initialization hack' in
drivers/char/agp/intel-agp.c:agp_intel_init() can be removed (haven't done it
yet).
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<adaplas@hotpop.com>
[PATCH] fbdev: Arrange driver order in Makefile
This patch arranges driver order in 'driver/video/Makefile' so it closely,
but not exactly, follows the previous order in 'drivers/video/fbmem.c'.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<afleming@freescale.com>
[PATCH] ppc32: 85xx spurious interrupt bug
The Spurious interrupt assignment for OpenPIC was the constant,
OPENPIC_VEC_SPURIOUS plus the offset passed in. Due to bugs in some
OpenPICs, the end value needed to be 255 on those systems. However, the
constant was then chosen to be 239, because offset on most systems is 16.
The 85xx has an offset of 64, however, and so this assignment caused
lock-ups during boot. The proposed solution is to declare
OPENPIC_VEC_SPURIOUS to be 255, and use that value directly, instead of
adding the offset to it.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<nacc@us.ibm.com>
[PATCH] macintosh/macserial: replace schedule_timeout() with msleep_interruptible()
Use msleep_interruptible() instead of schedule_timeout() to guarantee the
task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<nacc@us.ibm.com>
[PATCH] macintosh/therm_windtunnel: replace schedule_timeout() with msleep_interruptible()
Use msleep_interruptible() instead of schedule_timeout() to guarantee the
task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anton@samba.org>
[PATCH] ppc64: User tasks must have a valid thread.regs
There have been reports of problems running UP ppc64 kernels where the
kernel would die in the floating point save/restore code.
It turns out kernel threads that call exec (and so become user tasks) do
not have a valid thread.regs. This means init (pid 1) does not, it also
means anything called out of exec_usermodehelper does not. Once that task
has forked (eg init), then the thread.regs in the new task is correctly
set.
On UP do lazy save/restore of floating point regs. The SLES9 init is doing
floating point (the debian version of init appears not to). The lack of
thread.regs in init combined with the fact that it does floating point
leads to our lazy FP save/restore code blowing up.
There were other places where this problem exhibited itself in weird and
interesting ways. If a task being exec'ed out of a kernel thread used more
than 1MB of stack, it would be terminated due to the checks in
arch/ppc64/mm/fault.c (looking for a valid thread.regs when extending the
stack). We had a test case using the tux webserver that was failing due to
this.
Since we zero all registers in ELF_PLAT_INIT, I removed the extra memset
in start_thread32.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<sfr@canb.auug.org.au>
[PATCH] ppc64 iSeries: allow ibmvscsic to initialise
This patch supplies an device so that ibmvscsic will actually have its
probe routine called and so allow ti to actually initialise on (legacy)
iSeries machines.
It also adds a device for the virtual console (for consistency only at the
moment).
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<anil.s.keshavamurthy@intel.com>
[PATCH] Online CPU with maxcpus option panics
I booted IA64 kernel with "maxcpus=" set to less than the total available
processors in the system. Then I tried to online the CPU which was offline
due to "maxcpus=" restirction. i.e when I tried to online the CPU which
never was online at boot crashed the system.
Signed-off-by: Anil Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dev@sw.ru>
[PATCH] Fix of race in writeback_inodes()
This patch fixes race in writeback_inodes() described below:
writeback_inodes()
{
....
sb->s_count++;
spin_unlock(&sb_lock);
....
spin_lock(&sb_lock);
if (__put_super(sb)) <<< X
goto restart;
}
}
deactivate_super()
{
fs->kill_sb(s);
kill_block_super(sb)
generic_shutdown_super(sb)
spin_lock(&sb_lock);
list_del(&sb->s_list); <<< Y
spin_unlock(&sb_lock);
....
put_super(s);
spin_lock(&sb_lock);
__put_super(sb); <<< Z
spin_unlock(&sb_lock);
}
The problem with it is that writeback_inodes() supposes that if
__put_super() returns 0 then no super block was deleted from the list and
we can safely traverse sb list further.
But as it is obvious from the deactivate_super() it's not actually true.
because at point Y we delete super block from the list and drop the lock.
We do __put_super() very much later... So we can find sb with poisoned
sb->s_list at point X and we won't be the last sb reference holders. The
last reference will be dropped in point Z.
So in case of the following sequence of execution Y -> X -> Z we'll get an
oops after point X in writeback_inodes().
This patch introduces __put_super_and_need_restart() function which allows
safe traversing of sb list. I'll send a couple of patches later which
remove O(n^2) algos and using this function.
Signed-Off-By: Kirill Korotaev <dev@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dev@sw.ru>
[PATCH] Rearrangement of inode_lock in writeback_inodes()
This patch reaaranges inode_lock taking in writeback_inodes(). It narrows
down use of inode_lock and removes unneccassary nesting of sb_lock and
inode_lock. Instead of holding inode_lock for all the time I moved it
around sync_sb_inodes() as it is in all other places.
Signed-Off-By: Kirill Korotaev <dev@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<ryan@spitfire.gotdns.org>
[PATCH] implement roundup_pow_two()
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jeffm@suse.com>
[PATCH] Fix for default ACL handling on ReiserFS
reiserfs_set_xattr() explicitly updates the ctime for the host inode.
This works for direct setfacl/setfattr calls, but for the more common case
of an inherited default ACL, it breaks. The ACL is inherited in the middle
of the new inode creation, before the inode has been hashed.
When mark_inode_dirty is called, one of the checks bails out if the inode
is unhashed -- but AFTER inode->i_state is updated, so the inode is marked
dirty but never placed on any dirty list.
Since the inode is never placed on a dirty list, __sync_single_inode from
the writeback_inodes() path can never be called on it to clear the dirty
flags. Once the inode is hashed and mark_inode_dirty is called for it
again, it's too late -- it will bail early assuming (correctly) that the
inode is already marked dirty. This ultimately results in I/O stalls that
can't be resolved by the fs path, only be the memory allocation path that
uses pages directly.
The attached patch makes the update of the ctime conditional on the inode
being hashed already.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<kaigai@ak.jp.nec.com>
[PATCH] list_replace_rcu() in include/linux/list.h
This attached patch adds list_replace_rcu() to include/linux/list.h for
atomic updating operations according to RCU-model.
void list_replace_rcu(struct list_head *old, struct list_head *new)
The 'old' element is detached from the linked list, and the 'new' element
is inserted to the same point of the linked list concurrently.
This patch is necessary for the performance improvement of SELinux.
See, http://lkml.org/lkml/2004/8/16/54
(Subject: RCU issue with SELinux)
http://lkml.org/lkml/2004/8/30/63
(Subject: [PATCH]SELinux performance improvement by RCU)
Signed-off-by: KaiGai, Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yuasa@hh.iij4u.or.jp>
[PATCH] mips: fixed vr41xx serial
UPF_RESOURCES isn't used now.
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yuasa@hh.iij4u.or.jp>
[PATCH] mips: fixed initialization error
This change had fixed initialization error in arch/mips/vr41xx/common/icu.c
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yuasa@hh.iij4u.or.jp>
[PATCH] mips: fixed undeclared giu_cascade
This change had fixed undeclared identifier in
arch/mips/vr41xx/common/giu.c
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jhe@us.ibm.com>
[PATCH] compat_sys_fcntl64: fix for locking near end of file
Here's a patch to fix a bug in compat_sys_fcntl64 in fs/compat.c. The bug
occurs with a 32 bit app that calls fcntl and checking for a lock near the
end of a file.
struct flock sflp;
sflp.l_start = 2147483345;
sflp.l_len = 302;
/* 2147483345 + 302 == 2147483647 (this should not overflow 31 bits) */
/* 2^31 == 2147483648 */
fcntl_stat = fcntl(fd, F_GETLK, &sflp);
The patch also contains a fix to handle l_len < 0 which is now defined in
POSIX 1003.1-2001 from the fcntl man page.
Signed-off-by: John Engel <jhe@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mikpe@csd.uu.se>
[PATCH] WANPIPE/SDLA driver gcc-3.4 fixes
This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.6.9-rc2 kernel's
WANPIPE/SDLA net drivers. This is a forward port of the fix I made for the
2.4 kernel.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<olh@suse.de>
[PATCH] fix make O= for ppc64/boot
make ARCH=ppc64 -j12 O=/dev/shm/R all fails, the linker script is not in
the output directory.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mikpe@csd.uu.se>
[PATCH] Specialix RIO driver gcc-3.4 fixes
This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.6.9-rc2 kernel's
Specialix RIO driver. This is a forward port of the fix I made for the 2.4
kernel.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yuasa@hh.iij4u.or.jp>
[PATCH] mips: fixed definition order of _sigchld
This change had fixed definition order of _sigchld about MIPS.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<vda@port.imtp.ilyichevsk.odessa.ua>
[PATCH] reduce stack consumption in load_elf_binary
Stack usage is reduced from 268 to 120 bytes on i386.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<juhl-lkml@dif.dk>
[PATCH] check copy_from_user return value in act2000_isa_download
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<schwidefsky@de.ibm.com>
[PATCH] s390: core changes
s390 core changes:
- Replace invoke_softirq mechanism with own version of do_softirq.
- Move /proc/inteerrupts functions to re-added arch/s390/kernel/irq.c
- Add some includes to avoid compiler warnings.
- Remove unused #defines.
- Regenerate default configuration.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<schwidefsky@de.ibm.com>
[PATCH] s390: dasd driver
From: Horst Hummel <horst.hummel@de.ibm.com>
dasd driver changes:
- Add control unit types 0x2107 and 0x1750.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<schwidefsky@de.ibm.com>
[PATCH] s390: qeth network driver
From: Steffen Thoss <thoss@de.ibm.com>
From: Ursula Braun-Krahl <braunu@de.ibm.com>
qeth network driver change:
- Change misleading message about hardware ip fragmentation.
- Include qeth_snmp_ureq_hdr structure in user copy in qeth_snmp_command.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torben.mathiasen@hp.com>
[PATCH] devices.txt update
- s/390 dasd moved to major 94.
- s/390 VM/ESA moved to major 95.
- INFTL moved to major 96.
- Patch also adds Marvell MPSC low-density device to Minor 44 & 45 (Major
204). This one was in my queue.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<werner@almesberger.net>
[PATCH] round log buffer size to power of two
If setting the printk log buffer (with the boot command line option
"log_buf_len") to a value that's not a power of two, the index calculations
go wrong and yield confusing results.
This patch rounds the size to the next higher power of two. It'll yield
garbage for sizes > INT_MAX bytes.
Signed-off-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<agk@redhat.com>
[PATCH] device-mapper: fix minor number check
Fix minor number allocation check: (1 << MINORBITS) is invalid.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<agk@redhat.com>
[PATCH] device-mapper: rename emit macro
Rename EMIT macro to DMEMIT and move to header file.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<agk@redhat.com>
[PATCH] device-mapper: mirror log sync optional
From: Heinz Mauelshagen <mauelshagen@redhat.com>
Make mirror log synchronization optional.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<linux@dominikbrodowski.de>
[PATCH] powernow-k7: fix latency calculation
fix ->cpuinfo.transition_latency for powernow-k7
Signed-off-by: Bruno Ducrot <ducrot@poupinou.org>
Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mingo@elte.hu>
[PATCH] fix diskstats_show() accounting with PREEMPT
There is another (minor) bug that the smp_processor_id() debugger
unearthed: diskstats_show() could do a disk_round_stats() ->
disk_stat_add() with preemption enabled - possibly resulting in losing
statistics updates.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<nico@cam.org>
[PATCH] update MAINTAINERS/CREDITS
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<nacc@us.ibm.com>
[PATCH] net/airport: replace schedule_timeout() with ssleep()/msleep()
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] pmac: don't add °C suffix in sys for adt746x driver
The adt746x driver currently adds a "°C" suffix to temperatures exposed via
sysfs, and I don't like that. First, we all agree that any other unit here
makes no sense (do we ? do we ? yes of course :) and I don't like having
anything but numbers in there, and finally it's more consistent with what
the g5 driver does.
And finally, the _REAL_ reason is that this is not a low ASCII character
and so has nothing to do in the kernel sources or in /sys :)
Unfortunately, generating a patch here is nasty because of that (my mailer
is rightfully complaining about the non-ASCII char on text import) so you
might have to apply by hand...
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rth@kanga.twiddle.home>
[ALPHA] Implement new ioread interface.
<aia21@cantab.net>
NTFS: Change '\0' and L'\0' to simply 0 as per advice from Linus Torvalds.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: - Update ->truncate (fs/ntfs/inode.c::ntfs_truncate()) to check if the
inode size has changed and to only output an error if so.
- Rename fs/ntfs/attrib.h::attribute_value_length() to ntfs_attr_size().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<bzolnier@trik.(none)>
[ide] amd74xx: don't probe for IRQs
From: Nicholas Reilly <nreilly@magma.ca>
I have a Shuttle SN41G2 and the secondary IDE channel alternates between
IRQ 15 (correct) and IRQ 7 (causing failures accessing the DVD+-RW which is
master, no slave and also messing with the parallel port if it is enabled)
on each boot. This is running ACPI and APIC on 2.6.5, 2.6.7 and 2.6.8.
dmesg, dmidecode and /proc/acpi/dsdt are all identical (apart from dmesg
printing of IRQ and errors it causes) regardless of whether it decides to
go on 7 or 15. It is now running the latest BIOS, earlier BIOS did the
same.
bart: IRQ auto-detection sometimes fails and gets "screaming" IRQ
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
<rmk@arm.linux.org.uk>
[PATCH] fix problematic flush_cache_page in kernel/ptrace.c
At present, flush_cache_page() is used to handle the case where we
unmap a page or alter the page permissions on the target page with
one exception - access_process_vm(). Based upon the former, the
decision to implement this function is:
do we need to flush the cache when we unmap or change
the mapping permissions?
However, kernel/ptrace.c: access_process_vm() also includes into this:
or we need to ensure cache coherency between the kernel
and user space mapping of this page.
I argue that the use of flush_cache_page() here in the generic
code is wrong, and if an architecture wishes to use it for this
purpose, it should do so within it's architecture private
implementation of copy_to_user_page() and copy_from_user_page().
So this patch removes the flush_cache_page() from kernel/ptrace.c,
adding it to the arch-specific copy_{to,from}_user_page() where
flush_cache_page is non-empty.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<bzolnier@trik.(none)>
[ide] make sure we are looking at the low bits post error
From: Brett Russ <russb@emc.com>
The following code needs to be added to ide_end_drive_cmd(),
since ide_error() calls ide_end_drive_cmd() after ide_dump_status()
has left the registers pointing at the high order part of the LBA.
Using the taskfile ioctl will then lead to hobRegister[] and
subsequently hob_ports[] being loaded with the wrong values.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
<herbert@gondor.apana.org.au>
[NETFILTER]: Fix comment typo in ip_nat_helper.
<herbert@gondor.apana.org.au>
[IPV4]: Check PAGE_SIZE in fz_hash_alloc
Here is a minor optimisation to fz_hash_alloc. The break-even point
should be based on PAGE_SIZE rather than the value of divisor.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
<herbert@gondor.apana.org.au>
[IPV4]: Kill remnant of ip_nat_dumb
This line in net/ipv4/Makefile was left behind when the rest of the
dumb NAT option was taken out.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<olh@suse.de>
[NET]: Remove leading space in linux/skbuff.h
Signed-off-by: David S. Miller <davem@davemloft.net>
<Robert.Olsson@data.slu.se>
[PKTGEN]: Update to 1.4
Stephen's patches. version change and hard_xmit printout removed.
And 2.7 is still a promise...
Signed-off-by: Robert Olsson <Robert.Olsson@data.slu.se>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@trash.net>
[XFRM]: Fix unbalanced spin_unlock_bh in __xfrm_find_acq_byseq
This patch fixes an unbalanced spin_unlock_bh in
__xfrm_find_acq_byseq left over from the larval
state SA fix.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<yoshfuji@linux-ipv6.org>
[ARCNET]: Fix crash in 2.6.8.1
> I am trying to upgrade my labtop to 2.6.8.1. I have ArcNet COM20020
> PCMCIA card. After editing /etc/pcmcia/config to make it know about the
> module, it finds the com20020 with no problems but as soon as I try to
> start the network device the ifconfig process crashes.
:
> I fixed it by changing
> lp->hw.open(dev);
> to
> if(lp->hw.open) {
> lp->hw.open(dev);
> }
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<chas@cmf.nrl.navy.mil>
[ATM]: [lanai] get sleep interval right
Signed-off-by: David S. Miller <davem@davemloft.net>
<chas@cmf.nrl.navy.mil>
[ATM]: [eni] fix __iomem related warnings
Signed-off-by: David S. Miller <davem@davemloft.net>
<chas@cmf.nrl.navy.mil>
[ATM]: [ambassador] remove warnings related to unused variables
Signed-off-by: David S. Miller <davem@davemloft.net>
<chas@cmf.nrl.navy.mil>
[ATM]: [fore200e] fix warnings related to dma_addr_t
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV4]: Fix endless loop in fn_hash_delete.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV4]: Fix thinko in fib_find_alias
fib_find_alias is meant to return either an exact match or the
entry just before where it should be. Currently it returns the
entry after that. This patch fixes that.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[IPV4]: Missing TOS checks after fib_find_alias
It looks like some of the places where FIB_SCAN_TOS macros were used
have lost the tos check. This patch adds them back.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<rusty@rustcorp.com.au>
[NETFILTER]: Don't try to do any random dropping since we now use jenkins hash
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<laforge@netfilter.org>
[NETFILTER]: add sysctl to read out the number of current connections
Apparently a lot of scripts use a construct like
cat /proc/net/ip_conntrack | wc -l
which has a negative impact on system performance due to all the locking
required.
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<rusty@rustcorp.com.au>
[NETFILTER]: Shuffle conntrack structure for better cacheline behavior
Every time we walk the conntrack hashtable list, we hit the same
cacheline that is dirtied by the use of the conntrack
entry. Shuffling these entries to the end should help this
(sizeof(struct ip_conntrack)) > cacheline size).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: kill struct ip_nat_hash, saves two pointers per conntrack
The back-pointer is not needed when using list.h macros.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: kill struct nf_ct_info, saves five pointers per conntrack
The relationship of the skb to the conntrack is stored in a new field
in the skb.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: Use u_int16_t for initialized/num_manips in struct ip_nat_info
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: Keep conntrack/nat protocols in array instead of linked list
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<gandalf@wlug.westbo.se>
[NETFILTER]: Cleanup ctstat
This patch simply adds a macro to increase the statistics.
And it changes icmp_error to error in struct ip_conntrack_stat in order
to adopt to the tcp-windowtracking changes.
Based on patch by Pablo Neira.
Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: Fix two broken assertions
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: Fix invalid return values in sctp_new
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: add comment match
2.4 version by Brad Fisher <brad@info-link.net>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Abstract neigh table walking.
This way no code actually needs to traverse the
neigh hash tables outside of net/core/neighbour.c
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Apply NEIGH_HASHMASK at tbl->hash() caller.
Now there is no reason for any neigh implementation
to know the value of {P,}NEIGH_HASHMASK
Signed-off-by: David S. Miller <davem@davemloft.net>
<benh@kernel.crashing.org>
[PATCH] ppc64: monster cleanup
This is the third & hopefully final version of the monster cleanup
patch. It does significant cleanups of the early boot code of the
ppc64 kernel, and begins the long process of cleaning up & splitting
properly the platform support.
It completely reworks the interface between the early code that is
run in the firmware context (prom_init) and the rest of the kernel,
in such a way that will make kexec or static device-tree for embedded
people possible. The early init code can eventually be moved to a
separate link entity, it no longer touches any of the kernel globals,
everything is passed via a single blob of data in memory containing
a flattened version of the device-tree and a memory reserve map.
While doing it, I also cut the ties between pSeries and Powermac. Now,
the kernel config provides a choice between legacy iSeries and
"multiplatform". The later is a set of various supported platform,
each of them beeing a boolean switch, currently defined beeing pSeries
and PowerMac. You can enable both or just one of them. CONFIG_PPC_PSERIES
is now specifically set for IBM pSeries support, you can build a PowerMac
kernel without pSeries support if you which.
The main goal here is to simplify addition of new platform types.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<tony.luck@intel.com>
[IA64] When we exhaust the supply of records to read, clear the event status.
Patch written by Ben Woodard. Sanity checked by Jesse Barnes.
Signed-off-by: Tony Luck <tony.luck@intel.com>
<davem@nuts.davemloft.net>
[NET]: Privatize {P,}NEIGH_HASHMASK.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Create neigh_lookup_nodev for decnet.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Grow neigh hash table dynamically.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Convert neigh hashing over to jenkins.
Based upon work by Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix Apple Xserve G4 PCI probing
When pci_assign_all_busses is set, the common code will re-assign all
the bus numbers, which we still need to do one various pmacs, at least
until XFree/XOrg understands PCI domains properly. However, this
process triggers a bug if during this renumbering, on a given segment, a
P2P bridge not yet renumbered has conflicting downstream bus range with
a P2P bridge just renumbered. The probing will just behave randomly and
either miss devices, show duplicates, or just lockup in some
circumstances. This is typically triggered on Apple Xserve G4s who have
at least 2 P2P bridges built-in on the same segment of the first PCI
(non-AGP) domain
The "workaround" we use on pmac that was in my tree for a while but got
"lost" during the big merge a while ago is to offset the bus numbers
between domains by 16. This avoids the above collision scenario in all
practical cases.
The long term solution of course is to stop renumbering and make sure
that all drivers are domain safe (there may be a couple issue remaining
in the code that matches PCI / OF devices on ppc32) and XFree/XOrg has
to be fixed.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix bogus return value in pmac_cpufreq.c
There's an obvious uninitialized return value in pmac_cpufreq, here's
a fix:
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix potentially uninitialized var in chrp_setup.c
In chrp_setup.c, chrp_int_ack could be left uninitialized and passed
"as-is" to i8259_init() if the OF node for the 8259 wasn't found. I
don't know if that should happen, but the i8259 code can deal with
int_ack beeing 0, so let's be safe, initialize it, and remove a warning
at the same time.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix type/bug in pmac_feature.c
A typo in pmac_feature.c can cause us to use a bogus node pointer when
iterating the i2c controllers during boot. Fortunately, it seems that
we always find the one we are looking for first, and thus never ended
up in an inifinite loop here, but let's fix it and fix the warning at
the same time.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix use of uninitialized pointer in offb
The recent ppc64 changes for offb introduced an uninitialized pointer
use for ppc32, here's the fix:
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: adapt prom_init to offb change
The changes to prom_init/offb interaction introduced by the ppc64
monster cleanup patch need a fix to ppc32 prom_init so that offb
works again. ppc32 prom_init() could use a lot more cleanup, but
let's do the minimal fix to make it work now.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix typo/bug in bus resource allocation
The code re-allocating new bus resources in case of conflicts use a
function called probe_resource(), which has a typo (spotted by the
uninitialized variable use of gcc) causing it to potentially return
bogus results. This fixes it:
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<yoshfuji@linux-ipv6.org>
[IPV6] Fix device multicast list leakage when forwarding is on.
We failed to leave all-routers multicast address.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] Don't multiply join multicast/anycast addresses.
Case 1: if net.ipv6.conf.IFACE.forwarding has been set to 1,
we multiply join routers' multicast/anycast addresses
by setting net.ipv6.conf.all.forwarding to 1.
Noticed by Andre Tomt <andre@tomt.net>.
Case 2: if we change net.ipv6.conf.FOO.forwarding from 1 to 2,
we multiply join routers' multicast/anycast addresses.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] Save number of arguments for __ipv6_dev_mc_dev().
dev is unused in the function.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] use __ipv6_dev_mc_dec() where appropriate.
Use __ipv6_dev_mc_dec() instead where the caller knows idev.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<aia21@cantab.net>
NTFS: Begin of sparse annotations: new data types and endianness conversion.
- Add le{16,32,64} as well as sle{16,32,64} data types to fs/ntfs/types.h.
- Change ntfschar to be le16 instead of u16 in fs/ntfs/types.h.
- Add le versions of VCN, LCN, and LSN called leVCN, leLCN, and leLSN,
respectively, to fs/ntfs/types.h.
- Update endianness conversion macros in fs/ntfs/endian.h to use the
new types as appropriate.
- Do proper type casting when using sle64_to_cpup() in fs/ntfs/dir.c
and index.c.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: Continuing sparse annotations: finish data types and header files.
- Add leMFT_REF data type to fs/ntfs/layout.h.
- Update all NTFS header files with the new little endian data types.
Affected files are fs/ntfs/layout.h, logfile.h, and time.h.
- Do proper type casting when using ntfs_is_*_recordp() in
fs/ntfs/logfile.c, mft.c, and super.c.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<yoshfuji@linux-ipv6.org>
[IPV6] leave solicited-node multicast address during device deletion.
Because in6_dev_get() fails during device deletion,
we failed to leave solicited-node multicast address.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] leave subnet-routers anycast address during device deletion.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<yoshfuji@linux-ipv6.org>
[IPV6] Clean up anycast membership management.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<aia21@cantab.net>
NTFS: Finish off sparse annotation.
- Fix all the sparse bitwise warnings. Had to change all the enums
storing little endian values to #defines because we cannot set enums
to be little endian so we had lots of bitwise warnings from sparse.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: 2.1.19 - Many cleanups, improvements, and a minor bug fix.
- Fix bug found by the new sparse bitwise warnings where the default
upcase table was defined as a pointer to wchar_t rather than ntfschar
in fs/ntfs/ntfs.h and super.c.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: Fix a stupid bug where I forgot to actually do the attribute lookup
and then went and used the looked up attribute... Ooops.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<jbarnes@engr.sgi.com>
[PATCH] disable sched domains debug code
This disables the sched domains debug code, which has a tendency to
print out a *lot* of information. It's helpful for debugging, but a bit
overboard for general use. Also, if you have a high NR_CPUS value, it
tends to scare people and overflow the dmesg buffer.
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
ppc: annotate pmac ide driver
Another bunch of annoying warnings gone, and code cleaned up.
<benh@kernel.crashing.org>
[PATCH] ppc32/64: Fix warning in pmac ide
This is a gcc error, but let's fix it anyway, it isn't a perf critical
codepath and warnings are ugly.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: ADB keycode conversion update
This makes the ADB->Linux keycodes conversion table a lot more readable
(and thus easy to fix :) and adds conversion of the laptop Fn-enter
(keypad enter, also present on apple laptop keyboards on the bottom
right, left of the arrow keys) to "compose" (or menu key on modern PC
keyboard).
Thanks to Frank Murphy <murphyf@f-m.fm> for spotting this keycode
feature of MacOS (and apple docs)
It also fixes a small possible race in the LED code
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc32: Fix warning in pmac battery code
The battery calculation code in via-pmu triggers a few warnings (and
actually, one of them would lead to a real error if we ever get an
unrecognized type from the PMU). Fix this.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] radeonfb: Fix newer PowerBook & warnings
This fixes a few warnings in radeonfb and add proper PLL divider values
for Apple latest PowerBook Aliminium 17" so the display isn't "fuzzy"
(the LVDS interface needs special PLL values that the driver can't
calculate, on most x86, the BIOS tells us the values to use, on Apple
laptops, we have to hard code them for each model).
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<pbadari@us.ibm.com>
[PATCH] dio fine alignment and pages in io
Here is the fix for dio_new_bio() BUG() with fsx tests. The problem is, I
changed dio_pages_in_io calculation to be exactly the number of pages we
needed to map the user-buffer to do the IO. But with fine-grain alignment
(non fs-blocksize), we may need 2 more pages (ZERO_PAGE) to zero out first
and last block if needed.
Here is the bug info.
http://bugme.osdl.org/show_bug.cgi?id=3447
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: upgrade for recent kernel changes
This patch is for upgrading m32r's code to the 2.6.9-rc1-mm5 source as well as
the other architectures.
* arch/m32r/Makefile: Replace assigment to CHECK with assignment to CHECKFLAGS
* arch/m32r/kernel/vmlinux.lds.S:
- out-of-line locks / m32r; Include LOCK_TEXT to .text section.
- Move param section out of init area, for export of built-in
module params
* arch/m32r/mm/ioremap.c (__ioremap):
Add __iomem modifier to the return value type of __ioremap()
for much stricter type-checking.
* include/asm-m32r/resource.h:
- rlimit-based mlocks for unprivileged users
- Increase per-user mlock limit default to 32k
* include/asm-m32r/socket.h:
- [NET]: Move SOCK_foo types into linux/net.h
* include/asm-m32r/unistd.h:
Add system calls; taken from asm-i386/unistd.h.
- [PATCH][2/6] perfctr-2.7.3 for 2.6.7-rc1-mm1: i386 (05/31/2004)
- [PATCH] Make key management use syscalls not prctls (09/06/2004)
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<takata@linux-m32r.org>
[PATCH] m32r: support PTRACE_GETREGS and PTRACE_SETREGS
Add PTRACE_GETREGS and PTRACE_SETREGS functions for the native debugging
support of the GNU Project Debugger, GDB.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<nathans@sgi.com>
[PATCH] Fix generic direct IO code for XFS
The following patch to the generic direct IO code fixes a problem we've
come across that affects the way XFS interacts with it. Between 2.6.5 and
2.6.6 several changes to direct IO were made, in particular the
fallback-to-buffered path was introduced in that timeframe.
Those changes split the locking done within direct-io.c into two cases -
generic filesystems and blkdev/XFS. There is no locking done for the
second case, and we also never set the create parameter to the get_blocks
call (via direct_io_worker ->do_direct_IO->get_more_blocks) for that case.
This meant that XFS was accidentally no longer being told when a direct IO
write was being performed, which in turn meant that XFS would (often -
depending on the inode's size and bmap) tell get_more_blocks that it was
mapping to a hole. It also means that currently all direct writes into XFS
are falling back to buffered writes. Further, skipping the i_alloc_sem
locking entirely is not correct for us, we are relying on that aspect of
the generic locking.
The fallback behaviour from direct to buffered is "silent", so we didn't
actually pick up on these problems until just recently, unfortunately.
The approach I've taken here is to split the blkdev/XFS case into two, and
corrected the new third case behaviour for the functionality XFS provides.
The generic behavior used by other filesystems remains unchanged, as does
direct IO to the block device, and XFS now becomes fully functional.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<gj@pointblue.com.pl>
[PATCH] gcc-4.0 build fixes
Fix various gcc-4.0 compilation errors.
Signed-off-by: Grzegorz Jaskiewicz <gj at pointblue.com.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<shaohua.li@intel.com>
[PATCH] preserve irqs in time_resume()
Unconditionally enabling interrupts is upsetting the ACPI time resume code.
Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: move linker script
arch/um/uml.lds.S has already been moved to arch/um/kernel. dyn.lds.S has just
been forgotten, so fix this.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: small Makefile fixes
Tidied up some whitespace in arch/um/Makefile. Added -DUM_FASTCALL to
Makefile-i386. make clean descends into util in order to get rid of the
binaries there.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: free wrapper fixes
__wrap_free is now careful about freeing to the same allocator that allocated
the buffer.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: remove an unused header
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: allow UML to load in the normal location
This makes UML load at 0x8048000 rather than 0xa0000000 when CONFIG_MODE_SKAS
is on and CONFIG_MODE_TT is off. This will make it more valgrind-friendly,
and also allow much greater physical memory sizes without needing to use
highmem.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: linker script cleanup
From: "D. Bahi" @ enterasys.com - remove an unneeded line from the dynamic
linker script.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: implement current_text_addr
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: error message improvement
Output a nice error message for people who need mem > 256M but don't increase
on the host /proc/sys/vm/max_map_count, telling them to do so.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: fix fencepost errors in printks
Simple corrections to some error messages, which list wrong limits for UBD
devices and such.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: print errno before resetting it
Make sure we print ERRNO and not always -1.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<jdike@addtoit.com>
[PATCH] uml: don't trash return value
From: Doug Dumitru <doug@easyco.com>
I have been fighting a buffering error when sending large amounts of data out
pty devices from UML. I have tried a couple of patches that did not really
fix the problem (and were rightly rejected by the group), but have finally
found the real bug.
In /arch/um/drivers/line.c there is a function "buffer_data" that is
responsible for storing data into the lines ring buffer. The function is
"supposed" to return the number of characters actually buffered.
Unfortunately, in the case where the buffer wraps, the "len" variable is
decremented by "end" before it is used as the return parameter.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<clameter@sgi.com>
[PATCH] mmtimer quietness
Quiet mmtimer on non-SGI boxes (previously it printed "mmtimer: unable to
determine clock frequency").
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<janitor@sternwelten.at>
[PATCH] compile fix 3c59x for eisa without pci
# CONFIG_PCI is not set
CONFIG_EISA=y
drivers/net/3c59x.c: In function `vortex_ioctl':
drivers/net/3c59x.c:2916: warning: dereferencing `void *' pointer
drivers/net/3c59x.c:2916: error: request for member `current_state' in something not a structure or union
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
fb: add __iomem annotations to cfbimgblt
<torvalds@ppc970.osdl.org>
ppc64: clean up generated files at "make clean"
It missed the new vmlinux.strip file.
<torvalds@ppc970.osdl.org>
The generic iomap library needs to be linked unconditionally.
Otherwise modules that get loaded dynamically will not be able
to resolve the iomap functions, if no built-in drivers caused
it to be linked in at compile-time.
<davem@nuts.davemloft.net>
[SPARC64]: Update defconfig.
<kumarkr@us.ibm.com>
[NET]: Remove unnecessary local var initialization.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Start timer tick after interpolator is registered.
Else we risk an OOPS.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Neighbour hashing tweaks.
1) Start with a smaller initial hash table size.
This stresses the new code better.
2) Generate a new hash_rnd every time we grow
the hashes.
Based upon commentary from Harald Welte.
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: Move ip_ct_log_invalid to ip_conntrack_core.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Smooth out periodic neighbour GC.
Based almost entirely upon work by Tim Gardner
(timg@tpi.com) and Harald Welte (laforge@gnumonks.org)
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NET]: Fix some neigh table locking errors.
Also, make neigh_hash_alloc() use GFP_ATOMIC.
Signed-off-by: David S. Miller <davem@davemloft.net>
<rmk@flint.arm.linux.org.uk>
[ARM] Fix circular include dependency in asm/system.h
The recent addition of linux/bitops.h inside linux/kernel.h has
created a circular dependency:
asm/system.h -> linux/kernel.h -> linux/bitops.h -> asm/bitops.h
-> asm/system.h
which results in an unbuildable kernel. We appear not to need
linux/kernel.h in asm/system.h, but do need linux/linkage.h, so
make this the case.
<akpm@osdl.org>
[PATCH] -mm swsusp: make sure we do not return to userspace where image is on disk
From: Pavel Machek <pavel@ucw.cz>
When image is already on the disk, returning back to user is dangerous.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] -mm swsusp: copy_page is harmfull
From: Pavel Machek <pavel@ucw.cz>
This is my fault from long time ago: copy_page can't be used for copying
task struct, therefore we can't use it in swsusp.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] swsusp: do not disable platform swsusp because S4bios is available
From: Pavel Machek <pavel@ucw.cz>
Currently, when both S4 and S4bios are available, swsusp always chooses
S4bios and makes S4 unavailable. Bad idea as S4bios needs completely
different setup.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] swsusp: fix default powerdown mode
From: Pavel Machek <pavel@ucw.cz>
I'd like new swsusp to default to powerdown mode (as it did before) before
it goes up.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] swsusp: do not oops after allocation failure
From: Pavel Machek <pavel@ucw.cz>
This checks error return from swsusp_alloc, preventing oops when memory can
not be allocated.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] swsusp: Documentation update
From: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] Small cleanups for swsusp
From: Pavel Machek <pavel@ucw.cz>
Here are some small cleanups: whitespace fixes, added severity level,
shuffle messages and kill unneccessary strings, add some statics and fixed
misleading comments.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] swsusp: another simplification
From: Pavel Machek <pavel@ucw.cz>
verify is not really descriptive name of function. Fortunately its insides
are self-documenting which makes it easy to fix.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<akpm@osdl.org>
[PATCH] swsusp: kill crash when too much memory is free
From: Pavel Machek <pavel@ucw.cz>
If too much memory is free, swsusp dies in quite a ugly way. Even when it
is not neccessary to relocate pagedir, it is proably still neccessary to
relocate individual pages. Thanks to Kurt Garloff and Stefan Seyfried.
Signed-off-by: Andrew Morton <akpm@osdl.org>
<mochel@digitalimplant.org>
[power mgmt] Make system state enums match device state values.
Changes the PM_SUSPEND_MEM (and PM_SUSPEND_DISK) enum values so that
they make sense as PCI device power states.
(a) Fixes bugs whereby PCI drivers are being given bogus values.
This should resolve OSDL bugid 2886 without changing the PCI
API (its PM calls still act as on 2.4 kernels).
(b) Doesn't change the awkward assumption in the 2.6 PMcore that
the /sys/bus/*/devices/power/state, /proc/acpi/sleep,
dev->power.power_state, and dev->detach_state files share
the same numeric codes ... even for busses very unlike PCI,
or systems with several "on" policies as well as STD and STR,
or with device-PM transtions with no system-wide equivalent.
Really we need to move away from "u32" codes that are easily confused
with each other, towards typed values (probably struct pointers), but
that's a long-term change and we need the PCI issue fixed sooner.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
<rth@kanga.twiddle.home>
[ALPHA] Fix bitops.h, kernel.h include loop.
<torvalds@ppc970.osdl.org>
Make smbfs with UNIX extensions get file disk usage count right.
We need to convert from bytes to blocks, and we also need to
handle the fact that old smbd's will round up the disk usage
bytecount to even multiples of 1MB, and gracefully fall back
on an estimate based on the file size instead in that case.
Acked by Samuel Thibault who noted the problem in the first
place, and Jeremy Allison wrt smbd behavior.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<aia21@cantab.net>
NTFS: Remove silly (__force le32) casts from __ntfs_is_magic{,p}
helper functions. Thanks to Al Viro for spotting them.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: Convert final enum (fs/ntfs/logfile.h) to define to silence last
bitwise sparse warning.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<aia21@cantab.net>
NTFS: Change {const_,}cpu_to_le{16,32}(0) to just 0 as suggested by Al Viro.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<willy@debian.org>
[PATCH] fix posix_locks_deadlock()
The "blocked_list" used for POSIX deadlock detection should only contain
POSIX locks, or posix_locks_deadlock() can get confused.
As I've noted before (but never posted a patch), we should probably stop
checking for deadlock. POSIX says it's optional for an implementation
to check for deadlock, and since the change to match on tgid, we can
report a deadlock when none exists.
[ Further explanation for Linus: POSIX locks and BSD locks don't block
each other, so checking that the blocker is a POSIX lock also implies
that the waiter is a POSIX lock. ]
<benh@kernel.crashing.org>
[PATCH] ppc64: Fix 32 bits conversion of SI_TIMER signals
The current 32 bits translation of the SI_TIMER is wrong on ppc64, causing
the tst-timer4 testcase of glibc to fail in 32 bits. This patch fixes it.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rth@kanga.twiddle.home>
[ALPHA] Turn off GENERIC_IOMAP. Arrange for iomap routines
to be linked unconditionally.
<rth@kanga.twiddle.home>
[ALPHA] Regenerate defconfig.
<kuznet@ms2.inr.ac.ru>
[IPV4]: Fix fa_list walking in fib_hash.c
Prevent accidently referencing f->fn_alias list
head as a real fib_alias object.
Signed-off-by: David S. Miller <davem@davemloft.net>
<benh@kernel.crashing.org>
[PATCH] ppc64: fix 32-bit SI_TIMER conversion fix
Agh !
I had two patches, a broken one and a good one and ... of course I sent
the broken one, sorry :(
This fixes the broken fix.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<petero2@telia.com>
[PATCH] bttv: fix DMA setup bug in latest update
This fixes the bug that made the card DMA lots of data to random memory
locations, causing lockups and instant reboots.
The problem was that the yoffset variable got modified inside the loop,
but the logic in the switch statement was meant to work on the initial
value of the yoffset variable.
(Bug fix extracted from
http://marc.theaimsgroup.com/?l=linux-kernel&m=109532...)
Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<kaber@coreworks.de>
[NETFILTER]: Fill hole in netfilter skb fields on 64bit
Signed-off-by: Patrick McHardy <kaber@trash.net>
<kaber@coreworks.de>
[NETFILTER]: make ipt_helper depend on ipt_conntrack again
Signed-off-by: Patrick McHardy <kaber@trash.net>
<kaber@coreworks.de>
[NETFILTER]: Convert sctp match to skb_header_pointer
Signed-off-by: Patrick McHardy <kaber@trash.net>
<kaber@coreworks.de>
[NETFILTER]: Convert sctp conntrack protocol to skb_header_pointer
Signed-off-by: Patrick McHardy <kaber@trash.net>
<kaber@coreworks.de>
[NETFILTER]: Convert udp conntrack protocol to skb_header_pointer
Signed-off-by: Patrick McHardy <kaber@trash.net>
<kaber@coreworks.de>
[NETFILTER]: Convert icmp conntrack protocol to skb_header_pointer
Signed-off-by: Patrick McHardy <kaber@trash.net>
<sfr@canb.auug.org.au>
[PATCH] ppc64: fix CONFIG check typo
This should allow sys_rtas to work again on PPC64 pSeries.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<rmk@arm.linux.org.uk>
[PATCH] Add wait_event_timeout()
There appears to be one case missing from the wait_event() family - the
uninterruptible timeout wait. The following patch adds this.
This wait is particularly useful when (eg) you wish to pass work off to an
interrupt handler to perform, but also want to know if the hardware has
decided to go gaga under you. You don't want to sit around waiting for
something that'll never happen - you want to go and wack the gremlin which
caused the failure and retry.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc64: Fix spelling error in callback name
A small spelling error slipped into a new ppc_md. platform call I added
in my last patch. Not very problematic but worth fixing before any code
using the new call gets pushed.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc64: Remote some userland-only stuff from kernel header
include/asm-ppc64/systemcfg.h defines a structure that currently gets
exposed to userland via /proc, and which I intend to deprecate in the
near future once I have better alternatives available.
In the meantime, this patch removes a bunch of stuff from this file that
were only defined for non-__KERNEL__, like an inline function for
getting to that struture via /proc, and some CPU & platform type
definitions that were duplicates of the ones in asm-ppc64/processor.h.
These things have nothing to do in a kernel header.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc64: Make the DART "iommu" code more generic
The "DART" iommu used on Apple U3 chipset will appear into 3rd party
products soon, thus the code shouldn't be named "pmac_*" anymore.
Also, the explicit config option is no longer needed, there is no
reason to build a PowerMac kernel without the iommu support, and
it can always be disabled at runtime with a cmdline option for
testing or debugging.
This patch do the appropriate renaming and makes the config option
implicit & selected when pmac support is included.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<aia21@cantab.net>
Update for the LDM driver (fs/partitions/ldm.c): The last_vblkd_seq can
be before the end of the vmdb, just make sure it is not out of bounds.
If it is abort. If it is not just continue happily.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<icampbell@arcom.com>
[PATCH] Remove stray 0 from drivers/video/Makefile
The reordering of the drivers in drivers/video/Makefile introduced a
stray 0 into the pxafb.
Signed-off-by: Ian Campbell <icampbell@arcom.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<davem@nuts.davemloft.net>
[NET]: Remove INCOMPLETE checks from neigh_forced_gc().
Signed-off-by: David S. Miller <davem@davemloft.net>
<ja@ssi.bg>
[IPV4]: Fix fib_alias TOS walking and insertion.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>'
<shemminger@osdl.org>
[TCP]: Choose congestion algorithm at initialization.
The choice of congestion algorithm needs to be made when connection
is setup to avoid problems when the sysctl values change later and the
necessary data hasn't been collected.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<shemminger@osdl.org>
[TCP]: Diagnostics enhancement for westwood
Enhancement to tcp diagnostics used by ss command.
* use jiffies_to_usecs/msec instead of hardcode math
* report bandwidth for Westwood
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<shemminger@osdl.org>
[TCP]: Westwood cleanup
Westwood code cleanup;
* use const.
* avoid needless paren's and returns
* inline acked_count (called once)
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<shemminger@osdl.org>
[TIME]: Put jiffies_to_usecs in time.h
Move local version put in tcp_diag.c into time.h
where it belongs. Also, make it smarted about HZ
values math.
Based upon suggestions from Joe Perches <joe@Perches.com>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<torvalds@ppc970.osdl.org>
Add __user annotation to PR_SET_NAME
<yoshfuji@linux-ipv6.org>
[IPV6] Fix routing header handling.
We need to rewind skb pointers when we forward a packet to other host
because dst_input() assumes that skb->data points head of ipv6 protocol header.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<nathans@sgi.com>
[XFS] Fix incorrect use of do_div on realtime device growfs code path.
SGI Modid: xfs-linux:xfs-kern:178670a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Fix some locking oddities in extended attributes code (ilock
excl vs shared).
SGI Modid: xfs-linux:xfs-kern:178671a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Convert to list_for_each_entry_safe form in reclaim list walk.
SGI Modid: xfs-linux:xfs-kern:178673a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Ensure bytes read statistic is not updated when the generic
routines fail.
SGI Modid: xfs-linux:xfs-kern:178890a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<roehrich@sgi.com>
[XFS] Need to vn_revalidate after dm_set_fileattr
SGI Modid: xfs-linux:xfs-kern:179137a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Ensure we update the wbc pages skipped count correctly when
writing pages.
SGI Modid: xfs-linux:xfs-kern:179566a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Add nosymlinks inode flag for the security folks, reserve
projinherit flag.
SGI Modid: xfs-linux:xfs-kern:179567a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<hch@sgi.com>
[XFS] handle nfs requesting ino 0 gracefully
SGI Modid: xfs-linux:xfs-kern:179624a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<hch@sgi.com>
[XFS] fix handling of bad inodes
SGI Modid: xfs-linux:xfs-kern:179634a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Update XFS quota header - add macros, use standard gpl template.
Signed-off-by: Nathan Scott <nathans@sgi.com>
<nathans@sgi.com>
[XFS] Make xfssyncd more generic, hand off out-of-space flushing to it;
fixes two deadlocks when near-full and fixes a 4KSTACKS problem in XFS.
SGI Modid: xfs-linux:xfs-kern:19600a
Signed-off-by: Nathan Scott <nathans@sgi.com>
<tony.luck@intel.com>
[IA64] cleanup contig/discontig/virt_mem_map macros
I got this patch from Zou Nan hai to resolve the problem that
Andrew Morton has been having booting his ia64 system. The code
is quite a bit cleaner as he has reduced the number of different
definitions of pfn_valid/page_to_pfn/pfn_to_page, and left the
only remaining ones next to each other in page.h ... so this
should be easier to maintain going forward.
Signed-off-by: Tony Luck <tony.luck@intel.com>
<davem@nuts.davemloft.net>
[TCP]: Fix congestion window expansion when using TSO.
We only do congestion window expansion on full packet
ACKs. We should do it for ACKs of sub-packets of a
TSO frame as well.
Signed-off-by: David S. Miller <davem@davemloft.net>
<yoshfuji@linux-ipv6.org>
[IPV6] Fix skb allocation size for RST and ACK.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
<davem@netfilter.org>
[NET]: Neighbour cache statistics like rt_stat.
Add rtstat-like per-cpu statistics to the neighbour cache core.
Signed-off-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[TCP]: Use mss_cache_std in tcp_init_metrics().
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[NETLINK]: Kill export of netlink_broadcast_deliver.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[TCP]: Fix third arg to __tcp_trim_head().
Noted by Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<aia21@cantab.net>
NTFS: Change all the defines back to simple enums since sparse is now happy
typed enums. This completes the sparse annotations in NTFS.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
<jbarnes@sgi.com>
[IA64] sn2_defconfig: disable hotplug cpu
Looks like there are some bugs that won't be fixed before 2.6.9 in the
scheduling domain code wrt HOTPLUG_CPU, so I'm disabling it in sn2_defconfig
(we don't support CPU hotplug just yet anyway).
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<tony.luck@intel.com>
[IA64] zx1_defconfig: bring zx1_defconfig up to date
<Nanhai.zou@intel.com>
[IA64] discontig.c: remove max_gap and related call to efi_memmap_walk
max_gap is not used in discontig.c.
This patch is to remove it and the related efi_memmap_walk.
Signed-off-by: Zou Nan hai <Nanhai.zou@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
<axboe@suse.de>
[PATCH] partial io completion problem
There's an issue with bio_uncopy_user() in that it expects ->bv_len to
be untouched from io submission to io completion, which it wont be for
some transfer lengths on some hardware. So we end up not copying all the
data back to user space, not so good. This patch adds a bio_map_data
local structure to track the io_vec.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<tony.luck@intel.com>
[IA64] add default config file for intel tiger
Signed-off-by: Tony Luck <tony.luck@intel.com>
<torvalds@ppc970.osdl.org>
Convert system suspend states to proper PCI device states.
<davem@nuts.davemloft.net>
[TCP]: Uninline tcp_current_mss().
Also fix the return value of tcp_sync_mss() to
be unsigned.
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[TCP]: Move TSO mss calcs to tcp_current_mss()
Based upon a bug fix patch and suggestions from
Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<tgraf@suug.ch>
[PKT_SCHED]: Report qdisc parent to userspace
Report parent classid of a qdisc back to userspace. Without this there
is no way for userspace to see if the qdisc is attached to a class
other than parsing all class trees of the link and check all tcm_info
fields in the leaf classes.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
<ajgrothe@yahoo.com>
[CRYPTO]: Whirlpool algorithm updates.
Signed-off-by: Aaron Grothe <ajgrothe@yahoo.com>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<tgraf@suug.ch>
[PKT_SCHED]: Remove unneeded line in sch_sfq.c
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
<cph@cph.demon.co.uk>
[IPX]: Make sure sockaddr_ipx objects are initialized completely.
Signed-off-by: Adnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
<laforge@gnumonks.org>
[NET]: Generic network statistics
This patch moves the following files in /proc:
/proc/net/rt_cache_stat /proc/net/stat/rt_cache
/proc/net/ip_conntrack_stat /proc/net/stat/ip_conntrack
/proc/net/arp_cache_stat /proc/net/stat/arp_cache
/proc/net/clip_arp_cache_stat /proc/net/stat/clip_arp_cache
/proc/net/dn_neigh_cache_stat /proc/net/stat/dn_neigh_cache
This allows a generic statistics tool to scan for all available statistics
by doing readdir(2) on /proc/net/stat
It also adds a special first 'template' line to rt_cache and ip_conntrack
in order to facilitate compatibility once somebody adds new fields to the
output lines.
WARNING:
This breaks existing rtstat.c and ctstat.c userspace programs
(hopefully for the last time). rtstat is non-existant or broken in
major distributions anyway, and ctstat is too new for any distros
having it picked up. Therefore, we justify this breakage.
A new unified statistics tool for routing cache, connection tracking and
neighbour cache is under development and will be included with iproute2.
Signed-off-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[NETLINK]: Trim SKBs at netlink_{unicast,broadcast}() time.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[NETLINK]: In netlink_trim(), verify that SKB is not on a list.
Signed-off-by: David S. Miller <davem@davemloft.net>
<nacc@us.ibm.com>
[SPARC64]: Make bbc_envctrl use msleep_interruptible().
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<nacc@us.ibm.com>
[SPARC64]: Make bbc_i2c use msleep_interruptible().
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[SPARC64]: Do not log streaming byte hole errors.
They are just a nuissance.
Signed-off-by: David S. Miller <davem@davemloft.net>
<rmk@flint.arm.linux.org.uk>
[PCMCIA] Add device ID for TI4520 to yenta_socket table.
This fixes the non-functional PCMCIA problem reported on LKML
by Dax Kelson.
Signed-off-by: Russell King
<davem@nuts.davemloft.net>
[SPARC64]: Disable SBH interrupt properly.
Signed-off-by: David S. Miller <davem@davemloft.net>
<kaber@coreworks.de>
[NETFILTER]: move check for already tracked/untracked before fragment check
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<herbert@gondor.apana.org.au>
[RTNETLINK]: Calculate rtmsg_ifinfo() SKB size more accurately.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Define fib_alias in new header fib_lookup.h
Also s/FN_S_ACCESSED/FA_S_ACCESSED/
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Move some fib_semantics exports into fib_lookup.h
Signed-off-by: David S. Miller <davem@davemloft.net>
<davem@nuts.davemloft.net>
[IPV4]: Do fib_alias lookup walk directly in fib_semantic_match().
Signed-off-by: David S. Miller <davem@davemloft.net>
<janitor@at.none.(rmk)>
[MMC] replace schedule_timeout() with msleep_interruptible()
Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected.
Signed-off-by: Nishanth Aravamudan
Signed-off-by: Maximilian Attems
<rmk@flint.arm.linux.org.uk>
[MMC] Provide major= module parameter for mmc_block
This allows users to provide a fixed major number - early 2.4 MMC
drivers used block device major 60, which is "local/experimental
use"
<rmk@flint.arm.linux.org.uk>
[MMC] Make MMC card initialisation more reliable.
Pierre Ossman reported a problem where his cards do not correctly
initialise with the current MMC implementation. However, if we
tell the card to go back to the idle state between probing the
supply voltage and telling the card about the chosen voltage, his
cards work - and we don't seem to upset existing cards.
<drzeus-list@cx.rmk.(none)>
[MMC] Add power up delay
This patch adds a 10 ms delay in the power up loop. Some cards fail
to power up in time without it.
<rmk@flint.arm.linux.org.uk>
[MMC] Use scatter-gather lists rather than walking the BIOs
Bartlomiej Zolnierkiewicz wanted to remove the "cbio" structure
from struct request. Unfortunately, MMC was using the same
"workaround" as IDE to walk the BIO list. With this change, we
stop using "cbio" and instead use proper scatter-gather lists.
<axboe@suse.de>
[PATCH] thinko in kmalloc check in partial completion fix
Silly thinko/typo, it needs to check the newly allocated memory for
failure of course. Noticed by Stefan Meyknecht.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<axboe@suse.de>
[PATCH] Fix sparse warning in bio.c
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<alan@redhat.com>
[PATCH] tty locking cleanup and fixes
No problems reported other than Linus typo in an unbuildable driver from
the last one.
This one adds tty_ldisc_flush and also makes tty_wakeup do the queue
wake as discussed with Paul. I've then propagated these functions
through all the drivers. This means most drivers don't know about the
ldisc locking and instead call generic functions that look after it.
The result is the removal of a lot of duplicate code both for ldisc
referencing and historical code for handling tty ldisc wakeup semantics.
A nice side effect is that by adding versions of the two helpers we can
switch most of the drivers over before changing the core tty code if
preferred.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc/ppc64: Fix g5 access to PCI IO cycles
Looks like we never needed them, since that bug has been there forever,
I didn't get the right base for the IO cycles on the G5 host bridge
in the first place (I probably misinterpreted some OF forth code or
something like that).
<benh@kernel.crashing.org>
[PATCH] ppc64: DART iommu allocation fix
The current code allocating the DART has a couple of bugs, first
it's called on all machines including the ones who have no DART
(oops), and then it tries to access the device-tree using the
"of_chosen" pointer before it was initialized.
The enclosed patch fixes these.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<benh@kernel.crashing.org>
[PATCH] ppc64: Fix !SMP build
People don't build UP very often it seems ... anyways, it was broken,
here is the fix.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
Fix up tty locking update for sgttyb emulation (TIOCGETP and TIOCSETP).
<nico@org.rmk.(none)>
[ARM PATCH] 2097/2: more gcc-3.4.1 warning fixes
Patch from Nicolas Pitre
At least gcc-3.4.1 complains about puts() declaration conflicting
with its own idea of it. Our puts() declaration and implementation
isn't standard anyway, so let's rename it to putstr() like on x86.
Signed-off-by: Nicolas Pitre
<dave.jiang@com.rmk.(none)>
[ARM PATCH] 2100/1: Fix compilation error due to missing typedefs (u32) for XScale IOP platforms
Patch from Dave Jiang
This fixes compile error where u32 was not recognized by iop321.h and iop331.h. Started showing up in 2.6.9-rcX that wasn't there in 2.6.8.1.
Added include of <asm/types.h> to asm/arch/hardware.h where it would propogate to both headers.
Signed-off-by: Dave Jiang (dave.jiang@gmail.com)
<neilb@cse.unsw.edu.au>
[PATCH] Fix disconnected dentries on NFS exports
A disconnected dentry can hold an inode active after the last link has
been removed. The file will not then be truncated and removed until
memory pressure flushes the disconnected dentry from the dcache.
This problem can be resolved by making sure that an inode never has
both a connected and a disconnected dentry.
This is already the case for directories (as they must only have one
dentry), but it is not the case for non-directories.
This addresses it by:
- changes d_alloc_anon to make sure that a new disconnected dentry is
only allocated if there is currently no (hashed) dentry for the
inode. (Previously this would noramlly be true, but a race was
possible).
- changes d_splice_alias to re-use a disconnected dentry on
non-directories as well as directories.
- splits most of d_find_alias out into a separate function to make
the above easier.
Problem originally reported by Nikita Danilov.
Acked by Al Viro ("It looks sane"), and Jakob Oestergaard reports this
fixes his problems. Further pushed by Christoph Hellwig.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<dave.jiang@com.rmk.(none)>
[ARM PATCH] 2105/1: Fix compilation error for IOP and remove
unnecessary legacy code
Patch from Dave Jiang
Signed-off-by: Dave Jiang (dave.jiang@gmail.com)
Remove the code that jumps to physical offset in head-xscale.S for
IOPs that was fixing a legacy redboot problem. The issue no longer
exists it seems and it's breaking the compilation
anyways. Removed.
<nico@org.rmk.(none)>
[ARM PATCH] 2108/1: pxa-regs.h fixes and updates
Patch from Nicolas Pitre
Patch from Nick Bane.
Needed to fix problems with PCMCIA driver.
Signed-off-by: Nicolas Pitre
<nico@org.rmk.(none)>
[ARM PATCH] 2109/1: fix PCMCIA on Mainstone/PXA270
Patch from Nicolas Pitre
Let's move GPIO setup into the board specific hw init functions.
The PXA2xx often has many different GPIOs that can be used for
a given alternate function and the good one to use is hardware
dependent. For example, Lubbock and Mainstone are not using all
the same GPIOs for PCMCIA signals.
Signed-off-by: Nicolas Pitre
<ben-linux@org.rmk.(none)>
[ARM PATCH] 2110/1: S3C2410 - NAND platform data
Patch from Ben Dooks
platform data header for use with on-chip NAND flash
controller.
Signed-off-by: Ben Dooks
<nico@org.rmk.(none)>
[ARM PATCH] 2111/1: restrict scope of PXA2xx register definitions
Patch from Nicolas Pitre
It's a rather bad idea to have psa-regs.h included all the time.
It's rather large and likely to create namespace clashes, as well
as slowing down the build unnecessarily.
Better include it explicitly where it is actually needed.
Signed-off-by: Nicolas Pitre
<ben-linux@org.rmk.(none)>
[ARM PATCH] 2112/1: S3C2410 - fix <asm/arch/regs-clock.h> for assembly inclusion
Patch from Ben Dooks
Missed protection for use when this file is included for .S files
Signed-off-by: Ben Dooks
<davem@nuts.davemloft.net>
[TCP]: Fix inaccuracies in tso_factor settings.
1) If tcp_{sendmsg,sendpage} tacks on more data to an
existing SKB, this can make tso_factor inaccurate.
Invalidate it, which forces it to be recalculated,
by simply setting it to zero.
2) __tcp_trim_head() changes skb->len thus we need
to recalculate tso_factor
3) BUG check that tcp_retrans_try_collapse() does not
try to collapse packets with non-1 tso_factor
4) The Solaris FIN workaround in tcp_retransmit_skb()
changes packet size, need to fixup tso_factor
Signed-off-by: David S. Miller <davem@davemloft.net>
<colin@colino.net>
[SUNGEM]: Add polling support.
Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
<rmk@flint.arm.linux.org.uk>
[MMC] Fix mmci.c build problem.
<randolph@tausq.org>
[PATCH] add missing declaration to fix kernel/compat.c warning
Fixes a warning in kernel/compat.c.
Signed-off-by: Randolph Chung <tausq@debian.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<torvalds@ppc970.osdl.org>
Linux 2.6.9-rc3