]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] USB: New USB serial device ID: Asus A600 PDA cradle
Vincent Legoll [Wed, 9 Apr 2003 09:14:48 +0000 (02:14 -0700)]
[PATCH] USB: New USB serial device ID: Asus A600 PDA cradle

Just managed to get usb-serial connection up and running
with my Asus PDA, great work !

If you want to integrate the patches into the kernel tree,
please do so.

23 years ago[PATCH] USB speedtouch Kconfig fix; CREDITS entry out of order
Duncan Sands [Wed, 9 Apr 2003 09:14:03 +0000 (02:14 -0700)]
[PATCH] USB speedtouch Kconfig fix; CREDITS entry out of order

Follow the style of other entries in Kconfig.

 CREDITS                  |    8 ++++----
 drivers/usb/misc/Kconfig |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

23 years ago[PATCH] USB: fix uss720 driver to work properly with recent parport changes.
Greg Kroah-Hartman [Wed, 9 Apr 2003 08:45:05 +0000 (01:45 -0700)]
[PATCH] USB: fix uss720 driver to work properly with recent parport changes.

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Mon, 7 Apr 2003 07:58:50 +0000 (00:58 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5

23 years agoUSB: set port->tty to NULL after we have closed the port
Greg Kroah-Hartman [Mon, 7 Apr 2003 06:40:55 +0000 (23:40 -0700)]
USB: set port->tty to NULL after we have closed the port

This lets any of the many checks for this contition actually have a
chance of working :)

23 years ago[PATCH] USB: patch for oops in io_edgeport.c
Al Borchers [Mon, 7 Apr 2003 03:59:54 +0000 (20:59 -0700)]
[PATCH] USB: patch for oops in io_edgeport.c

I tracked down a problem that caused an oops in io_edgeport.c.

The oops is reliably reproduced by using an EdgePort USB serial
port in dosemu and then exiting dosemu.  When dosemu closed
the port the oops would occur.  (Tested in RH 7.3 2.4.18-10.)

The problem was that a USB cmd callback would come in after the
close with the tty struct freed, and the edge_bulk_out_cmd_callback
function would do a wakeup on the tty->write_wait queue.  The
tty struct was gone (I checked that tty->magic was bad) and the
wakeup would oops.

As you did in other places in io_edgeport.c, I added a check that
edge_port->open was true before using the edge_port->port->tty
struct.

I added a similar check in edge_bulk_out_data_callback, though
I never actually saw the problem here.

