]> git.neil.brown.name Git - history.git/log
history.git
23 years agoMerge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
Linus Torvalds [Mon, 13 Jan 2003 08:46:42 +0000 (00:46 -0800)]
Merge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
James Bottomley [Mon, 13 Jan 2003 12:00:44 +0000 (06:00 -0600)]
Merge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.5

23 years ago[PATCH] sd.c
Andries E. Brouwer [Mon, 13 Jan 2003 08:50:36 +0000 (02:50 -0600)]
[PATCH] sd.c

The below does two things:
(i) do not try to spin up a CF reader without media
(ii) be careful when asking for the cache parameters mode page

[do not ask for this page when no media are present:
it is meaningless, and some devices react badly if we do;
check the reply so that we do not read past the end of the reply;
first give a small transport length - some USB devices are unhappy
if we ask for more than they provide]

Andries

23 years ago[PATCH] linux-2.5.57_delay-cleanup_A1.patch
John Stultz [Mon, 13 Jan 2003 07:45:08 +0000 (23:45 -0800)]
[PATCH] linux-2.5.57_delay-cleanup_A1.patch

This cleans up the delay code by moving the timer-specific
implementations into the timer_ops struct.  Thus, rather then doing:

if(x86_delay_tsc)
__rdtsc_delay(loops);
else if(x86_delay_cyclone)
__cyclone_delay(loops);
else if(whatever....

we just simply do:

timer->delay(loops);

Making it much easier to accommodate alternate time sources.

23 years ago[PATCH] linux-2.5.57_timer-none_A0.patch
John Stultz [Mon, 13 Jan 2003 07:44:53 +0000 (23:44 -0800)]
[PATCH] linux-2.5.57_timer-none_A0.patch

This creates an empty timer_opt structure (timer_none) which is then
used as a default initializer to the timer pointer.  This lets us avoid
having to check before dereferencing the timer in future code.

23 years ago[PATCH] use <asm/bug.h> for BUG() defines
Russell King [Mon, 13 Jan 2003 07:24:04 +0000 (23:24 -0800)]
[PATCH] use <asm/bug.h> for BUG() defines

This patch moves BUG() and PAGE_BUG() from asm/page.h into asm/bug.h.

We also fix up linux/dcache.h, which included asm/page.h for the sole
purpose of getting the BUG() definition.

Since linux/kernel.h and linux/smp.h make use of BUG(), asm/bug.h is
included there as well.

In addition, linux/jbd.h did not contain a clear path with which to
obtain the archtecture BUG() definition, but did contain its own
definition.

23 years ago[PATCH] Don't ask about "Enhanced Real Time Clock Support" on some archs
Tom Rini [Mon, 13 Jan 2003 07:23:46 +0000 (23:23 -0800)]
[PATCH] Don't ask about "Enhanced Real Time Clock Support" on some archs

The following patch adds an explicit no list of arches who do not want
to have the "Enhanced Real Time Clock Support" RTC driver asked.  This
adds PPC32 (who for a long time had their own 'generic' RTC driver, and
then have adopted the genrtc driver) and PARISC (who have always used
the genrtc driver).  Per request of Peter Chubb, IA64 is on this list as
well.

The problem is that on some archs there is no hope of this driver
working, and having it compiled into the kernel can cause many different
problems.  On the other hand, there are some arches for whom that driver
does work, on some platforms.  So having an explicit yes list would
result in some rather ugly statements.

23 years ago[PATCH] Fix AMD device ID table bug
Ruslan U. Zakirov [Mon, 13 Jan 2003 07:19:25 +0000 (23:19 -0800)]
[PATCH] Fix AMD device ID table bug

This fixes the wrong order of array(amd_ide_chips) that causes a BUG()
in 436 line with any conditions, because we use the wrong amd_config.

23 years ago[PATCH] fix cpufreq compilation
Patrick Mochel [Mon, 13 Jan 2003 07:07:17 +0000 (23:07 -0800)]
[PATCH] fix cpufreq compilation

This is needed to compile kernel/cpufreq.c if the legacy procfs interface
is not enabled in the latest BK tree.

23 years agoMerge bk://linuxusb.bkbits.net/linus-2.5
Linus Torvalds [Mon, 13 Jan 2003 07:01:01 +0000 (23:01 -0800)]
Merge bk://linuxusb.bkbits.net/linus-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] More parisc updates
Matthew Wilcox [Mon, 13 Jan 2003 06:20:21 +0000 (22:20 -0800)]
[PATCH] More parisc updates

Updates for drivers/parisc.  Mostly conversion to generic device model.
New hppb driver from Ryan Bradetich.

23 years ago[PATCH] cpufreq: per-CPU initialization
Dominik Brodowski [Mon, 13 Jan 2003 06:03:50 +0000 (22:03 -0800)]
[PATCH] cpufreq: per-CPU initialization

Allow for per-CPU initialization of CPUfreq. Therefore, it's not
necessary any longer to kmalloc the per-CPU policy struct. To use
this, cpufreq_driver->policy has to be set to NULL. Of course,
cpufreq_driver->init is needed then, which is the appropriate function
for CPU initialization. cpufreq_driver->exit is available for cleanup.

All existing drivers continue to work without any changes, just for
clarity ->init and ->exit are set to NULL, and the names accordingly.

23 years ago[PATCH] sysfs: Fixup deadline iosched sysfs files.
Patrick Mochel [Mon, 13 Jan 2003 06:03:08 +0000 (22:03 -0800)]
[PATCH] sysfs: Fixup deadline iosched sysfs files.

This reinstates the count parameter to store() methods.

23 years ago[PATCH] cpufreq: sysfs interface update
Patrick Mochel [Mon, 13 Jan 2003 06:02:57 +0000 (22:02 -0800)]
[PATCH] cpufreq: sysfs interface update

This updates new cpufreq sysfs code to new rules.

23 years ago[PATCH] ohci/ehci debug updates for 2.5.56
Kevin Brosius [Mon, 13 Jan 2003 05:53:41 +0000 (21:53 -0800)]
[PATCH] ohci/ehci debug updates for 2.5.56

  These two files needed to be touched after the recent changes to
DRIVER_ATTR/driver_attribute structure members in 2.5.56.  Personally,
it doesn't look to me like the size parameter should be removed, as now
users will need to hardcode PAGE_SIZE into their functions, rather than
it being passed from the place of allocation.  But I'm not familiar with
the driverfs changes, so can't really say.

These changes, or something similar, are needed to make ohci-dbg and
ehci-dbg work at all in 2.5.56.  ehci is untested, but compiles here.
I've tested the ohci changes and they appear to work.

23 years ago[PATCH] minimal Kerberos V5 client support [6/6]
Trond Myklebust [Mon, 13 Jan 2003 05:41:57 +0000 (21:41 -0800)]
[PATCH] minimal Kerberos V5 client support [6/6]

The following patch provides minimal client support for the
(mandatory) Kerberos V5 authentication mechanism under RPCSEC_GSS.
See RFC2623 and RFC3010 for protocol details.

Only authentication is supported for the moment. Data integrity and/or
data privacy (encryption) will be implemented at a later stage.

23 years ago[PATCH] RPCSEC_GSS client upcall user [5/6]
Trond Myklebust [Mon, 13 Jan 2003 05:41:44 +0000 (21:41 -0800)]
[PATCH] RPCSEC_GSS client upcall user [5/6]

This patches the RPCSEC_GSS client to make use of the upcall mechanism
that was provided by patch [3/6].

If an RPC task presents a non-uptodate credential to call_refresh(),
a user daemon is contacted by means of a dedicated rpc_pipefs pipe.
The daemon is then fed the uid for which it must establish a new RPCSEC
security context.

While the daemon goes about its business, the RPC task is put to sleep
on a wait queue in order to allow the 'rpciod' process to service other
requests. If another task wants to use the same credential, it too will
be put to sleep once it reaches call_refresh(). A timeout mechanism
ensures that requests are retried (or that 'soft' mounts fail) if the
daemon crashes / is killed.

Once the daemon has established the RPCSEC context, it writes the result
back to the pipe, causing the credential to be updated. Those RPC tasks
that were sleeping on the context are automatically woken up, and
their execution can proceed.

23 years ago[PATCH] RPCSEC_GSS authentication framework [4/6]
Trond Myklebust [Mon, 13 Jan 2003 05:41:33 +0000 (21:41 -0800)]
[PATCH] RPCSEC_GSS authentication framework [4/6]

This patch provides the basic framework for RPCSEC_GSS authentication
in the RPC client. The protocol is fully described in RFC-2203.
Sun has supported it in their commercial NFSv3 and v2 implementations
for quite some time, and it has been specified in RFC3010 as being
mandatory for NFSv4.

  - Update the mount_data struct for NFSv2 and v3 in order to allow them
    to pass an RPCSEC_GSS security flavour. Compatibility with existing
    versions of the 'mount' program is ensured by requiring that RPCSEC
    support be enabled using the new flag NFS_MOUNT_SECFLAVOUR.
  - Provide secure authentication, and later data encryption on
    a per-user basis. A later patch will an provide an implementation
    of the Kerberos 5 security mechanism. SPKM and LIPKEY are still
    being planned.
  - Security context negotiation and initialization are all assumed
    to be done in userland. A later patch will provide the actual upcall
    mechanisms to allow for this.

23 years ago[PATCH] RPCSEC upcall mechanism [3/6]
Trond Myklebust [Mon, 13 Jan 2003 05:41:19 +0000 (21:41 -0800)]
[PATCH] RPCSEC upcall mechanism [3/6]

This patch provides the upcall mechanism that will be used for communicating
with the RPCSEC client user daemons.

It sets up a 'ramfs' style filesystem (rpc_pipefs) that is populated with
named pipes. Each time the kernel initializes a new NFS, lockd, statd or
portmapper client, a directory automatically gets set up in this fs.
The directory is initially only populated with a single file "info"
that provides information such as the server IP address, the port number
and the RPC service for the benefit of the user daemon.

When an RPCSEC_GSS mechanism needs to communicate with the daemon, it
is provided with a toolkit for setting up a named pipe in the same
directory. It can then perform upcalls/downcalls in order to talk to the
daemon in much the same way as is done by CODA.

The NFSv4 client will also need to use this same filesystem to communicate
with its user daemon in order to do name-to-uid/name-from-uid and
name-to-gid/name-from-gid translation.

23 years ago[PATCH] XDR 'encode' phase move [2/6]
Trond Myklebust [Mon, 13 Jan 2003 05:41:07 +0000 (21:41 -0800)]
[PATCH] XDR 'encode' phase move [2/6]

The RPCSEC_GSS user context defines a 'sequence number' in the AUTH header
fields in order to provide protection against replay attacks. This
number needs to lie within a given 'window', and is required to be updated
even when retransmitting dropped requests.

In order to allow this update to occur, move the XDR 'encode' phase
so that it is done immediately before writing the data to the socket.

23 years ago[PATCH] Clean up RPC client credcache lookups [1/6]
Trond Myklebust [Mon, 13 Jan 2003 05:40:55 +0000 (21:40 -0800)]
[PATCH] Clean up RPC client credcache lookups [1/6]

Clean up RPC client credcache lookups.

    - Remove the limitation whereby the RPC client may only look up
      credentials for the current task.

The ability to lookup arbitrary credentials is needed in order to allow
a user daemon to set the RPCSEC_GSS private information once it
has finished negotiating the RPCSEC user context with the server.

23 years ago[PATCH] rbtree core for io scheduler
Jens Axboe [Mon, 13 Jan 2003 05:32:38 +0000 (21:32 -0800)]
[PATCH] rbtree core for io scheduler

This patch has a bunch of io scheduler goodies that are, by now, well
tested in -mm and by self and Nick Piggin. In order of interest:

- Use rbtree data structure for sorting of requests. Even with the
  default queue lengths that are fairly short, this cuts a lot of run
  time for io scheduler intensive work loads. If we go to longer queue
  lengths, it very quickly becomes a necessity.

- Add sysfs interface for the tunables. At the same time, finally kill
  the BLKELVGET/BLKELVSET completely. I made these return -ENOTTY in
  2.5.1, but there are left-overs around the kernel. This old interface
  was never any good, it was centered around just one io scheduler.

The io scheduler core itself has received count less hours of tuning by
myself and Nick, should be in pretty good shape. Please apply.

Andrew, I made some sysfs changes to the version from 2.5.56-mm1. It
didn't even compile without warnings (or work, for that matter), as the
sysfs store/show procedures needed updating. Hmm?

23 years ago[PATCH] parisc updates for 2.5.56
Matthew Wilcox [Mon, 13 Jan 2003 05:24:33 +0000 (21:24 -0800)]
[PATCH] parisc updates for 2.5.56

Updates for 2.5.56:
 - Integrate Stephen Rothwell's compat code
 - OProfile support for Randolph Chung
 - Makefile updates from Sam Ravnborg
 - Regenerated defconfig as requested by Rusty
 - Generic device model updates (James Bottomley)
 - And lots of general updating bugfixing, etc.

23 years ago[PATCH] cpufreq: add driver for NatSemi Geode / Cyrix MediaGX
Dominik Brodowski [Mon, 13 Jan 2003 05:23:20 +0000 (21:23 -0800)]
[PATCH] cpufreq: add driver for NatSemi Geode / Cyrix MediaGX

This patch by Hiroshi Miura adds a cpufreq driver for Cyrix MediaGX and
National Semiconductor Geode processors using "Suspend Modulation". It's
partly based on Zwane Mwaikambo's work.

23 years ago[PATCH] cpufreq: add sysfs interface
Dominik Brodowski [Mon, 13 Jan 2003 05:23:07 +0000 (21:23 -0800)]
[PATCH] cpufreq: add sysfs interface

This patch adds a sysfs interface to the cpufreq core, and marks the
previous /proc/cpufreq interface as deprecated.

As in drivers/base/cpu.c a "CPU driver" is registered, cpufreq acts as
"interface" to this, offering the following files for each CPU
(in /system/devices/sys/cpu.../) where CPUfreq support is present

cpuinfo_min_freq (ro) - minimum frequency (in kHz) the CPU supports
cpuinfo_max_freq (ro) - maximum frequency (in kHz) the CPU supports
scaling_min_freq (rw) - minimum frequency (in kHz) cpufreq may scale
     the CPU core to
scaling_max_freq (rw) - maximum frequency (in kHz) cpufreq may scale
     the CPU core to
scaling_governor (rw) - governor == "A feedback device on a machine
      or engine that is used to provide
      automatic control, as of speed,
      pressure, or temperature" [1, as noted
      by David Kimdon]. Decides what frequency
      is used. Currently, only "performance"
      and "powersave" are supported, more may
      be added later.

