]> git.neil.brown.name Git - history.git/log
history.git
23 years agoMerge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
Jeff Garzik [Fri, 20 Sep 2002 19:16:36 +0000 (15:16 -0400)]
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/irda-2.5

23 years agoFix more IrDA __FUNCTION__ breakage. It now builds, yay.
Jeff Garzik [Fri, 20 Sep 2002 19:10:52 +0000 (15:10 -0400)]
Fix more IrDA __FUNCTION__ breakage.  It now builds, yay.

23 years agoMore __FUNCTION__ cleanups for IrDA
Jean Tourrilhes [Fri, 20 Sep 2002 16:31:50 +0000 (12:31 -0400)]
More __FUNCTION__ cleanups for IrDA

23 years agoupdate irda nsc-ircc driver:
Jean Tourrilhes [Fri, 20 Sep 2002 16:29:08 +0000 (12:29 -0400)]
update irda nsc-ircc driver:
o [FEATURE] Cleanly change speed back to 9600bps
o [CORRECT] Change speed under spinlock/irq disabled
o [CORRECT] Make sure interrupt handlers don't mess irq mask
o [CORRECT] Don't change speed if we haven't fully finished to Tx

23 years agoMerge bk://jfs.bkbits.net/linux-2.5
Linus Torvalds [Fri, 20 Sep 2002 06:46:43 +0000 (23:46 -0700)]
Merge bk://jfs.bkbits.net/linux-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoJFS: Fix compiler errors in xattr.c
Dave Kleikamp [Fri, 20 Sep 2002 10:15:28 +0000 (05:15 -0500)]
JFS: Fix compiler errors in xattr.c

Fix errors due to header differences between mainline kernel and
acl.bestbits.org patches.

23 years agoMerge jfs@jfs.bkbits.net:linux-2.5
Dave Kleikamp [Fri, 20 Sep 2002 09:05:04 +0000 (04:05 -0500)]
Merge jfs@jfs.bkbits.net:linux-2.5
into kleikamp.austin.ibm.com:/home/shaggy/bk/jfs-2.5

23 years agoJFS: Put legacy OS/2 extended attributes in "os2." namespace
Dave Kleikamp [Fri, 20 Sep 2002 08:39:50 +0000 (03:39 -0500)]
JFS: Put legacy OS/2 extended attributes in "os2." namespace

Existing OS/2 extended attributes are stored without a namespace
prefix.  To avoid polluting the linux namespace, prepend "os2." when
listing the EAs but store "os2." EA names without the prefix.

Also disallow setting extended attributes that don't begin with
"user." or "os2."

23 years agoJFS: swsusp support
Dave Kleikamp [Fri, 20 Sep 2002 08:28:21 +0000 (03:28 -0500)]
JFS: swsusp support

23 years agoMerge http://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Fri, 20 Sep 2002 06:45:23 +0000 (23:45 -0700)]
Merge http://gkernel.bkbits.net/net-drivers-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
Jeff Garzik [Fri, 20 Sep 2002 10:36:45 +0000 (06:36 -0400)]
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agoLink eepro100 net driver with mii module, fixing static build
Steven Cole [Fri, 20 Sep 2002 07:34:23 +0000 (03:34 -0400)]
Link eepro100 net driver with mii module, fixing static build

23 years agoMerge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
Jeff Garzik [Fri, 20 Sep 2002 07:17:53 +0000 (03:17 -0400)]
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agoMerge http://linux-acpi.bkbits.net/linux-acpi
Linus Torvalds [Fri, 20 Sep 2002 06:44:00 +0000 (23:44 -0700)]
Merge http://linux-acpi.bkbits.net/linux-acpi
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] schedule() in_atomic() check
Robert Love [Fri, 20 Sep 2002 06:42:54 +0000 (23:42 -0700)]
[PATCH] schedule() in_atomic() check

This makes the in_atomic() check in schedule() actually work.  You
merged the PREEMPT_ACTIVE bits, we just need to handle the exit() case
correctly.

