ChangeSet@1.2036, 2004-10-02 18:33:53-07:00, torvalds@ppc970.osdl.org tty locking fixups: remove unused "flags" variable It became obsolete when the termios locking was changed to use a per-tty semaphore. ChangeSet@1.2035, 2004-10-02 17:57:48-07:00, benh@kernel.crashing.org [PATCH] Fix booting on some recent G5s Some recent G5s have a problem with PCI/HT probing. They crash (machine check) during the probe of some slot numbers, it seems to be related to some functions beeing disabled by the firmware inside the K2 ASIC. This patch limits the config space accesses to devices that are present in the OF device-tree. This fixes the problem and shouldn't "add" any limitation. If you plug a "random" PCI card with no OF driver, the firmware will still build a node for it with the default set of properties created from the config space. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2031.1.1, 2004-10-03 01:08:14+01:00, aia21@cantab.net NTFS: Fix stupid bug in fs/ntfs/attrib.c::ntfs_attr_reinit_search_ctx() where we did not clear ctx->al_entry but it was still set due to changes in ntfs_attr_lookup() and ntfs_external_attr_find() in particular. Signed-off-by: Anton Altaparmakov ChangeSet@1.2033, 2004-10-02 15:54:05-07:00, torvalds@ppc970.osdl.org Fix close() vs posix lock race A threaded app that posix-locks and closes the same file in two threads concurrently may result in a posix lock that was never visible to the closer, and that thus needs cleanup on the final fput. Handle it together with the regular flocks. ChangeSet@1.2032, 2004-10-02 15:46:35-07:00, alan@lxorguk.ukuu.org.uk [PATCH] Update termios to use per tty semaphore This makes the agreed change of termios locking to be semaphore based sleep locking. This is needed for USB in particular as it has to use messaging to issue terminal mode changes. This code passes Torvalds test grades 0, 1 and 2 (it looks ok, it compiles and it booted). It does mean that a driver cannot take an atomic peek at termios data during an interrupt. Nobody seems to be doing this although some of the driver receive paths for line disciplines will eventually want to (n_tty currently doesn't do this locked on the receive path). Since the ldisc is given a chance to copy any essential bits on the ->set_termios path this seems not to be a problem. ChangeSet@1.2031, 2004-10-02 12:09:43-07:00, torvalds@ppc970.osdl.org Partially undo Alan's recent tty locking fixes: the termios lock must not be held across the driver/ldisc downcalls. Some drivers need to set device state (baudrate etc) and may need to sleep. ChangeSet@1.2030, 2004-10-02 10:59:55-07:00, viro@parcelfarce.linux.theplanet.co.uk [PATCH] Race with iput and umount Jeff Mahoney notes: "generic_shutdown_super() will happily call the ->put_super fs method, destroying data structures still in use by the iput (->delete_inode) in progress. The unlink path will call the ->unlink fs method, release the path (thus dropping the reference to the vfsmount, and then call iput. Since the vfsmount reference is dropped back to 1, a umount will succeed, causing the superblock to be cleaned up." Arrgh... Here's the trivial fix: do the final "iput()" a bit earlier in the unlink path. Note: all places that go to exit1: or exit: will have NULL inode, so we are not leaking anything here and it is OK do that iput() early; indeed, the goal of that kludge was to postpone the final iput() past the unlocking the parent for the sake of contention if a wunch of bankers is doing parallel unlink() on files in the same directory and normally it would happen on dput() after vfs_unlink()) ChangeSet@1.2028, 2004-10-01 16:34:56-07:00, chrisw@osdl.org [PATCH] mlockall() take mmap_sem a bit later In sys_mlockall(), flags validation and can_do_mlock() check don't require holding mmap_sem. Move down_write() down a bit, and adjust appropriately. Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds ChangeSet@1.2027, 2004-10-01 16:34:43-07:00, chrisw@osdl.org [PATCH] make can_do_mlock useful for mlock/mlockall Move the simple can_do_mlock() check before the full rlimits based restriction checks for mlock() and mlockall(). As it is, the check adds nothing. This has a side-effect of eliminating an unnecessary call to can_do_mlock() on the munlockall() path. Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds ChangeSet@1.2026, 2004-10-01 16:34:31-07:00, chrisw@osdl.org [PATCH] mlockall() check rlimit only when MCL_CURRENT is set Only check memlock rlimit against mm->total_vm when mlockall() flags include MCL_CURRENT. Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds ChangeSet@1.2025, 2004-10-01 16:34:18-07:00, chrisw@osdl.org [PATCH] mlockall(MCL_FUTURE) unlocks currently locked mappings Calling mlockall(MCL_FUTURE) will erroneously unlock any currently locked mappings. Fix this up, and while we're at it, remove the essentially unused error variable. Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds ChangeSet@1.2021, 2004-10-01 15:11:57-07:00, laforge@netfilter.org [NETFILTER]: Fix NAT helper handling of TCP window tracking info. Fix NAT helper code to update TCP window tracking information if it resizes payload (and thus alrers sequence numbers). This patchlet was somehow lost during 2.4.x->2.6.x port of TCP window tracking :( Signed-off-by: Harald Welte Signed-off-by: David S. Miller ChangeSet@1.2009.5.4, 2004-10-01 15:03:41-07:00, Alexander.Stohr@gmx.de [SPARC64]: Fix solaris emul __set_utsfield offset calculation. Signed-off-by: David S. Miller ChangeSet@1.2020, 2004-10-01 15:01:32-07:00, yasuyuki.kozakai@toshiba.co.jp [IPV6]: Fix ntohs() --> htons() typo in reassembly.c Signed-off-by: Yasuyuki KOZAKAI Signed-off-by: David S. Miller ChangeSet@1.2019, 2004-10-01 14:58:40-07:00, yoshfuji@linux-ipv6.org [IPV6]: NEIGHBOUR: hold refcnt of net_device from proxy neighbor entries. Signed-off-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller ChangeSet@1.2018, 2004-10-01 14:50:39-07:00, davem@nuts.davemloft.net [ATM]: Use neigh_table_{init,clear}() in clip.c Signed-off-by: David S. Miller ChangeSet@1.2009.6.7, 2004-10-01 20:00:34+02:00, bzolnier@trik.(none) [ide] Simtec BAST (EB2410ITX) / Thorcom VR1000 driver Patch to provide support for the following two boards: - Simtec BAST (EB2410ITX) - Thorcom VR1000 Signed-off-by: Ben Dooks Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.6.6, 2004-10-01 19:58:49+02:00, bzolnier@trik.(none) [ide] piix: fix wrong DMA mode selected From: Carsten Haustein A bug in function piix_config_drive_xfer_rate() allows a call of hwif->ide_dma_on(drive) without prior call of piix_config_drive_for_dma(). This results in harddisk configured for UDMA (default?) whereas the highest DMA mode supported by PIIX3 is MWORD2. This bug is supposed to be present in any 2.6.x kernel release and any 2.4.x kernel release since 2.4.21. bart: this should also fix the same bug for PIIXa and PIIXb Fixes bugzilla bug #3473. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.6.5, 2004-10-01 19:58:27+02:00, bzolnier@trik.(none) [ide] aec62xx: remove dead DEBUG_AEC_REGS code Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.6.4, 2004-10-01 19:57:32+02:00, bzolnier@trik.(none) [ide] remove stale comment from ide-proc.c ide-default driver was added long time ago. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.6.3, 2004-10-01 19:56:49+02:00, bzolnier@trik.(none) [ide] remove dead debugging code from ide-taskfile.c - CONFIG_IDE_TASK_IOCTL_DEBUG cannot be defined - function declarations are used instead of calls Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.6.2, 2004-10-01 19:56:04+02:00, bzolnier@trik.(none) [ide] remove dead CMD640 debugging from ide-probe.c Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.6.1, 2004-10-01 19:54:54+02:00, bzolnier@trik.(none) [ide] triflex: kill /proc/ide/triflex Fixes OOPS on two single channel controllers. Signed-off-by: Bartlomiej Zolnierkiewicz ChangeSet@1.2009.5.2, 2004-10-01 08:08:23-07:00, david@gibson.dropbear.id.au [PATCH] ppc64: change bad choice of VSID_MULTIPLIER We recently changed the VSID allocation on PPC64 to use a new scheme based on a multiplicative hash. It turns out our choice of multiplier (the largest 28-bit prime) wasn't so great: with large contiguous mappings, we can get very poor hash scattering. In particular earlier machines (without 16M pages) which had a reasonable about of RAM (>2G or so) wouldn't boot, because the linear mapping overflowed some hash buckets. This patch changes the multiplier to something which seems to work better (it is, rather arbitrarily, the median of the primes between 2^27 and 2^28). Some more theory should almost certainly go into the choice of this constant, to avoid more pathological cases. But for now, this choice fixes a serious bug, and seems to do at least as well at scattering as the old choice on a handful of simple testcases. Signed-off-by: David Gibson Signed-off-by: Linus Torvalds ChangeSet@1.2009.5.1, 2004-10-01 08:04:06-07:00, geert@linux-m68k.org [PATCH] fix up tty fall-out The two patches below (compile)fix some fall-out from the tty cleanups. Signed-off-by: Geert Uytterhoeven Signed-off-by: Linus Torvalds ChangeSet@1.2009.4.1, 2004-10-01 14:52:48+01:00, rmk@flint.arm.linux.org.uk [PCMCIA] replace schedule_timeout() with msleep() From: Remove unnecessary cs_to_timeout() macro. Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Andrew Morton Signed-off-by: Russell King ChangeSet@1.2009.2.5, 2004-10-01 13:37:13+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2116/1: S3C2410 - s3c2410_gpio_cfgpin() mask bug Patch from Ben Dooks Fixed bug where wrong bits where being masked in the configuration registers for the GPIO pins Signed-off-by: Ben Dooks ChangeSet@1.2009.2.4, 2004-10-01 13:11:37+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2102/1: BAST - incorrect IRQ for USB overcurrent Patch from Ben Dooks Fix IRQ number for USB over-current on Simtec BAST Signed-off-by: Ben Dooks ChangeSet@1.2009.1.26, 2004-10-01 12:46:48+01:00, ben-linux@org.rmk.(none) [ARM PATCH] 2107/1: BAST - additional serial port fixes Patch from Ben Dooks Added code to remove the serial ports registered when the module is unloaded. Cleaned up ifdef'd code, and added copyright header Signed-off-by: Ben Dooks ChangeSet@1.2009.2.3, 2004-10-01 12:37:59+01:00, catalin.marinas@com.rmk.(none) [ARM PATCH] 2106/1: Remove the "write" assumption for Jazelle in the early_abort handler Patch from Catalin Marinas On ARM926EJ-S, the "always assume write" for Jazelle data aborts causes Java code exit with segmentation fault every time it tries to access a read-only page. This patch puts some restrictions on what can be done in the Jazelle state but it allows it to run. Signed-off-by: Catalin Marinas ChangeSet@1.2009.1.25, 2004-09-30 21:28:12-07:00, torvalds@evo.osdl.org Fix up and type-annotate sis fb driver Some dual use type errors still exist, where the bios mapping is type-confused. ChangeSet@1.2017, 2004-09-30 20:58:53-07:00, davem@nuts.davemloft.net [TCP]: Kill tso_{factor,mss}. We can just use skb_shinfo(skb)->tso_{segs,size} directly. This also allows us to kill the hack zone code in ip_output.c The original impetus for thus change was a problem noted by John Heffner. We do not abide by the MSS of the connection for TCP segmentation, we were using the path MTU instead. This broke various local network setups with TSO enabled and is fixed as a side effect of these changes. Signed-off-by: David S. Miller ChangeSet@1.2016, 2004-09-30 20:09:28-07:00, davem@nuts.davemloft.net [TCP]: Add tcp_tso_win_divisor sysctl. This allows control over what percentage of the congestion window can be consumed by a single TSO frame. The setting of this parameter is a choice between burstiness and building larger TSO frames. Signed-off-by: David S. Miller ChangeSet@1.2009.1.24, 2004-09-30 19:58:07-07:00, torvalds@evo.osdl.org Do trivial __iomem annotations for tridentfb.c A few one-liners removed hundreds of lines of warnings. The driver was clean, just not using the proper types. ChangeSet@1.2009.1.23, 2004-09-30 19:54:59-07:00, torvalds@evo.osdl.org Fix up MMIO pointer types and add __iomem annotations to radeonfb.c It was almost correct, apart from some silly details. The x86 ROM probing is still wrong, and doesn't use the proper PCI MMIO accessor functions. Sparse (correctly) warns about it. ChangeSet@1.2009.1.22, 2004-09-30 19:44:19-07:00, torvalds@evo.osdl.org Remove casts and add __iomem annotations to gdth driver ChangeSet@1.2009.1.21, 2004-09-30 18:35:01-07:00, torvalds@evo.osdl.org Fix cyclades driver types, and add __iomem annotations. Remove absolutely tons of totally unnecessary casts, once the types are done right in the first place. The driver is still ugly as hell and needs some serious indentation fixing, but this makes it not spew hundreds of warnings any more. ChangeSet@1.2009.1.20, 2004-09-30 17:04:11-07:00, greg@kroah.com [PATCH] USB: remove FIXME created from tty core changes in empeg driver. Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds ChangeSet@1.2009.1.19, 2004-09-30 17:03:59-07:00, greg@kroah.com [PATCH] USB: fix error in bluetty.c driver caused by tty core changes Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds ChangeSet@1.2009.1.18, 2004-09-30 16:23:12-07:00, torvalds@ppc970.osdl.org The hpet acpi driver is not __initdata. We register it with the ACPI layer, and it's alive long after init. Noted by Bjorn Helgaas. ChangeSet@1.2015, 2004-09-30 15:49:36-07:00, davem@nuts.davemloft.net [SUNGEM]: Fix build. ChangeSet@1.2009.1.17, 2004-09-30 14:18:32-07:00, torvalds@ppc970.osdl.org Wisdom passed down the ages on clay tablets. Only recently digitized for our edification. ChangeSet@1.2013, 2004-09-30 12:42:29-07:00, davem@nuts.davemloft.net [TCP]: Check correct sequence number for URG in tcp_tso_acked(). Noticed by Herbert Xu. Signed-off-by: David S. Miller ChangeSet@1.2012, 2004-09-30 12:31:23-07:00, davem@nuts.davemloft.net [SUNGEM]: Do not need two implementations of poll_controller, hehe. Signed-off-by: David S. Miller ChangeSet@1.2009.1.16, 2004-09-30 12:16:36-07:00, shemminger@osdl.org [PATCH] limit max jiffy of msecs_to_jiffies ChangeSet@1.2009.3.3, 2004-09-30 18:51:37+00:00, tony.luck@intel.com [IA64] mca.h, mca_drv.c: cleanup extern declarations Move extern declarations of ia64_{reg,unreg}_MCA_extension() to mca.h. Delete declaration of ia64_mca_ucmc_other_recover_fp() which doesn't exist. Patch supplied by Hidetoshi Seto. Signed-off-by: Tony Luck ChangeSet@1.2009.3.2, 2004-09-30 18:51:15+00:00, seto.hidetoshi@jp.fujitsu.com [IA64] Recovery from user-mode memory error This is the latest/Updated OS_MCA handler which try to do recovery from multibit-ECC/poisoned memory-read error on user-land. (Thank you very much for comments, Keith and Grant!) I'd still appreciate it if anyone having good test environment could apply my patch and could report how it works. (especially reports on non-Tiger/non-Intel platform are welcome.) Signed-off-by: Hidetoshi Seto Signed-off-by: Tony Luck ChangeSet@1.2009.1.15, 2004-09-30 11:25:46-07:00, torvalds@ppc970.osdl.org Fix up natsemi network driver IO accessor types. Basic cleanup - replace untyped/wrongly typed "dev->base_addr" with use of a strongly typed "ioaddr". Fixed up resulting mii_delay() search-and-replace error noticed by Andrey Klochko. Verified by Franz Pletz. ChangeSet@1.1946.7.11, 2004-09-30 16:31:06+00:00, eranian@hpl.hp.com [IA64] minor fix to perfmon change the return value of PFM_CREATE_CONTEXT from EAGAIN to ENOMEM when the sampling buffer size is larger than the RLIMIT_MEMLOCK limit of the task. signed-off-by: Stephane Eranian Signed-off-by: Tony Luck ChangeSet@1.1946.7.10, 2004-09-30 16:27:05+00:00, eranian@hpl.hp.com [IA64] perfmon2 fix for TASK_TRACED fix a problem in pfm_check_task_state() and pfm_task_incompatible() which was caused by the introduction of the new TASK_TRACED state. Tool would fail to attach to a process,i.e., PFM_LOAD_CONTEXT would fail. With the fix perfmon now accepts to operate on tasks which are in either TASK_STOPPED or TASK_TRACED state. The problem was tracked down by Alex Williamson from HP who also submitted the patch. signed-off-by: Stephane Eranian Signed-off-by: Tony Luck ChangeSet@1.2009.1.13, 2004-09-30 08:41:37-07:00, Andries.Brouwer@cwi.nl [PATCH] overcommit symbolic constants Played a bit with overcommit the past hour. Am not entirely satisfied with the no overcommit mode 2 - programs segfault when the system is close to that boundary. So, instead of the somewhat larger patch that I planned to send, just symbolic names for the modes. ChangeSet@1.2009.1.12, 2004-09-30 08:41:24-07:00, alan@redhat.com [PATCH] Fix typo in final changes to old i4l tty code ChangeSet@1.2009.1.11, 2004-09-30 08:41:12-07:00, alan@redhat.com [PATCH] fix typo in capi driver I didn't have ISDN builds on in my tree for some reason hence missing these two from the tidy ups at the end. Marcel Holtmann also came up with the same fixes although I didnt find that email until I did these. Signed-off-by: Alan Cox ChangeSet@1.2009.1.10, 2004-09-30 08:23:27-07:00, benh@kernel.crashing.org [PATCH] ppc64: Fix incorrect initialization of hash table on some pSeries The hash table wasn't fully initialized on some pSeries that had the workaround for no batching. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds ChangeSet@1.2009.1.9, 2004-09-30 08:23:15-07:00, rddunlap@osdl.org [PATCH] pc300: remove extra paren. Remove an extra left-paren. Acked-by: Marcelo Tosatti Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds ChangeSet@1.2009.2.2, 2004-09-30 14:54:06+01:00, icampbell@com.rmk.(none) [ARM PATCH] 2114/1: fix drivers/char/watchdog/sa1100-wdt.c on SA1100 Patch from Ian Campbell Patch 2113 broke drivers/char/watchdog/sa1100-wdt.c on SA1100. Signed-off-by: Ian Campbell ChangeSet@1.2009.2.1, 2004-09-30 13:31:59+01:00, icampbell@com.rmk.(none) [ARM PATCH] 2113/1: include asm/arch/pxa-regs.h where necessary Patch from Ian Campbell The include of asm/arch/pxa-regs.h has been removed from asm-arm/arch-pxa/hardware.h and now needs to be included from the relevant files. I have verified the fixes to arch/arm/mach-pxa/sleep.S and drivers/char/watchdog/sa1100_wdt.c myself. My local tree has other changes to include/asm-arm/arch-pxa/serial.h but I beleive that the attached is necessary and correct. Signed-off-by: Ian Campbell ChangeSet@1.2011, 2004-09-29 21:12:18-07:00, davem@nuts.davemloft.net [TCP]: Smooth out TSO ack clocking. - Export tcp_trim_head() and call it directly from tcp_tso_acked(). This also fixes URG handling. - Make tcp_trim_head() adjust the skb->truesize of the packet and liberate that space from the socket send buffer. - In tcp_current_mss(), limit TSO factor to 1/4 of snd_cwnd. The idea is from John Heffner. Signed-off-by: David S. Miller ChangeSet@1.2009.1.7, 2004-09-29 19:40:21-07:00, torvalds@ppc970.osdl.org Linux 2.6.9-rc3 TAG: v2.6.9-rc3