]> git.neil.brown.name Git - history.git/log
history.git
23 years agoSave and restore CIA window configuration data.
Richard Henderson [Sun, 3 Nov 2002 05:34:27 +0000 (21:34 -0800)]
Save and restore CIA window configuration data.

23 years agoMerge ssh://are.twiddle.net/BK/axp-2.5
Richard Henderson [Thu, 10 Oct 2002 11:17:47 +0000 (04:17 -0700)]
Merge ssh://are.twiddle.net/BK/axp-2.5
into dot.sfbay.redhat.com:/dot/bang/rth/linux/axp-2.5

23 years agoAvoid oops on systems that set atkbd_reset.
Richard Henderson [Thu, 10 Oct 2002 10:28:04 +0000 (03:28 -0700)]
Avoid oops on systems that set atkbd_reset.

23 years agoMerge master.kernel.org:/home/bcrl/aio-2.5
Linus Torvalds [Thu, 10 Oct 2002 07:36:38 +0000 (00:36 -0700)]
Merge master.kernel.org:/home/bcrl/aio-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agofix symbol export in fs/read_write.c
Benjamin LaHaise [Thu, 10 Oct 2002 10:30:50 +0000 (06:30 -0400)]
fix symbol export in fs/read_write.c

23 years agoMerge redhat.com:/md0/linus-2.5 into redhat.com:/md0/aio-2.5
Benjamin LaHaise [Thu, 10 Oct 2002 09:33:37 +0000 (05:33 -0400)]
Merge redhat.com:/md0/linus-2.5 into redhat.com:/md0/aio-2.5

