]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] Make arch-independent syscalls return long
Andrew Morton [Sat, 22 Mar 2003 15:35:35 +0000 (07:35 -0800)]
[PATCH] Make arch-independent syscalls return long

From: "Randy.Dunlap" <randy.dunlap@verizon.net>

Fix up various syscalls to return longs, as x86_64 and ia64 (at least)
require.

23 years ago[PATCH] fix .text.exit error in OSS awe_wave.c
Andrew Morton [Sat, 22 Mar 2003 15:35:27 +0000 (07:35 -0800)]
[PATCH] fix .text.exit error in OSS awe_wave.c

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

I got a .exit.text error in 2.5.65.

The problem is that in sound/oss/awe_wave.c the __init function
_attach_awe calls the __exit function awe_release_region.

The following patch that removes the __exit from awe_release_region
fixes it.

23 years ago[PATCH] sync_filesystems commentary and latency fix
Andrew Morton [Sat, 22 Mar 2003 15:35:20 +0000 (07:35 -0800)]
[PATCH] sync_filesystems commentary and latency fix

- Add some commentary to this function

- Add a mutex to prevent new callers of sync_filesytems() from DoSing
  currently-running caller.

23 years ago[PATCH] make list.h barriers smp-only
Andrew Morton [Sat, 22 Mar 2003 15:35:13 +0000 (07:35 -0800)]
[PATCH] make list.h barriers smp-only

From: Dipankar Sarma <dipankar@in.ibm.com>

This patch makes the list macros use smp-only version of the barriers,
no need to hurt UP performance.

23 years ago[PATCH] ext3: fix use-after-free bug
Andrew Morton [Sat, 22 Mar 2003 15:35:06 +0000 (07:35 -0800)]
[PATCH] ext3: fix use-after-free bug

ext3_writepage() calls ext3_journal_stop(), which dereferences the affected
inode.

It does this _after_ writing the page out, which is illegal.  The IO can
complete, the page can be repeased from the inode and the inode can be freed
up.

It's a long-standing bug.  It has been reported happening on preemptible
kernels, where the timing window is larger.

Fix that up by teaching ext3_journal_stop to locate the superblock via the
journal structure, not via the inode.

This means that ext3_journal_stop() does not need the inode argument at all.

Also uninline the affected functions.  It saves 5.5 kbytes.

Also remove the setting of sb->s_dirt in ext3_journal_stop().  That was an
awkward way of telling sys_sync() that the filesystem needs a commit, and
with the ext3_sync_fs() that is no longer needed.

23 years ago[PATCH] pagecache accounting speedup
Andrew Morton [Sat, 22 Mar 2003 15:34:59 +0000 (07:34 -0800)]
[PATCH] pagecache accounting speedup

From: Alex Tomas <bzzz@tmi.comex.ru>

This is the second half of the vm_enough_memory() speedup.

When overcommit_memory != 1, vm_enough_memory() calls get_page_state() to
calculate the amount of used pagecache.  It does this on every call to
sys_brk().

get_page_state() is really expensive on SMP.

So the patch arranges for pagecache accounting to be in a global atomic_t,
with per-cpu batching and approximate accounting to amortise the cost of the
global atomic.

The nr_pagecache field of /proc/vmstat is removed.

23 years ago[PATCH] simplify the timer lockup avoidance code
Andrew Morton [Sat, 22 Mar 2003 15:34:50 +0000 (07:34 -0800)]
[PATCH] simplify the timer lockup avoidance code

From: george anzinger <george@mvista.com>

The recently-added code which avoids a lockup when a timer handler re-adds
the timer right now can be simplified.

If we change __run_timers() to increment base->timer_jiffies _before_ running
the timers, then any re-additions will not be inserted in the list which
__run_timers is presently walking.

23 years ago[PATCH] timer simplification
Andrew Morton [Sat, 22 Mar 2003 15:34:43 +0000 (07:34 -0800)]
[PATCH] timer simplification

From: george anzinger <george@mvista.com>

