]> git.hungrycats.org Git - linux/log
linux
22 years agoUSB: hook up the HID device's struct device to the input system properly.
Greg Kroah-Hartman [Tue, 20 Jan 2004 07:29:14 +0000 (23:29 -0800)]
USB: hook up the HID device's struct device to the input system properly.

22 years ago[PATCH] USB UHCI: fix broken data toggles for queued control URBs
Alan Stern [Tue, 20 Jan 2004 06:50:56 +0000 (22:50 -0800)]
[PATCH] USB UHCI: fix broken data toggles for queued control URBs

This patch fixes a long-standing (albeit unidentified) problem in the
queueing code for the UHCI HCD.  The code propagates data toggle settings
between messages in a queue for control transfers just the same as bulk
and interrupt transfers.  That is a mistake, since control messages always
restart with data toggle 0.  With this patch, the UHCI driver now passes
test 10 (control URB queueing) in David Brownell's usbtest suite.

The patch appears to change more than it really does, because it alters
the indentation level of a large section of code.

22 years agoMerge kroah.com:/home/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 20 Jan 2004 06:33:30 +0000 (22:33 -0800)]
Merge kroah.com:/home/linux/BK/bleed-2.6
into kroah.com:/home/linux/BK/usb-2.6

22 years ago[PATCH] Prevent false positives in non-fatal MCE check.
Dave Jones [Tue, 20 Jan 2004 04:59:17 +0000 (20:59 -0800)]
[PATCH] Prevent false positives in non-fatal MCE check.

non-fatal didn't get the same change that k7.c did a few months
back, so it reads from banks that actually _cause_ MCEs.

