commit b07d68b5ca4d55a16fab223d63d5fb36f89ff42f Author: Linus Torvalds Date: Mon Aug 27 18:32:35 2007 -0700 Linux 2.6.23-rc4 commit f99ba18a96195f047546bd515aabf81fda70ef09 Author: Andrew Vasquez Date: Mon Aug 27 15:25:01 2007 -0700 dm-mpath-rdac: don't stomp on a requests transfer bit Without this, we get qla2xxx complaining about "ISP System Error". What's happening here is the firmware is detecting a Xfer-ready from the storage when in fact the data-direction for a mode-select should be a write (DATA_OUT). The following patch fixes the problem (typo). Verified by Brian, as well. Signed-off-by: Andrew Vasquez Verified-by: Brian De Wolf Signed-off-by: Chandra Seetharaman Signed-off-by: Linus Torvalds commit d243769d3f83b318813a04a9592bb7cfedc6c280 Author: Hugh Dickins Date: Mon Aug 27 16:06:19 2007 +0100 fix bogus hotplug cpu warning Fix bogus DEBUG_PREEMPT warning on x86_64, when cpu brought online after bootup: current_is_keventd is right to note its use of smp_processor_id is preempt-safe, but should use raw_smp_processor_id to avoid the warning. Signed-off-by: Hugh Dickins Signed-off-by: Linus Torvalds commit 721ebe005c3bb9add55b2e462dfc1bcf8efc6b8f Author: Hugh Dickins Date: Mon Aug 27 16:04:39 2007 +0100 reverse CONFIG_ACPI_PROC_EVENT default Sigh. Again an ACPI assault on the Thinkpad's Fn+F4 to suspend to RAM. The default and text for CONFIG_THINKPAD_ACPI_INPUT_ENABLED were fixed in -rc3, but now commit 14e04fb34ffa82ee61ae69f98d8fca12d2e8e31c ("ACPI: Schedule /proc/acpi/event for removal") introduces the ACPI_PROC_EVENT config entry, and defaults it to 'n' to disable it again. Change default to y, and add comment to make it clearer that n is for future distros. Signed-off-by: Hugh Dickins Cc: Andrew Morton Cc: Len Brown Signed-off-by: Linus Torvalds commit 813409771731d80e6fa94199adf99f2269a4afc0 Author: Hugh Dickins Date: Mon Aug 27 16:02:12 2007 +0100 fix maxcpus=N parsing Commit 61ec7567db103d537329b0db9a887db570431ff4 ('ACPI: boot correctly with "nosmp" or "maxcpus=0"') broke 'maxcpus=' handling on x86[-64]. maxcpus=N is now having no effect on x86_64, and freezing bootup on i386 (because of inconsistency with the separate maxcpus parsing down in arch/i386, I guess). That's because early_param parsing is a little different from __setup parsing, and needs the "=" omitted: then it seems to work as the original commit intended (no mention of IO-APIC in /proc/interrupts when maxcpus=0). Signed-off-by: Hugh Dickins Cc: Andrew Morton Cc: Len Brown Cc: Andi Kleen Cc: Rusty Russell Signed-off-by: Linus Torvalds commit 81b4b98ae484f11d97b3d5b8e88d916b74055b78 Author: Kyle McMartin Date: Sun Aug 26 23:28:34 2007 -0400 [PARISC] Add NOTES section Bisected bizarre kernel-space nullptr dereference in udev to commit 18991197b4b588255ccabf472ebc84db7b66a19c, adding the NOTES section fixes it. Signed-off-by: Kyle McMartin commit 88a79078f9ca7d84736799605ff9d9e9545f18e7 Author: Kyle McMartin Date: Fri Jun 29 03:38:10 2007 -0400 [PARISC] Use compat_sys_getdents Switch to using the generic compat_sys_getdents instead of a homebrew one. Signed-off-by: Kyle McMartin commit 1eb51c362d5e7b3e2cc741d87872aa4fc867de42 Author: Kyle McMartin Date: Fri Jun 29 02:15:12 2007 -0400 [PARISC] Do not allow STI_CONSOLE to be modular It doesn't really make much sense, anyways, and would need a pile of symbols exported. Signed-off-by: Kyle McMartin commit 03b18f1b2afeac76840648b4232d8e53cfb7ec84 Author: Kyle McMartin Date: Fri Jun 29 02:17:50 2007 -0400 [PARISC] Clean up sti_flush sti_flush is supposed to flush the caches so we can execute the STI rom we copied to memory. Anything more than flush_icache_range is overkill. Fixes a missing symbol when built as a module. Signed-off-by: Kyle McMartin commit fabb8ff4ffa2b6bf89df8ed598551b6aaf632478 Author: Kyle McMartin Date: Fri Jun 29 02:21:03 2007 -0400 [PARISC] Add dummy isa_(bus|virt)_to_(virt|bus) inlines Less painful than fixing up the Kconfig for a pile of drivers to only build on X86 && ARM && MIPS... Just make them BUG(), as defining them to be 1:1 with physical memory will likely HPMC the box anyways. Signed-off-by: Kyle McMartin commit 37efbb705a7c8778c5ee9f4ec6493cf2d958eecd Author: Kyle McMartin Date: Thu Jun 28 12:12:39 2007 -0400 [PARISC] Add empty Signed-off-by: Kyle McMartin commit 17a82e932d67e2885d9fa18d4656ff53337b1130 Author: David S. Miller Date: Sat Aug 25 15:21:51 2007 -0700 [SPARC32]: Make flush_tlb_kernel_range() an inline function. This avoids unused variable warnings in places like mm/vmalloc.c: mm/vmalloc.c: In function ‘unmap_kernel_range’: mm/vmalloc.c:75: warning: unused variable ‘start’ caused by it previously being a macro. Signed-off-by: David S. Miller commit 4f1296a5169c13b2c1f76c1446aaf361e8519050 Author: David S. Miller Date: Sat Aug 25 15:17:31 2007 -0700 [SERIAL]: Fix 32-bit warnings in sunzilog.c and sunsu.c resource_size_t can be either a u64 or a u32, and we can't really know for sure, so when printing such a value out always use long-long printf formatting and cast the argument to that type. Signed-off-by: David S. Miller commit 7bcd4dae6261b221108148befee20286c6c3a230 Author: David S. Miller Date: Sat Aug 25 15:12:32 2007 -0700 [SPARC32]: Kill unused vars and macros from prom/console.c This should have been removed during the of_console_device changes. Signed-off-by: David S. Miller commit 6cc0735d0dbf6a0e5f802f47d51e1e463466955c Author: David S. Miller Date: Sat Aug 25 15:10:44 2007 -0700 [SPARC32]: Add __cmpdi2() libcall implementation ala. MIPS. Device mapper generates calls to this with recent versions of gcc. Signed-off-by: David S. Miller commit 6c8f5b90bfbe69a27763fb0e181bd2465181446d Author: David S. Miller Date: Fri Aug 24 22:33:15 2007 -0700 [VIDEO]: Do not prom_halt() in cg3 and bw2 device probe. Just give a normal kernel log message of the problem and return failure. Based upon a patch from Mark Fortescue. Signed-off-by: David S. Miller commit 1bd4b280394cdd14f82efc00808c6d77b097285a Author: David S. Miller Date: Fri Aug 24 22:05:44 2007 -0700 [SUNVDC]: Use slice 0xff on VD_DISK_TYPE_DISK. While debugging issues with the VDS server I made the driver use partition 2 to get at the whole disk since this is the "whole disk" partition in the Sun disk label. We really should use slice 0xff which really means the whole physical disk in the VIO disk protocol. Otherwise things won't work well on a disk image that doesn't have a proper disk label on it. Signed-off-by: David S. Miller commit 10e2ff1c39e6d829379c7c5bb8f1c8f512f257c8 Author: James Morris Date: Sat Aug 25 14:41:28 2007 -0700 [NET]: Mark Paul Moore as maintainer of labelled networking. Signed-off-by: James Morris Acked-by: Paul Moore Signed-off-by: David S. Miller commit e7c243c925f6d9dcb898504ff24d6650b5cbb3b1 Author: Evgeniy Polyakov Date: Fri Aug 24 23:36:29 2007 -0700 [VLAN/BRIDGE]: Fix "skb_pull_rcsum - Fatal exception in interrupt" I tried to preserve bridging code as it was before, but logic is quite strange - I think we should free skb on error, since it is already unshared and thus will just leak. Herbert Xu states: > + if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL) > + goto out; If this happens it'll be a double-free on skb since we'll return NF_DROP which makes the caller free it too. We could return NF_STOLEN to prevent that but I'm not sure whether that's correct netfilter semantics. Patrick, could you please make a call on this? Patrick McHardy states: NF_STOLEN should work fine here. Signed-off-by: Evgeniy Polyakov Signed-off-by: David S. Miller commit 7c8347a91dbbb723d8ed106ec817dabac97f2bbc Author: Jesper Juhl Date: Fri Aug 24 23:25:33 2007 -0700 [ISDN]: Get rid of some pointless allocation casts in common and bsd comp. vmalloc() returns a void pointer - no need to cast the return value. Signed-off-by: Jesper Juhl Signed-off-by: David S. Miller commit c573f73ce95d7e421cb4b9928dd41ac9518fcccf Author: Jesper Juhl Date: Fri Aug 24 23:24:43 2007 -0700 [NET]: Avoid pointless allocation casts in BSD compression module The general kernel memory allocation functions return void pointers and there is no need to cast their return values. Signed-off-by: Jesper Juhl Signed-off-by: David S. Miller commit 901ded25fb98d76e55a8920834b173e7efc026b6 Author: Jesper Juhl Date: Fri Aug 24 23:23:41 2007 -0700 [IRDA]: Do not do pointless kmalloc return value cast in KingSun driver kmalloc() returns a void pointer, so there is no need to cast it in drivers/net/irda/kingsun-sir.c::kingsun_probe(). Signed-off-by: Jesper Juhl Signed-off-by: David S. Miller commit aaa53c4aba14f14de06419a20e552fe2d8823a33 Author: Benjamin Thery Date: Fri Aug 24 23:12:08 2007 -0700 [NET]: Fix crash in dev_mc_sync()/dev_mc_unsync() This patch fixes a crash that may occur when the routine dev_mc_sync() deletes an address from the list it is currently going through. It saves the pointer to the next element before deleting the current one. The problem may also exist in dev_mc_unsync(). Signed-off-by: Benjamin Thery Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit f424bb9efaee90b752aabcb4e5e95920ee9580bb Author: Al Viro Date: Fri Aug 24 23:04:18 2007 -0700 [PPPOL2TP]: Fix endianness annotations. {s,d}_{session,tunnel} in pppol2tp_addr are actually host-endian everywhere. We might switch them to net-endian, of course, but that structure is exposed to userland via getname... Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e4223976341ffb22fabe5b3a69873966808c83aa Author: Shannon Nelson Date: Fri Aug 24 23:02:53 2007 -0700 [IOAT]: ioatdma needs to to play nice in a multi-dma-client world Now that the DMA engine has a multi-client interface, fix the ioatdma driver to play along. At the same time, remove a couple of unnecessary reads and writes. Signed-off-by: Shannon Nelson Signed-off-by: David S. Miller commit 97a1ad431b89765755d2b5aa8c0777ed637d5c4a Author: Stephen Hemminger Date: Fri Aug 24 22:38:26 2007 -0700 [SLIP]: trivial sparse warning fix Function declared static in forward declaration, but not in actual code. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 37d2e7316007b4583e5783c608efdd3b2284b74d Author: Stephen Hemminger Date: Fri Aug 24 22:37:49 2007 -0700 [EQL]: sparse warning fix More noodlin on long flights, patch bin. Sparse warning fix for eql. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit c3609d510f844100669965db8a9ff10ba029bb4a Author: vignesh babu Date: Fri Aug 24 22:27:55 2007 -0700 [NET]: is_power_of_2 in net/core/neighbour.c Replacing n & (n - 1) for power of 2 check by is_power_of_2(n) Signed-off-by: vignesh babu Signed-off-by: David S. Miller commit 26722873a460703e319462afa7ebb8ed3a036c07 Author: David S. Miller Date: Fri Aug 24 22:21:50 2007 -0700 [TCP]: Describe tcp_init_cwnd() thoroughly in a comment. People often get tripped up by this function and think that it does not implemented the prescribed algorithms from RFC2414 and RFC3390, even though it does. So add a comment to head off such misunderstandings in the future. Signed-off-by: David S. Miller commit a96fb49be3dd2031f722bf32af6ed7db965b60f7 Author: Flavio Leitner Date: Fri Aug 24 22:16:39 2007 -0700 [NET]: Fix IP_ADD/DROP_MEMBERSHIP to handle only connectionless Fix IP[V6]_ADD_MEMBERSHIP and IP[V6]_DROP_MEMBERSHIP to return -EPROTO for connection oriented sockets. Signed-off-by: Flavio Leitner Signed-off-by: David S. Miller commit 36d98d3edce12c8f9ffd33f8f5d23ce728380925 Author: Stephen Hemminger Date: Wed Aug 22 12:36:01 2007 -0700 [KBUILD]: Sanitize tc_ematch headers. The headers in tc_ematch are used by iproute2, so these headers should be processed. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 96fe1c0237224b24a0dfaaee6467a5767902ba4a Author: Nick Bowler Date: Wed Aug 22 12:33:51 2007 -0700 [IPSEC] AH4: Update IPv4 options handling to conform to RFC 4302. In testing our ESP/AH offload hardware, I discovered an issue with how AH handles mutable fields in IPv4. RFC 4302 (AH) states the following on the subject: For IPv4, the entire option is viewed as a unit; so even though the type and length fields within most options are immutable in transit, if an option is classified as mutable, the entire option is zeroed for ICV computation purposes. The current implementation does not zero the type and length fields, resulting in authentication failures when communicating with hosts that do (i.e. FreeBSD). I have tested record route and timestamp options (ping -R and ping -T) on a small network involving Windows XP, FreeBSD 6.2, and Linux hosts, with one router. In the presence of these options, the FreeBSD and Linux hosts (with the patch or with the hardware) can communicate. The Windows XP host simply fails to accept these packets with or without the patch. I have also been trying to test source routing options (using traceroute -g), but haven't had much luck getting this option to work *without* AH, let alone with. Signed-off-by: Nick Bowler Signed-off-by: David S. Miller commit 23dd6d351a2f8157602e854e3a147a04cf7279a1 Author: Ralf Baechle Date: Fri Aug 24 16:49:23 2007 +0100 [MIPS] Fulong doesn't need ISA DMA. Signed-off-by: Ralf Baechle commit 52625caaee4930995ab25e0855713a7a2dd89151 Author: Ralf Baechle Date: Mon Aug 27 00:29:11 2007 +0100 [MIPS] IP27: intr_sconnect_level: don't disable interrupts. There is no reason to. Signed-off-by: Ralf Baechle commit 84ced30675b1454f1c2dca1fe055ae75eb1df53e Author: Ralf Baechle Date: Mon Aug 27 00:26:58 2007 +0100 [MIPS] IP27: startup_bridge_irq: connect interrupt. shutdown_bridge_irq disconnects the irq so we need to connect the irq or requesting the same irq a send time will fail. This used to make things like ifconfig eth0 down; ifconfig eth0 up fail on IP27. Signed-off-by: Ralf Baechle commit ed7a2365062bc9968e8e01423a889a95e85fba80 Author: Ralf Baechle Date: Mon Aug 27 00:19:21 2007 +0100 [MIPS] IP27: shutdown_bridge_irq: don't free irq. Signed-off-by: Ralf Baechle commit 8313da304cdb32465064202814996a2ca33f04e7 Author: Ralf Baechle Date: Fri Aug 24 16:48:30 2007 +0100 [MIPS] Sort out handling of ISA-less PCI systems. Signed-off-by: Ralf Baechle commit 2704afebecc8e268e8c873b6dfab2077d679b593 Author: Ralf Baechle Date: Fri Aug 24 13:47:45 2007 +0100 [MIPS] Add __cmpdi2 Certain 32-bit kernel configurations seem to be able to cause references, this was observed with gcc 4.1.2. Signed-off-by: Ralf Baechle commit 606bf782846163b87868d8cdd46f44241c0c2a6b Author: Ralf Baechle Date: Fri Aug 24 02:13:33 2007 +0100 [MIPS] HOTPLUG: Make register_pci_controller __devinit. Signed-off-by: Ralf Baechle commit c4aa2563f953d13a9bcf4731b00b0900a45626d7 Author: Ralf Baechle Date: Thu Aug 23 14:17:14 2007 +0100 [MIPS] PCI: Remove __devinit attribute from pcibios_fixup_bus. Since 96bde06a2df1b363206d3cdef53134b84ff37813 several callers of pcibios_resource_to_bus are no longer marked __devinit resulting in a pile of modpost warnings if PCI && !HOTPLUG: MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x15dde8): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_map_rom' and 'pci_map_rom_copy') WARNING: vmlinux.o(.text+0x15e140): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_update_resource' and 'pci_claim_resource') WARNING: vmlinux.o(.text+0x15f0cc): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources') WARNING: vmlinux.o(.text+0x15f0f0): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources') WARNING: vmlinux.o(.text+0x15f114): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources') WARNING: vmlinux.o(.text+0x15f138): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_setup_cardbus' and 'pci_bus_assign_resources') WARNING: vmlinux.o(.text+0x15f438): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_bus_assign_resources' and 'pbus_size_mem') WARNING: vmlinux.o(.text+0x15f4f4): Section mismatch: reference to .init.text:pcibios_resource_to_bus (between 'pci_bus_assign_resources' and 'pbus_size_mem') Removing __devinit from pcibios_resource_to_bus make the same necessary for pcibios_fixup_device_resources as well. Signed-off-by: Ralf Baechle commit 4547d224d29a6a9a81df91858c2e26b7f88e02e1 Author: Ralf Baechle Date: Thu Aug 23 14:12:56 2007 +0100 [MIPS] PCI: Remove __devinit attribute from pcibios_fixup_bus. Since 96bde06a2df1b363206d3cdef53134b84ff37813 pcibios_fixup_bus's caller pci_scan_child_bus is no longer marked __devinit resulting in this modpost warning if PCI && !HOTPLUG: MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x158b9c): Section mismatch: reference to .init.text:pcibios_fixup_bus (between 'pci_scan_child_bus' and 'pci_scan_bus_parented') Signed-off-by: Ralf Baechle commit db15f3626df80cebd69b69494c90528aae483caf Author: Ralf Baechle Date: Wed Aug 22 22:48:08 2007 +0100 [MIPS] Delete duplicate inclusion of . Signed-off-by: Ralf Baechle commit 1bfa771e610bebb29d8051884ff3672845ac9c00 Author: Ralf Baechle Date: Wed Aug 22 22:42:18 2007 +0100 [MIPS] Polish . Signed-off-by: Ralf Baechle commit 88eb4134b0515babd2e6b3f817ed685886e07479 Author: Ralf Baechle Date: Wed Aug 22 16:29:56 2007 +0100 [MIPS] IP22: Export sgi_gfxaddr for use by the Newport console driver. Signed-off-by: Ralf Baechle commit 948a34cf3988462090291774e55f21f7efdfb072 Author: Thiemo Seufer Date: Wed Aug 22 01:42:04 2007 +0100 [MIPS] Maintain si_code field properly for FP exceptions The appended patch adds code to update siginfo_t's si_code field. It fixes e.g. a floating point overflow regression in the SBCL testsuite. Signed-off-By: Thiemo Seufer Signed-off-by: Ralf Baechle commit 34412c7231f513283ab501eea41774b4ae623dcc Author: Thiemo Seufer Date: Mon Aug 20 23:43:49 2007 +0100 [MIPS] SMTC: Fix duplicate status dumps on NMI Also removes the while(1); loop by propagating the ATTRIB_NORET of die() to nmi_exception_handler. Signed-off-by: Thiemo Seufer Signed-off-by: Ralf Baechle commit 97ce9a8d6c9b50ea38f45d05a73fded2e0701ddf Author: Nicolas Schichan Date: Mon Aug 20 15:57:38 2007 +0200 [MIPS] Unconditionally writeback and invalidate caches on kexec. Signed-off-by: Nicolas Schichan Signed-off-by: Ralf Baechle commit 9f90a03a7f93be7f247aa902a7d962a56a6f600e Author: Atsushi Nemoto Date: Sun Aug 19 22:32:10 2007 +0900 [PATCH] rtc: Make rtc-rs5c348 driver hotplug-aware The rtc-rs5c348 SPI driver name doesn't match its module name, which prevents it from properly hotplugging. There is only one in-tree user of its driver, which is fixed by this patch too. Signed-off-by: Atsushi Nemoto Acked-by: David Brownell Signed-off-by: Ralf Baechle commit c99dcac435cec7aca313638db2f1bc406f29210b Author: Ralf Baechle Date: Thu Aug 16 12:10:16 2007 +0100 [MIPS] Fix gcc 3.3 warning. CC arch/mips/kernel/cpu-bugs64.o arch/mips/kernel/cpu-bugs64.c: In function 'align_mod': arch/mips/kernel/cpu-bugs64.c:23: warning: asm operand 0 probably doesn't match constraints arch/mips/kernel/cpu-bugs64.c:23: warning: asm operand 1 probably doesn't match constraints Signed-off-by: Ralf Baechle commit 0806133af401381c559673c3e7269bf62af40388 Author: Ilpo Järvinen Date: Thu Aug 16 01:03:01 2007 +0300 [MIPS] Fix invalid semicolon after if statement Signed-off-by: Ilpo Järvinen Signed-off-by: Ralf Baechle commit c5d7eb9e8c25cc908461c34844241e5bad0504fe Author: Yoichi Yuasa Date: Tue Aug 7 23:20:21 2007 +0900 [MIPS] Update Cobalt defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 0d2d6446fe69ee85636648b4b8abb32c456a416f Author: Yoichi Yuasa Date: Tue Aug 14 20:34:52 2007 +0900 [MIPS] Update workpad_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit dd7043815a710e93a731fbb56782db33467755e9 Author: Yoichi Yuasa Date: Tue Aug 14 20:33:54 2007 +0900 [MIPS] Update tb0287_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 96a6d8727f2b4a5b94f2a78d67c6126c87144e2b Author: Yoichi Yuasa Date: Tue Aug 14 20:32:47 2007 +0900 [MIPS] Update tb0226_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit aabfc589919e9833df25754138e25adafbe3919d Author: Yoichi Yuasa Date: Tue Aug 14 20:31:35 2007 +0900 [MIPS] Update tb0219_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit f5594fd91497ab7eec8dd1859a90ebb31058fd5d Author: Yoichi Yuasa Date: Tue Aug 14 20:30:21 2007 +0900 [MIPS] Update mpc30x_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit be72bd605039d2840391fec513edd58983345a74 Author: Yoichi Yuasa Date: Tue Aug 14 20:29:02 2007 +0900 [MIPS] Update e55_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit d2a34c400b59f93c8c3875d46e067bb4e361b93f Author: Yoichi Yuasa Date: Tue Aug 14 20:27:47 2007 +0900 [MIPS] Update capcella_defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 5bd080f7d21c8f6841d63b8cdb4123a95a311eb9 Author: Ralf Baechle Date: Mon Aug 13 12:47:17 2007 +0100 [MIPS] IP22: Fix modpost warning. MODPOST vmlinux.o WARNING: vmlinux.o(.text+0xc70): Section mismatch: reference to .init.text:add_memory_region (between 'probe_memory' and 'enable_local0_irq') Signed-off-by: Ralf Baechle commit 9975e77df5428a1afff57fd8f76a1bc0bfc247fc Author: Ralf Baechle Date: Mon Aug 13 12:44:41 2007 +0100 [MIPS] Gcc 3.3 build fixes. Work around gcc 3.3's unability to evaluate that certain expressions indeed are constant. Signed-off-by: Ralf Baechle commit bdd3ede0e11b5bc2d8424f73fb0219b8236d98bb Author: Ralf Baechle Date: Fri Aug 10 18:30:57 2007 +0100 [MIPS] MT: Use kallsyms in CPU state dump Signed-off-by: Ralf Baechle commit 153ef95e7a9c6ae248998ba390b911bc27f4f553 Author: Ralf Baechle Date: Tue Aug 7 18:40:06 2007 +0100 [MIPS] MIPSsim: Delete old file that survived moving around in the tree. Signed-off-by: Ralf Baechle commit a204458acb358c147618c749ba0fac8ef2c5d4e6 Author: Ralf Baechle Date: Tue Aug 7 17:30:58 2007 +0100 [MIPS] unwind_stack should return a value ... And gcc 3.4 doesn't even warn out this, grrr. Signed-off-by: Ralf Baechle commit b5438582090406e2ccb4169d9b2df7c9939ae42b Author: Ralf Baechle Date: Tue Aug 7 17:18:28 2007 +0100 [MIPS] SMTC: Fix crash on bootup with idebus= command line argument. Signed-off-by: Ralf Baechle commit de4b21474053513d9ad41994c95dade3e6b3362f Author: Ralf Baechle Date: Tue Aug 7 15:02:55 2007 +0100 [MIPS] Fix build error if CONFIG_KALLSYMS is undefined. CC arch/mips/kernel/traps.o arch/mips/kernel/traps.c: In function 'show_backtrace': arch/mips/kernel/traps.c:110: warning: unused variable 'ra' Signed-off-by: Ralf Baechle commit 3f478a873944fd4d040b7f40408da67e78473c8e Author: Ralf Baechle Date: Tue Aug 7 14:55:47 2007 +0100 [MIPS] Excite: disable 64-bit kernel support. CC arch/mips/basler/excite/excite_prom.o arch/mips/basler/excite/excite_prom.c:136:3: #error 64 bit support not implemented Signed-off-by: Ralf Baechle commit dbb74540aec2f70660d6ad43414a3d1f3c3aceec Author: Ralf Baechle Date: Tue Aug 7 14:52:17 2007 +0100 [MIPS] Kconfig: Fix configuration warning by hardwiring HOTPLUG_CPU to n. Signed-off-by: Ralf Baechle commit 028151bfed9f94e83a79f3886f93861587de08b4 Author: Ralf Baechle Date: Tue Aug 7 13:05:27 2007 +0100 [MIPS] Update a few defconfigs. Signed-off-by: Ralf Baechle commit fe56b954eadefb8b93b7d6b9244af38a352c8799 Author: Ralf Baechle Date: Mon Aug 6 16:35:23 2007 +0100 [MIPS] SMTC: Move MIPS_CPU_IPI_IRQ definition into header. Signed-off-by: Ralf Baechle commit 45a98eb2b775caa3d6113cb7a5c2ff4361e09c91 Author: Ralf Baechle Date: Mon Aug 6 16:32:20 2007 +0100 [MIPS] Malta: Include commit 428ab280a0754656fa09304017b0ce626744cc77 Author: Ralf Baechle Date: Mon Aug 6 14:02:12 2007 +0100 [MIPS] SMP: Scatter __cpuinit over the code as needed. MIPS doesn't do CPU hotplugging yet but since many of the functions don't even have an __init let's fix this right. Signed-off-by: Ralf Baechle commit d98cc84dd11c126f85675dab8e2aebcbee114a90 Author: Ralf Baechle Date: Mon Aug 6 10:02:07 2007 +0100 [MIPS] SEAD: Don't mark as experimental. Signed-off-by: Ralf Baechle commit 48d365e22641f8e3881d62e56ecb9fe79513a0e7 Author: Yoichi Yuasa Date: Sat Aug 4 23:35:47 2007 +0900 [MIPS] remove unused marvell.h Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 106e8028ce81305b93dfd6b809c196d62910feae Author: Yoichi Yuasa Date: Sat Aug 4 23:34:17 2007 +0900 [MIPS] remove unused gt64240.h Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit e2286d755506afb5066740f251ae3bedc63f2ced Author: Yoichi Yuasa Date: Sat Aug 4 23:26:53 2007 +0900 [MIPS] SNI: remove unused pcimt_scache.c Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit dee3c75058485d55c8188a13d660d72188c5bcee Author: Yoichi Yuasa Date: Sat Aug 4 23:24:51 2007 +0900 [MIPS] SNI: Remove unneeded sni_machine_halt Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 5d3fdeacee5d071a5c3d674231bf00cfa5d35a7a Author: Atsushi Nemoto Date: Fri Aug 3 23:33:38 2007 +0900 [MIPS] Remove dead code from irq_txx9.c Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 6c76988b813ae7a9fa2282032effa6f5a66dd8d2 Author: Daniel Jacobowitz Date: Fri Aug 3 11:43:01 2007 -0400 [MIPS] Do not discard extra debugging sections. Leaving these sections is useful to some tools that look at the image, and none of them are loaded into memory. The .mdebug.abi64 section, in particular, lets GDB recognize vmlinux.32 as an N64 program instead of guessing that it is O32. Signed-off-by: Daniel Jacobowitz Signed-off-by: Ralf Baechle commit bda4d16cee1b70c61392bb76cb4119179348c176 Author: Atsushi Nemoto Date: Thu Aug 2 23:36:26 2007 +0900 [MIPS] Update defconfigs for TX39/TX49 Update defconfigs, disabling CONFIG_EXPERIMENTAL. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit cd463f3483bf7ddebfaade4a0e590478d501b896 Author: Atsushi Nemoto Date: Thu Aug 2 23:36:17 2007 +0900 [MIPS] Use -Werror on TX39/TX49 boards Now these directories can be built cleanly. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit ad99876ad4309c6d9db1fb47d3e0b78f5d959896 Author: Atsushi Nemoto Date: Thu Aug 2 23:36:11 2007 +0900 [MIPS] Drop unneeded config options for RBTX4938 Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit c87abd75b35e8f991ff8ff1510d6fb62612c61fa Author: Atsushi Nemoto Date: Thu Aug 2 23:36:02 2007 +0900 [MIPS] Cleanup TX39/TX49 irq code Cleanup jmr3927, tx4927 and tx4938 irq codes, using common IRQ_CPU, I8259 and IRQ_TXX9 irq routines. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 8420fd00e88ef4f6082866aa151bc753b006b3b6 Author: Atsushi Nemoto Date: Thu Aug 2 23:35:53 2007 +0900 [MIPS] The irq_chip for TX39/TX49 SoCs Add generic irq_chip for TX39/TX49 SoCs. This can be replace jmr3927_irq_irc, tx4927_irq_pic_type and tx4938_irq_pic_type. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 477f949e0ad7f1d3503a87b9f158d70c29abc918 Author: Ralf Baechle Date: Thu Aug 2 12:08:32 2007 +0100 [MIPS] Sibyte: CONFIG_SIBYTE_SB1250_DUART -> CONFIG_SERIAL_SB1250_DUART This is needed since the Sibyte serial driver was exchanged. Issue report by Imre Kaloz . Signed-off-by: Ralf Baechle commit 7acae224a423a492454d6550ce65c9af556d02c7 Author: Yoichi Yuasa Date: Thu Aug 2 12:48:00 2007 +0900 [MIPS] Fix au1xxx_gpio_direction_* return value Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit f201b46328ac378bbd0894dd3a0c72bce4c1131e Author: Yoichi Yuasa Date: Thu Aug 2 12:44:44 2007 +0900 [MIPS] Remove unused pnx8550 Kconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit d806cb2b601c0d6c55b29e1ef9ca2f96f499ea1c Author: Ralf Baechle Date: Thu Aug 2 00:36:08 2007 +0100 [MIPS] Kconfig: Enable 64BIT_PHYS_ADDR only through select. The user should not have to have any clue about this setting. Signed-off-by: Ralf Baechle commit dc0366bf3cd35e4be89f715ff834a06c590fff7a Author: Ralf Baechle Date: Wed Aug 1 19:42:37 2007 +0100 [MIPS] SMTC: Fix secondary VPE interrupt mask initialization. Signed-off-by: Ralf Baechle commit 99e480d81ca98c25918c460fdb5ca876d7df6178 Author: Ralf Baechle Date: Wed Aug 1 15:46:18 2007 +0100 [MIPS] Compute PGD_ORDER from the select page size. Signed-off-by: Ralf Baechle commit 03b8b8e7c9c36e2d7c4bc9c63eeed872e6f01ad0 Author: Ralf Baechle Date: Wed Aug 1 15:27:36 2007 +0100 [MIPS] Extract {PGD,PMD,PTE}_ORDER into asm-offset.h For debugging purposes only. Signed-off-by: Ralf Baechle commit 5ff974720abec255c17af6f3732dd410d364e367 Author: Ralf Baechle Date: Wed Aug 1 15:25:28 2007 +0100 [MIPS] Fix computation of {PGD,PMD,PTE}_T_LOG2. For the generation of asm-offset.h to work these need to be evaulatable by gcc as a constant expression. This issue did exist for a while but didn't bite because they're only in asm-offset.h for debugging purposes. Signed-off-by: Ralf Baechle commit 4c8081e4696c7afc61930e4a49a6fa55c545b7e0 Author: Ralf Baechle Date: Tue Jul 31 21:47:03 2007 +0100 [MIPS] Fix computation of PGDIR_SHIFT for 16K pagesize on 32-bit kernels. Signed-off-by: Ralf Baechle commit 50c46637aa894f904e2fb39086a3d7732f68bd50 Author: Ingo Molnar Date: Sat Aug 25 22:17:19 2007 +0200 sched: s/sched_latency/sched_min_granularity runtime limit and wakeup granularity used to be a function of granularity and that was incorrect changed to sched_latency. Fix this to make wakeup granularity a function of min-granularity, and the runtime limit equal to latency. Signed-off-by: Ingo Molnar commit 172ac3dbb7d3e528ac53d08a34df88d1ac53c534 Author: Ingo Molnar Date: Sat Aug 25 18:41:53 2007 +0200 sched: cleanup, sched_granularity -> sched_min_granularity due to adaptive granularity scheduling the role of sched_granularity has changed to "minimum granularity", so rename the variable (and the tunable) accordingly. Signed-off-by: Ingo Molnar Signed-off-by: Peter Zijlstra commit 218050855ece4e923106ab614ac65afa0f618df3 Author: Peter Zijlstra Date: Sat Aug 25 18:41:53 2007 +0200 sched: adaptive scheduler granularity Instead of specifying the preemption granularity, specify the wanted latency. By fixing the granlarity to a constany the wakeup latency it a function of the number of running tasks on the rq. Invert this relation. sysctl_sched_granularity becomes a minimum for the dynamic granularity computed from the new sysctl_sched_latency. Then use this latency to do more intelligent granularity decisions: if there are fewer tasks running then we can schedule coarser. This helps performance while still always keeping the latency target. Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar commit 1fc84aaae3bae9646dd4c7798b8c0ff934338909 Author: Peter Zijlstra Date: Sat Aug 25 18:41:52 2007 +0200 sched: fix CONFIG_SCHED_DEBUG dependency of lockdep sysctls Make the lockdep sysctls not depend on CONFIG_SCHED_DEBUG. Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar commit e57d2011a6276d55a87f26653a0395f302ce0d51 Author: Kristian Høgsberg Date: Fri Aug 24 18:59:58 2007 -0400 firewire: Add ref-counting for sbp2 orbs (fix command abortion) This handles the case where we get the status write before getting the complete_transaction callback ("status write for unknown orb"). In this case, we just assume that the initial orb pointer transaction succeeded and finish the orb. To prevent the transaction callback from touching freed memory, we ref-count the orb structures. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 8a2d9ed3210464d22fccb9834970629c1c36fa36 Author: Stefan Richter Date: Tue Aug 21 01:05:14 2007 +0200 firewire: fix unloading of fw-ohci while devices are attached Fix panic in run_timer_softirq right after "modprobe -r firewire-ohci" if a FireWire disk was attached and firewire-sbp2 loaded. Signed-off-by: Stefan Richter commit a2ee3f9bbb0ce57102dad8928d54f59acdc4b8f7 Author: Stefan Richter Date: Sat Aug 11 11:51:16 2007 +0200 ieee1394: sbp2: fix sbp2_remove_device for error cases Bug found by Olaf Hering : sbp2util_remove_command_orb_pool requires a valid lu->hi pointer. Signed-off-by: Stefan Richter commit 0769d39c993145754852b517ddd9c11586f0a014 Author: Scott Thompson Date: Sat Aug 25 18:17:49 2007 +1000 drm: ioremap return value checks Signed-off-by: Scott Thompson hushmail.com> Signed-off-by: Dave Airlie commit 5bdbc7dc2c07d507b41bffdadc2c8cc13b2d4326 Author: Scott Thompson Date: Sat Aug 25 18:14:00 2007 +1000 agp: balance ioremap checks patchset against 2.6.23-rc3. corrects missing ioremap return checks and balancing on iounmap calls, integrated changes per list recommendations on the original set of patches.. Signed-off-by: Scott Thompson hushmail.com> Signed-off-by: Dave Airlie commit 32ddef98f232585f20bc8bdb891029a6a5f633d0 Author: Xavier Bachelot Date: Sat Aug 25 18:10:52 2007 +1000 agp: Add device id for P4M900 to via-agp module Signed-off-by: Dave Airlie commit 175587cca7447daf5a13e4a53d32360ed8cba804 Author: Paul Mackerras Date: Sat Aug 25 13:14:28 2007 +1000 [POWERPC] Fix SLB initialization at boot time This partially reverts edd0622bd2e8f755c960827e15aa6908c3c5aa94. It turns out that the part of that commit that aimed to ensure that we created an SLB entry for the kernel stack on secondary CPUs when starting the CPU didn't achieve its aim, and in fact caused a regression, because get_paca()->kstack is not initialized at the point where slb_initialize is called. This therefore just reverts that part of that commit, while keeping the change to slb_flush_and_rebolt, which is correct and necessary. Signed-off-by: Paul Mackerras commit e120e8d03a263cf75f2abc0f8b3a03a65cfd3b88 Author: Olaf Hering Date: Sat Aug 25 05:42:01 2007 +1000 [POWERPC] Fix undefined reference to device_power_up/resume Current Linus tree fails to link on pmac32: drivers/built-in.o: In function `pmac_wakeup_devices': via-pmu.c:(.text+0x5bab4): undefined reference to `device_power_up' via-pmu.c:(.text+0x5bb08): undefined reference to `device_resume' drivers/built-in.o: In function `pmac_suspend_devices': via-pmu.c:(.text+0x5c260): undefined reference to `device_power_down' via-pmu.c:(.text+0x5c27c): undefined reference to `device_resume' make[1]: *** [.tmp_vmlinux1] Error 1 changing CONFIG_PM > CONFIG_PM_SLEEP leads to: drivers/built-in.o: In function `pmu_led_set': via-pmu-led.c:(.text+0x5cdca): undefined reference to `pmu_sys_suspended' via-pmu-led.c:(.text+0x5cdce): undefined reference to `pmu_sys_suspended' drivers/built-in.o: In function `pmu_req_done': via-pmu-led.c:(.text+0x5ce3e): undefined reference to `pmu_sys_suspended' via-pmu-led.c:(.text+0x5ce42): undefined reference to `pmu_sys_suspended' drivers/built-in.o: In function `adb_init': (.init.text+0x4c5c): undefined reference to `pmu_register_sleep_notifier' make[1]: *** [.tmp_vmlinux1] Error 1 So change even more places from PM to PM_SLEEP to allow linking. Signed-off-by: Olaf Hering Signed-off-by: Paul Mackerras commit b22ddc703c5daa603d8d53881b530da3cab94cd4 Author: Arnd Bergmann Date: Thu Aug 23 03:09:17 2007 +1000 [POWERPC] cell: Update cell_defconfig for 2.6.23 Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras commit b0e81ebb1062eba20fbcbe459662c0a6ec6075f7 Author: Maxim Shchetynin Date: Thu Aug 23 03:01:28 2007 +1000 [POWERPC] axonram: Do not delete gendisks queue in error path On exit do not delete gendisk's queue because this is already done by del_gendisk(). Doing it twice may cause memory damage. Signed-off-by: Maximilian Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras commit fedcd2c53d838e7a69df699ce2a14e45d34d7f7f Author: Maxim Shchetynin Date: Thu Aug 23 03:01:27 2007 +1000 [POWERPC] axonram: Module modification for latest firmware API changes Firmware would not deliver two interrupt numbers in device-tree any more but only one, for correctable ECC, because uncorrectable ECC from now is handled by firmware itself. Changes in the axonram module are necessary because in the old version, if it is not allowed to fetch the second interrupt number from device-tree, it interpretes this as an error case and exits. Signed-off-by: Maximilian Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras commit 3addf55c9415f9da039947b33d064332137e49fe Author: Arnd Bergmann Date: Thu Aug 23 03:01:26 2007 +1000 [POWERPC] cell: Support pinhole-reset on IBM cell blades The Cell Broadband Engine has a method of injecting a system-reset-exception from an external source into the operating system, which should trigger the regular behaviour of entering xmon or kdump. Unfortunately, the exception handler cannot distinguish it from other interrupt causes by the SRR1 register, which gets used for this on Power 6 and others. IBM Blade servers that want to support triggering the system reset exception using a pinhole button in the front panel therefore use an extra register to determine the reset cause. Signed-off-by: Arnd Bergmann -- Signed-off-by: Paul Mackerras commit fa7f374bbf6d8e5fc7dd281a62498041066aaf43 Author: Christian Krafft Date: Thu Aug 23 03:01:25 2007 +1000 [POWERPC] spu_manage: Use newer physical-id attribute Legacy device tree used the reg property for the physical id of an spe. On newer device tree layouts the reg property contains the "correct" value in the reg attribute. So there has been intoduced the "physical-id" on newer devicetree layouts. The id is stored by spu_manage into the spu struct as spe_id. cbe_thermal has been changed to use the spu->spe_id. There's no need for the thermal code to check devicetree attributes for itself. Signed-off-by: Christian Krafft Cc: Jeremy Kerr Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras commit dfa70f81a05fa857fb1428ac2a88da84ecd50dd9 Author: Olof Johansson Date: Fri Aug 17 13:57:39 2007 +1000 [POWERPC] pasemi: Another IOMMU bugfix for 64K PAGE_SIZE More fallout from the switch from PAGE_SIZE based IOMMU to the native page size for the driver. By pure luck it happened to work most of the time, since we end up invalidating the wrong entries in the TLB. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit 2972863768cc2ef94734abb22dec6a46b0891307 Author: Brice Goglin Date: Fri Aug 24 08:57:54 2007 +0200 myri10ge: update driver version to 1.3.2-1.269 Update myri10ge driver version to 1.3.2-1.269. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit 302d242cfb64eb53fb6d2aa2ae68ddd1ab47079f Author: Brice Goglin Date: Fri Aug 24 08:57:17 2007 +0200 myri10ge: use pcie_get/set_readrq Based on a patch from Peter Oruba, convert myri10ge to use pcie_get_readrq() and pcie_set_readrq() instead of our own PCI calls and arithmetics. These driver changes incorporate the proposed PCI-X / PCI-Express read byte count interface. Reading and setting those values doesn't take place "manually", instead wrapping functions are called to allow quirks for some PCI bridges. Signed-off-by: Brice Goglin Signed-off by: Peter Oruba Based on work by Stephen Hemminger Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 28721c890c9b71cfee45e835bda4639777862e2f Author: Jan-Bernd Themann Date: Wed Aug 22 16:21:28 2007 +0200 ehea: fix queue destructor Includes hcp_epas_dtor in eq/cq/qp destructors to unmap HW register. Signed-off-by: Jan-Bernd Themann Signed-off-by: Jeff Garzik commit 18072a5bf7211d6899a2edc90c291c5c6fbc83d2 Author: Jan-Bernd Themann Date: Wed Aug 22 16:21:24 2007 +0200 ehea: fix module parameter description Update the module parameter description of "use_mcs" to show correct default value Signed-off-by: Jan-Bernd Themann Signed-off-by: Jeff Garzik commit a8e34fda798861d0f3f12c2739c1bec258be8bed Author: Jan-Bernd Themann Date: Wed Aug 22 16:20:58 2007 +0200 ehea: fix interface to DLPAR tools Userspace DLPAR tool expects decimal numbers to be written to and read from sysfs entries. Signed-off-by: Jan-Bernd Themann Signed-off-by: Jeff Garzik commit e3efb05468128e834cf17d492822333c6e189ae4 Author: Ralf Baechle Date: Wed Aug 22 16:03:52 2007 +0100 sgiseeq: Fix return type of sgiseeq_remove The driver remove method needs to return an int not void. This was just never noticed because usually this driver is not being built as a module. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit c2cb71fafb4d514fbb8c9a8d663486a8f0400afa Author: Stephen Hemminger Date: Tue Aug 21 14:34:04 2007 -0700 sky2 1.17 Mark new version to track if current driver is in use. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 32c2c30085324aef9699934295281cca0161ef7e Author: Stephen Hemminger Date: Tue Aug 21 14:34:03 2007 -0700 sky2: only bring up watchdog if link is active This fixes the extra timer overhead that people were whining about as a 2.6.23 regression. Running the watchdog timer all the time is unneeded. Change it to run only if link is up, and reduce frequency to save power. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit b23457737f073eaf5a7b797c2a195f83633e003d Author: Stephen Hemminger Date: Tue Aug 21 14:34:02 2007 -0700 sky2: clear PCI power control reg at startup Make sure PCI register for PHY power gets cleared on boot, and make sure to avoid any PCI posting problems. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit c46ac9463fbdee41723dd9fd108b2c1ffd30615f Author: Florian Westphal Date: Tue Aug 21 01:33:42 2007 +0200 DM9000: fix interface hang under load When transferring data at full speed, the DM9000 network interface sometimes stops sending/receiving data. Worse, ksoftirqd consumes 100% cpu and the net tx watchdog never triggers. Fix by spin_lock_irqsave() in dm9000_start_xmit() to prevent the interrupt handler from interfering. Signed-off-by: Florian Westphal Signed-off-by: Jeff Garzik commit bc1e0a095e9b8c4df4a2eedd7dc6a9d470a0e6b7 Author: Domen Puncer Date: Fri Aug 17 08:54:45 2007 +0200 phy layer: fix genphy_setup_forced (don't reset) Writing BMCR_RESET bit will reset MII_BMCR to default values. This is clearly not what we want. Signed-off-by: Domen Puncer Signed-off-by: Jeff Garzik commit 09e06f652d86d358583df0b601c0c4d11923dd88 Author: Ralf Baechle Date: Wed Aug 15 12:53:16 2007 +0100 Don't use GFP_DMA for zone allocation. IP32 doesn't even have a ZONE_DMA so no point in using GFP_DMA in any IP32-specific device driver. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit ba685fb2abd71162bea6895a99449c1071b01402 Author: Willy Tarreau Date: Thu Aug 23 21:35:41 2007 +0200 fix realtek phy id in forcedeth As noticed by Chuck Ebbert, commit c5e3ae8823693b260ce1f217adca8add1bc0b3de introduced a copy-paste typo, as realtek phy is 0x732 and not 0x1c1. Obvious fix below suggested by Ayaz Abdulla. Signed-off-by: Willy Tarreau Cc: Ayaz Abdulla Cc: Chuck Ebbert Signed-off-by: Jeff Garzik commit e6d9da1de0f31c57cfe3837b1b4e51c6d96fcd3c Author: Zhang Rui Date: Sat Aug 25 02:23:31 2007 -0400 ACPI: work around duplicate name "VID" problem on T61 This can only fix the problem that more than one video bus device have the same AML name "VID". ie. the proc I/F for the second "VID" video bus device is located under /proc/acpi/video/VID1/... As this is really rare and the ACPI proc I/F is a legacy feature that we are planning to remove. We won't provide a generic solution for this problem. Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 5e1f198bbfcffa1e3b9091b4ca7032c2d07fde81 Author: Jeremy Fitzhardinge Date: Sat Aug 25 01:31:45 2007 -0400 acpiphp_ibm: add missing '\n' to error message Add missing \n to error in ibm_find_acpi_device. Signed-off-by: Jeremy Fitzhardinge Cc: Kristen Carlson Accardi Cc: Greg Kroah-Hartman Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Len Brown commit 3e0d69ecf04d25f1e9c4ad658683d6d92641bb08 Author: Andrew Morton Date: Sat Aug 25 01:28:20 2007 -0400 ACPI: add dump_stack() to trace acpi_format_exception programming errors Dump the stack so we can find the secretive caller to acpi_format_exception(). Signed-off-by: Andrew Morton Signed-off-by: Len Brown commit b3e572d2eb7cdbda6f212ad177acd0c9381903b9 Author: Adrian Bunk Date: Tue Aug 14 23:22:35 2007 +0200 make drivers/acpi/scan.c:create_modalias() static This patch makes the needlessly global create_modalias() static. Signed-off-by: Adrian Bunk Signed-off-by: Len Brown commit 70b30fb13bf46d7874537f5e2089bcc772559fc4 Author: Al Viro Date: Tue Aug 21 16:18:20 2007 +0100 ACPI: Fix a warning of discarding qualifiers from pointer target type drivers/acpi/ec.c: In function `acpi_ec_ecdt_probe': drivers/acpi/ec.c:873: warning: passing arg 1 of `acpi_get_devices' discards qualifiers from pointer target type Signed-off-by: Al Viro Signed-off-by: Len Brown commit ead77594af3a49e48ceec61a1824362be4b5cafa Author: Shaohua Li Date: Thu Aug 23 15:01:13 2007 +0800 ACPI: "ACPI handle has no context!" should be KERN_DEBUG Signed-off-by: Shaohua Li Signed-off-by: Len Brown commit e9dab1960ac9746fa34eff726b81635147615a79 Author: Luming Yu Date: Mon Aug 20 18:23:53 2007 +0800 ACPI video hotkey: export missing ACPI video hotkey events via input layer Signed-off-by: Yu Luming Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 6e106b0d97e79f1abb60cc49a53af760950c3384 Author: Randy Dunlap Date: Fri Aug 24 15:35:15 2007 -0700 DM_MULTIPATH_RDAC: "scsi_normalize_sense" undefined DM_MULTIPATH_RDAC uses SCSI API(s) and is for a SCSI device, so add SCSI to its depends on to prevent build errors. Signed-off-by: Randy Dunlap [ Tested and Verified by Chandra Seetharaman ] Acked-by: Chandra Seetharaman Signed-off-by: Linus Torvalds commit 9f3119b70cf189530f1b46a006a052e171a1622f Author: Zhao Yakui Date: Fri Aug 24 16:18:16 2007 +0800 ACPI: Validate XSDT, use RSDT if XSDT fails ACPI 1.0 used an RSDT with 32-bit physical addresses. ACPI 2.0 adds an XSDT with 32-bit physical addresses. An ACPI 2.0 aware OS is supposed to use the XSDT (when present) instead of the RSDT. However, several systems have failed because the XSDT contains NULL entries -- while it is missing pointers to needed tables, such as SSDTs. When we find an XSDT with NULL entries, discard it and use the ACPI 1.0 RSDT instead. http://bugzilla.kernel.org/show_bug.cgi?id=8630 Signed-off-by: Zhao Yakui Signed-off-by: Len Brown commit 2db9ccba8d4bb8e3aa6d0cd8e7544c5736963bbc Author: Pavel Machek Date: Fri Aug 24 11:45:50 2007 +0200 ACPI: /proc/acpi/thermal_zone trip points are now read-only, mark them as such Signed-off-by: Pavel Machek Signed-off-by: Len Brown commit 095e56c7036fe97bc3ebcd80ed6e121be0847656 Author: Ingo Molnar Date: Fri Aug 24 20:39:10 2007 +0200 sched: fix startup penalty calculation fix task startup penalty miscalculation: sysctl_sched_granularity is unsigned int and wait_runtime is long so we first have to convert it to long before turning it negative ... Signed-off-by: Ingo Molnar commit ea0aa3b23a193d1fc5c982286edecd071af67d94 Author: Peter Zijlstra Date: Fri Aug 24 20:39:10 2007 +0200 sched: simplify bonus calculation #2 current code: delta = calc_delta_mine(delta_exec, curr->load.weight, lw); delta = min((u64)delta, cfs_rq->sleeper_bonus); Notice that this calc_delta_mine() line is exactly delta_mine, which gives: delta = min((u64)delta_mine, cfs_rq->sleeper_bonus); Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar commit a6f2994042cc2db9e507dc702ed0b5e2cc5890fe Author: Peter Zijlstra Date: Fri Aug 24 20:39:10 2007 +0200 sched: simplify bonus calculation #1 current code: delta = min(cfs_rq->sleeper_bonus, (u64)delta_exec); delta = calc_delta_mine(delta, curr->load.weight, lw); delta = min((u64)delta, cfs_rq->sleeper_bonus); drop the first min(), because we clip against sleeper_bonus in the 3rd line again. That gives: delta = calc_delta_mine(delta_exec, curr->load.weight, lw); delta = min((u64)delta, cfs_rq->sleeper_bonus); Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar commit b2133c8b1e270b4a7c36f70e29be8738d09e850b Author: Ingo Molnar Date: Fri Aug 24 20:39:10 2007 +0200 sched: tidy up and simplify the bonus balance make the bonus balance more consistent: do not hand out a bonus if there's too much in flight already, and only deduct as much from a runner as it has the capacity. This makes the bonus engine a zero-sum game (as intended). this also simplifies the code: text data bss dec hex filename 34770 2998 24 37792 93a0 sched.o.before 34749 2998 24 37771 938b sched.o.after and it also avoids overscheduling in sleep-happy workloads like hackbench.c. Signed-off-by: Ingo Molnar commit 98fbc798533339be802c6dcd48c2293c712e87db Author: Dmitry Adamushko Date: Fri Aug 24 20:39:10 2007 +0200 sched: optimize task_tick_rt() a bit Mitchell Erblich suggested a quality-of-implementation change to not requeue SCHED_RR tasks if there's only a single task on the runqueue, by checking for rq->nr_running == 1. provide a more efficient implementation of that, to check that particular RT priority-queue only. [ From: mingo@elte.hu ] Also first requeue the task then set need_resched - results in slightly better machine-instruction ordering. Also clean up the code a bit. Signed-off-by: Dmitry Adamushko Signed-off-by: Ingo Molnar commit deac4ee65af4befb66b542e4a782e63da93b51a0 Author: Sven-Thorsten Dietrich Date: Fri Aug 24 20:39:10 2007 +0200 sched: simplify can_migrate_task() Remove trivial conditional branch in Linux scheduler's can_migrate_task() function. text data bss dec hex filename 34770 2998 24 37792 93a0 sched.o.before 34757 2998 24 37779 9393 sched.o.after Signed-off-by: Sven-Thorsten Dietrich Signed-off-by: Ingo Molnar commit 71fd37146385c8255bfd370f33ca81fe8c81e5a5 Author: Ingo Molnar Date: Fri Aug 24 20:39:10 2007 +0200 sched: remove HZ dependency from the granularity default remove HZ dependency from the granularity default. Use 10 msec for the base granularity, 1 msec for wakeup granularity and 25 msec for batch wakeup granularity. (These defaults are close to the values that the default HZ=250 setting got previously, and thus it's the most common setting.) Signed-off-by: Ingo Molnar commit 7c6c16f354cde4a48bd305b2587fc78257bcb936 Author: Bruce Ashfield Date: Fri Aug 24 20:39:10 2007 +0200 sched: CONFIG_SCHED_GROUP_FAIR=y fixlet when I built with CONFIG_FAIR_GROUP_SCHED=y, I need the following change to make things right. [ From: mingo@elte.hu ] this config option is not upstream-configurable right now but lets fix this for completeness. Signed-off-by: Bruce Ashfield Signed-off-by: Ingo Molnar commit 3e069ee0c30d6f28b79e409ef2df1ffa427897ae Author: Len Brown Date: Fri Aug 24 03:06:33 2007 -0400 ACPI: fix ia64 allnoconfig build drivers/acpi/event.c:238: error: conflicting types for ‘acpi_bus_generate_netlink_event’ include/acpi/acpi_bus.h:324: error: previous declaration of ‘acpi_bus_generate_netlink_event’ was here Signed-off-by: Len Brown commit b173491339b9ae7f1322241ce6228c1268513a39 Author: Bjorn Helgaas Date: Wed Aug 15 10:32:13 2007 -0600 PNP: remove null pointer checks Remove some null pointer checks. Null pointers in these areas indicate programming errors, and I think it's better to oops immediately rather than return an error that is easily ignored. Signed-off-by: Bjorn Helgaas Acked-by: Adam Belay Signed-off-by: Len Brown commit 4f0217e30249ac0eb13b65ef64f2aee627465da2 Author: Bjorn Helgaas Date: Wed Aug 15 10:32:12 2007 -0600 PNP: remove MODULE infrastructure We don't support building any part of PNP as a module (*drivers* can be modules, of course, but the PNP infrastructure itself can not). Since MODULE will never be defined, remove the ifdefs and dead code. Signed-off-by: Bjorn Helgaas Acked-by: Adam Belay Signed-off-by: Len Brown commit 6c504d30a48157b7c05a0dfb6a799c72095e957d Author: Bjorn Helgaas Date: Wed Aug 15 10:32:11 2007 -0600 ISAPNP: removed unused isapnp_detected and ISAPNP_DEBUG ISAPNP_DEBUG isn't used at all. isapnp_detected is set but never read. So remove them both. Signed-off-by: Bjorn Helgaas Acked-by: Adam Belay Signed-off-by: Len Brown commit 4721a4cc8864f0eb92958c3e0479e7994e8b0072 Author: Bjorn Helgaas Date: Wed Aug 15 10:32:10 2007 -0600 PNPACPI: remove unnecessary casts of "void *" Remove unnecessary casts of void pointers. Signed-off-by: Bjorn Helgaas Acked-by: Adam Belay Signed-off-by: Len Brown commit 4cec086b219224167c22dd020d3dd2d9220e1d98 Author: Bjorn Helgaas Date: Wed Aug 15 10:32:09 2007 -0600 PNPACPI: simplify irq_flags() No need for a temporary variable; just return the flags once we know them. Signed-off-by: Bjorn Helgaas Acked-by: Adam Belay Signed-off-by: Len Brown commit 1e0aa9ad721349781b728ec4226876247e3fd431 Author: Bjorn Helgaas Date: Wed Aug 15 10:32:08 2007 -0600 PNP: fix up after Lindent More manual fixups after Lindent. No functional change. Signed-off-by: Bjorn Helgaas Acked-by: Adam Belay Signed-off-by: Len Brown commit 79d2dfaa4e787f94b7f65f4611bc7d1c8d85fabc Author: Thomas Renninger Date: Fri Aug 24 01:24:47 2007 -0400 ACPI: enable GPEs before calling _WAK on resume It seems it's required to enable GPEs before _WAK. E.g. X60 triggers a LID related GPE instead of doing a Notify in WAK. Now the GPE reaches the kernel and the Notify for LID status change gets thrown from there. Signed-off-by: Thomas Renninger Acked-by: Rafael J. Wysocki Signed-off-by: Andrew Morton Signed-off-by: Len Brown commit e1996a69e162b1c99c3d3802684d1c388b54f47d Author: Guillaume Chazarain Date: Thu Aug 16 18:18:53 2007 +0200 asus-laptop: Fix rmmod of asus_laptop The asus laptop driver conditionnaly registers leds in asus_led_register() depending on their availability, but unconditionnaly unregisters them all at exit time or when the module fails to load. Unregistering not registered leds result in the following Oops. So we should check before unregistering. [] do_page_fault+0x511/0x5e9 [] error_code+0x6a/0x70 [] device_unregister+0x26/0x32 [] led_classdev_unregister+0x58/0x94 [led_class] [] asus_led_exit+0x17/0x41 [asus_laptop] [] asus_laptop_exit+0xd/0x3f [asus_laptop] [] sys_delete_module+0x17b/0x1a2 [] sysenter_past_esp+0x6b/0xa1 EIP: [] device_del+0xb/0x23a SS:ESP 0068:f594ef0c Signed-off-by: Guillaume Chazarain Signed-off-by: Len Brown commit 015a916fbbf105bb15f4bbfd80c3b9b2f2e0d7db Author: Mattia Dongili Date: Sun Aug 12 16:20:27 2007 +0900 sony-laptop: call sonypi_compat_init earlier sonypi_compat uses a kfifo that needs to be present before _SRS is called to be able to cope with the IRQs triggered when setting resources. Signed-off-by: Mattia Dongili Signed-off-by: Len Brown commit f46d1604ed84e5a4107bae1db7283e3a76d72ace Author: Mattia Dongili Date: Sun Aug 12 16:20:26 2007 +0900 sony-laptop: enable Vaio FZ events Signed-off-by: Mattia Dongili Signed-off-by: Len Brown commit abcb1ff326bfe74f3611d7de653276540ea060dd Author: Jesper Juhl Date: Fri Aug 24 02:28:42 2007 +0200 tty: dont needlessly cast kmalloc() return value kmalloc() hands us a void pointer, we don't need to cast it. Signed-off-by: Jesper Juhl Signed-off-by: Linus Torvalds commit 6dc2c1b7798ef645213afc82f6d5eac3d61bc18b Author: Miloslav Trmac Date: Thu Aug 23 10:19:53 2007 +0100 Renumber AUDIT_TTY_[GS]ET Renumber AUDIT_TTY_[GS]ET to avoid a conflict with netlink message types already used in the wild. Signed-off-by: Miloslav Trmac Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 405d2965597fd9dbd822a5a8c1c66c925a942d6e Author: Greg Ungerer Date: Fri Aug 24 09:26:12 2007 +1000 m68knommu: include linux/fs.h for do_pipe() Include linux/fs.h to get the prototype for do_pipe(). Build fix. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 01740fccba6c9af289dfcfb2b265a38ff9382c82 Author: Greg Ungerer Date: Fri Aug 24 09:25:59 2007 +1000 m68knommu: include asm-generic/pgtable.h Include asm-generic/pgtable.h to pick up the lazy_mmu_mode and lazy_cpu_mode macros. Won't build without them. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 07ef30932ea9540aa4ba79789376a46ee68bb59a Author: Greg Ungerer Date: Fri Aug 24 09:26:06 2007 +1000 m68knommu: include linux/fs.h for getname() Include linux/fs.h to get the prototype for getname(). Build fix. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 604de6e0ee3517d7f66427c8fc782761e057f025 Author: Alan Cox Date: Thu Aug 23 20:18:55 2007 +0100 pata_it821x: Fix regression/corruptor Whoever did the PCI revision patch slipped up on the it821x, and I didn't spot this at the time either. They moved the check for the errata from the 0x10 revision to 0x11. Put it back This one is important for 2.6.23 final as in some cases bad things will occur if 0x10 revision boards don't get the fixups. Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds commit f9319f903f898dd4b15dbc386499725ce6c59776 Author: Alexey Starikovskiy Date: Fri Aug 24 08:10:11 2007 +0400 ACPI: EC: revert fix for bugzilla 8709 This is a manual revert of 7c010de7506954e973abfab5c5999c5a97f7a73e, a fix that broke another ASUS in 8909 and 8919. Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown commit deec5950479b72eff3130dc6f956a87466ed41c6 Author: Alexey Dobriyan Date: Fri Aug 24 00:03:47 2007 +0400 lguest should depend on CONFIG_FUTEX It uses get_futex_key(). Signed-off-by: Alexey Dobriyan Signed-off-by: Rusty Russell Signed-off-by: Linus Torvalds commit a1eb96a2f635cdb8f626f4074dae2ba5a6fce1e8 Author: Zhang Rui Date: Mon Aug 20 18:23:51 2007 +0800 ACPI video hotkey: remove invalid events handler for video output devices Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE are valid for video bus devices only. Actually ACPI video output device should never be notified for a output device switch/probe. ACPI bus devices notify handler already has the code to handle these kinds of events. Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit a7ecd1ea913346a72f41a002c365882dc05c9bd5 Author: Yu Luming Date: Thu Aug 23 23:05:55 2007 -0400 ACPI: video: Add keycode for ACPI video driver hotkey events. Signed-off-by: Luming Yu Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 71351b98b9be6a867aa00276d67716c0728cfff7 Author: H. Peter Anvin Date: Thu Aug 23 09:28:42 2007 -0700 [x86 setup] Make sure AH=00h when setting a video mode Passing a u8 into a register doesn't mean gcc will zero-extend it. Also, don't depend on thhe register not to change. Per bug report from Saul Tamari. Signed-off-by: H. Peter Anvin commit b015124e562a040f7faf361c72e8f5f457ac6cf5 Author: H. Peter Anvin Date: Wed Aug 22 16:28:01 2007 -0700 [x86 setup] Volatilize asm() statements asm() statements need to be volatile when: a. They have side effects (other than value returned). b. When the value returned can vary over time. c. When they have ordering constraints that cannot be expressed to gcc. In particular, the keyboard and timer reads were violating constraint (b), which resulted in the keyboard/timeout poll getting loop-invariant-removed when compiling with gcc 4.2.0. Thanks to an anonymous bug reporter for pointing this out. Signed-off-by: H. Peter Anvin commit 14e04fb34ffa82ee61ae69f98d8fca12d2e8e31c Author: Len Brown Date: Thu Aug 23 15:20:26 2007 -0400 ACPI: Schedule /proc/acpi/event for removal Schedule /proc/acpi/event for removal in 6 months. Re-name acpi_bus_generate_event() to acpi_bus_generate_proc_event() to make sure there is no confusion that it is for /proc/acpi/event only. Add CONFIG_ACPI_PROC_EVENT to allow removal of /proc/acpi/event. There is no functional change if CONFIG_ACPI_PROC_EVENT=y Signed-off-by: Len Brown commit 962ce8ca0604af0c3c5609f7613d4ec5fcfac623 Author: Zhang Rui Date: Thu Aug 23 01:24:31 2007 +0800 ACPI: don't duplicate input events on netlink The previous events patch added a netlink event for every user of the legacy /proc/acpi/event interface. However, some users of /proc/acpi/event are really input events, and they already report their events via the input layer. Introduce a new interface, acpi_bus_generate_netlink_event(), which is explicitly called by devices that want to repoprt events via netlink. This allows the input-like events to opt-out of generating netlink events. In summary: events that are sent via netlink: ac/battery/sbs thermal processor thinkpad_acpi dock/bay events that are sent via input layer: button video hotkey thinkpad_acpi hotkey asus_acpi/asus-laptop hotkey sonypi/sonylaptop Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 04b35abef779f5ed1ff5c039dffbbcc5d2c060b6 Author: Mauro Carvalho Chehab Date: Mon Aug 20 16:45:35 2007 -0300 V4L/DVB (6070): Fix a warning at dvb_net static function dvb_net_sec declares input arg "pkt" as u8. However, the same argument at dvb_net_sec_callback is defined as "const u8". When calling dvb_net_sec, this is casted as just "u8". gcc 4.2.1 generates a warning about that: CC [M] drivers/media/dvb/dvb-core/dvb_net.o drivers/media/dvb/dvb-core/dvb_net.c: In function "dvb_net_sec_callback": drivers/media/dvb/dvb-core/dvb_net.c:905: warning: passing argument 2 of "dvb_net_sec" discards qualifiers from pointer target type Signed-off-by: Mauro Carvalho Chehab commit 6175e487e314385e37f06448847e4c46c20edb44 Author: Trent Piepho Date: Sun Aug 19 05:05:54 2007 -0300 V4L/DVB (6042): b2c2-flexcop: fix Airstar HD5000 tuning regression Git changeset 6bdcc6e6dbab8daffd05e5026486f34ba41a6c72 dropped the stand-alone lgh06xf module, whose functionality was absorbed into the dvb-pll module. However, there was a minor difference between the code in lgh06xf and dvb-pll, which caused a regression in b2c2-flexcop devices using the LG-H06xF NIM. dvb-pll will probe for the presence of an i2c pll chip by performing a single byte read, the lgh06xf driver did not do this. Unfortunately, the code in flexcop-i2c.c does not currently support 1 byte or 0 byte reads as a probe. Such probes with the current code will always fail. In order to work around this problem, and restore proper functionality of the Airstar HD5000 device, this hack was created to make the probe appear to succeed. The single byte read in dvb_pll_attach is the only place where such a probe would ever occur, so this change is safe, and will not affect any other devices. Of course, if one knew how to actually perform the read operation, it would be better to go that route. In the meantime, however, we must apply this workaround, in order to prevent the regression that causes tuning to fail on the Airstar HD5000 ATSC device. Thanks to Jarod Wilson, who had originally reported this regression, and to Geoffrey Hausheer, whose original workaround patch led us to find the actual cause of the problem. Signed-off-by: Trent Piepho Cc: Geoffrey Hausheer Acked-by: Jarod Wilson Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 02881d94780faa86e32952e46381f7cd4c78d5ac Author: Mariusz Kozlowski Date: Thu Aug 23 10:24:28 2007 -0500 9p: fix bad error path in conversion routines When buf_check_overflow() returns != 0 we will hit kfree(ERR_PTR(err)) and it will not be happy about it. Signed-off-by: Mariusz Kozlowski Signed-off-by: Eric Van Hensbergen commit fbcb7599e411309cf47a2b834d3546469c153cf4 Author: Eric Van Hensbergen Date: Thu Aug 23 10:08:45 2007 -0500 9p: remove deprecated v9fs_fid_lookup_remove() This patch removes the v9fs_fid_lookup_remove which is no longer used. Based on original patch from Adrian Bunk which used #if 0 to isolate the code. Signed-off-by: Adrian Bunk Signed-off-by: Eric Van Hensbergen commit 27a2a5ff41e366290adb89adcc9e70e6a9e81455 Author: Eric Van Hensbergen Date: Mon Jul 23 13:06:13 2007 -0500 9p: update maintainers and documentation Updates to the MAINTAINERS file and documentation for 9p to point to the swik wiki versus the outdated sf.net page. Also updated some email addresses and added pointers to papers which better describe the implementation and application of the Linux 9p client. Signed-off-by: Eric Van Hensbergen commit 1a3cac6c6d1f56dc26939eb41be29844f897c15a Author: Eric Van Hensbergen Date: Thu Jul 26 14:04:54 2007 -0500 9p: fix use after free On 7/22/07, Adrian Bunk wrote: The Coverity checker spotted the following use-after-free in net/9p/mux.c: <-- snip --> ... struct p9_conn *p9_conn_create(struct p9_transport *trans, int msize, unsigned char *extended) { ... if (!m->tagpool) { kfree(m); return ERR_PTR(PTR_ERR(m->tagpool)); } ... <-- snip --> Also spotted was a leak of the same structure further down in the function. Signed-off-by: Eric Van Hensbergen commit 505c0efd58031923ae01deac16d896607cafa70e Author: Ingo Molnar Date: Thu Aug 23 15:18:02 2007 +0200 sched: tweak the sched_runtime_limit tunable Michael Gerdau reported reniced task CPU usage weirdnesses. Such symptoms can be caused by limit underruns so double the sched_runtime_limit. Signed-off-by: Ingo Molnar commit f549da848eca595abca14ebc5e1bf00fd72aa53d Author: Suresh Siddha Date: Thu Aug 23 15:18:02 2007 +0200 sched: skip updating rq's next_balance under null SD Was playing with sched_smt_power_savings/sched_mc_power_savings and found out that while the scheduler domains are reconstructed when sysfs settings change, rebalance_domains() can get triggered with null domain on other cpus, which is setting next_balance to jiffies + 60*HZ. Resulting in no idle/busy balancing for 60 seconds. Fix this. Signed-off-by: Suresh Siddha Signed-off-by: Ingo Molnar commit f8700df7c419781efb34696de7e7f49717f8ede7 Author: Suresh Siddha Date: Thu Aug 23 15:18:02 2007 +0200 sched: fix broken SMT/MC optimizations On a four package system with HT - HT load balancing optimizations were broken. For example, if two tasks end up running on two logical threads of one of the packages, scheduler is not able to pull one of the tasks to a completely idle package. In this scenario, for nice-0 tasks, imbalance calculated by scheduler will be 512 and find_busiest_queue() will return 0 (as each cpu's load is 1024 > imbalance and has only one task running). Similarly MC scheduler optimizations also get fixed with this patch. [ mingo@elte.hu: restored fair balancing by increasing the fuzz and adding it back to the power decision, without the /2 factor. ] Signed-off-by: Suresh Siddha Signed-off-by: Ingo Molnar commit efe567fc8281661524ffa75477a7c4ca9b466c63 Author: Christian Borntraeger Date: Thu Aug 23 15:18:02 2007 +0200 sched: accounting regression since rc1 Fix the accounting regression for CONFIG_VIRT_CPU_ACCOUNTING. It reverts parts of commit b27f03d4bdc145a09fb7b0c0e004b29f1ee555fa by converting fs/proc/array.c back to cputime_t. The new functions task_utime and task_stime now return cputime_t instead of clock_t. If CONFIG_VIRT_CPU_ACCOUTING is set, task->utime and task->stime are returned directly instead of using sum_exec_runtime. Patch is tested on s390x with and without VIRT_CPU_ACCOUTING as well as on i386. [ mingo@elte.hu: cleanups, comments. ] Signed-off-by: Christian Borntraeger Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar commit c57baf1e1e24b004b57d282267542baab802753c Author: Eric W. Biederman Date: Thu Aug 23 15:18:02 2007 +0200 sched: fix sysctl directory permissions There are two remaining gotchas: - The directories have impossible permissions (writeable). - The ctl_name for the kernel directory is inconsistent with everything else. It should be CTL_KERN. Signed-off-by: Eric W. Biederman Signed-off-by: Ingo Molnar commit 2aa44d0567ed21b47b87d68819415d48194cb923 Author: Ingo Molnar Date: Thu Aug 23 15:18:02 2007 +0200 sched: sched_clock_idle_[sleep|wakeup]_event() construct a more or less wall-clock time out of sched_clock(), by using ACPI-idle's existing knowledge about how much time we spent idling. This allows the rq clock to work around TSC-stops-in-C2, TSC-gets-corrupted-in-C3 type of problems. ( Besides the scheduler's statistics this also benefits blktrace and printk-timestamps as well. ) Furthermore, the precise before-C2/C3-sleep and after-C2/C3-wakeup callbacks allow the scheduler to get out the most of the period where the CPU has a reliable TSC. This results in slightly more precise task statistics. the ACPI bits were acked by Len. Signed-off-by: Ingo Molnar Acked-by: Len Brown commit b54eebd673861136291b97e409a0f248b96e74ae Author: Tejun Heo Date: Fri Aug 17 18:46:51 2007 +0900 libata: don't check n_sectors during revalidation if zero If the initial configuration fails early, n_sectors is left at zero. Checking against it during revalidation makes retried configuration fail due to n_sectors mismatch. Ignore zero n_sectors during revalidation. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 9edbdbea003b8be96e2f5d70515227d5fb32ad72 Author: Alan Cox Date: Wed Aug 22 22:57:48 2007 +0100 pata_via: Add Arima W730-K8 and other rebadgings More cable funnies Signed-off-by: Alan Cox Tested-by: Mikael Pettersson Signed-off-by: Jeff Garzik commit 4f2d47cfddc84969b6934893fc40132750ae3b5e Author: Alan Cox Date: Wed Aug 22 22:56:43 2007 +0100 pata_sis: Add the FSC Amilo and friends More short cables Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 78c4af0b43e152c40d232137f8cb637f2c58826a Author: Mikael Pettersson Date: Sat Aug 18 22:58:53 2007 +0200 pata_pdc2027x: PLL detection fixes Previously I reported that the pata_pdc2027x PLL detection changes in kernel 2.6.22 broke the driver on my PowerMac: >pata_pdc2027x: Invalid PLL input clock 1691742kHz, give up! This is followed by a number of errors and speed reduction steps on the affected ports. There are two bugs in pata_pdc2027x's PLL detection code: 1. The PLL counter's start value is read before the chip is put in "test mode". Outside of test mode the counter is halted, and on the PowerMac the counter is zero because the chip hasn't been initialised by its BIOS. The fix is to move the read of the start value to after test mode is started, but before the mdelay() in test mode. This also improves the precision of the PLL detection. 2. The code to compute the number of PLL decrements during the mdelay() in test mode fails to consider that the PLL counter only is 30 bits wide. If there is a wraparound, it will compute an incorrect and much too large value. On the PowerMac, the start count is zero, the end count is a large 30-bit value, so wraparound occurs and an out of bounds PLL clock is detected. The fix is to mask the (start - end) computation to 30 bits. While debugging this I also noticed that pdc_read_counter() reads the two halves of the 30-bit PLL counter as 16-bit values, and then combines them as if the halves only are 15 bits wide. To avoid confusion, the halves should be read as 15-bit values. This patch implements all three changes. It fixes the PLL detection failure on my PowerMac, and doesn't cause any regressions on an x86 with an identical card. Signed-off-by: Mikael Pettersson Signed-off-by: Jeff Garzik commit 8270bec40075eec9df8778c1d5da36ef0e535176 Author: Tejun Heo Date: Thu Aug 16 03:02:22 2007 +0900 libata: fix n_sectors failure handling during revalidation If revalidation fails because device has different n_sectors after configuration the original n_sectors should be restored before failing revalidation. Without this fix, n_sectors difference will incorrectly and silently pass revalidation when revalidation is retried. Signed-off-by: Tejun Heo Acked-by: Alan Cox Signed-off-by: Jeff Garzik commit b67ac3f339c76dfea3cc75fc0285b6d13edc35fa Author: Pierre Ossman Date: Sun Aug 12 17:29:47 2007 +0200 sdhci: tell which spurious interrupt we got When we get unexpected interrupts, also print which interrupt it was. Signed-off-by: Pierre Ossman commit e538fbe83e374a3521128c1f4642aca037661c9d Author: Pierre Ossman Date: Sun Aug 12 16:46:32 2007 +0200 sdhci: handle data interrupts during command It is fully legal for a controller to start issuing data related interrupts before it has signalled that the command has completed. Make sure the driver actually can handle this. Signed-off-by: Pierre Ossman commit 03f8590d90844f04d20488a80e75eaf4c4e0b35c Author: David Vrabel Date: Fri Aug 10 13:25:03 2007 +0100 mmc: ignore bad max block size in sdhci Some SDHC cards report an invalid maximum block size, in these cases assume they support block sizes up to 512 bytes instead of returning an error. Signed-off-by: David Vrabel Signed-off-by: Pierre Ossman commit 2b061973404802fb87db93175b856ee0dfbe38e4 Author: Pierre Ossman Date: Sun Aug 12 13:13:24 2007 +0200 sdhci: be more cautious about block count register The block count register shouldn't be trusted for single block transfers, so avoid using it completely when calculating transferred bytes. Signed-off-by: Pierre Ossman commit be760a9de881d84994403bb93177bcb95319c4cb Author: Mariusz Kozlowski Date: Fri Aug 10 14:00:50 2007 -0700 drivers/mmc/core/host.c: kmalloc + memset conversion to kzalloc drivers/mmc/core/host.c | 3509 -> 3457 (-52 bytes) drivers/mmc/core/host.o | 92400 -> 92136 (-264 bytes) Signed-off-by: Mariusz Kozlowski Signed-off-by: Andrew Morton Signed-off-by: Pierre Ossman commit 733cb1e44047ed88f97754fbfd5173741b6dca1a Author: Mariusz Kozlowski Date: Fri Aug 10 14:00:47 2007 -0700 drivers/mmc/core/bus.c: kmalloc + memset conversion to kzalloc drivers/mmc/core/bus.c | 5663 -> 5619 (-44 bytes) drivers/mmc/core/bus.o | 70899 -> 70731 (-168 bytes) Signed-off-by: Mariusz Kozlowski Signed-off-by: Andrew Morton Signed-off-by: Pierre Ossman commit b377fd3982ad957c796758a90e2988401a884241 Author: Mel Gorman Date: Wed Aug 22 14:02:05 2007 -0700 Apply memory policies to top two highest zones when highest zone is ZONE_MOVABLE The NUMA layer only supports NUMA policies for the highest zone. When ZONE_MOVABLE is configured with kernelcore=, the the highest zone becomes ZONE_MOVABLE. The result is that policies are only applied to allocations like anonymous pages and page cache allocated from ZONE_MOVABLE when the zone is used. This patch applies policies to the two highest zones when the highest zone is ZONE_MOVABLE. As ZONE_MOVABLE consists of pages from the highest "real" zone, it's always functionally equivalent. The patch has been tested on a variety of machines both NUMA and non-NUMA covering x86, x86_64 and ppc64. No abnormal results were seen in kernbench, tbench, dbench or hackbench. It passes regression tests from the numactl package with and without kernelcore= once numactl tests are patched to wait for vmstat counters to update. akpm: this is the nasty hack to fix NUMA mempolicies in the presence of ZONE_MOVABLE and kernelcore= in 2.6.23. Christoph says "For .24 either merge the mobility or get the other solution that Mel is working on. That solution would only use a single zonelist per node and filter on the fly. That may help performance and also help to make memory policies work better." Signed-off-by: Mel Gorman Acked-by: Lee Schermerhorn Tested-by: Lee Schermerhorn Acked-by: Christoph Lameter Cc: Andi Kleen Cc: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8e92f21ba3ea3f54e4be062b87ef9fc4af2d33e2 Author: Yoichi Yuasa Date: Wed Aug 22 14:02:03 2007 -0700 au1100fb: move au1100fb_fb_blank() beforce au1100fb_setmode() au1100fb_fb_blank() should come before au1100fb_setmode(). drivers/video/au1100fb.c: In function 'au1100fb_setmode': drivers/video/au1100fb.c:211: error: implicit declaration of function 'au1100fb_fb_blank' Signed-off-by: Yoichi Yuasa Cc: "Antonino A. Daplas" Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4ae8aeae47e0f014ec453c4b75c9de00bd29e9e6 Author: Andrew Morton Date: Wed Aug 22 14:02:01 2007 -0700 newport_con warning fix drivers/video/console/newport_con.c: In function `newport_console_init': drivers/video/console/newport_con.c:743: warning: return makes integer from pointer without a cast Although one wonders whether that should have been -ENODEV... Cc: "Antonino A. Daplas" Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0aa42632d3a0024700b25f57fd0fca56f6abad24 Author: Andrew Morton Date: Wed Aug 22 14:02:01 2007 -0700 selection.h: add tty_struct forward declaration In file included from drivers/video/console/newport_con.c:16: include/linux/selection.h:16: warning: "struct tty_struct" declared inside parameter list include/linux/selection.h:16: warning: its scope is only this definition or declaration, which is probably not what you want Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit de5986dd3a102b8ae34bf08fe6f45b62b57ab2eb Author: Stephen Rothwell Date: Wed Aug 22 14:02:00 2007 -0700 Check for PPC32 in imsttfb This is the correct fix according to Paul Mackerras and allows an allyesconfig on PPC64 to build. Signed-off-by: Stephen Rothwell Cc: Paul Mackerras Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0852ec8cc1ac108344a219dfcab4043f407ddd9a Author: Mathieu Desnoyers Date: Wed Aug 22 14:01:59 2007 -0700 Xen i386 xen-head.S fix sections mixup Xen i386 xen-head.S fix sections mixup xen-head.S does not come back to the data section, leaving the text section as current section. It causes problems with a slightly enhanced DEBUG_RODATA that supports CONFIG_HOTPLUG and bringing a CPU up after the text has been marked read-only: reference to early_gdt_descr causes a page fault. Updates: - It should be using pushsection/popsection. - Actually, the push/popsections around the ELFNOTEs are redundant; ELFNOTE() does its own push/popsection to put things into the appropriate .note* section anyway. Signed-off-by: Mathieu Desnoyers Acked-by: Jeremy Fitzhardinge Cc: Chris Wright Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit abd96ecb298675a21c412a29f5de2f80174d5f18 Author: Oleg Nesterov Date: Wed Aug 22 14:01:58 2007 -0700 exec: kill unsafe BUG_ON(sig->count) checks de_thread: if (atomic_read(&oldsighand->count) <= 1) BUG_ON(atomic_read(&sig->count) != 1); This is not safe without the rmb() in between. The results of two correctly ordered __exit_signal()->atomic_dec_and_test()'s could be seen out of order on our CPU. The same is true for the "thread_group_empty()" case, __unhash_process()'s changes could be seen before atomic_dec_and_test(&sig->count). On some platforms (including i386) atomic_read() doesn't provide even the compiler barrier, in that case these checks are simply racy. Remove these BUG_ON()'s. Alternatively, we can do something like BUG_ON( ({ smp_rmb(); atomic_read(&sig->count) != 1; }) ); Signed-off-by: Oleg Nesterov Acked-by: Paul E. McKenney Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5c076fce2e217240b44bc753a5ec8ecd379c6eb9 Author: David Brownell Date: Wed Aug 22 14:01:57 2007 -0700 rtc-max6902 minor fixes Minor tweaks to rtc-max6902: make it hotplug correctly, and fix a few space-before-tab whitespace botches. This driver has no current in-tree users, so the hotplug fix changes the driver name. Signed-off-by: David Brownell Cc: Atsushi Nemoto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a2f92ee7e704440995cf5474f4cc7b268bf380e0 Author: Christoph Lameter Date: Wed Aug 22 14:01:57 2007 -0700 SLUB: do not fail on broken memory configurations Print a big fat warning and do what is necessary to continue if a node is marked as up (meaning either node is online (upstream) or node has memory (Andrew's tree)) but allocations from the node do not succeed. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9e86943b6c74f214ce0516d56e55636d52252e19 Author: Christoph Lameter Date: Wed Aug 22 14:01:56 2007 -0700 SLUB: use atomic_long_read for atomic_long variables SLUB is using atomic_read() for variables declared atomic_long_t. Switch to atomic_long_read(). Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fe58103a56f05613cb1f0ef228354d4d5f6c2b08 Author: Miguel Ojeda Date: Wed Aug 22 14:01:56 2007 -0700 cfag12864b fix This one-liner patch fixes a bug in drivers/auxdisplay/cfag12864b.c At cfag12864b_init(), the driver tries to kalloc some memory in the variable cfag12864b_cache. Then, as usual, it checks if the call failed. However, it checks cfag12864b_buffer instead. This patch changes the "cfag12864b_buffer" to "cfag12864b_cache" so the correct variable is checked. Signed-off-by: Miguel Ojeda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aa7985056286f5f912af7bb03f883230cc527701 Author: Olof Johansson Date: Wed Aug 22 14:01:55 2007 -0700 serial: add pci ids for PA Semi PWRficient onchip uarts Add PCI IDs for the onchip UARTs on PA Semi PWRficient. Signed-off-by: Olof Johansson Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1864f7bd58351732593def024e73eca1f75bc352 Author: Ian Kent Date: Wed Aug 22 14:01:54 2007 -0700 autofs4: deadlock during create Due to inconsistent locking in the VFS between calls to lookup and revalidate deadlock can occur in the automounter. The inconsistency is that the directory inode mutex is held for both lookup and revalidate calls when called via lookup_hash whereas it is held only for lookup during a path walk. Consequently, if the mutex is held during a call to revalidate autofs4 can't release the mutex to callback the daemon as it can't know whether it owns the mutex. This situation happens when a process tries to create a directory within an automount and a second process also tries to create the same directory between the lookup and the mkdir. Since the first process has dropped the mutex for the daemon callback, the second process takes it during revalidate leading to deadlock between the autofs daemon and the second process when the daemon tries to create the mount point directory. After spending quite a bit of time trying to resolve this on more than one occassion, using rather complex and ulgy approaches, it turns out that just delaying the hashing of the dentry until the create operation works fine. Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f4768ffd1d4b7b07ae2c4c3d93c9f99cd68e996c Author: Jeff Dike Date: Wed Aug 22 14:01:53 2007 -0700 uml: fix previous request size limit fix The previous patch which limited the number of sectors in a single request to a COWed device was correct in concept, but the limit was implemented in the wrong place. By putting it in ubd_add, it covered the cases where the COWing was specified on the command line. However, when the command line only has the COW file specified, the fact that it's a COW file isn't known until it's opened, so the limit is missed in these cases. This patch moves the sector limit from ubd_add to ubd_open_dev. Signed-off-by: Jeff Dike Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a88aa7865bc1d1d451af2d585ac0119164ce8e00 Author: NeilBrown Date: Wed Aug 22 14:01:53 2007 -0700 md: correctly update sysfs when a raid1 is reshaped When a raid1 array is reshaped (number of drives changed), the list of devices is compacted, so that slots for missing devices are filled with working devices from later slots. This requires the "rd%d" symlinks in sysfs to be updated. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 918f02383fb9ff5dba29709f3199189eeac55021 Author: NeilBrown Date: Wed Aug 22 14:01:52 2007 -0700 md: make sure a re-add after a restart honours bitmap when resyncing Commit 1757128438d41670ded8bc3bc735325cc07dc8f9 was slightly bad. If an array has a write-intent bitmap, and you remove a drive, then readd it, only the changed parts should be resynced. However after the above commit, this only works if the array has not been shut down and restarted. This is because it sets 'fullsync' at little more often than it should. This patch is more careful. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 59d9445e851976d973a5a4009f80a3d55959d231 Author: Evgeniy Polyakov Date: Wed Aug 22 14:01:51 2007 -0700 w1: fix w1_remove_master_device() searching In case bus master driver provided bogus value as its private data, search can be incorrect. Problem found by Adrian Bunk. Signed-off-by: Evgeniy Polyakov Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a89182c76e54134081cfec6409df06731c5cb98f Author: Adam Litke Date: Wed Aug 22 14:01:51 2007 -0700 Fix VM_FAULT flags conversion for hugetlb It seems a simple mistake was made when converting follow_hugetlb_page() over to the VM_FAULT flags bitmasks (in "mm: fault feedback #2", commit 83c54070ee1a2d05c89793884bea1a03f2851ed4). By using the wrong bitmask, hugetlb_fault() failures are not being recognized. This results in an infinite loop whenever follow_hugetlb_page is involved in a failed fault. Signed-off-by: Adam Litke Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d4c63b7c74507c424afcc9c80ba77a55bfb0d07e Author: Paul Fulghum Date: Wed Aug 22 14:01:50 2007 -0700 synclink_gt fix module reference Get module reference on open() by generic HDLC to prevent module from unloading while interface is active. Signed-off-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1807a1aaf5f2a35ea6d4b527b28bc8889d255a2f Author: Siddha, Suresh B Date: Wed Aug 22 14:01:49 2007 -0700 slab: skip calling cache_free_alien() when the platform is not numa capable Skip calling cache_free_alien() when the platform is not numa capable. This will avoid cache misses that happen while accessing slabp (which is per page memory reference) to get nodeid. Instead use a global variable to skip the call, which is mostly likely to be present in the cache. This gives a 0.8% performance boost with the database oltp workload on a quad-core SMP platform and by any means the number is not small :) Signed-off-by: Suresh Siddha Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 32d219854d31daba3407389ada1d454a4cd86fda Author: Mijo Safradin Date: Wed Aug 22 14:01:48 2007 -0700 IPMI: fix warning in ipmi_si_intf.c trivial change: fix warning Signed-off-by: Mijo Safradin Acked-by: Christian Krafft Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f9ee228bdc82cff8ea1ec00fd952890e00679dd8 Author: Oleg Nesterov Date: Wed Aug 22 14:01:48 2007 -0700 signalfd: make it group-wide, fix posix-timers scheduling With this patch any thread can dequeue its own private signals via signalfd, even if it was created by another sub-thread. To do so, we pass "current" to dequeue_signal() if the caller is from the same thread group. This also fixes the scheduling of posix timers broken by the previous patch. If the caller doesn't belong to this thread group, we can't handle __SI_TIMER case properly anyway. Perhaps we should forbid the cross-process signalfd usage and convert ctx->tsk to ctx->sighand. Signed-off-by: Oleg Nesterov Cc: Benjamin Herrenschmidt Cc: Davide Libenzi Cc: Ingo Molnar Cc: Michael Kerrisk Cc: Roland McGrath Cc: Thomas Gleixner Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 834d216e1f804560bd1421c511ad168d7c24b01d Author: Oleg Nesterov Date: Wed Aug 22 14:01:42 2007 -0700 signalfd: fix interaction with posix-timers dequeue_signal: if (__SI_TIMER) { spin_unlock(&tsk->sighand->siglock); do_schedule_next_timer(info); spin_lock(&tsk->sighand->siglock); } Unless tsk == curent, this is absolutely unsafe: nothing prevents tsk from exiting. If signalfd was passed to another process, do_schedule_next_timer() is just wrong. Add yet another "tsk == current" check into dequeue_signal(). This patch fixes an oopsable bug, but breaks the scheduling of posix timers if the shared __SI_TIMER signal was fetched via signalfd attached to another sub-thread. Mostly fixed by the next patch. Signed-off-by: Oleg Nesterov Cc: Benjamin Herrenschmidt Cc: Davide Libenzi Cc: Ingo Molnar Cc: Michael Kerrisk Cc: Roland McGrath Cc: Thomas Gleixner Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d02479bdeb1c9b037892061cdcf4e730183391fa Author: Oleg Nesterov Date: Wed Aug 22 14:01:37 2007 -0700 posix-timers: fix creation race sys_timer_create() sets ->it_process and unlocks ->siglock, then checks tmr->it_sigev_notify to define if get_task_struct() is needed. We already passed ->it_id to the caller, another thread can delete this timer and free its memory in between. As a minimal fix, move this code under ->siglock, sys_timer_delete() takes it too before calling release_posix_timer(). A proper serialization would be to take ->it_lock, we add a partly initialized timer on posix_timers_id, not good. Signed-off-by: Oleg Nesterov Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 179394af7a2baa1d0a3cb1670075310d72247d38 Author: Thomas Gleixner Date: Wed Aug 22 14:01:37 2007 -0700 posix-timers: fix deletion race timer_delete does: lock_timer(); timer->it_process = NULL; unlock_timer(); release_posix_timer(); timer->it_process is checked in lock_timer() to prevent access to a timer, which is on the way to be deleted, but the check happens after idr_lock is dropped. This allows release_posix_timer() to delete the timer before the lock code can check the timer: CPU 0 CPU 1 lock_timer(); timer->it_process = NULL; unlock_timer(); lock_timer() spin_lock(idr_lock); timer = idr_find(); spin_lock(timer->lock); spin_unlock(idr_lock); release_posix_timer(); spin_lock(idr_lock); idr_remove(timer); spin_unlock(idr_lock); free_timer(timer); if (timer->......) Change the locking to prevent this. Signed-off-by: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 928923c76b393e38e5ba1d47e843e208ceef6cf9 Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:36 2007 -0700 Introduce CONFIG_CHECK_SIGNATURE Introduce CONFIG_CHECK_SIGNATURE to control inclusion of check_signature() and avoid problems on platforms that don't have readb(). Let the few legacy (ISA || PCI || X86) drivers that need check_signature() select CONFIG_CHECK_SIGNATURE. Signed-off-by: Geert Uytterhoeven Cc: Jeff Dike Cc: Heiko Carstens Cc: Roman Zippel Cc: Alan Cox Cc: Martin Schwidefsky Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2301060e2b19aa4830060524ef66abdf32b26a26 Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:35 2007 -0700 m68k/mac: Make mac_hid_mouse_emulate_buttons() declaration visible m68k/mac: Make mac_hid_mouse_emulate_buttons() declaration visible drivers/char/keyboard.c: In function 'kbd_keycode': drivers/char/keyboard.c:1142: error: implicit declaration of function 'mac_hid_mouse_emulate_buttons' The forward declaration of mac_hid_mouse_emulate_buttons() is not visible on m68k because it's hidden in the middle of a big #ifdef block. Move it to , correct the type of the second parameter, and include where needed. Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a01086687c5f795a9c2b85d757e3af3cb7bb4f2d Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:34 2007 -0700 zorro: Make sysfs config attribute read-only zorro: Make the sysfs `config' attribute read-only, as you cannot write to it (there's no .write function neither). Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 90638f9975e34aef82e97146012ad9d16ac9e4c2 Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:34 2007 -0700 m68k: Fix a few hickups in drivers/scsi/Kconfig m68k: Fix a few hickups in drivers/scsi/Kconfig Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fe6d9daf567310aa4d7cfc07fc48fe35296ecf7b Author: Roman Zippel Date: Wed Aug 22 14:01:33 2007 -0700 m68k: Dont include RODATA into text segment Don't include RODATA into text segment as it includes the kallsyms data and can cause spurious link failures (layout differences can change the number of symbols in kallsyms, i.e. when a symbol is equal to _etext it's not included). Signed-off-by: Roman Zippel Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a5f442b2a90679f0b3bb562c01d0042d44ffd9fe Author: Alan Cox Date: Wed Aug 22 14:01:32 2007 -0700 m68k: Enable arbitary speed tty support Add the needed constants and defines to activate the existing code. Signed-off-by: Alan Cox Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 42b359238ebd359ed443fd80023e58e47be2224a Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:32 2007 -0700 m68k: Use _AC() instead of #ifdef __ASSEMBLY__ m68k: Use _AC() instead of #ifdef __ASSEMBLY__ hackery when needed, remove hackery when unused. Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0d5e74fc7f44b1cdcd793496877c67a2a7a32a1e Author: Johannes Berg Date: Wed Aug 22 14:01:31 2007 -0700 remove dead code in via-pmu68k When suspend is ever implemented for pmu68k it really should follow the generic pm_ops concept and not mirror the platform-specific /dev/pmu device with ioctls on it. Hence, this patch removes the unused code there; should the implementers need it they can look at via-pmu.c and/or the history of the file. Signed-off-by: Johannes Berg Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4088af39cc052eeb6c4568a706c403ce151f5bd2 Author: Roman Zippel Date: Wed Aug 22 14:01:31 2007 -0700 m68k: Remove unnecessary m68k_memoffset export and init Remove an unnecessary m68k_memoffset export and initialization Signed-off-by: Roman Zippel Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb425d0b93f7956abcd247a3b41b5487f748dad9 Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:30 2007 -0700 m68k: Kill superfluous extern Kill a superfluous extern declaration Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4f855897fe6acd98f10e939dea41130cec7b9c42 Author: Geert Uytterhoeven Date: Wed Aug 22 14:01:29 2007 -0700 m68k: needs m68k: needs because of __attribute_const__ Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 34b4e4aa3c470ce8fa2bd78abb1741b4b58baad7 Author: Alan Cox Date: Wed Aug 22 14:01:28 2007 -0700 fix NULL pointer dereference in __vm_enough_memory() The new exec code inserts an accounted vma into an mm struct which is not current->mm. The existing memory check code has a hard coded assumption that this does not happen as does the security code. As the correct mm is known we pass the mm to the security method and the helper function. A new security test is added for the case where we need to pass the mm and the existing one is modified to pass current->mm to avoid the need to change large amounts of code. (Thanks to Tobias for fixing rejects and testing) Signed-off-by: Alan Cox Cc: WU Fengguang Cc: James Morris Cc: Tobias Diedrich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit afe1ab4d577892822de2c8e803fbfaed6ec44ba3 Author: David Brownell Date: Wed Aug 22 14:01:27 2007 -0700 correct name for rtc-m41t80 The new rtc-m41t80 driver name doesn't match its module name, which prevents it from properly hotplugging. Since it's new, no platforms yet depend on that name ... so this patch fixes the driver name to match its module name, rather than going the other way around with a MODULE_ALIAS(). NOTE: This sort of bug is a new thing to watch out for with new-style I2C drivers; previously I2C couldn't hotplug. Signed-off-by: David Brownell Acked-by: Atsushi Nemoto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c661b078fd62abe06fd11fab4ac5e4eeafe26b6d Author: Andy Whitcroft Date: Wed Aug 22 14:01:26 2007 -0700 synchronous lumpy reclaim: wait for page writeback when directly reclaiming contiguous areas Lumpy reclaim works by selecting a lead page from the LRU list and then selecting pages for reclaim from the order-aligned area of pages. In the situation were all pages in that region are inactive and not referenced by any process over time, it works well. In the situation where there is even light load on the system, the pages may not free quickly. Out of a area of 1024 pages, maybe only 950 of them are freed when the allocation attempt occurs because lumpy reclaim returned early. This patch alters the behaviour of direct reclaim for large contiguous blocks. The first attempt to call shrink_page_list() is asynchronous but if it fails, the pages are submitted a second time and the calling process waits for the IO to complete. This may stall allocators waiting for contiguous memory but that should be expected behaviour for high-order users. It is preferable behaviour to potentially queueing unnecessary areas for IO. Note that kswapd will not stall in this fashion. [apw@shadowen.org: update to version 2] [apw@shadowen.org: update to version 3] Signed-off-by: Mel Gorman Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e9187bdcbbc06090757d565a3077e1b0ecab23d2 Author: Andy Whitcroft Date: Wed Aug 22 14:01:25 2007 -0700 synchronous lumpy reclaim: ensure we count pages transitioning inactive via clear_active_flags As pointed out by Mel when reclaim is applied at higher orders a significant amount of IO may be started. As this takes finite time to drain reclaim will consider more areas than ultimatly needed to satisfy the request. This leads to more reclaim than strictly required and reduced success rates. I was able to confirm Mel's test results on systems locally. These show that even under light load the success rates drop off far more than expected. Testing with a modified version of his patch (which follows) I was able to allocate almost all of ZONE_MOVABLE with a near idle system. I ran 5 test passes sequentially following system boot (the system has 29 hugepages in ZONE_MOVABLE): 2.6.23-rc1 11 8 6 7 7 sync_lumpy 28 28 29 29 26 These show that although hugely better than the near 0% success normally expected we can only allocate about a 1/4 of the zone. Using synchronous reclaim for these allocations we get close to 100% as expected. I have also run our standard high order tests and these show no regressions in allocation success rates at rest, and some significant improvements under load. This patch: We are transitioning pages from active to inactive in clear_active_flags, those need counting as PGDEACTIVATE vm events. Signed-off-by: Andy Whitcroft Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0cd82ef1fb8909d6d414f36f291c2f67ca70e2be Author: Yoshinori Sato Date: Wed Aug 22 14:01:24 2007 -0700 h8300: missing include Build error fix. Signed-off-by: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit efbee7f1c9f3cca8d7d2fe0e797d2c7cc970cccd Author: Michael Neuling Date: Thu Aug 23 09:31:42 2007 +1000 Documentation: fix getdelays.c printf bug Commit b663a79c191508f27cd885224b592a878c0ba0f6 ("taskstats: add context-switch counters") incorrectly removed a comma from a printf statement. This causes corruption in the output printing or a seg fault. Signed-off-by: Michael Neuling Acked-by: Balbir Singh Signed-off-by: Linus Torvalds commit 8b7f07155f8ee1536da2f9590f1aa9383afefb6b Author: Andrew Morton Date: Wed Aug 22 14:01:20 2007 -0700 free_irq(): fix DEBUG_SHIRQ handling If we're going to run the handler from free_irq() then we must do it with local irq's disabled. Otherwise lockdep complains that the handler is taking irq-safe spinlocks in a non-irq-safe fashion. Cc: Ingo Molnar Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 436bbd431d41e0fd3bfedb0312ab764b291ddf82 Author: Christian Schmidt Date: Wed Aug 22 14:01:19 2007 -0700 Add blacklisting capability to serial_pci to avoid misdetection of serial ports The serial_pci driver tries to guess serial ports on unknown devices based on the PCI class (modem or serial). On certain softmodems (AC'97 modems) this can lead to the recognition of non-existing serial ports. This patch adds a blacklist of PCI IDs that are to be ignored by the driver. [akpm@linux-foundation.org: cleanups] Signed-off-by: Christian Schmidt Cc: Bjorn Helgaas Cc: Russell King Cc: Yinghai Lu Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ad4c2aa6354fad5316565b1cff57f80db0e04db8 Author: Corey Minyard Date: Wed Aug 22 14:01:18 2007 -0700 Serial 8250: handle saving the clear-on-read bits from the LSR and MSR Reading the LSR clears the break, parity, frame error, and overrun bits in the 8250 chip, but these are not being saved in all places that read the LSR. Same goes for the MSR delta bits. Save the LSR bits off whenever the lsr is read so they can be handled later in the receive routine. Save the MSR bits to be handled in the modem status routine. Also, clear the stored bits and clear the interrupt registers before enabling interrupts, to avoid handling old values of the stored bits in the interrupt routines. [akpm@linux-foundation.org: clean up pre-existing code] Signed-off-by: Corey Minyard Cc: Russell King Cc: Yinghai Lu Cc: Bjorn Helgaas