Remove the `index' field from the timer structures.  It contains the same
info as the timer_jiffies field.

So just use the base->timer_jiffies field directly.

23 years ago[PATCH] dev_t [3/3]: major.h cleanups
Andrew Morton [Sat, 22 Mar 2003 15:34:35 +0000 (07:34 -0800)]
[PATCH] dev_t [3/3]: major.h cleanups

Patch from Andries.Brouwer@cwi.nl

The third patch removes the last occurrences of MAX_BLKDEV and MAX_CHRDEV and
sorts the majors in major.h.  It also updates the definition of
SCSI_DISK_MAJOR.

23 years ago[PATCH] dev_t [2/3] - remove MAX_CHRDEV
Andrew Morton [Sat, 22 Mar 2003 15:34:28 +0000 (07:34 -0800)]
[PATCH] dev_t [2/3] - remove MAX_CHRDEV

Patch from Andries.Brouwer@cwi.nl

The actual patch for today is this part.  I already quoted most of this on
the list earlier this week.

In order not to have to change all drivers, I did

+int register_chrdev(unsigned int major, const char *name,
+                   struct file_operations *fops)
+{
+       return register_chrdev_region(major, 0, 256, name, fops);
+}

so that the old register_chrdev registers a single major and 256 minors.
Later this can be changed (but see my letter to Al last week).

The only driver that is tricky is the tty driver.  Here some major cleanup
happened - all tty specific stuff disappeared from char_dev.c, and tty uses
the actual register_chrdev_region() call.

There is a race in register_chrdev_region() that I did not worry about: when
two dynamic majors 0 are registered simultaneously, one of them will be first
and the other one gets -EBUSY.  If this is a problem, the code there will
have to be uglified a little.  I didn't do that because it disappears again
in a subsequent patch.

23 years ago[PATCH] dev_t [1/3]: kill cdev
Andrew Morton [Sat, 22 Mar 2003 15:34:20 +0000 (07:34 -0800)]
[PATCH] dev_t [1/3]: kill cdev

Patch from Andries.Brouwer@cwi.nl

Now that 2.5.65 is out, the next dev_t patch.  It was a bit large and
unreadable, so I split it into three clean pieces.  Afterwards, since many
people ask for this, a fourth patch that actually changes the type of dev_t
(not to be applied yet, that is just for playing).

The first patch is the cdev-kill patch that I sent out earlier.  It is no use
having two forms of chardev registration in the source, and my version of the
path of small modifications does not pass through this version, although the
final result will not be that different.  So, kill cdev_cachep,
cdev_cache_init, cdfind, cdget, cdput, inode->i_cdev, struct char_device.
All of this is dead code today.

The second patch removes MAX_CHRDEV.

The third patch polishes linux/major.h.

23 years ago[PATCH] mwave oops fixes
Andrew Morton [Sat, 22 Mar 2003 15:34:13 +0000 (07:34 -0800)]
[PATCH] mwave oops fixes

The mwave driver oopses if you do not have the hardware installed.  It is
running device_unregister() and device_remove_file() against things whch were
never created.

23 years ago[PATCH] make the bdevname() API sane
Andrew Morton [Sat, 22 Mar 2003 15:34:05 +0000 (07:34 -0800)]
[PATCH] make the bdevname() API sane

bdevname returns a pointer to a static string.  Change it so that the caller
passes in the buffer.

23 years ago[PATCH] register_blkdev() fixes
Andrew Morton [Sat, 22 Mar 2003 15:33:57 +0000 (07:33 -0800)]
[PATCH] register_blkdev() fixes

- It was racy, if two threads try to register a blockdev with major=0 they
  could both choose the same major for different devices.

  Fix that by extending the coverage of the rwsem.

- kmalloced local variable `p' was leaking on an error path.

23 years ago[PATCH] __bdevname atomicity fix
Andrew Morton [Sat, 22 Mar 2003 15:33:50 +0000 (07:33 -0800)]
[PATCH] __bdevname atomicity fix

This function was recently converted to use rwsem locking.  But it is called
from interrupts in (at least) buffer_io_error().

And we do want a function like this to be robust and atomic.  So convert it
to use spinlocking.

23 years ago[PATCH] remove lock_kernel() from readdir implementations.
Andrew Morton [Sat, 22 Mar 2003 15:33:43 +0000 (07:33 -0800)]
[PATCH] remove lock_kernel() from readdir implementations.

Filesystems which are using generic_file_llseek() do not need lock_kernel()
in their readir implementations.  All operations (including llseek) are
serialised by the directory's i_sem.

Just fix ext2 and ext3 for now.  Others may need locking between readdir and
who-knows-what.

23 years ago[PATCH] speed up vm_enough_memory()
Andrew Morton [Sat, 22 Mar 2003 15:33:34 +0000 (07:33 -0800)]
[PATCH] speed up vm_enough_memory()

This function is called a lot.  Every brk().  The atomic_add() against a
global counter hurts on large SMP machines.

The patch simply reduces the rate at which that atomic operation is
performed, by accumulating a per-cpu count which is spilled into the global
counter when the local counter overflows.

It trades off efficiency for a little inaccuracy.

I tried various implementations involving kmalloc_percpu() and open-coded
per-cpu arrays in a generic "per-cpu counter" thing.  They all were
surprisingly sucky - the additional cache misses involved in walking the more
complex data structures really showed up.