This patch also adds a bunch of copyright headers whilst we're
in that neighborhood.

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Tue, 20 Jan 2004 08:57:32 +0000 (03:57 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/libata-2.5

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 19 Jan 2004 15:39:54 +0000 (07:39 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMake sure we don't access "cmd" in ide-scsi after having
Linus Torvalds [Mon, 19 Jan 2004 15:29:44 +0000 (07:29 -0800)]
Make sure we don't access "cmd" in ide-scsi after having
started the command - it may not exist any more.

In particular, load the host early in order to do proper
locking without having to access the command structure later.

Noted by Andries Brouwer.

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Mon, 19 Jan 2004 14:00:53 +0000 (06:00 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.6
David S. Miller [Mon, 19 Jan 2004 13:49:32 +0000 (05:49 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[PATCH] sort exception tables
Paul Mackerras [Mon, 19 Jan 2004 13:49:29 +0000 (05:49 -0800)]
[PATCH] sort exception tables

This patch arranges for the exception tables to be sorted on most
architectures.  It sorts the main kernel exception table on startup
and the module exception tables when they get loaded.  The main table
is sorted reasonably early - just after kmem_cache_init - but that
could be moved even earlier if necessary.

There is now a lib/extable.c which includes the sort_extable()
function from arch/ppc/mm/extable.c and the search_extable() function
from arch/i386/mm/extable.c, which had been copied to many
architectures.  On many architectures, arch/$(ARCH)/mm/extable.c
became empty and so I have removed it.

There are four architectures which do things differently from i386:
alpha, ia64, sparc and sparc64.  Alpha and ia64 store the offset from
the offset from the exception table entry to the instruction, and
sparc and sparc64 have range entries in the table.  For those
architectures I have added empty sort_extable functions.  The
maintainers for those architectures can implement something better if
they care to.  As it is they are no worse off than before.

Although it is a moderately sizable patch, it ends up with a net
reduction of 377 lines in the size of the kernel source. :)

I have tested this on x86 and ppc with a module that uses __get_user
in an init function, deliberately laid out to get the exception table
out of order, and it works (whereas it oopsed without this patch).

22 years ago[PATCH] Restore missing ppc64 hash_low.S file
Andrew Morton [Mon, 19 Jan 2004 13:44:20 +0000 (05:44 -0800)]
[PATCH] Restore missing ppc64 hash_low.S file

This went missing somewhere.  Here's a patch which puts it back.

22 years ago[PATCH] pdc202xx_old.c: sanitize 66MHz clock use
Bartlomiej Zolnierkiewicz [Mon, 19 Jan 2004 13:44:11 +0000 (05:44 -0800)]
[PATCH] pdc202xx_old.c: sanitize 66MHz clock use

Sanitize 66MHz clock use: "enable" 66MHz clock before starting UDMA3/4/5
read/write transfer and "disable" it after finishing transfer.

- fixes timings for non-UDMA3/4/5 operations (correct 33MHz timings are used)

- allows using UDMA3/4/5 modes on a capable drive even if non-UDMA3/4/5 drive
  is present on the same channel

- fixes corner case when one drive on the channel was using UDMA66/100 + LBA48
  (so clock was enabled/disabled for each read/write) and other one was using
  UDMA66/100 + LBA28, it could happen that request on LBA48 drive disabled
  66MHz clock and it was not enabled for the next transfer on LBA28 drive

22 years ago[PATCH] pdc202xx_old.c: fix enabling 66MHz clock for modes > UDMA2
Bartlomiej Zolnierkiewicz [Mon, 19 Jan 2004 13:44:02 +0000 (05:44 -0800)]
[PATCH] pdc202xx_old.c: fix enabling 66MHz clock for modes > UDMA2

drive->id is now always present even if no device is attached,
therefore check for drive->present instead.

22 years ago[PATCH] pdc202xx_old.c: fix PIO autotuning
Bartlomiej Zolnierkiewicz [Mon, 19 Jan 2004 13:43:53 +0000 (05:43 -0800)]
[PATCH] pdc202xx_old.c: fix PIO autotuning

This fixes bugzilla bug #1431.

Always tune controller PIO timings.  This fixes lockup during PIO access
(ie. 'cat /proc/ide/hda/identify') when Promise BIOS is disabled.

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6
Linus Torvalds [Mon, 19 Jan 2004 13:38:09 +0000 (05:38 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[IPV6]: Stricter checks on link-locals in bind and sendmsg
Ville Nuorvala [Mon, 19 Jan 2004 13:37:58 +0000 (05:37 -0800)]
[IPV6]: Stricter checks on link-locals in bind and sendmsg

When binding to a link-local address, inet6_bind() and raw6_bind() only
check that an interface is specified and that the address exists, but
they don't check if it actually exists on the specified interface.

Similarly, in datagram_sent_ctl() we don't check for the possibility of a
link-local address when we receive the source address from userspace.

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Mon, 19 Jan 2004 13:36:40 +0000 (05:36 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
Linus Torvalds [Mon, 19 Jan 2004 13:36:00 +0000 (05:36 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[NET]: Add proc_dointvec_userhz_jiffies, use it for proper handling of neighbour...
Hideaki Yoshifuji [Mon, 19 Jan 2004 13:31:35 +0000 (05:31 -0800)]
[NET]: Add proc_dointvec_userhz_jiffies, use it for proper handling of neighbour sysctls.

22 years ago[IPV6]: Set flow protocol correctly in SIT driver route lookups.
Michal Ludvig [Mon, 19 Jan 2004 13:23:30 +0000 (05:23 -0800)]
[IPV6]: Set flow protocol correctly in SIT driver route lookups.

22 years ago[ROSE]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:19:34 +0000 (05:19 -0800)]
[ROSE]: Check error return from memcpy_fromiovec()

22 years ago[NETROM]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:19:08 +0000 (05:19 -0800)]
[NETROM]: Check error return from memcpy_fromiovec()

22 years ago[IRDA]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:18:47 +0000 (05:18 -0800)]
[IRDA]: Check error return from memcpy_fromiovec()

22 years ago[AX25]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:18:24 +0000 (05:18 -0800)]
[AX25]: Check error return from memcpy_fromiovec()

22 years agoThis removes the old Eicon ISDN driver.
Linus Torvalds [Mon, 19 Jan 2004 13:18:14 +0000 (05:18 -0800)]
This removes the old Eicon ISDN driver.

The config entries etc were already removed earlier.

22 years ago[PATCH] reiserfs v3 should throttle writers
Andrew Morton [Mon, 19 Jan 2004 13:16:24 +0000 (05:16 -0800)]
[PATCH] reiserfs v3 should throttle writers

From: Chris Mason <mason@suse.com>

The v3 reiserfs_file_write func doesn't do any write throttling, which
leads to a variety of problems.  Here's a patch that makes
reiserfs_file_write call balance_dirty_pages_ratelimited, and exports that
func for module usage.

22 years ago[PATCH] video-buf.c cleanup
Andrew Morton [Mon, 19 Jan 2004 13:16:16 +0000 (05:16 -0800)]
[PATCH] video-buf.c cleanup

Remove now-unused 2.4 back-compat code.

22 years ago[PATCH] work around gcc bug in bitmap.c
Andrew Morton [Mon, 19 Jan 2004 13:16:07 +0000 (05:16 -0800)]
[PATCH] work around gcc bug in bitmap.c

gcc miscompiles this. Scary.

22 years ago[IPV6]: Add missing sentinel to ipv6_route_table.
Krishna Kumar [Mon, 19 Jan 2004 13:16:04 +0000 (05:16 -0800)]
[IPV6]: Add missing sentinel to ipv6_route_table.

22 years ago[PATCH] uninline bitmap functions
Andrew Morton [Mon, 19 Jan 2004 13:15:58 +0000 (05:15 -0800)]
[PATCH] uninline bitmap functions

- A couple of them are using alloca (via DECLARE_BITMAP) and this generates
  a cannot-inline warning with -Winline.

- These functions are too big to inline anwyay.

22 years ago[PATCH] Remove CLONE_DETACHED
Andrew Morton [Mon, 19 Jan 2004 13:15:48 +0000 (05:15 -0800)]
[PATCH] Remove CLONE_DETACHED

From: Andries.Brouwer@cwi.nl

Remove obsolete CLONE_DETACHED

22 years ago[PATCH] kbuild: Maintainers update
Andrew Morton [Mon, 19 Jan 2004 13:15:39 +0000 (05:15 -0800)]
[PATCH] kbuild: Maintainers update

From: Sam Ravnborg <sam@ravnborg.org>

Modify MAINTAINERS to reflect the reality in maintainership for kbuild.
This is ack'ed with Michael Elizabeth Chastain and Kai Germaschewski.

I removed the list and web-site since they are not actively used today.

22 years ago[PATCH] ALI M1533 audio hang fix
Andrew Morton [Mon, 19 Jan 2004 13:15:31 +0000 (05:15 -0800)]
[PATCH] ALI M1533 audio hang fix

From: risto.sandvik@helsinki.fi

Everything freezes when trying to play sounds using the alsa driver opl3sa2
(kernel supplied or 1.0.0rc2) on an Acer Extensa series laptop with the Ali
M1533 PCI to ISA bridge.  Problem exists both in the 2.6 and 2.4 series of
kernels.

Adding AL_M1533 to drivers/pci/quirks.c fixes the problem for both.  This has
been a known problem since 2.2.x (see
http://www.mfn.unipmn.it/~sitta/linux503.html)

22 years ago[PATCH] AFS upgrade
Andrew Morton [Mon, 19 Jan 2004 13:15:22 +0000 (05:15 -0800)]
[PATCH] AFS upgrade

From: David Howells <dhowells@redhat.com>

Here's a patch to improve the AFS linux support. It:

 (1) Includes Pete's patch to skip the colon in the volume name, compile
     directly into the kernel, and not try to access non-existent caching
     routines.

 (2) Changes if (...) BUG() to BUG_ON()

 (3) Gets rid of typedefs.

 (4) Changes list_for_each() into list_for_each_entry().

 (5) Adds more whitespace and wraps lines to please the CodingStyle sticklers.

22 years ago[PATCH] rxrpc update
Andrew Morton [Mon, 19 Jan 2004 13:15:12 +0000 (05:15 -0800)]
[PATCH] rxrpc update

From: David Howells <dhowells@redhat.com>

Here's a patch to fix some bugs in my RxRPC code, including the fix for the
transport initialisation failure recovery spotted by Pete Zaitcev.

It also inserts some extra spaces in a few places.

22 years ago[PATCH] sgiioc4.c cleanup weak symbol and error numbers
Andrew Morton [Mon, 19 Jan 2004 13:15:03 +0000 (05:15 -0800)]
[PATCH] sgiioc4.c cleanup weak symbol and error numbers

From: Jes Sorensen <jes@trained-monkey.org>

The included patch removes the usage of weak symbols from sgiioc4.c now
that we have the Kconfig issue sorted as well as cleans up the error no
handling (instead of return 1 on error) and adds a check for the return
value on snia_pci_endian_set as suggested by Christoph.

22 years ago[PATCH] remove spurious strdup
Andrew Morton [Mon, 19 Jan 2004 13:14:54 +0000 (05:14 -0800)]
[PATCH] remove spurious strdup

From: James Morris <jmorris@redhat.com>

AFS has an unused strdup() implementation.

22 years ago[PATCH] rq_for_each_bio fix
Andrew Morton [Mon, 19 Jan 2004 13:14:46 +0000 (05:14 -0800)]
[PATCH] rq_for_each_bio fix

From: Xavier Bestel <xavier.bestel@free.fr>

Within the body of this macro we are accessing rq->bio, but `bio' is an arg
to the macro.  If someone uses this macro with some variable which is not
named `bio' it won't compile.

So use a more-likely-to-be-unique identifier for the macro.

22 years ago[IPV4]: Fix URL mentioned for IP_ROUTE_NAT.
Petri T. Koistinen [Mon, 19 Jan 2004 13:14:44 +0000 (05:14 -0800)]
[IPV4]: Fix URL mentioned for IP_ROUTE_NAT.

22 years ago[PATCH] cleanup single_open usage in dma.c
Andrew Morton [Mon, 19 Jan 2004 13:14:37 +0000 (05:14 -0800)]
[PATCH] cleanup single_open usage in dma.c

From: Jeff Muizelaar <muizelaar@rogers.com>

The attached patch lets the seq_file api take care of buffer allocation
instead of doing it by hand.

22 years ago[PATCH] ppc cond_syscall fix
Andrew Morton [Mon, 19 Jan 2004 13:14:28 +0000 (05:14 -0800)]
[PATCH] ppc cond_syscall fix

From: Matt Mackall <mpm@selenic.com>

Experimenting with trying to use cond_syscall for a few arch-specific
syscalls, I discovered that it can't actually be used outside the file
in which sys_ni_syscall is declared because the assembler doesn't feel
obliged to output the symbol in that case:

weak.c:

#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
cond_syscall(sys_foo);

$ nm weak.o
         U sys_ni_syscall

One arch (PPC) is apparently trying to use cond_syscall this way
anyway, though it's probably never been actually tested as the above
test was done on a PPC.

After trying a bunch of tricks to get it to work nicely, I decided
there are basically two alternatives: make weak versions of
sys_ni_syscall wherever they're wanted or put the arch-specific
cond_syscalls in kernel/sys.c where sys_ni_syscall is defined.

The former approach is a bit crufty and doesn't actually do the right
thing in practice as you'll get multiple copies of sys_ni_syscall in
your final image.

The latter introduces some slight arch-pollution in sys.c, but as
arch-specific cond_syscalls aren't all that frequent, it should be
pretty minor. So here's a patch to move the current offender to sys.c:

22 years ago[PATCH] remove null-ilizers
Andrew Morton [Mon, 19 Jan 2004 13:14:19 +0000 (05:14 -0800)]
[PATCH] remove null-ilizers

From: Jes Sorensen <jes@trained-monkey.org>

The following patch removes a couple of null-ilizers of global variables.
Not a big deal, but every byte helps in the .data segment ;-)

22 years ago[PATCH] fix error case in binfmt_elf.c:load_elf_interp
Andrew Morton [Mon, 19 Jan 2004 13:14:10 +0000 (05:14 -0800)]
[PATCH] fix error case in binfmt_elf.c:load_elf_interp

From: Roland McGrath <roland@redhat.com>

Julie DeWandel noticed that in the error case where elf_map has failed,
load_elf_interp will (at the out_close: label) return the `error' variable,
but that will contain the result of a prior operation and not the error
number from elf_map.

22 years ago[PATCH] isapnp modem addition
Andrew Morton [Mon, 19 Jan 2004 13:14:01 +0000 (05:14 -0800)]
[PATCH] isapnp modem addition

From: David Sanders <linux@sandersweb.net>

Patch adds support for another pnp modem in 2.6 kernel.

22 years ago[PATCH] setscheduler fix
Andrew Morton [Mon, 19 Jan 2004 13:13:52 +0000 (05:13 -0800)]
[PATCH] setscheduler fix

From: Joe Korty <joe.korty@ccur.com>

task_running(rq,p) is equivalent to (rq->curr == p) only for some
architectures.

22 years ago[PATCH] sysrq_key_table_key2index() fixlets
Andrew Morton [Mon, 19 Jan 2004 13:13:44 +0000 (05:13 -0800)]
[PATCH] sysrq_key_table_key2index() fixlets

- It's using & where it meant to use &&.  (Randy Dunlap)

- It has two callsites - uninline it.

22 years ago[PATCH] if ... BUG() -> BUG_ON()
Andrew Morton [Mon, 19 Jan 2004 13:13:35 +0000 (05:13 -0800)]
[PATCH] if ... BUG() -> BUG_ON()

From: Adrian Bunk <bunk@fs.tum.de>

four months ago, Rolf Eike Beer <eike-kernel@sf-tec.de> sent a patch
against 2.6.0-test5-bk1 that converted several if ...  BUG() to BUG_ON()

This might in some cases result in slightly faster code because BUG_ON()
uses unlikely().

22 years ago[PATCH] make gcc 3.4 compilation work
Andrew Morton [Mon, 19 Jan 2004 13:13:24 +0000 (05:13 -0800)]
[PATCH] make gcc 3.4 compilation work

From: David Mosberger <davidm@napali.hpl.hp.com>

With gcc-3.4 we need "attribute((used))" declarations to get "make
modules_install" to work.

Otherwise these sections get dropped from the final image (I assume).

22 years ago[PATCH] Arrange for EFI-related code to be compiled away
Andrew Morton [Mon, 19 Jan 2004 13:13:14 +0000 (05:13 -0800)]
[PATCH] Arrange for EFI-related code to be compiled away

From: David Mosberger <davidm@napali.hpl.hp.com>

There is some EFI-related code which is present in the ia64 build but is not
needed: variable efi_enabled is always zero.

The patch fiddles with the efi_enabled definition to arrange for
`efi_enabled' to be constant zero or constant one in those situations where
this can be guaranteed.

22 years ago[PATCH] ext3: fix determination of inode journalling mode
Andrew Morton [Mon, 19 Jan 2004 13:13:05 +0000 (05:13 -0800)]
[PATCH] ext3: fix determination of inode journalling mode

The test for whether an inode is using journalled, ordered or writeback data
is incorrect and can lead to ext3_set_aops() giving the inode the wrong set
of address_space_operations.  Fix.  (Spotted by Jan Kara).

22 years ago[PATCH] Add bdev private field
Andrew Morton [Mon, 19 Jan 2004 13:12:56 +0000 (05:12 -0800)]
[PATCH] Add bdev private field

From: Christoph Hellwig <hch@lst.de>

Currently xfs has a per-bdev (and XFS filesystem uses up to three underlying
block devices) object that Al complained about loudly that it should be gone.

But for that to happen without rewriting half of XFS (and changing layering
in a way that we don't really want) we need an additional fs-private variable
in struct block_device.

22 years ago[PATCH] tmpfs readdir does not update dir atime
Andrew Morton [Mon, 19 Jan 2004 13:12:47 +0000 (05:12 -0800)]
[PATCH] tmpfs readdir does not update dir atime

From: mark@borgerding.net

Access times of tmpfs dirs do not get updated on readdir.  This can cause
empty dirs to get tmpwatch'd too early, b/c atime never changes even though
the dir is in use.

22 years ago[PATCH] Fix statically declare FIXMAPs
Andrew Morton [Mon, 19 Jan 2004 13:12:38 +0000 (05:12 -0800)]
[PATCH] Fix statically declare FIXMAPs

From: Anton Blanchard <anton@samba.org>, me.

Two uses of the FIXADDR_USER_START/END things are problematic:

a) ppc64 wants the FIXADDR area to be at a different location on 32bit and
   64bit tasks.  On 32bit we want it just below 4GB but that gets in the way
   on 64bit.  By putting both right at -(some small amount) we can also use
   some ppc tricks to get there real quickly (single instruction branches).

b) We assume that FIXADDR_USER_START and FIXADDR_USER_END are constants.
   This breaks the UML build.

Fixes:

- Call it all gate. We currently have half the stuff called fixmap and
  the other gate, lets be consistent.

- Create in_gate_area(), get_gate_vma() and use it in both places

- Provide defaults for in_gate_area/get_gate_vma, allowing an arch to
  override it. (I used CONFIG_* but am open to better suggestions here)

- The /proc/pid/maps vma wasnt marked readable but the get_user
  vma was. That sounds suspicious to me, they are now both the same VMA
  and so have the same (read,exec) permissions

22 years ago[PATCH] Alpha: make prefetch_spinlock() a no-op on UP
Andrew Morton [Mon, 19 Jan 2004 13:12:29 +0000 (05:12 -0800)]
[PATCH] Alpha: make prefetch_spinlock() a no-op on UP

From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>

When CONFIG_SMP is not set, spinlock_t is an empty structure, so its
address has arbitrary alignment.

The prefetch instructions with unaligned address don't have visible side
effects on alphas with SRM console (except performance degradation) - the
PALcode handles unaligned traps caused by prefetch instructions internally.
However, on old AlphaBIOS/MILO boxes unaligned prefetch leads to unhandled
alignment trap and kernel panic.

22 years ago[PATCH] suspend/resume support for PIT
Andrew Morton [Mon, 19 Jan 2004 13:12:20 +0000 (05:12 -0800)]
[PATCH] suspend/resume support for PIT

From: Pavel Machek <pavel@ucw.cz>

This adds proper suspend/resume support for PIT.  That means that clock are
actually correct after suspend/resume.

22 years ago[PATCH] fix up CPU detection in p4-clockmod
Andrew Morton [Mon, 19 Jan 2004 13:12:11 +0000 (05:12 -0800)]
[PATCH] fix up CPU detection in p4-clockmod

From: Dominik Brodowski <linux@dominikbrodowski.de>

Too many users use the p4-clockmod cpufreq driver instead of the more
advanced speedstep-centrino, speedstep-ich or even acpi drivers.  All of
the latter (usually) provide voltage scaling, while the p4-clockmod driver
only offers a variant of frequency scaling.  So, warn users if they try out
this driver instead.

Also, instead of using a local copy, use the speedstep_lib infrastructure
for detecting the processor speed.  Adding the Pentium-M get_frequency
function to that module only costs about 200 bytes in object size.

22 years ago[PATCH] kconfig: fix menuconfig exit code
Andrew Morton [Mon, 19 Jan 2004 13:12:01 +0000 (05:12 -0800)]
[PATCH] kconfig: fix menuconfig exit code

From: Sam Ravnborg <sam@ravnborg.org>

If the user decides to not write the config file out, menuconfig exits with
a non-zero code.  This causes make to allege that there was an error.

22 years ago[PATCH] revert lazy readahead
Andrew Morton [Mon, 19 Jan 2004 13:11:52 +0000 (05:11 -0800)]
[PATCH] revert lazy readahead

From: Trond Myklebust <trond.myklebust@fys.uio.no>

The following reversion is what fixes my regression.  That puts the
sequential read numbers back to the 2.6.0 values of ~140MB/sec (from the
current 2.6.1 values of 14MB/second)...

We were triggering I/O of the `ahead' when we hit the last page in the
`current' window.  That's bad because it gives no pipelining at all.

So go back to full pipelining.

It's not at all clear why this change made a 10x difference in NFS
throughput.

22 years ago[PATCH] readahead part-backout
Andrew Morton [Mon, 19 Jan 2004 13:11:43 +0000 (05:11 -0800)]
[PATCH] readahead part-backout

From: Ram Pai <linuxram@us.ibm.com>

Remove the up-front readahead code from the core pagecache read
function: it's really bad for large reads.

22 years ago[PATCH] vmscan: initialize zone->{prev,temp}_priority
Andrew Morton [Mon, 19 Jan 2004 13:11:34 +0000 (05:11 -0800)]
[PATCH] vmscan: initialize zone->{prev,temp}_priority

From: Nikita Danilov <Nikita@Namesys.COM>

This patch initializes zone->{prev,temp}_priority to DEF_PRIORITY.
Otherwise they are left zeroed, and first run of VM scanner thinks that
zones are under enormous stress.

22 years ago[PATCH] bio documentation update
Andrew Morton [Mon, 19 Jan 2004 13:11:24 +0000 (05:11 -0800)]
[PATCH] bio documentation update

From: Jens Axboe <axboe@suse.de>

Although it was an established part of the current bio api, it was never
documented that bio_add_page() and merge_bvec_fn() must accept to add at
least one page to an empty bio.

22 years ago[PATCH] Kconfig: use range for NR_CPUS
Andrew Morton [Mon, 19 Jan 2004 13:11:15 +0000 (05:11 -0800)]
[PATCH] Kconfig: use range for NR_CPUS

From: Adrian Bunk <bunk@fs.tum.de>

The 2.6 Kconfig language allows to set the range for integer questions.

The patch below adds a range line on all architectures that have a
NR_CPUS question except ia64.

The help text on ia64 didn't suggest any values. Could someone tell the
correct values for ia64 (and if it's only a minimum value of 2)?

22 years ago[PATCH] Fix Documentation/SubmittingPatches to use -p
Andrew Morton [Mon, 19 Jan 2004 13:11:05 +0000 (05:11 -0800)]
[PATCH] Fix Documentation/SubmittingPatches to use -p

From: "Martin J. Bligh" <mbligh@aracnet.com>

Patches are a damned sight easier to read if people use the '-p'
option to diff ... this generates output that looks like this:

 "@@ -323,6 +323,7 @@ void put_dirty_page(struct task_struct *"

for each block. This patch simply adds that to the documentation
file, in the hope of steering new users in the right direction.

22 years ago[PATCH] ppc32: OF bootwrapper support
Andrew Morton [Mon, 19 Jan 2004 13:10:56 +0000 (05:10 -0800)]
[PATCH] ppc32: OF bootwrapper support

From: Tom Rini <trini@kernel.crashing.org>

Re-add support to the bootwrapper for talking with OF on PReP machines.
This fixes memory detection of some machines.

22 years ago[PATCH] Relocation overflow with modules on Alpha
Andrew Morton [Mon, 19 Jan 2004 13:10:48 +0000 (05:10 -0800)]
[PATCH] Relocation overflow with modules on Alpha

From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>

Larger modules fail to load with the message "Relocation overflow vs
section 17", or some other section number.

This failure happens with GPRELHIGH relocation, which is *signed* short,
but relocation overflow check in module.c doesn't take into account the
sign extension.

22 years ago[PATCH] Identify RADEON Yd in radeonfb
Andrew Morton [Mon, 19 Jan 2004 13:10:39 +0000 (05:10 -0800)]
[PATCH] Identify RADEON Yd in radeonfb

From: Bernardo Innocenti <bernie@develer.com>

Identify a recent Radeon video card in radeonfb.

22 years ago[PATCH] Simplify node/zone field in page->flags
Andrew Morton [Mon, 19 Jan 2004 13:10:30 +0000 (05:10 -0800)]
[PATCH] Simplify node/zone field in page->flags

From: Matthew Dobson <colpatch@us.ibm.com>

This patch does the following:
1) Rename ZONE_SHIFT to NODEZONE_SHIFT.  This value is the number
    of bits to shift page->flags to get the node/zone part of the
    bitfield.
2) Add a macro called NODEZONE which takes a node number and zone number
    and returns a 'nodezone', a bitshifted composition of the two.
3) Create page_zonenum & page_nodenum, inline functions to return the
    node/zone a page belongs to with some simple bit twiddling, no
    pointer dereferences necessary.
4) Modify page_zone() and set_page_zone() to use the new NODEZONE_SHIFT.
5) Modify memmap_init_zone() & free_area_init_core() to use the new
    NODEZONE macros.