(In future, a file scaling_driver (ro) which shows what CPUfreq driver
is used (arm-sa1100,  gx-suspmod, speedstep, longrun, powernow-k6,
...) might be added, and this driver will be allowed to add files
scaling_driver_* for driver-specific settings like "prefer fast FSB".
And scaling_governor_* files might offer settings for the governor.)

To implement this sysfs interface, the driver model "interface" code
is used. Unfortunately, it has a non-trivial locking bug in
drivers/base/intf.c: there's a down_write call for
cls->subsys.rwsem in add_intf(), which then calls add(), which may call
intf->add_device(), which may call interface_add_data(), which calls
kobject_register(), which calls kobject_add(), which then tries to
down_write cls->subsys.rwsem. Remember, that was already locked writable
in add_intf().

Because of that, interface_add_data() is commented out; this means
that no link in /system/class/cpu/cpufreq is added, and that the
dev-removal code isn't called. This shouldn't be a problem yet,
though; as no cpufreq driver I know of is capable of CPU hotplugging.

    Dominik

[1] http://dictionary.reference.com/search?q=governor

23 years ago[PATCH] IPMI (Intelligent Platform Management Interface) driver
Corey Minyard [Mon, 13 Jan 2003 05:20:22 +0000 (21:20 -0800)]
[PATCH] IPMI (Intelligent Platform Management Interface) driver