23 years agoMerge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
Jeff Garzik [Fri, 20 Sep 2002 05:57:41 +0000 (01:57 -0400)]
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agoACPI: Re-enable compilation of ACPI subordinate drivers as modules
Andy Grover [Fri, 20 Sep 2002 04:51:11 +0000 (21:51 -0700)]
ACPI: Re-enable compilation of ACPI subordinate drivers as modules
(Bjoern A. Zeeb)

23 years agoMerge bk://linus.bkbits.net/linux-2.5
Dave Kleikamp [Fri, 20 Sep 2002 04:48:47 +0000 (21:48 -0700)]
Merge bk://linus.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/ua/repos/j/jfs/linux-2.5

23 years agoACPI: Add include to provide PREFIX (Adrian Bunk)
Andy Grover [Fri, 20 Sep 2002 04:40:18 +0000 (21:40 -0700)]
ACPI: Add include to provide PREFIX (Adrian Bunk)

23 years agoMerge groveronline.com:/root/bk/linux-2.5
Andy Grover [Fri, 20 Sep 2002 04:35:24 +0000 (21:35 -0700)]
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi

23 years agoMerge home:v2.5/linux into kiwi.transmeta.com:/home/torvalds/v2.5/linux
Linus Torvalds [Fri, 20 Sep 2002 03:55:29 +0000 (20:55 -0700)]
Merge home:v2.5/linux into kiwi.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] missing unlock_kernel
David S. Miller [Fri, 20 Sep 2002 11:57:40 +0000 (04:57 -0700)]
[PATCH] missing unlock_kernel

I discovered this while auditing a large part of the remaining
lock_kernel users in the 2.5.x tree.

23 years agoMerge http://ncpfs.bkbits.net/linux-2.5
Linus Torvalds [Fri, 20 Sep 2002 08:57:38 +0000 (01:57 -0700)]
Merge http://ncpfs.bkbits.net/linux-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge bk://linux.bkbits.net/linux-2.5
Petr Vandrovec [Sat, 21 Sep 2002 00:45:59 +0000 (02:45 +0200)]
Merge bk://linux.bkbits.net/linux-2.5
into vc.cvut.cz:/mnt2/usr/src/bk/linus/ncpfs

23 years agoncpfs: Pass unknown packets from server to userspace daemon. Now we can
Petr Vandrovec [Sat, 21 Sep 2002 00:24:32 +0000 (02:24 +0200)]
ncpfs: Pass unknown packets from server to userspace daemon. Now we can
deliver server messages to logged-in users even with UDP or TCP transport.

23 years agoncpfs: Verify packet signatures on replies.
Petr Vandrovec [Sat, 21 Sep 2002 00:18:08 +0000 (02:18 +0200)]
ncpfs: Verify packet signatures on replies.

23 years agoncpfs: Proper handling of watchdog packets.
Petr Vandrovec [Fri, 20 Sep 2002 23:40:34 +0000 (01:40 +0200)]
ncpfs: Proper handling of watchdog packets.
ncpfs: Add support for packet signatures when using TCP transport.

23 years agoAdd support for text mount option string to ncpfs.
Petr Vandrovec [Fri, 20 Sep 2002 22:34:14 +0000 (00:34 +0200)]
Add support for text mount option string to ncpfs.

23 years agoFix bigendian problems in ncpfs.
Petr Vandrovec [Fri, 20 Sep 2002 22:22:18 +0000 (00:22 +0200)]
Fix bigendian problems in ncpfs.

23 years agoFix NCP_IOC_SETOBJECTNAME ioctl in ncpfs.
Petr Vandrovec [Fri, 20 Sep 2002 22:13:58 +0000 (00:13 +0200)]
Fix NCP_IOC_SETOBJECTNAME ioctl in ncpfs.

23 years agoFix vm86 system call interface to entry.S. This has been broken
Linus Torvalds [Fri, 20 Sep 2002 03:51:21 +0000 (20:51 -0700)]
Fix vm86 system call interface to entry.S. This has been broken
since the thread_info support went in (early July), and can cause
lockups at X startup etc.

