]> git.hungrycats.org Git - linux/log
linux
23 years agoKernel version 2.5.19 v2.5.19
Linus Torvalds [Wed, 29 May 2002 04:19:11 +0000 (21:19 -0700)]
Kernel version 2.5.19

23 years agoFix IDE Makefile typo
Linus Torvalds [Wed, 29 May 2002 04:18:33 +0000 (21:18 -0700)]
Fix IDE Makefile typo

23 years ago[PATCH] 2.5.18 IDE 75
Martin Dalecki [Wed, 29 May 2002 03:22:20 +0000 (20:22 -0700)]
[PATCH] 2.5.18 IDE 75

 - Comment out config_chipset_for_pio from hpt366 driver. It seems to hang on it
   and many people consistently reported that this may be necessary.
   Well apparently this host chip is forced to be in DMA read mode anyway
   and we where undoing this there.

 - Apply small cosmetics to pdc202xx.c driver by Thierry Vignaud.
   His change log entries follow:

      - factorize constants with PDC_CLOCK and UDMA_SPEED_FLAG macros and
the init_high_16() static inline functions, thus removing floating
constants in code

      - remove unused variables and pci space read

      - kill useless code in pdc202xx_udma_irq_status() resulting in
removing unused variable: the code does lots of tests to check what
value to return but just always return the same exact value in all
code paths!
this also saves a few cpu & pci bus cyles by removing a useless read
in pci space

      - simplify #if/#else resulting in code duplication

      - make init_pdc202xx clearer

      - remove duplicated initializations in config_drive_xfer_rate() and
simplify code paths

 - Kill unused init_speed member from ata_device struct. Spotted by
   M.H.VanLeeuwen.

23 years ago[PATCH] swsusp: cleanup
Pavel Machek [Wed, 29 May 2002 03:00:18 +0000 (20:00 -0700)]
[PATCH] swsusp: cleanup

 - use list_for_each in head_of_free_region
 - cleanups from 2.4
 - fix for usb
 - kill broken queueing

23 years agoMerge USB update
Linus Torvalds [Wed, 29 May 2002 02:57:10 +0000 (19:57 -0700)]
Merge USB update

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Wed, 29 May 2002 02:51:11 +0000 (19:51 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Thu, 30 May 2002 03:36:58 +0000 (13:36 +1000)]
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 [Thu, 30 May 2002 00:10:26 +0000 (10:10 +1000)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years agoMerge quota update
Linus Torvalds [Wed, 29 May 2002 02:47:11 +0000 (19:47 -0700)]
Merge quota update

23 years ago[PATCH] Quota update [3/3]
Jan Kara [Wed, 29 May 2002 02:45:05 +0000 (19:45 -0700)]
[PATCH] Quota update [3/3]

Remove the old backward-compatible quota interface.

The patch also contains a renaming of functions vfs_{get|set}_info() to
vfs_{get|set}_dqinfo() and minor compilation fix needed for 2.5.18
(include <linux/namei.h>).

23 years ago[PATCH] Quota update [2/3]
Jan Kara [Wed, 29 May 2002 02:45:00 +0000 (19:45 -0700)]
[PATCH] Quota update [2/3]

This changes the sysctl interface to use reasonable names in
/proc/sys/fs/quota/

23 years ago[PATCH] Quota update [1/3]
Jan Kara [Wed, 29 May 2002 02:44:55 +0000 (19:44 -0700)]
[PATCH] Quota update [1/3]

I ported the quota changes to 2.5.18.  The first one is just a minor
change to Makefile and Config.in to not build quota.c when not needed.

23 years agoMerge master.kernel.org:/home/mochel/BK/linux-2.5-linus
Linus Torvalds [Wed, 29 May 2002 02:17:44 +0000 (19:17 -0700)]
Merge master.kernel.org:/home/mochel/BK/linux-2.5-linus
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] 2.5.18 IDE 74
Martin Dalecki [Wed, 29 May 2002 02:17:00 +0000 (19:17 -0700)]
[PATCH] 2.5.18 IDE 74

- Simplify the ide-pci code further.