6) Fix up some comments to reflect the above changes.

22 years ago[PATCH] RTC leaks.
Andrew Morton [Mon, 19 Jan 2004 13:10:21 +0000 (05:10 -0800)]
[PATCH] RTC leaks.

From: Russell King, Tom Rini, Dave Jones

As plugged in 2.4 recently.

Fix some leakage of uninitialised memory to userspace via rtc reads.

22 years ago[PATCH] clarify meaning of bio fields in the end_io function
Andrew Morton [Mon, 19 Jan 2004 13:10:11 +0000 (05:10 -0800)]
[PATCH] clarify meaning of bio fields in the end_io function

From: Christophe Saout <christophe@saout.de>

The intent of these are to clarify the meaning of the bio fields in the
bi_end_io function (since we are already mostly there).  After these small
modifications bio->bi_idx and the corresponding bio_iovec(bio)->bv_offset
point to the beginning of the completed data, together with the nr_bytes
argument you know exactly what data was finished, e.g.  when you can't
track it otherwise (or it would be unnecessary expensive).  Apart from that
it's a nice-to-have.

The first mini-patch moves the update of bio_iovec(bio)->bv_offset and
->bv_len after the call of bi_end_io where bi_idx gets updated so they get
updated together.  Ok with Jens.

The second part of the patch modifies the multwrite hack in PIO non-
taskfile ide disk code.  It modifies the bi_idx field to walk the bios and
doesn't reset it correctly before ending the request.  The patch uses the
segment counter in the request field to correctly restore the bi_idx field
before ending the request.  Can't possibly break anything since it's
working on the local request copy ("scratchpad") anyway.  Also does this in
legacy/pdc4030.c (similar code).  The code modified here is going to die
anyway any trying to fix it would be too invasive.  Ok with Bartlomiej.