23 years ago[PATCH] NFSv2 READDIR encoding fix
Jochen Friedrich [Mon, 13 Jan 2003 04:41:49 +0000 (20:41 -0800)]
[PATCH] NFSv2 READDIR encoding fix

When mounting a Linux partition with NFSv2, READDIR fills in the last
cookie without properly byte-swapping it.  The following READDIR will
fail, so the NFS client sees a truncated directory.

Fix it thus.

23 years agoMerge bk://ldm.bkbits.net/linux-2.5-core
Linus Torvalds [Mon, 13 Jan 2003 04:01:16 +0000 (20:01 -0800)]
Merge bk://ldm.bkbits.net/linux-2.5-core
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Mon, 13 Jan 2003 06:01:59 +0000 (00:01 -0600)]
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 agosysfs: Fixup NUMA sysfs file.
Patrick Mochel [Mon, 13 Jan 2003 05:55:37 +0000 (23:55 -0600)]
sysfs: Fixup NUMA sysfs file.

- Remove count and off parameters from per-node meminfo show() method.

23 years agosysfs: Fixup MCA sysfs files.
Patrick Mochel [Mon, 13 Jan 2003 05:52:11 +0000 (23:52 -0600)]
sysfs: Fixup MCA sysfs files.

- Remove count and off parameters from show() methods.
- Remove manual handling of reading from an offset, since the sysfs core
  handles that now.