23 years ago[PATCH] Adding driver model support in IDE
Patrick Mochel [Fri, 20 Sep 2002 03:49:33 +0000 (20:49 -0700)]
[PATCH] Adding driver model support in IDE

This adds the basic driver model support for the IDE subsystem.

Basically, it registers the controllers and devices with the driver
model core, which puts them in the device tree and gets them a directory
in driverfs.  The driverfs layout looks like this (on my workstation):

[mochel@cherise mochel]$ tree -d /sys/root/pci0/
/sys/root/pci0/
|-- 00:00.0
|-- 00:01.0
|   `-- 01:00.0
|-- 00:02.0
|   `-- 02:1f.0
|       `-- 03:00.0
|-- 00:1e.0
|   `-- 04:04.0
|-- 00:1f.0
|-- 00:1f.1
|   |-- ide0
|   |   |-- 0.0
|   |   `-- 0.1
|   `-- ide1
|       |-- 1.0
|       `-- 1.1

The drive bus IDs (the directory names)  are created using this:

sprintf(bus_id,"%u.%u",hwif->index,unit);

which should give each drive a unique name for the entire system, right?

I've also created a struct bus_type for IDE, which gives ide a directory
in the driverfs bus/ directory. The layout of that is:

[mochel@cherise mochel]$ tree -d /sys/bus/ide/
/sys/bus/ide/
|-- devices
|   |-- 0.0 -> ../../../root/pci0/00:1f.1/ide0/0.0
|   |-- 0.1 -> ../../../root/pci0/00:1f.1/ide0/0.1
|   |-- 1.0 -> ../../../root/pci0/00:1f.1/ide1/1.0
|   `-- 1.1 -> ../../../root/pci0/00:1f.1/ide1/1.1
`-- drivers

Those are symlinks under devices/ (which is why the drive names must be
unique..). When drivers are registered with the IDE core, they should also
be passed through the core, which will give them a directory in the
drivers/ directory just above.

In general, there is a bit of code that can be cleaned up, and some
explicit calls removed, because of the way the driver model core works.
Most of these are pretty simple, and barring any objections, I will
implement and send them to you.

23 years ago[PATCH] IDE fixes
Jens Axboe [Fri, 20 Sep 2002 03:45:00 +0000 (20:45 -0700)]
[PATCH] IDE fixes

starting from 2.5.35 IDE stopped working on my alphas because of
following problems:

- ide_hwif_configure() ignores BARs for IDE base/control registers
  and assumes legacy 0x1f0/0x170 ports, unless controller reports
  native PCI mode (ProgIf bits 0 and 2).

  This is incorrect, as there are quite a few IDE chips operating
  in "semi-legacy" mode, i.e. legacy interrupts, but functional
  BAR0-3, like cy82c693 and ali5229. I guess Andre could give a lot
  more examples. :-)

  This happens to work on i386 simply because BIOS usually assigns
  legacy values to BAR0-3, but we can't rely on it.

  Just checking respective resource->start for zero should work in
  all cases.

- ide_pci_check_iomem(): resource->flags == 0 means "unconfigured" as well.
  Thus we avoid false positives.

- Apparently cut'n'paste typo in cy82c693.c - wrong PCI IDs.

23 years agoDon't try to attach a driver to a pci device that already has one.
Linus Torvalds [Fri, 20 Sep 2002 03:43:03 +0000 (20:43 -0700)]
Don't try to attach a driver to a pci device that already has one.

23 years agoLinux 2.5.37 v2.5.37
Linus Torvalds [Fri, 20 Sep 2002 01:16:52 +0000 (18:16 -0700)]
Linux 2.5.37

23 years ago[PATCH] IDE maintainer updates
Jens Axboe [Fri, 20 Sep 2002 00:43:52 +0000 (17:43 -0700)]
[PATCH] IDE maintainer updates

23 years agoMerge http://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Fri, 20 Sep 2002 00:42:26 +0000 (17:42 -0700)]
Merge http://ppc.bkbits.net/for-linus-ppc64
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_new
Anton Blanchard [Sat, 21 Sep 2002 06:38:42 +0000 (16:38 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_new
into samba.org:/scratch/anton/linux-2.5_ppc64

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup
Anton Blanchard [Sat, 21 Sep 2002 06:36:54 +0000 (16:36 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup
into samba.org:/scratch/anton/linux-2.5_ppc64

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup
Anton Blanchard [Sat, 21 Sep 2002 06:03:06 +0000 (16:03 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoppc64: kill node_startnr, implement node_end_pfn
Anton Blanchard [Sat, 21 Sep 2002 05:48:48 +0000 (15:48 +1000)]
ppc64: kill node_startnr, implement node_end_pfn

23 years agoppc64: DISCONTIGMEM updates
Anton Blanchard [Sat, 21 Sep 2002 05:35:06 +0000 (15:35 +1000)]
ppc64: DISCONTIGMEM updates

23 years agoppc64: fix sys32_select race with max_fdset
Anton Blanchard [Sat, 21 Sep 2002 05:24:55 +0000 (15:24 +1000)]
ppc64: fix sys32_select race with max_fdset

23 years agoppc64: wrap pidhash reference for the moment
Anton Blanchard [Sat, 21 Sep 2002 05:10:01 +0000 (15:10 +1000)]
ppc64: wrap pidhash reference for the moment

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup
Anton Blanchard [Sat, 21 Sep 2002 04:06:27 +0000 (14:06 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoppc64: Add MAP_LOCKED
Anton Blanchard [Sat, 21 Sep 2002 03:59:15 +0000 (13:59 +1000)]
ppc64: Add MAP_LOCKED

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Sat, 21 Sep 2002 03:46:25 +0000 (13:46 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Sat, 21 Sep 2002 00:45:22 +0000 (10:45 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 20 Sep 2002 22:06:49 +0000 (08:06 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 20 Sep 2002 19:42:14 +0000 (05:42 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_new
Anton Blanchard [Fri, 20 Sep 2002 03:14:58 +0000 (13:14 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_new
into samba.org:/scratch/anton/linux-2.5_ppc64

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_new
Anton Blanchard [Fri, 20 Sep 2002 03:12:39 +0000 (13:12 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_new
into samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 20 Sep 2002 03:09:35 +0000 (13:09 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_Makefilecleanup

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 20 Sep 2002 02:45:49 +0000 (12:45 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 20 Sep 2002 02:27:24 +0000 (12:27 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoMerge samba.org:/scratch/anton/linux-2.5_ppc64_new
Anton Blanchard [Fri, 20 Sep 2002 01:30:43 +0000 (11:30 +1000)]
Merge samba.org:/scratch/anton/linux-2.5_ppc64_new
into samba.org:/scratch/anton/linux-2.5_ppc64

23 years ago[PATCH] pidhash-fix-2.5.36-A0
Ingo Molnar [Fri, 20 Sep 2002 00:11:14 +0000 (17:11 -0700)]
[PATCH] pidhash-fix-2.5.36-A0

the attached patch (against BK-curr) fixes a bug in the new PID allocator,
which bug can cause incorrect hashing of the PID structure which causes
infinite loops in find_pid(). [and potentially other problems.]

23 years agoAdd new MII lib functions mii_check_link, mii_check_media.
Jeff Garzik [Thu, 19 Sep 2002 22:12:52 +0000 (18:12 -0400)]
Add new MII lib functions mii_check_link, mii_check_media.
Use them in 8139cp.

23 years agoAdd support for get-MII-data ioctls in 8139cp net driver
Felipe Damasio [Thu, 19 Sep 2002 20:57:11 +0000 (16:57 -0400)]
Add support for get-MII-data ioctls in 8139cp net driver

23 years agoppc64: only calculate local when we need it, from paulus
Anton Blanchard [Thu, 19 Sep 2002 20:28:58 +0000 (06:28 +1000)]
ppc64: only calculate local when we need it, from paulus

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Thu, 19 Sep 2002 20:11:50 +0000 (06:11 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_new

23 years agoMerge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
Jeff Garzik [Thu, 19 Sep 2002 18:14:46 +0000 (14:14 -0400)]
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agoupdate eepro100 net driver to use standard MII phy API/lib,
Jeff Garzik [Thu, 19 Sep 2002 17:53:24 +0000 (13:53 -0400)]
update eepro100 net driver to use standard MII phy API/lib,
when implementing ethtool media ioctls.

No behavior should change with this patch (except the ethtool media
ioctls now work, of course)

Also, re-format comments to the right of the private struct to line up.

23 years agoUpdate eepro100 net driver's mdio_{read,write} functions
Jeff Garzik [Thu, 19 Sep 2002 17:28:05 +0000 (13:28 -0400)]
Update eepro100 net driver's mdio_{read,write} functions
to take 'struct net_device *' not 'long' as their first
argument.  This makes eepro100 compatible with the standard
MII ethtool API, preparing it for that support.

No functional changes should occur with this patch, if anything
changes at all it is a bug.  (and testing shows no changes...)

23 years agoHey... where did those e100 warnings come from?
Jeff Garzik [Thu, 19 Sep 2002 15:59:01 +0000 (11:59 -0400)]
Hey... where did those e100 warnings come from?
(kill more e100 compiler warnings)

23 years agoMerge home.transmeta.com:/home/torvalds/v2.5/akpm
Linus Torvalds [Thu, 19 Sep 2002 15:40:45 +0000 (08:40 -0700)]
Merge home.transmeta.com:/home/torvalds/v2.5/akpm
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] permit hugetlb pages to be allocated from highmem
Andrew Morton [Thu, 19 Sep 2002 15:37:26 +0000 (08:37 -0700)]
[PATCH] permit hugetlb pages to be allocated from highmem

Patch from Rohit Seth: allow hugetlb pages to be allocated from the
highmem zone.

23 years ago[PATCH] reduced locking in release_pages()
Andrew Morton [Thu, 19 Sep 2002 15:37:21 +0000 (08:37 -0700)]
[PATCH] reduced locking in release_pages()

From Marcus Alanen <maalanen@ra.abo.fi>

Don't retake the zone lock after spilling a batch of pages into the
buddy.

Instead, just clear local variable `zone' to indicate that no lock is
held.