22 years ago[PATCH] Optimize proc_pid_lookup
Andrew Morton [Mon, 19 Jan 2004 13:10:03 +0000 (05:10 -0800)]
[PATCH] Optimize proc_pid_lookup

From: Manfred Spraul <manfred@colorfullife.com>

readdir on /proc has two problems: reading all entries is O(N^2), and
entries are overlooked if tasks die in the middle of readdir: the readdir
implementation remembers the offset into the task list, and if a task
(actually: process) that was returned by previous readdir calls exits, then
a random entry is dropped.

The attached patch fixes the O(N^2) by using f_version to store the pid of
the task that should be returned next.  This speeds up reading /proc to
O(N).  Additionally, it mitigates the effects of dying tasks: Tasks are
skipped only if the task whose pid is stored in f_version exits, all other
task deaths have no effect.  Unfortunately the code has a bad worst case
behavior: if the targeted task exits and a new task with the same pid is
created, then all entries in the task list between old and new position are
dropped.  This should be rare.

22 years ago[PATCH] tridentfb documentation fix
Andrew Morton [Mon, 19 Jan 2004 13:09:54 +0000 (05:09 -0800)]
[PATCH] tridentfb documentation fix

From: Bram Stolk <bram@sara.nl>

Fixes for Documentation/fb/modedb.txt and Documentation/fb/tridentfb.txt