- Remove temp. buffer.

23 years agosysfs: Fixup s390 sysfs files.
Patrick Mochel [Mon, 13 Jan 2003 05:44:42 +0000 (23:44 -0600)]
sysfs: Fixup s390 sysfs files.

- Remove count and off parameters from show() methods.
- Remove off parameter from store() methods.

Note 1: These have not been tested, but should be obviously correct.

Note 2: snprintf() was replaced with sprintf() where the filled buffer
would obviously be < PAGE_SIZE. (like when printing single integer values).
In places where strings were printed, PAGE_SIZE is used as the max string
size.

23 years agosysfs: fixup SCSI sysfs files
Patrick Mochel [Mon, 13 Jan 2003 05:38:44 +0000 (23:38 -0600)]
sysfs: fixup SCSI sysfs files

- Reinstate count parameter for store() methods.
- Remove off parameter from st.c and osst.c sysfs methods.
- Remove count parameter from st.c and osst.c show() methods.

23 years agosysfs: reinstate count parameter for PNP store() methods.
Patrick Mochel [Mon, 13 Jan 2003 05:34:28 +0000 (23:34 -0600)]
sysfs: reinstate count parameter for PNP store() methods.

23 years agosysfs: reinstate count parameter to sysfs_ops.store() methods.
Patrick Mochel [Mon, 13 Jan 2003 04:48:02 +0000 (22:48 -0600)]
sysfs: reinstate count parameter to sysfs_ops.store() methods.

- Fixup struct device_attribute.
- Fix the default device attributes.

23 years agosysfs: reinstate count parameter for sysfs_ops.store() methods.
Patrick Mochel [Mon, 13 Jan 2003 04:34:13 +0000 (22:34 -0600)]
sysfs: reinstate count parameter for sysfs_ops.store() methods.

- Fixup bus, driver, and class methods.

23 years agosysfs: restore count parameter to struct sysfs_ops::store().
Patrick Mochel [Mon, 13 Jan 2003 03:58:45 +0000 (21:58 -0600)]
sysfs: restore count parameter to struct sysfs_ops::store().

- Fixup subsys_sysfs_ops along the way.