23 years agoMerge bk://cifs.bkbits.net/linux-2.5-with-cifs
Linus Torvalds [Thu, 10 Oct 2002 07:09:23 +0000 (00:09 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5-with-cifs
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoInitial check in of cifs filesystem version 0.54 for Linux 2.5 (to clean tree as...
Steve French [Thu, 10 Oct 2002 09:17:28 +0000 (04:17 -0500)]
Initial check in of cifs filesystem version 0.54 for Linux 2.5 (to clean tree as one changeset)

23 years ago[PATCH] atp870 driver
Doug Ledford [Thu, 10 Oct 2002 05:54:12 +0000 (22:54 -0700)]
[PATCH] atp870 driver

This is a minimal patch to allow me to load/use the atp module so I can do
further testing work on it.

23 years ago[PATCH] minor i386 timer changes for 2.5.41
Greg Kroah-Hartman [Thu, 10 Oct 2002 05:52:23 +0000 (22:52 -0700)]
[PATCH] minor i386 timer changes for 2.5.41

Here's an additional patch that contains the cleanups I did to John's
timer patches.  It does the following:

- uses C99 initializers
- makes the timer list static
- adds better documentation to the timer function structure
- makes the timer init function return 0 on success
- NULL terminates the list of timers to make further patches
  easier.

23 years ago[PATCH] Fix NFS locking over TCP
Trond Myklebust [Thu, 10 Oct 2002 05:50:19 +0000 (22:50 -0700)]
[PATCH] Fix NFS locking over TCP

The 2.5.x RPC code is currently broken in that it demands that all
tasks that call xprt_create_proto() in order to open a TCP socket must
have CAP_NET_BIND_SERVICE capabilities, and must bind to a privileged
port.

This breaks the NLM locking code and its use of the call_bind() RPC
portmapper lookup feature.

This patch allows the built-in portmapper client to use unbound TCP
sockets if the user does not have the necessary capabilities.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:49:40 +0000 (22:49 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

This is a nontrivial change to the NFS client.

In this patch, we finish modifying the async READ path so that it is
version-agnostic.  We define a new nfs_rpc_op ->setup_read(), and move
the v2- and v3-specific code in nfs_read_rpcsetup() there.  We also
have to change nfs_readpage() result so that the 'count' of bytes
read is a parameter.  The extra parameter means that it can no longer
be ->tk_exit().  Instead, it is called from a version-specific ->tk_exit()
routine which is set in ->read_setup().

The upshot of all this is that the version-specific part of the
async READ path has been encapsulated in a new nfs_rpc_op
->read_setup(), and NFSv4 can share the logic for asynchronous
READ's with NFSv2 and v3.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:49:07 +0000 (22:49 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

This is a nontrivial change to the NFS client.

Synchronous READ operations are currently done via the ->read() nfs_rpc_op.
Therefore, the synchronous READ path can easily be adapted for NFSv4.  On
the other hand, the asynchronous READ path contains several NFSv3-specific
features, which make it difficult to adapt for NFSv4.

In this patch and the next, we modify the async READ path to be
version-agnostic.  This patch just changes the 'struct nfs_read_data'
so that the v2- and v3-specific parts are moved into a private area,
with room for a v4-specific part in parallel.  None of the logic is
changed.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:48:54 +0000 (22:48 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

If the NFS_ATTR_FATTR_V4 flag is set, use the NFSv3 convention for
the 'space_used' part of the fattr.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:48:22 +0000 (22:48 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

This is a nontrivial change to the NFS client.

NFSv4 defines a new file attribute, change_attr.  This is a per-file
opaque quantity returned by the server, whose value is required to
change whenever the file is modified.  If it exists, we want to use
it for all cache consistency checks in nfs_refresh_inode().  Some
operations also return a "pre-operation" value of the change_attr;
we want to take this into account too.

First, define flags
  NFS_ATTR_FATTR_V4 - indicates that the 'struct nfs_fattr' is an
                      NFSv4 fattr, so the change_attr field is valid
  NFS_ATTR_PRE_CHANGE - indicates that the server returned a pre-operation
                      change_attr, so the pre_change_attr field is valid

Second, change nfs_refresh_inode() so that the caches are invalidated
if there is a change_attr mismatch.  Exception: If the pre_change_attr
tells us that the mismatch was caused by our operation, then do not
invalidate the caches.

This patch should leave the logic in nfs_refresh_inode() unchanged
if neither of the new flags are set.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:48:08 +0000 (22:48 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

In NFSv4, an fsid is a 64-bit major number together with a 64-bit
minor number.  In previous versions, an fsid is a single number.
This patch changes 'struct nfs_fattr' accordingly.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:47:35 +0000 (22:47 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

In NFSv4, there is no hard limit on the length of symlink text.
This patch changes the -ENAMETOOLONG test in nfs_symlink() accordingly.

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:47:02 +0000 (22:47 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

This patch changes the interface of the ->setattr() nfs_rpc_op
so that its first argument is a dentry instead of an inode.

[Explanation: The dentry is required because in NFSv4, we may
 need to OPEN the file before doing the SETATTR.  (This is
 required if the file size is changed as part of the setattr.)
 Opening the file requires making use of the containing
 directory's inode.]

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:46:48 +0000 (22:46 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

This patch changes the interface of the ->readdir() nfs_rpc_op
so that its first argument is a dentry instead of an inode.

[Explanation: The dentry is required because in NFSv4, we need
 to make use of the _parent_ directory's inode.  This is because
 NFSv4 servers no longer return an entry for ".." in the READDIR
 response, so the client kernel needs to fake this entry, inode
 number and all.]

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:46:18 +0000 (22:46 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

In a number of places in the NFS client, I had to change

  #ifdef CONFIG_NFS_V3
     /* ... */
  #endif

to

  #if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4)
     /* ... */
  #endif

23 years ago[PATCH] A basic NFSv4 client for 2.5.x
Trond Myklebust [Thu, 10 Oct 2002 05:45:49 +0000 (22:45 -0700)]
[PATCH] A basic NFSv4 client for 2.5.x

Instantiate a new file, include/linux/nfs4.h, which contains
constants and typedef's for the NFSv4 protocol (by analogy with
include/linux/nfs2.h and include/linux/nfs3.h).

Also #include this file in a few places where it will be needed
later.

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make
Linus Torvalds [Thu, 10 Oct 2002 05:41:33 +0000 (22:41 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] isofs fix
Andries E. Brouwer [Thu, 10 Oct 2002 05:40:19 +0000 (22:40 -0700)]
[PATCH] isofs fix

The patch below removes some dead code and nonsense code.
The part that changes behaviour is

 -       if (sbi->s_cruft == 'n' &&
 -           (volume_seq_no != 0) && (volume_seq_no != 1)) {
 -               printk(KERN_WARNING "Warning: defective CD-ROM "
 -                      "(volume sequence number %d). "
 -                      "Enabling \"cruft\" mount option.\n", volume_seq_no);
 -               sbi->s_cruft = 'y';
 -       }

that has already bitten lots of people.

Nothing is wrong with a volume sequence number different from 0 or 1.
(Cf. Ecma-119.pdf, Sections 4.17, 4.18, 6.6.)

23 years ago[PATCH] adjust PPC sysctls
Paul Mackerras [Thu, 10 Oct 2002 05:39:20 +0000 (22:39 -0700)]
[PATCH] adjust PPC sysctls

This patch takes out the unused KERN_PPC_ZEROPAGED sysctl, and
restricts the KERN_PPC_POWERSAVE_NAP and KERN_PPC_L2CR sysctls to be
present only on those PPC processors where they are useful.  This
patch only affects PPC.

23 years ago[PATCH] add PCI device ID for Motorola MPC107
Paul Mackerras [Thu, 10 Oct 2002 05:38:51 +0000 (22:38 -0700)]
[PATCH] add PCI device ID for Motorola MPC107

This patch adds the PCI device ID for the Motorola MPC107 host bridge.
The entry is already in the list at pciids.sf.net but isn't in the
kernel pci_ids.h file yet.  Please apply this to your tree.

23 years ago[PATCH] 2.5.40: fix chmod/chown on procfs
Olaf Dietsche [Thu, 10 Oct 2002 05:31:57 +0000 (22:31 -0700)]
[PATCH] 2.5.40: fix chmod/chown on procfs

This patch allows to change uid, gid and mode of files and directories
located in procfs.

Without this patch you can change uid, gid and mode as long as the
file is open. As soon as you close the file, it reverts back to its
default, which is root:root and readonly usually.

23 years ago[PATCH] drivers/scsi - Makefile fix
Sam Ravnborg [Thu, 10 Oct 2002 05:31:12 +0000 (22:31 -0700)]
[PATCH] drivers/scsi - Makefile fix

Reference to .ver file incorrect after recent makefile changes.
Grepped the kernel tree, and this is the only Makefile that
uses $(MODVERDIR).

23 years ago[PATCH] excessive stack usage in cdrom
Jens Axboe [Thu, 10 Oct 2002 05:30:17 +0000 (22:30 -0700)]
[PATCH] excessive stack usage in cdrom

CD-ROM puts struct cdrom_changer_info on the stack in a few places, this
is a bad idea since it's big (a bit over 1kb).  This makes us allocate
it instead.

Noticed by Anton.

23 years agoClean up after timers - move the "timers" Makefile info
Linus Torvalds [Thu, 10 Oct 2002 05:28:34 +0000 (22:28 -0700)]
Clean up after timers - move the "timers" Makefile info
into the proper subdirectory (kernel) where it is used.

Drop unused variables.

23 years ago[PATCH] linux-2.5.41_cyclone-timer_B2
John Stultz [Thu, 10 Oct 2002 04:39:10 +0000 (21:39 -0700)]
[PATCH] linux-2.5.41_cyclone-timer_B2

        In order to demonstrate how new time-sources are added to my
timer-changes patch. Here is my current version of my cyclone-timer
patch for 2.5.41. This uses the infrastructure set up in the
timer-changes_A4 patch set to add the cyclone counter (found on IBM
Summit Based hardware) as a time-source.

        The current code is not enabled as it also depends on James
Cleverdon's 2.5 summit patch, however it illustrates how cleanly new
time-sources can be added.

23 years ago[PATCH] linux-2.5.41_timer-changes_A4 (3/3 - integration)
John Stultz [Thu, 10 Oct 2002 04:38:53 +0000 (21:38 -0700)]
[PATCH] linux-2.5.41_timer-changes_A4 (3/3 - integration)

        This is the final part 3 of 3 of my timer-change patch. Part 3
integrates the moved code (from part 2) into the new infrastructure
(from part 1).

23 years ago[PATCH] linux-2.5.41_timer-changes_A4 (2/3 - bulk move)
John Stultz [Thu, 10 Oct 2002 04:38:30 +0000 (21:38 -0700)]
[PATCH] linux-2.5.41_timer-changes_A4 (2/3 - bulk move)

        This is part 2 of 3 of my timer-change patch. Part 2 is just a
bulk move of code out of time.c and into timer_pit.c and timer_tsc.c. No
code is changed, only moved.

        Please note, this code will not compile without the final third
part of this patch collection. This was done for readability alone.

23 years ago[PATCH] linux-2.5.41_timer-changes_A4 (1/3 - infrastructure)
John Stultz [Thu, 10 Oct 2002 04:37:48 +0000 (21:37 -0700)]
[PATCH] linux-2.5.41_timer-changes_A4 (1/3 - infrastructure)

        The i386 time.c code is turning into a mess. We've got multiple
functions that do the same thing, only with different hardware, all
surrounded #ifdefs and even more difficult to follow #ifndefs. George
Anzinger is introducing a new ACPIpm time source, I'm going to attempt
to add the cyclone counter as a time source, and in the future there
will be HPET to deal with. These will not go in cleanly together as
things are now.

        Inspired by suggestions from Alan, this collection of patches
tries to clean up time.c by breaking out the PIT and TSC specific parts
into their own files. Additionally the patch creates an abstract
interface to use these existing time soruces, as well as make it easier
to add future time sources.

        It introduces "struct timer_ops" which gives the time code a
clear interface to use these different time sources. It also allows for
clearer conditional compilation of these various time sources.

        This first patch (part 1 of 3) provides the infrastructure
needed via the timer_ops structure, as well as the select_timer()
function for choosing the best available timer.

23 years ago[PATCH] make readv/writev return 0 for 0 segments
Andrew Morton [Thu, 10 Oct 2002 04:06:02 +0000 (21:06 -0700)]
[PATCH] make readv/writev return 0 for 0 segments

Should resolve an ongoing fiasco concerning what we should return to
userspace if they do a readv or writev of zero segments.

SuS is ambiguous, but implies EINVAL.  We're currently returning
EINVAL, but 2.4 returns zero.

I think zero makes more sense, and it is what 2.4 does.

23 years ago[PATCH] remove the sched_yield from the ext3 fsync path
Andrew Morton [Thu, 10 Oct 2002 04:05:33 +0000 (21:05 -0700)]
[PATCH] remove the sched_yield from the ext3 fsync path

The changed sched_yield() semantics have made ext3's transaction
batching terribly slow.

Apparently a schedule() fixes that, although it probably breaks
transaction batching.

This patch largely fixes my complaints about the new scheduler being
extremely sluggish to interactive applications.  Evidently those
applications were calling fsync() and were spending extremely long
periods in sched_yield().

23 years ago[PATCH] remove radix_tree_reserve()
Andrew Morton [Thu, 10 Oct 2002 04:05:19 +0000 (21:05 -0700)]
[PATCH] remove radix_tree_reserve()

From Hugh Dickins.

radix_tree_reserve() exists solely for the tmpfs move_to_swap_cache()
and move_from_swap_cache() functions, and yet they don't need it: there
is no problem in the one page being simultaneously listed in two radix
trees (while both locks are held).  Use radix_tree_insert(), and remove
radix_tree_reserve(); also removed a few blank lines.

23 years ago[PATCH] fix the raw driver
Andrew Morton [Thu, 10 Oct 2002 04:04:43 +0000 (21:04 -0700)]
[PATCH] fix the raw driver

Fix the raw driver by tricking it into performing O_DIRECT IO against
the bound blockdev.

- rewrite the i_mapping for /dev/raw/raw0 to point at the same thing
  as bdev->bd_inode->i_mapping.  We've performed a bdget() against the
  blockdev, which should pin it for the correct lifetime.

- set the O_DIRECT bit on the caller's file->flags.

23 years ago[PATCH] move_one_page atomicity fix
Andrew Morton [Thu, 10 Oct 2002 04:04:24 +0000 (21:04 -0700)]
[PATCH] move_one_page atomicity fix

The atomicicty fix for move_one_page() was not quite right.

We only do the page_table_present() test if CONFIG_HIGHPTE=y.  Which is
fine, but even with CONFIG_HIGHPTE=n, the pte mapping functions still
do an inc_preempt_count() due to their unconditional kmap_atomic().  So
we get a might_sleep() warning.

The warning is actually bogus, because those pte's are always in
direct-mapped memory.

So hm.  Three fixes suggest themselves:

1: Run the page_table_present() test if CONFIG_HIGHMEM.

   Rejected: penalises non-pte_highmem setups

2: Make kmap_atomic() not do inc_preempt_count() is the page was
   direct mapped.

   Rejected: I don't think we want kmap_atomic side effects to be
   varying according to the page which was passed.

3: Change the pte mapping functions so they don't run kmap_atomic at
   all if CONFIG_HIGHPTE=n

   This is what I did.  And guess what?  For CONFIG_HIGHMEM=y,
   CONFIG_HIGHPTE=n this patch shrinks the kernel by 5 kbytes.  Because
   kmap_atomic is inlined.

   The lesson: we do way too much damn inlining.

23 years ago[PATCH] mremap use-after-free bugfix
Andrew Morton [Thu, 10 Oct 2002 04:03:56 +0000 (21:03 -0700)]
[PATCH] mremap use-after-free bugfix

I have invented a new software development methodology! You send an
email to Hugh saying "I don't have the foggiest idea why this guy's
kernel is oopsing" and next morning, you get a patch! I shall patent
this.

Since 2.5.3, move_vma() has been passing a freed vma into
move_page_tables().  Fix it to move back to the previous vma in the
list if we're about to delete this one.

Thanks to Morten Helgesen for patient reporting, diagnosis and testing.

23 years ago[PATCH] timer cleanups
Ingo Molnar [Thu, 10 Oct 2002 03:59:09 +0000 (20:59 -0700)]
[PATCH] timer cleanups

This is my latest timer patchset, it makes del_timer_sync() a bit more
robust wrt.  code that re-adds timers from the timer handler.

Other changes in the patch:

 - clean up cascading a bit.

 - do not save flags in __run_timer_list - we enter from an irqs-enabled
   tasklet.

23 years agofix compile glitch introduced by the addition of symbol exports
Benjamin LaHaise [Wed, 9 Oct 2002 15:03:52 +0000 (11:03 -0400)]
fix compile glitch introduced by the addition of symbol exports

23 years ago[PATCH] fix __SI_CODE
Stephen Rothwell [Wed, 9 Oct 2002 13:06:36 +0000 (06:06 -0700)]
[PATCH] fix __SI_CODE

This small patch is extracted from George Anzinger's High-res-timer
patches.

23 years agoMerge bk://are.twiddle.net/axp-2.5
Linus Torvalds [Wed, 9 Oct 2002 12:30:59 +0000 (05:30 -0700)]
Merge bk://are.twiddle.net/axp-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge toomuch.toronto.redhat.com:/md0/linus-2.5
Benjamin LaHaise [Wed, 9 Oct 2002 10:32:32 +0000 (06:32 -0400)]
Merge toomuch.toronto.redhat.com:/md0/linus-2.5
into toomuch.toronto.redhat.com:/md0/aio-2.5

23 years agoFix missed variable rename in stxncpy glibc conversion.
Richard Henderson [Wed, 9 Oct 2002 10:17:43 +0000 (03:17 -0700)]
Fix missed variable rename in stxncpy glibc conversion.

23 years agoMerge ssh://are.twiddle.net/BK/axp-2.5
Richard Henderson [Wed, 9 Oct 2002 08:14:45 +0000 (01:14 -0700)]
Merge ssh://are.twiddle.net/BK/axp-2.5
into dot.sfbay.redhat.com:/dot/bang/rth/linux/axp-2.5

23 years ago[PATCH] ips driver 6/6
David Jeffery [Wed, 9 Oct 2002 08:04:30 +0000 (01:04 -0700)]
[PATCH] ips driver 6/6

2 bug fixes for scsi pass through

When talking directly to scsi devices, the driver would
sometimes get two things wrong.  We could set too short
of a timeout. Or, we could confuse the adapter by having
non-zero values in certain fields which we shouldn't have
been using.  This patch corrects these problems.

23 years ago[PATCH] ips driver 5/6
David Jeffery [Wed, 9 Oct 2002 08:04:01 +0000 (01:04 -0700)]
[PATCH] ips driver 5/6

2 minor bug fixes.

The first section makes sure we limit the size of the
sense_buffer copy to the target buffer's size so that
we don't overflow the sence_buffer.

The other sections remove some pointer arithmatic that
is wrong on 64bit machines do to padding.  Instead, just
call the pci_map functions on the buffer.

23 years ago[PATCH] ips driver 4/6
David Jeffery [Wed, 9 Oct 2002 08:03:42 +0000 (01:03 -0700)]
[PATCH] ips driver 4/6

This is by far the biggest patch.  It is a rewrite of the
driver's horrid locking.  In addition to the host_lock,
the driver used to have 4 other locks per adapter!
It had a redundant ha_lock and a lock for each of 3
queues.  In a few places it also played with atomic bit
setting. And almost all of it was useless as the
host_lock was already held.

This patch cleans up this locking nightmare.  The driver
now uses the host_lock exclusively.  Only a few places
needed to add calls to lock the host_lock.  Most of
this patch is deletion of useless extra locking.

23 years ago[PATCH] ips driver 3/6
David Jeffery [Wed, 9 Oct 2002 08:03:13 +0000 (01:03 -0700)]
[PATCH] ips driver 3/6

This patch adds an Adaptec copyright, makes a few
minor comment changes, and removes a few unneeded
macros.

23 years ago[PATCH] ips driver 2/6
David Jeffery [Wed, 9 Oct 2002 08:03:00 +0000 (01:03 -0700)]
[PATCH] ips driver 2/6

This patch is some simple code consolidation.
A new function ips_abort_init() is created
and consolidates some repeated code that is
used if there is an error during initialization
of the adapter.

23 years ago[PATCH] ips driver 1/6
David Jeffery [Wed, 9 Oct 2002 08:02:33 +0000 (01:02 -0700)]
[PATCH] ips driver 1/6

This removes several unused header includes and allows
the driver to compile by no longer trying to include
<linux/tqueue.h> . You may have already gotten a patch
to remove tqueue.h from someone else.

This patch also corrects the spelling of my last name
in the MAINTAINERS file.  You'd think I'd be used to
seeing it spelled wrong by now.

23 years agoMerge are.twiddle.net:/home/rth/BK/linus-2.5
Richard Henderson [Wed, 9 Oct 2002 07:52:06 +0000 (00:52 -0700)]
Merge are.twiddle.net:/home/rth/BK/linus-2.5
into are.twiddle.net:/home/rth/BK/axp-2.5

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
Kai Germaschewski [Wed, 9 Oct 2002 06:31:59 +0000 (01:31 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5.make

23 years agowd7000 indent pass, no code changes
Linus Torvalds [Wed, 9 Oct 2002 06:10:06 +0000 (23:10 -0700)]
wd7000 indent pass, no code changes

indent -kr -i8 -bri0 -l255 wd7000.{c,h}

23 years ago[PATCH] compile fix for cpqfc driver
Doug Ledford [Wed, 9 Oct 2002 06:07:40 +0000 (23:07 -0700)]
[PATCH] compile fix for cpqfc driver

23 years ago[PATCH] getpid() comment typo
Robert Love [Wed, 9 Oct 2002 06:06:56 +0000 (23:06 -0700)]
[PATCH] getpid() comment typo

Comment above getpid() is wrong.

This patch fixes it, and expands the comment to explain why on earth
we have getpid() returning ->tgid and not ->pid.

23 years ago[PATCH] fix preempt_count overflow with brlocks
Robert Love [Wed, 9 Oct 2002 06:06:28 +0000 (23:06 -0700)]
[PATCH] fix preempt_count overflow with brlocks

Now that brlocks loop over NR_CPUS, on SMP every br_lock/br_unlock
results in the acquire/release of 32 locks.  This incs/decs the
preempt_count by 32.

Since we only have 7 bits now for actually storing the lock depth, we
cannot nest but 3 locks deep.  I doubt we ever acquire three brlocks
concurrently, but it is still a concern.

Attached patch disables/enables preemption explicitly once and only
once for each lock/unlock.  This is also an optimization as it
removes 31 incs, decs, and conditionals. :)

Problem reported by Andrew Morton.

23 years ago[PATCH] 3c501 for 2.5
Alan Cox [Wed, 9 Oct 2002 05:58:38 +0000 (22:58 -0700)]
[PATCH] 3c501 for 2.5

Not much here, just some tidying/checking. This driver can't alas use NAPI
in 2.5. Note however it has no panics or BUG()s so appears to meet the
carrier grade guidelines ;)

- Clarified authors so I get the mail not Donald
- Added missing MODULE_ bits
- Moved junk into 3c501.h

23 years ago[PATCH] first pass over the in2000
Alan Cox [Wed, 9 Oct 2002 05:58:10 +0000 (22:58 -0700)]
[PATCH] first pass over the in2000

- new locking
- new_eh
- use ->page/->offset

23 years agoMerge bk://ldm.bkbits.net/linux-2.5-ide
Linus Torvalds [Wed, 9 Oct 2002 04:54:16 +0000 (21:54 -0700)]
Merge bk://ldm.bkbits.net/linux-2.5-ide
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoIDE: make ide_drive_remove() call driver's ->cleanup().
Patrick Mochel [Wed, 9 Oct 2002 04:40:34 +0000 (21:40 -0700)]
IDE: make ide_drive_remove() call driver's ->cleanup().

This was accidentally dropped before, but re-added now to completely mimic
behavior of the reboot notifier IDE used to have.

23 years agoIDE: Add generic remove() method for drives; remove reboot notifier.
Patrick Mochel [Wed, 9 Oct 2002 04:18:47 +0000 (21:18 -0700)]
IDE: Add generic remove() method for drives; remove reboot notifier.

The remove() method is generic for all drives, and set in ide_driver_t::gen_driver.
The call simply forwards the call to ide_driver_t::standby().

This obviates the need for IDE reboot notifier. The core iterates over all present
devices in device_shutdown() and unregisters each one.

23 years agoIDE: register ide driver for all ide drives; not just for disk drives.
Patrick Mochel [Wed, 9 Oct 2002 03:52:46 +0000 (20:52 -0700)]
IDE: register ide driver for all ide drives; not just for disk drives.

This adds
      struct device_driver    gen_driver;

to ide_driver_t, which is filled in with necessary fields when an ide
driver calls ide_register_driver(). That then registers the driver with
the driver model core.

As a result, this gives us the following output in driverfs:

# tree -d /sys/bus/ide/drivers/
/sys/bus/ide/drivers/
|-- ide-cdrom
`-- ide-disk

The suspend/resume callbacks in ide-disk.c have been temporarily
disabled until the ide core implements generic methods which forward
the calls to the drive drivers.

23 years agoMerge ssh://are.twiddle.net/BK/linus-2.5
Richard Henderson [Wed, 9 Oct 2002 03:32:56 +0000 (20:32 -0700)]
Merge ssh://are.twiddle.net/BK/linus-2.5
into dot.sfbay.redhat.com:/dot/bang/rth/linux/axp-2.5

23 years agoMerge are.twiddle.net:/home/rth/BK/linus-2.5
Richard Henderson [Wed, 9 Oct 2002 03:31:46 +0000 (20:31 -0700)]
Merge are.twiddle.net:/home/rth/BK/linus-2.5
into are.twiddle.net:/home/rth/BK/axp-2.5

23 years ago[PATCH] missing exports
Thomas Molina [Wed, 9 Oct 2002 03:31:26 +0000 (20:31 -0700)]
[PATCH] missing exports

the netfilter ipt owner module still needs the following to compile

23 years ago[PATCH] remove double "lock" in v_midi.h
Thomas Molina [Wed, 9 Oct 2002 03:31:19 +0000 (20:31 -0700)]
[PATCH] remove double "lock" in v_midi.h

A second instance of lock had been inadvertently added to v_midi.h

23 years agoIDE: add struct device to ide_drive_t and use that for IDE drives
Patrick Mochel [Wed, 9 Oct 2002 03:29:48 +0000 (20:29 -0700)]
IDE: add struct device to ide_drive_t and use that for IDE drives

... instead of the one in struct gendisk.

23 years ago[PATCH] s390 update: 3270 console
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:52 +0000 (20:28 -0700)]
[PATCH] s390 update: 3270 console

Fix 3270 console reboot loop. Recognize 3270 control unit type 3174.
Fix tubfs kmallocs. Dynamically get 3270 input buffer. Get bootup colors
right on 3270 console

23 years ago[PATCH] s390 update: syscall tracing
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:46 +0000 (20:28 -0700)]
[PATCH] s390 update: syscall tracing

Pass the system call number in grp2 to strace instead of -ENOSYS.

23 years ago[PATCH] s390 update: superfluous memset
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:38 +0000 (20:28 -0700)]
[PATCH] s390 update: superfluous memset

Remove a duplicate memset. That is already done in alloc_disk.

23 years ago[PATCH] s390 update: linker script typo
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:33 +0000 (20:28 -0700)]
[PATCH] s390 update: linker script typo

Correct typo in the vmlinux.lds.S files.

23 years ago[PATCH] s390 update: tasklets
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:27 +0000 (20:28 -0700)]
[PATCH] s390 update: tasklets

Switch from work queues to tasklets in the 3215 and 3270 drivers.

23 years ago[PATCH] s390 update: work queues
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:22 +0000 (20:28 -0700)]
[PATCH] s390 update: work queues

Remove all tq_structs from s390 driver code.

23 years ago[PATCH] s390 update: compile fixes
Martin Schwidefsky [Wed, 9 Oct 2002 03:28:16 +0000 (20:28 -0700)]
[PATCH] s390 update: compile fixes

Switch to @$(generate-asm-offsets.h) method to create the asm-offsets.h file,
fix signal dequeueing in the 31 bit emulation code and fix includes.

23 years agoMerge bk://linux-input.bkbits.net/linux-input
Linus Torvalds [Wed, 9 Oct 2002 03:21:17 +0000 (20:21 -0700)]
Merge bk://linux-input.bkbits.net/linux-input
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoFix a ; in atkbd.c that somehow got into the last cset.
Vojtech Pavlik [Wed, 9 Oct 2002 14:56:57 +0000 (16:56 +0200)]
Fix a ; in atkbd.c that somehow got into the last cset.

23 years agoDon't try to enable extra keys on IBM/Chicony keyboards as this upsets
Vojtech Pavlik [Wed, 9 Oct 2002 14:49:06 +0000 (16:49 +0200)]
Don't try to enable extra keys on IBM/Chicony keyboards as this upsets
several notebook keyboards. Until we find a better solution how to detect
who are we talking to, we rely on the kernel command line. Use
atkbd_set=4 to gain access to the extra keys.

23 years agoFix oops when 'cat /dev/uinput' is done. Used wait_event_interruptible().
Vojtech Pavlik [Wed, 9 Oct 2002 14:12:55 +0000 (16:12 +0200)]
Fix oops when 'cat /dev/uinput' is done. Used wait_event_interruptible().

23 years agoFix i8042 for Sun, recent updates broke it.
Vojtech Pavlik [Wed, 9 Oct 2002 11:12:00 +0000 (13:12 +0200)]
Fix i8042 for Sun, recent updates broke it.

23 years agoMerge Linus's i8042 PgUp fix (conflicted with mine).
Vojtech Pavlik [Wed, 9 Oct 2002 10:54:14 +0000 (12:54 +0200)]
Merge Linus's i8042 PgUp fix (conflicted with mine).

23 years agoMerge master.kernel.org:/home/davem/BK/sparc-2.5
Linus Torvalds [Wed, 9 Oct 2002 03:19:55 +0000 (20:19 -0700)]
Merge master.kernel.org:/home/davem/BK/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Wed, 9 Oct 2002 03:17:38 +0000 (20:17 -0700)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] initcalls for ATM
Christoph Hellwig [Wed, 9 Oct 2002 03:15:45 +0000 (20:15 -0700)]
[PATCH] initcalls for ATM

Switch over ATM code to initcalls and reorder the makefile so
that link order inside atm is the same.  I've also cleaned up
the makefile a bit while at it.

I didn't fix the existing compilation problems in the drivers (cli &
friends) and the broken le/be firmware selection for the fore200e cards
(kbuild breakage) though.

23 years ago[PATCH] Scsi sense buffer thinko
Jens Axboe [Wed, 9 Oct 2002 01:42:50 +0000 (18:42 -0700)]
[PATCH] Scsi sense buffer thinko

Noticed by Peter Chubb.

SCpnt->sense_buffer[0] has to _equal_ 0xf0 for the sense to be valid,
not vice versa.

23 years ago[PATCH] Hardwire CONFIG_LBD to "on" for testing
Andrew Morton [Wed, 9 Oct 2002 01:38:03 +0000 (18:38 -0700)]
[PATCH] Hardwire CONFIG_LBD to "on" for testing

Make 64-bit sector_t compulsory.  Accelerated testing...

23 years ago[PATCH] Fix xxx_get_biosgeometry --- avoid useless 64-bit division.
Andrew Morton [Wed, 9 Oct 2002 01:37:57 +0000 (18:37 -0700)]
[PATCH] Fix xxx_get_biosgeometry --- avoid useless 64-bit division.

From Peter Chubb

The bios geometry is almost useless, except for fdisk to try to write
an MSDOS partition table that is vaguely compatible with one written by
other operating systems.

If the size of disc will overflow a ten-bit cylinder number, then all
bets are off anyway.  So fake it by casting the true disc capacity to a
smaller type (than u64), so that we avoid 64-bit division on 32-bit
platforms.  If the disc is small enough that the number of cylinders is
correct, then this has no effect; otherwise, the number-of-cylinders we
report is bogus, but you can't use an MSDOS-format partition table on
such a drive anyway --- use the EFI GPT or the LDM partitioning, which
use 64-bit offsets internally.

23 years ago[PATCH] 64-bit sector_t - remove udivdi3, use sector_div()
Andrew Morton [Wed, 9 Oct 2002 01:37:50 +0000 (18:37 -0700)]
[PATCH] 64-bit sector_t - remove udivdi3, use sector_div()

From Peter Chubb

Get rid of need for GCC _udivdi3 and _umoddi3 helper functions
 - use sector_div more aggressively.

23 years ago[PATCH] 64-bit sector_t - md fixes
Andrew Morton [Wed, 9 Oct 2002 01:37:43 +0000 (18:37 -0700)]
[PATCH] 64-bit sector_t - md fixes

From Peter Chubb

(Yes I forgot something...  Without this patch, trying to use RAID
without CONFIG_LBD would fail.)

Fix md operation without CONFIG_LBD --- don't try to include __udivdi3
etc.

23 years ago[PATCH] 64-bit sector_t - filesystems
Andrew Morton [Wed, 9 Oct 2002 01:37:37 +0000 (18:37 -0700)]
[PATCH] 64-bit sector_t - filesystems

From Peter Chubb

Filesystem migration to possibly 64-bit sector_t:
 - bmap() now takes and returns a sector_t to allow filesystems
   (e.g., JFS, XFS) that are 64-bit clean to deal with large files
 - buffer handling now 64-bit clean

Enable 64-bit sector_t on IA32 and PPC.

kiobufs takes sector_t array, not array of long.
Fix blkmtd.c to deal in such an array.

Miscellaneous fixes for 64-bit sector_t.
   - missed printk formats
 - ide_floppy_do_request had incorrect signature
 - in blkmtd.c there was a pointer used to
   manipulate an array to be used by kiobuf --
     it was unsigned long, needed to be sector_t

23 years ago[PATCH] 64-bit sector_t - driver changes
Andrew Morton [Wed, 9 Oct 2002 01:37:30 +0000 (18:37 -0700)]
[PATCH] 64-bit sector_t - driver changes

From Peter Chubb

Compaq Smart array sector_t cleanup: prepare for possible 64-bit sector_t

Clean up loop device to allow huge backing files.

MD transition to 64-bit sector_t.
 - Hold sizes and offsets as sector_t not int;
 - use 64-bit arithmetic if necessary to map block-in-raid to zone
   and block-in-zone

23 years ago[PATCH] 64-bit sector_t - printk changes and sector_t cleanup
Andrew Morton [Wed, 9 Oct 2002 01:37:24 +0000 (18:37 -0700)]
[PATCH] 64-bit sector_t - printk changes and sector_t cleanup

From Peter Chubb

printk changes: A sector_t can be either 64 or 32 bits, so cast it to a
printable type that is at least as large as 64-bits on all platforms
(i.e., cast to unsigned long long and use a %llu format)

Transition to 64-bit sector_t: fix isofs_get_blocks by converting the
(possibly 64-bit) arg to a long.

SCSI 64-bit sector_t cleanup: capacity now stored as sector_t; make
sure that the READ_CAPACITY command doesn't sign-extend its returned
value; avoid 64-bit division when printing size in MB.

Still to do:
 - 16-byte SCSI commands
 - Individual scsi drivers.

23 years ago[PATCH] 64-bit sector_t - various driver changes
Andrew Morton [Wed, 9 Oct 2002 01:37:17 +0000 (18:37 -0700)]
[PATCH] 64-bit sector_t - various driver changes

peter's code works for me, and the 40-odd people who download
the -mm patches.  Anton has tested it on ppc64 and I presume that
Peter has tested it on ia64.  I use gcc-2.91.66 and others use
later compilers.  I expect that any remaining problems will
mainly be caught by the compiler.  And compiler bugs can be
detected by turning off the option in config and seeing if things
get better.

From Peter Chubb

 - do_request() function takes sector_t not unsigned long as the
   block number to operate on.
 - Various casts to long where the underlying device can never get
   big enough to warrant a 64-bit sector offset.
 - Cast sector_t to unsigned long long when printing.

23 years ago[PATCH] IDE: only register devices that are present
Patrick Mochel [Wed, 9 Oct 2002 01:33:20 +0000 (18:33 -0700)]
[PATCH] IDE: only register devices that are present

23 years agoFix the Shift-PgUp problem again, and hopefully for good.
Vojtech Pavlik [Wed, 9 Oct 2002 01:31:01 +0000 (03:31 +0200)]
Fix the Shift-PgUp problem again, and hopefully for good.

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Wed, 9 Oct 2002 01:03:08 +0000 (18:03 -0700)]
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core

23 years agoBk manual merge.
Vojtech Pavlik [Wed, 9 Oct 2002 00:21:24 +0000 (02:21 +0200)]
Bk manual merge.

23 years agoAdd japanese bar key mapping to the default table in atkbd.c
Vojtech Pavlik [Tue, 8 Oct 2002 20:25:06 +0000 (22:25 +0200)]
Add japanese bar key mapping to the default table in atkbd.c

23 years agoMake i8042.c even less picky about detecting an AUX port because of
Vojtech Pavlik [Tue, 8 Oct 2002 19:36:32 +0000 (21:36 +0200)]
Make i8042.c even less picky about detecting an AUX port because of
broken chipsets that don't support the LOOP command or report failure
on the TEST command. Hopefully this won't screw any old 386/486
systems without the AUX port.