22 years ago[PATCH] Remove redundant code in workqueue.c
Andrew Morton [Mon, 19 Jan 2004 13:09:46 +0000 (05:09 -0800)]
[PATCH] Remove redundant code in workqueue.c

From: Rusty Russell <rusty@rustcorp.com.au>

It turns out that run_workqueue never has signal_pending(), since setting
the handler to SIG_IGN means "don't make zombies, I'm ignoring them".  Fix
the comment, don't allow the signal, and remove the unused waitpid loop.

This also allows simpler conversion of workueues to the kthread mechanism,
which uses signals to indicate it's time to stop.

22 years ago[PATCH] OSS dmabuf deadlock fix
Andrew Morton [Mon, 19 Jan 2004 13:09:37 +0000 (05:09 -0800)]
[PATCH] OSS dmabuf deadlock fix

Spotted by From: Christian Borntraeger <kernel@borntraeger.net>

dma_reset_input() takes dmap->lock, so call it without that lock held.

22 years ago[PATCH] allow SGI IOC4 chipset support
Andrew Morton [Mon, 19 Jan 2004 13:09:28 +0000 (05:09 -0800)]
[PATCH] allow SGI IOC4 chipset support

From: jbarnes@sgi.com (Jesse Barnes)

The 'depends' directive for SGI IOC4 support is too restrictive.  Just make
it depend on ia64.