23 years agosysfs: return -EFAULT if copy_{to,from}_user() doesn't copy all bytes.
Patrick Mochel [Mon, 13 Jan 2003 03:49:55 +0000 (21:49 -0600)]
sysfs: return -EFAULT if copy_{to,from}_user() doesn't copy all bytes.

...instead of returning the error value (which is number of bytes remaining).

23 years agoMerge bk://are.twiddle.net/mod-2.5
Linus Torvalds [Mon, 13 Jan 2003 03:37:24 +0000 (19:37 -0800)]
Merge bk://are.twiddle.net/mod-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge
Linus Torvalds [Mon, 13 Jan 2003 03:21:31 +0000 (19:21 -0800)]
Merge

23 years agoPnP update
Jaroslav Kysela [Mon, 13 Jan 2003 20:30:25 +0000 (21:30 +0100)]
PnP update
  - ISA PnP - removed isapnp_card_protocol reference
  - NE1000/2000 - fixed exit sequence and bugs in PnP code
  - aironet4500 - fixed exit sequence
  - ISDN - hisax_fcpcipnp - fixed compilation
  - OSS sound drivers - ad1848, cs4232 - updated to latest PnP code

23 years agoMerge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
Greg Kroah-Hartman [Mon, 13 Jan 2003 03:19:09 +0000 (19:19 -0800)]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5

23 years agoCset exclude: greg@kroah.com|ChangeSet|20030112082136|46568
Greg Kroah-Hartman [Mon, 13 Jan 2003 03:16:47 +0000 (19:16 -0800)]
Cset exclude: greg@kroah.com|ChangeSet|20030112082136|46568

23 years agoLinux v2.5.57 v2.5.57
Linus Torvalds [Mon, 13 Jan 2003 02:11:49 +0000 (18:11 -0800)]
Linux v2.5.57

23 years ago[MODULES] Centralize undefined symbol checks; handle undef weak.
Richard Henderson [Mon, 13 Jan 2003 01:47:35 +0000 (17:47 -0800)]
[MODULES] Centralize undefined symbol checks; handle undef weak.

23 years ago[PATCH] P4-based Celeron comments
Robert Love [Mon, 13 Jan 2003 01:38:50 +0000 (17:38 -0800)]
[PATCH] P4-based Celeron comments

As you mentioned, we do not correctly identify the P4-based Celeron in
the kernel configuration help.  Unfortunately, Intel has called all
Celeron products simply "Celeron", so we call these "P4-based Celerons".

23 years agoGet rid of endless loop in PnP-enabled ne.c
Linus Torvalds [Mon, 13 Jan 2003 00:42:20 +0000 (16:42 -0800)]
Get rid of endless loop in PnP-enabled ne.c

23 years ago[PATCH] Fix PnP BIOS fault handling
Brian Gerst [Mon, 13 Jan 2003 00:36:55 +0000 (16:36 -0800)]
[PATCH] Fix PnP BIOS fault handling

Check for PnP BIOS in all fault paths, not just in do_trap().

23 years agoMerge http://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Mon, 13 Jan 2003 00:28:27 +0000 (16:28 -0800)]
Merge http://ppc.bkbits.net/for-linus-ppc64
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoppc64: compat_sys_[f]statfs, from Stephen Rothwell
Anton Blanchard [Tue, 14 Jan 2003 05:35:24 +0000 (16:35 +1100)]
ppc64: compat_sys_[f]statfs, from Stephen Rothwell