23 years ago[PATCH] remove lock_kernel() from inode_setattr's
Andrew Morton [Sat, 22 Mar 2003 15:33:27 +0000 (07:33 -0800)]
[PATCH] remove lock_kernel() from inode_setattr's

vmtruncate() does not need lock_kernel().  And lock_kernel() is not taken by
other vmtruncate() callers.

23 years ago[PATCH] Implement a/c/time speedup in ext2 & ext3
Andrew Morton [Sat, 22 Mar 2003 15:33:20 +0000 (07:33 -0800)]
[PATCH] Implement a/c/time speedup in ext2 & ext3

Turn on MS_ONE_SECOND in ext2 and ext3.

23 years ago[PATCH] inode a/c/mtime modification speedup
Andrew Morton [Sat, 22 Mar 2003 15:33:13 +0000 (07:33 -0800)]
[PATCH] inode a/c/mtime modification speedup

For some filesystems (ext3, reiserfs at least), ->dirty_inode() is very
expensive.  The kernel is currently calling mark_inode_dirty() at up to 1000
times/sec/inode.  But there is no need to do this if the filesystem cannot
store high-resolution times on-disk.

This patch restores the optimisation of only dirtying the filesystem inode
when its on-disk representation has actually changed.

The filesystem will set the MS_ONE_SECOND flag in sb->s_flags to indicate
that it wishes to receive this treatment.

The patch does reduce the call rate to ext3_mark_inode_dirty() from 1000/sec
to 1/sec, but it doesn't make much difference at all to performance because
we're calling ext3_mark_inode_dirty() from other callsites as well.  Those
can be optimised too.

23 years ago[PATCH] ppc64 support for file file-offset-in-pte
Andrew Morton [Sat, 22 Mar 2003 15:33:05 +0000 (07:33 -0800)]
[PATCH] ppc64 support for file file-offset-in-pte

ppc64 support for file file-offset-in-pte

23 years ago[PATCH] x86_64: support for file offsets in pte's
Andrew Morton [Sat, 22 Mar 2003 15:32:58 +0000 (07:32 -0800)]
[PATCH] x86_64: support for file offsets in pte's

Path from Andi Kleen <ak@muc.de>

Add x86_64 support for file offsets in pte's.

23 years ago[PATCH] filemap_populate speedup
Andrew Morton [Sat, 22 Mar 2003 15:32:49 +0000 (07:32 -0800)]
[PATCH] filemap_populate speedup

filemap_populate() is currently doing page-at-a-time synchronous I/O.  Add a
call to do_page_cache_readahead() in there so we do a big slurp of IO first.

This is minimal - a lot of the filemap_populate() code can be
rationalised yet.

23 years ago[PATCH] Make nonlinear mappings fully pageable
Andrew Morton [Sat, 22 Mar 2003 15:32:42 +0000 (07:32 -0800)]
[PATCH] Make nonlinear mappings fully pageable

This patch requires arch support.  I have patches for ia32, ppc64 and x86_64.
Other architectures will break.  It is a five-minute fix.  See

http://mail.nl.linux.org/linux-mm/2003-03/msg00174.html

for implementation details.

Patch from: Ingo Molnar <mingo@elte.hu>

the attached patch, against BK-curr, is a preparation to make
remap_file_pages() usable on swappable vmas as well.  When 'swapping out'
shared-named mappings the page offset is written into the pte.

it takes one bit from the swap-type bits, otherwise it does not change the
pte layout - so it should be easy to adapt any other architecture to this
change as well.  (this patch does not introduce the protection-bits-in-pte
approach used in my previous patch.)

On 32-bit pte sizes with an effective usable pte range of 29 bits, this
limits mmap()-able file size to 4096 * 2^29 == 2 TBs.  If the usable range is
smaller, then the maximum mmap() size is reduced as well.  The worst-case i
found (PPC) was 2 hw-reserved bits in the swap-case, which limits us to 1 TB
filesize.  Is there any other hw that has an even worse ratio of sw-usable
pte bits?

this mmap() limit can be eliminated by simply not converting the swapped out
pte to a file-pte, but clearning it and falling back to the linear mapping
upon swapin.  This puts the limit into remap_file_pages() alone, but i really
hope no-one wants to use remap_file_pages() on a 32-bit platform, on a larger
than 1-2 TB file.

sys_remap_file_pages() is now enforcing the 'prot' parameter to be zero.
This restriction might be lifted in the future - i really hope we can have
more flexible remapping once 64-bit platforms are commonplace - eg.  things
like memory debuggers could just use the permission bits directly, instead of
creating many small vmas.

i've tested swappable nonlinear ptes and they are swapped out/in
correctly.