22 years ago[PATCH] do_no_page leak fix
Andrew Morton [Mon, 19 Jan 2004 13:09:20 +0000 (05:09 -0800)]
[PATCH] do_no_page leak fix

We leak a page in do_no_page() if pte_chain_alloc fails.

22 years ago[BRIDGE]: Fix br_netfilter.c build with CONFIG_SYSCTL disabled
Luiz Capitulino [Mon, 19 Jan 2004 13:09:17 +0000 (05:09 -0800)]
[BRIDGE]: Fix br_netfilter.c build with CONFIG_SYSCTL disabled

22 years ago[PATCH] Eicon isdn driver alloc buffer size fix
Andrew Morton [Mon, 19 Jan 2004 13:09:11 +0000 (05:09 -0800)]
[PATCH] Eicon isdn driver alloc buffer size fix

From: Armin <armin@melware.de>

- Allocate buffer of correct size.

- Fix possible buffer overflow.

- Use correct debug level for double registered application.

22 years ago[PATCH] Eicon isdn driver hardware access fix
Andrew Morton [Mon, 19 Jan 2004 13:09:02 +0000 (05:09 -0800)]
[PATCH] Eicon isdn driver hardware access fix

From: Armin <armin@melware.de>

It fixes access to hardware memory of wrong size and therefore removes a
compiler warning.  The hardware trap variable must be read as 32bit value.

