]> git.hungrycats.org Git - linux/log
linux
22 years agoMerge redhat.com:/spare/repo/netdev-2.6/sis900
Jeff Garzik [Thu, 27 May 2004 12:04:23 +0000 (08:04 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/sis900
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/pcnet32
Jeff Garzik [Thu, 27 May 2004 12:03:05 +0000 (08:03 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/pcnet32
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/misc
Jeff Garzik [Thu, 27 May 2004 12:01:48 +0000 (08:01 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/misc
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/farsync
Jeff Garzik [Thu, 27 May 2004 12:00:32 +0000 (08:00 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/farsync
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/emac
Jeff Garzik [Thu, 27 May 2004 11:59:32 +0000 (07:59 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/emac
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/e1000
Jeff Garzik [Thu, 27 May 2004 11:58:11 +0000 (07:58 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/e1000
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/acenic
Jeff Garzik [Thu, 27 May 2004 11:57:09 +0000 (07:57 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/acenic
into redhat.com:/spare/repo/net-drivers-2.6

22 years ago[PATCH] net/sk98lin: correct buggy VPD in ASUS MB
Andrew Morton [Thu, 27 May 2004 11:33:27 +0000 (07:33 -0400)]
[PATCH] net/sk98lin: correct buggy VPD in ASUS MB

From: Jeff Lightfoot <jeffml@pobox.com>

The following patch to net/sk98lin/skvpd.c was put together by Marc Bouget,
mbouget at club-internet.fr.

This patch works around a corrupt EEPROM (VPD?) in the ASUS K8V Deluxe SE
motherboard ethernet chipset and allows the network driver to work
correctly.  We have written to ASUS and the sk98lin maintainers but have
not heard anything back.

22 years agosb1000 and wan/sealevel net drivers need to include linux/init.h.
Christoph Hellwig [Thu, 27 May 2004 11:15:11 +0000 (07:15 -0400)]
sb1000 and wan/sealevel net drivers need to include linux/init.h.

22 years agoAdd new IBM PPC4xx EMAC net driver.
Matt Porter [Thu, 27 May 2004 11:12:36 +0000 (07:12 -0400)]
Add new IBM PPC4xx EMAC net driver.

22 years ago[PATCH] pcnet32: fix for patch 8 le16_to_cpu
Don Fry [Thu, 27 May 2004 10:07:05 +0000 (06:07 -0400)]
[PATCH] pcnet32: fix for patch 8 le16_to_cpu

Joe Perches pointed out an error in patch 8.  As I looked at the results
closer 3 out of 4 looked correct.  This fixes the output for the last
case.  Output is now the same on IA32 and PPC64 hardware.

22 years ago[netdrvr tulip] new pci id
Per Olofsson [Thu, 27 May 2004 10:05:00 +0000 (06:05 -0400)]
[netdrvr tulip] new pci id

22 years ago[netdrvr b44] always restore PCI config on resume
Stefan Rompf [Thu, 27 May 2004 09:51:22 +0000 (05:51 -0400)]
[netdrvr b44] always restore PCI config on resume

the Broadcom BCM4401 driver restores pci configuration on resume only when the
device is up. On my notebook, this leads to a failure when the device is down
during the S3 cycle. Short solution for now: Always restore pci config.

22 years ago[PATCH] e1000 7/7: Support for ethtool msglevel based error
Ganesh Venkatesan [Thu, 27 May 2004 09:44:06 +0000 (05:44 -0400)]
[PATCH] e1000 7/7: Support for ethtool msglevel based error

Also included are driver version update and change logs

22 years ago[PATCH] e1000 6/7: ethtool_ops support
Ganesh Venkatesan [Thu, 27 May 2004 09:43:57 +0000 (05:43 -0400)]
[PATCH] e1000 6/7: ethtool_ops support

22 years ago[PATCH] e1000 4/7: Estimate number of tx descriptors required
Ganesh Venkatesan [Thu, 27 May 2004 09:43:49 +0000 (05:43 -0400)]
[PATCH] e1000 4/7: Estimate number of tx descriptors required

Reduce scope of tx_lock

22 years ago[PATCH] e1000 3/7: Determine link status correctly while using
Ganesh Venkatesan [Thu, 27 May 2004 09:43:40 +0000 (05:43 -0400)]
[PATCH] e1000 3/7: Determine link status correctly while using

22 years ago[PATCH] e1000 2/7: Workaround for link LED staying ON even when
Ganesh Venkatesan [Thu, 27 May 2004 09:43:32 +0000 (05:43 -0400)]
[PATCH] e1000 2/7: Workaround for link LED staying ON even when

22 years ago[PATCH] e1000 1/7: Clear Auto-MDIX when the link is forced to
Ganesh Venkatesan [Thu, 27 May 2004 09:43:24 +0000 (05:43 -0400)]
[PATCH] e1000 1/7: Clear Auto-MDIX when the link is forced to

22 years ago[wireless airo] Add RFMON support for MPI and latest Cisco
Javier Achirica [Thu, 27 May 2004 09:33:57 +0000 (05:33 -0400)]
[wireless airo] Add RFMON support for MPI and latest Cisco

22 years ago[netdrvr wan] farsync driver update
Kevin Curtis [Thu, 27 May 2004 09:24:17 +0000 (05:24 -0400)]
[netdrvr wan] farsync driver update

1) Provides support for new FarSync cards T1U, T2U, T4U and TE1
2) Provides support for an E1 interface
3) Provides support for a variant of X.21 that allows transmit and
receive clocks
4) Provide a raw socket interface directly to the data from the line.
5) Improves performance with less time in interrupts and more in BH's

22 years ago[PATCH] pcnet32: avoid timeout with tcpdump
Don Fry [Thu, 27 May 2004 09:12:31 +0000 (05:12 -0400)]
[PATCH] pcnet32: avoid timeout with tcpdump

This patch avoids a timeout when entering/exiting promiscuous mode with
tcpdump.  All pending xmit operations are flushed and if the queue is
full the timeout will occur.  The wake_queue avoids that timeout.
Tested ppc64 and ia32.

22 years ago[PATCH] pcnet32: correct printk for big-endian arch
Don Fry [Thu, 27 May 2004 09:12:23 +0000 (05:12 -0400)]
[PATCH] pcnet32: correct printk for big-endian arch

This patch corrects a printk when executed on a big-endian system.  Tested
ppc64.

22 years ago[PATCH] pcnet32: fix bogus carrier errors with 79c973
Don Fry [Thu, 27 May 2004 09:12:15 +0000 (05:12 -0400)]
[PATCH] pcnet32: fix bogus carrier errors with 79c973

The 79C973 version of the pcnet32 chipset would report all transmit
operations as being sent with a carrier error.  The root cause was
writing reserved bits in bcr33.  It caused the 973 to report xmit
as errors, and caused 975 and 976 to hard hang when reading bcr34.

My thanks to Bruce Penrod for his help in finding the cause of this
bug.

22 years ago[PATCH] pcnet32: limit frames received during interrupt.
Don Fry [Thu, 27 May 2004 09:12:06 +0000 (05:12 -0400)]
[PATCH] pcnet32: limit frames received during interrupt.

The current code will allow an infinite number of frames to be received
during one interrupt.  Tested ia32 and ppc64.

22 years ago[PATCH] pcnet32: remove timer and complexity.
Don Fry [Thu, 27 May 2004 09:04:02 +0000 (05:04 -0400)]
[PATCH] pcnet32: remove timer and complexity.

This removes the timer I recently added, and the 'ltint' interrupt
mitigation from the 79C971 and 79C972. It did not improve performance,
added complexity, and was a bad idea in hind sight.

22 years ago[PATCH] pcnet32: fix boundary comparison bug.
Don Fry [Thu, 27 May 2004 09:03:48 +0000 (05:03 -0400)]
[PATCH] pcnet32: fix boundary comparison bug.

This patch fixes a boundary condition.  It is possible to get an
interrupt and have the transmit queue completely full.  Without this
the driver will leak skb's and pci maps (if the arch supports them).

22 years ago[PATCH] pcnet32: correct 79C976 variant string.
Don Fry [Thu, 27 May 2004 09:03:35 +0000 (05:03 -0400)]
[PATCH] pcnet32: correct 79C976 variant string.

This patch correctly identifies the 79C976 as a PCnet/PRO not a FAST III.

22 years ago[PATCH] pcnet32: avoid hard hang with some chip variants.
Don Fry [Thu, 27 May 2004 09:03:22 +0000 (05:03 -0400)]
[PATCH] pcnet32: avoid hard hang with some chip variants.

This patch fixes a hard hang with 79C975 and 79C976 chip variants when
dumping BCR register #34.

22 years ago[PATCH] pcnet32: add static to two routines.
Don Fry [Thu, 27 May 2004 09:03:08 +0000 (05:03 -0400)]
[PATCH] pcnet32: add static to two routines.

This patch adds 'static' to two routines.  The prototype has static but
the instantiation did not.

22 years ago[PATCH] Fix incorrect but unused define in net_sk_mca.h
Rusty Russell [Thu, 27 May 2004 08:54:22 +0000 (04:54 -0400)]
[PATCH] Fix incorrect but unused define in net_sk_mca.h

 From:  Jean Delvare <khali@linux-fr.org>

22 years ago[PATCH] Update Alfred Arnold contact info
Rusty Russell [Thu, 27 May 2004 08:54:08 +0000 (04:54 -0400)]
[PATCH] Update Alfred Arnold contact info

 From:  Jean Delvare <khali@linux-fr.org>

22 years ago[PATCH] Fix 8139too ring size for dreamcast/embedded
Paul Mundt [Thu, 27 May 2004 08:53:44 +0000 (04:53 -0400)]
[PATCH] Fix 8139too ring size for dreamcast/embedded

Presently 2.6.6 backs out the CONFIG_8139_RXBUF_IDX in favor of using a
hardcoded 8139_RXBUF_IDX (again). This seems to have been done due to
some issues occuring with 8139_RXBUF_IDX =3D=3D 3, however (as the Kconfig
pointed out), we still need 8139_RXBUF_IDX =3D=3D 1 in the CONFIG_SH_DREAMC=
AST
case.

The patch which made this change can be seen at:

{MIME-mangled URL}

Before that, CONFIG_8139_RXBUF_IDX was set to 1 both in the
CONFIG_SH_DREAMCAST and CONFIG_EMBEDDED cases. This patch adds that
back into the current 8139too.

22 years ago[PATCH] fix net/tulip/winbond-840.c warning.
Luiz Capitulino [Thu, 27 May 2004 08:52:07 +0000 (04:52 -0400)]
[PATCH] fix net/tulip/winbond-840.c warning.

22 years ago[PATCH] nfsd: deleting symlinks over nfs causes oops on unmount
Andrew Morton [Thu, 27 May 2004 00:36:46 +0000 (17:36 -0700)]
[PATCH] nfsd: deleting symlinks over nfs causes oops on unmount

From: "J. Bruce Fields" <bfields@fieldses.org>
From: Neil Brown <neilb@cse.unsw.edu.au>

This fixes an oops on unmount (failure of the assertation at
fs/ext3/super.c:421).  Probably reproduceable just by creating and deleting a
single symlink over nfs and then unmounting the exported filesystem.

Recent change to fh_compose means dentry reference is *not* consumed, and so
usually has to be explicitly dput afterwards.  One usage was missed in that
patch, so this dput is needed.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] Print backtrace for bad vfree()
Andrew Morton [Thu, 27 May 2004 00:36:36 +0000 (17:36 -0700)]
[PATCH] Print backtrace for bad vfree()

From: Andi Kleen <ak@suse.de>

Only the printk alone is not too useful, print the backtrace too.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] swsusp documentation updates
Andrew Morton [Thu, 27 May 2004 00:36:25 +0000 (17:36 -0700)]
[PATCH] swsusp documentation updates

From: Pavel Machek <pavel@ucw.cz>

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] CPU Hotplug: restore Idle task's priority during CPU_DEAD notification
Andrew Morton [Thu, 27 May 2004 00:36:14 +0000 (17:36 -0700)]
[PATCH] CPU Hotplug: restore Idle task's priority during CPU_DEAD notification

From: Srivatsa Vaddagiri <vatsa@in.ibm.com>

Fix a CPU Hotplug problem wherein idle task's "->prio" value is not
restored to MAX_PRIO during CPU_DEAD handling.  Without this patch, once a
CPU is offlined and then later onlined, it becomes "more or less" useless
(does not run any task other than its idle task!)

Ingo said:

  The __setscheduler() call is (technically) incorrect because in the
  SCHED_NORMAL case the prio should be zero.  So it's a bit cleaner to set up
  the static priority to MAX_PRIO and then revert the policy to SCHED_NORMAL
  via __setscheduler().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] remove message: POSIX conformance testing by UNIFIX
Andrew Morton [Thu, 27 May 2004 00:36:04 +0000 (17:36 -0700)]
[PATCH] remove message: POSIX conformance testing by UNIFIX

From: "Randy.Dunlap" <rddunlap@osdl.org>

Remove the outdated "POSIX conformance testing by UNIFIX" message.

There is a general desire to reduce the quantity of noisy and/or
outdated kernel boot-time messages...

Suggested by Andi Kleen.

Ulrich's (old) comments:
http://www.nsa.gov/selinux/list-archive/0107/0525.cfm

Certifying Linux (Linux Journal):
http://www.linuxjournal.com/article.php?sid=0131

Agreed by Tim Bird, no dissenters that I heard of:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108362954024749&w=2

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] wdt.c warning fix
Andrew Morton [Thu, 27 May 2004 00:35:53 +0000 (17:35 -0700)]
[PATCH] wdt.c warning fix

drivers/char/watchdog/wdt.c: In function `wdt_init':
drivers/char/watchdog/wdt.c:638: warning: label `outrbt' defined but not used

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] Fix the setting of file->f_ra on block-special files
Andrew Morton [Thu, 27 May 2004 00:35:42 +0000 (17:35 -0700)]
[PATCH] Fix the setting of file->f_ra on block-special files

We need to set file->f_ra _after_ calling blkdev_open(), when inode->i_mapping
points at the right thing.  And we need to get it from
inode->i_mapping->host->i_mapping too, which represents the underlying device.

Also, don't test for null file->f_mapping in the O_DIRECT checks.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] Set d_bucket correctly for anonymous dentries
Andrew Morton [Thu, 27 May 2004 00:35:31 +0000 (17:35 -0700)]
[PATCH] Set d_bucket correctly for anonymous dentries

From: Neil Brown <neilb@cse.unsw.edu.au>

In researching the oopses reported in bug #2761, Neil came up with:

I have found one problem, but it isn't particularly new and I cannot
 see how it would be related.

When d_alloc_anon creates an anonymous dentry, it is put on a special hash
chain for anonymous dentries (sb->s_anon), but d_bucket is set to

   d_hash(parent, name_hash)

If, when it is eventually moved to a proper name, that hash value is the same
as the final hash value, it will not be moved to the right bucket, and so it
not be accessible by name.  This patch should fix it.

anonymous dentries have their own private hash "bucket" (sb->s_anon) and so
d_bucket should be set to a unique (impossible) address, else d_move will
get confused.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] posix locks oops fix
Andrew Morton [Thu, 27 May 2004 00:35:21 +0000 (17:35 -0700)]
[PATCH] posix locks oops fix

From: Andreas Gruenbacher <agruen@suse.de>

There is a race between unshare_files() and the following steal_locks().
As a consequence, steal_locks() may steal some additional FL_POSIX locks
that don't belong to the current thread.  This triggers a BUG in
locks_remove_flock().

In detail, the current thread shares its files struct with other threads.
This causes unshare_files() to associate the current thread with a copy of
its files_struct.  The copy shares all file objects with the original files
struct.  In the time between unshare_files() and steal_locks(), another
thread creates a new file and a FL_POSIX lock on it.  The current thread
gets into steal_locks() and takes over all FL_POSIX locks that refer to the
previous files_struct, including the new lock.  We do
put_files_struct(original files_struct).  This causes the file handle to
the new file to be closed.  We get into locks_remove_posix() and miss the
lock, because its fl_owner field now refers to the new files_struct.
Finally we get into locks_remove_flock(), and stumble upon the lock.

While looking into this bug report I gathered the following data with a
SUSE kernel (oops and LKCD dump from Chris):

kernel BUG at fs/locks.c:1736!
invalid operand: 0000 [#1]
SMP
CPU:    0
EIP:    0060:[<c01844fb>]    Tainted: G  U
EFLAGS: 00010246   (2.6.5-0-testing)
EIP is at locks_remove_flock+0x8b/0x130
eax: f7b89998   ebx: f61df3fc   ecx: f61df354   edx: 00000000
esi: f61df354   edi: f6702b80   ebp: f6179c24   esp: f6179c08
ds: 007b   es: 007b   ss: 0068
Process owcimomd (pid: 1713, threadinfo=f6178000 task=f66d0d60)
Stack: c1e1fdac c1e1fdac f7fe83c0 00000296 f6702b80 f7fe87c0 f61df354 f6179c3c
       c016ce00 f61ddadc f6702b80 00000000 f6703b00 f6179c54 c0168b1f c0000000
       0000026f 00000012 f6703b00 f6179c6c c0124ba7 00000001 f6179e5c f6179d88
Call Trace:
 [<c016ce00>] __fput+0x30/0x120
 [<c0168b1f>] filp_close+0x4f/0x90
 [<c0124ba7>] put_files_struct+0x67/0xc0
 [<c019d285>] load_elf_binary+0x3f5/0x1596
 [<c018a5af>] update_atime+0x9f/0xc0
 [<c01478fd>] __generic_file_aio_read+0x1cd/0x200
 [<c0145060>] file_read_actor+0x0/0xd0
 [<c01784b7>] search_binary_handler+0x97/0x270
 [<c017a072>] do_execve+0x172/0x200
 [<c0105fb2>] sys_execve+0x32/0x70
 [<c0107e21>] sysenter_past_esp+0x52/0x71

Code: 0f 0b c8 06 eb 74 35 c0 eb db b8 00 e0 ff ff 21 e0 8b 10 8b

put_files_struct+0x67 is equivalent to fs/binfmt_elf.c:681 in 2.6.6

current->files == fl->fl_owner
fl->fl_file = 0xf6702b80 (a valid struct file)

current->files =
  max_fds=32
  max_fdset=1024
  next_fd=3
  fd=[0xf6927080 0xf6951b80  0xf6951b80 0 ...]

Here's a proposed fix.  As a side effect, steal_locks no longer walks the
global list of locks, but only the locks of all open inodes.

What are the reasons (other than historic ones) for not getting rid of
fl_owner and using fl_pid instead, by the way?  I think that would clean up
the whole mess with file locks a bit.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] ppc32: fix 'make O=...'
Andrew Morton [Thu, 27 May 2004 00:35:10 +0000 (17:35 -0700)]
[PATCH] ppc32: fix 'make O=...'

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

Fix arch/ppc/boot/ so that everything now works with 'make O='.

Partially by: Geoffrey LEVAND <geoffrey.levand@am.sony.com>.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] ppc64 kernel hackers can't spell
Andrew Morton [Thu, 27 May 2004 00:34:58 +0000 (17:34 -0700)]
[PATCH] ppc64 kernel hackers can't spell

From: Anton Blanchard <anton@samba.org>

From: Dave Hansen

This patch is obviously of the utmost importance.  It probably doesn't matter
as much for kernel error messages, but one of these mistakes is in a
user-readable /proc file.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years agoMerge bk://are.twiddle.net/axp-2.6
Linus Torvalds [Wed, 26 May 2004 02:08:10 +0000 (19:08 -0700)]
Merge bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Wed, 26 May 2004 02:06:26 +0000 (19:06 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] ppc64: fix nonexistent irq affinity
Paul Mackerras [Wed, 26 May 2004 02:03:18 +0000 (19:03 -0700)]
[PATCH] ppc64: fix nonexistent irq affinity

This fixes a bug where, if we try to set the affinity on an unused
virtual IRQ number on a logically-partitioned pSeries system, we call
the firmware with physical IRQ number = -1, which it doesn't like.

With this patch we just ignore the attempt.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: use msleep() instead of ide_delay_50ms()
Bartlomiej Zolnierkiewicz [Wed, 26 May 2004 01:30:08 +0000 (18:30 -0700)]
[PATCH] ide: use msleep() instead of ide_delay_50ms()

msleep() does msecs to jiffies conversion correctly regardless
of HZ value and sets the current task's state in a safe way.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: fix ide_delay_50ms() in ide.c to always sleep
Bartlomiej Zolnierkiewicz [Wed, 26 May 2004 01:29:57 +0000 (18:29 -0700)]
[PATCH] ide: fix ide_delay_50ms() in ide.c to always sleep

Noticed by Christoph Hellwig <hch@lst.de>.

Probably somebody got the logic wrong while adding
#ifndef CONFIG_BLK_DEV_IDECS back in 2.4.0-test2.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: missing rq checks in ide-disk
Bartlomiej Zolnierkiewicz [Wed, 26 May 2004 01:29:48 +0000 (18:29 -0700)]
[PATCH] ide: missing rq checks in ide-disk

ide-disk only checks for drive->blocked and blk_fs_request() if TASKFILE_IO
is defined.  Move these checks (and TCQ check too) to upper function.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoSplit ptep_establish into "establish" and "update_access_flags"
Linus Torvalds [Wed, 26 May 2004 00:56:23 +0000 (17:56 -0700)]
Split ptep_establish into "establish" and "update_access_flags"

ptep_establish() is used to establish a new mapping at COW time,
and it always replaces a non-writable page mapping with a totally
new page mapping that is dirty (and likely writable, although ptrace
may cause a non-writable new mapping). Because it was nonwritable,
we don't have to worry about losing concurrent dirty page bit updates.

ptep_update_access_flags() leaves the same page mapping, but updates
the accessed/dirty/writable bits (it only ever sets them, and never
removes any permissions). Often easier, but it may race with a dirty
bit update on another CPU.

Booted on x86 and ppc64.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Tue, 25 May 2004 16:14:47 +0000 (09:14 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[NET_SCHED] Do not oops when user tries to attach a filter to a TBF qdisc.
Dmitry Torokhov [Tue, 25 May 2004 16:13:48 +0000 (09:13 -0700)]
[NET_SCHED] Do not oops when user tries to attach a filter to a TBF qdisc.

(TBF does not allow attaching filters as it has only one class,
filter should be attached either to TBF's parent or to its child)

22 years agoRemove bogus test preprocessor test.
Linus Torvalds [Tue, 25 May 2004 15:24:29 +0000 (08:24 -0700)]
Remove bogus test preprocessor test.

PAGE_SIZE isn't even always defined at this point,
which makes us test undefined preprocessor symbols.

It so happens that the test works in that case,
but since the test is a bit pointless in the first
place...

22 years agoMake constant types explicit, rather than depend on
Linus Torvalds [Tue, 25 May 2004 15:22:33 +0000 (08:22 -0700)]
Make constant types explicit, rather than depend on
some rather subtle C type expansion rules.

This makes sparse happier.

22 years agoDon't return void types from void functions.
Linus Torvalds [Tue, 25 May 2004 15:21:34 +0000 (08:21 -0700)]
Don't return void types from void functions.

This helps reduce sparse noise.

22 years agoMerge bk://kernel.bkbits.net/davem/tg3-2.6
Linus Torvalds [Tue, 25 May 2004 07:39:03 +0000 (00:39 -0700)]
Merge bk://kernel.bkbits.net/davem/tg3-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/tg3-2.6
David S. Miller [Tue, 25 May 2004 06:54:42 +0000 (23:54 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/tg3-2.6
into kernel.bkbits.net:/home/davem/tg3-2.6

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 25 May 2004 06:51:20 +0000 (23:51 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Tue, 25 May 2004 06:37:24 +0000 (23:37 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[IPSEC]: Fix buglet in AF_KEY spddelete
Steven King [Tue, 25 May 2004 06:09:27 +0000 (23:09 -0700)]
[IPSEC]: Fix buglet in AF_KEY spddelete

When trying to spddelete individual entries using setkey, spddelete always
fails.  The culprit is in net/af_key.c; spdadd sets the family field of the
selector when creating an entry, but spddelete doesn't when building a
selector to match for xfrm_policy_bysel.  Trivial fix is to have spddelete
set the family field in the selector in same way spdadd does.

22 years ago[TG3]: Update driver version and reldate.
David S. Miller [Tue, 25 May 2004 06:06:21 +0000 (23:06 -0700)]
[TG3]: Update driver version and reldate.

22 years agoIntroduce architecture-specific "ptep_update_dirty_accessed()"
Linus Torvalds [Tue, 25 May 2004 06:04:59 +0000 (23:04 -0700)]
Introduce architecture-specific "ptep_update_dirty_accessed()"
helper function to write-back the dirty and accessed bits from
ptep_establish().

Right now this defaults to the same old "set_pte()" that we've
always done, except for x86 where we now fix the (unlikely)
race in updating accessed bits and dropping a concurrent dirty
bit.

22 years ago[TG3]: Make sure RX/TX flow control settings actually get set.
Arthur Kepner [Tue, 25 May 2004 06:04:23 +0000 (23:04 -0700)]
[TG3]: Make sure RX/TX flow control settings actually get set.

22 years agoPass in a "dirty" argument to ptep_establish in
Linus Torvalds [Tue, 25 May 2004 05:37:15 +0000 (22:37 -0700)]
Pass in a "dirty" argument to ptep_establish in
preparation for pte update race fix.

This does not actually use the information yet, but
the next few patches will start to put it to some
good use.

22 years ago[PATCH] Fix nodemask clearing bug in NUMA API
Andi Kleen [Tue, 25 May 2004 04:11:46 +0000 (21:11 -0700)]
[PATCH] Fix nodemask clearing bug in NUMA API

Fix over long nodemask clearing in get_mem_policy() by using the
right size for the node mask.

22 years ago[VLAN]: Use KERN_INFO for VLAN_INF.
Joshua Jackson [Tue, 25 May 2004 04:04:01 +0000 (21:04 -0700)]
[VLAN]: Use KERN_INFO for VLAN_INF.

22 years ago[IPSEC]: Use add_timer() in xfrm_state_find.
Herbert Xu [Tue, 25 May 2004 04:02:48 +0000 (21:02 -0700)]
[IPSEC]: Use add_timer() in xfrm_state_find.

22 years ago[IPSEC]: Fix outdated comment in __xfrm_state_delete.
Herbert Xu [Tue, 25 May 2004 04:02:07 +0000 (21:02 -0700)]
[IPSEC]: Fix outdated comment in __xfrm_state_delete.

22 years ago[IPSEC]: Do not leak entries in xfrm_state_find.
Herbert Xu [Tue, 25 May 2004 04:01:22 +0000 (21:01 -0700)]
[IPSEC]: Do not leak entries in xfrm_state_find.

In xfrm_state_find, the larval state never actually matures with
Openswan so it only ever gets deleted by the timer which means
that the time crash can't happen :)  It becomes a (possible) memory
leak instead.

22 years ago[BRIDGE]: Update bridge.txt
Stephen Hemminger [Tue, 25 May 2004 03:58:43 +0000 (20:58 -0700)]
[BRIDGE]: Update bridge.txt

Trent Jarvi <taj@www.linux.org.uk> noticed this.  The file was out of date
with current web site and maintainer.  Please apply to 2.4 and 2.6.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Tue, 25 May 2004 03:54:43 +0000 (20:54 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PATCH] IRQ stacks for PPC64
Paul Mackerras [Tue, 25 May 2004 03:27:46 +0000 (20:27 -0700)]
[PATCH] IRQ stacks for PPC64

Even with a 16kB stack, we have been seeing stack overflows on PPC64
under stress.  This patch implements separate per-cpu stacks for
processing interrupts and softirqs, along the lines of the
CONFIG_4KSTACKS stuff on x86.  At the moment the stacks are still 16kB
but I hope we can reduce that to 8kB in future.  (Gcc is capable of
adding instructions to the function prolog to check the stack pointer
whenever it moves it downwards, and I want to use that when I try
using 8kB stacks so I can be confident that we aren't overflowing the
stack.)

Signed-off-by: Paul Mackerras <paulus@samba.org>
22 years ago[PATCH] x86-bigsmp: use fixed interrupt delivery
Ingo Molnar [Tue, 25 May 2004 03:06:18 +0000 (20:06 -0700)]
[PATCH] x86-bigsmp: use fixed interrupt delivery

This patch, from Venkatesh Pallipadi, changes x86 IO-APICs to use fixed
interrupt delivery instead of lowest priority to support larger number
of CPUs.  Only bigsmp is affected by this cleanup.

From: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
22 years ago[PATCH] missing compat ioctl mapping for DM_REMOVE_ALL
Andrew Morton [Tue, 25 May 2004 01:45:46 +0000 (18:45 -0700)]
[PATCH] missing compat ioctl mapping for DM_REMOVE_ALL

Signed-off-by: Marcus Meissner <meissner@suse.de>
Added missing DM_REMOVE_ALL call.

22 years ago[PATCH] sched_yield() microoptimisation
Andrew Morton [Tue, 25 May 2004 01:45:35 +0000 (18:45 -0700)]
[PATCH] sched_yield() microoptimisation

Signed-off-by: Ingo Molnar <mingo@elte.hu>
We can avoid the local_irq_enable() in sched_yield() because schedule()
unconditionally enables interrupts anyway.

22 years ago[PATCH] sched.h comment typo fix
Andrew Morton [Tue, 25 May 2004 01:45:24 +0000 (18:45 -0700)]
[PATCH] sched.h comment typo fix

Signed-off-by: Christian Meder <chris@onestepahead.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
sched.h typo fix from Christian Meder.

22 years ago[PATCH] Subject: Re: Help understanding slow down
Andrew Morton [Tue, 25 May 2004 01:45:13 +0000 (18:45 -0700)]
[PATCH] Subject: Re: Help understanding slow down

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Add a warning that "idle=poll" is a performance hit on hyperthreaded CPUs.

22 years ago[PATCH] No interpretation of HD spindown timeout in laptop mode ACPI binding script.
Andrew Morton [Tue, 25 May 2004 01:45:03 +0000 (18:45 -0700)]
[PATCH] No interpretation of HD spindown timeout in laptop mode ACPI binding script.

From: Bart Samwel <bart@samwel.tk>

Currently the ACPI binding script in the Laptop Mode doc always says "20
seconds" and "2 hours" for the timeouts it uses.  This is incorrect if the
user changed the config values, so we print something more general.

22 years ago[PATCH] rmap build fix
Andrew Morton [Tue, 25 May 2004 01:44:52 +0000 (18:44 -0700)]
[PATCH] rmap build fix

From: William Lee Irwin III <wli@holomorphy.com>

PMD_SIZE is not a compile-time constant on sparc.  Use min() in there so
that the cluster size will be evaluated at runtime if the architecture
insists on doing that.

22 years ago[PATCH] ir-kbd-gpio.c build fix
Andrew Morton [Tue, 25 May 2004 01:44:41 +0000 (18:44 -0700)]
[PATCH] ir-kbd-gpio.c build fix

It's initialising slot 24 in two places.  Gerd Knorr <kraxel@bytesex.org> says
"This one should be 23.".

22 years ago[PATCH] Revert bogus x86-64 change
Andrew Morton [Tue, 25 May 2004 01:44:29 +0000 (18:44 -0700)]
[PATCH] Revert bogus x86-64 change

From: Andi Kleen <ak@muc.de>

The 32bit generic nops added with a previous patch to x86-64 alternative()
are not completely 64bit clean.  This caused crashes in some cases.  This
patch reverts this broken change.

22 years ago[PATCH] isapnp sb16 virtual pc
Andrew Morton [Tue, 25 May 2004 01:44:14 +0000 (18:44 -0700)]
[PATCH] isapnp sb16 virtual pc

From: David Sanders <linux@sandersweb.net>

Patch adds support for the emulated Soundblaster 16 in Virtual PC 2004.

22 years ago[PATCH] fix PCI bridge swizzle on takara and eiger
Ivan Kokshaysky [Tue, 25 May 2004 01:44:10 +0000 (18:44 -0700)]
[PATCH] fix PCI bridge swizzle on takara and eiger

This fixes NULL pointer dereference (bus->self) for PCI devices
on the root bus.

Ivan.

22 years ago[PATCH] ext2: fix build with DEBUG=y
Andrew Morton [Tue, 25 May 2004 01:44:01 +0000 (18:44 -0700)]
[PATCH] ext2: fix build with DEBUG=y

From: FabF <fabian.frederick@skynet.be>

22 years ago[PATCH] minor sched.c cleanup
Andrew Morton [Tue, 25 May 2004 01:43:49 +0000 (18:43 -0700)]
[PATCH] minor sched.c cleanup

Signed-off-by: Christian Meder <chris@onestepahead.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
The following obviously correct patch from Christian Meder simplifies the
DELTA() define.

22 years ago[PATCH] Really enable NUMA API on x86-64
Andrew Morton [Tue, 25 May 2004 01:43:39 +0000 (18:43 -0700)]
[PATCH] Really enable NUMA API on x86-64

From: Andi Kleen <ak@muc.de>

Really enable the NUMA API system calls on x86-64.

22 years ago[PATCH] remap_file_pages: fix syscall declaration
Andrew Morton [Tue, 25 May 2004 01:43:28 +0000 (18:43 -0700)]
[PATCH] remap_file_pages: fix syscall declaration

Signed-off-by: Hugh Dickins <hugh@veritas.com>
sys_remap_file_pages is declared as asmlinkage in mm/fremap.c, but is the one
syscall declared without asmlinkage in include/linux/syscalls.h.

22 years ago[PATCH] remap_file_pages: implement MAP_POPULATE for all protections
Andrew Morton [Tue, 25 May 2004 01:43:17 +0000 (18:43 -0700)]
[PATCH] remap_file_pages: implement MAP_POPULATE for all protections

Signed-off-by: Hugh Dickins <hugh@veritas.com>
It seems eccentric to implement MAP_POPULATE only on PROT_NONE mappings:
do_mmap_pgoff is passing down prot, then sys_remap_file_pages verifies it's
not set.  I guess that's an oversight from when we realized that the prot arg
to sys_remap_file_pages was misdesigned.

There's another oddity whose heritage is harder for me to understand, so
please let me leave it to you: sys_remap_file_pages is declared as asmlinkage
in mm/fremap.c, but is the one syscall declared without asmlinkage in
include/linux/syscalls.h.

22 years ago[PATCH] Fix for lockup in reiserfs acl/xattrs
Andrew Morton [Tue, 25 May 2004 01:43:06 +0000 (18:43 -0700)]
[PATCH] Fix for lockup in reiserfs acl/xattrs

From: Jeff Mahoney <jeffm@suse.com>

The following is a patch to fix a locking problem in ACL/xattr code. It
manifests when a user attempts to set an xattr on a file which they do
not own, and on which an ACL is applied.

What happens is this:
reiserfs_setxattr [write lock inode xattr sem]
  ->xattr_set
    -> lookup
       -> __reiserfs_permission [if conditions above are met, and need_lock=
 is
          unset, read lock inode xattr sem] *lockup*

Since we already keep track of when to lock during permission calls, the
fix is simple: just make the locking conditional as it was before.

Credits to Andreas Gruenbacher <agruen@suse.de>

22 years ago[PATCH] UDF: directory reading fix
Andrew Morton [Tue, 25 May 2004 01:42:56 +0000 (18:42 -0700)]
[PATCH] UDF: directory reading fix

From: Ben Fennema <bfennema@falcon.csc.calpoly.edu>

The problem occured when files were stored on the disc in 16-bit per
character mode when all the upper bits were 0.  The fs module
converted the file name given by the user to a 8-bit per character
string to compare, so the comparison always failed.

The patch maps the file from disc into the current locale and then
compares it directly to the file name given by the user.

22 years ago[PATCH] compile fix for mm/init.c
Ivan Kokshaysky [Tue, 25 May 2004 01:42:55 +0000 (18:42 -0700)]
[PATCH] compile fix for mm/init.c

Fix another page->count reference (in addition to numa.c one
that I've sent earlier).

Ivan.

22 years ago[PATCH] bk-kernel-howto reversion
Andrew Morton [Tue, 25 May 2004 01:42:45 +0000 (18:42 -0700)]
[PATCH] bk-kernel-howto reversion

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

This one snuck through - Jeff prefers the bk:// addresses.

22 years ago[PATCH] CREDITS is unmaintained
Andrew Morton [Tue, 25 May 2004 01:42:34 +0000 (18:42 -0700)]
[PATCH] CREDITS is unmaintained

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

This information seems to be quite outdated.

22 years ago[PATCH] H8/300 ne driver module fix
Andrew Morton [Tue, 25 May 2004 01:42:23 +0000 (18:42 -0700)]
[PATCH] H8/300 ne driver module fix

From: Yoshinori Sato <ysato@users.sourceforge.jp>

- module support fix

22 years ago[PATCH] H8/300 module fix
Andrew Morton [Tue, 25 May 2004 01:42:12 +0000 (18:42 -0700)]
[PATCH] H8/300 module fix

From: Yoshinori Sato <ysato@users.sourceforge.jp>

- fix relocation
- define SYMBOL_PREFIX

22 years ago[PATCH] Fix various memory leaks
Andrew Morton [Tue, 25 May 2004 01:42:00 +0000 (18:42 -0700)]
[PATCH] Fix various memory leaks

From: Yury Umanets <torque@ukrpost.net>

Thanks to smatch I have found few memory leaks and other related issues.

22 years ago[PATCH] v4l: use saa7111 i2c module in V4L MXB driver
Andrew Morton [Tue, 25 May 2004 01:41:49 +0000 (18:41 -0700)]
[PATCH] v4l: use saa7111 i2c module in V4L MXB driver

From: Michael Hunold <hunold@convergence.de>

The attached patch changes my "Multimedia eXtension Board" (MXB)
Video4Linux-driver to use the standard saa7111 video decoder infrastructure
(to which I recently submitted changes through Ronald Bultje) instead of
some home-brewn direct-access stuff.

Nothing serious, but it removes code duplication and makes the code use the
video decoder api.

22 years ago[PATCH] fix NUMA build
Ivan Kokshaysky [Tue, 25 May 2004 01:41:45 +0000 (18:41 -0700)]
[PATCH] fix NUMA build

Replace reference to page->count with page_count().

Ivan.