some other changes in -A0 relative to 2.5.63-BK:

 - slightly smarter TLB flushing in install_page(). This is still only a
   stupid helper functions - a more efficient 'walk the pagecache tree
   and pagetable at once and use TLB-gather' implementation is preferred.

 - cleanup: pass on pgprot_t instead of unsigned long prot.

 - some sanity checks to make sure file_pte() rules are followed.

 - do not reduce the vma's default protection to PROT_NONE when using
   remap_file_pages() on it. With swappable ptes this is now safe.

23 years ago[PATCH] fix powerbook media bay
Paul Mackerras [Sat, 22 Mar 2003 13:34:35 +0000 (05:34 -0800)]
[PATCH] fix powerbook media bay

This patch fixes a couple of bugs and compile errors in the powerbook
media bay driver.  It was getting initialized after the IDE subsystem,
whereas it needs to be initialized before so that the IDE subsystem
can see the CD-ROM drive in the bay.

23 years ago[PATCH] update mac53c94 scsi driver
Paul Mackerras [Sat, 22 Mar 2003 13:34:28 +0000 (05:34 -0800)]
[PATCH] update mac53c94 scsi driver

This patch updates the mac53c94 scsi HBA driver, used on older
powermacs, to correspond with the recent scsi subsystem changes, to
use the PCI DMA API, to not panic, and to use a spinlock instead of
save_flags/restore_flags/cli/sti.

23 years ago[PATCH] update MESH scsi driver
Paul Mackerras [Sat, 22 Mar 2003 13:34:21 +0000 (05:34 -0800)]
[PATCH] update MESH scsi driver