I notice that in 2.4.20 a check has been added to be sure that
edge_port->port->tty is not null--however, this is not enough
because the tty pointer is not set to null when the port is
closed.  An alternate solution in 2.4.20 would be to set the
usb_serial_port->tty pointer to null in usbserial.c serial_close().
This seems like a good thing to do in general, since the tty
struct should not be used after a close which frees it.  If
you would like I investigate this a bit more--it could affect
other usb serial drivers and reveal some hidden bugs.

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Mon, 7 Apr 2003 03:34:04 +0000 (20:34 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5

23 years ago[PATCH] usb-storage: add info to /proc interface
Matthew Dharm [Mon, 7 Apr 2003 03:20:21 +0000 (20:20 -0700)]
[PATCH] usb-storage: add info to /proc interface

This patch adds some information about the quirks of the device to the
/proc interface.

23 years ago[PATCH] usb-storage: remove BUG/BUG_ON
Matthew Dharm [Mon, 7 Apr 2003 03:19:29 +0000 (20:19 -0700)]
[PATCH] usb-storage: remove BUG/BUG_ON

This patch changes BUG and BUG_ON to print error messages.  It is done to
be (a) a little more robust, and (b) complies with Linus' idea of no BUGs
unless absolutely necessary.

23 years ago[PATCH] usb-storage: variable renames
Matthew Dharm [Mon, 7 Apr 2003 03:18:33 +0000 (20:18 -0700)]
[PATCH] usb-storage: variable renames

This patch changes the struct us_data 'ss' to 'us' to be consistent with
the rest of the code.  The old name was a legacy artifact.

There are no functional changes here.

23 years ago[PATCH] usb-storage: fix CB/CBI
Matthew Dharm [Mon, 7 Apr 2003 03:17:40 +0000 (20:17 -0700)]
[PATCH] usb-storage: fix CB/CBI

When we fixed the error handling, we accidentally made a mistake.  A STALL
on a control endpoint isn't necessarily a fatal thing -- it can be used to
indicate a command failure.

This fixes bugzilla bug #510.

 - A control endpoint stall when sending the command to a CB/CBI device is
   legal.  Our error handling was just a little too agressive.

23 years agoLinux 2.5.67 v2.5.67
Linus Torvalds [Mon, 7 Apr 2003 02:42:25 +0000 (19:42 -0700)]
Linux 2.5.67

23 years agoThe irq vector offset should spread the irq's out evenly, which
Linus Torvalds [Mon, 7 Apr 2003 02:41:54 +0000 (19:41 -0700)]
The irq vector offset should spread the irq's out evenly, which
implies that it should vary between 0-7, not any further (the
higher bits are done by updating current_vector by 8).

This also means that we don't have any overflow condition.

23 years ago[PATCH] generic HDLC update
Krzysztof Halasa [Mon, 7 Apr 2003 02:22:40 +0000 (19:22 -0700)]
[PATCH] generic HDLC update

This version fixes:
- missing rtnl_lock()/rtnl_unload() bug on unregister_hdlc_device
- N2, C101: interrupt handler now works under high IRQ load from other
  devices (with previous versions, the IRQ processing for the card could
  sometimes stop after reaching "work limit")

This is production-tested on devices I have access to (N2, C101, PC300,
PCI200SYN).

23 years ago[PATCH] Disable irqbalance for single cpu SMP configurations
Zwane Mwaikambo [Mon, 7 Apr 2003 01:30:16 +0000 (18:30 -0700)]
[PATCH] Disable irqbalance for single cpu SMP configurations

This patch disables irqbalance and doesn't spawn a kernel thread for
systems which run SMP kernels and only have one online cpu.

23 years ago[PATCH] kill blk_queue_empty()
Jens Axboe [Mon, 7 Apr 2003 01:29:36 +0000 (18:29 -0700)]
[PATCH] kill blk_queue_empty()

This finally kills of blk_queue_empty().  This is similar to the patch I
recently sent to fix the SCSI logic as well.  A lot of drivers are doing
this in our core, mainly because that is the way they always did it:

start_queue:
if (blk_queue_empty(q))
return;

rq = elv_next_request(q);
if (!rq)
return;

Patch simply removes the blk_queue_empty() check, and adds a check for
!rq return from elv_next_request() if the driver didn't already do that.

Additionally, the AS io scheduler can return NULL from
elv_next_request() if it thinks this is best. This way we are also
prepared for that to work well.

Patch was done by Nick Piggin.

23 years ago[PATCH] rng_vendor_ops init.data is referenced after being freed
Zwane Mwaikambo [Mon, 7 Apr 2003 01:29:24 +0000 (18:29 -0700)]
[PATCH] rng_vendor_ops init.data is referenced after being freed

Bug report from J Sanchez in #kernelnewbies

23 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Sun, 6 Apr 2003 15:59:16 +0000 (08:59 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[CPUFREQ] propagate longhaul_get_ranges() failure up if something went wrong.
Dave Jones [Mon, 7 Apr 2003 02:54:54 +0000 (03:54 +0100)]
[CPUFREQ] propagate longhaul_get_ranges() failure up if something went wrong.

23 years ago[CPUFREQ] Fix memleak in longhaul.c found by smatch.
Dave Jones [Mon, 7 Apr 2003 02:52:18 +0000 (03:52 +0100)]
[CPUFREQ] Fix memleak in longhaul.c found by smatch.

23 years ago[PATCH] revert scheduler back-boosting
Ingo Molnar [Sun, 6 Apr 2003 12:21:35 +0000 (05:21 -0700)]
[PATCH] revert scheduler back-boosting

The problem with setiathome is that it displays something every now and
then - so it gets a backboost from X, and hovers at a relatively high
priority.

23 years ago[PATCH] Grab SET_MODULE_OWNER from the clutches of the deprecated
Zwane Mwaikambo [Sun, 6 Apr 2003 12:21:24 +0000 (05:21 -0700)]
[PATCH] Grab SET_MODULE_OWNER from the clutches of the deprecated

This comment seems to want to include SET_MODULE_OWNER as one of the
deprecated facilities.

23 years ago[PATCH] undefined reference to ip_amanda_lock
Dave Jones [Sun, 6 Apr 2003 12:21:15 +0000 (05:21 -0700)]
[PATCH] undefined reference to ip_amanda_lock

Looks like a cut-n-paste thinko in the Kconfig file..

23 years ago[PATCH] x86-64 merge
Andi Kleen [Sat, 5 Apr 2003 02:18:34 +0000 (18:18 -0800)]
[PATCH] x86-64 merge

Make it compile again and various cleanups and a few bug fixes.  Only
changes x86-64 specific files.

Most of it are S3 suspend changes from Pavel and comment spelling fixes
from Steven Cole.

- Remove now obsolete check_cpu function
- Fix sys_ioctl prototype
- Small optimization - use SYSCALL for 32bit signal handling.
- Fix S3 suspend handling and split into individual files like i386 (Pavel)
- Merge from i386 (pci fixes etc.)
- Set correct paging attributes for IOMMU aperture
- Fix disable apic option

23 years ago[PATCH] Signal invalid ipc operation with ENOSYS
Ulrich Drepper [Fri, 4 Apr 2003 12:18:20 +0000 (04:18 -0800)]
[PATCH] Signal invalid ipc operation with ENOSYS

The ipc multiplexer syscall on x86 currently returns EINVAL for a
non-existing sub-opcode.  This logical but is a problem with the
introduction of new operations (like semtimedop).  Now EINVAL can mean
"no such operation" and "invalid parameter".  To avoid such problems in
future, could you apply the attached patch?

23 years ago[PATCH] update diffserv URL
Roman Zippel [Fri, 4 Apr 2003 12:18:12 +0000 (04:18 -0800)]
[PATCH] update diffserv URL

update diffserv URL, patch provided by Tero Pelander (tpeland@tkukoulu.fi).

23 years ago[PATCH] gconf update
Roman Zippel [Fri, 4 Apr 2003 12:18:05 +0000 (04:18 -0800)]
[PATCH] gconf update

A gconf update by Romain LiĆ©vin <roms@tilp.info>
- fixed bug when double-clicking for changing value.
- expand row when enabling a row with a submenu.
- various bug fixes

23 years ago[PATCH] oprofile doesn't compile with CONFIG_MODULES=n
John Levon [Fri, 4 Apr 2003 12:16:28 +0000 (04:16 -0800)]
[PATCH] oprofile doesn't compile with CONFIG_MODULES=n

The semantically correct approach is for register_module_notifier not to
exist at all.  That way is #ifdef hell.

So this just makes it an empty function (and also adds a missing
comment).

23 years ago[PATCH] cleanup mach-visws/mpparse.c
Andrey Panin [Fri, 4 Apr 2003 12:16:20 +0000 (04:16 -0800)]
[PATCH] cleanup mach-visws/mpparse.c

This trivial patch removes some now unused data structures from
mach-visws/mpparse.c

23 years ago[PATCH] allow penguin with SGI logo for visws
Andrey Panin [Fri, 4 Apr 2003 12:16:13 +0000 (04:16 -0800)]
[PATCH] allow penguin with SGI logo for visws

Visual Workstations 320/540 are SGI products, so IMHO they can use
penguin with SGI logo as mips does :))