This is actually a common case - whenever release_pages() is called
with exactly 16 pages (truncate, page reclaim..) Marcus' patch will
save a lock and an unlock.

Also, remove some lock-avoidance heuristics in
pagevec_deactivate_inactive(): the caller has already made these
checks, and the chance of the check here actually doing anything useful
is negligible.

23 years ago[PATCH] misc fixes
Andrew Morton [Thu, 19 Sep 2002 15:37:17 +0000 (08:37 -0700)]
[PATCH] misc fixes

- Spell Jeremy's name correctly.

- Fix compile warning in raw.c

- Do a waitqueue_active() test before waking klogd in printk.

  Not only is is negligibly faster, but the wake_up() in there causes
  deadlocks when you try to print debug info out from inside scheduler
  code.

  This patch gives a delightfully obscure way of avoiding the
  deadlock: kill off klogd.

- Fix a couple of compile warnings in the mtrr code.

23 years ago[PATCH] blk_init() cleanups
Andrew Morton [Thu, 19 Sep 2002 15:37:12 +0000 (08:37 -0700)]
[PATCH] blk_init() cleanups

From Christoph Hellwig, acked by Jens.

- remove some unneeded runtime initializers.

- remove the explicit call to hd_init() - it already goes through
module_init(), so we're currently running hd_init() twice.