22 years ago[PATCH] remove old Eicon isdn driver
Andrew Morton [Mon, 19 Jan 2004 13:08:53 +0000 (05:08 -0800)]
[PATCH] remove old Eicon isdn driver

From: Armin <armin@melware.de>

The new driver for Eicon ISDN cards is in drivers/isdn/hardware/eicon.

The old driver is still in drivers/isdn/eicon and I would like to remove
this old driver from the 2.6 kernels.

The attached patch removes the references to this driver, but in addition
the directory drivers/isdn/eicon should be removed.

22 years ago[PATCH] jbd: start_this_handle() return value fix
Andrew Morton [Mon, 19 Jan 2004 13:08:44 +0000 (05:08 -0800)]
[PATCH] jbd: start_this_handle() return value fix

From: Alex Tomas <alex@clusterfs.com>

start_this_handle() returns 0 always.  because of this journal_start() may
return handle with h_transaction = NULL

22 years ago[PATCH] Remove Intel check in i386 HPET code
Andrew Morton [Mon, 19 Jan 2004 13:08:35 +0000 (05:08 -0800)]
[PATCH] Remove Intel check in i386 HPET code

From: Andi Kleen <ak@muc.de>

The i386 HPET time setup code would explicitely check for the Intel vendor
ID.  That is bogus because other chipset vendors (like AMD) are
implementing HPET too.

Remove this check.

22 years ago[PATCH] module removal race fix
Andrew Morton [Mon, 19 Jan 2004 13:08:26 +0000 (05:08 -0800)]
[PATCH] module removal race fix

From: Rusty Russell <rusty@au1.ibm.com>

Vatsa spotted this: you can remove a module while it's being initialized,
and that will be bad.  Hole was opened when I dropped the sem around the
init routine (which can probe for other modules).

22 years ago[PATCH] set_cpus_allowed locking
Andrew Morton [Mon, 19 Jan 2004 13:08:17 +0000 (05:08 -0800)]
[PATCH] set_cpus_allowed locking

From: Nick Piggin <piggin@cyberone.com.au>,
      Rusty Russell <rusty@rustcorp.com.au>

Prevents a race where sys_sched_setaffinity can race with
sched_migrate_task and cause sched_migrate_task to restore an invalid
cpu mask.

22 years ago[PATCH] do_timer_gettime() cleanup
Andrew Morton [Mon, 19 Jan 2004 13:08:08 +0000 (05:08 -0800)]
[PATCH] do_timer_gettime() cleanup

- Make it static

- It is larger and has two callsites: uninline it.

