ChangeSet@1.2062, 2005-02-17 11:59:58-08:00, zaitcev@redhat.com [PATCH] ub: fix Add ioctls to ub patch I am awfully sorry, but that patch contained a bug. The code dereferenced cmd->back as if it were a pointer to a request even when it wasn't. It worked by accident, because rq->flags overlapped with a zeroed memory in other case. Here is a corrective patch. Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman ChangeSet@1.2061, 2005-02-17 11:56:54-08:00, zaitcev@redhat.com [PATCH] USB: Add ioctls to ub This patch adds support for ioctls to ub, with the help of scsi_ioctl_cmd(). Now ub can eject CDs. But do not try to burn CDs yet, it's not tested. Original patch from Peter Jones (aka deviant-). Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman ChangeSet@1.2058.1.8, 2005-02-17 10:08:34-08:00, rddunlap@osdl.org [PATCH] sis: fix sparse warnings drivers/video/sis/sis_main.c:2204:2: warning: undefined identifier 'lock_kernel' drivers/video/sis/sis_main.c:2206:2: warning: undefined identifier 'unlock_kernel' drivers/video/sis/sis_main.c:2204: warning: implicit declaration of function `lock_kernel' drivers/video/sis/sis_main.c:2206: warning: implicit declaration of function `unlock_kernel' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.7, 2005-02-17 10:08:20-08:00, takata@linux-m32r.org [PATCH] m32r: defconfig updates Here is a patchset to update defconfig files for m32r. The m32r kernel's API/ABI has been changed since 2.6.11-rc1. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.6, 2005-02-17 10:08:06-08:00, takata@linux-m32r.org [PATCH] m32r: fix sys_clone() This patch is required to fix sys_clone() for m32r. * arch/m32r/kernel/process.c: - Fix sys_clone; add arguments, parent_tidptr and child_tidptr. - Cosmetics: Change indentation of function parameters for sys_clone(), sys_vfork(). Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.5, 2005-02-17 10:07:53-08:00, takata@linux-m32r.org [PATCH] m32r: build fix for SMP kernel Here is a patch to fix compile errors of 2.6.11-rc4 for the m32r SMP kernel. * include/asm-m32r/spinlock.h: - Add read_can_lock() and write_can_lock() to fix build errors for SMP. - Rename 'lock' to 'slock'. (cf. Changesets 1.1966.85.1) * arch/m32r/kernel/smp.c: - Rename 'lock' to 'slock'. (cf. Changesets 1.1966.85.1) Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.4, 2005-02-17 07:57:40-08:00, nickpiggin@yahoo.com.au [PATCH] optimise copy page range Suggested by Linus: optimise a condition in the clear_p?d_range functions. Results in one less conditional branch on i386 with gcc-3.4.4 Signed-off-by: Nick Piggin Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.3, 2005-02-17 07:54:19-08:00, benh@kernel.crashing.org [PATCH] Fix buf in zeromap_pud_range() losing virtual address This patch fixes a nasty bug that took us almost a week to track down on ppc64, introduced by the 4L page table changes, and resulting in random memory corruption. All archs that rely on a PTE page's struct page to contain the mm & address (in mapping/index) will be affected. zeromap_pud_range() is one of these page tables walking functions that split the address into a base and an offset. It forgets to add back the "base" when calling the lower level zeromap_pmd_range(), thus passing a bogus virtual address. Most archs won't care, unless they do the above, since the lower level can allocate a PTE page. Kudo's to Michael Ellerman too who spent that week running tests after tests to track it down, since the only way we managed to get it to show up was after about 1 to 2h of LTP runs ... (Note: We are in _urgent_ need to consolidate all those page table walking functions, they all do things in a subtely different way, with different checks (sometimes redudant) and inconsitent with each other, even within a given set of them. Hopefully, Nick has some work in progress there). Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.2, 2005-02-17 07:54:05-08:00, benh@kernel.crashing.org [PATCH] Check for wraps in copy_page_range While browsing the 4 level page table changes (looking for a bug), I noticed that copy_page_range, unlike others, do not check for wraparound, which I suppose could be a problem with 4G/4G architectures or that sort of thing. This patch fixes it. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2058.1.1, 2005-02-17 07:53:51-08:00, benh@kernel.crashing.org [PATCH] Fix possible race with 4level-fixup.h When using 4level-fixup.h, a PMD page may end up beeing freed before the matching PGD entry is cleared due to the way the compatibility macros work. This can cause nasty races on some architectures. This patch fixes it by defining pud_clear() to be pgd_clear(). That means we'll actually write 0 twice, a small price to pay here, especially seeing how easy it is to convert to the new headers anyway (hint hint, ppc & ppc64 patches as soon as 2.6.11 is out). Signed-off-by: Nick Piggin Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2057, 2005-02-16 15:15:42-08:00, trini@kernel.crashing.org [PATCH] ppc32: fixup of previous PCI9 patch Previous PCI9 patch had a #endif placed wrong for some unknown reason (was correct in local tree) This fixes it. Signed-off-by: Rune Torgersen Signed-off-by: Tom Rini Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2056, 2005-02-16 15:15:27-08:00, ntl@pobox.com [PATCH] kthread_bind new worker threads when onlining cpu We weren't binding new worker threads to their cpu when onlining. Using preempt and the debug version of smp_processor_id found this. Signed-off-by: Nathan Lynch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2048.2.4, 2005-02-16 14:27:17-08:00, david-b@pacbell.net [PATCH] USB: ehci requeue revisit This gets rid of a bug found in some IRQ handling logic, after tripping a debug assertion. Basically, a recent patch called the wrong routine to unlink a QH. Net result, it wasn't allowing for the case that some other QH was already being unlinked. This patch uses the correct routine; the names are confusingly similar, and the effect is often identical. The consequence of using the wrong routine was that the driver could lose one of the pending unlinks (probably wedging some activity) and treat the other one as completed before it was safe to do so (which probably wouldn't oops, but could cause other nasty corruption). From: Brian Murphy Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman ChangeSet@1.2048.2.3, 2005-02-16 14:26:53-08:00, stern@rowland.harvard.edu [PATCH] USB Hub driver: Add reset recovery-time delay This patch is clearly needed for us to be in compliance with the USB spec. It adds the mandated recovery-time delay following a port reset. Regardless of anything else we do to alter the device initialization sequence, this is necessary. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman ChangeSet@1.2048.2.2, 2005-02-16 14:26:30-08:00, david-b@pacbell.net [PATCH] USB: ehci patch for NF4 port miscounting Turns out that a workaround for a different EHCI chip trips up at least one NForce4 board. Neither controller can multiply right. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman ChangeSet@1.2048.2.1, 2005-02-16 08:41:34-08:00, adaplas@hotpop.com [PATCH] fbdev: Fix gcc 4.0 compile failure From: Art Haas The current GCC cvs code does not like the include/linux/fb.h file: In file included from drivers/video/aty/atyfb_base.c:63: include/linux/fb.h:865: error: array type has incomplete element type This error is due to recent changes in GCC. A thread discussing this change can be found by following the link below: http://gcc.gnu.org/ml/gcc/2005-02/msg00053.html The patch moves the array declaration after the definition of the fb_modelist structure, and with this small change GCC is happy once again. Signed-off-by: Antonino Daplas Signed-off-by: Linus Torvalds ChangeSet@1.2048.1.6, 2005-02-16 08:09:40-08:00, Robert.Olsson@data.slu.se [PKTGEN]: Bug fixes, bump to version 2.56. - Fix printing of running list, do not stop at first not-running device, instead scan them all. - Do not free SKB before final access via show_results() Signed-off-by: David S. Miller ChangeSet@1.1938.498.13, 2005-02-15 22:30:04-05:00, len.brown@intel.com [ACPI] ACPICA 20050211 from Bob Moore Implemented ACPI 3.0 support for implicit conversion within the Match() operator. match_obj can now be of type integer, buffer, or string instead of just type integer. Package elements are implicitly converted to the type of the match_obj. This change aligns the behavior of Match() with the behavior of the other logical operators (LLess(), etc.) It also requires an errata change to the ACPI specification as this support was intended for ACPI 3.0, but was inadvertently omitted. Fixed a problem with the internal implicit "to buffer" conversion. Strings that are converted to buffers will cause buffer truncation if the string is smaller than the target buffer. Integers that are converted to buffers will not cause buffer truncation, only zero extension (both as per the ACPI spec.) The problem was introduced when code was added to truncate the buffer, but this should not be performed in all cases, only the string case. Fixed a problem with the Buffer and Package operators where the interpreter would get confused if two such operators were used as operands to an ASL operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result stack was not being popped after the execution of these operators, resulting in an AE_NO_RETURN_VALUE exception. Fixed a problem with constructs of the form Store(Index(...),...). The reference object returned from Index was inadvertently resolved to an actual value. This problem was introduced in version 20050114 when the behavior of Store() was modified to restrict the object types that can be used as the source operand (to match the ACPI specification.) Reduced stack use in acpi_get_object_info(). ChangeSet@1.2052, 2005-02-15 18:44:43-08:00, breuerr@mc.net [SPARC]: Check prom_getproperty return value. Errors should not be ignored, so add __must_check tag to this function as well. Signed-off-by: David S. Miller ChangeSet@1.2048.1.5, 2005-02-15 18:38:35-08:00, benh@kernel.crashing.org [PATCH] radeonfb: Fix hang on boot with some laptops It appears that access to the PLL registers of the radeon chip is unreliable while the card is in "legacy VGA" text mode. I don't have a good explanation yet, it might be the BIOS mucking around behind my back. This fixes the lockup by moving the code that enables/disables the dynamic power management to after the mode is set. I'm still waiting for a proper explanation from ATI... Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2046.1.7, 2005-02-15 14:51:04-08:00, yoshfuji@linux-ipv6.org [IPV6]: Fix IPV6_PKTINFO et al. handling in udpv6_recvmsg(). CMSG reception needs to occur even if msg_name is not set. Signed-off-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller ChangeSet@1.2046.1.6, 2005-02-15 14:23:32-08:00, herbert@gondor.apana.org.au [NET]: Add netdev argument to dst ifdown. This patch adds a net_device argument to ifdown. After all, it's a bit silly to notify someone of an ifdown event without telling them what which device it was for :) Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.2046.1.5, 2005-02-15 14:22:41-08:00, herbert@gondor.apana.org.au [IPSEC]: Move dst->child loop from dst_ifdown to xfrm_dst_ifdown. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller ChangeSet@1.2048.1.3, 2005-02-15 13:04:21-08:00, torvalds@ppc970.osdl.org Input: fix ALPS protocol validation rules We checked the wrong byte, causing the touchpad to lose sync if an absolute packet is received after a relative packet with negative Y displacement. Signed-off-by: Dmitry Torokhov Signed-off-by: Linus Torvalds ChangeSet@1.2048.1.2, 2005-02-15 12:59:34-08:00, torvalds@ppc970.osdl.org Fix bogus opost buffer size check Noted while going through the n_tty code: that buffer check used to check against the size of the temporary kernel buffer, but since the tty layer was changed to use kernel buffers though-out, the kernel buffer array became just a pointer, and the check was limiting the opost blocksize to the size of a pointer, which makes no sense. Just remove it, since now the whole buffer is always in kernel space. ChangeSet@1.2046.2.1, 2005-02-15 11:52:29-08:00, torvalds@ppc970.osdl.org Limit tty IO chunking to 2kB The NTTY code can get confused by 4kB chunks, apparently because n_tty_receive_room() will claim to have more room than n_tty_receive_buf() can actually accept. Until somebody figures out what the real n_tty_receive_room() logic should be, let's just limit it to a safe 2kB. Thanks go to Andreas Schwab for finding a test-case. ChangeSet@1.2046.1.4, 2005-02-15 09:53:23-08:00, olh@suse.de [NET]: Fix socket.h comment typo. Signed-off-by: Olaf Hering Signed-off-by: David S. Miller ChangeSet@1.2051, 2005-02-15 09:35:53-08:00, ahaas@airmail.net [SPARC]:Check prom_getproperty() return value in prom_nodematch(). Signed-off-by: David S. Miller ChangeSet@1.2046.1.3, 2005-02-15 09:28:16-08:00, ralf@linux-mips.org [NETROM/ROSE]: Use netdev_priv() Signed-off-by: David S. Miller ChangeSet@1.2050, 2005-02-15 09:12:27-08:00, krzysztof.h1@wp.pl [SPARC32]: Need to clear PSR_EF in psr of childregs on fork() on SMP. Signed-off-by: David S. Miller ChangeSet@1.2046.1.2, 2005-02-15 08:49:36-08:00, davem@nuts.davemloft.net [TG3]: Update driver version and reldate. Signed-off-by: David S. Miller ChangeSet@1.2046.1.1, 2005-02-15 08:48:26-08:00, davem@nuts.davemloft.net [TG3]: Always check tg3_readphy() return value. Signed-off-by: David S. Miller ChangeSet@1.2049, 2005-02-15 08:23:00-08:00, davem@nuts.davemloft.net [SPARC]: Fix video mode probing in atyfb driver. On Sparc, if the user does not specify a mode option, we should use the PROM probed values in default_var always. Signed-off-by: David S. Miller ChangeSet@1.2048, 2005-02-15 07:41:38-08:00, davem@nuts.davemloft.net [SPARC]: Fix cg3 fb blanking. cg3_blank() needs to clear the video enable register bit to blank the screen, not set it. Signed-off-by: David S. Miller ChangeSet@1.2039.3.1, 2005-02-14 14:40:27-08:00, davem@nuts.davemloft.net [COMPAT]: TUNSETIFF needs to copy back data after ioctl. It is defined as a _IOW() which is erroneous, it should have been defined as _IORW() but that cannot be changed now without breaking all existing applications using this ioctl. Signed-off-by: David S. Miller ChangeSet@1.2039.2.5, 2005-02-14 14:21:09-08:00, eike-kernel@sf-tec.de [PATCH] make ACPI_BLACKLIST_YEAR depend on ACPI_INTERPRETER this oneliner fixes the situation that I can enter a year to blacklist ACPI devices even if ACPI is completely disabled. Signed-off-by: Rolf Eike Beer Signed-off-by: Linus Torvalds ChangeSet@1.2039.2.4, 2005-02-14 14:20:06-08:00, hch@lst.de [PATCH] block new writers on frozen filesystems When the lockfs patches went in an important bit got lost, the call in generic_file_write to put newly incoming writers to sleep when a filesystem is frozen. Nathan added back the call in the now separate XFS write patch, and the patch for the generic code is below: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2039.2.3, 2005-02-14 14:19:53-08:00, minyard@acm.org [PATCH] IPMI: Fix LAN bridging The size of LAN bridged messages was not being returned properly from the function that calculated address sizes. Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2039.2.2, 2005-02-14 14:19:40-08:00, olh@suse.de [PATCH] ppc64: remove extra whitespace before preprocessor token unifdef complains about the space before #ifndef. Signed-off-by: Olaf Hering Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2039.2.1, 2005-02-14 14:19:26-08:00, herbert@gondor.apana.org.au [PATCH] ISDN locking fix isdn_net_get_locked_lp is doing a local_bh_enable with hard IRQs disabled. This is not allowed. The following patch fixes the problem by removing the unnecessary local_bh_enable while the hard IRQs are disabled. Signed-off-by: Herbert Xu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2044, 2005-02-14 18:09:02+00:00, rmk@flint.arm.linux.org.uk [ARM] Fix sparse warnings for Integrator builds. Add some missing __iomem annotations for Integrator machines. Signed-off-by: Russell King ChangeSet@1.2043, 2005-02-14 17:32:31+00:00, rmk@flint.arm.linux.org.uk [ARM] Fix SA1111 and PXA iomem sparse warnings. This adds some missing annotations found by making the raw IO operations check their pointer type. Signed-off-by: Russell King ChangeSet@1.2042, 2005-02-14 16:59:51+00:00, rmk@flint.arm.linux.org.uk [ARM] Add missing __user annotations to sys_clone() Signed-off-by: Russell King ChangeSet@1.2041, 2005-02-14 16:05:37+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2481/1: IXP2000 - replace sti/cli with local_irq{save,restore} Patch from Ben Dooks Fix the following: arch/arm/mach-ixp2000/pci.c:148: warning: `cli' is deprecated (declared at include/linux/interrupt.h:65) arch/arm/mach-ixp2000/pci.c:161: warning: `sti' is deprecated (declared at include/linux/interrupt.h:69) arch/arm/mach-ixp2000/pci.c:178: warning: `cli' is deprecated (declared at include/linux/interrupt.h:65) arch/arm/mach-ixp2000/pci.c:191: warning: `sti' is deprecated (declared at include/linux/interrupt.h:69) By replacing cli() wht local_irq_save() and sti() with local_irq_restore(). This patch has not been tested. Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2040, 2005-02-14 15:58:47+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2480/1: IXP4XX - cleanup resource for i2c controller Patch from Ben Dooks Fix the following: arch/arm/mach-ixp4xx/common.c:305: warning: initialization from incompatible pointer type Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2035.1.3, 2005-02-13 20:33:48+00:00, tglx@de.rmk.(none) [ARM PATCH] 2478/1: Remove NULL initializers Patch from Thomas Gleixner Remove NULL initializers of static variables. Signed-off-by: Thomas Gleixner Signed-off-by: Russell King ChangeSet@1.2035.1.2, 2005-02-13 20:09:13+00:00, tglx@de.rmk.(none) [ARM PATCH] 2476/1: Fix compile for shannon Patch from Thomas Gleixner Trivial build fix for shannon platform Signed-off-by: Thomas Gleixner Signed-off-by: Russell King ChangeSet@1.2035.1.1, 2005-02-13 20:02:48+00:00, tglx@de.rmk.(none) [ARM PATCH] 2474/1: Fix compile for badge4 Patch from Thomas Gleixner Trivial build fix for badge4 platform Signed-off-by: Thomas Gleixner Signed-off-by: Russell King ChangeSet@1.2037, 2005-02-13 11:07:36-08:00, torvalds@ppc970.osdl.org Eicon driver: remove ^M for real this time. Really. ChangeSet@1.2036, 2005-02-13 10:14:10-08:00, arjan@infradead.org [PATCH] Allow heap to be marked executable too This makes it possible to mark binaries to have both an executable stack and heap, allowing for a NX system to disable NX on a per-binary level. Signed-off-by: Arjan van de Ven Signed-off-by: Linus Torvalds ChangeSet@1.2018.3.3, 2005-02-13 12:53:23-05:00, mporter@kernel.crashing.org [PATCH] emac: fix mdio delay Fixes MDIO delay. Please apply. Signed-off-by: Ralph Siemsen Signed-off-by: Matt Porter Signed-off-by: Jeff Garzik ChangeSet@1.2018.3.2, 2005-02-13 12:53:11-05:00, mporter@kernel.crashing.org [PATCH] emac: fix jumbo frame support Fixes a bug in RX buffer allocation so that jumbo size skbs are allocated when the MTU size is changed. Also removes the deprecated restore_flags() call. Please apply. Signed-off-by: Matt Porter Signed-off-by: Jeff Garzik ChangeSet@1.2035, 2005-02-12 20:23:28-08:00, benh@kernel.crashing.org [PATCH] radeonfb: typos fixes The dynamic clock code in radeonfb comes almost as-is from X.org (where it was contributed by ATI). It has a few typos (wrong register access macros) that this patch fixes. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2034, 2005-02-12 20:23:14-08:00, joe.korty@ccur.com [PATCH] memset argument order misuses A simple 'grep memset.*\<0);' shows argument order errors in several uses of memset. This grep was inspired by Al Viro's recent patch, megaraid_mbox fix, which fixed this problem in the megaraid driver. ChangeSet@1.2033, 2005-02-12 18:58:36-08:00, torvalds@ppc970.osdl.org Linux 2.6.11-rc4 TAG: v2.6.11-rc4