This patch updates the `mesh' scsi driver used on older powermacs to
correspond with recent changes in the scsi subsystem (things like
using cmd->device->id instead of cmd->target).

23 years ago[PATCH] update via-pmu driver
Paul Mackerras [Sat, 22 Mar 2003 13:34:14 +0000 (05:34 -0800)]
[PATCH] update via-pmu driver

This patch forward-ports various fixes to the driver for the PMU
(power manager unit) on powermacs and powerbooks from 2.4, and in
particular, some improvements to the battery charge calculations.

From Ben Herrenschmidt.

23 years ago[PATCH] SMP-safe macserial driver
Paul Mackerras [Sat, 22 Mar 2003 13:34:05 +0000 (05:34 -0800)]
[PATCH] SMP-safe macserial driver

The patch below removes the uses of save_flags/restore_flags/cli
etc. from the macserial driver and replaces them with a spinlock.

23 years ago[PATCH] update via-cuda driver
Paul Mackerras [Sat, 22 Mar 2003 13:33:58 +0000 (05:33 -0800)]
[PATCH] update via-cuda driver

This patch updates the CUDA driver (the power/reset/ADB controller on
older powermacs) to fix some SMP issues and to match the 2.4 version
of the driver.

From Ben Herrenschmidt.

23 years ago[PATCH] update macintosh-specific headers
Paul Mackerras [Sat, 22 Mar 2003 13:33:50 +0000 (05:33 -0800)]
[PATCH] update macintosh-specific headers

This patch updates include/linux/adb.h and include/linux/pmu.h with
some additional definitions that we need on powermacs and powerbooks.

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Sat, 22 Mar 2003 13:31:12 +0000 (05:31 -0800)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoPPC32: Further 8260 update; one file was missed in the previous commit.
Allen Curtis [Mon, 24 Mar 2003 03:03:14 +0000 (14:03 +1100)]
PPC32: Further 8260 update; one file was missed in the previous commit.

23 years agoPPC32: Fix ide_init_hwif_ports for powermac.
Paul Mackerras [Sun, 23 Mar 2003 23:21:33 +0000 (10:21 +1100)]
PPC32: Fix ide_init_hwif_ports for powermac.

23 years agoPPC32: Updates for the 8260 embedded processor and the EST and TQM boards
Allen Curtis [Sun, 23 Mar 2003 23:19:28 +0000 (10:19 +1100)]
PPC32: Updates for the 8260 embedded processor and the EST and TQM boards

23 years agoPPC32: Convert uses of ide_ioreg_t to unsigned long.
Paul Mackerras [Sun, 23 Mar 2003 23:00:06 +0000 (10:00 +1100)]
PPC32: Convert uses of ide_ioreg_t to unsigned long.

23 years agoPPC32: Fix asm/rtc.h so drivers/char/genrtc.c compiles.
Paul Mackerras [Sun, 23 Mar 2003 22:54:08 +0000 (09:54 +1100)]
PPC32: Fix asm/rtc.h so drivers/char/genrtc.c compiles.

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sun, 23 Mar 2003 21:48:35 +0000 (08:48 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sun, 23 Mar 2003 01:09:51 +0000 (12:09 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years ago[PATCH] pcmcia: convert pccard_cs driver to new registration interface
Dominik Brodowski [Sat, 22 Mar 2003 12:35:03 +0000 (04:35 -0800)]
[PATCH] pcmcia: convert pccard_cs driver to new registration interface

Convert the pcnet_cs driver to use the new registration call.

23 years ago[PATCH] pcmcia: remove single linked list of drivers
Dominik Brodowski [Sat, 22 Mar 2003 12:34:56 +0000 (04:34 -0800)]
[PATCH] pcmcia: remove single linked list of drivers

Remove the linked list of pcmcia_drivers. It didn't even handle removal of a
driver properly, so it won't be missed all that much.

23 years ago[PATCH] pcmcia: register drivers with bus
Dominik Brodowski [Sat, 22 Mar 2003 12:34:48 +0000 (04:34 -0800)]
[PATCH] pcmcia: register drivers with bus

Register all pcmcia drivers with the pcmcia bus within the old
register_pccard_driver() function. Alternatively, a new
registration function "pcmcia_register_driver()" (and its
counterpart,  "pcmcia_unregister_driver()") can be used.

23 years ago[PATCH] pcmcia: add bus_type pcmcia_bus_type
Dominik Brodowski [Sat, 22 Mar 2003 12:34:41 +0000 (04:34 -0800)]
[PATCH] pcmcia: add bus_type pcmcia_bus_type

Register a bus_type pcmcia_bus_type. This means the initialization of
the ds module needs to be done in two levels: one quite early
(subsys_initcall) so that drivers may use the bus_type; the other one
must stay that late (late_initcall). As only one initcall can be
specified within one module, some tweaking is needed.

23 years ago[PATCH] pcmcia: check return values of driver_register
Dominik Brodowski [Sat, 22 Mar 2003 12:34:33 +0000 (04:34 -0800)]
[PATCH] pcmcia: check return values of driver_register

23 years agoMerge http://fbdev.bkbits.net/fbdev-2.5
Linus Torvalds [Sat, 22 Mar 2003 12:13:51 +0000 (04:13 -0800)]
Merge http://fbdev.bkbits.net/fbdev-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoAlan broke the build. Fix it thusly.
Linus Torvalds [Sat, 22 Mar 2003 11:24:57 +0000 (03:24 -0800)]
Alan broke the build. Fix it thusly.

23 years ago[PATCH] eisa reports "0 device" not "0 devices"
Alan Cox [Sat, 22 Mar 2003 11:17:02 +0000 (03:17 -0800)]
[PATCH] eisa reports "0 device" not "0 devices"

Since it gets 1 device right it wasnt hard to fix 8)

23 years ago[PATCH] ide typo fixes
Alan Cox [Sat, 22 Mar 2003 11:16:54 +0000 (03:16 -0800)]
[PATCH] ide typo fixes

23 years ago[PATCH] merge PC9800 mouse driver
Alan Cox [Sat, 22 Mar 2003 11:16:47 +0000 (03:16 -0800)]
[PATCH] merge PC9800 mouse driver

23 years ago[PATCH] merge PC9800 keyboard controller chip support
Alan Cox [Sat, 22 Mar 2003 11:16:39 +0000 (03:16 -0800)]
[PATCH] merge PC9800 keyboard controller chip support

23 years ago[PATCH] parallel port
Alan Cox [Sat, 22 Mar 2003 11:16:30 +0000 (03:16 -0800)]
[PATCH] parallel port

23 years ago[PATCH] i2o_pci is dead
Alan Cox [Sat, 22 Mar 2003 11:16:23 +0000 (03:16 -0800)]
[PATCH] i2o_pci is dead

23 years ago[PATCH] ide typo fixes #2
Alan Cox [Sat, 22 Mar 2003 11:16:14 +0000 (03:16 -0800)]
[PATCH] ide typo fixes #2

23 years ago[PATCH] Merge PC9800 keyboard driver
Alan Cox [Sat, 22 Mar 2003 11:16:02 +0000 (03:16 -0800)]
[PATCH] Merge PC9800 keyboard driver

23 years ago[PATCH] ide typo fixes #3
Alan Cox [Sat, 22 Mar 2003 11:15:54 +0000 (03:15 -0800)]
[PATCH] ide typo fixes #3

I'm looking into the other IDE problem from the merge - several people
see hangs. Bartolomiej has found one suspicious looking candidate. I'll
try and pin it down ASAP.

23 years ago[PATCH] add checks to pc9800 ide reserve
Alan Cox [Sat, 22 Mar 2003 11:15:46 +0000 (03:15 -0800)]
[PATCH] add checks to pc9800 ide reserve

23 years ago[PATCH] use right object for i2o_config - kernel not user copy
Alan Cox [Sat, 22 Mar 2003 11:15:38 +0000 (03:15 -0800)]
[PATCH] use right object for i2o_config - kernel not user copy

23 years ago[PATCH] abstract out mach_reboot for x86 platforms
Alan Cox [Sat, 22 Mar 2003 11:15:30 +0000 (03:15 -0800)]
[PATCH] abstract out mach_reboot for x86 platforms

23 years ago[PATCH] clean up the mess someone merged into 3wxxx scsi
Alan Cox [Sat, 22 Mar 2003 11:15:23 +0000 (03:15 -0800)]
[PATCH] clean up the mess someone merged into 3wxxx scsi

- Redo the timing stuff using jiffies properly
- Clean up the exit paths
- Make the ioctl use a semaphore
- Fix broken locking on the AEN list

23 years ago[PATCH] make opl3sa2 build again
Alan Cox [Sat, 22 Mar 2003 11:15:15 +0000 (03:15 -0800)]
[PATCH] make opl3sa2 build again

23 years ago[PATCH] redo the n_tty fix
Alan Cox [Sat, 22 Mar 2003 11:15:08 +0000 (03:15 -0800)]
[PATCH] redo the n_tty fix

Two problems with the original change

1. We should return bytes actually processed on an error according to
SuS/POSIX. Technically the EFAULT path is outside the spec but its best
we follow

2. We need to fix most of this anyway because the final section of the
change was wrong. If retval was set we retried and got an efault again
in some cases

I think this way of doing it is right but it could do with further
review

23 years agoMerge bk://kernel.bkbits.net/jgarzik/net-drivers-2.5
Linus Torvalds [Sat, 22 Mar 2003 11:06:22 +0000 (03:06 -0800)]
Merge bk://kernel.bkbits.net/jgarzik/net-drivers-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[via-rhine] note that Roger is maintainer, in MAINTAINERS
Jeff Garzik [Sat, 22 Mar 2003 11:10:57 +0000 (06:10 -0500)]
[via-rhine] note that Roger is maintainer, in MAINTAINERS

23 years ago[E1000] Increase default Rx descriptors to 256
Scott Feldman [Sat, 22 Mar 2003 10:58:32 +0000 (05:58 -0500)]
[E1000] Increase default Rx descriptors to 256

* Increase default Rx descriptors from 80 to 256 to give
  better Rx buffering capability in the case of heavy
  Rx load with small packets.

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.5-pci
Linus Torvalds [Sat, 22 Mar 2003 09:33:46 +0000 (01:33 -0800)]
Merge bk://bk.arm.linux.org.uk/linux-2.5-pci
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PCI] Fix incorrect PCI cache line size assumptions.
Ivan Kokshaysky [Sat, 22 Mar 2003 15:23:30 +0000 (15:23 +0000)]
[PCI] Fix incorrect PCI cache line size assumptions.

Fix incorrect PCI cache line size assumptions on i386 and thus
avoid potential memory corruption with Memory Write-and-Invalidate.

23 years ago[PCI] Make setup-bus.c aware of cardbus bridges.
Ivan Kokshaysky [Sat, 22 Mar 2003 15:19:18 +0000 (15:19 +0000)]
[PCI] Make setup-bus.c aware of cardbus bridges.

Comments from rmk:

Make setup-bus.c properly aware of cardbus bridges.  We treat the
bus behind a cardbus bridge more or less like any other bus, except
we don't explicitly descend below.  We do, however, explicitly
reserve IO and memory space as we have done in the past.  Memory
space is doubed to 32MB as a measure to allow the Mobility
cardbus-pci stuff to work.  The amount of space reserved is now
specified by a couple of #defines at the top of the file.

This allows pci_bus_assign_resources() and pci_bus_size_bridges()
to be called for both root buses as well as cardbus secondary buses.

Comments from Ivan follows:

This patch combines your(rmk) cardbus changes (formerly pci-11)
and my "arbitrary resource layout" stuff. This + current bk works
on nautilus.

Most interesting feature: this can be used on partially
allocated PCI tree. For instance, i386 PCI code has always been
absolutely helpless wrt incorrectly initialized p2p bridges.
Now it can just call pci_assign_unassigned_resources() in the
end of PCI init and it would fix following problems:
- completely uninitialized bridge windows (with base and limit 0);
- erroneously "closed" windows;
- windows overlapping with something else.

23 years ago[PCI] Don't call pci_update_resource() for bridge resources.
Ivan Kokshaysky [Sat, 22 Mar 2003 14:29:31 +0000 (14:29 +0000)]
[PCI] Don't call pci_update_resource() for bridge resources.

Minor cleanup: don't call pci_update_resource() for bridges,
get rid of bogus "trying to set non-standard region" messages thus.

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.5-rmk
Linus Torvalds [Sat, 22 Mar 2003 09:29:56 +0000 (01:29 -0800)]
Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[ARM] Remove head-netwinder.S
Russell King [Sat, 22 Mar 2003 20:35:28 +0000 (20:35 +0000)]
[ARM] Remove head-netwinder.S

head-netwinder.S was a work around for old Netwinder NeTTrom
firmware.  It is no longer required.

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sat, 22 Mar 2003 06:52:38 +0000 (17:52 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years ago[PATCH] reduce stack in wireless/airo.c
Randy Dunlap [Sat, 22 Mar 2003 02:50:52 +0000 (18:50 -0800)]
[PATCH] reduce stack in wireless/airo.c

This reduces stack usage in drivers/net/wireless/airo.c by
dynamically allocating 2KB buffers in 2 places.

23 years ago[PATCH] reduce stack in cdrom/optcd.c
Randy Dunlap [Sat, 22 Mar 2003 02:50:43 +0000 (18:50 -0800)]
[PATCH] reduce stack in cdrom/optcd.c

This reduces stack usage in drivers/cdrom/optcd.c by
dynamically allocating a large (> 2 KB) buffer.

23 years agoMerge maxwell.earthlink.net:/usr/src/linus-2.5
James Simmons [Sat, 22 Mar 2003 01:32:45 +0000 (17:32 -0800)]
Merge maxwell.earthlink.net:/usr/src/linus-2.5
into maxwell.earthlink.net:/usr/src/fbdev-2.5

23 years ago[PATCH] Fix ncpfs and rpcgss order in fs/Kconfig
Petr Vandrovec [Fri, 21 Mar 2003 11:08:34 +0000 (03:08 -0800)]
[PATCH] Fix ncpfs and rpcgss order in fs/Kconfig

RPCSEC_GSS options are related to (only) nfs/nfsd, so it is
more logical to ask RPCSEC_GSS questions immediately after
nfs/nfsd, not after half of screen more questions.

NCPFS related options should appear immediately below
ncpfs question, not after Coda and RPCSEC...

23 years agoAvoid warning with modern gcc's in xfrm_policy.c
Linus Torvalds [Fri, 21 Mar 2003 11:08:10 +0000 (03:08 -0800)]
Avoid warning with modern gcc's in xfrm_policy.c

23 years ago[PATCH] get rid of __MOD_INC_USE_COUNT/__MOD_DEC_USE_COUNT
Christoph Hellwig [Fri, 21 Mar 2003 11:05:29 +0000 (03:05 -0800)]
[PATCH] get rid of __MOD_INC_USE_COUNT/__MOD_DEC_USE_COUNT

As the netfilter folks don't seem to have any interest in 2.5 currently
I decided to fix their last uses of those old module interfaces myself.
The implementation (get a reference first and release it again when
not actually needed) might be slightly suboptimial but the netfilter
team should just fix it if/when they get any interest in Linux 2.5/2.6.

Also fix the MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT to give more accurate
deprecation warnings.

23 years ago[PATCH] remove DEVFS_FL_REMOVABLE
Christoph Hellwig [Fri, 21 Mar 2003 11:02:28 +0000 (03:02 -0800)]
[PATCH] remove DEVFS_FL_REMOVABLE

Devfs tries to be super smart and rereads partition tables at all
kinds of wierd points.  This breaks a bunch of stuff were you
can't get the right disk changed information (i.e. CompactFlash).

If people actually need this kind of stuff they should just call partx
from devfsd instead of relying on the kernel doing something like this.

Cleans up the devfs code significatnly (aka removes tons of junk)

23 years ago[PATCH] make devfs_put() static to fs/devfs/base.c
Christoph Hellwig [Fri, 21 Mar 2003 11:02:12 +0000 (03:02 -0800)]
[PATCH] make devfs_put() static to fs/devfs/base.c

Not use anywhere else nor should it.

23 years ago[PATCH] rempove CONFIG_DVB_DEVFS_ONLY
Christoph Hellwig [Fri, 21 Mar 2003 11:02:02 +0000 (03:02 -0800)]
[PATCH] rempove CONFIG_DVB_DEVFS_ONLY

Adrian Bunk noticed that there's an exposed config option to use the
now gone DEVFS_FL_AUTO_DEVNUM in the dvb code - remove it.

23 years ago[PATCH] fix waitqueue leak in devfs_d_revalidate_wait
Christoph Hellwig [Fri, 21 Mar 2003 11:01:52 +0000 (03:01 -0800)]
[PATCH] fix waitqueue leak in devfs_d_revalidate_wait

devfs_d_revalidate_wait adds to a waitqueue but never removes from it
again so we there's one entry full of reused stack space added on
each call (I wonder how this ever worked).

The function has a few more bugs (it effectivly does a sleep_on instead
of checking for the actual even and can't deal with negative dentries
at all), but I just had breakfast and don't want to poke into devfs
internals deeper - I still hope Adam's smalldevfs will get merged
anyway..

23 years ago[PATCH] mm/swapfile.c manual reschedule
Ingo Molnar [Fri, 21 Mar 2003 11:01:43 +0000 (03:01 -0800)]
[PATCH] mm/swapfile.c manual reschedule

fix yet another manual reschedule point

23 years agoMerge ssh://master.kernel.org//home/hch/BK/xfs/linux-2.5/
Linus Torvalds [Fri, 21 Mar 2003 10:59:35 +0000 (02:59 -0800)]
Merge ssh://master.kernel.org//home/hch/BK/xfs/linux-2.5/
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] update ide headers to match changes
Alan Cox [Fri, 21 Mar 2003 10:40:56 +0000 (02:40 -0800)]
[PATCH] update ide headers to match changes

23 years ago[PATCH] remove __NO_VERSION__ from drm
Alan Cox [Fri, 21 Mar 2003 10:40:49 +0000 (02:40 -0800)]
[PATCH] remove __NO_VERSION__ from drm

23 years ago[PATCH] cpia -maintainers update
Alan Cox [Fri, 21 Mar 2003 10:33:54 +0000 (02:33 -0800)]
[PATCH] cpia -maintainers update

23 years ago[PATCH] remove lots of now dead code (no features though!)
Alan Cox [Fri, 21 Mar 2003 10:33:46 +0000 (02:33 -0800)]
[PATCH] remove lots of now dead code (no features though!)

Also add abort functionality

23 years ago[PATCH] remove __NO_VERSION__ from bttv
Alan Cox [Fri, 21 Mar 2003 10:33:39 +0000 (02:33 -0800)]
[PATCH] remove __NO_VERSION__ from bttv

23 years ago[PATCH] fix aec proc handling
Alan Cox [Fri, 21 Mar 2003 10:33:32 +0000 (02:33 -0800)]
[PATCH] fix aec proc handling

23 years ago[PATCH] add ide-default to the build
Alan Cox [Fri, 21 Mar 2003 10:33:24 +0000 (02:33 -0800)]
[PATCH] add ide-default to the build

23 years ago[PATCH] add ICH5 and Centrino to PIIX4
Alan Cox [Fri, 21 Mar 2003 10:33:16 +0000 (02:33 -0800)]
[PATCH] add ICH5 and Centrino to PIIX4

23 years ago[PATCH] fix more proc and other oddments
Alan Cox [Fri, 21 Mar 2003 10:33:08 +0000 (02:33 -0800)]
[PATCH] fix more proc and other oddments

23 years ago[PATCH] fix cmd640 ide locking
Alan Cox [Fri, 21 Mar 2003 10:33:00 +0000 (02:33 -0800)]
[PATCH] fix cmd640 ide locking

23 years ago[PATCH] fix /proc for amd ide
Alan Cox [Fri, 21 Mar 2003 10:32:55 +0000 (02:32 -0800)]
[PATCH] fix /proc for amd ide

23 years ago[PATCH] fix tuning of alim15x3
Alan Cox [Fri, 21 Mar 2003 10:32:47 +0000 (02:32 -0800)]
[PATCH] fix tuning of alim15x3

23 years ago[PATCH] update ide-dma support
Alan Cox [Fri, 21 Mar 2003 10:32:40 +0000 (02:32 -0800)]
[PATCH] update ide-dma support

23 years ago[PATCH] update ide-disk to changes, remove all the driver ifs
Alan Cox [Fri, 21 Mar 2003 10:32:32 +0000 (02:32 -0800)]
[PATCH] update ide-disk to changes, remove all the driver ifs

23 years ago[PATCH] update ide-cd to new changes, add abort() handlers
Alan Cox [Fri, 21 Mar 2003 10:32:25 +0000 (02:32 -0800)]
[PATCH] update ide-cd to new changes, add abort() handlers

23 years ago[PATCH] update ide core
Alan Cox [Fri, 21 Mar 2003 10:32:19 +0000 (02:32 -0800)]
[PATCH] update ide core

- New style ide-default driver
- Don't attach non existant drives
- DRIVER()==NULL checks can go
- Ioctl checks that were missing are now in

23 years ago[PATCH] ide should check dma_on
Alan Cox [Fri, 21 Mar 2003 10:32:12 +0000 (02:32 -0800)]
[PATCH] ide should check dma_on