ChangeSet@1.2457, 2005-01-15 16:09:15-08:00, matthew@wil.cx [PATCH] Generic IRQ support for PA-RISC Make PA-RISC use the generic interrupt handling code. We need one tiny change to the generic code -- the addition of a data pointer to irq_desc. This shouldn't be a problem in terms of increasing size of irq_desc for other architectures as the struct is cacheline aligned. It's now 32 bytes on 32-bit platforms and 44/48 bytes on 64-bit platforms (assuming spinlock_t is 4 bytes on 32-bit and 4 or 8 bytes on 64-bit). Signed-off-by: Matthew Wilcox Signed-off-by: Linus Torvalds ChangeSet@1.2456, 2005-01-15 15:47:14-08:00, vlobanov@speakeasy.net [PATCH] Fix typo in drivers/char/Kconfig Signed-off-by: Vadim Lobanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2455, 2005-01-15 15:46:55-08:00, gaboregry@axelero.hu [PATCH] various Kconfig fixes Here are some Kconfig fixes: - typo fixes - unused token removes (empty or duplicated 'help') - non ASCII characters replaces - e-mail address and URL format corrections Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2454, 2005-01-15 15:46:37-08:00, mpm@selenic.com [PATCH] random: add_input_randomness The input layer wants to send us an entropy event per input event and who are we to argue? Create add_input_randomness with an input-friendly interface and kill the remaining two keyboard and mouse sources. This eliminates lots of duplicate entropy events while covering all the input bases nicely. We now get two events per keystroke as we should, one down and one up. Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2453, 2005-01-15 15:46:21-08:00, mpm@selenic.com [PATCH] random: periodicity detection fix The input layer is now sending us a bunch of events in a row for each actual event. This shows up weaknesses in the periodicity detector and using the high clock rate from get_clock: each keystroke is getting accounted as 10 different maximal-entropy events. A brief touch on a trackpad will generate as much as 2000 maximal entropy events which is more than 2k of /dev/random output. IOW, we're WAY overestimating input entropy. Here's one keystroke: random 0024 0000 0000: mouse event random 0035 0000 0000: added 11 entropy credits to input random 0035 0000 0000: mouse event random 0046 0000 0000: added 11 entropy credits to input random 0046 0000 0000: mouse event random 0056 0000 0000: added 10 entropy credits to input random 0056 0000 0000: keyboard event random 0067 0000 0000: added 11 entropy credits to input random 0067 0000 0000: mouse event random 0078 0000 0000: added 11 entropy credits to input random 0078 0000 0000: awake random 0078 0000 0000: reading 128 bits random 0078 0000 0000: going to reseed blocking with 128 bits (128 of 0 requested) random 0078 0000 0000: trying to extract 128 bits from input random 0006 0000 0000: debiting 72 entropy credits from input random 0006 0072 0000: added 72 entropy credits to blocking random 0006 0072 0000: trying to extract 128 bits from blocking random 0006 0000 0000: debiting 72 entropy credits from blocking random 0006 0000 0000: read got 72 bits (56 still needed) random 0006 0000 0000: reading 56 bits random 0006 0000 0000: going to reseed blocking with 64 bits (56 of 0 requested random 0006 0000 0000: trying to extract 64 bits from input random 0006 0000 0000: debiting 0 entropy credits from input random 0006 0000 0000: trying to extract 56 bits from blocking random 0006 0000 0000: debiting 0 entropy credits from blocking random 0006 0000 0000: read got 0 bits (56 still needed) random 0006 0000 0000: sleeping random 0006 0000 0000: mouse event random 0017 0000 0000: added 11 entropy credits to input random 0017 0000 0000: mouse event random 0028 0000 0000: added 11 entropy credits to input random 0028 0000 0000: mouse event random 0038 0000 0000: added 10 entropy credits to input random 0038 0000 0000: keyboard event random 0049 0000 0000: added 11 entropy credits to input random 0049 0000 0000: mouse event random 0060 0000 0000: added 11 entropy credits to input The first step to fixing this is to check periodicity and estimate entropy against a slow clock like jiffies. We continue to mix in get_clock() rather than jiffies where available. This throws away most of the duplicate events and gives us more sensible entropy estimates, but we still duplicates from input.c and keyboard.c. Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2452, 2005-01-15 15:46:04-08:00, mpm@selenic.com [PATCH] random: run-time configurable debugging Add run-time switchable entropy debugging. Entire debug infrastructure remains compiled out by default. Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2451, 2005-01-15 15:45:47-08:00, mpm@selenic.com [PATCH] random: entropy debugging improvements Print pool entropy counts in all entropy debugging messages Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2450, 2005-01-15 15:45:30-08:00, mpm@selenic.com [PATCH] random: whitespace doh Someone actually spotted this already. Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2449, 2005-01-15 15:45:11-08:00, vlobanov@speakeasy.net [PATCH] Fix typo in arch/i386/Kconfig Signed-off-by: Vadim Lobanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2448, 2005-01-15 15:44:54-08:00, adaplas@hotpop.com [PATCH] fbdev: Add w100 framebuffer driver Add a framebuffer driver for the ATI w100 as found on several Sharp PDAs Signed-off-by: Richard Purdie Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2447, 2005-01-15 15:44:37-08:00, adaplas@hotpop.com [PATCH] backlight: Add Backlight/LCD device basic support From: Andrew Zabolotny Here's a patch that adds basic support for controlling backlight lamps and lcd panels. The drivers can be controlled via sysfs, which makes it easy to use both from scripts and programs. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2446, 2005-01-15 15:44:21-08:00, adaplas@hotpop.com [PATCH] sa1100fb: Reorder add_wait_queue() and set_current_state() Reorder add_wait_queue() and set_current_state() as a signal could be lost in between the two functions. Signed-off-by: Nishanth Aravamudan Signed-off-by: Domen Puncer Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2445, 2005-01-15 15:44:05-08:00, adaplas@hotpop.com [PATCH] pxafb: Reorder add_wait_queue() and set_current_state() Reorder set_current_state() and add_wait_queue(). There is a chance that a signal could be missed in between the two functions currently. Signed-off-by: Nishanth Aravamudan Signed-off-by: Domen Puncer Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2444, 2005-01-15 15:43:47-08:00, adaplas@hotpop.com [PATCH] radeonfb: Fix init/exit section usage Fix 3 instances of calling exit section function from text or init: Error: ./drivers/video/aty/radeon_base.o .text refers to 000029e5 R_386_PC32 .exit.text Error: ./drivers/video/aty/radeon_base.o .text refers to 00002a60 R_386_PC32 .exit.text Error: ./drivers/video/aty/radeon_base.o .init.text refers to 00000192 R_386_PC32 .exit.text Signed-off-by: Randy Dunlap Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2443, 2005-01-15 15:43:30-08:00, adaplas@hotpop.com [PATCH] atyfb: Fix module parameter descriptions This patch syncs up the module parameter descriptions in aty128fb for module parameters "mode_option" and "nomtrr". Without the patch bad parameter names are used with MODULE_PARM_DESC(). Signed-off-by: Magnus Damm Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2442, 2005-01-15 15:43:13-08:00, adaplas@hotpop.com [PATCH] i810fb: Module param fix Last parameter is file permition in sysfs, not default value. (If 0, file is not accessible trough sysfs, and that's what i did.) Signed-off-by: Domen Puncer Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2441, 2005-01-15 15:42:55-08:00, adaplas@hotpop.com [PATCH] fbdev: Fbmon cleanup While browsing the video/fbcon.c source file (Linux 2.6.10-rc3) I found some possible cleanups. Patch follows, feel free to apply all or parts of it if it looks OK to you. Remove unnecessary bit operations. Signed-off-by: Jean Delvare Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2440, 2005-01-15 15:42:40-08:00, adaplas@hotpop.com [PATCH] fbcon: Fix compile error Fix missing symbol (fb_con) Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2439, 2005-01-15 15:42:22-08:00, adaplas@hotpop.com [PATCH] fbcon: Catch blank events on both device and console level Call fb_blank() instead of info->fbops->fb_blank() to capture events on both device and console level. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2438, 2005-01-15 15:42:05-08:00, adaplas@hotpop.com [PATCH] fbdev: Cleanup broken edid fixup code Check first if EDID block came from a broken display before fixing. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2437, 2005-01-15 15:41:49-08:00, mgreer@mvista.com [PATCH] serial: MPSC driver Patch for the Marvell MultiProtocol Serial Controller (MPSC). This ctlr is on a series of host bridges (and other things) for PPC and MIPS processors. The ctlr operates similar to a typical network controller with send and receive rings. Unfortunately there are many errata so you will see some "unusual" things in the code. For example: a) An erratum prevents the reading of several registers on the ctlr (writing is okay). To work around that, a local copy of what the registers are is kept and special macros are used to access those mirrored values. b) Another erratum says that the MPSC cannot be used to access cache coherent memory (and many of the systems I use are cache coherent). However, it seems to work okay as long as there are no snoop hits so there are macros in the code to manually manage the caches to prevent snoop hits. Each macro checks a flag to see if the manual cache mgmt is necessary as not all versions have the erratum. The driver seems to work well but more testing is needed and it is lacking KGDB support. I will get to both of those in time. Signed-off-by: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2436, 2005-01-15 15:41:33-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: remove #includes in rsrc_mgr which aren't necessary any longer Remove #includes in rsrc_mgr which are no longer needed. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2435, 2005-01-15 15:41:18-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: modify irq_mask via sysfs Allow to modify the per-socket irq_mask via sysfs. Note that you can only clear bits from the mask, but not re-add bits. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2434, 2005-01-15 15:41:01-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: remove racy try_irq() Remove the racy try_irq/check_irq/undo_irq interface, and try to register the correct handler directly in pcmcia_request_irq(). Also, simplify the IRQ usage database, but avoid using the same IRQ twice. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2433, 2005-01-15 15:40:43-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: use irq_mask to mark IRQs as (un)usable Unset bits in the per-socket irq_mask to mark IRQs as unusable, if asked to do so by the user in /etc/pcmcia/config.opts Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2432, 2005-01-15 15:40:28-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: remove irq_mask and irq_list parameters from PCMCIA drivers Remove the now useless irq_mask and irq_list parameters from PCMCIA drivers. Users should use either the socket driver's irq_mask / irq_list parameter or use /sys/class/pcmcia_socket/pcmcia_socket%n/card_irq_mask which will be added in a subsequent patch. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2431, 2005-01-15 15:40:10-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: ignore driver IRQ mask As its just one pin which can be used for IRQs on PCMCIA/CardBus cards, and only the _socket drivers_ care with which IRQ this pin is connected, only the socket drivers (assisted by the PCCARD core) should care about which IRQ to use. Therefore, ignore the information passed to pcmcia_request_irq() in IRQInfo2. In additional patches, all in-kernel users of IRQInfo2 will be removed; users wishing to influence the usage of IRQs can do so by modifying several driver's irq_mask parameter and/or by adding "exclude irq 3" to /etc/pcmcia/config.opts. Note that a new sysfs-based interface to do so will be added in subsequent patches. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2430, 2005-01-15 15:39:56-08:00, linux@dominikbrodowski.de [PATCH] pcmcia: remove IRQ_TYPE_TIME IRQ_TYPE_TIME is unused in the whole kernel, so remove it. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2429, 2005-01-15 15:39:40-08:00, roland@redhat.com [PATCH] clear false pending signal indication in core dump When kill is used to force a core dump, __group_complete_signal uses the group_stop_count machinery to stop other threads from doing anything more before the signal-taking thread starts the coredump synchronization. This intentionally results in group_stop_count always still being > 0 when the signal-taking thread gets into do_coredump. However, that has the unintended effect that signal_pending can return true when called from the filesystem code while writing the core dump file. For NFS mounts using the "intr" option, this results in NFS operations bailing out before they even try, so core files never get successfully dumped on such a filesystem when the crash was induced by an asynchronous process-wide signal. This patch fixes the problem by clearing group_stop_count after the coredump synchronization is complete. The locking I threw in is not directly related, but always should have been there and may avoid some potential races with kill. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2428, 2005-01-15 15:39:26-08:00, pmeda@akamai.com [PATCH] ptrace: unlocked access to last_siginfo (resending) Since Roland changed now to wakeup tracee with kill, I guess this needs to be fixed. http://linus.bkbits.net:8080/linux-2.5/gnupatch@41e3fe5fIRH-W3aDnXZgfQ-qIvuXYg ptrace_setsiginfo/ptrace_getsiginfo need to do locked access to last_siginfo. ptrace_notify()/ptrace_stop() sets the current->last_siginfo and sleeps on schedule(). It can be waked up by kill signal from signal_wake_up before debugger wakes it up. On return from schedule(), the current->last_siginfo is reset. Signed-off-by: Prasanna Meda Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2427, 2005-01-15 15:39:11-08:00, roland@redhat.com [PATCH] fix exec deadlock when ptrace used inside the thread group If one thread uses ptrace on another thread in the same thread group, there can be a deadlock when calling exec. The ptrace_stop change ensures that no tracing stop can be entered for a queued signal, or exit tracing, if the tracer is part of the same dying group. The exit_notify change prevents a ptrace zombie from sticking around if its tracer is in the midst of a group exit (which an exec fakes), so these zombies don't hold up de_thread's synchronization. The de_thread change ensures the new thread group leader doesn't wind up ptracing itself, which would produce its own deadlocks. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2426, 2005-01-15 15:38:53-08:00, roland@redhat.com [PATCH] fix race between core dumping and exec with shared mm When threads are sharing mm via CLONE_VM (linuxthreads, vfork), there is a race condition where one thread doing a core dump and synchronizing all mm-sharing threads for it can deadlock waiting for another thread that just did an exec and will never synchronize. This patch makes the exec_mmap check for a pending core dump and punt the exec to synchronize with that, as if the core dump had struck before entering the execve system call at all. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2425, 2005-01-15 15:38:36-08:00, roland@redhat.com [PATCH] fix coredump_wait deadlock with ptracer & tracee on shared mm In the oddball situation where one thread is using ptrace on another thread sharing the same mm, and then someone sharing that mm causes a coredump, there is a deadlock possible if the traced thread is in TASK_TRACED state. It leaves all the threads sharing that mm wedged and permanently unkillable. This patch checks for that situation and brings a thread out of TASK_TRACED if its tracer is part of the same coredump (i.e. shares the same mm). It's not pretty, but it does the job. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2424, 2005-01-15 15:38:19-08:00, mst@mellanox.co.il [PATCH] macros to detect existance of unlocked_ioctl and ioctl_compat To make life bearable for out-of kernel modules, the following patch adds 2 macros so that existance of unlocked_ioctl and ioctl_compat can be easily detected. Signed-off-by: Michael S. Tsirkin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2423, 2005-01-15 15:38:01-08:00, hch@infradead.org [PATCH] ioctl rework #2 - add ->unlocked_ioctl method and a do_ioctl wrapper in ioctl.c so all places calling ->ioctl get it. THis provides us a patch to migrate away from holding bkl across ioctl implementations. - add ->compat_ioctl method and call it in compat_sys_ioctl before doing the hash lookup for registered handlers. - streamline compat_sys_ioctl and move the complex error reporting into a function of its own From: "Michael S. Tsirkin" Handle generic ioctl commands by falling back on static conversion functions in fs/compat_ioctl.c on -ENOIOCTLCMD code. From: "Michael S. Tsirkin" With new unlocked_ioctl and ioctl_compat, ioctls can now be as fast as read/write. So lets use fget_light/fput_light there, to get some speedup in common case on SMP. Signed-off-by: Michael s. Tsirkin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2422, 2005-01-15 15:37:44-08:00, agruen@suse.de [PATCH] ext3/EA: In-inode extended attributes for ext3 This started of as a patch by Alex Tomas and got an overhaul by me. The on-disk structure used is the same as in Alex's original patch. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2421, 2005-01-15 15:37:26-08:00, agruen@suse.de [PATCH] ext3/EA: Hide ext3_get_inode_loc in_mem option The in_mem optimization in ext3_get_inode_loc avoids a disk read when only the requested inode in the block group is allocated: In that case ext3_get_inode_loc assumes that it can recreate the inode from the in-memory inode. This is incorrect with in-inode extended attributes, which don't have a shadow copy in memory. Hide the in_mem option and clarify comments; the subsequent ea-in-inode changes the in_mem check as required. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2420, 2005-01-15 15:37:09-08:00, agruen@suse.de [PATCH] ext3/EA: Cleanup and prepare ext3 for in-inode xattrs Clean up several things in the xattr code, and prepare it for in-inode attributes: * Add the ext3_xattr_check_names, ext3_xattr_check_block, and ext3_xattr_check_entry functions for checking xattr data structures. * Add the ext3_xattr_find_entry, ext3_xattr_list_entries, and ext3_xattr_set_entry functions for manipulating xattr entries. Switch to using these functions in ext3_xattr_get, ext3_xattr_list, and ext3_xattr_set_handle. * Merge ext3_xattr_set_handle and ext3_xattr_set_handle2. * Rename the HDR and FIRST_ENTRY macros. * We have no way to deal with a ext3_xattr_cache_insert failure, so make it return void. * Make the debug messages more useful. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2419, 2005-01-15 15:36:51-08:00, agruen@suse.de [PATCH] ext3/EA: Ext[23]: no spare xattr handler slots needed The ext3_xattr_set_handle2 and ext3_xattr_delete_inode functions contain duplicate code to decrease the reference count of an xattr block. Move this to a separate function. Also we know we have exclusive access to the inode in ext3_xattr_delete_inode; there is no need to grab the xattr_sem lock. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2418, 2005-01-15 15:36:33-08:00, agruen@suse.de [PATCH] ext3/EA: Ext3: factor our common xattr code; unnecessary lock The ext3_xattr_set_handle2 and ext3_xattr_delete_inode functions contain duplicate code to decrease the reference count of an xattr block. Move this to a separate function. Also we know we have exclusive access to the inode in ext3_xattr_delete_inode; there is no need to grab the xattr_sem lock. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2417, 2005-01-15 15:36:16-08:00, agruen@suse.de [PATCH] ext3/EA: Ext3: do not use journal_release_buffer The use of journal_release_buffer is unsafe; it can overflow the journal: When a buffer is stolen from a transaction and later removed from that transaction with journal_release_buffer, the buffer is not accounted to the transaction that now "owns" the buffer, and one extra credit appears to be available. Don't use journal_release_buffer: We did rely on the buffer lock to synchronize xattr block accesses, and get write access to the buffer first to get atomicity. Return the mb_cache_entry from ext3_xattr_cache_find instead, and do the check/update under its lock. Only get write access when we know we will use the buffer. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2416, 2005-01-15 15:35:57-08:00, agruen@suse.de [PATCH] ext3/EA: Race in ext[23] xattr sharing code Andrew Tridgell and Stephen C. Tweedie have reported two different Oopses caused by a race condition in the mbcache, which is responsible for extended attribute sharing in ext2 and ext3. Stephen tracked down the bug; I did the fix. Explanation: The mbcache caches the locations and content hashes of xattr blocks. There are two access strategies: [1] xattr block disposal via mb_cache_entry_get(), [2] xattr block reuse (sharing) via mb_cache_entry_find_{first,next}(). There is no locking between the two methods, so between one mb_cache_entry_find_x and the next, a mb_cache_entry_get might come in, unhash the cache entry, and change the journaling state of the xattr buffer. Subsequently, two things can happen: [a] the next mb_cache_entry_find_x may try to follow the mbcache hash chain starting from the entry that has become unhashed, which now is a stale pointer, [b] the block may have become deallocated, and then we try to reuse it. Fix this by converting the mbcache into a readers-writer style lock, and protect all block accesses in ext2/ext3 by the mbcache entry lock. This ensures that destroying blocks is an exclusive operation that may not overlap xattr block reuse, while allowing multiple "re-users". Write access to the xattr block's buffer is protected by the buffer lock. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2415, 2005-01-15 15:35:39-08:00, agruen@suse.de [PATCH] ext3/EA: mbcache cleanup There is no need to export struct mb_cache outside mbcache.c. Move struct mb_cache to fs/mbcache.c and remove the superfluous struct mb_cache_entry_index declaration. Signed-off-by: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2414, 2005-01-15 15:35:23-08:00, agruen@suse.de [PATCH] ext3/ea: revert old ea-in-inode patch Revert the recently-added (post-2.6.10) ea-in-inode speedup patch. We have a new one. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2413, 2005-01-15 15:35:06-08:00, Markus.Lidel@shadowconnect.com [PATCH] I2O: printk cleanup and unnecessary code removal - removed commented part in header which is not used anymore - added wrappers for printk to make code more readable - cleaned up logging output and removed unneccessary output Signed-off-by: Markus Lidel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2412, 2005-01-15 15:34:52-08:00, Markus.Lidel@shadowconnect.com [PATCH] I2O: fix possible race condition and minor improvements - I2O Block OSM contained a possible race condition (by Wolfram Joost) - In pci.c the memory area which will be synced was wrong (original from Wolfram Joost) - number of OSM's which could be loaded is increased from 4 to 8 Signed-off-by: Markus Lidel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2411, 2005-01-15 15:34:34-08:00, rddunlap@osdl.org [PATCH] swiotlb: fix gcc printk warning swiotlb: Fix gcc printk format warning on x86_64, OK for ia64: arch/ia64/lib/swiotlb.c:351: warning: long unsigned int format, long long unsigned int arg (arg 2) Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2410, 2005-01-15 15:34:20-08:00, joern@wohnheim.fh-wedel.de [PATCH] fixups for block2mtd Fixes to block2mtd.c - the previous driver was only compile-tested: o Corrected copyright statements and some comments. o Renamed blockmtd to block2mtd. o Fixed the newline handling, it oopsed the kernel if no erase size was passed. o Replaced some printk() by INFO(). o Tried (but failed) to replace the readahead code. Signed-off-by: Jörn Engel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2409, 2005-01-15 15:34:03-08:00, alan@lxorguk.ukuu.org.uk [PATCH] smbfs fixes Fixes for various smbfs data leak bugs from Alan, Chuck Ebbert and various people on various mailing lists. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2408, 2005-01-15 15:33:46-08:00, pluto@pld-linux.org [PATCH] csum_and_copy_from_user gcc4 warning fixes This patch kills tons of gcc4 warnings: pointer targets in passing argument 2 of 'csum_and_copy_from_user' differ in signedness From: Hirokazu Takata * include/asm-m32r/checksum.h: build fix * arch/m32r/lib/csum_partial_copy.c: - update comment - cosmetic changes: change indentation Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2407, 2005-01-15 15:33:30-08:00, shbader@de.ibm.com [PATCH] s390: use nonseekable_open in z/VM log reader Disable seek on z/VM log reader misc device by using nonseekable_open(). Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2406, 2005-01-15 15:33:16-08:00, cotte@de.ibm.com [PATCH] s390: vol1 partition recognition Make the ECKD compatible disk layout labling detection conditional to run only on ECKD compatible disk layout volumes, do a fall back into the default LNX/unlabled case otherwise. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2405, 2005-01-15 15:33:00-08:00, horst.hummel@de.ibm.com [PATCH] s390: dasd driver debug log dasd driver changes: - Fix debug feature usage. The sprinf event/exception functions write a pointer to a format string (%s) to the log. These strings must be valid at the time the DBF-log is read. - Some coding style reformatting. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2404, 2005-01-15 15:32:44-08:00, braunu@de.ibm.com [PATCH] s390: remove irq_exit from iucv Remove the irq_exit call on error path in iucv_irq_handler. irq_exit is done in do_extint(). Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2403, 2005-01-15 15:32:26-08:00, schwidefsky@de.ibm.com [PATCH] s390: 3270 console 3270 console changes: - Initialize timer element before first use. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2402, 2005-01-15 15:32:09-08:00, thoss@de.ibm.com [PATCH] s390: Common I/O layer changes Common I/O layer changes: - Check if AIF is available on hardware before enabling the AIF time delay disablement facility. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2401, 2005-01-15 15:31:54-08:00, heiko.carstens@de.ibm.com [PATCH] s390: cmm interface Collaborative memory management inferface changes: - Allow cmmthread to run on every cpu. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2400, 2005-01-15 15:31:39-08:00, heiko.carstens@de.ibm.com [PATCH] s390: Core changes s390 core changes: - Fix mm_struct leak on cpu hotplug. - Improved cpu detection logic to avoid long delay at system start. - Call cpu_relax() in cpu hotplug wait loop. - Remove #define of account_system_vtime for CONFIG_VIRT_CPU_ACCOUNTING=n. - Regenerate default configuration. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2399, 2005-01-15 15:31:21-08:00, cborntra@de.ibm.com [PATCH] reintroduce task_nice export for binfmt_elf32 S/390 needs this for its binfmt_elf32 module. Signed-off-by: Christian Borntraeger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2398, 2005-01-15 15:31:04-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: update ld scripts to newer binutils It seems that linker script for userspace software are quite toolchain-depending, at least because what we use is a merge between builtin LD scripts (see strings /usr/bin/ld) and normal kernel linking scripts. Plus, a number of people are having toolchain-related troubles building UML (even assertion failures on linking, with Gentoo and Fedora 2). So, let's try to make UML nicer for binutils. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2397, 2005-01-15 15:30:49-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: add stack addresses to dumps From: Bodo Stroesser Add stack addresses to print of symbols from stack trace. For stack analysis it's important to have this information. Signed-off-by: Bodo Stroesser For UML, we should also copy the CONFIG_FRAME_POINTER stack walking from i386, and move the result to sys-i386. Another note: this should be done for i386 also, if ksymoops does not have problems. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2396, 2005-01-15 15:30:35-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: add stack content to dumps Copy some code from i386 to print the stack content. Rough form yet, should work although. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2395, 2005-01-15 15:30:20-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: fix and cleanup code in ubd_kern.c coming from ubd_user.c * Fix the use of errno: it refers to the __errno_location glibc definition when in ubd_user.c, and hence works; but in ubd_kern.c it refers to kernel_errno, which is different. So use the return value of os_* functions, as we should always have done. * Remove {read,write}_ubd_fs(), which are just silly. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2394, 2005-01-15 15:30:06-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: move code from ubd_user to ubd_kern Most code of ubd_user.c already uses the os_* functions, so it can be moved to ubd_kern.c. This patch simply moves the code without any hidden changes. The only change is inside io_thread(): since it calls signal(), I created a little function in ubd_user.c which just calls signal() with the right parameters. In a later patch (send together) I'll do some changes, to fix the usage of errno (which makes this code break when moved in a kernelspace file) and for some other little cleanups. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2393, 2005-01-15 15:29:50-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: allow free ubd flag ordering When parsing the section in ubd=file[,file2], instead of requiring that the flags are specified in a certain order, just make the code smarter. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2392, 2005-01-15 15:29:34-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: for ubd cmdline param use colon as delimiter Currently we can use this syntax ubd[]=file1,file2. However, writing things as ubd0=~/Uml/file1,~/Uml/file2 does not work; in fact, the shell won't expand the second '~', since it's not at a path beginning; possibly even other shell expansions don't work here. So simply allow using, instead of the ',' separator, the ':' separator. The ',' separator can still be used to preserve backward compatibility. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2391, 2005-01-15 15:29:19-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: refuse to run without skas if no tt mode in Return an early error message when no TT support is compiled in and no SKAS support is detected. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2390, 2005-01-15 15:29:02-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: fix some UML own initcall macros UML has his own initcall mechanism to handle his special userspace initialization (they are called in different moments, so they are indeed It must also duplicate some definition for the benefit of userspace code - but those definition weren't in sync with the main code. Also, the UML own macros missed __attribute_used__. Both problems are fixed by this patch. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2389, 2005-01-15 15:28:47-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: Makefile simplification and correction. Cleanup: simplify a lot of strange constructs and whatever present in arch/um/Makefile. Also, get rid of redundant cleaning code introduced in "uml-fix-make-clean.patch" from 2.6.10-mm3 - when it was written it made sense, but I fixed most problems it addressed in a more elegant way. Also about that, don't remove $(ARCH_SYMLINKS) in make clean, but rather in make mrproper as we already do, like for include/asm-um and other symlinks. Finally, remove one wrong thing (almost a bug) introduced in that - the usage of the clean-dirs construct: clean-dirs := sys-$(SUBARCH) which is intended to delete one whole folder, rather than to descend to clean it, when used in normal Makefiles (not in the arch Makefile where is used, with no effect). It's also not needed because that folder is cleaned because is listed in either $(core-y) or $(libs-y). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Chris Wright Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2388, 2005-01-15 15:28:32-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: depend on !USERMODE in drivers/block/Kconfig and drop arch/um/Kconfig_block Finally, we end with this the need to update arch/um/Kconfig_block with changes in drivers/block/Kconfig - we include directly that; UML-specific entries were moved into it (they are very few). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2387, 2005-01-15 15:28:16-08:00, cw@f00f.org [PATCH] uml: fail xterm_open when we have no $DISPLAY If UML wants to open an xterm channel and the xterm does not run properly (eg. terminates soon after starting) we will get a hang (a comment added in the patch explains why). This avoids the most common cause for this and adds a comment (which long term will go away with a rewrite of that code); the complete fix would be to catch the xterm process dying, up(&data->sem), and -EIO all requests from that point onwards. That applies for some of the other channels too, so part of the code should probably be abstracted a little and generalized. Signed-off-by: Chris Wedgwood Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2386, 2005-01-15 15:28:02-08:00, jdike@addtoit.com [PATCH] uml: commentary about SIGWINCH handling for consoles Explain what happens inside the SIGWINCH handler - it's non-obvious enough that the correct code seemed me to need a cleanup (which was indeed buggy). More info in the comments themselves. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2385, 2005-01-15 15:27:45-08:00, domen@coderock.org [PATCH] uml: delete unused header umn.h Remove nowhere referenced header. (egrep "filename\." didn't find anything) Signed-off-by: Domen Puncer Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: UML-devel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2384, 2005-01-15 15:27:30-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: drop unused buffer_head.h header from hostfs Drop that header inclusion - I discovered this header was unused while checking whether I can use the __set_page_dirty_nobuffers speedup suggested by Andrew Morton. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2383, 2005-01-15 15:27:15-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: Commentary addition to recent SYSEMU fix. Add some comments about the "uml-sysemu-fixes" patch of 2.6.10-mm1 (merged in 2.6.11-rc1). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2382, 2005-01-15 15:27:00-08:00, blaisorblade_spam@yahoo.it [PATCH] uml: readd CONFIG_MAGIC_SYSRQ for UML This config option was lost during the creation of lib/Kconfig.debug, due to a bad expressed dependency; I also moved the option back to its original place for UML (it is near CONFIG_MCONSOLE since it depends on that). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2381, 2005-01-15 15:26:45-08:00, frank@tuxrocks.com [PATCH] uml: avoid NULL dereference in line.c This patch reorders two lines to check a variable for NULL before using the variable. Signed-off-by: Frank Sorenson Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2380, 2005-01-15 15:26:28-08:00, pavel@ucw.cz [PATCH] swsusp: refrigerator cleanups This patch is from Nigel's swsusp2, it kills ugly #include from all over the tree, and makes code slightly nicer. I only left those parts that do not change any code. From: Nigel Cunningham Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2379, 2005-01-15 15:26:09-08:00, pavel@ucw.cz [PATCH] make suspend work with ioapic IRQ balancing daemon needs try_to_freeze(). Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2378, 2005-01-15 15:25:55-08:00, pavel@ucw.cz [PATCH] acpi: comment/whitespace updates This cleans few comments/formatting. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2377, 2005-01-15 15:25:38-08:00, pavel@ucw.cz [PATCH] swsusp: update docs This updates swsusp documentation. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2376, 2005-01-15 15:25:21-08:00, pavel@ucw.cz [PATCH] swsusp/dm: Use right levels for device_suspend() This almost changes no code (constant is still "3"), but at least it uses right constants for device_suspend() and fixes types at few points. Also puts explanation of constants to the Documentation. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2375, 2005-01-15 15:25:06-08:00, pavel@ucw.cz [PATCH] swsusp: more small fixes This adds few missing statics to swsusp.c, prints errors even when non-debugging and fixes last "pmdisk: " message. Fixed few comments. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2374, 2005-01-15 15:24:52-08:00, suresh.b.siddha@intel.com [PATCH] x86_64: use cpumask_t instead of unsigned long Another cpumask_t related fix: use cpumask_t instead of unsigned long. Signed-off-by: Suresh Siddha Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2373, 2005-01-15 15:24:36-08:00, prasanna@in.ibm.com [PATCH] x68: consolidate code segment base calculation Calculating the base address of the segment is tricky and is used in several places as well. This patch moves this tricky part in a common place as suggested by Andi Kleen. Signed-of-by: Prasanna S Panchamukhi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2372, 2005-01-15 15:24:20-08:00, rjw@sisk.pl [PATCH] Fix a bug in timer_suspend() on x86_64 This patch is intended to fix a bug in timer_suspend() on x86_64 that causes hard lockups on suspend with swsusp and provide some optimizations. It is based on the Nigel Cunningham's patches to to reduce delay in arch/kernel/time.c. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Acked-by: Nigel Cunningham Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2371, 2005-01-15 15:24:04-08:00, ak@suse.de [PATCH] x86_64: Optimize nodemask operations slightly Optimize first/node_node Optimize nodemask_t slightly. The x86-64 find_first/next_bit uses __builtin_constant_p on the size argument to special cases small single long word searches. But most gccs don't make __builtin_constant_p true when an argument is passed through an inline function. Move the constant into the inline function to avoid this. This generates a lot better code for node searches on x86-64. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2370, 2005-01-15 15:23:47-08:00, ak@suse.de [PATCH] x86_64: Disable uselib when possible Disable sys_uselib for 64bit processes and only enable for 32bit processes when a.out support is compiled in. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2369, 2005-01-15 15:23:30-08:00, ak@suse.de [PATCH] x86_64: Move early CPU detection earlier Move early CPU detection earlier. Needed for some followup patches and makes sense in general. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2368, 2005-01-15 15:23:16-08:00, ak@suse.de [PATCH] x86_64: Add brackets to bitops Add missing argument brackets in bitop macros Makes these macros somewhat safer to use. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2367, 2005-01-15 15:23:00-08:00, ak@suse.de [PATCH] x86_64/i386: increase command line size Enlarge i386/x86-64 kernel command line to 2k This is useful when the kernel command line is used to pass other information to initrds or installers. On i386 it was duplicated for unknown reasons. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2366, 2005-01-15 15:22:46-08:00, dhowells@redhat.com [PATCH] FRV: Excess whitespace cleanup The attached patch cleans up some excess whitespace from the FRV entry.S. Signed-Off-By: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2365, 2005-01-15 15:22:31-08:00, dhowells@redhat.com [PATCH] FRV: Remove mandatory single-step debugging diversion The attached patch removes the mandatory single-step diversion code from the FRV syscall handler that was put there for debugging purposes now that it's no longer needed. Signed-Off-By: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2364, 2005-01-15 15:22:15-08:00, anton@samba.org [PATCH] ppc64: lacks definition of MM_VM_SIZE() With David Woodhouse We don't set MM_VM_SIZE() on ppc64, so it defaults to TASK_SIZE. Which means a 32-bit process ending up in exit_mmap() to kill a 64-bit mm may call tlb_finish_mmu() with an incorrect 'end' argument. Signed-off-by: Anton Blanchard Signed-off-by: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2363, 2005-01-15 15:21:58-08:00, olof@austin.ibm.com [PATCH] ppc64: iommu: avoid ISA io space on POWER3 On some systems, the first PCI bus has a ISA I/O hole at the first 16MB. We can't use this space for DMA addresses on the bus. On Python-based machines, we'll skip the first 256MB on buses that have the hole, just as we do on later systems. This means that the first bus will have 768MB of DMA space shared between the devices on it. Signed-off-by: Olof Johansson Acked-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2362, 2005-01-15 15:21:42-08:00, michael@ellerman.id.au [PATCH] ppc64: make iseries_veth call flush_scheduled_work() When the iseries_veth driver module is unloaded there is the potential for an oops and also some memory leakage. Because the HvLpEvent_unregisterHandler() function did no synchronisation, it was possible for the handler that was being unregistered to be running on another CPU *after* HvLpEvent_unregisterHandler() had returned. This could cause the iseries_veth driver to leave work in the events work queue after the module had been unloaded. When that work was eventually executed we got an oops. In addition some of the data structures in the iseries_veth driver were not being correctly freed when the module was unloaded. This is the second patch, we make iseries_veth call flush_scheduled_work() after we are sure the handler is no longer running, and also fix the memory leaks. Signed-off-by: Michael Ellerman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2361, 2005-01-15 15:21:27-08:00, michael@ellerman.id.au [PATCH] ppc64: make HvLpEvent_unregisterHandler() work When the iseries_veth driver module is unloaded there is the potential for an oops and also some memory leakage. Because the HvLpEvent_unregisterHandler() function did no synchronisation, it was possible for the handler that was being unregistered to be running on another CPU *after* HvLpEvent_unregisterHandler() had returned. This could cause the iseries_veth driver to leave work in the events work queue after the module had been unloaded. When that work was eventually executed we got an oops. In addition some of the data structures in the iseries_veth driver were not being correctly freed when the module was unloaded. This is the first patch, which makes HvLpEvent_unregisterHandler() work. Signed-off-by: Michael Ellerman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2360, 2005-01-15 15:21:13-08:00, mporter@kernel.crashing.org [PATCH] ppc32: fix PPC44x build Fix PPC44x build broken from a latent bug. Signed-off-by: Matt Porter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2359, 2005-01-15 15:20:58-08:00, trini@kernel.crashing.org [PATCH] ppc32: Add Freescale PQ2FADS support The following adds support for Freescale's PQ2FADS board to the kernel. (The 'real' changes required for the board are in the ethernet driver, which needs a massive sync-up with mainline as I've been holding out for a better, rewritten one from the Freescale folks, who're waiting for the PHY lib patch sent to the net-dev list to get ack'd) Signed-off-by: Tom Rini Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2358, 2005-01-15 15:20:43-08:00, trini@kernel.crashing.org [PATCH] ppc32: Fix mpc8272ads When I reworked the m82xx init functions, I inadvertantly broke the callout we had from ppc_md.setup_arch() that boards can use to poke & prod things, once mappings are set. The following adds in a callback and updates the one m82xx board that needs it. Signed-off-by: Tom Rini Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2357, 2005-01-15 15:20:28-08:00, miquels@cistron.nl [PATCH] mark-page-accessed in filemap.c not quite right I just discovered there's a thinko in the mark-page-accessed change in do_generic_mapping_read() in 2.6.11-rc1. ra.prev_page is compared to index to see if we read from this page before - except that prev_page is actually set to the recent page or even a page in front of the current page. So we should store ra.prev_page in a seperate variable at the start of do_generic_mapping_read(). Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2356, 2005-01-15 15:20:14-08:00, roland@topspin.com [PATCH] InfiniBand/core: rename handle_outgoing_smp Change routine name from handle_outgoing_smp to handle_outgoing_dr_smp. Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2355, 2005-01-15 15:19:59-08:00, roland@topspin.com [PATCH] InfiniBand/ipoib: move structs from stack to device private struct Move the gather list and work request used for posting sends from the stack in ipoib_send() to the private structure. This reduces the stack usage for the data path function ipoib_send() and may speed things up slightly because we don't need to initialize constant members of the structures. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2354, 2005-01-15 15:19:44-08:00, roland@topspin.com [PATCH] InfiniBand: update copyrights for new year Update copyright line (files were modified in 2005). Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2353, 2005-01-15 15:19:30-08:00, roland@topspin.com [PATCH] InfiniBand/core: add ib_find_cached_gid function Add a new function to find a port on a device given a GID by searching the cached GID tables. Document all cache functions in ib_cache.h. Rename existing functions to better match format of verb routines. Signed-off by: Sean Hefty Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2352, 2005-01-15 15:19:12-08:00, roland@topspin.com [PATCH] InfiniBand/core: add qp_type to struct ib_qp Add qp_type to struct ib_qp. Signed-off by: Sean Hefty Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2351, 2005-01-15 15:18:57-08:00, roland@topspin.com [PATCH] InfiniBand/core: add more parameters to process_mad Add parameters to process_mad device method to support full Mellanox firmware capabilities (pass sufficient information for baseboard management trap generation, etc). Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2350, 2005-01-15 15:18:41-08:00, roland@topspin.com [PATCH] InfiniBand/core: fix handling of 0-hop directed route MADs Handle outgoing DR 0 hop SMPs properly when provider returns just SUCCESS to process_mad. Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2349, 2005-01-15 15:18:25-08:00, roland@topspin.com [PATCH] InfiniBand/mthca: clean up computation of HCA memory map Clean up the computation of the HCA context memory map. This serves two purposes: - make it easier to change the HCA "profile" (eg add more QPs) - make it easier to implement mem-free Arbel support Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2348, 2005-01-15 15:18:11-08:00, roland@topspin.com [PATCH] InfiniBand/core: add node_type and phys_state sysfs attrs Add per-device "node_type" and per-port "phys_state" sysfs attributes for InfiniBand devices. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2347, 2005-01-15 15:17:56-08:00, roland@topspin.com [PATCH] InfiniBand/core: add QP number to work completion struct InfiniBand spec rev 1.2 compliance: add local qp number to work completion structure. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2346, 2005-01-15 15:17:42-08:00, roland@topspin.com [PATCH] InfiniBand/core: set byte_cnt correctly in MAD completion Integrate Michael Tsirkin's patch to local_completion to set the WC byte_cnt according to the IBA 1.1 spec (include the GRH size regardless of whether it is present or not). Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2345, 2005-01-15 15:17:25-08:00, roland@topspin.com [PATCH] InfiniBand: make more code static Make needlessly global code static. Signed-off-by: Adrian Bunk Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2344, 2005-01-15 15:17:11-08:00, roland@topspin.com [PATCH] InfiniBand/core: remove debug printk Remove debug printk accidentally included. Signed-off-by: Tom Duffy Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2343, 2005-01-15 15:16:54-08:00, roland@topspin.com [PATCH] InfiniBand/mthca: add needed rmb() in event queue poll Add an rmb() between checking the ownership bit of an event queue entry and reading the contents of the EQE. Without this barrier, the CPU could read stale contents of the EQE before HW writes the EQE but have the read of the ownership bit reordered until after HW finishes writing, which leads to the driver processing an incorrect event. This was actually observed to happen when multiple completion queues are in heavy use on an IBM JS20 PowerPC 970 system. Also explain the existing rmb() in completion queue poll (there for the same reason) and slightly improve debugging output. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2342, 2005-01-15 15:16:40-08:00, roland@topspin.com [PATCH] InfiniBand/mthca: clean up allocation mapping of HCA context memory Clean up the way we allocate and map memory for use as ICM ("InfiniHost Context Memory") when running in Arbel MemFree mode. This slightly improves the code for mapping the firmware area and will make future progress towards full MemFree support much easier. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2341, 2005-01-15 15:16:23-08:00, roland@topspin.com [PATCH] InfiniBand/mthca: support RDMA/atomic attributes in QP modify Implement setting of RDMA/atomic enable bits, initiator resources and responder resources for modify QP in low-level Mellanox HCA driver (should complete RDMA/atomic implementation). Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2340, 2005-01-15 15:16:11-08:00, roland@topspin.com [PATCH] InfiniBand/mthca: trivial formatting fix Trivial formatting fix for empty for loops. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2339, 2005-01-15 15:15:55-08:00, roland@topspin.com [PATCH] InfiniBand/IPoIB: use correct static rate in IpoIB Calculate static rate for IPoIB address handles based on local width/speed and path rate. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2338, 2005-01-15 15:15:41-08:00, James.Bottomley@SteelEye.com [PATCH] generic irq code missing export of probe_irq_mask() Matthew Wilcox just converted parisc over to doing the generic irq code and we ran across the symbol probe_irq_mask being undefined (and thus preventing yenta_socket from loading). It looks like the EXPORT_SYMBOL() was accidentally missed from kernel/irq/autoprobe.c and no-one noticed on x86 because it's still in i386_ksyms.c This patch corrects the problem so that the generic irq code now works completely on parisc. Signed-off-by: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2337, 2005-01-15 15:15:25-08:00, sds@epoch.ncsc.mil [PATCH] SELinux: fix setting of loaded policy version This patch fixes a different bug in the code for SELinux policy loading. It ensures that the loaded policy version number is not updated until the new policy is successfully committed. It also fixes the type on the loaded policy version. Signed-off-by: Stephen Smalley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2336, 2005-01-15 15:15:09-08:00, sds@epoch.ncsc.mil [PATCH] SELinux: fix error handling code for policy load This patch fixes several bugs in the error handling code for SELinux policy loading that were introduced by my earlier patch to eliminate unaligned accesses by that code. Signed-off-by: Stephen Smalley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2335, 2005-01-15 15:14:53-08:00, uweigand@de.ibm.com [PATCH] cputime: s/390: fix account_steal_time. account_steal_time called for idle doesn't work correctly: 1) steal time while idle needs to be added to the system time of idle to get correct uptime numbers 3) if there is an i/o request outstanding the steal time should be added to iowait, even if the hypervisor scheduled another virtual cpu since we are still waiting for i/o. 2) steal time while idle without an i/o request outstanding has to be added to cpustat->idle and not to cpustat->system. Signed-off-by: Martin Schwidefsky Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2334, 2005-01-15 12:21:18-08:00, torvalds@ppc970.osdl.org Merge bk://linux-sam.bkbits.net/kconfig into ppc970.osdl.org:/home/torvalds/v2.6/linux ChangeSet@1.2333, 2005-01-15 12:01:24-08:00, torvalds@ppc970.osdl.org Make pipe buffer handling more generic. Use a "pipe_buf_operations" structure to describe the ops that can be done on a pipe buffer, so that pipe buffers from different sources can have their own rules. Right now the rules are just about how you map the buffers into kernel virtual memory space, and how to release them (and whether you can append new data to the end of an existing buffer). ChangeSet@1.2332, 2005-01-15 10:07:46-08:00, torvalds@ppc970.osdl.org Merge bk://linux-dj.bkbits.net/cpufreq into ppc970.osdl.org:/home/torvalds/v2.6/linux ChangeSet@1.2329.1.12, 2005-01-15 10:07:05-08:00, matthew@wil.cx [PATCH] Make compat_rt_sigtimedwait conform Compat syscalls need to start compat_sys_ otherwise PA-RISC's compat syscall wrappers don't work. Not that the individual involved bothered to patch PA-RISC ... Signed-off-by: Linus Torvalds ChangeSet@1.2329.1.11, 2005-01-15 09:40:45-08:00, mingo@elte.hu [PATCH] Don't busy-lock-loop in preemptable spinlocks Paul Mackerras points out that doing the _raw_spin_trylock each time through the loop will generate tons of unnecessary bus traffic. Instead, after we fail to get the lock we should poll it with simple loads until we see that it is clear and then retry the atomic op. Assuming a reasonable cache design, the loads won't generate any bus traffic until another cpu writes to the cacheline containing the lock. Agreed. Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds ChangeSet@1.2329.4.2, 2005-01-15 11:51:45+00:00, rmk@flint.arm.linux.org.uk [SERIAL] Clarify documentation for set_termios and pm methods. Signed-off-by: Russell King ChangeSet@1.2329.4.1, 2005-01-15 11:42:19+00:00, rmk@flint.arm.linux.org.uk [SERIAL] Fix serial console resume Don't use uart_change_speed() when trying to restore the serial console settings - the port may not have a tty associated with it. Signed-off-by: Russell King ChangeSet@1.2329.3.1, 2005-01-15 10:44:40+00:00, rmk@flint.arm.linux.org.uk [MMC] Add comment about GENHD_FL_REMOVABLE to mmc_block We don't set GENHD_FL_REMOVABLE because this flag indicates that the media may be removed while the block device persists. Since MMC destroys the block device when the card (media + on-board controller) is removed, the block device will never exist without media present. Therefore, setting GENHD_FL_REMOVABLE would be misleading. Signed-off-by: Russell King ChangeSet@1.2329.1.6, 2005-01-14 20:41:55-08:00, herbert@gondor.apana.org.au [IPV6]: Fix locking in ip6_dst_lookup(). The caller does not necessarily have the socket locked (udpv6sendmsg() is one such case) so we have to use sk_dst_check() instead of __sk_dst_check(). Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.2329.1.5, 2005-01-14 20:38:32-08:00, davem@nuts.davemloft.net [TCP]: Do not underflow sk_forward_alloc in sendpage(). We need to do the proper checks before we try to pull space out of it, just like sendmsg() does. Signed-off-by: David S. Miller ChangeSet@1.2329.2.10, 2005-01-15 03:30:53+01:00, bzolnier@trik.(none) [ide] kill default_{attach,cleanup}() Device drivers are supposed to provide their own ->attach and ->cleanup. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.9, 2005-01-15 03:21:57+01:00, bzolnier@trik.(none) [ide] ide-v10: use ide_dma_intr() Use now available ide_dma_intr() in etrax_dma_intr(). Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.8, 2005-01-15 03:18:16+01:00, bzolnier@trik.(none) [ide] icside: use ide_dma_intr() Make ide_dma_intr() always available if CONFIG_BLK_DEV_IDEDMA=y and use it instead of icside_dmaintr(). Acked by Russell. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.7, 2005-01-15 03:11:30+01:00, bzolnier@trik.(none) [ide] kill ide_drive_t->suspend_reset This cruft pre-dates benh's PowerManagement code. Moreover ->suspend_reset is always equal to zero. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.6, 2005-01-15 03:09:12+01:00, bzolnier@trik.(none) [ide] atiixp: add IXP400 support From: Enrico Scholz add IXP400 ID From: Frederick Li update PCI IDs Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.5, 2005-01-15 02:49:16+01:00, bzolnier@trik.(none) [ide] piix: add Intel 82801DBL IDE Controller support From: Zhongjun, Wang Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.4, 2005-01-15 02:31:51+01:00, bzolnier@trik.(none) [ide] suppress output of error messages for non-existant interfaces From: Prarit Bhargava Suppress output of "Wait for ready failed before probe !" messages for non-existant interfaces. Please see http://marc.theaimsgroup.com/?l=linux-ide&m=110553792013649&w=2 for further context on this patch. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.3, 2005-01-15 02:16:30+01:00, bzolnier@trik.(none) [ide] make try_to_flush_leftover_data() static Hi, now that you cleaned up the ide-io.c code to be all in the right file, try_to_flush_leftover_data can become static since all users are in this file now. bart: also remove declaration from Signed-off-by: Arjan van de Ven Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.2, 2005-01-15 02:06:28+01:00, bzolnier@trik.(none) [ide] ide_dump_atapi_status() printk readability fix From: Gunther Mayer this improves logic and readability: - remove blank from: AbortedCommand (as other flags) - add blank and {} to error= line - clean up: remove 2 lines and extra printk before: hdd: status error: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error } hdd: status error: error=0x7fIllegalLengthIndication EndOfMedia Aborted Command MediaChangeRequested LastFailedSense 0x07 after: hdd: status error: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error } hdd: status error: error=0x7f { IllegalLengthIndication EndOfMedia AbortedCommand MediaChangeRequested LastFailedSense=0x07 } Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.2.1, 2005-01-15 01:56:21+01:00, bzolnier@trik.(none) [ide] ide-cd: use ssleep() instead of schedule_timeout() Description: Uses ssleep() in place of cdrom_sleep() to guarantee the task delays as expected. Remove cdrom_sleep() definition, as this is the only place where it is called. Signed-off-by: Nishanth Aravamudan Acked-by: Jens Axboe Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2329.1.4, 2005-01-14 13:43:17-08:00, davem@nuts.davemloft.net Merge bk://kernel.bkbits.net/acme/connection_sock-2.6 into nuts.davemloft.net:/disk1/BK/net-2.6 ChangeSet@1.2329.1.3, 2005-01-14 13:31:38-08:00, bunk@stusta.de [IPV6]: Misc cleanups. - make some needlessly global code static - remove the following unused functions: - exthdrs.c: ipv6_build_rthdr - exthdrs.c: ipv6_build_exthdr - exthdrs.c: ipv6_build_nfrag_opts - exthdrs.c: ipv6_build_frag_opts - remove the following write-only global variables: - addrconf.c: inet6_dev_count - addrconf.c: inet6_ifa_count - #if 0 the following unused global variable: - addrconf.c: in6addr_any - remove the following unneeded EXPORT_SYMBOL's: - ipv6_syms.c: in6addr_any - ipv6_syms.c: in6addr_loopback Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller ChangeSet@1.2329.1.2, 2005-01-14 13:26:23-08:00, buytenh@wantstofly.org [NET]: Tone down the verbosity of diverter messages. Signed-off-by: David S. Miller ChangeSet@1.2331, 2005-01-14 16:24:29-05:00, davej@redhat.com [CPUFREQ] Remove reference to obsolete cpufreq bits. Signed-off-by: Dave Jones ChangeSet@1.2329.1.1, 2005-01-14 13:21:31-08:00, davem@nuts.davemloft.net Merge bk://kernel.bkbits.net/acme/connection_sock-2.6 into nuts.davemloft.net:/disk1/BK/net-2.6 ChangeSet@1.2330, 2005-01-14 16:17:42-05:00, davej@delerium.kernelslacker.org Merge delerium.kernelslacker.org:/mnt/data/src/bk/bk-linus into delerium.kernelslacker.org:/mnt/data/src/bk/cpufreq ChangeSet@1.1938.473.24, 2005-01-14 16:09:21-05:00, davej@redhat.com [CPUFREQ] Fix structure name usage in powernow-k8 With 2.6.10-mm2 (or even with -mm1) some structures in struct psb_s have been renamed in powernow-k8.h, but the renaming has not been done properly for all occurences in powernow-k8.c. This prevents cpufreq from accepting the BIOS PST-tables. The following patch corrects this by renaming the incorrectly named variable in powernow-k8.c, following the definition in the powernow-k8.h header file. Signed-off-by: Hans-Frieder Vogt Signed-off-by: Dominik Brodowski Signed-off-by: Dave Jones ChangeSet@1.1938.473.23, 2005-01-14 16:07:58-05:00, davej@redhat.com [CPUFREQ] gx-suspmod: fix gx_suspmod_get Fix to return a proper cpu speed. it is caused by mistaking the meaning of on and off. Signed-Off-by: Hiroshi Miura Signed-off-by: Dominik Brodowski Signed-off-by: Dave Jones ChangeSet@1.1938.473.22, 2005-01-14 16:07:22-05:00, davej@redhat.com [CPUFREQ] speedstep-centrino: don't loop on transient MSR From: "Pallipadi, Venkatesh" The transient MSR values are for very short duration and so I feel reading out the last set frequency is better than looping until reading something expected. Signed-off-by: Dominik Brodowski Signed-off-by: Venkatesh Pallipadi Signed-off-by: Dave Jones ChangeSet@1.1938.473.21, 2005-01-14 16:06:37-05:00, davej@redhat.com [CPUFREQ] speedstep-centrino and acpi-cpufreq: P4 TSC rate is constant From: "Pallipadi, Venkatesh" In P4, CPU tsc rate won't change with CPU frequency change while using Enhanced Speedstep Technology. Tested with both speedstep-centrino and acpi-cpufreq on both i386 and x86-64. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Dominik Brodowski Signed-off-by: Dave Jones ChangeSet@1.1938.473.20, 2005-01-14 16:05:45-05:00, davej@redhat.com [CPUFREQ] p4-clockmod: Dothan is 13 not 0x13 Dothan is stepping 13 == 0x0D instead of 0x13 == 19 This bug crept bag in the shadows caused by the debug overhauling patch. Signed-off-by: Dominik Brodowski Signed-off-by: Dave Jones ChangeSet@1.1938.473.19, 2005-01-14 16:05:03-05:00, davej@redhat.com [CPUFREQ] ondemand: don't increase to full speed at startup (Bruno Ducrot) From: Bruno Ducrot dbs_timer_init() will schedule_work(&dbs_work) so that do_dbs_timer() is likely called very early at same time slice scheduler, and for each cpu, dbs_check_cpu(cpu) will be called, likely at the same time slice than dbs_timer_init(). So far, we will get total_idle_ticks == idle_ticks == 0 unconditonaly, and the processor will be put at full speed even though it's not needed at startup. Ack'ed by Venkatesh Pallipadi. Signed-off-by: Bruno Ducrot Signed-off-by: Dominik Brodowski Signed-off-by: Dave Jones ChangeSet@1.2273.10.7, 2005-01-14 19:54:18+00:00, catalin.marinas@com.rmk.(none) [ARM PATCH] 2404/1: BTAC/BTB flushing added in cpu_v6_switch_mm Patch from Catalin Marinas This is needed since ARMv6 branch prediction tagging is done by the virtual address and the ASIDs aren't taken into account. Signed-off-by: Catalin Marinas Signed-off-by: Russell King ChangeSet@1.2273.10.6, 2005-01-14 19:42:46+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2403/1: S3C2410 - clock initialsation tidy Patch from Ben Dooks Update to the s3c2410/s3c2440 clock code to use the naming conventions now used throughout the arch/arm/mach-s3c2410/ directory, as well as a re-organisation of the initialisation of the clocks. The previous method was to initialise the clocks as part of the function that initialised the statically mapped IO regions, which was called from the machine initialisation. This proves a problem if the machine initialisation needs to use these IO areas to determine the frequency of PLL crystal fitted. This patch makes the following changes: - s3c2410_init_clocks renamed s3c24xx_setup_clocks - s3c2410_clkcon_enable renamed s3c24xx_clk_enable - s3c2410_register_clock renamed s3c24xx_register_clock - cpu specific init_clocks to be called from cpu.c - add s3c24xx_init_clocks for machine init to call - split the cpu specific clock code from xxx_map_io - update all machine initialisation methods and the following changes as cleanup which should have been caught by previous patches: - remove s3c2440_hdiv (unused) - remove s3c2440_clock_tick_rate (unused) This patch has been generated from a request by Dimitry Andric. Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2273.10.5, 2005-01-14 19:32:28+00:00, catalin.marinas@com.rmk.(none) [ARM PATCH] 2401/1: asm/thread_info.h removed from arch/arm/vfp/entry.S Patch from Catalin Marinas This file no longer needs to be included in arch/arm/vfp/entry.S because of the inclusion of asm/constants.h. Signed-off-by: Catalin Marinas Signed-off-by: Russell King ChangeSet@1.2329, 2005-01-14 10:26:02-08:00, axboe@suse.de [PATCH] noop-iosched: fix insertion point noop doesn't follow the instructions on where to insert a request, because it uses q->queue_head instead of the *insert assigned. Clean it up so it's easier to read. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.2328, 2005-01-14 10:25:47-08:00, axboe@suse.de [PATCH] bio clone memory corruption Doing some raid testing threw a bug in the scsi mid layer, because the segment counts wasn't correct. Initially I worried that we still had problems in this area, but it turns out that is due to the raid usage of bio clones. Currently you have to hold on to the original bio as well, since the clone only maintains a pointer to the bio_vec inside the original bio. If the original bio is freed first, the clone will have garbage in its bio->bi_io_vec as soon as that memory is scribbled. I think the best fix is to maintain flexibility and duplicate the io_vec inside the clone as well. Attached patch does this. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.11, 2005-01-13 21:22:44-08:00, davem@nuts.davemloft.net [SPARC64]: Need some more SPARC32 ifdeffing in here. Signed-off-by: David S. Miller ChangeSet@1.2273.9.10, 2005-01-13 21:19:16-08:00, grundler@parisc-linux.org [SPARC64]: Fix brainfart in pci_psycho.c Signed-off-by: Grant Grundler Signed-off-by: David S. Miller ChangeSet@1.2273.9.9, 2005-01-13 21:11:12-08:00, akpm@osdl.org [SPARC64]: Make first arg to find_next_zero_bit() const. Signed-off-by: Andrew Morton Signed-off-by: David S. Miller ChangeSet@1.2325, 2005-01-13 21:07:14-08:00, okir@suse.de [NET]: Check for SOL_SOCKET in compat_sys_getsockopt Signed-off-by: David S. Miller ChangeSet@1.2324, 2005-01-13 21:05:27-08:00, nhorman@gmail.com [ATALK]: Add ioctls to allow ifx txqueuelen sets/gets Signed-off-by: Neil Horman Signed-off-by: David S. Miller ChangeSet@1.2323, 2005-01-13 21:03:55-08:00, bunk@stusta.de [DECNET]: Misc cleanups - make needlessly global code static - dn_fib.c: remove the write-only global variable dn_fib_info_cnt - dn_fib.c: remove the unused global function dn_fib_rt_message - dn_neigh.c: remove the unused global function dn_neigh_pointopoint_notify - dn_timer.c: remove the fast timer code that isn't used Signed-off-by: David S. Miller ChangeSet@1.2322, 2005-01-13 20:48:54-08:00, davem@nuts.davemloft.net Merge bk://212.42.230.204/nf-2.6 into nuts.davemloft.net:/disk1/BK/net-2.6 ChangeSet@1.2315.1.10, 2005-01-13 20:42:19-08:00, tglx@linutronix.de [NET]: Lock initializer cleanup. Use the new lock initializers DEFINE_SPIN_LOCk and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner Signed-off-by: David S. Miller ChangeSet@1.2273.4.2, 2005-01-14 02:39:01-02:00, acme@conectiva.com.br [RAW] merge raw_sock with raw_opt No need for two structs, follow the new inet_sock layout style. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller ChangeSet@1.2315.1.8, 2005-01-13 20:34:08-08:00, yoshfuji@linux-ipv6.org [IPV6]: Fix tunnel list locking in sit.c Signed-off-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller ChangeSet@1.2315.1.6, 2005-01-13 20:19:03-08:00, davem@nuts.davemloft.net [TUN]: Make type explicit in min() usage. Signed-off-by: David S. Miller ChangeSet@1.2315.1.5, 2005-01-13 20:17:43-08:00, davem@nuts.davemloft.net [NETLINK]: netlink_kernel[] no longer used. The netlink_post stuff Arjan removed was the only user of this array. Signed-off-by: David S. Miller ChangeSet@1.2315.1.4, 2005-01-13 20:11:08-08:00, davem@nuts.davemloft.net [EBTABLES]: Use correct printf format for size_t. Signed-off-by: David S. Miller ChangeSet@1.2315.1.3, 2005-01-13 20:02:46-08:00, davem@nuts.davemloft.net [TCP]: Fix sk_forward_alloc assertion failures with TSO. do_tcp_sendpages() needs to do skb->truesize et al. accounting just like tcp_sendmsg() does. tcp_sendmsg() works by gradually adjusting these accounting knobs as user data is copied into the packet. do_tcp_sendpages() works differently, when it allocates a new SKB it optimistically adds in tp->mss_cache to these values and then makes no adjustments at all as pages are tacked onto the packet. This does not work at all if tcp_sendmsg() queues a packet onto the send queue, and then do_tcp_sendpages() attaches pages onto the end of that SKB. We are left with a very inaccurate skb->truesize in that case. Consequently, if we were building a TSO frame and it gets partially ACK'd, then since skb->truesize is too small tcp_trim_skb() will potentially underflow it's value and all the accounting becomes corrupted. This is usually seen as sk->sk_forward_alloc being negative at socket destroy time, which triggers an assertion check. Signed-off-by: David S. Miller ChangeSet@1.1938.473.18, 2005-01-13 17:49:50-05:00, davej@redhat.com [CPUFREQ] Fix up more instances of the old cpufreq list URLs. Signed-off-by: Dave Jones ChangeSet@1.2273.10.4, 2005-01-13 22:49:21+00:00, catalin.marinas@com.rmk.(none) [ARM PATCH] 2399/1: asm/constants.h included in arch/arm/vfp/entry.S Patch from Catalin Marinas The TI_VFPSTATE is otherwise undefined and gas-2.15.90 (and probably earlier versions) assumes 0. Gas-2.15.92 reports an error. Signed-off-by: Catalin Marinas Signed-off-by: Russell King ChangeSet@1.2273.10.3, 2005-01-13 22:43:31+00:00, LW@de.rmk.(none) [ARM PATCH] 2395/1: __ioremap() miscalculates mapping size under certain conditions Patch from Lothar Wassmann Hi, ioremapping a memory range that ends on the first byte of a page (e.g. mapping PAGE_SIZE + 1 bytes on a page boundary) results in a mapping that is one page too short. In particular trying to create a 1 byte mapping at the start of a page results in a BUG_ON() assertion in remap_area_pages() because the calculated mapping size is zero. This bug has been reported on Bugzilla on 2004-02-25: http://bugzilla.kernel.org/show_bug.cgi?id=2188 Signed-off-by: Lothar Wassmann Signed-off-by: Russell King ChangeSet@1.2273.10.2, 2005-01-13 22:37:36+00:00, elf@com.rmk.(none) [ARM PATCH] 2394/1: Re: accepting responsibility for Sharp LH ports Patch from Marc Singer Admitting that I'm the maintainer for the Sharp LH ports. Signed-off-by: Marc Singer Signed-off-by: Russell King ChangeSet@1.2273.10.1, 2005-01-13 22:31:41+00:00, rpurdie@net.rmk.(none) [ARM PATCH] 2392/1: Add PCMCIA/CF support code for Sharp SL-C7xx Series Patch from Richard Purdie Add support code to enable the Compact Flash socket on the Sharp SL-C7xx series of PDAs. The socket is controlled via the Sharp SCOOP interface. Signed-off-by: Richard Purdie Signed-off-by: Russell King ChangeSet@1.1938.473.17, 2005-01-13 16:22:32-05:00, davej@redhat.com [CPUFREQ] cpufreq mailing list changed its DNS entry. Signed-off-by: Dave Jones ChangeSet@1.2273.9.7, 2005-01-13 09:01:51-08:00, paulus@samba.org [PATCH] PPC64 Move thread_info flags to its own cache line This patch fixes a problem I have been seeing since all the preempt changes went in, which is that ppc64 SMP systems would livelock randomly if preempt was enabled. It turns out that what was happening was that one cpu was spinning in spin_lock_irq (the version at line 215 of kernel/spinlock.c) madly doing preempt_enable() and preempt_disable() calls. The other cpu had the lock and was trying to set the TIF_NEED_RESCHED flag for the task running on the first cpu. That is an atomic operation which has to be retried if another cpu writes to the same cacheline between the load and the store, which the other cpu was doing every time it did preempt_enable() or preempt_disable(). I decided to move the thread_info flags field into the next cache line, since it is the only field that would regularly be modified by cpus other than the one running the task that owns the thread_info. (OK possibly the `cpu' field would be on a rebalance; I don't know the rebalancing code, but that should be pretty infrequent.) Thus, moving the flags field seems like a good idea generally as well as solving the immediate problem. For the record I am pretty unhappy with the code we use for spin_lock et al. with preemption turned on (the BUILD_LOCK_OPS stuff in spinlock.c). For a start we do the atomic op (_raw_spin_trylock) each time around the loop. That is going to be generating a lot of unnecessary bus (or fabric) traffic. Instead, after we fail to get the lock we should poll it with simple loads until we see that it is clear and then retry the atomic op. Assuming a reasonable cache design, the loads won't generate any bus traffic until another cpu writes to the cacheline containing the lock. Secondly we have lost the __spin_yield call that we had on ppc64, which is an important optimization when we are running under the hypervisor. I can't just put that in cpu_relax because I need to know which (virtual) cpu is holding the lock, so that I can tell the hypervisor which virtual cpu to give my time slice to. That information is stored in the lock variable, which is why __spin_yield needs the address of the lock. Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.6, 2005-01-13 09:01:37-08:00, paulus@samba.org [PATCH] PPC64 Add PREEMPT_BKL option This patch adds the PREEMPT_BKL config option for PPC64, shamelessly stolen from the i386 version. I have this turned on in the kernel on my desktop G5 and it seems to be just fine. Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.5, 2005-01-13 09:01:24-08:00, paulus@samba.org [PATCH] PPC64 can do preempt debug too This patch enables the DEBUG_PREEMPT config option for PPC64. I have this turned on on my desktop G5 and it isn't finding any problems. (It did find one problem, in flush_tlb_pending(), that I have just sent a patch for.) BTW, do we really need to restrict which architectures the config option is available on? Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.4, 2005-01-13 09:01:10-08:00, paulus@samba.org [PATCH] PPC64 Call preempt_schedule on exception exit This patch mirrors the recent changes on x86 to call preempt_schedule rather than schedule in the exception exit path, in the case where the preempt_count is zero and the TIF_NEED_RESCHED bit is set. I'm a little concerned that this means that we have a window where interrupts are enabled and we are on our way into preempt_schedule, but preempt_count is still zero. Ingo's proposed preempt_schedule_irq would fix this, and I think something like that should go in. Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.3, 2005-01-13 09:00:59-08:00, paulus@samba.org [PATCH] PPC64 Disable preemption in flush_tlb_pending The preempt debug stuff found a place where we were using smp_processor_id() without having preemption disabled, in flush_tlb_pending. This patch fixes it by using get_cpu_var and put_cpu_var instead of the __get_cpu_var variant. Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.2, 2005-01-13 09:00:45-08:00, axboe@suse.de [PATCH] possible rq starvation on oom I stumbled across this the other day. The block layer only uses a single memory pool for request allocation, so it's very possible for eg writes to have allocated them all at any point in time. If that is the case and the machine is low on memory, a reader attempting to allocate a request and failing in blk_alloc_request() can get stuck for a long time since no one is there to wake it up. The solution is either to add the extra mempool so both reads and writes have one, or attempt to handle the situation. I chose the latter, to save the extra memory required for the additional mempool with BLKDEV_MIN_RQ statically allocated requests per-queue. If a read allocation fails and we have no readers in flight for this queue, mark us rq-starved so that the next write being freed will wake up the sleeping reader(s). Same situation would happen for writes as well of course, it's just a lot more unlikely. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.2273.9.1, 2005-01-13 09:00:32-08:00, axboe@suse.de [PATCH] Don't enable ata over eth by default "ATA over Ethernet support" should not default to 'm', it doesn't make any sense for a special case driver to do so. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.1938.480.75, 2005-01-13 11:29:26+01:00, perex@suse.cz ALSA 1.0.8 ChangeSet@1.2273.1.107, 2005-01-12 20:04:56-08:00, akropel1@rochester.rr.com [PATCH] contort getdents64 to pacify gcc-2.96 A recent trivial fixup in sys_getdents64 gives gcc-2.96 indigestion in the form of an ICE. While upgrading to a sane gcc would be the preferred solution, rewriting the change as follows eliminates the error for those who cannot do so. Signed-off-by: Adam Kropelin Signed-off-by: Linus Torvalds ChangeSet@1.2273.1.106, 2005-01-12 20:04:43-08:00, davej@redhat.com [PATCH] matroxfb driver broken on non-x86. This broke since the recent MODULE_PARAM conversion on architectures that don't have CONFIG_MTRR Signed-off-by: Dave Jones Signed-off-by: Linus Torvalds ChangeSet@1.2273.1.105, 2005-01-12 18:14:03-08:00, torvalds@ppc970.osdl.org Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk into ppc970.osdl.org:/home/torvalds/v2.6/linux ChangeSet@1.1938.460.9, 2005-01-12 23:50:04+01:00, marcel@holtmann.org [Bluetooth] Lock initializer cleanup Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK. Signed-off-by: Thomas Gleixner Signed-off-by: Marcel Holtmann ChangeSet@1.2273.5.11, 2005-01-12 21:03:45+00:00, nico@org.rmk.(none) [ARM PATCH] 2204/1: bring {read|write}sw up to date with current reality Patch from Nicolas Pitre This patch adds support for all alignments to both endianness. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King ChangeSet@1.2273.5.10, 2005-01-12 20:55:37+00:00, nico@org.rmk.(none) [ARM PATCH] 2391/1: remove obsolete help text Patch from Nicolas Pitre Now that MTD XIP support is merged this part is not relevant anymore. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King ChangeSet@1.2215.1.12, 2005-01-12 19:52:49+00:00, rmk@flint.arm.linux.org.uk [ARM] Add missing tlb_migrate_finish() Signed-off-by: Russell King ChangeSet@1.1938.480.74, 2005-01-12 20:33:29+01:00, perex@suse.cz [ALSA] Add ac97_quirk option Documentation,ATIIXP driver Added ac97_quirk option like intel and via drivers. Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.73, 2005-01-12 20:31:31+01:00, perex@suse.cz [ALSA] Fix ctl_read/write ioctl wrappers IOCTL32 emulation Fixed bugs with ctl_read/write ioctls. The struct size mismatch due to alignment is fixed. The code is also a bit optimized. Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.72, 2005-01-12 20:29:54+01:00, perex@suse.cz [ALSA] Fix DMA pointer read ATIIXP driver Try to reread DMA pointer register if the value is invalid. The register shows bogus values on some broken hardwares. Signed-off-by: Takashi Iwai ChangeSet@1.2273.1.104, 2005-01-12 10:08:53-08:00, torvalds@ppc970.osdl.org Merge http://lia64.bkbits.net/linux-ia64-release-2.6.11 into ppc970.osdl.org:/home/torvalds/v2.6/linux ChangeSet@1.2273.6.155, 2005-01-12 10:07:41-08:00, torvalds@ppc970.osdl.org Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6 into ppc970.osdl.org:/home/torvalds/v2.6/linux ChangeSet@1.2273.1.103, 2005-01-12 09:14:26-08:00, davidm@hpl.hp.com [IA64] add hpzx1_swiotlb machine-vector (new files) This is really part of the earlier changeset from David to add the new machine vector to support certain limited range DMA cards on zx1. I just forgot to run "bk new" before the commit, so the newly added files weren't checked into BK. Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2273.6.154, 2005-01-12 09:02:21-08:00, dwmw2@infradead.org [PATCH] ppc: fix removed MMCR0_PMXE define In ChangeSet 1.2370, 2005/01/11 17:41:32-08:00, tglx@linutronix.de wrote: > > [PATCH] ppc: remove duplicate define > > The MMCR0_PMXE is already defined in reg.h... Er, no it's not. But perhaps it should be... ChangeSet@1.2273.6.153, 2005-01-12 08:50:53-08:00, paulus@samba.org [PATCH] PPC64 had _raw_read_trylock already Ingo presumably didn't notice that ppc64 already had a functional _raw_read_trylock when he added the #define to use the generic version. This just removes the #define so we use the ppc64-specific version again. Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds ChangeSet@1.2273.6.152, 2005-01-12 08:50:39-08:00, axboe@suse.de [PATCH] elevator: print default selection Currently we only print the default io scheduler if the kernel chooses, not if the user/bootloader has specified one. This patch saves the extra line in dmesg but always notified of the default choice by appending (default) to that line: .. io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) .. Patch originally from Srihari Vijayaraghavan, modified by me. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.2273.1.102, 2005-01-12 08:49:02-08:00, tony.luck@intel.com [IA64] reorder functions to define ia64_pci_get_legacy_mem() before using it Signed-off-by: Tony Luck ChangeSet@1.2273.6.151, 2005-01-12 08:49:02-08:00, axboe@suse.de [PATCH] cfq-iosched: fix scsi requeue accounting The accounting can go bad in the requeue hook, it must check the accounted flag to make sure it was previously considered in the driver. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.2273.6.150, 2005-01-12 08:48:49-08:00, kaos@sgi.com [PATCH] ia64: export pcibios_resource_to_bus to match other architectures. Signed-off-by: Keith Owens Signed-off-by: Linus Torvalds ChangeSet@1.2273.6.149, 2005-01-12 08:48:35-08:00, ink@jurassic.park.msu.ru [PATCH] Alpha: typos in io_trivial.h This apparently explains some weird IO failures reported in last two months. Only non-bwx (including generic) kernels were affected. Acked-by: Richard Henderson Signed-off-by: Linus Torvalds ChangeSet@1.2273.8.7, 2005-01-12 08:26:35-08:00, torvalds@ppc970.osdl.org Make mm writelock testing less intrusive. This enables it only for debug kernels, and also makes sure that if some external module is still broken, we don't leave the mmap-sem locked after warning about it. ChangeSet@1.2273.8.6, 2005-01-12 08:12:09-08:00, marcelo.tosatti@cyclades.com [PATCH] do_brk() needs mmap_sem write-locked It seems to be general consensus that its safer to require all do_brk() callers to grab mmap_sem, and have do_brk to warn otherwise. This is what the following patch does. Similar version has been changed to in v2.4. Signed-off-by: Linus Torvalds ChangeSet@1.1938.1.176, 2005-01-12 10:09:46-06:00, jejb@mulgrave.(none) FC Transport updates - additional fc host attributes From: James.Smart@Emulex.Com This patch adds 5 more FC transport host attributes in support of HBAAPI. Signed-off-by: James Bottomley ChangeSet@1.2273.8.5, 2005-01-12 08:09:20-08:00, torvalds@ppc970.osdl.org Handle two threads both trying to expand their stack simultaneously. We had all the locking right, but we didn't check whether one of the threads now no longer needed to expand, so we could incorrectly _shrink_ the stack in the other thread instead (not only causing segfaults, but since we didn't do a proper unmap, we'd possibly leak pages too). So re-check the need for expand after getting the lock. Noticed by Paul Starzetz. ChangeSet@1.1938.1.175, 2005-01-12 10:06:41-06:00, jejb@mulgrave.(none) SCSI: add starget_for_each_device From: James.Smart@Emulex.Com This patch deprecates the use of device_for_each_child() with stargets. The reasoning behind this is due to issues regarding: Semaphores that device_for_each_child() takes Implicit assumptions that each child is an sdev device. The patch adds a new helper function, starget_for_each_device(), and replaces all previous uses of device_for_each_child(). Signed-off-by: James Bottomley ChangeSet@1.2273.5.9, 2005-01-12 15:38:50+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2390/1: Simtec Electronics MAINTAINERS file entries Patch from Ben Dooks MAINTAINERS entries for currently supported Simtec Electronics development boards. Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2273.8.4, 2005-01-12 07:36:34-08:00, ak@suse.de [PATCH] [4/4] Fix numa=off command line parsing Fix a long standing bug: numa=off only worked as last argument on the command line. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.2273.8.3, 2005-01-12 07:36:17-08:00, ak@suse.de [PATCH] [3/4] x86_64: Fix NUMA hash setup Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.2273.8.2, 2005-01-12 07:36:02-08:00, ak@suse.de [PATCH] x86_64: Fix K8 NUMA discovery Fix K8 node discovery after nodemask changes. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.1938.1.174, 2005-01-12 09:35:52-06:00, akpm@osdl.org [PATCH] use mmiowb in qla1280.c From: Jesse Barnes There are a few spots in qla1280.c that don't need a full PCI write flush to the device, but rather a simple write ordering guarantee. This patch changes some of the PIO reads that cause write flushes into mmiowb calls instead, which is a lighter weight way of ensuring ordering. Signed-off-by: Jeremy Higdon Signed-off-by: Jesse Barnes Signed-off-by: Andrew Morton Signed-off-by: James Bottomley ChangeSet@1.2273.8.1, 2005-01-12 07:35:48-08:00, ak@suse.de [PATCH] x86_64: Fix ACPI SRAT NUMA parsing Fix fallout from the recent nodemask_t changes. The node ids assigned in the SRAT parser were off by one. I added a new first_unset_node() function to nodemask.h to allocate IDs sanely. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.1938.1.173, 2005-01-12 09:29:50-06:00, akpm@osdl.org [PATCH] SCSI aic7xxx: kill kernel 2.2 #ifdef's From: Adrian Bunk The patch below kills kernel 2.2 #ifdef's from the SCSI aic7xxx driver. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: James Bottomley ChangeSet@1.2273.5.8, 2005-01-12 15:19:25+00:00, catalin.marinas@com.rmk.(none) [ARM PATCH] 2389/1: semaphore.c warning fixed Patch from Catalin Marinas The patch adds the "ax" attributes to the .sched.text section to avoid a compiler warning. Signed-off-by: Catalin Marinas Signed-off-by: Russell King ChangeSet@1.2273.5.7, 2005-01-12 15:14:51+00:00, rpurdie@net.rmk.(none) [ARM PATCH] 2388/1: Add SSP control code for Sharp SL-C7xx Series (Corgi) Patch from Richard Purdie The Sharp SL-C7xx Series (Corgi) has 3 devices connected to the SSP interface each needing different configurations of the port. This code provides the necessary access and locking so drivers can access these components. It uses the functions provided by the PXA SSP driver to access the port. It also adds some machine specific GPIO definitions used by this code and adds some comments to existing definitions. Signed-off-by: Richard Purdie Signed-off-by: Russell King ChangeSet@1.2273.5.6, 2005-01-12 14:01:58+00:00, rmk@flint.arm.linux.org.uk [ARM] Remove include. asm/processor.h doesn't use atomic operations nor types, so there's no need to include asm/atomic.h. Signed-off-by: Russell King ChangeSet@1.2315.2.7, 2005-01-12 14:51:01+01:00, kaber@coreworks.de [PKT_SCHED]: cls_api.c: drop rtnl for loading modules Signed-off-by: Patrick McHardy ChangeSet@1.2215.1.11, 2005-01-12 13:49:34+00:00, rmk@flint.arm.linux.org.uk [ARM] Don't use __init for function prototypes. ChangeSet@1.1938.480.71, 2005-01-12 11:22:26+01:00, perex@suse.cz [ALSA] Add suspend callback AC97 Codec Core Add suspend callback for each codec patch. Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.70, 2005-01-12 11:21:18+01:00, perex@suse.cz [ALSA] Remove & from function pointers AC97 Codec Core Remove & from function pointers (it works but not common to add it...) Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.69, 2005-01-12 11:20:14+01:00, perex@suse.cz [ALSA] Fixed description about ac97_quirk Documentation Fixed the description about ac97_quirk option. Now it accepts string, too. Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.68, 2005-01-12 11:19:00+01:00, perex@suse.cz [ALSA] Adapt SPDIF Input selection for Realtek ALC658 AC97 Codec Core This fixes the SPDIF Input selection for ALC658 as Realtek has changed the meaning betweenALC655 and ALC658. Signed-off-by: Stefan Macher Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.67, 2005-01-12 11:17:53+01:00, perex@suse.cz [ALSA] Fix Oops at resume AC97 Codec Core Fixed Oops at resume on certain codecs. Set null ops when no patch exists or the patch doesn't set build_ops. Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.66, 2005-01-12 11:16:40+01:00, perex@suse.cz [ALSA] remove compatibility code for 2.2.x kernels CA0106 driver Signed-off-by: Clemens Ladisch ChangeSet@1.1938.480.65, 2005-01-12 11:15:36+01:00, perex@suse.cz [ALSA] Add quirk for HP zv5000 Intel8x0 driver Added the quirk for HP zv5000 (mute LED with EAPD). Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.64, 2005-01-12 11:13:46+01:00, perex@suse.cz [ALSA] Fix float format support MIXART driver Fixed typos in float format support. Signed-off-by: Markus Bollinger Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.63, 2005-01-12 11:12:00+01:00, perex@suse.cz [ALSA] Fix description of ALSA/OSS device mapping Documentation Fixed the description of ALSA/OSS device mapping. The direction suffix was missing in ALSA devices. Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.62, 2005-01-12 11:10:10+01:00, perex@suse.cz [ALSA] ac97 quirk entries for HP xw6200 & xw8000 Intel8x0 driver Add AC97 quick list entries to snd-intel8x0 for HP xw6200 and xw8000. Signed-off-by: John W. Linville Signed-off-by: Takashi Iwai ChangeSet@1.1938.480.61, 2005-01-12 11:08:29+01:00, perex@suse.cz [ALSA] Fix ioctl arguments RawMidi Midlevel Fixed the wrong pointer types passed to get_user() for DROP and DRAIN ioctls. Signed-off-by: Takashi Iwai ChangeSet@1.2273.7.1, 2005-01-12 00:30:07-05:00, fli@ati.com [libata sata_sil] support ATI IXP300/IXP400 SATA ChangeSet@1.2273.6.147, 2005-01-12 00:21:23-05:00, akpm@osdl.org [PATCH] 3c515 warning fix drivers/net/3c515.c: In function `__check_rx_copybreak': drivers/net/3c515.c:406: warning: return discards qualifiers from pointer target type drivers/net/3c515.c: At top level: drivers/net/3c515.c:406: warning: initialization discards qualifiers from pointer target type Signed-off-by: Andrew Morton ChangeSet@1.2273.6.146, 2005-01-12 00:21:09-05:00, akpm@osdl.org [PATCH] ixgb whitespace fix Signed-off-by: Andrew Morton ChangeSet@1.2273.6.145, 2005-01-12 00:20:57-05:00, akpm@osdl.org [PATCH] eepro build fix drivers/net/eepro.c:1799: initializer element is not constant drivers/net/eepro.c:1799: (near initialization for `__param_arr_io.num') drivers/net/eepro.c:1800: initializer element is not constant drivers/net/eepro.c:1800: (near initialization for `__param_arr_irq.num') drivers/net/eepro.c:1801: initializer element is not constant drivers/net/eepro.c:1801: (near initialization for `__param_arr_mem.num') Signed-off-by: Andrew Morton ChangeSet@1.2273.6.144, 2005-01-12 00:18:52-05:00, jgarzik@pobox.com Merge pobox.com:/garz/repo/linux-2.6 into pobox.com:/garz/repo/net-drivers-2.6 ChangeSet@1.2273.6.143, 2005-01-11 19:48:12-08:00, torvalds@ppc970.osdl.org Linux 2.6.11-rc1 TAG: v2.6.11-rc1