23 years ago[PATCH] missing FB_VISUAL_PSEUDOCOLOR in fb_prepare_logo()
Andrey Panin [Fri, 4 Apr 2003 12:16:05 +0000 (04:16 -0800)]
[PATCH] missing FB_VISUAL_PSEUDOCOLOR in fb_prepare_logo()

This fixes the mighty penguin logo not appearing on visual workstation
framebuffer.  The trouble is missing 'case FB_VISUAL_PSEUDOCOLOR:' in
fb_prepare_logo() function.

23 years ago[PATCH] visws framebuffer driver needs mm.h
Andrey Panin [Fri, 4 Apr 2003 12:15:58 +0000 (04:15 -0800)]
[PATCH] visws framebuffer driver needs mm.h

This fixes the visws framebuffer driver which needs vm_area_struct from
linux/mm.h

23 years agoMerge bk://linux-pnp.bkbits.net/pnp-2.5
Linus Torvalds [Fri, 4 Apr 2003 12:13:14 +0000 (04:13 -0800)]
Merge bk://linux-pnp.bkbits.net/pnp-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] linux-2.5.66-signal-cleanup.patch
Roland McGrath [Fri, 4 Apr 2003 12:12:17 +0000 (04:12 -0800)]
[PATCH] linux-2.5.66-signal-cleanup.patch

Here is the cleanup patch I promised back in February.  Sorry it took a
while.

The effects should be purely cosmetic in 2.5.66.  However, the new
interface for the proper way to send thread-specific of process-global
signals from inside the kernel is needed for correct implementation of
some fixes to timer stuff that Ulrich told me about.

This cleans up some obsolete comments and macros in kernel/signal.c,
restores send_sig_info to its original behavior, and adds a global entry
point send_group_sig_info.  I checked all the uses of send_sig and
send_sig_info and changed a few to send_group_sig_info.

I think it would be cleanest if the whole mess of *_sig* entry points were
reduced to two or three, but I did the change that minimized the number of
callers I had to fix up.

There should be no discernible difference, since the 2.5.66 send_sig_info
function did group semantics for those signals by number already.  The only
exception to that is pdeath_signal, which I guess can be any signal number
but I deemed ought to be process-wide.

I did not change any of the calls using SIGKILL, though that does have
process-wide semantics.  There is no need to change it since SIGKILL always
kills the whole group, though the code path for send_sig(SIGKILL,...) calls
in multithreaded processes will be different now.

23 years ago[PATCH] bk - fix oprofile for pm driver register
John Levon [Fri, 4 Apr 2003 12:12:09 +0000 (04:12 -0800)]
[PATCH] bk - fix oprofile for pm driver register

OK, so I screwed up - didn't notice the late_initcall() that was
introduced, which was obviously bogus. This one should build OK for the
module case. I've tested insmod/rmmod alongside a mounted sysfs.

I think the built-in case is OK: oprofile/ is after kernel/ in the link
order. I tested that too.

23 years ago[PATCH] acpi compile fix
Andrew Morton [Fri, 4 Apr 2003 12:12:01 +0000 (04:12 -0800)]
[PATCH] acpi compile fix