23 years ago[PATCH] hugetlbpages cleanup
Andrew Morton [Thu, 19 Sep 2002 15:37:08 +0000 (08:37 -0700)]
[PATCH] hugetlbpages cleanup

From Christoph Hellwig, acked by Rohit.

- fix config.in description: we know we're on i386 and we also know
that a feature can only be enabled if the hw supports it, the code
alone is not enough

- the sysctl is VM-releated, so move it from /proc/sys/kernel tp
/proc/sys/vm

- adopt to standard sysctl names

23 years ago[PATCH] remove smp_lock.h inclusions from mm/*
Andrew Morton [Thu, 19 Sep 2002 15:37:04 +0000 (08:37 -0700)]
[PATCH] remove smp_lock.h inclusions from mm/*

From Christoph Hellwig.

There are no lock_kernel() calls in mm/

23 years ago[PATCH] fix mmap(MAP_LOCKED)
Andrew Morton [Thu, 19 Sep 2002 15:36:56 +0000 (08:36 -0700)]
[PATCH] fix mmap(MAP_LOCKED)

From Hubertus Franke.

The MAP_LOCKED flag to mmap() currently does nothing.  Hubertus' patch
fixes it so that the relevant mapping is locked into memory, if the
called has CAP_IPC_LOCK.

23 years ago[PATCH] fix suppression of page allocation failure warnings
Andrew Morton [Thu, 19 Sep 2002 15:36:52 +0000 (08:36 -0700)]
[PATCH] fix suppression of page allocation failure warnings

Somebody somewhere is stomping on PF_NOWARN, and page allocation
failure warnings are coming out of the wrong places.

So change the handling of current->flags to be:

int pf_flags = current->flags;

current->flags |= PF_NOWARN;
...
current->flags = pf_flags;

which is a generally more robust approach.

23 years ago[PATCH] readv/writev bounds checking fixes
Andrew Morton [Thu, 19 Sep 2002 15:36:47 +0000 (08:36 -0700)]
[PATCH] readv/writev bounds checking fixes

- writev currently returns -EFAULT if _any_ of the segments has an
invalid address.  We should only return -EFAULT if the first segment
has a bad address.

If some of the first segments have valid addresses we need to write
them and return a partial result.

- The current code only checks if the sum-of-lengths is negative.  If
individual segments have a negative length but the result is positive
we miss that.

So rework the code to detect this, and to be immune to odd wrapping
situations.

As a bonus, we save one pass across the iovec.

- ditto for readv.

The check for "does any segment have a negative length" has already
been performed in do_readv_writev(), but it's basically free here, and
we need to do it for generic_file_read/write anyway.

This all means that the iov_length() function is unsafe because of
wrap/overflow isues.  It should only be used after the
generic_file_read/write or do_readv_writev() checking has been
performed.  Its callers have been reviewed and they are OK.

The code now passes LTP testing and has been QA'd by Janet's team.

23 years ago[PATCH] writev speedup
Andrew Morton [Thu, 19 Sep 2002 15:36:43 +0000 (08:36 -0700)]
[PATCH] writev speedup

A patch from Hirokazu Takahashi to speed up the new sped-up writev
code.

Instead of running ->prepare_write/->commit_write for each individual
segment, we walk the segments between prepage and commit.  So
potentially much larger amounts of data are passed to commit_write(),
and prepare_write() is called much less often.

Added bonus: the segment walk happens inside the kmap_atomic(), so we
run kmap_atomic() once per page, not once per segment.

We've demonstrated a speedup of over 3x.  This is writing 1024-segment
iovecs where the individual segments have an average length of 24
bytes, which is a favourable case for this patch.

23 years ago[PATCH] swapout fix
Andrew Morton [Thu, 19 Sep 2002 15:36:39 +0000 (08:36 -0700)]
[PATCH] swapout fix

Silly bug which was halving swapout bandwidth: we've taken a copy of
page->mapping into a local convenience variable, but forgot to update
that local after adding the page to swapcache.

23 years ago[PATCH] remove /proc/sys/vm/dirty_sync_thresh
Andrew Morton [Thu, 19 Sep 2002 15:36:34 +0000 (08:36 -0700)]
[PATCH] remove /proc/sys/vm/dirty_sync_thresh

This was designed to be a really sterm throttling threshold: if dirty
memory reaches this level then perform writeback and actually wait on
it.

It doesn't work.  Because memory dirtiers are required to perform
writeback if the amount of dirty AND writeback memory exceeds
dirty_async_ratio.

So kill it, and rely just on the request queues being appropriately
scaled to the machine size (they are).

This is basically what 2.4 does.

23 years ago[PATCH] remove statm_pgd_range
Andrew Morton [Thu, 19 Sep 2002 15:36:29 +0000 (08:36 -0700)]
[PATCH] remove statm_pgd_range

Bill Irwin's patch to avoid having to walk pagetables while generating
/proc/stat output.

It can significantly overstate the size of various mappings because it
assumes that all VMAs are fully populated.

But spending 100% of one of my four CPUs running top(1) is a bug.

Bill says this fixes a bug, too.  The `SIZE' parameter is supposed to
display the amount of memory which the process would consume if it
faulted everything in.  But "before it only showed instantiated
3rd-level pagetables, so if something within a 4MB aligned range hadn't
been faulted in it would slip past the old one".

23 years ago[PATCH] _alloc_pages cleanup
Andrew Morton [Thu, 19 Sep 2002 15:36:22 +0000 (08:36 -0700)]
[PATCH] _alloc_pages cleanup

Patch from Martin Bligh.  It should only affect machines using
discontigmem.

"This patch is was originally from Andrea's tree (from SGI??), and has
been tweaked since by both Christoph (who cleaned up all the code),
and myself (who just hit it until it worked).

It removes _alloc_pages, and adds all nodes to the zonelists
directly, which also changes the fallback zone order to something more
sensible ...  instead of: "foreach (node) { foreach (zone) }" we now
do something more like "foreach (zone_type) { foreach (node) }"

Christoph has a more recent version that's fancier and does a couple
more cleanups, but it seems to have a bug in it that I can't track
down easily, so I propose we do the simple thing for now, and take the
rest of the cleanups when it works ...  it seems to build nicely on
top of this seperately to me.

Tested on 16-way NUMA-Q with discontigmem + NUMA support."

23 years ago[PATCH] free_area_init cleanup
Andrew Morton [Thu, 19 Sep 2002 15:35:54 +0000 (08:35 -0700)]
[PATCH] free_area_init cleanup

Patch from Martin Bligh.  It should only affect machines using
discontigmem.

"This patch cleans up free_area_init stuff, and undefines mem_map and
max_mapnr for discontigmem, where they were horrible kludges anyway
...  We just use the lmem_maps instead, which makes much more sense.
It also kills pgdat->node_start_mapnr, which is tarred with the same
brush.

It breaks free_area_init_core into a couple of sections, pulls the
allocation of the lmem_map back into the next higher function, and
passes more things via the pgdat.  But that's not very interesting,
the objective was to kill mem_map for discontigmem, which seems to
attract bugs like flypaper.  This brings any misuses to obvious
compile-time errors rather than wierd oopses, which I can't help but
feel is a good thing.

It does break other discontigmem architectures, but in a very obvious
way (they won't compile) and it's easy to fix.  I think that's a small
price to pay ...  ;-) At some point soon I will follow up with a patch
to remove free_area_init_node for the contig mem case, or at the very
least rename it to something more sensible, like __free_area_init.

Christoph has grander plans to kill mem_map more extensively in
addition to the attatched, but I've heard nobody disagree that it
should die for the discontigmem case at least.

Oh, and I renamed mem_map in drivers/pcmcia/sa1100 to pc_mem_map
because my tiny little brain (and cscope) find it confusing like that.

Tested on 16-way NUMA-Q with discontigmem + NUMA support and on a
standard PC (well, boots and appears functional).  On top of
2.5.33-mm4"

23 years ago[PATCH] clean up argument passing in writeback paths
Andrew Morton [Thu, 19 Sep 2002 15:35:46 +0000 (08:35 -0700)]
[PATCH] clean up argument passing in writeback paths

The writeback code paths which walk the superblocks and inodes are
getting an increasing arguments passed to them.

The patch wraps those args into the new `struct writeback_control',
and uses that instead.  There is no functional change.

The new writeback_control structure is passed down through the
writeback paths in the place where the old `nr_to_write' pointer used
to be.

writeback_control will be used to pass new information up and down the
writeback paths.  Such as whether the writeback should be non-blocking,
and whether queue congestion was encountered.

23 years agoMerge master.kernel.org:/home/davem/BK/warn-2.5
Linus Torvalds [Thu, 19 Sep 2002 15:30:12 +0000 (08:30 -0700)]
Merge master.kernel.org:/home/davem/BK/warn-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoacenic net driver update:
Jes Sorensen [Thu, 19 Sep 2002 15:29:59 +0000 (11:29 -0400)]
acenic net driver update:
* PCI write posting fixes, remove pa-specific code
* support 2.5.x kernels (synchronize_irq, cli/sti cleanups)

23 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Thu, 19 Sep 2002 15:28:56 +0000 (08:28 -0700)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge master.kernel.org:/home/davem/BK/sparc-2.5
Linus Torvalds [Thu, 19 Sep 2002 15:27:36 +0000 (08:27 -0700)]
Merge master.kernel.org:/home/davem/BK/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge http://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Thu, 19 Sep 2002 15:26:19 +0000 (08:26 -0700)]
Merge http://gkernel.bkbits.net/net-drivers-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoFix compiler warnings in e100 net driver
David S. Miller [Thu, 19 Sep 2002 15:24:25 +0000 (11:24 -0400)]
Fix compiler warnings in e100 net driver

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Thu, 19 Sep 2002 15:19:24 +0000 (08:19 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoPPC32: remove the last couple of BK tag lines
Paul Mackerras [Sat, 21 Sep 2002 00:49:47 +0000 (10:49 +1000)]
PPC32: remove the last couple of BK tag lines

23 years agoPPC32: Simplify the code in arch/ppc/kernel/ppc_htab.c a bit
Paul Mackerras [Sat, 21 Sep 2002 00:39:35 +0000 (10:39 +1000)]
PPC32: Simplify the code in arch/ppc/kernel/ppc_htab.c a bit
(no change in function).

23 years agoPPC32: Update config.in and Makefile in arch/ppc
Paul Mackerras [Sat, 21 Sep 2002 00:36:04 +0000 (10:36 +1000)]
PPC32: Update config.in and Makefile in arch/ppc

23 years agoPPC32: hand-merge arch/ppc/boot/Makefile
Paul Mackerras [Fri, 20 Sep 2002 18:48:13 +0000 (04:48 +1000)]
PPC32: hand-merge arch/ppc/boot/Makefile

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Thu, 19 Sep 2002 21:54:04 +0000 (07:54 +1000)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years ago[PATCH] block device oopses on shutdown in 2.5.x
David S. Miller [Thu, 19 Sep 2002 15:07:35 +0000 (08:07 -0700)]
[PATCH] block device oopses on shutdown in 2.5.x

The partition code registers a generic device for disks
which have a dev->driver non-NULL but whose dev->driver->remove
points into outer space.  So when reboot happens --> OOPS
in drivers/base/power.c:device_shutdown()

Ok, amusingly in my case dev->driver == &scsi_done(), hehe :-)

Two cases of uninitialized memory spotted, here is the patch.

23 years agoFix up some merge issues for the Makefle changes in the arch-splitup
Linus Torvalds [Thu, 19 Sep 2002 15:01:59 +0000 (08:01 -0700)]
Fix up some merge issues for the Makefle changes in the arch-splitup

23 years agoImprove sundance net driver RX buf size calculation
Jeff Garzik [Thu, 19 Sep 2002 14:52:17 +0000 (10:52 -0400)]
Improve sundance net driver RX buf size calculation
(suggested by Donald Becker)

23 years agoMerge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
Jeff Garzik [Thu, 19 Sep 2002 14:12:49 +0000 (10:12 -0400)]
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agomore fixes for sundance net driver:
Jeff Garzik [Thu, 19 Sep 2002 13:22:47 +0000 (09:22 -0400)]
more fixes for sundance net driver:
* default to PIO (fixes bugs in some chips), but add CONFIG_xxx option
  for MMIO
* proper support for variable MTU sizes
* add missing unregister_netdev in an error path
(with a kudos to Jason Lunz for merging most of this)

23 years agoUpdate eepro100 hardware resume to latest Becker eepro100.c
Jeff Garzik [Thu, 19 Sep 2002 13:02:50 +0000 (09:02 -0400)]
Update eepro100 hardware resume to latest Becker eepro100.c