]> git.hungrycats.org Git - linux/log
linux
23 years agoMerge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
Patrick Mochel [Wed, 20 Aug 2003 01:37:05 +0000 (18:37 -0700)]
Merge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

23 years ago[PATCH] Maintainer/Credit update
Alan Cox [Wed, 20 Aug 2003 00:56:43 +0000 (17:56 -0700)]
[PATCH] Maintainer/Credit update

- Roadrunner address is defunct
- 3c501/Z85230 are no longer maintained
- Update other stuff because I will be away for a year

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Patrick Mochel [Tue, 19 Aug 2003 16:43:24 +0000 (09:43 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

23 years ago[power] Move suspend()/resume() methods.
Patrick Mochel [Tue, 19 Aug 2003 16:36:46 +0000 (09:36 -0700)]
[power] Move suspend()/resume() methods.

Instead of putting them in struct device_driver (which few, if any drivers
use directly), put them in the controlling bus_type of the device (which
are currently responsible for claiming the methods and forwarding the calls
to the bus-specific driver anyway).

This will save 8 bytes per driver instance, which isn't that much, but it's
something. It also makes it more obvious to the reader what is going on.
And, it makes for easier bus-level defaults in the case the device has no
driver attached.

The old calls remain until all instances have been fixed up.

23 years ago[power] Update device handling.
Patrick Mochel [Tue, 19 Aug 2003 16:23:34 +0000 (09:23 -0700)]
[power] Update device handling.

- From conversations with Ben Herrenschmidt.

Most devices should be able to handle powering down with interrupts enabled,
which I already assume. But since suspending will stop I/O transactions
before the call to power it off (making the device unusable anyway), there
is no need to separate the calls - we may as well make it simpler for
driver authors and require that driver authors do everything at the same
time.

There will always be devices that need to either power down or power up the
device with interrupts disabled. They will get called with interrupts
enabled, but may return -EAGAIN to be called again with interrupts disabled
to do what they need to do.

System devices are now always called only with interrupts disabled. Come
on - they're system devices. Of course we need interrupts disabled.

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Tue, 19 Aug 2003 15:52:52 +0000 (08:52 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[power] Further swsusp cleanups.
Patrick Mochel [Tue, 19 Aug 2003 15:39:03 +0000 (08:39 -0700)]
[power] Further swsusp cleanups.

- Remove drivers_resume() and call from do_magic_resume2(). Handled by core.
- When bringing devices back to life, call device_pm_resume()
- Make sure we report the error from write_suspend_image()
- Remove suspend_power_down() and call to it. Handled by PM core.
- Move swap file resetting and freeing of pagedir to swsusp_free()
- Remove extraneous in_atomic() checks.
- Mark all resume functions __init.
- Move resume_suspend_image() inside swsusp_read() and cleanup.
- Make do_magic() report error.

23 years ago[power] Adapt swsusp to new PM core. Clean up heavily.
Patrick Mochel [Tue, 19 Aug 2003 14:53:13 +0000 (07:53 -0700)]
[power] Adapt swsusp to new PM core. Clean up heavily.

- Split suspend/resume code into the four functions called from the PM core.
- Remove now-duplicated code.
- Make sure PM core frees memory and sync's disks before we shut down devices.
- Remove software_suspend(), in favor of pm_suspend().
- Remove unused definitions from suspend.h

23 years ago[x86] Kill warning in dmi_scan.c
Patrick Mochel [Tue, 19 Aug 2003 14:22:48 +0000 (07:22 -0700)]
[x86] Kill warning in dmi_scan.c

- Wrap unused function in same #ifdef as caller.
- Boggle as to WTF CONFIG_MOUNT_ROOT_FAILED_MSG is supposed to do.

23 years ago[acpi] Fix compilation when CONFIG_SMP=n
Patrick Mochel [Tue, 19 Aug 2003 14:21:38 +0000 (07:21 -0700)]
[acpi] Fix compilation when CONFIG_SMP=n

A recent slew of ACPI "fixes" completely broke the build when one built
without SMP, IO APICs, or Local APICs.

Bad Intel, no cookie.

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
David S. Miller [Tue, 19 Aug 2003 13:44:37 +0000 (06:44 -0700)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

23 years ago[NET]: Export neigh_changeaddr.
David S. Miller [Tue, 19 Aug 2003 15:13:27 +0000 (08:13 -0700)]
[NET]: Export neigh_changeaddr.

23 years ago[NET]: Convert 802/tr to seq_file.
Stephen Hemminger [Tue, 19 Aug 2003 14:27:25 +0000 (07:27 -0700)]
[NET]: Convert 802/tr to seq_file.

23 years ago[IRDA]: style: Separate data from code in irlan_print_filter().
François Romieu [Tue, 19 Aug 2003 14:23:59 +0000 (07:23 -0700)]
[IRDA]: style: Separate data from code in irlan_print_filter().

23 years ago[IRDA]: Convert irlan to seq_file interface.
Stephen Hemminger [Tue, 19 Aug 2003 14:22:35 +0000 (07:22 -0700)]
[IRDA]: Convert irlan to seq_file interface.

23 years ago[IRDA]: Remove duplicate of irlan_state.
Stephen Hemminger [Tue, 19 Aug 2003 14:20:48 +0000 (07:20 -0700)]
[IRDA]: Remove duplicate of irlan_state.

Remove duplicate string definition. Same table already defined and
exported in irlan_event.c

23 years ago[IRDA]: Convert irlan to use alloc_netdev().
Stephen Hemminger [Tue, 19 Aug 2003 14:19:35 +0000 (07:19 -0700)]
[IRDA]: Convert irlan to use alloc_netdev().

23 years ago[IRDA]: Remove hashbin from irlan.
Stephen Hemminger [Tue, 19 Aug 2003 14:18:37 +0000 (07:18 -0700)]
[IRDA]: Remove hashbin from irlan.

23 years ago[IRDA]: Remove unused function prototype in irda_device.c
Stephen Hemminger [Tue, 19 Aug 2003 14:17:20 +0000 (07:17 -0700)]
[IRDA]: Remove unused function prototype in irda_device.c

23 years ago[IRDA]: Set owner field on /proc/net/irda sub entries.
Stephen Hemminger [Tue, 19 Aug 2003 14:16:15 +0000 (07:16 -0700)]
[IRDA]: Set owner field on /proc/net/irda sub entries.

23 years ago[IRDA]: ircomm - set owner get rid of MOD_INC/MOD_DEC.
Stephen Hemminger [Tue, 19 Aug 2003 14:15:12 +0000 (07:15 -0700)]
[IRDA]: ircomm - set owner get rid of MOD_INC/MOD_DEC.

Ircomm in 2.6.0-test3 can just set the owner field in the tty structure
like other drivers, and not mess with MOD_INC/MOD_DEC.

23 years ago[NET]: Make pktgen depend on procfs.
Robert Olsson [Tue, 19 Aug 2003 14:12:56 +0000 (07:12 -0700)]
[NET]: Make pktgen depend on procfs.

23 years ago[ATM]: atmdev api cleanup -- remove sg_send() and feedback() (mitch@sfgoth.com).
Chas Williams [Tue, 19 Aug 2003 14:11:08 +0000 (07:11 -0700)]
[ATM]: atmdev api cleanup -- remove sg_send() and feedback() (mitch@sfgoth.com).

23 years ago[NET]: update STRIP driver.
Stephen Hemminger [Tue, 19 Aug 2003 14:08:54 +0000 (07:08 -0700)]
[NET]: update STRIP driver.

- set owner field on tty ldisc
- allocate network device objects with alloc_netdev
- use list_head macros and put locking around list of devices
- convert to seq_file for /proc
- use change_mtu hook rather than guessing at mtu changes

23 years ago[IRDA]: Kill old irtty driver, as suggested by Jean and Jeff.
Stephen Hemminger [Tue, 19 Aug 2003 14:07:18 +0000 (07:07 -0700)]
[IRDA]: Kill old irtty driver, as suggested by Jean and Jeff.

23 years ago[NET]: Kill unused first argument in dev_get_idx().
Stephen Hemminger [Tue, 19 Aug 2003 14:04:44 +0000 (07:04 -0700)]
[NET]: Kill unused first argument in dev_get_idx().

23 years ago[NET]: Document ->stop() method netdevice semantics.
Stephen Hemminger [Tue, 19 Aug 2003 14:03:15 +0000 (07:03 -0700)]
[NET]: Document ->stop() method netdevice semantics.

23 years ago[NET]: free_netdev - define HAVE_FREE_NETDEV in linux/netdevice.h
Stephen Hemminger [Tue, 19 Aug 2003 14:01:38 +0000 (07:01 -0700)]
[NET]: free_netdev - define HAVE_FREE_NETDEV in linux/netdevice.h

23 years ago[NET]: free_netdev - fix leaky drivers
Stephen Hemminger [Tue, 19 Aug 2003 14:00:39 +0000 (07:00 -0700)]
[NET]: free_netdev - fix leaky drivers

When doing the audit for this change, it was obvious that several drivers
allocate but never free the net_device.

This fixes these drivers.  This patch is riskier than the earlier
ones, because it isn't just a simple substitution and maybe there
is a reason they never free.

23 years ago[NET]: free_netdev - destructors.
Stephen Hemminger [Tue, 19 Aug 2003 13:59:31 +0000 (06:59 -0700)]
[NET]: free_netdev - destructors.

Drivers that use kfree in destructor are easily converted
to use free_netdev.

23 years ago[NET]: free_netdev - net/* drivers.
Stephen Hemminger [Tue, 19 Aug 2003 13:58:25 +0000 (06:58 -0700)]
[NET]: free_netdev - net/* drivers.

Replace kfree with free_netdev in cleanup routines
of protocols and network pseudo drivers.

23 years ago[NET]: free_netdev - misc drivers.
Stephen Hemminger [Tue, 19 Aug 2003 13:56:29 +0000 (06:56 -0700)]
[NET]: free_netdev - misc drivers.

s/kfree/free_netdev/ in cleanup routines of a bunch
of different network drivers.

23 years ago[NET]: free_netdev - pcmcia drivers.
Stephen Hemminger [Tue, 19 Aug 2003 13:55:37 +0000 (06:55 -0700)]
[NET]: free_netdev - pcmcia drivers.

Replace kfree with free_netdev

23 years ago[NET]: free_netdev - tokenring changes.
Stephen Hemminger [Tue, 19 Aug 2003 13:54:43 +0000 (06:54 -0700)]
[NET]: free_netdev - tokenring changes.

s/kfree/free_netdev/ as appropriate for tokenring drivers.

23 years ago[NET]: free_netdev - drivers/net/* changes.
Stephen Hemminger [Tue, 19 Aug 2003 13:53:43 +0000 (06:53 -0700)]
[NET]: free_netdev - drivers/net/* changes.

Simple one line substitution of kfree with free_netdev
for the bulk of the network drivers.

23 years ago[NET]: free_netdev - update documentation
Stephen Hemminger [Tue, 19 Aug 2003 13:52:34 +0000 (06:52 -0700)]
[NET]: free_netdev - update documentation

23 years ago[NET]: free_netdev - free network device on last class_device_usage
Stephen Hemminger [Tue, 19 Aug 2003 13:51:39 +0000 (06:51 -0700)]
[NET]: free_netdev - free network device on last class_device_usage

This patch adds the free_netdev function and associated
changes so that net_device structures are not freed until
last reference to the network device class is released.

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
David S. Miller [Tue, 19 Aug 2003 13:13:58 +0000 (06:13 -0700)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

23 years agoMerge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
David S. Miller [Tue, 19 Aug 2003 13:11:04 +0000 (06:11 -0700)]
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5

23 years ago[SPARC64]: Fix uniprocessor build.
David S. Miller [Tue, 19 Aug 2003 14:30:44 +0000 (07:30 -0700)]
[SPARC64]: Fix uniprocessor build.

23 years ago[CPUMASK]: Prevent unused variable warnings on uniprocessor.
David S. Miller [Tue, 19 Aug 2003 14:30:03 +0000 (07:30 -0700)]
[CPUMASK]: Prevent unused variable warnings on uniprocessor.

23 years agoMerge bk://linux.bkbits.net/linux-2.5
Patrick Mochel [Tue, 19 Aug 2003 12:55:08 +0000 (05:55 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into kernel.bkbits.net:/home/mochel/linux-2.5-power

23 years ago[SPARC64]: Always use cpu_data().udelay_val.
David S. Miller [Tue, 19 Aug 2003 12:28:41 +0000 (05:28 -0700)]
[SPARC64]: Always use cpu_data().udelay_val.

23 years ago[SPARC64]: Kill up_clock_tick, use cpu_data().
David S. Miller [Tue, 19 Aug 2003 12:24:20 +0000 (05:24 -0700)]
[SPARC64]: Kill up_clock_tick, use cpu_data().

23 years ago[SPARC64]: Make cpu_data present even on UP builds.
David S. Miller [Tue, 19 Aug 2003 12:16:05 +0000 (05:16 -0700)]
[SPARC64]: Make cpu_data present even on UP builds.

23 years ago[SPARC64]: Remove unused crap from asm/irq.h
David S. Miller [Tue, 19 Aug 2003 12:05:19 +0000 (05:05 -0700)]
[SPARC64]: Remove unused crap from asm/irq.h

23 years ago[SPARC64]: Turn cpu_data into per-cpu data.
David S. Miller [Tue, 19 Aug 2003 12:00:50 +0000 (05:00 -0700)]
[SPARC64]: Turn cpu_data into per-cpu data.

23 years ago[acpi] Fix CONFIG_ACPI_HT dependencies. Again.
Patrick Mochel [Tue, 19 Aug 2003 11:33:49 +0000 (04:33 -0700)]
[acpi] Fix CONFIG_ACPI_HT dependencies. Again.

Hyperthreading is a Pentium 4-specific feature. It should only depend on
whether the user has configured P4 support in.

23 years ago[power] Add initial support for suspend-to-disk.
Patrick Mochel [Tue, 19 Aug 2003 09:43:08 +0000 (02:43 -0700)]
[power] Add initial support for suspend-to-disk.

- Add prototypes for split-up swsusp functions that can be called from PM
  core:

  save()
  write()
  read()
  restore()
  free()

- Base PM core algorithm on existence of these functions, and allow
  graceful failure at each step.

- Add pm_resume() function to be called on init to attempt to read swsusp
  image.

- Add debugging.

- Make sure we can handle all modes for suspend-to-disk.

- Add empty split-up functions to swsusp.

23 years ago[acpi] Always handle requests for entering S4, not just for S4bios.
Patrick Mochel [Tue, 19 Aug 2003 09:39:55 +0000 (02:39 -0700)]
[acpi] Always handle requests for entering S4, not just for S4bios.

23 years ago[SPARC64]: Kill linux_cpus[]/linux_num_cpus, replace with cpu probe helpers.
David S. Miller [Tue, 19 Aug 2003 09:01:19 +0000 (02:01 -0700)]
[SPARC64]: Kill linux_cpus[]/linux_num_cpus, replace with cpu probe helpers.

23 years ago[power] Add flag to control suspend-to-disk behavior.
Patrick Mochel [Tue, 19 Aug 2003 08:26:30 +0000 (01:26 -0700)]
[power] Add flag to control suspend-to-disk behavior.

Suspend-to-disk can be handled in numerous ways, some we have control over,
and others we don't. The biggest difference is whether or not the firmware
is responsible for entering a low-power state or if the platform driver is.
The two modes are incompatible, so we enable the platform driver tell the
PM core when they register their pm_ops (via the ->pm_disk_mode) field.

If the firmware is responsible, then it will also write memory to disk,
while the kernel is otherwise responsible. However, a user may choose to
use the in-kernel suspend mechanism, even if the system supports only
the firmware mechanism. Instead of entering a low-power state, the system
will turn off (or reboot for testing).

A sysfs file -- /sys/power/disk -- is available to set the mode to one of:

  'firmware'
  'platform'
  'shutdown'
  'reboot'

The latter two are settable any time, and assume that one is using swsusp.
The other two are only settable to what the platform supports.

23 years ago[PATCH] don't export add_timer
Hirofumi Ogawa [Tue, 19 Aug 2003 06:35:50 +0000 (23:35 -0700)]
[PATCH] don't export add_timer

This removes EXPORT_SYMBOL(add_timer) since add_timer() became inline
recently.

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.5-pcmcia
Linus Torvalds [Tue, 19 Aug 2003 06:24:26 +0000 (23:24 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.5-pcmcia
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PCMCIA] kill remaining cardservices version checking
Christoph Hellwig [Tue, 19 Aug 2003 16:26:26 +0000 (17:26 +0100)]
[PCMCIA] kill remaining cardservices version checking

We know we have the right version because we were compiled in the
same kernel tree..

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.5-rmk
Linus Torvalds [Tue, 19 Aug 2003 06:22:17 +0000 (23:22 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5
Russell King [Tue, 19 Aug 2003 21:46:03 +0000 (22:46 +0100)]
Merge flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5
into flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5-rmk

23 years ago[ARM] Add missing IM-PD1 header file.
Russell King [Tue, 19 Aug 2003 21:27:29 +0000 (22:27 +0100)]
[ARM] Add missing IM-PD1 header file.

23 years ago[ARM] Add missing show_stack()
Russell King [Tue, 19 Aug 2003 20:55:15 +0000 (21:55 +0100)]
[ARM] Add missing show_stack()

This change seems to have been missed for some time.  Remove
__dump_stack(), and convert show_trace_task() to show_stack().

23 years ago[ARM] Remove redundant CONFIG_DEBUG_INFO.
Russell King [Tue, 19 Aug 2003 20:46:33 +0000 (21:46 +0100)]
[ARM] Remove redundant CONFIG_DEBUG_INFO.

ARM had CONFIG_DEBUG_INFO for ages.  Unfortunately, the new
CONFIG_DEBUG_INFO was rather blindly applied across all architectures.
This removes the duplication from the ARM architecture.

23 years agoMerge http://linux-acpi.bkbits.net/linux-acpi
Linus Torvalds [Tue, 19 Aug 2003 06:19:09 +0000 (23:19 -0700)]
Merge http://linux-acpi.bkbits.net/linux-acpi
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[acpi] Update comments, copyright, and license in drivers/acpi/sleep/main.c
Patrick Mochel [Tue, 19 Aug 2003 06:18:27 +0000 (23:18 -0700)]
[acpi] Update comments, copyright, and license in drivers/acpi/sleep/main.c

23 years agoUpdate the newly merged Ninja-SCSI PCMCIA driver to
Linus Torvalds [Tue, 19 Aug 2003 06:18:03 +0000 (23:18 -0700)]
Update the newly merged Ninja-SCSI PCMCIA driver to
recent cleanups (removal of link release timer and
the STALE_CONFIG crud).

23 years ago[power] Make sure we only have one CPU running before suspending.
Patrick Mochel [Tue, 19 Aug 2003 06:09:54 +0000 (23:09 -0700)]
[power] Make sure we only have one CPU running before suspending.

Yeah, it sucks for now. But, we'll get it right eventually.

23 years ago[acpi] Convert sleep code to new PM infrastructure.
Patrick Mochel [Tue, 19 Aug 2003 06:08:28 +0000 (23:08 -0700)]
[acpi] Convert sleep code to new PM infrastructure.

- Define and fill acpi_pm_ops, and register it on startup with the PM core.

- Fill methods with only ACPI-specific code, leaving device power down, etc
  up to the PM core.

23 years ago[acpi] Remove procfs sleep interface.
Patrick Mochel [Tue, 19 Aug 2003 06:03:51 +0000 (23:03 -0700)]
[acpi] Remove procfs sleep interface.

Use /sys/power/state instead.

23 years ago[acpi] Fix broken Kconfig dependency.
Patrick Mochel [Tue, 19 Aug 2003 06:02:53 +0000 (23:02 -0700)]
[acpi] Fix broken Kconfig dependency.

23 years agoMerge groveronline.com:/root/bk/linux-len
Andy Grover [Tue, 19 Aug 2003 06:01:15 +0000 (23:01 -0700)]
Merge groveronline.com:/root/bk/linux-len
into groveronline.com:/root/bk/linux-acpi

23 years ago[SPARC64]: Kill prom_cpu_nodes, unused.
David S. Miller [Tue, 19 Aug 2003 06:00:15 +0000 (23:00 -0700)]
[SPARC64]: Kill prom_cpu_nodes, unused.

23 years ago[NET]: Flush hw header caches on NETDEV_CHANGEADDR events.
Tommi Virtanen [Tue, 19 Aug 2003 05:38:29 +0000 (22:38 -0700)]
[NET]: Flush hw header caches on NETDEV_CHANGEADDR events.

23 years agoUpdate the PCMCIA driver for the NinjaSCSI-3 by YOKOTA Hiroshi
Linus Torvalds [Tue, 19 Aug 2003 05:36:52 +0000 (22:36 -0700)]
Update the PCMCIA driver for the NinjaSCSI-3 by YOKOTA Hiroshi

23 years agoUpdate the 32-bit Ninja SCSI driver from YOKOTA Hiroshi.
Linus Torvalds [Tue, 19 Aug 2003 05:35:48 +0000 (22:35 -0700)]
Update the 32-bit Ninja SCSI driver from YOKOTA Hiroshi.

23 years ago[SPARC64]: In solaris module use sparc64_get_clock_tick() to get cpu frequency.
David S. Miller [Tue, 19 Aug 2003 05:12:56 +0000 (22:12 -0700)]
[SPARC64]: In solaris module use sparc64_get_clock_tick() to get cpu frequency.

23 years ago[SPARC64]: Only allocate cpu structs we really need in topology_init().
David S. Miller [Tue, 19 Aug 2003 05:08:00 +0000 (22:08 -0700)]
[SPARC64]: Only allocate cpu structs we really need in topology_init().

23 years ago[SPARC64]: Do not make sparc_{cpu,fpu}_type a NR_CPUS array.
David S. Miller [Tue, 19 Aug 2003 04:50:57 +0000 (21:50 -0700)]
[SPARC64]: Do not make sparc_{cpu,fpu}_type a NR_CPUS array.

It is a big waste of space and there exists no
existing configuration where these values can be
different amongst cpus.

23 years ago[PATCH] blkmtd for 2.6
Simon Evans [Tue, 19 Aug 2003 04:08:44 +0000 (21:08 -0700)]
[PATCH] blkmtd for 2.6

This updates the blkmtd driver with the latest which has been in the MTD
CVS for quite a while.  It is a rewrite from the 2.4 version to work
with the new block layer changes.

23 years ago[PATCH] fix make xconfig
Sam Ravnborg [Tue, 19 Aug 2003 04:08:36 +0000 (21:08 -0700)]
[PATCH] fix make xconfig

When the *config targets were moved to scripts/kconfig/Makefile
the graphical configurator support broke.

The following patch is a minimal fix, required to restore support
of 'make xconfig' and 'make gconfig'.

23 years ago[PATCH] correct local_dec on some architectures
Arnd Bergmann [Tue, 19 Aug 2003 03:33:51 +0000 (20:33 -0700)]
[PATCH] correct local_dec on some architectures

A small bug in local.h apparently got copied a few times.
I noticed this because I copied the same bug to s390.
This patch should fix the occurrences in BK, but there
are others that are not merged yet, e.g. ppc64 in -mm3.

23 years ago[PATCH] Fix awe PnP probing
Adam Belay [Tue, 19 Aug 2003 03:14:46 +0000 (20:14 -0700)]
[PATCH] Fix awe PnP probing

This is a rewrite of the awe_wave detection code that will allow this
driver to be compiled.  It moves detection functions to a common
location at the end of the file and makes the code driver-model
compatible.  Also it fixes a bug in which the driver could possibly
write to incorrect ports when using isapnp cards.

Unfortunantly I do not currently have an AWE32 to test these changes so
I could only check for compilation and driver registration.

23 years ago[PATCH] Fix ugly hole in x86-64 interrupt gates
Andi Kleen [Tue, 19 Aug 2003 03:06:09 +0000 (20:06 -0700)]
[PATCH] Fix ugly hole in x86-64 interrupt gates

There was a quite nasty long standing bug in the x86-64 port.  The
interrupt gates had a DPL of 3, allowing user space to trigger any
interrupt.  I have not found a way to exploit it this to crash the
kernel, but it definitely shouldn't happen.  It could e.g.  cause
problems with drivers that do not handle shared interrupt properly.

This also broke some programs who assumed that int <random number>
causes a signal.

23 years ago[PATCH] Make x86-64 compile again
Andi Kleen [Tue, 19 Aug 2003 03:06:01 +0000 (20:06 -0700)]
[PATCH] Make x86-64 compile again

Various compile fixes for x86-64 in the current BKCVS tree.

- Use new information from acpi_pci_link_get_irq: handle
  edge and level triggered interrupts properly
- Fixes for pci_dev->pretty_name

Only changes x86-64 specific code.

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Patrick Mochel [Tue, 19 Aug 2003 03:03:26 +0000 (20:03 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

23 years agoThe default ARCH_SI_BAND_T should be "int", since that is what
Linus Torvalds [Tue, 19 Aug 2003 03:02:21 +0000 (20:02 -0700)]
The default ARCH_SI_BAND_T should be "int", since that is what
Linux historically has had. Only x86-64 uses anything else, so
make the special case be _there_.

23 years ago[PATCH] EISA bus update
Marc Zyngier [Tue, 19 Aug 2003 02:34:16 +0000 (19:34 -0700)]
[PATCH] EISA bus update

- Don't leave resource name uninitialized if CONFIG_EISA_NAME is not set.
- Print root device bus_id (so we know which bridge is probed).
- From Zwane Mwaikambo : Add a release method to virtual root, so it
  stays quiet if probing fails (because some pci-eisa bridge have been
  found before).

23 years ago[PATCH] kNFSd: Release udp socket for next nfs request to arrive earlier
Neil Brown [Tue, 19 Aug 2003 02:34:08 +0000 (19:34 -0700)]
[PATCH] kNFSd: Release udp socket for next nfs request to arrive earlier

From: Mark Hemment <markhe@veritas.com>

  For RPC over UDP, after receiving a packet kick another thread as soon
as possible.  This helps NFS performance.

23 years ago[PATCH] kNFSd: Make sure nfsd replies from the address the request was sent to.
Neil Brown [Tue, 19 Aug 2003 02:34:00 +0000 (19:34 -0700)]
[PATCH] kNFSd: Make sure nfsd replies from the address the request was sent to.

This is important on multi-homes hosts.

23 years ago[PATCH] kNFSd: Make sure nothing happens to a dead rpc/tcp socket
Neil Brown [Tue, 19 Aug 2003 02:33:52 +0000 (19:33 -0700)]
[PATCH] kNFSd: Make sure nothing happens to a dead rpc/tcp socket

Just make sure that once SK_DEAD is set, nothing is attempted on the socket.

23 years ago[PATCH] sysctl.h needs compiler.h
Andrew Morton [Tue, 19 Aug 2003 01:34:27 +0000 (18:34 -0700)]
[PATCH] sysctl.h needs compiler.h

From: Bernardo Innocenti <bernie@develer.com>

sysctl.h needs compiler.h

23 years ago[PATCH] atp870u.c lockup fix
Andrew Morton [Tue, 19 Aug 2003 01:34:19 +0000 (18:34 -0700)]
[PATCH] atp870u.c lockup fix

Fix infinite loop in the device probe function.

23 years ago[PATCH] loop: fix module unload oops
Andrew Morton [Tue, 19 Aug 2003 01:34:11 +0000 (18:34 -0700)]
[PATCH] loop: fix module unload oops

From: Peter Osterlund <petero2@telia.com>

It oopses on module unload in the kobject layer due to misordered destruction
of things.

And we need to initialise the unplug timer in blk_alloc_queue(), because we
kill that timer in blk_alloc_queue()'s companion function,
blk_cleanup_queue().

23 years ago[PATCH] slab: drain_array fix
Andrew Morton [Tue, 19 Aug 2003 01:34:03 +0000 (18:34 -0700)]
[PATCH] slab: drain_array fix

From: Philippe Elie <phil.el@wanadoo.fr>

If drain_array_locked() is passed the `force' command, it must go in and
empty the head array.

23 years ago[PATCH] add locking to global list in ymfpci.c
Andrew Morton [Tue, 19 Aug 2003 01:33:54 +0000 (18:33 -0700)]
[PATCH] add locking to global list in ymfpci.c

This driver has a global list of devices which has no locking.

23 years ago[PATCH] ymfpci oops fix
Andrew Morton [Tue, 19 Aug 2003 01:33:46 +0000 (18:33 -0700)]
[PATCH] ymfpci oops fix

If the driver fails partway through probing, the recovery code will call
ac97_release_codec(NULL), which oopses.

23 years ago[PATCH] SELinux check behavior value
Andrew Morton [Tue, 19 Aug 2003 01:33:38 +0000 (18:33 -0700)]
[PATCH] SELinux check behavior value

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch fixes a bug in the SELinux module by adding a check of the
filesystem labeling behavior value obtained from the policy.

23 years ago[PATCH] Fix SELinux avc_log_lock
Andrew Morton [Tue, 19 Aug 2003 01:33:30 +0000 (18:33 -0700)]
[PATCH] Fix SELinux avc_log_lock

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch fixes a bug in the SELinux access vector cache code, which was
incorrectly using spin_lock_irq rather than spin_lock_irqsave for the
avc_log_lock.  As this code can be called from hardirq (e.g.  from the
file_send_sigiotask hook), we need irqsave/restore here.

23 years ago[PATCH] aio: fix error-path mm leak in ioctx_alloc
Andrew Morton [Tue, 19 Aug 2003 01:33:18 +0000 (18:33 -0700)]
[PATCH] aio: fix error-path mm leak in ioctx_alloc

From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

ioctx_alloc() leaks an mm->mm_count ref on an error path.

23 years ago[PATCH] enable the ikconfig stuff in config
Andrew Morton [Tue, 19 Aug 2003 01:33:10 +0000 (18:33 -0700)]
[PATCH] enable the ikconfig stuff in config

From: Sean Estabrooks <seanlkml@rogers.com>

- fix space at end of line in config files;

- add error check on put_user(); (Daniele Bellucci <bellucda@tiscali.it>)

- add missing Kconfig piece for ikconfig;

23 years ago[PATCH] async write errors: fix spurious fs truncate errors
Andrew Morton [Tue, 19 Aug 2003 01:33:02 +0000 (18:33 -0700)]
[PATCH] async write errors: fix spurious fs truncate errors

From: Oliver Xymoron <oxymoron@waste.org>

Currently, a writepage() which detects that it is writing outside i_size (due
to concurrent truncate) will abandon the write, returning -EIO.

The return value will bogusly cause an error to be recorded in the
address_space.  So convert all those writepage() instances to return zero in
this case.

23 years ago[PATCH] async write errors: use flags in address space
Andrew Morton [Tue, 19 Aug 2003 01:32:54 +0000 (18:32 -0700)]
[PATCH] async write errors: use flags in address space

From: Oliver Xymoron <oxymoron@waste.org>

This patch just saves a few bytes in the inode by turning mapping->gfp_mask
into an unsigned long mapping->flags.

The mapping's gfp mask is placed in the 16 high bits of mapping->flags and
two of the remaining 16 bits are used for tracking EIO and ENOSPC errors.

This leaves 14 bits in the mapping for future use.  They should be accessed
with the atomic bitops.

23 years ago[PATCH] async write errors: report truncate and io errors on
Andrew Morton [Tue, 19 Aug 2003 01:32:46 +0000 (18:32 -0700)]
[PATCH] async write errors: report truncate and io errors on

From: Oliver Xymoron <oxymoron@waste.org>

These patches add the infrastructure for reporting asynchronous write errors
to block devices to userspace.  Error which are detected due to pdflush or VM
writeout are reported at the next fsync, fdatasync, or msync on the given
file, and on close if the error occurs in time.

We do this by propagating any errors into page->mapping->error when they are
detected.  In fsync(), msync(), fdatasync() and close() we return that error
and zero it out.

The Open Group say close() _may_ fail if an I/O error occurred while reading
from or writing to the file system.  Well, in this implementation close() can
return -EIO or -ENOSPC.  And in that case it will succeed, not fail - perhaps
that is what they meant.

There are three patches in this series and testing has only been performed
with all three applied.