ChangeSet@1.1991, 2004-09-22 18:32:59-07:00, benh@kernel.crashing.org [PATCH] pmac: don't add °C suffix in sys for adt746x driver The adt746x driver currently adds a "°C" suffix to temperatures exposed via sysfs, and I don't like that. First, we all agree that any other unit here makes no sense (do we ? do we ? yes of course :) and I don't like having anything but numbers in there, and finally it's more consistent with what the g5 driver does. And finally, the _REAL_ reason is that this is not a low ASCII character and so has nothing to do in the kernel sources or in /sys :) Unfortunately, generating a patch here is nasty because of that (my mailer is rightfully complaining about the non-ASCII char on text import) so you might have to apply by hand... Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1990, 2004-09-22 18:26:41-07:00, nacc@us.ibm.com [PATCH] net/airport: replace schedule_timeout() with ssleep()/msleep() Signed-off-by: Nishanth Aravamudan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1989, 2004-09-22 18:26:29-07:00, nico@cam.org [PATCH] update MAINTAINERS/CREDITS Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1988, 2004-09-22 18:26:17-07:00, mingo@elte.hu [PATCH] fix diskstats_show() accounting with PREEMPT There is another (minor) bug that the smp_processor_id() debugger unearthed: diskstats_show() could do a disk_round_stats() -> disk_stat_add() with preemption enabled - possibly resulting in losing statistics updates. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1987, 2004-09-22 18:26:05-07:00, linux@dominikbrodowski.de [PATCH] powernow-k7: fix latency calculation fix ->cpuinfo.transition_latency for powernow-k7 Signed-off-by: Bruno Ducrot Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1986, 2004-09-22 18:25:53-07:00, agk@redhat.com [PATCH] device-mapper: mirror log sync optional From: Heinz Mauelshagen Make mirror log synchronization optional. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1985, 2004-09-22 18:25:42-07:00, agk@redhat.com [PATCH] device-mapper: rename emit macro Rename EMIT macro to DMEMIT and move to header file. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1984, 2004-09-22 18:25:30-07:00, agk@redhat.com [PATCH] device-mapper: fix minor number check Fix minor number allocation check: (1 << MINORBITS) is invalid. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1983, 2004-09-22 18:25:18-07:00, werner@almesberger.net [PATCH] round log buffer size to power of two If setting the printk log buffer (with the boot command line option "log_buf_len") to a value that's not a power of two, the index calculations go wrong and yield confusing results. This patch rounds the size to the next higher power of two. It'll yield garbage for sizes > INT_MAX bytes. Signed-off-by: Werner Almesberger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1982, 2004-09-22 18:25:06-07:00, torben.mathiasen@hp.com [PATCH] devices.txt update - s/390 dasd moved to major 94. - s/390 VM/ESA moved to major 95. - INFTL moved to major 96. - Patch also adds Marvell MPSC low-density device to Minor 44 & 45 (Major 204). This one was in my queue. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1981, 2004-09-22 18:24:54-07:00, schwidefsky@de.ibm.com [PATCH] s390: qeth network driver From: Steffen Thoss From: Ursula Braun-Krahl qeth network driver change: - Change misleading message about hardware ip fragmentation. - Include qeth_snmp_ureq_hdr structure in user copy in qeth_snmp_command. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1980, 2004-09-22 18:24:42-07:00, schwidefsky@de.ibm.com [PATCH] s390: dasd driver From: Horst Hummel dasd driver changes: - Add control unit types 0x2107 and 0x1750. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1979, 2004-09-22 18:24:30-07:00, schwidefsky@de.ibm.com [PATCH] s390: core changes s390 core changes: - Replace invoke_softirq mechanism with own version of do_softirq. - Move /proc/inteerrupts functions to re-added arch/s390/kernel/irq.c - Add some includes to avoid compiler warnings. - Remove unused #defines. - Regenerate default configuration. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1978, 2004-09-22 18:24:18-07:00, juhl-lkml@dif.dk [PATCH] check copy_from_user return value in act2000_isa_download Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1977, 2004-09-22 18:24:06-07:00, vda@port.imtp.ilyichevsk.odessa.ua [PATCH] reduce stack consumption in load_elf_binary Stack usage is reduced from 268 to 120 bytes on i386. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1976, 2004-09-22 18:23:54-07:00, yuasa@hh.iij4u.or.jp [PATCH] mips: fixed definition order of _sigchld This change had fixed definition order of _sigchld about MIPS. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1975, 2004-09-22 18:23:42-07:00, mikpe@csd.uu.se [PATCH] Specialix RIO driver gcc-3.4 fixes This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.6.9-rc2 kernel's Specialix RIO driver. This is a forward port of the fix I made for the 2.4 kernel. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1974, 2004-09-22 18:23:30-07:00, olh@suse.de [PATCH] fix make O= for ppc64/boot make ARCH=ppc64 -j12 O=/dev/shm/R all fails, the linker script is not in the output directory. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1973, 2004-09-22 18:23:18-07:00, mikpe@csd.uu.se [PATCH] WANPIPE/SDLA driver gcc-3.4 fixes This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.6.9-rc2 kernel's WANPIPE/SDLA net drivers. This is a forward port of the fix I made for the 2.4 kernel. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1972, 2004-09-22 18:23:06-07:00, jhe@us.ibm.com [PATCH] compat_sys_fcntl64: fix for locking near end of file Here's a patch to fix a bug in compat_sys_fcntl64 in fs/compat.c. The bug occurs with a 32 bit app that calls fcntl and checking for a lock near the end of a file. struct flock sflp; sflp.l_start = 2147483345; sflp.l_len = 302; /* 2147483345 + 302 == 2147483647 (this should not overflow 31 bits) */ /* 2^31 == 2147483648 */ fcntl_stat = fcntl(fd, F_GETLK, &sflp); The patch also contains a fix to handle l_len < 0 which is now defined in POSIX 1003.1-2001 from the fcntl man page. Signed-off-by: John Engel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1971, 2004-09-22 18:22:55-07:00, yuasa@hh.iij4u.or.jp [PATCH] mips: fixed undeclared giu_cascade This change had fixed undeclared identifier in arch/mips/vr41xx/common/giu.c Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1970, 2004-09-22 18:22:43-07:00, yuasa@hh.iij4u.or.jp [PATCH] mips: fixed initialization error This change had fixed initialization error in arch/mips/vr41xx/common/icu.c Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1969, 2004-09-22 18:22:31-07:00, yuasa@hh.iij4u.or.jp [PATCH] mips: fixed vr41xx serial UPF_RESOURCES isn't used now. Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1968, 2004-09-22 18:22:19-07:00, kaigai@ak.jp.nec.com [PATCH] list_replace_rcu() in include/linux/list.h This attached patch adds list_replace_rcu() to include/linux/list.h for atomic updating operations according to RCU-model. void list_replace_rcu(struct list_head *old, struct list_head *new) The 'old' element is detached from the linked list, and the 'new' element is inserted to the same point of the linked list concurrently. This patch is necessary for the performance improvement of SELinux. See, http://lkml.org/lkml/2004/8/16/54 (Subject: RCU issue with SELinux) http://lkml.org/lkml/2004/8/30/63 (Subject: [PATCH]SELinux performance improvement by RCU) Signed-off-by: KaiGai, Kohei Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1967, 2004-09-22 18:22:07-07:00, jeffm@suse.com [PATCH] Fix for default ACL handling on ReiserFS reiserfs_set_xattr() explicitly updates the ctime for the host inode. This works for direct setfacl/setfattr calls, but for the more common case of an inherited default ACL, it breaks. The ACL is inherited in the middle of the new inode creation, before the inode has been hashed. When mark_inode_dirty is called, one of the checks bails out if the inode is unhashed -- but AFTER inode->i_state is updated, so the inode is marked dirty but never placed on any dirty list. Since the inode is never placed on a dirty list, __sync_single_inode from the writeback_inodes() path can never be called on it to clear the dirty flags. Once the inode is hashed and mark_inode_dirty is called for it again, it's too late -- it will bail early assuming (correctly) that the inode is already marked dirty. This ultimately results in I/O stalls that can't be resolved by the fs path, only be the memory allocation path that uses pages directly. The attached patch makes the update of the ctime conditional on the inode being hashed already. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1966, 2004-09-22 18:21:55-07:00, ryan@spitfire.gotdns.org [PATCH] implement roundup_pow_two() Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1965, 2004-09-22 18:21:43-07:00, dev@sw.ru [PATCH] Rearrangement of inode_lock in writeback_inodes() This patch reaaranges inode_lock taking in writeback_inodes(). It narrows down use of inode_lock and removes unneccassary nesting of sb_lock and inode_lock. Instead of holding inode_lock for all the time I moved it around sync_sb_inodes() as it is in all other places. Signed-Off-By: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1964, 2004-09-22 18:21:31-07:00, dev@sw.ru [PATCH] Fix of race in writeback_inodes() This patch fixes race in writeback_inodes() described below: writeback_inodes() { .... sb->s_count++; spin_unlock(&sb_lock); .... spin_lock(&sb_lock); if (__put_super(sb)) <<< X goto restart; } } deactivate_super() { fs->kill_sb(s); kill_block_super(sb) generic_shutdown_super(sb) spin_lock(&sb_lock); list_del(&sb->s_list); <<< Y spin_unlock(&sb_lock); .... put_super(s); spin_lock(&sb_lock); __put_super(sb); <<< Z spin_unlock(&sb_lock); } The problem with it is that writeback_inodes() supposes that if __put_super() returns 0 then no super block was deleted from the list and we can safely traverse sb list further. But as it is obvious from the deactivate_super() it's not actually true. because at point Y we delete super block from the list and drop the lock. We do __put_super() very much later... So we can find sb with poisoned sb->s_list at point X and we won't be the last sb reference holders. The last reference will be dropped in point Z. So in case of the following sequence of execution Y -> X -> Z we'll get an oops after point X in writeback_inodes(). This patch introduces __put_super_and_need_restart() function which allows safe traversing of sb list. I'll send a couple of patches later which remove O(n^2) algos and using this function. Signed-Off-By: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1963, 2004-09-22 18:21:19-07:00, anil.s.keshavamurthy@intel.com [PATCH] Online CPU with maxcpus option panics I booted IA64 kernel with "maxcpus=" set to less than the total available processors in the system. Then I tried to online the CPU which was offline due to "maxcpus=" restirction. i.e when I tried to online the CPU which never was online at boot crashed the system. Signed-off-by: Anil Keshavamurthy Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1962, 2004-09-22 18:21:08-07:00, sfr@canb.auug.org.au [PATCH] ppc64 iSeries: allow ibmvscsic to initialise This patch supplies an device so that ibmvscsic will actually have its probe routine called and so allow ti to actually initialise on (legacy) iSeries machines. It also adds a device for the virtual console (for consistency only at the moment). Signed-off-by: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1961, 2004-09-22 18:20:57-07:00, anton@samba.org [PATCH] ppc64: User tasks must have a valid thread.regs There have been reports of problems running UP ppc64 kernels where the kernel would die in the floating point save/restore code. It turns out kernel threads that call exec (and so become user tasks) do not have a valid thread.regs. This means init (pid 1) does not, it also means anything called out of exec_usermodehelper does not. Once that task has forked (eg init), then the thread.regs in the new task is correctly set. On UP do lazy save/restore of floating point regs. The SLES9 init is doing floating point (the debian version of init appears not to). The lack of thread.regs in init combined with the fact that it does floating point leads to our lazy FP save/restore code blowing up. There were other places where this problem exhibited itself in weird and interesting ways. If a task being exec'ed out of a kernel thread used more than 1MB of stack, it would be terminated due to the checks in arch/ppc64/mm/fault.c (looking for a valid thread.regs when extending the stack). We had a test case using the tux webserver that was failing due to this. Since we zero all registers in ELF_PLAT_INIT, I removed the extra memset in start_thread32. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1960, 2004-09-22 18:20:45-07:00, nacc@us.ibm.com [PATCH] macintosh/therm_windtunnel: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1959, 2004-09-22 18:20:34-07:00, nacc@us.ibm.com [PATCH] macintosh/macserial: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1958, 2004-09-22 18:20:22-07:00, afleming@freescale.com [PATCH] ppc32: 85xx spurious interrupt bug The Spurious interrupt assignment for OpenPIC was the constant, OPENPIC_VEC_SPURIOUS plus the offset passed in. Due to bugs in some OpenPICs, the end value needed to be 255 on those systems. However, the constant was then chosen to be 239, because offset on most systems is 16. The 85xx has an offset of 64, however, and so this assignment caused lock-ups during boot. The proposed solution is to declare OPENPIC_VEC_SPURIOUS to be 255, and use that value directly, instead of adding the offset to it. Signed-off-by: Tom Rini Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1957, 2004-09-22 18:20:10-07:00, adaplas@hotpop.com [PATCH] fbdev: Arrange driver order in Makefile This patch arranges driver order in 'driver/video/Makefile' so it closely, but not exactly, follows the previous order in 'drivers/video/fbmem.c'. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1956, 2004-09-22 18:19:58-07:00, adaplas@hotpop.com [PATCH] fbdev: Initialize i810fb after agpgart This patch places 'video/i810/' after 'char/' in drivers/Makefile. This order change makes it unnecessary for i810fb to explicitly call agp_intel_init(). This is untested, as I don't have any i810 hardware anymore, but I believe it will work. If it does, the ugly 'early initialization hack' in drivers/char/agp/intel-agp.c:agp_intel_init() can be removed (haven't done it yet). Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1955, 2004-09-22 18:19:45-07:00, adaplas@hotpop.com [PATCH] fbcon: fix fbcon's setup routine Fix fbcon's setup routine so usage is consistent with previous kernels. Ie: video=ofonly and video=xxxfb:off should work. This is done by fb_get_options() returning a nonzero value if: - 'off' option is present - 'ofonly' is present but driver name is not 'offb' All drivers will not proceed with their initialization if return value is nonzero. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1954, 2004-09-22 18:19:30-07:00, adaplas@hotpop.com [PATCH] fbdev: Fix userland compile breakage From: Michal Januszewski "The latest changes introduced to the fb structs in linux/fb.h make compilation of userspace programs break with: include/linux/fb.h:305: error: field `modelist' has incomplete type This is caused by struct list_head not being seen from userspace." This patch removes struct list_head modelist from struct fb_monspecs and moves it to struct fb_info instead, and for now, enclosed struct fb_monspecs by #ifdef __KERNEL__/#endif. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1953, 2004-09-22 18:19:19-07:00, kraxel@bytesex.org [PATCH] bttv bugfix This fixes a initialization order bug in bttv, also known as "dark red image bug". Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1952, 2004-09-22 18:19:07-07:00, shaohua.li@intel.com [PATCH] idr: fix missing spin_unlock() Signed-off-by: Li Shaohua Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1951, 2004-09-22 18:18:55-07:00, jbarnes@engr.sgi.com [PATCH] mmtimer cleanups A few cleanups that probably should have been done a long time ago: o remove test program from mmtimer.h o move name, desc., etc. #defines from mmtimer.h to mmtimer.c o document what mmtimer.c is a little better o some whitespace cleanups for linewrapping and such Signed-off-by: Jesse Barnes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1950, 2004-09-22 18:18:43-07:00, kihara.seiji@lab.ntt.co.jp [PATCH] ext3: journalled data fsync fix This optimisation data=journal isn't working right, because journalled-data pages are not marked dirty when they are dirty against the journal. Hence I_DIRTY_PAGES doesn't get set hence we can fail to sync the file under some circumstances. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1949, 2004-09-22 23:06:41+00:00, aegl@agluck-lia64.sc.intel.com Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/alex into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9 ChangeSet@1.1948, 2004-09-22 08:57:44-07:00, roland@topspin.com [PATCH] ppc64: remove pSeries IO token translations Get rid of IO_TOKEN_TO_ADDR() and IO_ADDR_TO_TOKEN() for pSeries EEH; the conversion to tokens is not needed now that we have __iomem annotations to prevent drivers from dereferencing IO addresses. The IO tokens meant that the __raw_ IO accesses wouldn't have worked, and removing the debugging vestiges simplifies the code noticeably. Signed-off-by: Roland Dreier Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.56, 2004-09-22 08:33:58-07:00, viro@www.linux.org.uk [PATCH] drivers/input annotations * vortex.c: trivial __iomem annotations * serio_raw.c and tsdev.c: equally trivial __user ones. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.55, 2004-09-22 08:33:46-07:00, viro@www.linux.org.uk [PATCH] applicom iomem annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.54, 2004-09-22 08:33:34-07:00, viro@www.linux.org.uk [PATCH] net2280 iomem annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.53, 2004-09-22 08:33:22-07:00, viro@www.linux.org.uk [PATCH] rxrpc endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.52, 2004-09-22 08:33:10-07:00, viro@www.linux.org.uk [PATCH] afs endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.51, 2004-09-22 08:32:58-07:00, viro@www.linux.org.uk [PATCH] jbd endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.50, 2004-09-22 08:32:46-07:00, viro@www.linux.org.uk [PATCH] efs endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.49, 2004-09-22 08:32:34-07:00, viro@www.linux.org.uk [PATCH] fat endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.48, 2004-09-22 08:32:22-07:00, viro@www.linux.org.uk [PATCH] ext3 endianness annotations and bugfixes * missing le32_to_cpu() in a bunch of printks * on big-endian boxen ext3_error() failed to set EXT3_ERROR_FS in ->s_state (cpu_to_le32() instead of cpu_to_le16()) Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.47, 2004-09-22 08:32:10-07:00, viro@www.linux.org.uk [PATCH] sysvfs endianness annotations and bugfixes missing fs32_to_cpu() for on-disk ->s_type. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.46, 2004-09-22 08:31:58-07:00, axboe@suse.de [PATCH] bio_unmap_user(): original bio passed in With the recent bio mapping changes, the caller must pass in the original bio for unmapping again (and they do). So kill this dead code, it could cause problems in situations where someone has used bi_private for something else. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds ChangeSet@1.1942.1.2, 2004-09-22 10:11:14+01:00, aia21@cantab.net NTFS: 2.1.18 release - Minor cleanup of fs/ntfs/inode.c::ntfs_init_locked_inode(). - Bump version number and update Documentation/filesystems/ntfs.txt Signed-off-by: Anton Altaparmakov ChangeSet@1.1939.1.44, 2004-09-21 16:53:11-07:00, viro@www.linux.org.uk [PATCH] cifs: IPv4-related endianness annotations and bugfixes missing htons() in assigning .sin_port for reconnect Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.43, 2004-09-21 16:52:59-07:00, viro@www.linux.org.uk [PATCH] cifs: assorted endianness bugfixes a) Flags2 left little-endian. SMBFLG2_... definitions switched to cpu_to_le16(...), which kills the need of conversions in ->Flags2. b) FILE_SYSTEM_UNIX_INFO (never used anywhere) is left little-endian; when users appear, they can convert themselves. c) bugfix: in CIFSSessSetup() we used SecurityBlobLength of response without conversion. That would screw bigendian clients with servers that give wcnt=4. d) bugfix: in CIFSNTLMSSPNegotiateSessSetup() we use SecurityBlob2->NegotiateFlags without conversion. Again, problem on big-endian. e) bugfix: SecurityBlob->MessageType is *not* host-endian. f) bugfix: ->sendmsg() expects its last argument to be equal to sum of iovec lengths, so the value passed to kernel_sendmsg()/sock_sendmsg() would better be correct... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.42, 2004-09-21 16:52:48-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate SESSION_SETUP_ANX Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.41, 2004-09-21 16:52:36-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TCONX_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.40, 2004-09-21 16:52:24-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate smb_hdr Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.39, 2004-09-21 16:52:11-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate T2_F{FIRST,NEXT|_RSP_PARMS Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.38, 2004-09-21 16:52:02-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate FILE_SYSTEM_ATTRIBUTE_INFO Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.37, 2004-09-21 16:51:50-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate FILE_SYSTEM_DEVICE_INFO Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.36, 2004-09-21 16:51:38-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate FILE_DIRECTORY_INFO, clean up cifs_readdir() Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.35, 2004-09-21 16:51:26-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate stat-related structures Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.34, 2004-09-21 16:51:14-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate fea{,list}, endianness bugfix in CIFSSMSetEA() ->list_len got (__u32)cpu_to_le16() instead of cpu_to_le32(). Broken on big-endian... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.33, 2004-09-21 16:51:03-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACT_CHANGE_NOTIFY_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.32, 2004-09-21 16:50:51-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate file_..._info Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.31, 2004-09-21 16:50:39-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_QFSI_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.30, 2004-09-21 16:50:27-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_GET_DFS_REFER_{REQ,RESP}, minor endianness bugfix missing le..._to_cpu() in debugging printk Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.29, 2004-09-21 16:50:16-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_FNEXT_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.28, 2004-09-21 16:50:04-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_FFIRST_{REQ,RESP}, typo fix in CIFSSMBFindSingle() in CIFSSMBFindSingle() pSMB->TotalParameterCount got wrong value due to typo. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.27, 2004-09-21 16:49:52-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACT_IOCTL_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.26, 2004-09-21 16:49:40-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_QPI_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.25, 2004-09-21 16:49:28-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate NT_RENAME_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.24, 2004-09-21 16:49:16-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_SPI_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.23, 2004-09-21 16:49:05-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate COPY_{REQ,RESP}, minor endianness bugfix missing le16_to_cpu() in debugging printk Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.22, 2004-09-21 16:48:50-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate TRANSACTION2_SFI_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.21, 2004-09-21 16:48:38-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate RENAME_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.20, 2004-09-21 16:48:26-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate LOCK_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.19, 2004-09-21 16:48:14-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate WRITE_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.18, 2004-09-21 16:48:02-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate READ_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.17, 2004-09-21 16:47:49-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate OPEN_{REQ,RESP}, endianness bugfix in assignment to OPEN_REQ ->SecurityFlags we did u8 = cpu_to_le32(v8), which breaks on big-endian. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.16, 2004-09-21 16:47:37-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate CREATE_DIRECTORY_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.15, 2004-09-21 16:47:25-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate DELETE_DIRECTORY_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.14, 2004-09-21 16:47:13-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate DELETE_FILE_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1939.1.13, 2004-09-21 16:47:01-07:00, viro@www.linux.org.uk [PATCH] cifs: annotate NEGOTIATE_{REQ,RESP} Signed-off-by: Al Viro Signed-off-by: Linus Torvalds ChangeSet@1.1929.1.11, 2004-09-21 19:32:49-07:00, davem@nuts.davemloft.net Cset exclude: pablo@eurodev.net|ChangeSet|20040828001121|29246 ChangeSet@1.1929.1.10, 2004-09-21 19:19:42-07:00, yoshfuji@linux-ipv6.org [NET]: Fix non-existent reference to tulip.txt Signed-off-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller ChangeSet@1.1929.1.9, 2004-09-21 19:17:02-07:00, tgraf@suug.ch [NET]: Fix ifmap alignment issues over rtnetlink Introduces a fixed size variant of ifmap for rtnetlink. Fixes issues with address size mismatch between kernel and userspace. Obviously this will fail if userspace provides an address greater than 32bit. Signed-off-by: Thomas Graf SIgned-off-by: David S. Miller ChangeSet@1.1929.1.8, 2004-09-21 19:14:39-07:00, herbert@gondor.apana.org.au [IPV4]: Fix some stray IP_ROUTE_TOS references. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1929.1.7, 2004-09-21 16:37:09-07:00, davem@nuts.davemloft.net [NET]: Add ethtool support to loopback driver. Signed-off-by: David S. Miller ChangeSet@1.1929.1.6, 2004-09-21 16:32:41-07:00, davem@nuts.davemloft.net [IPV4]: Fix list traversal in fn_hash_insert(). Could create an endless loop during route replace operations. Signed-off-by: David S. Miller ChangeSet@1.1939.6.4, 2004-09-21 14:59:49-07:00, chas@cmf.nrl.navy.mil [ATM]: [he] Make code more readable with list_for_each_entry From Domen Puncer Signed-off-by: David S. Miller ChangeSet@1.1939.6.3, 2004-09-21 14:58:34-07:00, chas@cmf.nrl.navy.mil [ATM]: [drivers] Use msleep() instead of schedule_timeout() From Nishanth Aravamudan Signed-off-by: David S. Miller ChangeSet@1.1939.6.2, 2004-09-21 14:28:56-07:00, davem@nuts.davemloft.net [ATM]: Use __iomem where appropriate. Signed-off-by: David S. Miller ChangeSet@1.1939.6.1, 2004-09-21 14:25:10-07:00, chas@cmd.nrl.navy.mil [ATM]: [drivers] fix warnings related to readl/writel changes Signed-off-by: David S. Miller ChangeSet@1.1942.1.1, 2004-09-21 22:09:57+01:00, aia21@cantab.net NTFS: - Fix endianness bug in ntfs_external_attr_find(). - Change ntfs_{external_,}attr_find() to return 0 on success, -ENOENT if the attribute is not found, and -EIO on real error. In the case of -ENOENT, the search context is updated to describe the attribute before which the attribute being searched for would need to be inserted if such an action were to be desired and in the case of ntfs_external_attr_find() the search context is also updated to indicate the attribute list entry before which the attribute list entry of the attribute being searched for would need to be inserted if such an action were to be desired. Also make ntfs_find_attr() static and remove its prototype from attrib.h as it is not used anywhere other than attrib.c. Update ntfs_attr_lookup() and all callers of ntfs_{external,}attr_{find,lookup}() for the new return values. - Force use of ntfs_attr_find() in ntfs_attr_lookup() when searching for the attribute list attribute itself. Signed-off-by: Anton Altaparmakov ChangeSet@1.1939.1.9, 2004-09-21 13:44:36-07:00, davem@nuts.davemloft.net [SPARC64]: Update compat code for sys_waitid changes. Signed-off-by: David S. Miller ChangeSet@1.1929.1.5, 2004-09-21 13:35:49-07:00, davem@nuts.davemloft.net [IPV4]: Zap CONFIG_IP_ROUTE_TOS These facilities are now available by default. The config option makes no sense because: 1) It makes no change to the layout of any data structure, therefore it has no impact upon memory usage of the routing tables. 2) It makes no significant change to code size, only a handfull of lookup comparisons are protected by the option. 3) It is needed for full RFC1812 compliance anyways. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1929.1.4, 2004-09-21 13:29:32-07:00, davem@nuts.davemloft.net [IPV4]: Clean up fib_hash.c list handling. 1) Use linux/list.h facilities instead of by-hand list implementation. 2) Use fib_alias structure, hung off of fib_node, to represent routes which all have the same destination prefix, yet have different TOS and priority values. Signed-off-by: David S. Miller ChangeSet@1.1867.3.8, 2004-09-21 19:47:47+00:00, jbarnes@sgi.com [IA64] sn2_defconfig update take 2 Please apply this one instead. It turns on mmtimer and increases the number of sg entries for the LSI driver. Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck ChangeSet@1.1898.1.17, 2004-09-21 19:41:02+00:00, gordon.jin@intel.com [IA64] ia32compat: Disable syscalls sys32_iopl() and sys32_ioperm() on ia64. Disable syscalls sys32_iopl() and sys32_ioperm() on ia64. To emulate these 2 syscalls correctly, we need to guarantee uncached memory attributes on ia64, which is difficult. The only user of this interface that we know of is X. So we think it's better to disable it. Signed-off-by: Gordon Jin Signed-off-by: Arun Sharma Signed-off-by: Tony Luck ChangeSet@1.1898.1.16, 2004-09-21 19:38:16+00:00, kevin.tian@intel.com [IA64] ia32compat: Put signal restorer code on a gate page When userland doesn't specify sigaction->sa_restorer, we try to put the restorer code on the stack. But this breaks ia32 binaries with non-executable stacks. We now put the restorer code on a gate page. Signed-off-by: Kevin Tian Signed-off-by: Arun Sharma Signed-off-by: Tony Luck ChangeSet@1.1939.1.8, 2004-09-21 07:43:51-07:00, roland@redhat.com [PATCH] x86-64: waitid fallout This patch updates the x86-64's compat code to handle the new argument to waitid. Sorry for the oversight. ChangeSet@1.1939.1.7, 2004-09-21 07:40:31-07:00, rusty@au1.ibm.com [PATCH] Warn that ipchains and ipfwadm are going away At the recent netfilter workshop in Erlangen, we was decided to remove the backwards compatibility code for ipchains and ipfwadm. This will allow significant cleanup of interfaces, since we had to have a mid-level interface for the backwards compatibility layer to use. Start off with a warning for 2.6.9, so any remaining users have a chance to migrate. Their firewall scripts might not check return values, and they might get a nasty surprise when this goes away. ChangeSet@1.1939.1.6, 2004-09-21 07:40:19-07:00, rusty@au1.ibm.com [PATCH] Another ip_conntrack seq fix: ip_conntrack_expect /proc/net/ip_conntrack_expect was changed over to seq_file, but a \n is missing. ChangeSet@1.1939.4.4, 2004-09-21 07:11:36-07:00, benh@kernel.crashing.org [PATCH] ppc64: Fix __raw_* IO accessors Linus removed the "volatile" statement from the definition of the __raw_* IO accessors on ppc64, which cause some real bad optisations to happen in some fbdev's like matroxfb to happen (just imagine that matroxfb loops reading an IO register waiting for a bit to change). The __raw_xxxx() functions still want ordered accesses (they avoid the byteswap, though) Signed-off-by: Benjamin Herrenschmidt ChangeSet@1.1942, 2004-09-21 12:57:50+01:00, aia21@cantab.net NTFS: Rename {{re,}init,get,put}_attr_search_ctx() to ntfs_attr_{{re,}init,get,put}_search_ctx() as well as the type attr_search_context to ntfs_attr_search_ctx. Signed-off-by: Anton Altaparmakov ChangeSet@1.1941, 2004-09-21 12:30:02+01:00, aia21@cantab.net NTFS: Rename {find,lookup}_attr() to ntfs_attr_{find,lookup}() as well as find_external_attr() to ntfs_external_attr_find() to cleanup the namespace a bit and to be more consistent with libntfs. Signed-off-by: Anton Altaparmakov ChangeSet@1.1939.5.3, 2004-09-21 00:55:21-07:00, rth@kanga.twiddle.home [ALPHA] Add compile-time assert concerning rt_sigframe layout. ChangeSet@1.1939.5.2, 2004-09-21 00:53:57-07:00, rth@kanga.twiddle.home Correct prototypes for sys_wait4 and sys_waitpid. ChangeSet@1.1939.5.1, 2004-09-21 00:53:02-07:00, rth@kanga.twiddle.home [ALPHA] Fix some compiler warnings from gcc 4. ChangeSet@1.1939.4.3, 2004-09-20 13:46:20-07:00, davem@nuts.davemloft.net [SPARC64]: Fix memset() in sunsu.c and sunzilog.c sizeof(ptr) --> sizeof(*ptr) Signed-off-by: David S. Miller ChangeSet@1.1939.4.2, 2004-09-20 13:45:14-07:00, davem@nuts.davemloft.net [SPARC64]: Improve kernel stack backtraces. In particular, handle init_task backtraces. Signed-off-by: David S. Miller ChangeSet@1.1939.1.4, 2004-09-20 21:11:41+01:00, rmk@flint.arm.linux.org.uk [MMC] Ensure semaphores are initialised before use. Gah. ChangeSet@1.1939.1.3, 2004-09-20 20:44:59+01:00, rmk@flint.arm.linux.org.uk [MMC] PXAMCI: enable use of platform specific data. This allows platforms to hook in their card detection, power control and power availability information. ChangeSet@1.1939.4.1, 2004-09-20 11:47:58-07:00, torvalds@ppc970.osdl.org ppc32: merge network card Kconfig duplication ChangeSet@1.1923.1.5, 2004-09-20 14:14:46-04:00, achirica@telefonica.net [PATCH] Compatibility fixes for different card versions ChangeSet@1.1923.1.4, 2004-09-20 14:05:51-04:00, romieu@fr.zoreil.com [PATCH] r8169: default on disabling PCIDAC Default to disabling PCI DAC as this option appears unsafe on amd64 (original suggestion by Hans-Frieder Vogt ). The driver will typically report PCI System error when something goes wrong. The relevant interrupt is not masked any more and the driver can thus be disabled. Signed-off-by: Francois Romieu ChangeSet@1.1939.3.1, 2004-09-20 18:22:26+01:00, rmk@flint.arm.linux.org.uk [ARM] Prevent state machine leakage in ARM APM emulation. Don't allow threads which are acking a suspend request to leave the APM ioctl call. This prevents the state machine breaking. ChangeSet@1.1939.2.2, 2004-09-20 21:39:18+10:00, airlied@starflyer.(none) drm: drop __HAVE_COUNTER macros This removes all the __HAVE_COUNTER macro and replaces them with the driver setting the values in its register_fns. Signed-off-by: Dave Airlie ChangeSet@1.1939.2.1, 2004-09-20 20:07:23+10:00, airlied@starflyer.(none) drm: complete fix for drm_scatter.h Another issue from the macro conversion. Signed-off-by: Dave Airlie ChangeSet@1.1939.1.2, 2004-09-20 10:21:45+01:00, rmk@flint.arm.linux.org.uk [MMC] Ensure PXA MMC interrupts are disabled on chip. ChangeSet@1.1939.1.1, 2004-09-20 10:07:54+01:00, rmk@flint.arm.linux.org.uk [MMC] Fix mmc_block suspend/resume handling (again). The previous change is not the whole story - the mmc queue thread may be handling a request. We must wait for outstanding requests to complete before allowing the suspend to proceed, otherwise we may suffer loss of data. ChangeSet@1.1940, 2004-09-20 09:24:11+01:00, ntfs@flatcap.org Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6 into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel ChangeSet@1.1939, 2004-09-19 18:56:22+01:00, rmk@flint.arm.linux.org.uk [MMC] Fix suspend/resume buglet. Block wants the queue spinlock and interrupts disabled for blk_stop_queue() and blk_start_queue(). ChangeSet@1.1936, 2004-09-18 12:17:07-07:00, torvalds@ppc970.osdl.org usb: add host controller __iomem annotations ChangeSet@1.1923.6.5, 2004-09-18 17:47:23+01:00, rmk@flint.arm.linux.org.uk [MMC] Add v2.x and v3.x CID parsing. ChangeSet@1.1935, 2004-09-18 09:35:55-07:00, nickpiggin@yahoo.com.au [PATCH] fix missing unlock_page in mm/rmap.c A required unlock_page will be missed in a very rare (but possible) race condition. Acked by Hugh, who says: It'll be hard to hit because of the additional page_mapped test above, with truncate unmapping ptes from mms before it advances to removing pages from cache; but nothing to prevent it happening. Signed-off-by: Nick Piggin Signed-off-by: Hugh Dickins Signed-off-by: Linus Torvalds ChangeSet@1.1923.6.4, 2004-09-18 16:32:07+01:00, rmk@flint.arm.linux.org.uk [MMC] Clean up MMC card CID/CSD decoding, stage 1. Now that the raw CSD and CID information are available in mmc_card, there's little point not passing the mmc_card structure into the decode functions themselves. This will be necessary, since there's several different formats of CID decode, and the format appears to depend on data in the CSD. If we are unable to decode the CID or CSD, we can mark the card bad and refuse to bind it to any drivers. Users can then retrieve the raw undecoded CID and CSD from sysfs for debugging purposes. ChangeSet@1.1923.6.3, 2004-09-18 16:06:51+01:00, rmk@flint.arm.linux.org.uk [MMC] Export raw MMC card CID and CSD registers via device model. ChangeSet@1.1923.6.2, 2004-09-18 15:38:44+01:00, rmk@flint.arm.linux.org.uk [MMC] Save MMC card raw CSD structure. ChangeSet@1.1923.6.1, 2004-09-18 10:50:57+01:00, rmk@flint.arm.linux.org.uk [MMC] Use raw CID rather than decoded CID Save the raw CID information, and use this to match cards with their corresponding mmc_card structure. Different protocol revisions have different CID formats. ChangeSet@1.1929.1.3, 2004-09-17 23:20:35-07:00, herbert@gondor.apana.org.au [IPV4]: Size fib_info_devhash[] correctly. There is a thinko in the allocation for the devindex hash. We're only giving it 8 elements when it should be 1<<8 elements. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1929.1.2, 2004-09-17 23:17:16-07:00, davem@nuts.davemloft.net [IPV4]: Fix BUG triggered in fib_sync_down() If you modload then unload a network device, without creating any ipv4 routes, it is possible for the laddr hash to be not allocated yet in fib_semantics. Signed-off-by: David S. Miller ChangeSet@1.1929.1.1, 2004-09-17 15:17:53-07:00, davem@nuts.davemloft.net [XFRM] make xfrm_lookup() fully af-independent. Simplified from 2 patches by Hideaki YOSHIFUJI Signed-off-by: David S. Miller ChangeSet@1.1933, 2004-09-17 14:27:00-07:00, torvalds@ppc970.osdl.org fb: add __iomem annotations to cfbfillrect ChangeSet@1.1932, 2004-09-17 13:54:21-07:00, torvalds@ppc970.osdl.org fb: add __iomem annotations to cfbcopyarea ChangeSet@1.1931, 2004-09-17 13:52:54-07:00, torvalds@ppc970.osdl.org sym53c8xx_2: remove unnecessary IO pointer casts They just meant that the __iomem annotation couldn't shine through. ChangeSet@1.1930, 2004-09-17 13:36:24-07:00, torvalds@ppc970.osdl.org Do __iomem annotations on VGA state handling ChangeSet@1.1929, 2004-09-17 13:20:32-07:00, torvalds@ppc970.osdl.org ppc64: Need to define HPAGE_SHIFT even when HUGETLB_PAGE not configured. Required for the recent removal of LARGE_PAGE_SHIFT. ChangeSet@1.1928, 2004-09-17 13:00:30-07:00, trond.myklebust@fys.uio.no [PATCH] __iomem fixups for atiixp soundcards Signed-off-by: Trond Myklebust Signed-off-by: Linus Torvalds ChangeSet@1.1923.5.1, 2004-09-17 20:47:08+01:00, rmk@flint.arm.linux.org.uk [ARM] i8042 is available on many footbridge hosts, not just ARCH_EBSA285 ChangeSet@1.1923.4.102, 2004-09-17 12:31:05-07:00, torvalds@ppc970.osdl.org remove i2o_core.c It is unused and obsolete. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.101, 2004-09-17 12:17:54-07:00, wli@holomorphy.com [PATCH] sparc32: vmalloc address fix Resolves the framebuffer errors on some older sparc32s (we triggered it on a SparcStation 2). Signed-off-by: William Irwin Signed-off-by: Tom 'spot' Callaway Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.100, 2004-09-17 12:17:43-07:00, akpm@osdl.org [PATCH] remove sh64 smplock.h It is unused and obsolete. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.99, 2004-09-17 12:17:28-07:00, holt@sgi.com [PATCH] Fix write() return values for reiserfs. This patch fixes the direct I/O return value for reiserfs writes to be ssize_t instead of int. Signed-off-by: Robin Holt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.98, 2004-09-17 12:17:17-07:00, holt@sgi.com [PATCH] Fix write() return values for tmpfs. This patch makes the return from the write() syscall actually an ssize_t instead of an int. Signed-off-by: Robin Holt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.97, 2004-09-17 12:17:02-07:00, mingo@elte.hu [PATCH] tune vmalloc size There are a few devices that use lots of ioremap space. vmalloc space is a showstopper problem for them. this patch adds the vmalloc= boot parameter to override __VMALLOC_RESERVE. The default is 128mb right now - e.g. vmalloc=256m doubles the size. Signed-off-by: Ingo Molnar Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.96, 2004-09-17 12:16:50-07:00, akpm@osdl.org [PATCH] bio_alloc() cleanup de-spaghettify this function. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.95, 2004-09-17 12:16:36-07:00, dsaxena@plexity.net [PATCH] Add MTD map driver for Intel IXP2000 NPU The following patch adds the MTD map driver for Intel's IXP2000 NPU. The driver is already in MTD CVS and I've gotten the OK from David to push it upstream. Missing Kconfig bits from Lennert Buytenhek Signed-off-by: Deepak Saxena Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.94, 2004-09-17 12:16:21-07:00, dsaxena@plexity.net [PATCH] Update IXP4xx MTD driver from CVS MTD The following patch updates the IXP4xx MTD driver with a compile fix from the CVS repository. David has given me the OK to push this upstream. Signed-off-by: Deepak Saxena Signed-off-by: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.93, 2004-09-17 12:16:07-07:00, dsaxena@plexity.net [PATCH] Document ARM pci=firmware option Added a new pci= command line option specific to ARM systems in -rc2 and it should be added to kernel-parameters.txt. Signed-off-by: Deepak Saxena Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.92, 2004-09-17 12:15:53-07:00, clameter@sgi.com [PATCH] time interpolators logic fix Report the resolution of the time source correctly for time interpolators with a frequency over 1 Ghz. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.91, 2004-09-17 12:15:40-07:00, yuasa@hh.iij4u.or.jp [PATCH] mips: fixed do_signal in arch/mips/kernel/signal.c The change of get_signal_to_deliver() is followed. Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.90, 2004-09-17 12:15:26-07:00, killekulla@rdrz.de [PATCH] ide: remove obsolete CONFIG_BLK_DEV_ADMA In drivers/ide/Kconfig there's a hidden config-item named BLK_DEV_ADMA. Nowhere in the sources are any references to this item, so this option simply is obsolete. This patch removes the according item from drivers/ide/Kconfig. Signed-off-by: Raphael Zimmerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.89, 2004-09-17 12:15:12-07:00, jdike@addtoit.com [PATCH] uml: update defconfig Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.88, 2004-09-17 12:14:58-07:00, jdike@addtoit.com [PATCH] uml: code cleanup Here's another batch of "obviously harmless" changes: comments unsigned long -> __u32 changes for some data that needs to be 32 bits cleanups removal of an unused declaration rearrangement of includes Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.87, 2004-09-17 12:14:45-07:00, jdike@addtoit.com [PATCH] uml: remove useless ioctls The UML block driver had some useless ioctls in it somehow. This gets rid of them. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.86, 2004-09-17 12:14:33-07:00, jdike@addtoit.com [PATCH] uml: network driver fixes This is from Gerd Knorr. It fixes a network hang caused by the host side of an interface being full when the UML interface is brought up, preventing any SIGIOs from happening. It also implements an ioctl needed for ethtool. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.85, 2004-09-17 12:14:19-07:00, jdike@addtoit.com [PATCH] uml: mconsole fixes and cleanups This patch makes a couple of functions static tidies code a bit sends a response on shutdown before the shutdown happens Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.84, 2004-09-17 12:14:08-07:00, jdike@addtoit.com [PATCH] uml: more EINTR protection This adds retrying on EINTR to a couple more places. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.83, 2004-09-17 12:13:53-07:00, jdike@addtoit.com [PATCH] uml: get rid of the arch EXTRAVERSION I thought this was gone already. It was only intended for my own patch numbering, and never intended for any other trees. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.82, 2004-09-17 12:13:41-07:00, jdike@addtoit.com [PATCH] uml: clean up terminal state handling This patch cleans up UML's handling of terminal state with better error handling, interface cleanup, and some code tidying. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.81, 2004-09-17 12:13:30-07:00, jdike@addtoit.com [PATCH] uml: restrict tlb flushing One of UML's tlb flushing routines was ignoring the address range passed in by its callers. This patch fixes that. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.80, 2004-09-17 12:13:18-07:00, jdike@addtoit.com [PATCH] uml: export memmove Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.79, 2004-09-17 12:13:02-07:00, jdike@addtoit.com [PATCH] uml: comment UML's signal handling This adds a couple of comments so that people don't get confused into making misguided fixes, and I don't get confused into applying them. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.78, 2004-09-17 12:12:48-07:00, jdike@addtoit.com [PATCH] uml: copy_user fixes This patch fixes some copy_user bugs: - kernelspace page faults that happen on behalf of a process are now correctly handled - add copy_user treatment so a fault handler which looks at the faulting instruction - added a note to do the same with the ldt stuff some day Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.77, 2004-09-17 12:12:33-07:00, jdike@addtoit.com [PATCH] uml: fix call to sys_clone This patch changes the calling convention of clone on i386 to match that of the host by leaving the fourth argument unused. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.76, 2004-09-17 12:12:22-07:00, jdike@addtoit.com [PATCH] uml: iomem fix This patch rounds up the size of a file used for iomem emulation up to the nearest page. This makes mmap work much better on the last page of the file. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.75, 2004-09-17 12:12:07-07:00, jdike@addtoit.com [PATCH] uml: eliminate signal order delivery dependency On 2.4 hosts signals are delivered in numeric order when there are multiple pending at a given time. UML developed a subtle dependency on this ordering, which broke on 2.6 hosts and the separate process and thread signal queues. This patch eliminates that dependency. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.74, 2004-09-17 12:11:55-07:00, jdike@addtoit.com [PATCH] uml: let page faults always be delivered immediately This allows page faults to be delivered when they happen. Without this, it can happen that a page fault will occur when SIGSEGV is disabled, and the host will then just kill UML because it can't invoke the handler. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.73, 2004-09-17 12:11:41-07:00, jdike@addtoit.com [PATCH] uml: cleaning up This patch is a whole lot of "obviously won't break anything" changes, including renaming the UML console functions more consistently notes to myself code movement making some functions static error path cleanup printk fixes Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.72, 2004-09-17 12:11:29-07:00, jdike@addtoit.com [PATCH] uml: convert the real-time clock to gettimeofday from rdtsc There are a whole bunch of reasons to use gettimeofday rather than rdtsc, so this patch does just that. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.71, 2004-09-17 12:10:46-07:00, jdike@addtoit.com [PATCH] uml: enable the timer *after* the timer handler Otherwise, we'll sometimes get timer interrupts that we can't handle. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.70, 2004-09-17 12:10:32-07:00, jdike@addtoit.com [PATCH] uml: fix a signal race This patch saves and restores UML's idea of user mode across an interrupt. Without this, an interrupt arriving at the wrong time can cause UML to lose track of whether an interrupted handler is handing a userspace interrupt. From: Ingo Molnar Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.69, 2004-09-17 12:10:21-07:00, jdike@addtoit.com [PATCH] uml: finish the signals across a reboot fix Due to me not refreshing this patch earlier, the last reboot signals patch was missing the actual fix. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.68, 2004-09-17 12:10:06-07:00, jdike@addtoit.com [PATCH] uml: finish conversion to sigjmp_buf/siglongjmp UML needs to use siglongjmp instead of longjmp everywhere. This patch fixes the remaining longjmp/jmp_buf occurrences. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.67, 2004-09-17 12:09:54-07:00, jdike@addtoit.com [PATCH] uml: update handle_IRQ_event A small update to make UML's handle_IRQ_event look like the i386 version. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.66, 2004-09-17 12:09:41-07:00, jbarnes@engr.sgi.com [PATCH] fix sysrq handling bug in sn_console.c Fix a stupid bug in the sysrq handling in sn_console.c. Instead of eating all characters in the sysrq string (preventing them from getting to the tty layer), only eat those following 'ESC' since that's a pretty important character for various things. Please apply before 2.6.9 is released as the console is very unfriendly to use without it. Signed-off-by: Jesse Barnes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.65, 2004-09-17 12:09:26-07:00, paulmck@us.ibm.com [PATCH] Updates to RCU documentation Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.64, 2004-09-17 12:09:12-07:00, zwane@linuxpower.ca [PATCH] Close race with preempt and modular pm_idle callbacks The following patch from Shaohua Li fixes a race with preempt enabled when a module containing a pm_idle callback is unloaded. Cached values in local variables need to be protected as RCU critical sections so that the synchronize_kernel() call in the unload path waits for all processors. There original bugzilla entry can be found at Shaohua, i had to make a small change (variable declaration after code in code block) so that it compiles with geriatric compilers such as the ones Andrew is attached to ;) http://bugzilla.kernel.org/show_bug.cgi?id=1716 Signed-off-by: Li Shaohua Signed-off-by: Zwane Mwaikambo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.63, 2004-09-17 12:08:57-07:00, clameter@sgi.com [PATCH] device driver for the SGI system clock, mmtimer SGI has been using this driver under Linux since 2001 but it was never included in the upstream kernel. SuSE did include the patch for mmtimer in SLES 9. The driver has been widely used for applications on the Altix platform. The timer hardware was designed around the multimedia timer specification by Intel but to my knowledge only SGI has implemented that standard. The driver was written by Jesse Barnes. The second revision has interrupt support removed and was somewhat simplified by removing one include file. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.62, 2004-09-17 12:08:43-07:00, takata@linux-m32r.org [PATCH] m32r: fix to build SMP kernel Here is a patch to fix compile errors to build SMP kernel for m32r. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.61, 2004-09-17 12:08:28-07:00, takata.hirokazu@renesas.com [PATCH] m32r: upgrade include/asm-m32r/atomic.h Upgrade include/asm-m32r/atomic.h. * include/asm-m32r/atomic.h - Change atomic_add(), atomic_sub(), atomic_inc() and atomic_dec() from function to macro. - Change not to use fixed woking register in atomic_clear_mask() and atomic_set_mask(). - Update comments: "return" to "return it", and so on. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.60, 2004-09-17 12:08:15-07:00, takata@linux-m32r.org [PATCH] m32r: slim arch/m32r/Kconfig Here is a patch to slim arch/m32r/Kconfig. Useless CONFIG_ options are removed for m32r. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.59, 2004-09-17 12:08:01-07:00, takata@linux-m32r.org [PATCH] m32r: modify drivers/net/ne.c for m32r This patch updates drivers/net/ne.c and merges m32r support to it. - Add m32r support. Signed-off-by: Hayato Fujiwara Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.58, 2004-09-17 12:07:47-07:00, takata@linux-m32r.org [PATCH] m32r: modify drivers/net/smc91x.c for m32r This patch updates drivers/net/smc91x.c and merges m32r support to it. - Add m32r support. - Modify for SMP kernel. Signed-off-by: Hayato Fujiwara Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.57, 2004-09-17 12:07:32-07:00, takata@linux-m32r.org [PATCH] m32r: remove network drivers Signed-off-by: Hayato Fujiwara Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.56, 2004-09-17 12:07:16-07:00, takata@linux-m32r.org [PATCH] m32r: modify IO routines for m32700ut CF access Here is a patch for M3T-M32700UT board. - Enable CF access through card-service if CONFIG_M32R_CFC is not defined. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.55, 2004-09-17 12:07:00-07:00, takata@linux-m32r.org [PATCH] m32r: support a new bootloader "m32r-g00ff" - Support new bootloader "m32r-g00ff". m32r-g00ff is newly written by NIIBE Yutaka and is released under GPL. http://www.gniibe.org/software/m32r-g00ff-20040729.tar.gz - arch/m32r/kernel/setup.c (parse_mem_cmdline): Fix to remove unused region at the end of memory. - include/asm-m32r/uaccess.h (__put_user_u64): Fix to remove warnings in compilation time. NOTE: (for m32r users) From this version, the bootloader-kernel interface has changed. - Section order is changed and rearranged for the new bootloader. - Kernel's entry address is also changed : 0x08001000 --> 0x08002000. - Paramter-passing method from bootloader to kernel is revised. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.54, 2004-09-17 12:06:46-07:00, takata@linux-m32r.org [PATCH] m32r: upgrade to 2.6.8.1 kernel Here is a patch for 2.6.8.1 kernel of Renesas M32R processor. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.53, 2004-09-17 12:06:30-07:00, takata.hirokazu@renesas.com [PATCH] m32r: add ELF machine code Here is a patch for m32r's ELF machine code. And also change from "Hitachi H8/300" to "Renesas H8/300"(*). (*) The SuperH, M32R and H8* - now these are all Renesas's products. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.52, 2004-09-17 12:06:18-07:00, takata@linux-m32r.org [PATCH] m32r: modify sys_ipc() to remove useless iBCS2 support code The useless iBCS2 supporting code is removed. However, according to old_ syscalls, I would like to keep backward- compatibility for a while, due to some old deb packages and executables for m32r. I'm struggling to rebuild and replace old packages to new ones. http://debian.linux-m32r.org/ Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.51, 2004-09-17 12:06:05-07:00, takata@linux-m32r.org [PATCH] m32r: change from EXPORT_SYMBOL_NOVERS to EXPORT_SYMBOL arch/m32r/kernel/m32r_ksyms, EXPORT_SYMBOL_NOVERS is deprecated, use EXPORT_SYMBOL. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.50, 2004-09-17 12:05:50-07:00, takata@linux-m32r.org [PATCH] atomic_inc_return for m32r * include/asm-m32r/atomic.h: - Add atomic_inc_return(), atomic_dec_return(), atomic_add_return(), atomic_sub_return() and atomic_clear_mask(). - Change atomic_sub_and_test(), atomic_inc_and_test() and atomic_dec_and_test() from functions to macros. - Update comments, etc. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.49, 2004-09-17 12:05:37-07:00, takata@linux-m32r.org [PATCH] m32r: update headers to remove useless iBCS2 support code Here's a patch to update headers, elf.h and poll.h, to remove useless iBCS2/SVR4 support code for m32r. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.48, 2004-09-17 12:05:21-07:00, takata@linux-m32r.org [PATCH] m32r: update CF/PCMCIA drivers This patch updates m32r-specific CF/PCMCIA drivers and fixes compile errors. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.47, 2004-09-17 12:05:08-07:00, takata@linux-m32r.org [PATCH] m32r: update checksum functions This patch update checksum routines. And EXPORT_SYMBOL() is moved from m32r_ksyms.c to csum_partial_copy.c. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.46, 2004-09-17 12:04:53-07:00, takata@linux-m32r.org [PATCH] m32r: update uaccess.h This patch updates asm-m32r/uaccess.h. * include/asm-m32r/uaccess.h: (__copy_to_user_inatomic): Added. (__copy_from_user_inatomic): Added. Update comments. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.45, 2004-09-17 12:04:42-07:00, takata@linux-m32r.org [PATCH] m32r: update to fix compile errors This patch updates code to fix compile errors, and so on. * arch/m32r/kernel/Makefile: Change linker script's name from vmlinux.lds.s to vmlinux.lds. * arch/m32r/kernel/process.c (sys_clone): Fix the first parameter of do_fork() call. * arch/m32r/kernel/signal.c: (handle_signal): Add a new second argument, struct k_sigaction *ka. (do_signal): Change get_signal_to_deliver() interface. * include/asm-m32r/hardirq.h: Some declarations are moved to linux/hardirq.h. * include/asm-m32r/page.h: Add devmem_is_allowed() macro. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.44, 2004-09-17 12:04:27-07:00, takata@linux-m32r.org [PATCH] m32r: update zone_sizes_init() This patch upgrades zone_sizes_init() function. This patch is required because free_area_init_node()'s interface has been changed. * arch/m32r/mm/discontig.c (zone_sizes_init): Change free_area_init_node() interface. * arch/m32r/mm/init.c: ditto. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.43, 2004-09-17 12:04:10-07:00, takata@linux-m32r.org [PATCH] m32r: update for profiling This patch is for profiling support. profile_tick() is used instead of m32r_do_profile(). * arch/m32r/kernel/smp.c (smp_local_timer_interrupt): Change profile API, use profile_tick() instead of m32r_do_profile(). * arch/m32r/kernel/time.c: ditto. * include/asm-m32r/hw_irq.h (m32r_do_profile): Removed. * include/asm-m32r/ptrace.h (profile_pc): Add profile_pc() macro. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.42, 2004-09-17 12:03:54-07:00, takata@linux-m32r.org [PATCH] m32r architecture Add support for the m32r architecture Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.41, 2004-09-17 12:03:36-07:00, alan@redhat.com [PATCH] serial-cs and unusable port size ranges A couple of GSM GPRS PCMCIA cards advertise 16 rather than 8 port sized windows for their serial interface. This breaks our current pcmcia serial driver which ignores any windows that are not 8 bytes. To avoid any regressions on other cards given this driver contains a certain amount of "magic" the patch below looks for 8 byte windows first so will not break existing supported cards (I hope ;)) Patch-by: Alan Cox OSDL Developer Certiticate Of Origin included herein by reference Acked by Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.40, 2004-09-17 12:03:20-07:00, saw@saw.sw.com.sg [PATCH] fix for fsync ignoring writing errors Currently metadata writing errors are ignored and not returned from sys_fsync on ext2 and ext3 filesystems. That is, at least ext2 and ext3. Both ext2 and ext3 resort to sync_inode() in their ->sync_inode method, which in turn calls ->write_inode. ->write_inode method has void type, and any IO errors happening inside are lost. Make ->write_inode return the error code? Signed-off-by: Andrey Savochkin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.39, 2004-09-17 12:03:06-07:00, ak@muc.de [PATCH] x86-64: copy ioperm bitmaps more efficiently at context switch Copy ioperm bitmaps more efficiently at context switch time. Only copy upto the highest used port. Originally from Ingo Molnar Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.38, 2004-09-17 12:02:51-07:00, ak@muc.de [PATCH] x86-64: turn tss into per cpu data Turn per cpu TSS into per cpu data. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.37, 2004-09-17 12:02:38-07:00, ak@muc.de [PATCH] x86-64, x86: don't pass CR2 on alignment faults Don't pass CR2 address on alignment faults. They report the address of the last page fault, which is a information leak. Fix this for i386 and x86-64 by passing 0 instead. Pointed out by Zachary Amsden Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.36, 2004-09-17 12:02:24-07:00, ak@muc.de [PATCH] x86-64: add read implies exec macro Add read implies exec personality. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.35, 2004-09-17 12:02:13-07:00, ak@muc.de [PATCH] x86-64: synchronize video.S with i386 Sync x86-64 video.S with i386 changes Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.34, 2004-09-17 12:01:58-07:00, ak@muc.de [PATCH] x86-64: sibling map fix for clustered mode From: James Cleverdon The value that cpuinfo returns for command 1 in ebx is the physical APIC ID latched when the system comes out of reset. Ordinarily, this is identical to the value in the local APIC's ID register, because nearly all BIOSes accept the HW assigned value. Our systems, made up of individual building blocks, can't do that. Each node boots as a separate system and is joined together by the BIOS. Thus, the BIOS rewrites the local APIC ID register with a new value. Potomac and Nocona chips have a mechanism by which the BIOS writer can change bits 7:5 to match the assigned cluster ID. Bits 2:0 come from the thread ID. However, bits 4:3 are still those latched at reset. Oops! Summary: Large clustered systems can't use cpuid to derive the sibling information. Fix: Use the local APIC ID. That's the value we use to online the CPUs, so it had better be OK. For non-clustered systems, cpuid == local APIC, so nothing but large boxes should be affected. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.33, 2004-09-17 12:01:45-07:00, ak@muc.de [PATCH] x86-64: fix for mem= on NUMA systems Fix bug that caused oops with mem= on certain NUMA configurations Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.32, 2004-09-17 12:01:30-07:00, ak@muc.de [PATCH] x86-64: add might_sleeps to more *_user functions Add might_sleep to more *_user functions. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.31, 2004-09-17 12:01:19-07:00, ak@muc.de [PATCH] x86-64: print mce bank enable mask in hex Print mce bank enable mask in sysfs in hex Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.30, 2004-09-17 12:01:06-07:00, ak@muc.de [PATCH] x86-64: remove WARN_ON in smp_call_function Remove WARN_ON in smp_call_function. it breaks the machine check handling and there is no good way to enable interrupts here. Call Trace:{smp_call_function+115} {smp_send_stop+25} {panic+274} {do_machine_check+0} {do_machine_check+1114} {machine_check+127} {net_rx_action+215} {__do_softirq+83} {do_softirq+53} {do_IRQ+317} <{default_idle+0} {ret_from_intr+0} {default_idle+32} {cpu_idle+26} {start_kernel+502} {_sinittext+48 Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.29, 2004-09-17 12:00:51-07:00, ak@muc.de [PATCH] x86-64: make machine check handler configurable Make the x86-64 machine check handler configurable when EMBEDDED Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.28, 2004-09-17 12:00:40-07:00, ak@muc.de [PATCH] x86-64: IO-APIC suspend/resume Do IO-APIC suspend/resume. Untested so far. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.27, 2004-09-17 12:00:27-07:00, ak@muc.de [PATCH] x86-64: avoid panic when APIC ID cannot be set Don't panic when io apic id cannot be set. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.26, 2004-09-17 12:00:12-07:00, ak@muc.de [PATCH] x86-64: avoid deadlock in page fault handler Avoid deadlock when kernel fault happens inside mmap sem. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.25, 2004-09-17 11:59:59-07:00, ak@muc.de [PATCH] x86-64: update defconfig Update x86-64 defconfig Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.24, 2004-09-17 11:59:44-07:00, ak@muc.de [PATCH] x86-64: add apic={verbose,quiet,debug} Ported from i386 Allow to quieten apic boot output on the command line using apic={verbose,debug,quiet} Make it quiet by default Add extra #define for making apic print functions __init or not __init (for easier debugging) Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.23, 2004-09-17 11:59:31-07:00, ak@muc.de [PATCH] x86-64: make APIC errors KERN_DEBUG Make APIC errors KERN_DEBUG Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.22, 2004-09-17 11:59:15-07:00, ak@muc.de [PATCH] x86-64: add atomic64_t Add an atomic64_t type to x86-64. Not used right now, but may be useful in the future, e.g. for rss together with C.Lameter's page fault scalability patches. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.21, 2004-09-17 11:59:04-07:00, david@gibson.dropbear.id.au [PATCH] ppc64: remove LARGE_PAGE_SHIFT constant For historical reasons, ppc64 has ended up with two #defines for the size of a large (16M) page: LARGE_PAGE_SHIFT and HPAGE_SHIFT. This patch removes LARGE_PAGE_SHIFT in favour of the more widely used HPAGE_SHIFT. Signed-off-by: David Gibson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.20, 2004-09-17 11:58:49-07:00, anton@samba.org [PATCH] ppc64: fix CONFIG_CMDLINE When I cleaned up our cmdline parsing, I missed a RELOC of CONFIG_CMDLINE itself. Without it we copy something random into cmd_line, but only when CONFIG_CMDLINE is enabled. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.19, 2004-09-17 11:58:37-07:00, anton@samba.org [PATCH] ppc64: disable some drivers broken on 64bit The mace, bmac and dmasound drivers use virt_to_bus and so will not work on ppc64. Reflect this in the relevant Kconfig files. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.18, 2004-09-17 11:58:23-07:00, anton@samba.org [PATCH] ppc64: fix hotplug CPU when building a pseries+pmac kernel When a pseries+pmac kernel is built, the rtas stop-self token wasnt being initialised. Since doing this will safely fail on pmac, remove the !CONFIG_PPC_PMAC restriction Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.17, 2004-09-17 11:58:10-07:00, anton@samba.org [PATCH] ppc64: don't use state == SYSTEM_BOOTING From: Nathan Lynch Fedora has a patch which introduces a new system state during boot. Change system_state == SYSTEM_BOOTING to system_state < SYSTEM_RUNNING to match it. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.16, 2004-09-17 11:57:55-07:00, anton@samba.org [PATCH] ppc64: export probe_irq_mask yenta_socket wants probe_irq_mask, so export it. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.15, 2004-09-17 11:57:44-07:00, anton@samba.org [PATCH] ppc64: Remove A() and AA() Remove the A() and AA() macros. Now we have compat_ptr we should be using that. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.14, 2004-09-17 11:57:28-07:00, benh@kernel.crashing.org [PATCH] ppc64: Fix some bogus warnings & cleanup tlbie code path This patch fixes some warnings that popped up with the removal of -Wno-uninitialized around the code doing tlbie's. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.13, 2004-09-17 11:57:17-07:00, anton@samba.org [PATCH] ppc64: clean up asm/mmu.h Remove some old definitions that arent relevant to us. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.12, 2004-09-17 11:57:04-07:00, anton@samba.org [PATCH] ppc64: iseries build fixes Fix one compile warning and one build warning on iseries. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.11, 2004-09-17 11:56:50-07:00, anton@samba.org [PATCH] ppc64: replace mmu_context_queue with idr allocator Replace the mmu_context_queue structure with the idr allocator. The mmu_context_queue allocation was quite large (~200kB) so on most machines we will have a reduction in usage. We might put a single entry cache on the front of this so we are more likely to reuse ppc64 MMU hashtable entries that are in the caches. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.10, 2004-09-17 11:56:38-07:00, anton@samba.org [PATCH] ppc64: powersave_nap sysctl Implement powersave_nap sysctl, like ppc32. This allows us to disable the nap function which is useful when profiling with oprofile (to get an accurate count of idle time). Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.9, 2004-09-17 11:56:24-07:00, anton@samba.org [PATCH] ppc64: force_sigsegv fixes Replace do_exit() in 64bit signal code with force_sig/force_sigsegv where appropriate. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.8, 2004-09-17 11:56:13-07:00, olh@suse.de [PATCH] ppc32: open_pic2.c build fix arch/ppc/syslib/open_pic2.c: In function `init_openpic2_sysfs': arch/ppc/syslib/open_pic2.c:694: error: `ENODEV' undeclared (first use in this function) arch/ppc/syslib/open_pic2.c:694: error: (Each undeclared identifier is reported only once arch/ppc/syslib/open_pic2.c:694: error: for each function it appears in.) possible fix below. Signed-off-by: Olaf Hering Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.7, 2004-09-17 11:55:59-07:00, trini@kernel.crashing.org [PATCH] ppc32: Fix arch/ppc/boot/common/ns16550.c When started including this exposed one of the fragilities of the code in arch/ppc/boot/, namely that it is tied to the kernel headers for some information, yet not really the kernel. The following starts us in the direction of being less tied to the kernel by providing our own serial_state definition (all we care about is the ability to grab information from SERIAL_PORT_DFNS). Signed-off-by: Tom Rini Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.6, 2004-09-17 11:55:43-07:00, roland@redhat.com [PATCH] fix posix-timers leak Exec fails to clean up posix-timers. This manifests itself in two ways, one worse than the other. In the single-threaded case, it just fails to clear out the timers on exec. POSIX says that exec clears out the timers from timer_create (though not the setitimer ones), so it's wrong that a lingering timer could fire after exec and kill the process with a signal it's not expecting. In the multi-threaded case, it not only leaves lingering timers, but it leaks them entirely when it replaces signal_struct, so they will never be freed by the process exiting after that exec. The new per-user RLIMIT_SIGPENDING actually limits the damage here, because a UID will fill up its quota with leaked timers and then never be able to use timer_create again (that's what my test program does). But if you have many many untrusted UIDs, this leak could be considered a DoS risk. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.5, 2004-09-17 11:55:31-07:00, mingo@elte.hu [PATCH] x86 TSS: io bitmap lazy updating This uses Davide's do_general_protection() fault based io-bitmap lazy update code and combines it with the ioport-owner cache. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.4, 2004-09-17 11:55:17-07:00, mingo@elte.hu [PATCH] x86 TSS: io port caching There's one additional step we can do ontop of the ports-max code to get rid of copying in X.org's case: cache the last task that set up the IO bitmap. This means we can set the offset to invalid and keep the IO bitmap of that task, and switch back to a valid offset (without any copying) when switching back to that task. (or do a copy if there is another ioperm task we switch to.) I've attached ioport-cache-2.6.8.1.patch that implements this. When there's a single active ioperm() using task in the system then the context-switch overhead is very low and constant: # ./ioperm-latency default no ioperm: scheduling latency: 2478 cycles turning on port 80 ioperm: scheduling latency: 2499 cycles turning on port 65535 ioperm: scheduling latency: 2481 cycles This single-ioperm-user situation matches 99% of the actual ioperm() usage scenarios and gets rid of any copying whatsoever - without relying on any fault mechanism. I can see no advantage of the GPF approach over this patch. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.3, 2004-09-17 11:55:05-07:00, rsa@us.ibm.com [PATCH] hvc_console fix to protect hvc_write against ldisc write after hvc_close Due to the tty ldisc code not stopping write operations against a driver even after a tty has been closed I added a mechanism to hvc_console in my previous patch to prevent this by nulling out the tty->driver_data in hvc_close() but I forgot to check tty->driver_data in hvc_write(). Anton Blanchard got several oops'es from hvc_write() accessing NULL as if it were a pointer to an hvc_struct usually stored in tty->driver_data. So this patch checks tty->driver_data in hvc_write() before it is used. Hopefully once Alan Cox's patch is checked in ldisc writes won't continue to happen after tty closes. Anton Blanchard has tested this patch and is unable to reproduce the oops with it applied. Changelog: drivers/char/hvc_console.c - Added comment to hvc_close() to explain the reason for NULLing tty->driver_data. - Added check to hvc_write() to verify that tty->driver_data is valid (NOT NULL) which would be the case if the write operation was invoked after a tty close was initiated on the tty. Signed-off-by: Ryan S. Arnold Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1923.4.2, 2004-09-17 11:54:51-07:00, Markus.Lidel@shadowconnect.com [PATCH] reduce ioremap memory size for Adaptec I2O controllers The I2O subsystem currently map all memory from the I2O controller for the controller's in queue, even if it is not necessary. This is a problem, because on some systems the size returned from pci_resource_len() could be 128MB and only 1-4MB is needed. Changes: - only ioremap as much memory as the controller is actually using. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1926, 2004-09-17 11:11:23-07:00, david@gibson.dropbear.id.au [IPV4]: Initialize newly allocated hash tables in fib_semantics.c When fib_create_info() allocates new hash tables, it neglects to initialize them. This leads to an oops during boot on at least machine I use. This patch addresses the problem. Signed-off-by: David Gibson Signed-off-by: David S. Miller ChangeSet@1.1923.1.3, 2004-09-17 12:07:11-04:00, akpm@osdl.org [PATCH] fix driver name in eth1394 as returned by ETHTOOL_GDRVINFO From: Thierry Vignaud The GDRVINFO command of the ETHTOOL ioctl returns a bogus driver name. Signed-off-by: Andrew Morton ChangeSet@1.1898.2.4, 2004-09-17 07:54:01-07:00, trini@kernel.crashing.org ppc32: The ISA PIC address for int-ack wasn't being picked out right Signed-off-by: Leigh Brown Signed-off-by: Tom Rini ChangeSet@1.1898.2.3, 2004-09-17 07:51:37-07:00, trini@kernel.crashing.org ppc32: Fix a problem with the FCC enet driver for CPM2 systems The Local Protect Bit needs to be set when entering full duplex mode. Signed-off-by: Rune Torgersen Signed-off-by: Tom Rini ChangeSet@1.1898.9.25, 2004-09-16 18:23:10-07:00, davem@nuts.davemloft.net [SPARC]: Kill dump_dma_regs, unused. Signed-off-by: David S. Miller ChangeSet@1.1898.9.24, 2004-09-16 18:21:41-07:00, davem@nuts.davemloft.net [SPARC64]: Missing ioremap() in parport support. Signed-off-by: David S. Miller ChangeSet@1.1898.9.23, 2004-09-16 18:08:07-07:00, davem@nuts.davemloft.net [SPARC64]: Fix I/O port args to string routines. Signed-off-by: David S. Miller ChangeSet@1.1923.1.2, 2004-09-16 20:43:18-04:00, olh@suse.de [PATCH] mark mace and bmac as ppc32 only mace and bmac are only used in "oldworld" PowerMacs. Mark them as ppc32 only. ChangeSet@1.1898.9.22, 2004-09-16 17:25:12-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in qlogicpti driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.21, 2004-09-16 17:21:15-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in esp scsi driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.20, 2004-09-16 17:11:17-07:00, davem@nuts.davemloft.net [B44]: Fix remaining iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.19, 2004-09-16 17:08:09-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in flash driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.18, 2004-09-16 17:05:52-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in cpwatchdog driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.17, 2004-09-16 16:50:24-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in display7seg driver. ChangeSet@1.1898.9.16, 2004-09-16 16:43:54-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in envctrl driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.15, 2004-09-16 16:02:39-07:00, davem@nuts.davemloft.net [TYPHOON]: Fix iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.14, 2004-09-16 15:53:59-07:00, davem@nuts.davemloft.net [MYRI_SBUS]: Fix iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.13, 2004-09-16 15:42:01-07:00, davem@nuts.davemloft.net [SUNBMAC]: Fix iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.12, 2004-09-16 15:35:11-07:00, davem@nuts.davemloft.net [SUNQE]: Fix iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.11, 2004-09-16 15:31:27-07:00, davem@nuts.davemloft.net [SUNLANCE]: Fix iomem warnings. Also clear all the bogus volatile usage out of this driver. Signed-off-by: David S. Miller ChangeSet@1.1867.3.7, 2004-09-16 22:25:43+00:00, markgw@sgi.com [IA64] SGI Altix hardware performance monitoring API The SGI Altix PROM supports a SAL call for performance monitoring and for exporting NUMA topology. We need this in community kernels for diagnostic and performance tools to use, especially on very large machines. This patch registers a dynamic misc device "sn_hwperf" that supports an ioctl interface for reading/writing memory mapped registers on Altix nodes and routers via the new SAL call. It also creates a read-only procfs file "/proc/sgi_sn/sn_topology" to export NUMA topology and Altix hardware inventory. > What tools are using this? Performance Co-Pilot http://oss.sgi.com/projects/pcp in particular, pmshub, shubstats and linkstat. Numerous other users include anything that needs knowledge of numa topology/interconnect in order to perform well, e.g. mpt. BTW I have not exported any API functions .. at this point I don't think we need any modules to call the API. Signed-off-by: Mark Goodwin Signed-off-by: Tony Luck ChangeSet@1.1898.9.10, 2004-09-16 15:14:20-07:00, davem@nuts.davemloft.net [SUNHME]: Fix iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.9, 2004-09-16 15:05:36-07:00, davem@nuts.davemloft.net [MPTFUSION]: Fix iomem warnings. Signed-off-by: David S. Miller ChangeSet@1.1898.9.8, 2004-09-16 15:02:22-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in i8042-sparcio.h Signed-off-by: David S. Miller ChangeSet@1.1898.9.7, 2004-09-16 15:00:23-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in cs4231 sound driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.6, 2004-09-16 14:58:10-07:00, davem@nuts.davemloft.net [SPARC64]: Fix iomem warnings in amd7930 sound driver. Signed-off-by: David S. Miller ChangeSet@1.1898.9.5, 2004-09-16 14:56:48-07:00, davem@nuts.davemloft.net [SPARC64]: Make IDE ops take __iomem pointers. Signed-off-by: David S. Miller ChangeSet@1.1898.9.4, 2004-09-16 14:53:28-07:00, davem@nuts.davemloft.net [FC4]: Fix iomem warnings in SOCAL driver. ChangeSet@1.1898.9.3, 2004-09-16 14:51:08-07:00, davem@nuts.davemloft.net [FC4]: Fix iomem warnings in SOC driver. ChangeSet@1.1898.9.2, 2004-09-16 14:44:58-07:00, davem@nuts.davemloft.net [SPARC64]: Update defconfig. ChangeSet@1.1898.9.1, 2004-09-16 14:43:33-07:00, davem@nuts.davemloft.net [SPARC64]: Add io{read,write}{8,16,32}_rep(). Signed-off-by: David S. Miller ChangeSet@1.1898.1.14, 2004-09-16 20:26:04+00:00, aegl@agluck-lia64.sc.intel.com Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9 ChangeSet@1.1922, 2004-09-16 13:19:01-07:00, bdschuym@pandora.be [NETFILTER]: port physdev to ip6tables Signed-off-by: Bart De Schuymer Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller ChangeSet@1.1921, 2004-09-16 13:13:12-07:00, tgraf@suug.ch [PKT_SCHED]: Fix slab corruption in cbq_destroy Fixes slab corruption in cbq_destroy. cbq_destroy_filters and qdisc_put_rtab(q->link.R_tab) are already called in cbq_destroy_class. The latter lead to a slab corruption due to repeated freeing of q->link.R_tab because q->link is part of q->classes. Problem introduced in 1.21. Signed-off-by: Thomas Graf Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller ChangeSet@1.1920, 2004-09-16 13:12:04-07:00, herbert@gondor.apana.org.au [IPSEC]: Implement DSCP decapsulation This patch adds DSCP decapsulation for IPsec. This is enabled by a per-state flag which is off by default. Leaving it off by default maintains compatibility and is also good for performance reasons. I decided to not implement a toggle on the output path since not encapsulating the DSCP can and should be done by netfilter. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1919, 2004-09-16 13:10:18-07:00, herbert@gondor.apana.org.au [IPV6]: Kill ip6_get_dsfield This patch kills the duplicate implementation of ip6_get_dsfield in inet_ecn.h. It now uses ipv6_get_dsfield from dsfield.h instead. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1917, 2004-09-16 12:57:58-07:00, yoshfuji@linux-ipv6.org [IPV6]: NDISC: ensure responding to NS without link-layer information When sending NA in response to NS, we may not know the link-layer address for the destination of the NA since unicast NS is not required to include its link-layer information. In this case, we first need to resolve the link-layer address. (RFC 2461 7.2.4) We now create neighbour entry for the destination and link-layer information will be automatically solved in the output path. Signed-off-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller ChangeSet@1.1867.3.6, 2004-09-16 19:57:29+00:00, jbarnes@sgi.com [IA64] Kconfig: Add help text for IA64_SGI_SN2 config option. Mark Goodwin suggested that we document our platform a bit. This patch adds help text for the sn2 specific kernel option. Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck ChangeSet@1.1916, 2004-09-16 12:56:49-07:00, eric.lemoine@gmail.com [SUNGEM]: Add netpoll support. Signed-off-by: Eric Lemoine Signed-off-by: David S. Miller ChangeSet@1.1898.1.13, 2004-09-16 12:11:21-07:00, vandrove@vc.cvut.cz [PATCH] matroxfb update + sparse annotations This change switches matroxfb on x86 and x86_64 from dereferencing pointers to {read,write}[bwl], as __pa() are gone from them, and so gcc does not need an additional register for preserving address between consecutive {read,write}[bwl]. Then it switches only supported architecture left (ppc/ppc64/arm) from dereferencing pointers to __raw_{read,write}[bwl]. Third part is fixing sparse complaints: add __iomem here and there, and switch one 1bit bitfield from int to unsigned int. After this there should be no sparse complaints in matroxfb. Signed-off-by: Petr Vandrovec Signed-off-by: Linus Torvalds ChangeSet@1.1867.3.5, 2004-09-16 19:11:00+00:00, kaos@sgi.com [IA64] ar.k[56] have virtual addresses already, don't convert r.k[56] used to contain physical addresses but now contain virtual addresses. There are code remnants which still believe that they are physical and "convert" ar.k[56] to virtual. This breaks when current is not in region 7 (e.g. the idle task on cpu 0). Signed-off-by: Keith Owens Signed-off-by: Tony Luck ChangeSet@1.1898.1.12, 2004-09-16 11:50:39-07:00, alex.williamson@hp.com [PATCH] fix compat_do_execve stack usage Looks like a couple struct to pointer conversions were missed. Signed-off-by: Linus Torvalds ChangeSet@1.1898.1.11, 2004-09-16 07:13:57-07:00, rusty@rustcorp.com.au [PATCH] Fix ip_nat_ftp registration when no ports= arg FTP NAT module doesn't register anything with no args. Oops. Signed-off-by: Rusty Russell Signed-off-by: Linus Torvalds ChangeSet@1.1898.1.10, 2004-09-16 07:12:54-07:00, roland@redhat.com [PATCH] back out siginfo_t.si_rusage from waitid changes As I explained in the waitid patches, I added the si_rusage field to siginfo_t with the idea of having the siginfo_t waitid fills in contain all the information that wait4 or any such call could ever tell you. Nowhere in POSIX nor anywhere else specifies this field in siginfo_t. When Ulrich and I hashed out the system call interface we wanted, we looked at siginfo_t and decided there was plenty of space to throw in si_rusage. Well, it turns out we didn't check the 64-bit platforms. There struct rusage is ridiculously large (lots of longs for things that are never in a million years going to hit 2^32), and my changes bumped up the size of siginfo_t. Changing that size is more trouble than it's worth. This patch reverts the changes to the siginfo_t structure types, and no longer provides the rusage details in SIGCHLD signal data. Instead, I added a fifth argument to the waitid system call to fill in rusage. waitid is the name of the POSIX function with four arguments. It might make sense to rename the system call `waitsys' to follow SGI's system call with the same arguments, or `wait5' in the mindless tradition. But, feh. I just added the argument to sys_waitid, rather than worrying about changing the name in all the tables (and choosing a new stupid name). Signed-off-by: Roland McGrath Signed-off-by: Linus Torvalds ChangeSet@1.1898.7.4, 2004-09-16 23:28:42+10:00, airlied@starflyer.(none) drm: actually __set_current_state is more correct Alan suggested using __set_current_state as being more correct for the DRM so do that. Signed-off-by: Dave Airlie ChangeSet@1.1898.7.3, 2004-09-16 21:15:38+10:00, airlied@starflyer.(none) drm: use set_current_state instead of direct assignment Suggested-by: Nishanth Aravamudan Approved-by: Dave Airlie ChangeSet@1.1898.7.2, 2004-09-16 21:09:37+10:00, airlied@starflyer.(none) drm: add pci_enable_device Add pci_enable_device for any PCI device we want to use. From: Bjorn Helgaas Approved-by: David Airlie ChangeSet@1.1867.9.2, 2004-09-16 11:33:15+01:00, aia21@cantab.net NTFS: Fix a potential bug in fs/ntfs/mft.c::map_extent_mft_record() that could occur in the future for when we start closing/freeing extent inodes if we don't set base_ni->ext.extent_ntfs_inos to NULL after we free it. Signed-off-by: Anton Altaparmakov ChangeSet@1.1898.7.1, 2004-09-16 19:57:18+10:00, airlied@starflyer.(none) drm: fix bug introduced in the macro removal This caused issues with a PCI radeon card. From: Jon Smirl Approved-by: Dave Airlie ChangeSet@1.1898.6.1, 2004-09-16 02:45:22-04:00, jgarzik@pobox.com [libata] add hook, and export functions needed for sata2 drivers * add dev_select hook, and default/noop implementations * export ata_dev_classify * fix a couple bugs that cropped up when building with ATA_VERBOSE_DEBUG * export __sata_phy_reset, a variant that does not call ata_bus_reset ChangeSet@1.1867.3.4, 2004-09-15 23:02:18+00:00, jbarnes@sgi.com [IA64-SGI]: fix `qw' might be used uninitialized warning The compiler has no way of knowing whether nentries will be greater than 0, so it was generating a warning that qw might be used uninitialized. Fix it by explicitly setting it to 0. Cc'ing Brian in case he has an internal version he'd like to keep in sync. Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck ChangeSet@1.1803.152.8, 2004-09-15 21:34:47+00:00, tony.luck@intel.com [IA64] make INIT dump work again current can be in region 5, use 'tpa' to convert to physical Signed-off-by: Tony Luck ChangeSet@1.1915, 2004-09-15 13:55:32-07:00, davem@nuts.davemloft.net [IPV4]: More fib_hash cleanups. Kill fn_key_eq and fn_key_leq Signed-off-by: David S. Miller ChangeSet@1.1898.5.1, 2004-09-15 16:58:53-03:00, acme@conectiva.com.br [SOCKET] make enum socket_type be arch overridable To cope with MIPS, that has SOCK_STREAM and SOCK_DGRAM values swapped to deal with binary compat. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Ralf Baechle Signed-off-by: David S. Miller ChangeSet@1.1914, 2004-09-15 10:20:55-07:00, davem@nuts.davemloft.net [NETFILTER]: Fix tcp_find_option() bug properly. Signed-off-by: David S. Miller ChangeSet@1.1913, 2004-09-15 09:18:46-07:00, davem@nuts.davemloft.net [IPV4]: Use hlist_for_each_entry_safe in fib_hash_move. Signed-off-by: David S. Miller ChangeSet@1.1912, 2004-09-15 09:16:19-07:00, davem@nuts.davemloft.net [IPV4]: Basic cleanups in fib_hash.c 1) Kill special key, prefix, and hash index types. They make the code less readable and maintainable. 2) __inline__ --> inline Signed-off-by: David S. Miller ChangeSet@1.1911, 2004-09-15 08:34:58-07:00, davem@nuts.davemloft.net [NETFILTER]: Fix off-by-one test error in ip_tables.c Bug noticed by Ysauyuki Kozakai. Signed-off-by: David S. Miller ChangeSet@1.1910, 2004-09-15 08:18:16-07:00, eric.lemoine@gmail.com [SUNGEM]: LLTX support Signed-off-by: Eric Lemoine Signed-off-by: David S. Miller ChangeSet@1.1909, 2004-09-15 08:16:44-07:00, eric.lemoine@gmail.com [SUNGEM]: Add tx_lock Using tx_lock in SunGEM makes the driver logic in conformance with tg3 and e1000, easing maintainance. Signed-off-by: Eric Lemoine Signed-off-by: David S. Miller ChangeSet@1.1898.2.2, 2004-09-15 07:39:07-07:00, trini@kernel.crashing.org ppc32: Fix some warnings in rheap from newer compilers Signed-off-by: Pantelis Antoniou Signed-off-by: Tom Rini ChangeSet@1.1898.1.5, 2004-09-15 07:25:30-07:00, vda@port.imtp.ilyichevsk.odessa.ua [PATCH] reduce [compat_]do_execve stack usage Allocating the 'struct linux_binprm' on the stack chews up too much stackspace. Just kmalloc it instead. Signed-off-by: Linus Torvalds ChangeSet@1.1898.4.2, 2004-09-15 05:17:25-07:00, rth@kanga.twiddle.home [ALPHA] Implement _raw_write_trylock. ChangeSet@1.1898.4.1, 2004-09-15 05:16:14-07:00, rth@kanga.twiddle.home [ALPHA] Minor updates for cpumask_t. ChangeSet@1.1908, 2004-09-14 22:32:27-07:00, yoshfuji@linux-ipv6.org [IPV6]: Missing xfrm_lookup() in icmpv6_{send,echo_reply}() net/ipv6/icmp.c was not converted in xfrm_lookup() extraction patch. This patch converts it; adding the missing call to xfrm_lookup in icmpv6_{send,echo_reply}(). Signed-off-by: Kazunori Miyazawa Signed-off-by: Hideaki YOSHIFUJI SIgned-off-by: David S. Miller ChangeSet@1.1907, 2004-09-14 22:21:40-07:00, davem@nuts.davemloft.net [CRYPTO]: Zero out tfm before freeing in crypto_free_tfm(). Based upon discussions with Ulrich Kuehn (ukuehn@acm.org) Signed-off-by: James Morris Signed-off-by: David S. Miller ChangeSet@1.1906, 2004-09-14 22:15:26-07:00, davem@nuts.davemloft.net [TG3]: Update driver version and reldate. ChangeSet@1.1905, 2004-09-14 22:10:26-07:00, davem@nuts.davemloft.net [TG3]: Recognize all onboard Sun variants, not just 5704. Based upon a report from Matthias Merz. Signed-off-by: David S. Miller ChangeSet@1.1904, 2004-09-14 22:06:01-07:00, michael.waychison@sun.com [TG3]: Fix thinko in 5704 fibre hw autoneg code. Signed-off-by: Mike Waychison Signed-off-by: David S. Miller ChangeSet@1.1903, 2004-09-14 22:03:10-07:00, davem@nuts.davemloft.net [IPV4]: Make fib_semantics algorithms scale better. A singly linked list was previously used to do fib_info object lookup for various actions in the routing code. This does not scale very well with many devices and even a moderate number of routes. This was noted by Benjamin Lahaise. To fix all of this we use 3 hash tables, two of which grow dynamically as the number fib_info objects increases while the final one is fixes in size. The statically sized table hashes on device index. This is used for fib_sync_down, fib_sync_up, and ip_fib_check_default. The first dynamically sized table is keyed on protocol, prefsrc, and priority. This is used by fib_create_info() to look for existing fib_info objects matching the new one being constructed. The last dynamically sized table is keyed on the preferred source of the route if it has one specified. This is used by fib_sync_down when a local address disappears. There are still some scalability problems for Bens test case in fib_hash.c and I will try to attack those next. Signed-off-by: David S. Miller ChangeSet@1.1902, 2004-09-14 21:23:34-07:00, herbert@gondor.apana.org.au [NET]: Convert RTM+_* to enum. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1867.7.5, 2004-09-14 22:25:41-04:00, ananth@broadcom.com [libata sata_svw] race condition fix, new device support * address race condition WRT order of DMA-start and ATA command issue (see code comment for more details) * Add support for Frodo 4/8 ChangeSet@1.1867.7.4, 2004-09-14 22:23:54-04:00, jgarzik@pobox.com [libata] minor comment updates, preparing for iomap merge ChangeSet@1.1898.1.3, 2004-09-14 17:40:07-07:00, torvalds@ppc970.osdl.org Fix up typo in ppc64 eeh ioport_map() code. Noticed by BenH, happily harmless (nothing that uses that code has been committed yet, and PIO seems to be pretty much unused on at least the Apple G5 machines: all the normal hardware is set up purely for MMIO, to the point that I couldn't even test this thing). ChangeSet@1.1898.1.2, 2004-09-14 16:28:53-07:00, torvalds@ppc970.osdl.org Add support for "string" ioread/iowrite. Things like SATA use this for data transfer. Also export the iomap routines on ppc64. ChangeSet@1.1898.2.1, 2004-09-14 16:12:54-07:00, trini@kernel.crashing.org ppc32: Don't make cmd_line be an emptry string As noted by Olaf Hering, CONFIG_CMDLINE didn't work on PMacs as we made cmd_line be an empty string and then looked for the cmdline in odd places. Signed-off-by: Tom Rini ChangeSet@1.1901, 2004-09-14 14:11:23-07:00, davem@nuts.davemloft.net [IPV4]: Use list.h facilities for fib_info_list. Do not use a by-hand list implementation. Signed-off-by: David S. Miller ChangeSet@1.1900, 2004-09-14 14:03:47-07:00, yoshfuji@linux-ipv6.org [IPV6]: Do not export rt6_dflt_{pointer,lock}. Modify them using exported procedural interfaces instead. Signed-off-by: Hideaki YOSHIFUJI Signed-off-by; David S. Miller ChangeSet@1.1899, 2004-09-14 13:57:17-07:00, davem@nuts.davemloft.net Merge bk://kernel.bkbits.net/acme/net-2.6 into nuts.davemloft.net:/disk1/BK/net-2.6 ChangeSet@1.1898, 2004-09-14 10:38:50-07:00, torvalds@ppc970.osdl.org ppc64: first cut at new iomap interfaces. Only the EEH case (pSeries) handled for now. ChangeSet@1.1897, 2004-09-14 09:36:53-07:00, torvalds@ppc970.osdl.org Update shipped version of zconfig.tab.c to match bison/yacc file. ChangeSet@1.1896, 2004-09-14 09:33:17-07:00, zippel@linux-m68k.org [PATCH] properly fix double current_menu The two current_menu variables are really two separate variables, so keep them separate. Signed-off-by: Roman Zippel Signed-off-by: Linus Torvalds ChangeSet@1.1895, 2004-09-14 09:32:22-07:00, levon@movementarian.org [PATCH] fix OProfile locking This makes OProgile use get_task_mm() as discussed. It also fixes up Anton's previous patch. Zwane's soaked this patch all night w/o problems. ChangeSet@1.1894, 2004-09-14 09:17:49-07:00, torvalds@ppc970.osdl.org Fix up stupid last-minute edit of fork cleanup. I'm a retard. ChangeSet@1.1893, 2004-09-14 09:15:35-07:00, torvalds@ppc970.osdl.org fivafb; Increase DDC/CI timeouts Nicolas Boichat reports that his monitor needs the slower i2c bus timings. These values also match atyfb and the original ones. ChangeSet@1.1892, 2004-09-14 09:04:35-07:00, torvalds@ppc970.osdl.org Fix fork failure case. It would clear the segment registers in the parent, which wasn't really intentional. Noticed by Andries Brouwer. ChangeSet@1.1891, 2004-09-14 08:54:40-07:00, mingo@elte.hu [PATCH] i386: elf_read_implies_exec() fixup The final ia64 related cleanup to elf_read_implies_exec() seems to have broken it. The effect is that the READ_IMPLIES_EXEC flag is never set for !pt_gnu_stack binaries! That's a bit more secure than we need to be, and might break some legacy app that doesn't expect it. ChangeSet@1.1888, 2004-09-14 08:38:02-07:00, ak@suse.de [PATCH] Fix ABI in set_mempolicy() Fix ABI in set_mempolicy() that got broken by an earlier change. Add a check for very big input values and prevent excessive looping in the kernel. Cc: Paul "nyer, nyer, your mother wears combat boots!" Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.68, 2004-09-14 07:52:00-07:00, mpm@selenic.com [PATCH] netpoll endian fixes Correct wrong ip header in netpoll_send_udp. Signed-off-by: Duncan Sands Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.67, 2004-09-14 07:51:48-07:00, hch@lst.de [PATCH] mark amiflop non-unloadable As it's using the obsolete MOD_{INC,DEC}_USE_COUNT it's implicitly locked already, but let's remove them and make it explicit so these macros can go away completely without breaking m68k compile. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.66, 2004-09-14 07:51:36-07:00, hch@lst.de [PATCH] crept back in h8300 and sh64 went away in 2.5, but new ports keep adding instances again and again. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.65, 2004-09-14 07:51:24-07:00, roland@frob.com [PATCH] BSD disklabel: handle more than 8 partitions NetBSD allows 16 partitions, not just 8. This patch both ups the number, and makes the recognition code tell you if the count in the disklabel exceeds the number supported by the kernel. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.64, 2004-09-14 07:51:13-07:00, hch@lst.de [PATCH] small tweaks - I misspelled CONFIG_PREEMPT CONFIG_PREEPT as various people noticed. But in fact that ifdef should just go, else we'll get drivers that compile with CONFIG_PREEMPT but not without sooner or later. - remove unused hardirq_trylock and hardirq_endlock Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.63, 2004-09-14 07:51:00-07:00, jbarnes@engr.sgi.com [PATCH] fix uninitialized warnings in mempolicy.c err may be used uninitialized in mempolicy.c in both compat_set_mempolicy and compat_mbind. This patch fixes that by setting them both to 0. Signed-off-by: Jesse Barnes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.62, 2004-09-14 07:50:46-07:00, dsaxena@plexity.net [PATCH] Add support for word-length UART registers UARTS on several Intel IXP2000 systems are connected in such a way that they can only be addressed using full word accesses instead of bytes. Following patch adds a UPIO_MEM32 io-type to identify these UARTs. Signed-off-by: Deepak Saxena Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.61, 2004-09-14 07:50:33-07:00, axboe@suse.de [PATCH] block highmem flushes Add a couple of missing cache flushes to the bouncing code. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.60, 2004-09-14 07:50:21-07:00, blaisorblade_spam@yahoo.it [PATCH] uml: remove CONFIG_UML_SMP Using CONFIG_UML_SMP and then making CONFIG_SMP = CONFIG_UML_SMP is useless (there was a reason in 2.4, to have different help texts, but not now). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.59, 2004-09-14 07:50:09-07:00, blaisorblade_spam@yahoo.it [PATCH] uml: smp build fix From: Sonny Rao Make the SMP code compile, at least, to make testing possible, and remove its dependency on CONFIG_BROKEN. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.58, 2004-09-14 07:49:54-07:00, blaisorblade_spam@yahoo.it [PATCH] uml: remove commented old code in Kconfig Drop a config option which has disappeared from all archs. Btw, this shouldn't be in the UML-specific part, but since we cannot include generic Kconfigs to avoid problem with hardware-related configs, it's duplicated for now. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.57, 2004-09-14 07:49:42-07:00, blaisorblade_spam@yahoo.it [PATCH] uml: refer to CONFIG_USERMODE, not to CONFIG_UM Correct one Kconfig dependency, which should refer to CONFIG_USERMODE rather than to CONFIG_UM. We should also figure out how to make the config process work better for UML. We would like to make UML able to "source drivers/Kconfig" and have the right drivers selectable (i.e. LVM, ramdisk, and so on) and the ones for actual hardware excluded. I've been reading such a request even from Jeff Dike at the last Kernel Summit, (in the lwn.net coverage) but without any followup. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.56, 2004-09-14 07:49:28-07:00, jdike@addtoit.com [PATCH] uml: disable pending signals across a reboot On reboot, all signals and signal sources are disabled so that late-arriving signals don't show up after the reboot exec, confusing the new image, which is not expecting signals yet. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.55, 2004-09-14 07:49:16-07:00, jdike@addtoit.com [PATCH] uml: fix binary layout assumption This patch calculates section boundaries differently so as to not get tripped up by holes in the binary such as are introduced by exec-shield. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.54, 2004-09-14 07:49:04-07:00, jdike@addtoit.com [PATCH] uml: fix scheduler race This fixes a use-after-free bug in the context switching. A process going out of context after exiting wakes up the next process and then kills itself. The problem is that when it gets around to killing itself is up to the host and can happen a long time later, including after the incoming process has freed its stack, and that memory is possibly being used for something else. The fix is to have the incoming process kill the exiting process just to make sure it can't be running at the point that its stack is freed. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.53, 2004-09-14 07:48:53-07:00, jdike@addtoit.com [PATCH] uml: eliminate useless thread field This patch eliminates use of task.thread.kernel_stack. It was unnecessary, confusing, and was masking some kernel stack size assumptions. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.52, 2004-09-14 07:48:40-07:00, jdike@addtoit.com [PATCH] uml: remove ghash.h Remove dependency on ghash.h. Remvoe ghash.h, too. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.51, 2004-09-14 07:48:26-07:00, rsa@us.ibm.com [PATCH] HVCS fix to replace yield with tty_wait_until_sent in hvcs_close Following the same advice you gave in a recent hvc_console patch I have modified HVCS to remove a while() { yield(); } from hvcs_close() which may cause problems where real time scheduling is concerned and replaced it with tty_wait_until_sent() which uses a real wait queue and is the proper method for blocking a tty operation while waiting for data to be sent. This patch has been tested to verify that all the paths of code that were changed were hit during the code run and performed as expected including hotplug remove of hvcs adapters and hangup of ttys. - Replaced yield() in hvcs_close() with tty_wait_until_sent() to prevent possible lockup with realtime scheduling. - Removed hvcs_final_close() and reordered cleanup operations to prevent discarding of pending data during an hvcs_close() call. - Removed spinlock protection of hvcs_struct data members in hvcs_write_room() and hvcs_chars_in_buffer() because they aren't needed. Signed-off-by: Ryan S. Arnold Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.50, 2004-09-14 07:48:14-07:00, mingo@elte.hu [PATCH] blk: max_sectors tunables Introduces two new /sys/block values: /sys/block/*/queue/max_hw_sectors_kb /sys/block/*/queue/max_sectors_kb max_hw_sectors_kb is the maximum that the driver can handle and is readonly. max_sectors_kb is the current max_sectors value and can be tuned by root. PAGE_SIZE granularity is enforced. It's all locking-safe and all affected layered drivers have been updated as well. The patch has been in testing for a couple of weeks already as part of the voluntary-preempt patches and it works just fine - people use it to reduce IDE IRQ handling latencies. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.49, 2004-09-14 07:48:01-07:00, ak@suse.de [PATCH] Add prctl to modify current->comm This patch adds a prctl to modify current->comm as shown in /proc. This feature was requested by KDE developers. In KDE most programs are started by forking from a kdeinit program that already has the libraries loaded and some other state. Problem is to give these forked programs the proper name. It already writes the command line in the environment (as seen in ps), but top uses a different field in /proc/pid/status that reports current->comm. And that was always "kdeinit" instead of the real command name. So you ended up with lots of kdeinits in your top listing, which was not very useful. This patch adds a new prctl PR_SET_NAME to allow a program to change its comm field. I considered the potential security issues of a program obscuring itself with this interface, but I don't think it matters much because a program can already obscure itself when the admin uses ps instead of top. In case of a KDE desktop calling everything kdeinit is much more obfuscation than the alternative. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.48, 2004-09-14 07:47:51-07:00, hch@lst.de [PATCH] remove exports from audit code Tons of exports in the new audit code, but not a single module that actually uses one of them. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.47, 2004-09-14 07:47:38-07:00, hch@lst.de [PATCH] mark dq_list_lock static Only used in dq_list_lock these days. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.46, 2004-09-14 07:47:27-07:00, hch@lst.de [PATCH] mark md_interrupt_thread static Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.45, 2004-09-14 07:47:15-07:00, hch@lst.de [PATCH] make kmem_find_general_cachep static in slab.c Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.44, 2004-09-14 07:47:02-07:00, juhl-lkml@dif.dk [PATCH] __copy_to_user() check in cdrom_read_cdda_old() akpm: really, reads are supposed to return the number-of-bytes-read on faults, or -EFAULT of no bytes were read. This patch returns either zero or -EFAULT, ignoring any successfully transferred data. But the user interface (whcih is an ioctl()) was never set up to do that. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.43, 2004-09-14 07:46:50-07:00, anton@samba.org [PATCH] Allocate correct amount of memory for pid hash We are now allocating twice as much memory as required. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.42, 2004-09-14 07:46:38-07:00, hugh@veritas.com [PATCH] shmem: Copyright file_setup trivia I _think_ shmem_file_setup is protected against negative loff_t size by the TASK_SIZE in each arch, but prefer the security of an explicit test. Wipe those parentheses off its return(file), and update our Copyright. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.41, 2004-09-14 07:46:25-07:00, hugh@veritas.com [PATCH] shmem: rework majmin and ZERO_PAGE Very minor adjustments to shmem_getpage return path: I now prefer it to return NULL and let do_shmem_file_read use ZERO_PAGE(0) in that case; and we don't need a local majmin variable, do_no_page initializes *type to VM_FAULT_MINOR already. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.40, 2004-09-14 07:46:13-07:00, hugh@veritas.com [PATCH] shmem: avoid the shmem_inodes list If we're thinking about shmem scalability... isn't it silly that each shmem object is added to the shmem_inodes list on creation, and removed on deletion, yet the only use for that list is in swapoff (shmem_unuse)? Call it shmem_swaplist; shmem_writepage add inode to swaplist when first swap allocated (usually never); shmem_delete_inode remove inode from the list after truncating (if called before, inode could be re-added to it). Inode can remain on the swaplist after all its pages are swapped back in, just be lazy about it; but if shmem_unuse finds swapped count now 0, save itself time by then removing that inode from the swaplist. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.39, 2004-09-14 07:46:01-07:00, hugh@veritas.com [PATCH] shmem: no sbinfo for tmpfs mount? Some might want a tmpfs mount with the improved scalability afforded by omitting shmem superblock accounting; or some might just want to test it in an externally-visible tmpfs mount instance. Adopt the convention that mount option -o nr_blocks=0,nr_inodes=0 means without resource limits, and hence no shmem_sb_info. Not recommended for general use, but no worse than ramfs. Disallow remounting from unlimited to limited (no accounting has been done so far, so no idea whether it's permissible), and from limited to unlimited (because we'd need then to free the sbinfo, and visit each inode to reset its i_blocks to 0: why bother?). Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.38, 2004-09-14 07:45:49-07:00, hugh@veritas.com [PATCH] shmem: no sbinfo for shm mount SGI investigations have shown a dramatic contrast in scalability between anonymous memory and shmem objects. Processes building distinct shmem objects in parallel hit heavy contention on shmem superblock stat_lock. Across 256 cpus an intensive test runs 300 times slower than anonymous. Jack Steiner has observed that all the shmem superblock free_blocks and free_inodes accounting is redundant in the case of the internal mount used for SysV shared memory and for shared writable /dev/zero objects (the cases which most concern them): it specifically declines to limit. Based upon Brent Casavant's SHMEM_NOSBINFO patch, this instead just removes the shmem_sb_info structure from the internal kernel mount, testing where necessary for null sbinfo pointer. shmem_set_size moved within CONFIG_TMPFS, its arg named "sbinfo" as elsewhere. This brings shmem object scalability up to that of anonymous memory, in the case where distinct processes are building (faulting to allocate) distinct objects. It significantly improves parallel building of a shared shmem object (that test runs 14 times faster across 256 cpus), but other issues remain in that case: to be addressed in later patches. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.37, 2004-09-14 07:45:36-07:00, hugh@veritas.com [PATCH] shmem: inodes and links need lowmem Keith Mannthey's Bugzilla #3268 drew attention to how tmpfs inodes and dentries and long names and radix-tree nodes pin lowmem. Assuming about 1k of lowmem per inode, we need to lower the default nr_inodes limit on machines with significant highmem. Be conservative, but more generous than in the original patch to Keith: limit to number of lowmem pages, which works out around 200,000 on i386. Easily overridden by giving the nr_inodes= mount option: those who want to sail closer to the rocks should be allowed to do so. Notice how tmpfs dentries cannot be reclaimed in the way that disk-based dentries can: so even hard links need to be costed. They are cheaper than inodes, but easier all round to charge the same. This way, the limit for hard links is equally visible through "df -i": but expect occasional bugreports that tmpfs links are being treated like this. Would have been simpler just to move the free_inodes accounting from shmem_delete_inode to shmem_unlink; but that would lose the charge on unlinked but open files. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.36, 2004-09-14 07:45:23-07:00, hugh@veritas.com [PATCH] shmem: don't SLAB_HWCACHE_ALIGN Anton recently removed SLAB_HWCACHE_ALIGN from the fs inode caches, now do the same for tmpfs inode cache: fits 9 per page where 7 before. Was saying SLAB_RECLAIM_ACCOUNT too, but that's wrong: tmpfs inodes are not reclaimed under pressure; and hugetlbfs had copied that too. Rearrange shmem_inode_info fields so those most likely to be needed are most likely to be in the same cacheline as the spinlock guarding them. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.35, 2004-09-14 07:45:11-07:00, castet.matthieu@free.fr [PATCH] pnpbios parser bugfix this patch fix a pnpbios problem with independant resource(http://bugzilla.kernel.org/show_bug.cgi?id=3295) : the old code assume that they are given at the beggining (before any SMALL_TAG_STARTDEP entry), but in some case there are found after SMALL_TAG_ENDDEP entry. tag : 6 SMALL_TAG_STARTDEP tag : 8 SMALL_TAG_PORT tag : 6 SMALL_TAG_STARTDEP tag : 8 SMALL_TAG_PORT tag : 7 SMALL_TAG_ENDDEP tag : 4 SMALL_TAG_IRQ <-- independant resource tag : f SMALL_TAG_END Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.34, 2004-09-14 07:44:59-07:00, yuvalt@gmail.com [PATCH] searching for parameters in 'make menuconfig' I added the ability to search for parameters in make menuconfig (find a given parameter's location in the tree). You use '/' to invoke the feature. Regular expression searches are supported. Signed-off-by: Yuval Turgeman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.33, 2004-09-14 07:44:46-07:00, benh@kernel.crashing.org [PATCH] ppc32: pmac cpufreq for ibook 2 600 This patch adds support for the 750CX based ibook2 600Mhz to the cpufreq powermac driver. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.32, 2004-09-14 07:44:34-07:00, anton@samba.org [PATCH] ppc32: remove -Wno-uninitialized Remove -Wno-uninitialized on ppc32 too. Ive just found a number of real bugs on ppc64 by doing the same. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.31, 2004-09-14 07:44:21-07:00, david@gibson.dropbear.id.au [PATCH] ppc64: improved VSID allocation algorithm This patch has been tested both on SLB and segment table machines. This new approach is far from the final word in VSID/context allocation, but it's a noticeable improvement on the old method. Replace the VSID allocation algorithm. The new algorithm first generates a 36-bit "proto-VSID" (with 0xfffffffff reserved). For kernel addresses this is equal to the ESID (address >> 28), for user addresses it is: (context << 15) | (esid & 0x7fff) These are distinguishable from kernel proto-VSIDs because the top bit is clear. Proto-VSIDs with the top two bits equal to 0b10 are reserved for now. The proto-VSIDs are then scrambled into real VSIDs with the multiplicative hash: VSID = (proto-VSID * VSID_MULTIPLIER) % VSID_MODULUS where VSID_MULTIPLIER = 268435399 = 0xFFFFFC7 VSID_MODULUS = 2^36-1 = 0xFFFFFFFFF This scramble is 1:1, because VSID_MULTIPLIER and VSID_MODULUS are co-prime since VSID_MULTIPLIER is prime (the largest 28-bit prime, in fact). This scheme has a number of advantages over the old one: - We now have VSIDs for every kernel address (i.e. everything above 0xC000000000000000), except the very top segment. That simplifies a number of things. - We allow for 15 significant bits of ESID for user addresses with 20 bits of context. i.e. 8T (43 bits) of address space for up to 1M contexts, significantly more than the old method (although we will need changes in the hash path and context allocation to take advantage of this). - Because we use a real multiplicative hash function, we have better and more robust hash scattering with this VSID algorithm (at least based on some initial results). Because the MODULUS is 2^n-1 we can use a trick to compute it efficiently without a divide or extra multiply. This makes the new algorithm barely slower than the old one. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.30, 2004-09-14 07:44:08-07:00, anton@samba.org [PATCH] hvc: uninitialised variable Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.29, 2004-09-14 07:43:55-07:00, anton@samba.org [PATCH] ppc64: Fix spurious warnings uncovered by -Wno-uninitialized removal Here are fixes for some false positives. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.28, 2004-09-14 07:43:43-07:00, anton@samba.org [PATCH] ppc64: Fix real bugs uncovered by -Wno-uninitialized removal The removal of -Wno-uninitialized on ppc64 revealed a number of real bugs. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.27, 2004-09-14 07:43:30-07:00, anton@samba.org [PATCH] ppc64: remove -Wno-uninitialized Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.26, 2004-09-14 07:43:18-07:00, anton@samba.org [PATCH] ppc64: clean up idle loop code Clean up our idle loop code: - Remove a bunch of useless includes and make most functions static - There were places where we werent disabling interrupts before checking need_resched then calling the hypervisor to sleep our thread. We might race with an IPI and end up missing a reschedule. Disable interrupts around these regions to make them safe. - We forgot to turn off the polling flag when exiting the dedicated_idle idle loop. This could have resulted in all manner problems as other cpus would avoid sending IPIs to force reschedules. - Add a missing check for cpu_is_offline in the shared cpu idle loop. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.25, 2004-09-14 07:43:06-07:00, anton@samba.org [PATCH] ppc64: enable POWER5 low power mode in idle loop Now that we understand (and have fixed) the problem with using low power mode in the idle loop, lets enable it. It should save a fair amount of power. (The problem was that our exceptions were inheriting the low power mode and so were executing at a fraction of the normal cpu issue rate. We fixed it by always bumping our priority to medium at the start of every exception). Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.24, 2004-09-14 07:42:54-07:00, anton@samba.org [PATCH] ppc64: restore smt-enabled=off kernel command line option Restore the smt-enabled=off kernel command line functionality: - Remove the SMT_DYNAMIC state now that smt_snooze_delay allows for the same thing. - Remove the early prom.c parsing for the option, put it into an early_param instead. - In setup_cpu_maps honour the smt-enabled setting Note to Nathan: In order to allow cpu hotplug add of secondary threads after booting with smt-enabled=off, I had to initialise cpu_present_map to cpu_online_map in smp_cpus_done. Im not sure how you want to handle this but it seems our present map currently does not allow cpus to be added into the partition that werent there at boot (but were in the possible map). Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.23, 2004-09-14 07:42:41-07:00, anton@samba.org [PATCH] ppc64: use early_param Make use of Rusty's early_param code. Its good stuff. We appear to be the first user :) Move vpa_init and idle_setup later in boot, we dont have to do them right up front in setup_system. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.22, 2004-09-14 07:42:28-07:00, anton@samba.org [PATCH] ppc64: remove EEH command line device matching code We have had reports of people attempting to disable EEH on POWER5 boxes. This is not supported, and the device will most likely not respond to config space reads/writes. Remove the IBM location matching code that was being used to disable devices as well as the global option. We already have the ability to ignore EEH erros via the panic_on_oops sysctl option, advanced users should make use of that instead. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.21, 2004-09-14 07:42:16-07:00, anton@samba.org [PATCH] ppc64: remove unused ppc64_calibrate_delay - Remove ppc64_calibrate_delay, no longer used - Formatting fixups Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.20, 2004-09-14 07:42:04-07:00, anton@samba.org [PATCH] ppc64: clean up kernel command line code Clean up some of our command line code: - We were copying the command line out of the device tree twice, but the first time we forgot to add CONFIG_CMDLINE. Fix this and remove the second copy. - The command line birec code ran after we had done some command line parsing in prom.c. This had the opportunity to really confuse the user, with some options being parsed out of the device tree and the other out of birecs. Luckily we could find no user of the command line birecs, so remove them. - remove duplicate printing of kernel command line; - clean up iseries inits and create an iSeries_parse_cmdline. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.19, 2004-09-14 07:41:51-07:00, anton@samba.org [PATCH] ppc64: use nm --synthetic where available On new toolchains we need to use nm --synthetic or we miss code symbols. Sam, I'm not thrilled about this patch but Im not sure of an easier way. Any ideas? Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.18, 2004-09-14 07:41:39-07:00, anton@samba.org [PATCH] ppc64: give the kernel an OPD section From: Alan Modra Give the kernel an OPD section, required for recent ppc64 toolchains. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.17, 2004-09-14 07:41:27-07:00, anton@samba.org [PATCH] ppc64: Enable NUMA API Plumb the NUMA API syscalls into ppc64. Also add some missing cond_syscalls so we still link with NUMA API disabled. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.16, 2004-09-14 07:41:15-07:00, anton@samba.org [PATCH] ppc64: RTAS error logs can appear twice in dmesg I've started seeing rtas errors printed twice. Remove the second call to printk_log_rtas. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.15, 2004-09-14 07:41:03-07:00, anton@samba.org [PATCH] ppc64: remove SPINLINE config option After the spinlock rework, CONFIG_SPINLINE doesnt work and causes a compile error. Remove it for now. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.14, 2004-09-14 07:40:51-07:00, willschm@us.ibm.com [PATCH] ppc64: lparcfg whitespace and wordwrap cleanup. This patch is the result of running Lindent against arch/ppc64/kernel/lparcfg.c. This cleans up an assortment of whitespace and wordwrap inconsistencies. Signed-off-by: Will Schmidt Signed-off-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.13, 2004-09-14 07:40:39-07:00, willschm@us.ibm.com [PATCH] ppc64: lparcfg fixes for processor counts This patch corrects how the lparcfg interface was presenting the number of active and potential processors. (As reported in LTC bugzilla number 10889). - Correct output for partition_potential_processors and system_active_processors. - suppress pool related values in scenarios where they do not make sense. (non-shared processor configurations) - Display pool_capacity as a percentage, to match the behavior from iSeries code. Signed-off-by: Will Schmidt Signed-off-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.12, 2004-09-14 07:40:27-07:00, davej@redhat.com [PATCH] Pointer dereference before NULL check in ACPI thermal driver Again, found with coverity's checker. Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.11, 2004-09-14 07:40:15-07:00, jason.davis@unisys.com [PATCH] ES7000 subarch update The patch below implements an algorithm to determine an unique GSI override for mapping GSIs to IO-APIC pins correctly. GSI overrides are required in order for ES7000 machines to function properly since IRQ to pin mappings are NOT all one-to-one. This patch applies only to the Unisys specific ES7000 machines and has been tested thoroughly on several models of the ES7000 line. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.10, 2004-09-14 07:40:03-07:00, nathanl@austin.ibm.com [PATCH] fix schedstats null deref in sched_exec In sched_exec, schedstat_inc will dereference a null pointer if no domain is found with the SD_BALANCE_EXEC flag set. This was exposed during testing of the previous patches where cpus are temporarily attached to a dummy domain without SD_BALANCE_EXEC set. Signed-off-by: Nathan Lynch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1864.1.2, 2004-09-14 14:30:26+01:00, aia21@cantab.net NTFS: Fix scheduling latencies in ntfs_fill_super() by dropping the BKL because the code itself is using the ntfs_lock semaphore which provides safe locking. (Ingo Molnar) Signed-off-by: Ingo Molnar Signed-off-by: Anton Altaparmakov ChangeSet@1.1867.8.4, 2004-09-14 03:03:26-07:00, rth@kanga.twiddle.home [ALPHA] Add waitid. ChangeSet@1.1867.8.3, 2004-09-14 03:02:28-07:00, rth@kanga.twiddle.home [ALPHA] Arrange to return EINTR for sigsuspend on signal path. ChangeSet@1.1867.8.2, 2004-09-14 02:39:33-07:00, rth@kanga.twiddle.home [ALPHA] Use "long" on some internal bitops routines. ChangeSet@1.1867.8.1, 2004-09-14 02:36:46-07:00, rth@kanga.twiddle.home [ALPHA] Check set_fd_set return. ChangeSet@1.1867.5.17, 2004-09-14 09:54:04+01:00, nico@org.rmk.(none) [ARM PATCH] 2094/1: don't lose the system timer after resuming from sleep on SA11x0 and PXA2xx Patch from Nicolas Pitre Let's make sure OSCR doesn't end up to be restored with a value past OSMR0 otherwise the system timer won't start ticking until OSCR wraps around (aprox 17 min. Also set OSCR _after_ OIER is restored to avoid matching when corresponding match interrupt is masked out. Signed-off-by: Nicolas Pitre ChangeSet@1.1867.6.2, 2004-09-13 22:13:59-07:00, davem@nuts.davemloft.net [SPARC64]: __iomem annotations and iomap implementation. ChangeSet@1.1885, 2004-09-13 21:40:12-07:00, davem@nuts.davemloft.net [TCP]: Fix logic error in packets_out accounting. Noticed by Herbert Xu. Signed-off-by: David S. Miller ChangeSet@1.1867.7.3, 2004-09-13 23:31:50-04:00, jgarzik@pobox.com [libata] consolidate legacy/native mode init code into helpers Eliminates duplicate code in sata_nv, sata_sis, and sata_via. ChangeSet@1.1867.7.2, 2004-09-13 22:34:11-04:00, jgarzik@pobox.com [libata] remove distinction between MMIO/PIO helper functions Prepare for use of new generic iomap API. ChangeSet@1.1867.7.1, 2004-09-13 22:14:43-04:00, jgarzik@pobox.com [libata sata_nv] sync with 2.4 Driver should be using LIBATA_MAX_PRD not ATA_MAX_PRD, due to iommu layer splitting. ChangeSet@1.1867.6.1, 2004-09-13 19:01:14-07:00, davem@nuts.davemloft.net [IOMAP]: Make ioport_map() take unsigned long port argument. Signed-off-by: David S. Miller ChangeSet@1.1884, 2004-09-13 16:17:24-07:00, shemminger@osdl.org [B44]: Fix b44 I/O mem space access warnings. B44 driver was using unsigned long as an io memory address. Recent changes caused this to be a warning. This patch fixes that and makes the readl/writel wrapper into inline's instead of macros with magic variable side effect (yuck). Signed-off-by: David S. Miller ChangeSet@1.1883, 2004-09-13 16:08:46-07:00, martin.wilck@fujitsu-siemens.com [TG3]: Fix pause handling, we had duplicate flags for the same thing. Signed-off-by: David S. Miller ChangeSet@1.1832.73.1, 2004-09-13 20:05:28-03:00, acme@conectiva.com.br [NET] generalise per protocol slab cache handling With this patch we get two new slabcaches, for sctp socks, that previously were being allocated on the default, that was tcp[6]_sock, i.e. wasting 288 bytes per sock in the IPv4 case and 256 bytes for the IPv6 version, this is in preparation for DCCP (or any other new protocol :) ). With this in place another nice side effect that is easier to achieve is to get rid of struct sock sk->sk_slab, and instead use sk->sk_prot->slab, saving sizeof(void *) on every struct sock instance, but this unfortunatly has to wait for the conversion of all protocols that use per socket slabcaches to use sk->sk_prot, AF_UNIX is the only one AFAIK, so I'll try to convert it to use sk->sk_prot and then get rid of sk->sk_slab. As for the protocols that don't use per socket slabcaches its just a matter of defaulting to sk_cachep at sk_free time if sk->sk_prot is NULL. [root@qemu ~]# modprobe sctp [root@qemu ~]# grep _sock /proc/slabinfo sctpv6_sock 9 9 864 9 2 : tunables 54 27 0 : sctp_sock 0 0 736 5 1 : tunables 54 27 0 : rawv6_sock 3 6 640 6 1 : tunables 54 27 0 : udpv6_sock 0 0 608 6 1 : tunables 54 27 0 : tcpv6_sock 1 7 1120 7 2 : tunables 24 12 0 : unix_sock 6 10 384 10 1 : tunables 54 27 0 : raw_sock 2 8 480 8 1 : tunables 54 27 0 : udp_sock 0 0 512 7 1 : tunables 54 27 0 : tcp_sock 0 0 1024 4 1 : tunables 54 27 0 : Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller ChangeSet@1.1882, 2004-09-13 16:04:36-07:00, i@stingr.net [IPV4]: Add wccp v1/v2 support to ip_gre.c Signed-off-by: David S. Miller ChangeSet@1.1867.5.16, 2004-09-13 23:52:16+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2093/1: S3C2410 - remove un-necessary resource from NAND Patch from Ben Dooks Removed resource description left by copying error Thanks to Klaus Fetscher for pointing this out. Signed-off-by: Ben Dooks ChangeSet@1.1867.5.15, 2004-09-13 23:47:50+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2092/1: S3C2410 - gpio bugfix and additions Patch from Ben Dooks Fix inverted mask in s3c2410_gpio_setpin() function, add s3c2410_modify_misccr() for shared register, and add s3c2410_gpio_getpin() Signed-off-by: Ben Dooks ChangeSet@1.1867.5.14, 2004-09-13 23:43:25+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2091/1: S3C2410 - change id of s3c2410-ohci Patch from Ben Dooks Fix missed ID change on s3c2410-usb Signed-off-by: Ben DOoks ChangeSet@1.1881, 2004-09-13 15:43:14-07:00, davem@nuts.davemloft.net [TCP]: Just silently ignore ICMP Source Quench messages. Recommended by draft-gont-tcpm-icmp-attacks-01.txt Signed-off-by: David S. Miller ChangeSet@1.1867.5.13, 2004-09-13 23:39:13+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2090/2: S3C2410 - usb gadged (udc) include Patch from Ben Dooks Header file for USB gadget controller (udc) for the Samsung S3C2410 SoC Signed-off-by: Herbert Poetzl Signed-off-by: Ben Dooks ChangeSet@1.1867.5.12, 2004-09-13 23:33:33+01:00, rmk@flint.arm.linux.org.uk [ARM] Revive kapmd and provide apm_queue_event() Add kapmd thread to provide a process context to handle "APM" events submitted via apm_queue_event(). Add apm_queue_event(), which can be called from hardware interrupt handlers and the like, typically to fire off a suspend. ChangeSet@1.1867.5.11, 2004-09-13 23:28:34+01:00, rmk@flint.arm.linux.org.uk [ARM] Update APM state definitions Move existing APM state definitions into struct apm_power_info, and add further definitions describing other fields. ChangeSet@1.1867.5.10, 2004-09-13 23:22:23+01:00, rmk@flint.arm.linux.org.uk [ARM] Keep APM threads frozen Ensure threads waiting for suspend to occur in apm_ioctl are not woken by the pm_suspend thread freezing - they're already frozen. ChangeSet@1.1867.5.9, 2004-09-13 23:18:17+01:00, rmk@flint.arm.linux.org.uk [ARM] No point having "nonblock" local variable - kill it. ChangeSet@1.1867.5.8, 2004-09-13 23:13:03+01:00, rmk@flint.arm.linux.org.uk [ARM] Convert suspend to a state machine. The original version had issues when two suspend events came in at around the same time, causing APM to get confused: threads became stuck in APM_IOC_SUSPEND and suspends_pending incremented on each apm --suspend call. Now, we only add a suspend event to a users queue and increment suspends_pending if the user isn't already in the middle of handling a suspend event. ChangeSet@1.1867.2.8, 2004-09-13 15:11:27-07:00, nico@cam.org [PATCH] linux/dma-mapping.h needs linux/device.h It seems that most architectures already include linux/device.h in their own asm/dma-mapping.h. Most but not all, and some drivers fail to compile on those architectures that don't. Since everybody needs it let's include device.h from one place only and fix compilation for everybody. ChangeSet@1.1867.5.7, 2004-09-13 23:04:59+01:00, rmk@flint.arm.linux.org.uk [ARM] Remove APM standby support - it's unused. ChangeSet@1.1867.5.6, 2004-09-13 22:59:57+01:00, rmk@flint.arm.linux.org.uk [ARM] APM: "Battery life" needs to be a signed integer. ChangeSet@1.1867.5.5, 2004-09-13 22:52:50+01:00, rmk@flint.arm.linux.org.uk [ARM] Convert APM user list lock to r/w sem Convert user_list_lock spinlock to a read/write semaphore; the spinlock was affording us very little protection. ChangeSet@1.1867.5.4, 2004-09-13 22:43:47+01:00, rmk@flint.arm.linux.org.uk [ARM] Abstract APM circular queue object. ChangeSet@1.1867.5.3, 2004-09-13 22:38:26+01:00, rmk@flint.arm.linux.org.uk [ARM] Convert list_for_each()/list_entry() to list_for_each_entry() ChangeSet@1.1867.5.2, 2004-09-13 22:34:49+01:00, rmk@flint.arm.linux.org.uk [ARM] Remove the hh.org H3600 "example" code. ChangeSet@1.1867.5.1, 2004-09-13 22:28:23+01:00, rmk@flint.arm.linux.org.uk [ARM] Fix ARM APM emulation sparse errors arch/arm/kernel/apm.c:57:16: warning: dubious one-bit signed bitfield arch/arm/kernel/apm.c:58:17: warning: dubious one-bit signed bitfield arch/arm/kernel/apm.c:59:17: warning: dubious one-bit signed bitfield arch/arm/kernel/apm.c:60:23: warning: dubious one-bit signed bitfield ChangeSet@1.1867.2.7, 2004-09-13 14:05:42-07:00, akpm@osdl.org [PATCH] isofs buffer management fix There's a double-free in the isofs filesystem. Invalidate this pointer so it doesn't get freed twice. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.6, 2004-09-13 14:05:30-07:00, anton@samba.org [PATCH] Backward compatibility for compat sched_getaffinity The follow patch special cases the NR_CPUS <= BITS_PER_COMPAT_LONG case. Without this patch, a 32bit task would be required to have a 64bit cpumask no matter what value of NR_CPUS are used. With this patch a compat long sized bitmask is allowed if NR_CPUS is small enough to fit within it. Of course applications should be using the glibc wrappers that use an opaque cpu_mask_t type, but there could be older applications using the syscalls directly. Signed-off-by: Anton Blanchard Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.5, 2004-09-13 14:05:18-07:00, anton@samba.org [PATCH] Clean up compat sched affinity syscalls Remove the set_fs hack in the compat affinity calls. Create sched_getaffinity and sched_setaffinity helper functions that both the native and compat affinity syscalls use. Also make the compat functions match what the native ones are doing now, setaffinity calls succeed no matter what length the bitmask is, but getaffinity calls must pass in bitmasks at least as long as the kernel type. Signed-off-by: Anton Blanchard Signed-off-by: Linus Torvalds ChangeSet@1.1867.2.3, 2004-09-13 13:47:41-07:00, torvalds@ppc970.osdl.org Export new PCI iomem access interfaces to modules too. ChangeSet@1.1867.4.2, 2004-09-13 13:03:56-07:00, herbert@gondor.apana.org.au [IPV6]: Add option to copy DSCP in decap in ip6_tunnel. Here is a patch that allows the copying of the DSCP during decapsulation for ip6_tunnel. I've made it a separate option from the one that determines the copying during encapsulation since the DSCP processing may be asymmetric. It also means that we preserve compatibility should anyone be relying on the current behaviour. inet_ecn.h might appear to be an odd place for ipv6_copy_dscp, but I couldn't put it in dsfield.h since I want to use ipv6_get_dsfield in inet_ecn.h later on. The other alternative would be to define INET_ECN_MASK in dsfield.h. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.1867.4.1, 2004-09-13 12:58:04-07:00, ak@muc.de [NET]: Fix missing spin lock in lltx path. This fixes a silly missing spin lock in the relock path. For some reason it seems to still work when you don't have spinlock debugging enabled. Please apply. Thanks to Arjan's spinlock debug kernel for finding it. Signed-off-by: Andi Kleen Signed-off-by: David S. Miller ChangeSet@1.1867.3.2, 2004-09-13 18:55:39+00:00, aegl@agluck-lia64.sc.intel.com Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/stephane into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9 ChangeSet@1.1803.154.1, 2004-09-13 18:48:29+00:00, eranian@hpl.hp.com [IA64] Makefile: fix for the PTRACE_SYSCALL corruption bug Thanks to David for his help in tracking it down. compile the kernel with sibling call optimization turned off. There is a problem with all functions using the optimization and the asmlinkage attribute. The compiler should not perform the optimization on these functions because it cannot preserve the syscall parameters in the callee. This caused SIGSEGV on programs traced with PTRACE_SYSCALL, for instance. signed-off-by: stephane eranian Signed-off-by: Tony Luck ChangeSet@1.1867.2.2, 2004-09-13 11:32:00-07:00, torvalds@ppc970.osdl.org Add skeleton "generic IO mapping" infrastructure. Jeff wants to use this to clean up SATA and some network drivers. ChangeSet@1.1867.2.1, 2004-09-13 09:41:04-07:00, bzolnier@elka.pw.edu.pl [PATCH] ide: small cleanup for sis5513 Sigh, Thomas Gleixner pointed out that his sis5518 fix didn't need forward porting. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Linus Torvalds ChangeSet@1.1867.1.1, 2004-09-13 12:28:57+02:00, vojtech@suse.cz Merge suse.cz:/data2/bk/linus into suse.cz:/data2/bk/input ChangeSet@1.1879, 2004-09-13 16:04:16+09:00, yoshfuji@linux-ipv6.org [IPV6] purge routes via non-router neighbour but gateway. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1878, 2004-09-13 16:02:20+09:00, yoshfuji@linux-ipv6.org [IPV6] ensure to aging default routes. This patch is product of corraboration with Ville Nuorvala . Signed-off-by: Hideaki YOSHIFUJi ChangeSet@1.1877, 2004-09-13 15:59:11+09:00, yoshfuji@linux-ipv6.org [IPV6] don't use expired default routes. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1876, 2004-09-13 15:57:40+09:00, yoshfuji@linux-ipv6.org [IPV6] NDISC: Fix message validation against Redirects. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1875, 2004-09-13 15:56:55+09:00, yoshfuji@linux-ipv6.org [NET] NEIGHBOUR: improve neighbour state machine. This centralizes neighbour state transition by timer into neigh_timer_handler(), and kill neigh_sync(). This improves timing accuracy of state transition. neigh_timer_handler() for each entry is now reponsible for state transition of the entry, and neigh_periodic_timer() is just for garbage collection. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1874, 2004-09-13 15:56:10+09:00, yoshfuji@linux-ipv6.org [IPV6] NDISC: update entry appropriately when receiving NS. Update neighbour entry appropriately by passing correct flags when receiving NS. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1873, 2004-09-13 15:54:32+09:00, yoshfuji@linux-ipv6.org [NET] NEIGHBOUR: use time_after() and its friends. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1872, 2004-09-13 15:54:11+09:00, yoshfuji@linux-ipv6.org [IPV6] NDISC: update IsRouter flag appropriately. Update IsRouter (NTF_ROUTER) flag approrpriately. Specifically, - we should not update it blindly; if Override Flag is unset and lladdr is differnt, we should NOT. - we should set it when we have received RA. - we should set it when we have received Redirect whose target is off-link. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1871, 2004-09-13 15:52:13+09:00, yoshfuji@linux-ipv6.org [NET] NEIGHBOUR: merge two flags for neigh_update() into one. This is because SUSPECT_CONNECTED can be effective only if OVERRIDE is unset, and used only if RETAIN_STATE is set. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1870, 2004-09-13 15:51:20+09:00, yoshfuji@linux-ipv6.org [IPV6] NDISC: keep original state if new state is STALE and lladdr is unchanged Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1869, 2004-09-13 15:50:56+09:00, yoshfuji@linux-ipv6.org [IPV6] NDISC: suspect REACHABLE entry if new lladdr is different. When we receive NA without Override flag, if it comes with different lladdr from one in our REACHABLE entry, set the state to STALE. (RFC2461 7.2.5) Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1868, 2004-09-13 15:50:00+09:00, yoshfuji@linux-ipv6.org [NET] NEIGHBOUR: save number of arguments for neigh_update() by flags. Signed-off-by: Hideaki YOSHIFUJI ChangeSet@1.1867, 2004-09-12 22:08:55-07:00, torvalds@ppc970.osdl.org Linux 2.6.9-rc2 TAG: v2.6.9-rc2