ACPI is performing a spin_lock() on a `void *'.  That's OK when spin_lock is
implemented via an inline function.  But when it is implemented via macros
it causes compile-time breakage.

So cast it to the right type. It really should be fixed not to use opaque
handles, though.

23 years ago[PATCH] IPMI driver version 19 release
Corey Minyard [Fri, 4 Apr 2003 12:09:33 +0000 (04:09 -0800)]
[PATCH] IPMI driver version 19 release

This fixes some performance problems.  Some vendors implement firmware
updates over IPMI, and this speeds up that process quite a bit.

 * Improve the "send - wait for response - send -wait for response -
   etc" performance when using high-res timers.  Before, an ~10ms delay
   would be added to each message, because it didn't restart the timer
   if nothing was happing when a new message was started.

 * Add some checking for leaked messages.

23 years ago[PATCH] smp_call_function needs mb()
Zwane Mwaikambo [Fri, 4 Apr 2003 12:08:15 +0000 (04:08 -0800)]
[PATCH] smp_call_function needs mb()

We really need a memory barrier in smp_call_function(), so that the
other cpu's get the updated value when they get IPI'd immediately
afterwards.

This seems to be true on some old (and arguably broken) hardware where
the IPI generation and reception doesn't synchronize enough.

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Fri, 4 Apr 2003 10:44:52 +0000 (02:44 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[IPV4]: C99 initializers for ip_output.c
Stephen Hemminger [Fri, 4 Apr 2003 09:34:16 +0000 (01:34 -0800)]
[IPV4]: C99 initializers for ip_output.c

23 years ago[NETFILTER]: Get rid of unused include in ip_nat_core.c
Stephen Hemminger [Fri, 4 Apr 2003 09:33:17 +0000 (01:33 -0800)]
[NETFILTER]: Get rid of unused include in ip_nat_core.c

23 years ago[IPV6]: C99 initializers for IPV6 sockglue (and spelling fix).
Stephen Hemminger [Fri, 4 Apr 2003 09:32:18 +0000 (01:32 -0800)]
[IPV6]: C99 initializers for IPV6 sockglue (and spelling fix).

23 years ago[IPV6]: ipv6 can use synchronize_net.
Stephen Hemminger [Fri, 4 Apr 2003 09:30:47 +0000 (01:30 -0800)]
[IPV6]: ipv6 can use synchronize_net.

23 years agoKobject: add NULL to decl_subsys() due to addition of hotplug operations
Greg Kroah-Hartman [Fri, 4 Apr 2003 09:18:01 +0000 (01:18 -0800)]
Kobject: add NULL to decl_subsys() due to addition of hotplug operations

Oops, forgot the drivers/hotplug/pci_hotplug_core.c use of this...

23 years agoblock: add /sbin/hotplug support for when block devices are created and destroyed.
Greg Kroah-Hartman [Fri, 4 Apr 2003 09:16:08 +0000 (01:16 -0800)]
block: add /sbin/hotplug support for when block devices are created and destroyed.

23 years agodriver core: move the hotplug support for /sys/devices to use the kobject logic.
Greg Kroah-Hartman [Fri, 4 Apr 2003 09:13:54 +0000 (01:13 -0800)]
driver core: move the hotplug support for /sys/devices to use the kobject logic.

We can't switch /sys/class or /sys/bus to use this because they are
not creating new kobjects, only linking to the kobjects in /sys/devices.

23 years agoKobject: add NULL to decl_subsys() due to addition of hotplug operations
Greg Kroah-Hartman [Fri, 4 Apr 2003 09:08:26 +0000 (01:08 -0800)]
Kobject: add NULL to decl_subsys() due to addition of hotplug operations

23 years agokobject: cause /sbin/hotplug to be called when kobjects are added and removed
Greg Kroah-Hartman [Fri, 4 Apr 2003 09:06:13 +0000 (01:06 -0800)]
kobject: cause /sbin/hotplug to be called when kobjects are added and removed

This only happens if a kobject belongs to a subsystem that has specified
a set of hotplug operations.

Based on work done by Kevin Fleming <kpfleming@cox.net>

23 years agoMerge http://linux-lksctp.bkbits.net/lksctp-2.5
David S. Miller [Fri, 4 Apr 2003 08:56:38 +0000 (00:56 -0800)]
Merge http://linux-lksctp.bkbits.net/lksctp-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Fri, 4 Apr 2003 08:54:13 +0000 (00:54 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years ago[PATCH] USB: remove redundant checks for NULL when it can never happen.
Greg Kroah-Hartman [Fri, 4 Apr 2003 08:53:36 +0000 (00:53 -0800)]
[PATCH] USB: remove redundant checks for NULL when it can never happen.

23 years ago[PATCH] USB: set_configuration() missed some state
David Brownell [Fri, 4 Apr 2003 08:15:18 +0000 (00:15 -0800)]
[PATCH] USB: set_configuration() missed some state

I noticed that the usb_set_configuration() code was leaving
endpoints halted ... likely not a problem just now since that
routine can't be used safely except during enumeration, but
better to fix this than not.

23 years ago[PATCH] USB: kerneldoc for usbfs
David Brownell [Fri, 4 Apr 2003 08:14:58 +0000 (00:14 -0800)]
[PATCH] USB: kerneldoc for usbfs

So far as I know, "usbfs" was never documented ... so
here's a patch with some text I've had sitting around,
merging it into the other USB kerneldoc.

It should be accurate, down to the warnings about why
not to use several of the calls, though cross-review
with the code would be good too.  A notable omission
is any details on the async APIs.

23 years ago[PATCH] USB usbnet: dynamic config, cdc-ether, net1080
David Brownell [Fri, 4 Apr 2003 08:14:39 +0000 (00:14 -0800)]
[PATCH] USB usbnet: dynamic config, cdc-ether, net1080

This patch:

   - Makes "usbnet" pay attention to device descriptors in
     the most common cases; there's less need to embed device
     hardware details.  This lets it work with high speed
     devices, and should help interop with the newer ARM/PXA
     kernels "usb-eth" (same vid/pid, but different endpoints).

   - Adds some new CDC Ethernet support, which is partly enabled:
     the Zaurus SL-5500 code uses it, with the current FRAMING_Z
     flag overriding normal CDC framing on-the-wire.  (Most of
     the other "minidrivers" use CDC framing, except Net1080
     and GeneSys.)

   - Merges a patch from Johannes to recover from some net1080
     framing errors by flushing the fifos ... the chip gets into
     a wierd mode, this makes the link more robust.  (Thanks!)

   - Gets rid of a family of cpu/logfile saturating loops that
     could show up in early stages of disconnect processing,
     while we're getting rx/tx errors continuously since khubd
     hasn't tried to disconnect() us yet.  (Pathological case,
     with lots of logging enabled: khubd never gets scheduled!)

   - Uses deeper queues at high speed, so the host controllers
     can stay busy transferring packets even when IRQs get held
     off for several milliseconds.  That pipelining gives better
     throughput too -- 4x more with one device, says TTCP.

With the possible exception of multicast support, this code
should be a fine replacement to "cdc-ether" ... certainly
its faster for high speed devices.  Some later patch should
likely do a switch-over.  (Which would  also resolve a Zaurus
hotplugging bug:  "cdc-ether" doesn't blacklist it.)

23 years ago[PATCH] USB: pegasus link status fix
Petko Manolov [Fri, 4 Apr 2003 08:14:20 +0000 (00:14 -0800)]
[PATCH] USB: pegasus link status fix

  fixed up the link status detection

23 years ago[PATCH] USB: C99 initializers for drivers/usb files
Art Haas [Fri, 4 Apr 2003 08:14:00 +0000 (00:14 -0800)]
[PATCH] USB: C99 initializers for drivers/usb files

Here are two patches that convert the files to use C99 initializers. The
patches are against current BK.

23 years ago[PATCH] USB: small fix to pegasus.c
Paul Mackerras [Fri, 4 Apr 2003 08:13:40 +0000 (00:13 -0800)]
[PATCH] USB: small fix to pegasus.c

Using cpu_to_le16p on a __u8 variable is wrong, and gives a compile
warning on PPC.  It's better to use cpu_to_le16 in this case.  Here is
a patch to fix it.  Please apply.

23 years ago[PATCH] USB: removing unnecessary calls to usb_set_configuration
Oliver Neukum [Fri, 4 Apr 2003 08:13:21 +0000 (00:13 -0800)]
[PATCH] USB: removing unnecessary calls to usb_set_configuration

  - remove unnecessary calls to usb_set_configuration

23 years ago[PATCH] USB: locking reset/probe
Oliver Neukum [Fri, 4 Apr 2003 08:12:44 +0000 (00:12 -0800)]
[PATCH] USB: locking reset/probe

  - mutual exclusion between reset() and probe()

23 years ago[SPARC]: Implement STT_REGISTER sparc support more cleanly.
Rusty Russell [Fri, 4 Apr 2003 08:03:13 +0000 (00:03 -0800)]
[SPARC]: Implement STT_REGISTER sparc support more cleanly.

23 years agoMerge gregkh@kernel.bkbits.net:/home/gregkh/linux/linus-2.5
Greg Kroah-Hartman [Fri, 4 Apr 2003 07:38:24 +0000 (23:38 -0800)]
Merge gregkh@kernel.bkbits.net:/home/gregkh/linux/linus-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5

23 years ago[CPUFREQ] missing include in acpi driver.
Dave Jones [Fri, 4 Apr 2003 02:14:34 +0000 (03:14 +0100)]
[CPUFREQ] missing include in acpi driver.
Spotted by Dominik Brodowski

23 years ago[PATCH 2.5] ES968: kmalloc params fix
Adam Belay [Thu, 3 Apr 2003 23:31:47 +0000 (23:31 +0000)]
[PATCH 2.5] ES968: kmalloc params fix

Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART)
From: Pablo Menichini <pablo@menichini.com.ar>

This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo

23 years ago[PATCH 2.5] ALS100: kmalloc params fix
Adam Belay [Thu, 3 Apr 2003 23:27:53 +0000 (23:27 +0000)]
[PATCH 2.5] ALS100: kmalloc params fix

Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART)
From: Pablo Menichini <pablo@menichini.com.ar>

This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo

23 years agoALSA DT019X PnP Updates
Adam Belay [Thu, 3 Apr 2003 23:22:22 +0000 (23:22 +0000)]
ALSA DT019X PnP Updates

Converts this driver to the pnp api.

23 years agoAZT2320 PnP Updates
Adam Belay [Thu, 3 Apr 2003 23:21:01 +0000 (23:21 +0000)]
AZT2320 PnP Updates

Converts this driver to the pnp api.

23 years agoMerge http://linux.bkbits.net/linux-2.5
Adam Belay [Thu, 3 Apr 2003 23:10:58 +0000 (23:10 +0000)]
Merge http://linux.bkbits.net/linux-2.5
into neo.rr.com:/home/ambx1/linux/bk/linus-2.5

23 years ago[PATCH] md: Add some new lines to diagnostic printks.
Neil Brown [Thu, 3 Apr 2003 09:32:49 +0000 (01:32 -0800)]
[PATCH] md: Add some new lines to diagnostic printks.

Stops <6> appearing in middles of line and improves output.

23 years ago[PATCH] md: Cleanups for md to move device size calculations into personalities
Neil Brown [Thu, 3 Apr 2003 09:32:42 +0000 (01:32 -0800)]
[PATCH] md: Cleanups for md to move device size calculations into personalities

23 years ago[PATCH] md: Fix stupid oops in recent md.c module changes
Neil Brown [Thu, 3 Apr 2003 09:32:34 +0000 (01:32 -0800)]
[PATCH] md: Fix stupid oops in recent md.c module changes

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Thu, 3 Apr 2003 07:49:50 +0000 (23:49 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years ago[MODULE]: On sparc, ignore undefined symbols of type STT_REGISTER.
David S. Miller [Thu, 3 Apr 2003 07:44:43 +0000 (23:44 -0800)]
[MODULE]: On sparc, ignore undefined symbols of type STT_REGISTER.

23 years ago[SPARC64]: Fix trap stack allocations so gcc-3.x builds work.
David S. Miller [Thu, 3 Apr 2003 05:34:27 +0000 (21:34 -0800)]
[SPARC64]: Fix trap stack allocations so gcc-3.x builds work.
1) Use PTREGS_OFF consistently
2) Define it to allocate STACKFRAME_SZ instead of REGWIN_SZ
3) Kill off REGWIN_SZ, replace with sizeof(struct reg_window).

23 years ago[SPARC64]: Missing break; statement in module reloc code.
David S. Miller [Thu, 3 Apr 2003 05:16:24 +0000 (21:16 -0800)]
[SPARC64]: Missing break; statement in module reloc code.

23 years ago[SPARC64]: Support OLO10 relocations for modules.
David S. Miller [Thu, 3 Apr 2003 04:55:19 +0000 (20:55 -0800)]
[SPARC64]: Support OLO10 relocations for modules.

23 years ago[SPARC64]: Fix boot target deps.
Ben Collins [Thu, 3 Apr 2003 01:44:37 +0000 (17:44 -0800)]
[SPARC64]: Fix boot target deps.

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Thu, 3 Apr 2003 01:36:45 +0000 (17:36 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 3 Apr 2003 00:59:51 +0000 (16:59 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[SPARC64]: Update defconfig.
David S. Miller [Thu, 3 Apr 2003 00:55:15 +0000 (16:55 -0800)]
[SPARC64]: Update defconfig.

23 years ago[SPARC64]: Dont transition in us2e drivers if divisor does not change.
David S. Miller [Thu, 3 Apr 2003 00:46:26 +0000 (16:46 -0800)]
[SPARC64]: Dont transition in us2e drivers if divisor does not change.

23 years ago[PATCH] ext3 journal commit I/O error fix
Andrew Morton [Thu, 3 Apr 2003 00:29:43 +0000 (16:29 -0800)]
[PATCH] ext3 journal commit I/O error fix

From: Hua Zhong <hzhong@cisco.com>

The current ext3 totally ignores I/O errors that happened during a
journal_force_commit time, causing user space to falsely believe it has
succeeded, which actually did not.

This patch  checks IO error during  journal_commit_transaction. and aborts
the journal when there is I/O error.

Originally I thought about reporting the error without doing aborting the
journal, but it probably needs a new flag. Aborting the journal seems to be
the easy way to  signal "hey sth is wrong..".

23 years ago[PATCH] ext3: create a slab cache for transaction handles
Andrew Morton [Thu, 3 Apr 2003 00:29:36 +0000 (16:29 -0800)]
[PATCH] ext3: create a slab cache for transaction handles

ext3 allocates and frees at least one handle structure for each system call.
kmalloc and kfree are apparent in the profiles.

Adding a slab cache for these objects takes the overhead for a write() from
1.63 microseconds down to 1.56.

23 years ago[PATCH] ext3_commit_write speedup
Andrew Morton [Thu, 3 Apr 2003 00:29:28 +0000 (16:29 -0800)]
[PATCH] ext3_commit_write speedup

For an appending write, ext3_commit_write() will call the expensive
ext3_mark_inode_dirty() twice.  Once in generic_commit_write()'s extension of
i_size and once in ext3_commit_write() itself where i_disksize is updated.

But by updating i_disksize _before_ calling generic_commit_write() these can
be piggybacked.

The patch takes the overhead of a write() from 1.96 microseconds down to
1.63.

23 years ago[PATCH] ext3_mark_inode_dirty() speedup
Andrew Morton [Thu, 3 Apr 2003 00:29:21 +0000 (16:29 -0800)]
[PATCH] ext3_mark_inode_dirty() speedup

ext3_mark_inode_dirty() (and several other callers) use the
ext3_reserve_inode_write() and ext3_mark_ioc_dirty() pair for journalling an
inode's backing block.

Because ext3_reserve_inode_write() gets journalling access to the block there
is no need for ext3_mark_iloc_dirty() to do it as well.

This change reduces the overhead of a write() from 2.7 microseconds to 1.95
on a 2.7G P4.

23 years ago[PATCH] Fix jbd assert failure on IO error.
Andrew Morton [Thu, 3 Apr 2003 00:29:13 +0000 (16:29 -0800)]
[PATCH] Fix jbd assert failure on IO error.

From: Stephen Tweedie <sct@redhat.com>

The buffer_uptodate flag gets cleared on IO failure, and this can panic jbd
when it tries to write such a buffer.  Relax the panic to be just a warning.

23 years ago[PATCH] Add less-severe assert-failure form for ext3.
Andrew Morton [Thu, 3 Apr 2003 00:29:06 +0000 (16:29 -0800)]
[PATCH] Add less-severe assert-failure form for ext3.

From: Stephen Tweedie <sct@redhat.com>

Add a new form of assert failure in ext3 which allows us to flag events which
are *usually* bugs, but which can be legally triggered in the presence of IO
failures.  Don't panic the kernel on such errors unless we've defined
#JBD_PARANOID_IOFAIL, which will normally be set only for testing purposes.

23 years ago[PATCH] remove dparent_lock
Andrew Morton [Thu, 3 Apr 2003 00:28:58 +0000 (16:28 -0800)]
[PATCH] remove dparent_lock

The big SMP machines are seeing quite some contention in dnotify_parent()
(via vfs_write).  This function is hammering the global dparent_lock.

However we don't actually need a global dparent_lock for pinning down
dentry->d_parent.  We can use dentry->d_lock for this.  That is already being
held across d_move.

This patch speeds up SDET on the 16-way by 5% and wipes dnotify_parent() off
the profiles.

It also uninlines dnofity_parent().

It also uses spin_lock(), which is faster than read_lock().

I'm not sure that we need to take both the source and target dentry's d_lock
in d_move.

The patch also does lots of s/__inline__/inline/ in dcache.h

23 years ago[PATCH] real_lookup race fix
Andrew Morton [Thu, 3 Apr 2003 00:28:49 +0000 (16:28 -0800)]
[PATCH] real_lookup race fix

From: Maneesh Soni <maneesh@in.ibm.com>

Here is a patch to use seqlock for real_lookup race with d_lookup as suggested
by Linus. The race condition can result in duplicate dentry when d_lookup
fails due concurrent d_move in some unrelated directory.

Apart from real_lookup, lookup_hash()->cached_lookup() can also fail due
to same reason. So, for that I am doing the d_lookup again.

Now we have __d_lookup (called from do_lookup() during pathwalk) and
d_lookup which uses seqlock to protect againt rename race.

dcachebench numbers (lower is better) don't have much difference on a 4-way
PIII xeon SMP box.

base-2565
Average usec/iteration  19059.4
Standard Deviation      503.07

base-2565 + seq_lock
Average usec/iteration  18843.2
Standard Deviation      450.57

23 years ago[PATCH] exp_parent locking fixes
Andrew Morton [Thu, 3 Apr 2003 00:28:42 +0000 (16:28 -0800)]
[PATCH] exp_parent locking fixes

From: Neil Brown and myself.

Don't do dput() inside read_lock().  It can sleep.

23 years ago[PATCH] umsdos fixes
Andrew Morton [Thu, 3 Apr 2003 00:28:34 +0000 (16:28 -0800)]
[PATCH] umsdos fixes

From: Andries.Brouwer@cwi.nl

Make sure structs used by umsdos ioctls do not change size when the size of
dev_t is changed.

23 years ago[PATCH] Fix devfs' partition handling
Andrew Morton [Thu, 3 Apr 2003 00:28:27 +0000 (16:28 -0800)]
[PATCH] Fix devfs' partition handling

From: Andre Landwehr <andre.landwehr@gmx.net>

with / on an IDE harddisk the disks partitions do not appear in
devfs, only the disc device. This is due to rescan_partitions
being called twice and deleting but not re-creating the entries
during the second call.

hch has acked this.

23 years ago[PATCH] add vt console scrollback ioctl
Andrew Morton [Thu, 3 Apr 2003 00:28:18 +0000 (16:28 -0800)]
[PATCH] add vt console scrollback ioctl

From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>

There is no way for a braille device driven by brltty (userland root-owned
daemon) to scrollback the virtual console, the only way is to use the pc
keyboard.  A very simple TIOCLINUX ioctl meets this need (tested).

Also add a command for bringing the last console to the top, as keyboard.c's
lastcons() does when pressing alt - down arrow.

23 years ago[PATCH] sync dirty pages in fadvise(FADV_DONTNEED)
Andrew Morton [Thu, 3 Apr 2003 00:28:11 +0000 (16:28 -0800)]
[PATCH] sync dirty pages in fadvise(FADV_DONTNEED)

This changes the fadvise(FADV_DONTNEED) operation to start async writeout of
any dirty pages in the file.

The thinking is that if the application doesn't want to use those pages in
the future, we may as well get IO underway against them so they can be freed
up on the next call to fadvise().

The POSIX spec does not go into any detail as to whether this is the right or
wrong behaviour.

This provides a nice way for applications whihc are writing streaming data
(the main users of fadvise) to keep the amount of dirty pagecache under
control without having to resort to system-wide VM tuning.

It also provides an "async fsync()".  If the application passes in a length
of zero, fadvise will start async writeout of the pages, but will not
invalidate any of the file's pagecache.

23 years ago[PATCH] Additional 3c980 device support
Andrew Morton [Thu, 3 Apr 2003 00:28:03 +0000 (16:28 -0800)]
[PATCH] Additional 3c980 device support

From: "J.A. Magallon" <jamagallon@able.es>

Adds support for a couple of 3c980 variants which are in pci.ids, but not in
the driver.

23 years ago[PATCH] aic7xxx timer deletion fix
Andrew Morton [Thu, 3 Apr 2003 00:27:56 +0000 (16:27 -0800)]
[PATCH] aic7xxx timer deletion fix

From: Zwane Mwaikambo <zwane@linuxpower.ca>

ahc_linux_free_device() needs to use del_timer_sync().  slab corruption has
been observed due to the timer handler running after the containing object
was freed.

23 years ago[PATCH] misc fixes
Andrew Morton [Thu, 3 Apr 2003 00:27:47 +0000 (16:27 -0800)]
[PATCH] misc fixes

- Fix warning in sound/pci/cs46xx/cs46xx_lib.c (Martin Bligh)

- pte_file() comment fix (Pete Zaitcev)

- _PAGE_FILE comment clarifications

- copy_to_user() check in do_proc_readlink()

23 years ago[PATCH] struct stat - support larger dev_t
Andrew Morton [Thu, 3 Apr 2003 00:27:40 +0000 (16:27 -0800)]
[PATCH] struct stat - support larger dev_t

From: Andries.Brouwer@cwi.nl

Below a patch that changes struct stat for a number of
architectures. Maintainers, please watch carefully.

Struct stat is used to transfer information from kernel
to user space on a stat() system call.
It has fields st_dev, st_rdev.

The size of these fields is in principle unrelated to
the size of a dev_t in user space or the size of a
dev_t or kdev_t in kernel space.

It is just the "capacity" of the channel.
The actual amount of useful information is the minimum
of the four sizes (kernel dev_t, kernel kdev_t,
user dev_t, width of stat st_dev, st_rdev fields).

The goal of this patch is to make sure that the stat() and stat64()
system calls transmit at least 32 and 64 bits, respectively.
This is achieved by using the padding that was present already.
We fail when no padding was present, or when the padding is on
the wrong side (after the field, while the machine is big-endian).

alpha: stat: uses unsigned int, 32 bits
arm: stat: uses unsigned short - bad.
The padding is on one side, which means that this can
be made into unsigned long only on little endian systems.
FIXED - unless __ARMEB__.
stat64: used unsigned short - FIXED, now unsigned long long.
cris: stat: used unsigned short - FIXED, now unsigned long
stat64: used unsigned short - FIXED, now unsigned long long.
i386: stat: used unsigned short - FIXED, now unsigned long
stat64: used unsigned short - FIXED, now unsigned long long.
ia64: stat: uses unsigned long, 64 bits
m68k: stat: used unsigned short - bad, but this cannot be fixed
since m68k is big-endian, and the available padding is on
the wrong side. NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
mips: stat: uses dev_t which is unsigned int, 32 bits
stat64: used unsigned long, 32 bits. NOT FIXED.
(There is padding on one side, so this can be fixed if __MIPSEL__.)
mips64: stat: uses dev_t which is unsigned int, 32 bits
parisc: stat: uses dev_t, 32 bits
stat64: uses unsigned long long, 64 bits
ppc: stat: uses dev_t which is unsigned int, 32 bits
stat64: unsigned long long, 64 bits
ppc64: stat: uses dev_t which is unsigned long, 64 bits
stat64: uses unsigned long, 64 bits
sparc: stat: uses unsigned short, no padding. NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
sparc64:stat: uses dev_t which is unsigned int, 32 bits
stat64: used unsigned short - FIXED, now unsigned long long.
s390: stat: used unsigned short, big-endian, padding on the wrong side,
NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
s390x: stat: uses unsigned long, 64 bits
sh: stat: used unsigned short, but padding maybe on wrong side.
NOT FIXED.
stat64: used unsigned short - FIXED, now unsigned long long.
v850: stat: used __kernel_dev_t.
BUG: NEVER use __kernel types in a user space interface.
Replaced the types. FIXED - now unsigned int - 32 bits.
stat64: FIXED - now unsigned long long - 64 bits.
x86_64: stat: uses unsigned long, 64 bits

So, on most architectures we achieve the aim of 32 bits for stat,
64 bits for stat64. On all architectures we achieve at least
16 bits for stat, 32 bits for stat64.

23 years ago[PATCH] tmpfs 6/6: percentile sizing of tmpfs
Andrew Morton [Thu, 3 Apr 2003 00:27:33 +0000 (16:27 -0800)]
[PATCH] tmpfs 6/6: percentile sizing of tmpfs

From: CaT <cat@zip.com.au>

What this patch does is allow you to specify the max amount of memory tmpfs
can use as a percentage of available real ram.  This (in my eyes) is useful
so that you do not have to remember to change the setting if you want
something other then 50% and some of your ram goes.

Hugh redid the arithmetic to not overflow at 4GB; the particular order of
lines helps RH's gcc-2.96-110 not to get confused in the do_div.  2.5 can use
totalram_pages.  Update mount options in tmpfs Doc.

There's an argument that the percentage should be of ram+swap, that's what
Christoph originally intended.  But we set the default at 50% of ram only, so
I believe it's more consistent to follow that precedent.

23 years ago[PATCH] tmpfs 5/6: use cond_resched
Andrew Morton [Thu, 3 Apr 2003 00:27:26 +0000 (16:27 -0800)]
[PATCH] tmpfs 5/6: use cond_resched

From: Hugh Dickins <hugh@veritas.com>

cond_resched each time around the loop in shmem_file_write
and do_shmem_file_read, matching filemap.c.

23 years ago[PATCH] tmpfs 4/6: use mark_page_accessed
Andrew Morton [Thu, 3 Apr 2003 00:27:19 +0000 (16:27 -0800)]
[PATCH] tmpfs 4/6: use mark_page_accessed

From: Hugh Dickins <hugh@veritas.com>

tmpfs pages should be surfing the LRUs in the company of their filemap
friends: I was expecting the rules to change, but they've been stable so
long, let's sprinkle mark_page_accessed in the equivalent places here; but
(don't ask me why) SetPageReferenced in shmem_file_write.  Ooh, and
shmem_populate was missing a flush_page_to_ram.