22 years ago[PATCH] Fix weird placement of inline
Andrew Morton [Mon, 19 Jan 2004 13:07:59 +0000 (05:07 -0800)]
[PATCH] Fix weird placement of inline

From: Jesper Juhl <juhl-lkml@dif.dk>

I'm compiling 2.6.1-rc1-mm1 with "-W -Wall" to look for potential problems
and minor stuff to clean up.

One of the things that enabling the extra warnings turn up is errors about
the placement of the inline keyword.

22 years ago[PATCH] ext2: fix build when EXT2_DEBUG is set
Andrew Morton [Mon, 19 Jan 2004 13:07:51 +0000 (05:07 -0800)]
[PATCH] ext2: fix build when EXT2_DEBUG is set

Fix warnings and build errors under EXT2_DEBUG.

22 years ago[SPARC64]: Update defconfig.
David S. Miller [Mon, 19 Jan 2004 13:07:46 +0000 (05:07 -0800)]
[SPARC64]: Update defconfig.

22 years ago[PATCH] Fix softcursor
Andrew Morton [Mon, 19 Jan 2004 13:07:42 +0000 (05:07 -0800)]
[PATCH] Fix softcursor

From: Pavel Machek <pavel@ucw.cz>

Softcursor was broken for half of 2.5 series.  This fixes it by first
hiding cursor _then_ hiding softcursor.  Very simple mistake...

22 years ago[PATCH] Remove x86_64 leftover SIMNOW code
Andrew Morton [Mon, 19 Jan 2004 13:07:33 +0000 (05:07 -0800)]
[PATCH] Remove x86_64 leftover SIMNOW code

From: Pavel Machek <pavel@ucw.cz>

This is obsolete x86-64 code.

22 years ago[PATCH] ext3: s_next_generation fixes
Andrew Morton [Mon, 19 Jan 2004 13:07:24 +0000 (05:07 -0800)]
[PATCH] ext3: s_next_generation fixes

- Add missing locking around s_next_generation increment

- Correctly set the initial value of s_next_generation.

22 years ago[PATCH] ext2: s_next_generation locking
Andrew Morton [Mon, 19 Jan 2004 13:07:14 +0000 (05:07 -0800)]
[PATCH] ext2: s_next_generation locking

There is no locking around the increment of this per-filesystem counter.
Create a new lock, just for this.

22 years ago[PATCH] ext2_new_inode nanocleanup
Andrew Morton [Mon, 19 Jan 2004 13:07:05 +0000 (05:07 -0800)]
[PATCH] ext2_new_inode nanocleanup

We've cached EXT2_SB(sb) in local variable `sbi'.  Use it.

22 years ago[PATCH] swsusp/sleep documentation update
Andrew Morton [Mon, 19 Jan 2004 13:06:56 +0000 (05:06 -0800)]
[PATCH] swsusp/sleep documentation update

From: Pavel Machek <pavel@ucw.cz>

This kills outdated docs, and adds some helpful docs about video issues
with suspend.

22 years ago[PATCH] s3 sleep: Kill obsolete debugging code
Andrew Morton [Mon, 19 Jan 2004 13:06:47 +0000 (05:06 -0800)]
[PATCH] s3 sleep: Kill obsolete debugging code

From: Pavel Machek <pavel@ucw.cz>

wakeup.S includes some rather nasty, and unneccessary debugging code.  (It
used to try to flush caches/tlbs; now its totally useless).

22 years ago[PATCH] MAINTAINERS update
Andrew Morton [Mon, 19 Jan 2004 13:06:37 +0000 (05:06 -0800)]
[PATCH] MAINTAINERS update

From: "H. Peter Anvin" <hpa@zytor.com>

MAINTAINERS update

22 years ago[PATCH] fix page counting for compound pages
Andrew Morton [Mon, 19 Jan 2004 13:06:28 +0000 (05:06 -0800)]
[PATCH] fix page counting for compound pages

From: "Bryan O'Sullivan" <bos@serpentine.com>

For compound pages, page_count needs to be sure to reference the head page.

This affects code that plays tricks with memory mappings into userspace,
which would mostly involve video drivers.

22 years ago[PATCH] cpu_sibling_map fix
Andrew Morton [Mon, 19 Jan 2004 13:06:19 +0000 (05:06 -0800)]
[PATCH] cpu_sibling_map fix

From: "Nakajima, Jun" <jun.nakajima@intel.com>

Restore the HT detection algorithm.  Make the processor package mapping
subarch-specific so that it can reflect the APIC ID info provided by BIOS
if required.

22 years agoMerge http://linux-lksctp.bkbits.net/lksctp-2.5.work
David S. Miller [Mon, 19 Jan 2004 13:05:07 +0000 (05:05 -0800)]
Merge http://linux-lksctp.bkbits.net/lksctp-2.5.work
into nuts.ninka.net:/disk1/davem/BK/net-2.6

22 years ago[NET]: Fix dst_gc_timer initialization.
Alex Pankratov [Mon, 19 Jan 2004 13:03:32 +0000 (05:03 -0800)]
[NET]: Fix dst_gc_timer initialization.

22 years ago[IPV6]: Fix array size and missing sentinal in sysctl table of addrconf.c
Hideaki Yoshifuji [Mon, 19 Jan 2004 13:02:20 +0000 (05:02 -0800)]
[IPV6]: Fix array size and missing sentinal in sysctl table of addrconf.c