23 years ago[PATCH] 2.5.18 IDE 73
Martin Dalecki [Wed, 29 May 2002 02:14:28 +0000 (19:14 -0700)]
[PATCH] 2.5.18 IDE 73

 - Merge ide-probe.c and ide-features.c in to one single file.  They are
   mutually doing basically the same and in esp. in case of the device ID
   retrieval there *is* quite a lot of code duplication between them.
   ide-geometry.c fits there as well.

 - Remove ide_xfer_verbose - it wasn't really used.

 - Don't allow check_partition to be more clever then the writer of a driver.
   It was interfering with drivers which check partitions as they go and
   finally if we want to spew something about it - we can do it ourself.

 - Eliminate ide_geninit(). We scan for partitions now inside the recently
   introduced attach method. register_disk() is broken by the way and 90% of
   places where it's used it is doing literally nothing. Either some one didn't
   finish some code or the code is basically just junk from the past.

   Anyway we grok the partitions now one by one as we detect the channels.

 - ide_driveid_update is gone. We don't report the drive id through /proc/ide
   and we don't have to update it any longer on the fly. Still someone out there
   complaining that it went away!?

 - Use the global driver spin-lock to protect data structure access in the
   ide_register_subdriver() function instead of blatantly disabling all
   interrupts.

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make-drivers
Linus Torvalds [Wed, 29 May 2002 02:10:12 +0000 (19:10 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make-drivers
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make
Kai Germaschewski [Wed, 29 May 2002 04:47:45 +0000 (23:47 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-drivers

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ios
Kai Germaschewski [Wed, 29 May 2002 04:46:25 +0000 (23:46 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ios
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make

23 years agokbuild: Hand merge link order change form driverfs update.
Kai Germaschewski [Wed, 29 May 2002 04:40:44 +0000 (23:40 -0500)]
kbuild: Hand merge link order change form driverfs update.

23 years agoMerge
Kai Germaschewski [Wed, 29 May 2002 04:37:15 +0000 (23:37 -0500)]
Merge

23 years agoMerge linux-isdn@linux-isdn.bkbits.net:linux-2.5.make-ois
Kai Germaschewski [Wed, 29 May 2002 04:31:45 +0000 (23:31 -0500)]
Merge linux-isdn@linux-isdn.bkbits.net:linux-2.5.make-ois
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ios

23 years agoMerge master.kernel.org:/home/mochel/BK/linux-2.5
Patrick Mochel [Wed, 29 May 2002 01:54:23 +0000 (18:54 -0700)]
Merge master.kernel.org:/home/mochel/BK/linux-2.5
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-sync

23 years ago[PATCH] Fix the utf8 option of vfat (again)
Hirofumi Ogawa [Wed, 29 May 2002 01:48:27 +0000 (18:48 -0700)]
[PATCH] Fix the utf8 option of vfat (again)

This patch fixes the bug which happens when utf8 option was used,
by using iocharset for upper/lower conversion.

It's a bit strange that utf8 use iocharset, but this is still needed.

23 years agoMerge home.transmeta.com:/home/torvalds/v2.5/blk-plug
Linus Torvalds [Wed, 29 May 2002 01:45:41 +0000 (18:45 -0700)]
Merge home.transmeta.com:/home/torvalds/v2.5/blk-plug
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] block plugging reworked/fixed
Jens Axboe [Wed, 29 May 2002 01:40:17 +0000 (18:40 -0700)]
[PATCH] block plugging reworked/fixed

This implements what we discussed, basically just maintaing a plug list
from the block layer as a direct parallel to the tq_disk task queue we
had before.  blk_run_queues() now splices the blk_plug_list to avoid
holding the blk_plug_lock across all the request_fn calls.

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ok
Kai Germaschewski [Tue, 28 May 2002 18:46:26 +0000 (13:46 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ok
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-drivers

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ok
Kai Germaschewski [Tue, 28 May 2002 18:43:52 +0000 (13:43 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ok
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Tue, 28 May 2002 18:41:40 +0000 (13:41 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-ok

23 years agoAdd missing thermal interrupt prototype.
Linus Torvalds [Tue, 28 May 2002 17:46:58 +0000 (10:46 -0700)]
Add missing thermal interrupt prototype.

23 years agoMerge kroah.com:/home/linux/linux/BK/bleeding-2.5
Greg Kroah-Hartman [Tue, 28 May 2002 16:47:18 +0000 (09:47 -0700)]
Merge kroah.com:/home/linux/linux/BK/bleeding-2.5
into kroah.com:/home/linux/linux/BK/gregkh-2.5

23 years agoUSB SL811HS host controller driver.
Greg Kroah-Hartman [Tue, 28 May 2002 16:39:52 +0000 (09:39 -0700)]
USB SL811HS host controller driver.

Added the driver to the 2.5 tree.  The original code for 2.4 was
written by Pei Liu <pbl@cypress.com> but cleaned up a bit and
ported to 2.5 by me.  Any problems in the driver is probably due to
my messing with it.

This driver is for the SL811HS USB host controller chip from
Cypress and is typically contained on a ARM based embedded
system.

23 years agokbuild: Provide correct 'make some/dir/file.[iso]'
Kai Germaschewski [Tue, 28 May 2002 16:35:34 +0000 (11:35 -0500)]
kbuild: Provide correct 'make some/dir/file.[iso]'

Don't include Rules.make in the top-level Makefile, we don't
actually build anything from there, so we don't need the rules.

If asked to build some file in a subdirectory, descend into the
subdir and build it from there - only there we can know what
extra flags etc we have to add.

This also works for building preprocessed [.i] and assembler
output [.s].

23 years ago[PATCH] fix thermal_interrupt
Brian Gerst [Tue, 28 May 2002 16:31:06 +0000 (09:31 -0700)]
[PATCH] fix thermal_interrupt

The asm stub for thermal_interrupt was not being created.

23 years agokbuild: Build targets locally
Kai Germaschewski [Tue, 28 May 2002 16:29:36 +0000 (11:29 -0500)]
kbuild: Build targets locally

Targets should always be built from the Makefile local to the subdir
they are in. So build scripts/* from scripts/Makefile.

Clean up scripts/Makefile as we go.

23 years agokbuild: beautify Makefile / Rules.make...
Kai Germaschewski [Tue, 28 May 2002 16:14:17 +0000 (11:14 -0500)]
kbuild: beautify Makefile / Rules.make...

Basically only cosmetics, and move the 'update-modverfile:'
rule from Rules.make to the top-level Makefile, since that's the
only place where it's used.

23 years ago[PATCH] DIE "Russel", DIE!
Rusty Russell [Tue, 28 May 2002 16:12:09 +0000 (09:12 -0700)]
[PATCH] DIE "Russel", DIE!

My name is *not* GPL: you may not derive works without approval.

Rusty.
PS.  I've also applied for a patent...

23 years agoAllocate new mm_struct for execve() early, so that we have
Linus Torvalds [Tue, 28 May 2002 15:55:46 +0000 (08:55 -0700)]
Allocate new mm_struct for execve() early, so that we have
access to it by the time we start copying arguments.

We don't actually use it at this point yet.

23 years agokbuild: Remove remaining O_TARGET in drivers/*/Makefile
Kai Germaschewski [Tue, 28 May 2002 15:51:38 +0000 (10:51 -0500)]
kbuild: Remove remaining O_TARGET in drivers/*/Makefile

23 years agokbuild: Group together descending/linking in drivers/*
Kai Germaschewski [Tue, 28 May 2002 15:16:47 +0000 (10:16 -0500)]
kbuild: Group together descending/linking in drivers/*

We currently decide whether we need to descend into the subdirs of
drivers/ in drivers/Makefile, but link the resulting objects from
the top-level Makefile.

Making these two decisions at the same time (in drivers/Makefile) cleans
up the top-level Makefile quite a bit.

Link order does not change at all apart from sound/, which is now linked
last.

23 years agoMerge http://linus.bkbits.net/linux-2.5
Kai Germaschewski [Tue, 28 May 2002 15:15:02 +0000 (08:15 -0700)]
Merge http://linus.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/ua/repos/l/linux-isdn/linux-2.5.make

23 years ago[PATCH] i386 mm init cleanup part 2
Brian Gerst [Tue, 28 May 2002 15:02:37 +0000 (08:02 -0700)]
[PATCH] i386 mm init cleanup part 2

The remaining cleanups are to switch to using pfn instead of vaddr, and
improve readability.

23 years ago[PATCH] i386 mm init cleanup part 1
Brian Gerst [Tue, 28 May 2002 15:02:27 +0000 (08:02 -0700)]
[PATCH] i386 mm init cleanup part 1

This revised patch starts untangling the mess in arch/i386/mm/init.c
- Pull setting bits in cr4 out of the loop
- Make __PAGE_KERNEL a variable and cache the global bit there.
- New pfn_pmd() for large pages.

23 years ago[PATCH] i386 head.S cleanup
Brian Gerst [Tue, 28 May 2002 15:02:12 +0000 (08:02 -0700)]
[PATCH] i386 head.S cleanup

Cleans up some redundant code in head.S:
- Combine checking of AC and ID eflags.
- Streamline the setting of %cr0.

23 years agoRemove re-use of "struct mm_struct" at execve() time.
Linus Torvalds [Tue, 28 May 2002 15:01:57 +0000 (08:01 -0700)]
Remove re-use of "struct mm_struct" at execve() time.

This will eventually allow us to copy argc/argv without
any intermediate storage (removing current argument size
limitations).

23 years agoMerge master.kernel.org:/home/mochel/BK/linux-2.5-linus
Patrick Mochel [Tue, 28 May 2002 14:03:13 +0000 (07:03 -0700)]
Merge master.kernel.org:/home/mochel/BK/linux-2.5-linus
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-linus

23 years agokbuild: Don't overwrite Rules.make's first_rule
Kai Germaschewski [Tue, 28 May 2002 13:14:59 +0000 (08:14 -0500)]
kbuild: Don't overwrite Rules.make's first_rule

Many Makefiles did a put an own rule in front of
"include $(TOPDIR)/Rules.make" for no good reason at all,
the only places where it made sense are converted to using
EXTRA_TARGETS now.

23 years ago[PATCH] Clean out routines that were obsoleted by previous
Trond Myklebust [Tue, 28 May 2002 13:04:06 +0000 (06:04 -0700)]
[PATCH] Clean out routines that were obsoleted by previous

Remove obsolete NFS and RPC routines.
Remove 'inline' attribute from xdr_decode_fattr().

23 years ago[PATCH] RPC client receive deadlock removal on HIGHMEM systems
Trond Myklebust [Tue, 28 May 2002 13:03:53 +0000 (06:03 -0700)]
[PATCH] RPC client receive deadlock removal on HIGHMEM systems

Remove another class of rpciod deadlocks on HIGHMEM systems. Kick habit of
keeping pages kmap()ed for the entire duration of NFS
read/readdir/readlink operations.

Use struct page directly in RPC client data receive buffer. TCP and UDP
sk->data_ready() bottom-halves copy (and checksum when needed) data into
pages rather than iovecs. atomic_kmap() of single pages is used for the
copy.

include/linux/xdr.h
   Declare structure for copying an sk_buff here rather than in xprt.c.
   Forward declaration of new functions.

include/linux/sunrpc/xprt.h
   RPC client receive buffer changed to use new format 'struct xdr_buf'.

net/sunrpc/clnt.c
   Initialize new format receive buffer.

net/sunrpc/sunrpc_syms.c
   Export xdr_inline_pages(), xdr_shift_buf()

net/sunrpc/xdr.c
   xdr_inline_pages() inlines pages into the receive buffer.
   xdr_partial_copy_from_skb() replaces csum_partial_copy_to_page_cache()
and copy code in tcp_read_request(). Provides sendfile()-style
method for copying data from an skb into a struct xdr_buf.
   xdr_shift_buf() replaces xdr_shift_iovec() for when we overestimate
the size of the RPC/NFS header.

net/sunrpc/xprt.c
   Adapt UDP and TCP receive routines to use new format xdr_buf.

include/linux/nfs_xdr.h
   struct nfs_readargs, nfs_readdirargs, nfs_readlinkargs,
nfs3_readdirargs, nfs3_readlinkargs all transmit page information.
   struct nfs_readdirres, nfs_readlinkres, nfs3_readlinkres obsoleted.
   struct nfs_rpc_ops->readlink(), readdir(), read() now send pages

fs/nfs/dir.c
   Adapt to new format ->readdir().
   Avoid kmap() around the RPC call.

fs/nfs/read.c
   Adapt to new format ->read() and struct nfs_readargs.

fs/nfs/symlink.c
   Adapt to new format ->readlink().

fs/nfs/proc.c
   Convert nfs_proc_readlink(), nfs_proc_readdir(), nfs_proc_read()

fs/nfs/nfs2xdr.c
   Convert XDR routines to transmit page information.
   Remove duplicate zeroing of pages when server returns a short read.

fs/nfs/nfs3proc.c
   Convert nfs3_proc_readlink(),nfs3_proc_readdir(),nfs3_proc_read()

fs/nfs/nfs3xdr.c
   Convert XDR routines to transmit page information.
   Remove duplicate zeroing of pages when server returns a short read.

Cheers,
  Trond

23 years ago[PATCH] Teach RPC client to send pages rather than iovecs.
Trond Myklebust [Tue, 28 May 2002 13:03:42 +0000 (06:03 -0700)]
[PATCH] Teach RPC client to send pages rather than iovecs.

Stop rpciod from deadlocking against itself in map_new_virtual() on HIGHMEM
systems. RPC client currently has to keep all pages that are scheduled for
transmission kmap()ed into an iovec for the entire duration of the call.
We only actually need to kmap() pages while making the (non-blocking)
call to sock_sendmsg().

NOTE: When transmitting several pages in one RPC call, sock_sendmsg()
requires us to kmap() *all* those pages at the same time. Opens for
deadlocks between rpciod and some other process that also kmaps more
than 1 page at a time.
For the TCP case we can solve later by converting to TCP_CORK+sendpage().

include/linux/sunrpc/xdr.h
   Introduce 'struct xdr_buf' in order to allow RPC layer to handle
   pages directly.

include/linux/sunrpc/xprt.h:
   Convert the RPC client send-buffer to the new format.

net/sunrpc/clnt.c
   Initialize the new format RPC send-buffer.

net/sunrpc/sunrpc_syms.c
   Export xdr_encode_pages()

net/sunrpc/xdr.c
   xdr_kmap() kmap()+copy a struct xdr_buf into an iovec array.
   xdr_kunmap() clean up after xdr_kmap().
   xdr_encode_pages() used to inline pages for transmission.

net/sunrpc/xprt.c
   xprt_sendmsg() needs to kmap() the pages into an iovec for transmission.

include/linux/nfs_xdr.h
   struct nfs_writeargs transmits full page information.
   Convert nfs_rpc_ops->write() to send pages.

fs/nfs/write.c
   Adapt to new format nfs_writeargs / nfs_rpc_ops->write()

fs/nfs/proc.c
   Convert nfs_proc_write().

fs/nfs/nfs2xdr.c
   Convert nfs_xdr_writeargs()

fs/nfs/nfs3proc.c
   Convert nfs3_proc_write().

fs/nfs/nfs3xdr.c
   Convert nfs3_xdr_writeargs()

Cheers,
   Trond

23 years ago[PATCH] [2.4] [2.5] Fix PPPoATM crash on disconnection
Luca Barbieri [Tue, 28 May 2002 13:01:58 +0000 (06:01 -0700)]
[PATCH] [2.4] [2.5] Fix PPPoATM crash on disconnection

PPPoATM uses tasklet_disable() on a tasklet inside a struct and then
frees the struct, leaving a pointer to the freed tasklet inside tasklet
lists.

This patch replaces tasklet_disable() with tasklet_kill().

23 years agoMerge signal arch cleanups
Linus Torvalds [Tue, 28 May 2002 12:58:44 +0000 (05:58 -0700)]
Merge signal arch cleanups

23 years ago[PATCH] consolidate errno definitions
Stephen Rothwell [Tue, 28 May 2002 12:52:44 +0000 (05:52 -0700)]
[PATCH] consolidate errno definitions

Just remove duplicates among the asm-*/errno.h.

23 years ago[PATCH] consolidate do_signal
Stephen Rothwell [Tue, 28 May 2002 12:52:39 +0000 (05:52 -0700)]
[PATCH] consolidate do_signal

11 out of our 17 architectures have basically the same code
in arch/../kernel/signal.c:do_signal.  This patch creates a
common function for that bit of code and uses it in the places
it can be.

The 2.5.15 version of this patch builds and runs on i386 and PPC and has
been briefly looked at by the CRIS, PARISC, PPC64 and x86_64 maintainers.

As a bonus, this fixes the "ignore SIGURG" bug for 9 more architectures
(i386 and PPC already were fixed).

23 years ago[PATCH] consolidate generic peices of the siginfo structures and associated stuff
Stephen Rothwell [Tue, 28 May 2002 12:52:34 +0000 (05:52 -0700)]
[PATCH] consolidate generic peices of the siginfo structures and associated stuff

This patch creates asm-generic/siginfo.h and uses it to remove a
lot of duplicate code in the various asm-*/siginfo.h files.  Some
if it is a little ugly, but I think it will be worth it just to
help us eliminate some of the bugs that have come from code copying.

23 years ago[PATCH] consolidate arch specific copy_siginfo_to_user
Stephen Rothwell [Tue, 28 May 2002 12:51:30 +0000 (05:51 -0700)]
[PATCH] consolidate arch specific copy_siginfo_to_user

This patch moves a version of copy_siginfo_to_user that is common to
ten of our architectures into the gerneic code and allows the other
architectures to override it.  I suspect more of the remaining
architectures will be able to use it as well once it is fixed (patch
to follow).

23 years ago[PATCH] SRM cleanup for generic Alpha kernels
Jan-Benedict Glaw [Tue, 28 May 2002 12:41:17 +0000 (05:41 -0700)]
[PATCH] SRM cleanup for generic Alpha kernels

- alpha_using_srm is #define'd for machine specific kernels, but
  is a real integer variable for generic Alpha kernels. Export
  it...

- The callback_* functions are _always_ there (they might be NOP
  functions owith generic kernels on non-SRM machines).

- srm_env can now be compiled on generic alpha kernels. An
  explicit check for SRM capability was always there:-)

23 years agoMerge home.transmeta.com:/home/torvalds/v2.5/blk-plug
Linus Torvalds [Tue, 28 May 2002 12:39:56 +0000 (05:39 -0700)]
Merge home.transmeta.com:/home/torvalds/v2.5/blk-plug
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] block plugging reworked
Jens Axboe [Tue, 28 May 2002 12:39:17 +0000 (05:39 -0700)]
[PATCH] block plugging reworked

This patch provides the ability for a block driver to signal it's too
busy to receive more work and temporarily halt the request queue. In
concept it's similar to the networking netif_{start,stop}_queue helpers.

To do this cleanly, I've ripped out the old tq_disk task queue. Instead
an internal list of plugged queues is maintained which will honor the
current queue state (see QUEUE_FLAG_STOPPED bit). Execution of
request_fn has been moved to tasklet context. blk_run_queues() provides
similar functionality to the old run_task_queue(&tq_disk).

Now, this only works at the request_fn level and not at the
make_request_fn level. This is on purpose: drivers working at the
make_request_fn level are essentially providing a piece of the block
level infrastructure themselves. There are basically two reasons for
doing make_request_fn style setups:

o block remappers. start/stop functionality will be done at the target
  device in this case, which is the level that will signal hardware full
  (or continue) anyways.

o drivers who wish to receive single entities of "buffers" and not
  merged requests etc. This could use the start/stop functionality. I'd
  suggest _still_ using a request_fn for these, but set the queue
  options so that no merging etc ever takes place. This has the added
  bonus of providing the usual request depletion throttling at the block
  level.

23 years ago[PATCH] TLB shootdown infrastructure in 2.5
Anton Blanchard [Tue, 28 May 2002 12:32:53 +0000 (05:32 -0700)]
[PATCH] TLB shootdown infrastructure in 2.5

It looks like a race betwen exec_mmap and access_process_vm in
proc_pid_cmdline (or any other procfs functions that uses
access_process_vm).

23 years ago[PATCH] a few ll_rw_blk exports missing
Jens Axboe [Tue, 28 May 2002 12:32:41 +0000 (05:32 -0700)]
[PATCH] a few ll_rw_blk exports missing

o blk_get_request() and blk_put_request() needs exporting
o blk_max_pfn is used by BLOCK_BOUNCE_ANY, which modular SCSI needs

23 years ago[PATCH] Robert Love likes leather and chains
Robert Love [Tue, 28 May 2002 12:03:44 +0000 (05:03 -0700)]
[PATCH] Robert Love likes leather and chains

> Hmm. That patch does not compile. "p->cpu" does not exist, it's
> "p->thread_info->cpu". Tssk.

Ouch, I am bad.  Sorry.

Make the ChangeLog entry something really defamatory.

Robert Love

23 years ago[PATCH] O(1) count_active_tasks
Robert Love [Tue, 28 May 2002 12:03:31 +0000 (05:03 -0700)]
[PATCH] O(1) count_active_tasks

This is William Irwin's algorithmically O(1) version of
count_active_tasks (which is currently O(n) for n total tasks on the
system).

I like it a lot: we become O(1) because now we count uninterruptible
tasks, so we can return (nr_uninterruptible + nr_running).  It does not
introduce any overhead or hurt the case for small n, so I have no
complaints.

This copy has a small optimization over the original posting, but is
otherwise the same thing wli posted earlier.  I have tested to make sure
this returns accurate results and that the kernel profile improves.

23 years agoPCI: start to use common fields of struct device_driver more
Patrick Mochel [Tue, 28 May 2002 11:02:33 +0000 (04:02 -0700)]
PCI: start to use common fields of struct device_driver more
- add struct device_driver field to struct pci_driver
- make sure those fields get set on driver registration (and register with core)
- remove internal pci_drivers

23 years agoBeef up centralized driver mgmt:
Patrick Mochel [Tue, 28 May 2002 10:59:17 +0000 (03:59 -0700)]
Beef up centralized driver mgmt:
- add name, bus, lock, refcount, bus_list, devices, and dir fields to struct
- add release callback to be called when  refcount hits 0
- add helpers for registration and refcounting
- create directory for driver in bus's directory

23 years ago[PATCH] 2.5.18 pci/setup-bus.c: incorrect BUG() calls
Ivan Kokshaysky [Tue, 28 May 2002 10:04:43 +0000 (03:04 -0700)]
[PATCH] 2.5.18 pci/setup-bus.c: incorrect BUG() calls

Previously assigned resources are perfectly valid - just silently
ignore them.

23 years ago[PATCH] real-time info in /proc/<pid>/stats
Robert Love [Tue, 28 May 2002 10:02:12 +0000 (03:02 -0700)]
[PATCH] real-time info in /proc/<pid>/stats

Attached patch adds output of rt_priority and policy to
/proc/<pid>/stats.

This will not break compatibility with existing applications and will
allow ps(1) and friends to display pertinent scheduling information.

23 years ago[PATCH] Trivial compile fix to fs/binfmt_em86.c
Jan-Benedict Glaw [Tue, 28 May 2002 10:01:59 +0000 (03:01 -0700)]
[PATCH] Trivial compile fix to fs/binfmt_em86.c

Please apply this patch to let binfmt_em86.c compile again.

23 years agoMore drm updates from Keith Whitwell
Linus Torvalds [Tue, 28 May 2002 09:58:56 +0000 (02:58 -0700)]
More drm updates from Keith Whitwell

23 years ago[PATCH] 2.5.18: unnamed PCI bus resources
Ivan Kokshaysky [Tue, 28 May 2002 09:53:27 +0000 (02:53 -0700)]
[PATCH] 2.5.18: unnamed PCI bus resources

As pointed out by Russell King, resource name pointers
of the secondary PCI buses are left uninitialized in the
non-x86 PCI allocation path.

Assigning these pointers in pci_add_new_bus() fixes the problem.

23 years agoMerge http://fbdev.bkbits.net:8080/fbdev-2.5
Linus Torvalds [Tue, 28 May 2002 09:27:12 +0000 (02:27 -0700)]
Merge http://fbdev.bkbits.net:8080/fbdev-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] 2.5.18 QUEUE_EMPTY and the unpleasant friends.
Martin Dalecki [Tue, 28 May 2002 09:25:46 +0000 (02:25 -0700)]
[PATCH] 2.5.18 QUEUE_EMPTY and the unpleasant friends.

 - Eliminate all usages of the obscure QUEUE_EMPTY macro.

 - Eliminate all unneccessary checks for RQ_INACTIVE, this can't happen during
   the time we run the request strategy routine of a single major number block
   device. Perhaps the still remaining usage in scsi and i2o_block.c should be
   killed as well, since the upper ll_rw_blk layer shouldn't pass inactive
   requests down.

Those are all places where we have deeply burried and hidden major number
indexed arrays. Let's deal with them slowly...

23 years ago[PATCH] airo
Martin Dalecki [Tue, 28 May 2002 09:25:34 +0000 (02:25 -0700)]
[PATCH] airo

Since apparently no body else did care thus far, and since I'm using
this driver, well here it comes:

 - Adjust the airo wireless LAN card driver for the fact that modules
   don't export symbols by default any longer.

 - Make some stuff which obivously should be static there static as well.
   (Plenty of code in Linux actually deserves a review for this
   far too common bug...)

23 years ago[PATCH] 2.5.18 IDE 72
Martin Dalecki [Tue, 28 May 2002 09:25:22 +0000 (02:25 -0700)]
[PATCH] 2.5.18 IDE 72

 - Replace ide_delay_50m with mdelay(50). There is absolutely no reason we
   should behave different behaviors whatever IDECS support is enabled or not.

 - Kill last parameter of ide_register_hw(). It should return a pointer to the
   interface registered later.

 - pdc202xx patches by Bartomiej onierkiewicz.

 - ServerWorks chi pset support cleanup by Andrej Panin.

 - Move temporarily ide_setup_ports to main.c unfold it in ide-pnp.c.

23 years ago[PATCH] preempt-safe net/ code
Robert Love [Tue, 28 May 2002 09:22:13 +0000 (02:22 -0700)]
[PATCH] preempt-safe net/ code

This fixes three locations in net/ where per-CPU data could bite us
under preemption.  This is the result of an audit I did and should
constitute all of the unsafe code in net/.

In net/core/skbuff.c I did not have to introduce any code - just
rearrange the grabbing of smp_processor_id() to be in the interrupt off
region.  Pretty clean fixes.

Note in the future we can use put_cpu() and get_cpu() to grab the CPU#
safely.  I will send a patch to Marcelo so we can have a 2.4 version
(which doesn't do the preempt stuff), too...

23 years ago[PATCH] set_cpus_allowed optimization
Robert Love [Tue, 28 May 2002 09:21:53 +0000 (02:21 -0700)]
[PATCH] set_cpus_allowed optimization

This adds an optimization to set_cpus_allowed: if the task is not
running, there is no sense in kicking the migration_threads into action,
we just need to update task->cpu.  This was suggested by Mike Kravetz.

Besides being an optimization, this would prevent any future race
between set_cpus_allowed and the migration_threads.

23 years ago[PATCH] documentation for the new scheduler
Robert Love [Tue, 28 May 2002 09:21:39 +0000 (02:21 -0700)]
[PATCH] documentation for the new scheduler

This adds documentation about the O(1) scheduler to Documentation/.  The
new scheduler is complicated and providing future scheduler hackers some
background seems a Good Thing to me.

Specifically:

- add Documentation/sched-coding.txt: an overview of the functions,
  magic numbers, and variables in the scheduler as well as (most
  importantly) a review of the locking semantics.

- add Documentation/sched-design.txt: an edited version of Ingo's
  initial email to lkml about his scheduler.  Goes over the design,
  implementation, and goals of the scheduler.  I tried to edit it where
  needed to bring it in line with the scheduler as it is today.

- modify kernel/sched.c: update your copyright and add a change entry
  for the new scheduler.

23 years ago[PATCH] trivial: no "error" on preempt_count notice
Robert Love [Tue, 28 May 2002 09:21:25 +0000 (02:21 -0700)]
[PATCH] trivial: no "error" on preempt_count notice

The attached trivial patch simply changes the printk debug statement in
do_exit when preempt_count!=0 to say "note" instead of "error" and log
at KERN_INFO in lieu of KERN_ERR.

I want to keep the message around a bit, but people get too paranoid
when things like nfsd legitimately exit with a preempt_count=1.

23 years agoPorted Voodoo3+ cards over to new api.
James Simmons [Tue, 28 May 2002 09:05:31 +0000 (02:05 -0700)]
Ported Voodoo3+ cards over to new api.

23 years agokbuild: built-in and modules in one pass
Kai Germaschewski [Tue, 28 May 2002 08:50:58 +0000 (03:50 -0500)]
kbuild: built-in and modules in one pass

Use "make BUILD_MODULES=1 {,bzImage,zImage,vmlinux,...}" to build
your kernel - and it'll also build the modules as you go.

23 years agokbuild: Add EXTRA_TARGETS variable
Kai Germaschewski [Tue, 28 May 2002 08:44:29 +0000 (03:44 -0500)]
kbuild: Add EXTRA_TARGETS variable

99% of the Makefiles are very simple target-wise:

o build modules as listed in $(obj-m) and
o build $(L_TARGET)/$(O_TARGET) as a composite object containing $(obj-y)

However, there is one exception: typically arch/$ARCH/kernel Makefile
wants the same as above, plus
o build init_task.o, head.o, using the standard rules for built-in
  targets - i.e. they are supposed to be built in the same way as all
  the other targets listed in $(obj-y), but they should not be linked
  into arch/$ARCH/kernel/$(O_TARGET). Instead they'll be linked in
  directly in the final vmlinux link.

Currently this is achieved by overriding Rules.make's first_rule in
arch/$ARCH/kernel/Makefile. This rather ad-hoc way relies on the knowing
how Rules.make works internally and at the same time does things behind
Rules.make's back.

To clean this up, I'm introducing a new variable, supposed to be only
used in arch/$ARCH/kernel/Makefile:

$(EXTRA_TARGETS) can be used to declare additional objects which shall
be built in the current directory (using the flags for built-in objects),
but not linked into $(O_TARGET)/$(L_TARGET)

This patch only converts arch/i386/kernel/Makefile at this time, other
archs work the same way as before.

Apart from this, this patch also removes some "unexport ..." statements,
which are unnecessary since not exporting variables is the default and
renames the internal "all_targets" to "vmlinux", since it's actually
need for building vmlinux.

23 years agokbuild: Normal sources should not include <linux/compile.h>
Kai Germaschewski [Tue, 28 May 2002 08:38:55 +0000 (03:38 -0500)]
kbuild: Normal sources should not include <linux/compile.h>

include/linux/compile.h is a generated file, only init/Makefile knows
about it - including it outside of init/* will cause trouble on
parallel builds.

Also, when compile.h already exists when 'make dep' is run, that'll pick
up a dependency on $(TOPDIR)/include/linux/compile.h. So init/Makefile
needs to tell make that this is actually the same file as
../include/linux.compile.h

23 years agoMore changes for new fbdev subsytem.
James Simmons [Tue, 28 May 2002 07:53:28 +0000 (00:53 -0700)]
More changes for new fbdev subsytem.

23 years ago[PATCH] usb-storage abort path cleanup
Matthew Dharm [Tue, 28 May 2002 07:50:25 +0000 (00:50 -0700)]
[PATCH] usb-storage abort path cleanup

cleanup of abort mechanism.  This version should be much more crash
resistant (dare I say crash-proof?)

23 years ago[PATCH] Documentation in usb.c
Johann Deneux [Tue, 28 May 2002 07:42:20 +0000 (00:42 -0700)]
[PATCH] Documentation in usb.c

It seems to me that code and comments disagree in drivers/usr/core/usb.c.

I attached a patch fixing the comments. Hopefully the code is right :)
This patch is against 2.5.16

23 years agoPPC32: use the standard kernel min macro in a couple of places.
Paul Mackerras [Tue, 28 May 2002 06:02:00 +0000 (16:02 +1000)]
PPC32: use the standard kernel min macro in a couple of places.
Patch from Rusty Russell.

23 years agoUSB irda driver
Greg Kroah-Hartman [Tue, 28 May 2002 05:05:02 +0000 (22:05 -0700)]
USB irda driver

removed urb->next usage, as it's not needed and has been removed from the
urb structure.

23 years agoMerge master.kernel.org:/home/mochel/BK/linux-2.5-linus
Patrick Mochel [Tue, 28 May 2002 05:00:25 +0000 (22:00 -0700)]
Merge master.kernel.org:/home/mochel/BK/linux-2.5-linus
into geena.pdx.osdl.net:/home/mochel/src/kernel/devel/linux-2.5-linus

23 years agoMerge hera.kernel.org:/home/mochel/BK/linux-2.5
Patrick Mochel [Tue, 28 May 2002 05:00:47 +0000 (22:00 -0700)]
Merge hera.kernel.org:/home/mochel/BK/linux-2.5
into hera.kernel.org:/home/mochel/BK/linux-2.5-linus

23 years agodevice model: Need to back up one more directory when creating the symlink between...
Patrick Mochel [Tue, 28 May 2002 04:57:54 +0000 (21:57 -0700)]
device model: Need to back up one more directory when creating the symlink between the bus's 'devices' dir and the device's physical dir.

23 years agoMerge geena.pdx.osdl.net:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Tue, 28 May 2002 04:41:15 +0000 (21:41 -0700)]
Merge geena.pdx.osdl.net:/home/mochel/src/kernel/devel/linux-2.5-virgin
into geena.pdx.osdl.net:/home/mochel/src/kernel/devel/linux-2.5-sync

23 years agodevice model: Create symlinks in bus's 'devices' dir for a device when its registered
Patrick Mochel [Tue, 28 May 2002 04:35:37 +0000 (21:35 -0700)]
device model: Create symlinks in bus's 'devices' dir for a device when its registered

23 years agodriverfs: add and export driverfs_create_symlink for general kernel use
Patrick Mochel [Tue, 28 May 2002 04:28:36 +0000 (21:28 -0700)]
driverfs: add and export driverfs_create_symlink for general kernel use

23 years agoPCI: define pci_bus_type and register it on startup
Patrick Mochel [Tue, 28 May 2002 04:21:15 +0000 (21:21 -0700)]
PCI: define pci_bus_type and register it on startup

23 years agoMerge Keith Whitwell's radeon ring-buffer updates
Linus Torvalds [Tue, 28 May 2002 03:48:39 +0000 (20:48 -0700)]
Merge Keith Whitwell's radeon ring-buffer updates

23 years agoMore drivers ported over to the new api. Also a bug fix in the software drawing image...
James Simmons [Tue, 28 May 2002 03:12:34 +0000 (20:12 -0700)]
More drivers ported over to the new api. Also a bug fix in the software drawing image routine.

23 years agodeivce model: actually compile and use bus drivers
Patrick Mochel [Tue, 28 May 2002 02:58:58 +0000 (19:58 -0700)]
deivce model: actually compile and use bus drivers

23 years agoMerge
James Simmons [Tue, 28 May 2002 02:27:29 +0000 (19:27 -0700)]
Merge

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Mon, 27 May 2002 23:58:39 +0000 (09:58 +1000)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years ago[PATCH] avoid sys_sync livelocks
Andrew Morton [Mon, 27 May 2002 12:15:03 +0000 (05:15 -0700)]
[PATCH] avoid sys_sync livelocks

This makes sure that sys_sync() will terminate.  It counts up the
number of dirty pages in the machine and will refuse to write out more
than 1.25 times this number of pages.  This function is called twice
on the sys_sync() path, so the kernel will actually write 2.5x the number
of initially-dirty pages before giving up.

23 years ago[PATCH] move nr_active and nr_inactive into per-CPU page
Andrew Morton [Mon, 27 May 2002 12:14:47 +0000 (05:14 -0700)]
[PATCH] move nr_active and nr_inactive into per-CPU page

It might reduce pagemap_lru_lock hold times a little, and is more
consistent.  I think all global page accounting is now inside
page_states[].