23 years agoMerge samba.org:/scratch/anton/for-alan
Anton Blanchard [Tue, 14 Jan 2003 05:22:18 +0000 (16:22 +1100)]
Merge samba.org:/scratch/anton/for-alan
into samba.org:/scratch/anton/sfr

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Tue, 14 Jan 2003 05:19:13 +0000 (16:19 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/sfr

23 years agoppc64: zero extend all 6 parameters in 32 bit syscall path
Anton Blanchard [Tue, 14 Jan 2003 04:51:59 +0000 (15:51 +1100)]
ppc64: zero extend all 6 parameters in 32 bit syscall path

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Tue, 14 Jan 2003 04:39:43 +0000 (15:39 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/for-alan

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Tue, 14 Jan 2003 01:21:33 +0000 (12:21 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/for-alan

23 years agoppc64: remove mmu_gather_t
Anton Blanchard [Mon, 13 Jan 2003 05:45:50 +0000 (16:45 +1100)]
ppc64: remove mmu_gather_t

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Mon, 13 Jan 2003 05:10:27 +0000 (16:10 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/for-alan

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Mon, 13 Jan 2003 00:28:01 +0000 (16:28 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Mon, 13 Jan 2003 00:27:32 +0000 (16:27 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Mon, 13 Jan 2003 00:27:08 +0000 (16:27 -0800)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoPPC32: Change struct free_pte_ctx to struct mmu_gather.
Paul Mackerras [Tue, 14 Jan 2003 09:22:38 +0000 (20:22 +1100)]
PPC32: Change struct free_pte_ctx to struct mmu_gather.

A couple of occurrences of struct free_pte_ctx in include/asm-ppc/tlb.h
got missed in akpm's patch - this fixes them.

23 years agoPPC32: Fix copy_from_user to copy as much as possible.
Dale Farnsworth [Tue, 14 Jan 2003 09:17:16 +0000 (20:17 +1100)]
PPC32: Fix copy_from_user to copy as much as possible.

copy_from_user is supposed to transfer as much data as is
valid and then to return the number of bytes not tranferred.
That's how it works on x86.  On ppc it can be as much as 15
bytes short.

I initially saw the problem with the mount system call.

Note that the fifth argument to mount is an address 8 bytes from the end
of user data space.  There is a null byte at that address, since no mount
options are being passed.

In the kernel, sys_mount() allocates a page for the options and
does copy_from_user(new_page, 0x1005eff8, PAGE_SIZE).  copy_from_user
should copy 8 bytes and return (PAGE_SIZE-8).  Instead, on ppc it reads
8 bytes, faults, writes no bytes, and returns PAGE_SIZE, which causes the
EFAULT to be erroneously reported.

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Mon, 13 Jan 2003 22:18:16 +0000 (09:18 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years ago[COMPAT]: fs/compat.c needs linux/vfs.h for asm/statfs.h
David S. Miller [Sun, 12 Jan 2003 17:16:36 +0000 (09:16 -0800)]
[COMPAT]: fs/compat.c needs linux/vfs.h for asm/statfs.h

23 years ago[SUNZILOG]: Fix spinlock access in previous changes.
David S. Miller [Sun, 12 Jan 2003 17:14:34 +0000 (09:14 -0800)]
[SUNZILOG]: Fix spinlock access in previous changes.

23 years ago[SUNZILOG]: Get serial console et al. working once more.
Pete Zaitcev [Sun, 12 Jan 2003 16:22:10 +0000 (08:22 -0800)]
[SUNZILOG]: Get serial console et al. working once more.
- Make sure R9 is really loaded
- Make sure IS_CONS flag is handled properly.

23 years ago[IPV4]: Allow route.c to build without procfs enabled.
Paul Rolland [Sun, 12 Jan 2003 16:19:02 +0000 (08:19 -0800)]
[IPV4]: Allow route.c to build without procfs enabled.

23 years ago[ebtables] use Rustys new module scheme in ebtables.c, vs 2.5.56
Bart De Schuymer [Sun, 12 Jan 2003 16:16:44 +0000 (08:16 -0800)]
[ebtables] use Rustys new module scheme in ebtables.c, vs 2.5.56
- use /* */ instead of //
- change my mail alias
- remove MOD_DEC_USE_COUNT and MOD_INC_USE_COUNT
- use try_module_get (and check result) and module_put instead of
  __MOD_INC_USE_COUNT and __MOD_DEC_USE_COUNT
- add \n in init/exit messages

23 years ago[TCP]: Dont tcp_listen_unlock unless it was locked.
Anders Gustafsson [Sun, 12 Jan 2003 16:13:38 +0000 (08:13 -0800)]
[TCP]: Dont tcp_listen_unlock unless it was locked.

23 years ago[COMPAT] compat_sys_[f]statfs - sparc64 part
Stephen Rothwell [Sun, 12 Jan 2003 16:10:31 +0000 (08:10 -0800)]
[COMPAT] compat_sys_[f]statfs - sparc64 part

23 years ago[PATCH] USB storage: clean up debugging
Matthew Dharm [Sun, 12 Jan 2003 15:01:58 +0000 (07:01 -0800)]
[PATCH] USB storage: clean up debugging

This patch makes the debug system only print out the valid bytes of a
command.  Greg, please apply.

Andries suggested this... while some would think that seeing the extra
bytes might be good, it is kinda noisy.

23 years ago[PATCH] Trivial USB doc patch
Kevin Brosius [Sun, 12 Jan 2003 15:01:32 +0000 (07:01 -0800)]
[PATCH] Trivial USB doc patch

  David Brownell suggested I forward this to you.  I ran across it while
trying to setup some USB debug info...

23 years ago[PATCH] compat_sys_[f]statfs - s390x part
Stephen Rothwell [Sun, 12 Jan 2003 13:31:54 +0000 (05:31 -0800)]
[PATCH] compat_sys_[f]statfs - s390x part

Here is the s390x part. Others will go through the respective maintainers.

23 years ago[PATCH] compat_sys_[f]statfs - generic part
Stephen Rothwell [Sun, 12 Jan 2003 13:31:48 +0000 (05:31 -0800)]
[PATCH] compat_sys_[f]statfs - generic part

This patch creates compat_sys_statfs and compat_sys_fstatfs. This is just
the generic part of the patch. Specific archs will follow.

23 years ago[PATCH] v850 obsolete params fix
Rusty Russell [Sun, 12 Jan 2003 12:30:19 +0000 (04:30 -0800)]
[PATCH] v850 obsolete params fix

Since these are just symbols in the module object, they need symbol name
munging to find the symbol from the parameter name.

23 years ago[PATCH] Fix strlen_user usage in module.c
Rusty Russell [Sun, 12 Jan 2003 12:30:13 +0000 (04:30 -0800)]
[PATCH] Fix strlen_user usage in module.c

strlen_user returns 0 on error, not an error number, and otherwise
returns the length including the NUL byte.  Found by Andi Kleen.

23 years ago[PATCH] Remove dup __gpl_ksymtab in arm file
Rusty Russell [Sun, 12 Jan 2003 12:27:35 +0000 (04:27 -0800)]
[PATCH] Remove dup __gpl_ksymtab in arm file

Russell's patch beat mine in, and unfortunately didn't conflict, so
armv has two __gpl_ksymtab sections.

Revert mine.

23 years ago[PATCH] PTRACE_GET_THREAD_AREA
Roland McGrath [Sun, 12 Jan 2003 12:02:53 +0000 (04:02 -0800)]
[PATCH] PTRACE_GET_THREAD_AREA

Add ptrace support for getting and setting the THREAD_AREA of the
thread being debugged on x86.

23 years agoAlways assign bus numbers for cardbus. Firmware often doesn't do it right.
Linus Torvalds [Sun, 12 Jan 2003 11:44:30 +0000 (03:44 -0800)]
Always assign bus numbers for cardbus. Firmware often doesn't do it right.

23 years ago[PATCH] Place __gpl_ksymtab section in all linker scripts
Rusty Russell [Sun, 12 Jan 2003 11:22:00 +0000 (03:22 -0800)]
[PATCH] Place __gpl_ksymtab section in all linker scripts

Explicitly place the __gpl_ksymtab section for every arch.  RMK
pointed out that some archs will place it really badly otherwise.

23 years agoISDN/HiSax: Fix some of the new PnP stuff
Kai Germaschewski [Sun, 12 Jan 2003 13:00:03 +0000 (07:00 -0600)]
ISDN/HiSax: Fix some of the new PnP stuff

I appreciate the adaption of the ISDN drivers to the new PnP layer
(though I don't know why it was actually necessary to break the old
ISAPnP so late in the cycle), but the gratuitious changes to the coding
style were not exactly necessary. So revert things to the
"if (retval) goto err_unwind;" style and fix a couple of other compile
time errors.

23 years agoMerge tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sun, 12 Jan 2003 12:15:41 +0000 (06:15 -0600)]
Merge tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/scratch/kai/kernel/v2.5/linux-2.5.isdn

23 years agoISDN/HiSax: Move chipset init code into *_setup() functions
Kai Germaschewski [Sun, 12 Jan 2003 12:12:42 +0000 (06:12 -0600)]
ISDN/HiSax: Move chipset init code into *_setup() functions

This is just again moving some common code into shared places,
let the chip-specific driver check the versions instead of having
every card-specific driver do so.

23 years agoISDN/HiSax: Remove superfluous card type checks
Kai Germaschewski [Sun, 12 Jan 2003 12:05:40 +0000 (06:05 -0600)]
ISDN/HiSax: Remove superfluous card type checks

We use card->typ to decide which subdriver to call, so there's
no need at all for the subdriver to check again that card->typ is correct.

23 years agoISDN/HiSax: Unify LED handling
Kai Germaschewski [Sun, 12 Jan 2003 12:03:34 +0000 (06:03 -0600)]
ISDN/HiSax: Unify LED handling

Share the code to display line status via LEDs and get rid of the
remaining ->cardmsg() users.

23 years agoISDN/HiSax: Remove empty ->cardmsg
Kai Germaschewski [Sun, 12 Jan 2003 12:02:03 +0000 (06:02 -0600)]
ISDN/HiSax: Remove empty ->cardmsg

A lot of the subdrivers don't do anything in their ->cardmsg function
anymore, so we just remove those and make the callers check for NULL.

Also, add ops->bc_{,de}activate() for the drivers which want to be notified
of B-Channel activation.

23 years agoISDN/HiSax: Remove superfluous #ifdef CONFIG_PCI
Kai Germaschewski [Sun, 12 Jan 2003 11:57:44 +0000 (05:57 -0600)]
ISDN/HiSax: Remove superfluous #ifdef CONFIG_PCI

Subdrivers which only drive PCI cards can have the dependency on
CONFIG_PCI moved to Kconfig, removing some ugly #ifdefs.

23 years agoISDN/HiSax: Convert remaining ioremap() to request_mmio()
Kai Germaschewski [Sun, 12 Jan 2003 11:55:53 +0000 (05:55 -0600)]
ISDN/HiSax: Convert remaining ioremap() to request_mmio()

These users didn't bother doing request_mem_region() at all before
ioremapping, which is now automatically done using request_mmio()
instead.

23 years agoISDN/HiSax: Simplified request_region() etc.
Kai Germaschewski [Sun, 12 Jan 2003 11:53:28 +0000 (05:53 -0600)]
ISDN/HiSax: Simplified request_region() etc.

This patch introduces, private to the HiSax driver, new helper functions
request_io/mmio(), which correspond to request_region()/
request_mem_region() but also are verbose about failures and keep track
of the allocated regions, so unwinding in case of errors is automatic.

Additionally, request_mmio() will also ioremap() the region.

23 years agoMerge
Linus Torvalds [Sun, 12 Jan 2003 03:50:08 +0000 (19:50 -0800)]
Merge

23 years ago[PATCH] PnP update - drivers
Jaroslav Kysela [Sun, 12 Jan 2003 03:46:40 +0000 (19:46 -0800)]
[PATCH] PnP update - drivers

this patch must be applied after PnP patch v0.94. It contains my
small cleanups of PnP code and I tried to rewrite almost all ISA PnP
drivers to new PnP subsystem except sound drivers (ALSA & OSS).

  PnP update
    - separated dev->resource to dev->io_resource and dev->mem_resource
    - added pnp_*_valid() macros
    - added status member to pnp_card structure
    - added pnp_device_attach/detach functions
    - added pnpc_attach/detach functions
    - moved pnp_find_card() and pnp_find_dev() functions to isapnp.h
    - updated IDE/gameport/ISDN/network/scsi/radio/telephone drivers
      to latest PnP code

23 years ago[PATCH] 2.5.56, ne2k compiles and works
Martin H. VanLeeuwen [Sun, 12 Jan 2003 03:43:08 +0000 (19:43 -0800)]
[PATCH] 2.5.56, ne2k compiles and works

This patch makes the ne.c compile and ISA pnp ne2k work after
changes in 2.5.54 for PNP broke it.

 a. use pnp_dev instead of pci_dev
 b. convert to appropriate pnp_*()'s
 c. check -1 instead of 0 for invalid IRQ

23 years ago[PATCH] 2.5.56, isapnp cards not found
Martin H. VanLeeuwen [Sun, 12 Jan 2003 03:43:03 +0000 (19:43 -0800)]
[PATCH] 2.5.56, isapnp cards not found

This patch allows isapnp cards to be detected now.  Seems around 2.5.54,
a change in isapnp_build_device_list changed:

card->protocol = &isapnp_protocol;
 to
card->protocol = &isapnp_card_protocol;

This patch adapts isapnp_init to the above change.

23 years ago[PATCH] 2.5.56, isapnp_init level
Martin H. VanLeeuwen [Sun, 12 Jan 2003 03:42:57 +0000 (19:42 -0800)]
[PATCH] 2.5.56, isapnp_init level

In 2.5.50 the level of isapnp_init was moved to after apci.  Since it is
now after net_dev_init, ISA PNP NICS fail to initialized at boot.

This fix allows ISA PNP NIC cards to work during net_dev_init, and still
leaves isapnp_init after apci_init.

23 years agoAutomerge
Linus Torvalds [Sun, 12 Jan 2003 03:42:38 +0000 (19:42 -0800)]
Automerge

23 years ago[PATCH] add explicit Pentium II support
Robert Love [Sun, 12 Jan 2003 03:23:34 +0000 (19:23 -0800)]
[PATCH] add explicit Pentium II support

This separates the "PPro/Celeron/Pentium-II" compile option into "PPro"
and "Pentium-II/Celeron" options.

This allows us to explicitly support the Pentium II and Celeron,
specifically adding the `-march' option for the chip and enabling the
unaligned copy optimizations.  PPro support remains unchanged.

This patch is by Luuk van der Duim with some changes by me (primarily to
also support the pre-Coppermine Celeron chips, since those use Pentium
II cores).  This patch has been in 2.5-mm for awhile and Andrew ack'ed
this submission.

23 years agoMerge bk://bk.arm.linux.org.uk
Linus Torvalds [Sun, 12 Jan 2003 03:22:24 +0000 (19:22 -0800)]
Merge bk://bk.arm.linux.org.uk
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[ARM] Bring sa1100_ir.c up to date wrt new DMA and device subsystems.
Russell King [Sun, 12 Jan 2003 17:16:37 +0000 (17:16 +0000)]
[ARM] Bring sa1100_ir.c up to date wrt new DMA and device subsystems.

Update sa1100_ir to use new dma-mapping subsystem.  Register a
system device for the SIR/FIR uart port, and a device driver for
this driver.

23 years ago[ARm] Fix ARM exception table fixups for 2.5.55 updates.
Russell King [Sun, 12 Jan 2003 17:11:52 +0000 (17:11 +0000)]
[ARm] Fix ARM exception table fixups for 2.5.55 updates.

23 years ago[ARM] Fix Jornada720 sa1100-flash.c support, update to C99 initialisers
Russell King [Sun, 12 Jan 2003 17:09:10 +0000 (17:09 +0000)]
[ARM] Fix Jornada720 sa1100-flash.c support, update to C99 initialisers