]> git.hungrycats.org Git - linux/log
linux
23 years ago[power] Make sure CONFIG_ACPI_SLEEP depends on CONFIG_PM
Patrick Mochel [Wed, 13 Aug 2003 08:21:18 +0000 (01:21 -0700)]
[power] Make sure CONFIG_ACPI_SLEEP depends on CONFIG_PM

23 years agoMerge kernel.bkbits.net:linux-2.5-power
Patrick Mochel [Wed, 13 Aug 2003 07:51:58 +0000 (00:51 -0700)]
Merge kernel.bkbits.net:linux-2.5-power
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Wed, 13 Aug 2003 07:41:00 +0000 (00:41 -0700)]
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years ago[power] Various swsusp cleanups.
Patrick Mochel [Wed, 13 Aug 2003 04:59:26 +0000 (21:59 -0700)]
[power] Various swsusp cleanups.

- Move SMP check to software_suspend() (from software_resume()), so we will
  not even attempt to sleep with it enabled.
- Make software_resume() a late initcall, removing the explicit call from
  prepare_namespace().
- Initialize software_suspend_enabled to 1, instead of doing it manually in
  software_resume().
- Don't explicitly initialzie resume_file.
- Remove resume_status variable, as we can simply check for (non-) NULL
  resume_file string.
- "noresume" setup function changed to simply zero first byte of resume_file
  string, simplifying logic.
- Don't attempt to reset swap signature if noresume is specified.
  - Downstream function (bdev_write_page() wasn't implemented anyway, so we
    can just remove that also).

If noresume is specified, there will still be a suspend image left on the
swap partition. It may behoove us to never reset the swap signature, and
always leave the image intact on the disk, since it is a valid snapshot
that we can resume from at anytime.

This unconditional behavior would force the user to add 'mkswap <part>' to
their init scripts to reset the partition to swap use. IMO, this is better
anyway.

23 years ago[swsusp] Remove two panic()s.
Patrick Mochel [Wed, 13 Aug 2003 03:55:13 +0000 (20:55 -0700)]
[swsusp] Remove two panic()s.

- Make software_suspend() return an int, so caller can tell what happened.
- Do check for HIGHMEM and DISCONTIGMEM early in software_suspend() and
  fail gracefully, instead of checking far down the call chain and having
  to call panic().

23 years ago[power] Minor cleanups.
Patrick Mochel [Wed, 13 Aug 2003 03:04:08 +0000 (20:04 -0700)]
[power] Minor cleanups.

From Pavel Machek.

23 years ago[power] Check device_suspend() return value in swsusp.
Patrick Mochel [Wed, 13 Aug 2003 03:03:47 +0000 (20:03 -0700)]
[power] Check device_suspend() return value in swsusp.

From Pavel Machek.

23 years ago[power] Begin to add sysfs files for controlling device power states.
Patrick Mochel [Tue, 12 Aug 2003 02:47:08 +0000 (19:47 -0700)]
[power] Begin to add sysfs files for controlling device power states.

- Moves sysfs controls to drivers/base/power/sysfs.c
- Creates dpm_sysfs_{add,remove} to add/remove sysfs attribute group.
- Creates 'state' file in 'pm' directory that properly controls device
  power state at runtime.

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
Patrick Mochel [Tue, 12 Aug 2003 02:34:49 +0000 (19:34 -0700)]
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years ago[power] Add hooks for runtime device power control.
Patrick Mochel [Tue, 12 Aug 2003 02:25:20 +0000 (19:25 -0700)]
[power] Add hooks for runtime device power control.

dpm_runtime_{suspend,resume} control the power state of a single device
while the system is running.

dpm_runtime_suspend() will save state of the device, then attempt to power
it down. This happens with interrupts enabled, so if the device does not
support that, the device's state is restored, and we continue on our merry
way.

dpm_runtime_resume() powers the device back on, then restores state of the
device.

dpm_set_power_state() simply notifies the core of the power state the
device is in. Drivers can use this, since they are the only ones that can
really tell.

23 years ago[driver model] Check for probing errors in drivers/base/bus.c
Patrick Mochel [Tue, 12 Aug 2003 02:15:14 +0000 (19:15 -0700)]
[driver model] Check for probing errors in drivers/base/bus.c

From Janice Girouard.

Currently if an error is detected when probing a device,
this error is not reported. Generally, an error value from
errno.h will be returned when the driver->probe function
fails. However, these errors are not logged, and the device
fails silently.

23 years ago[driver model] Change class functions to const arguments.
Patrick Mochel [Tue, 12 Aug 2003 02:07:16 +0000 (19:07 -0700)]
[driver model] Change class functions to const arguments.

From Stephen Hemminger:

Several of the class_device functions don't modify their arguments and can
take const pointers.

23 years ago[sysfs] Mark some arguments const.
Patrick Mochel [Tue, 12 Aug 2003 01:53:53 +0000 (18:53 -0700)]
[sysfs] Mark some arguments const.

From Stephen Hemminger

23 years ago[sysfs] Convert struct attribute_group to take array of pointers.
Patrick Mochel [Sun, 10 Aug 2003 05:41:18 +0000 (22:41 -0700)]
[sysfs] Convert struct attribute_group to take array of pointers.

From Stephen Hemminger. Needed to use attribute groups effectively.

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-core
Patrick Mochel [Sun, 10 Aug 2003 05:12:20 +0000 (22:12 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-core
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core

23 years ago[power] Add PM usage counting
Patrick Mochel [Sun, 10 Aug 2003 04:58:35 +0000 (21:58 -0700)]
[power] Add PM usage counting

- Add ->pm_users and ->pm_parent fields to struct dev_pm_info.
- Add function device_pm_set_parent()

The default power parent for a device is the device's physical parent, but
a driver may change it to represent a tranversal power dependency.

Though it's not incorporated into the suspend/resume sequences yet, the
core will respect the power tree, rather than the physical/electrical one.

Also added is a power usage count for devices, which indicates how many
devices are dependent on that one for power (how many children it has in
the power tree). The core will use this count to determine whether or not
a device can be put into a low power state or not.

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Patrick Mochel [Sat, 9 Aug 2003 08:07:00 +0000 (01:07 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Sat, 9 Aug 2003 06:52:41 +0000 (23:52 -0700)]
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years ago[PATCH] Re: Linux 2.6.0-test3: logo patch
Thomas Molina [Sat, 9 Aug 2003 02:40:17 +0000 (19:40 -0700)]
[PATCH] Re: Linux 2.6.0-test3: logo patch

The following patch has been floating around forever.  It is required
for several ARM framebuffer drivers, and several other drivers.  James
has indicated that this is the correct fix back in May.

23 years ago[PATCH] PowerMac: Ground work for new driver model
Benjamin Herrenschmidt [Sat, 9 Aug 2003 02:40:09 +0000 (19:40 -0700)]
[PATCH] PowerMac: Ground work for new driver model

This provides the necessary infrastructure for PowerMac specific drivers
(and actually some Open Firmware platform drivers on non-PowerMacs as
well provided somebody port them) to be properly probed & referenced via
the new driver model and be part of sysfs.

As-is, this patch doesn't break anything nor change any driver.  I'll
send you individual driver patches as I clean them up & get them tested
on as many machines as possible, though I don't expect much problems.

23 years ago[PATCH] PATCH 2.6: fix X86_VENDOR_ID offset in head.S
Jeff Garzik [Sat, 9 Aug 2003 02:39:26 +0000 (19:39 -0700)]
[PATCH] PATCH 2.6: fix X86_VENDOR_ID offset in head.S

While reviewing my 2.4 backport of the 2.6 cpu capabilities (including
the Via RNG support), Mikael Pettersson noticed a bug in both my
backport, and 2.6:  when NCAPINTS (x86_capability array size) is
increased, one must adjust the offset in arch/i386/kernel/head.S also.

Contributed by Mikael Pettersson.

23 years ago[PATCH] Fix usb interface change in hisax st5481_*
Herbert Xu [Sat, 9 Aug 2003 02:39:19 +0000 (19:39 -0700)]
[PATCH] Fix usb interface change in hisax st5481_*

This makes the HISAX ST5481 driver build again with 2.6.0-test3 where
the usb_host_config structure has changed.

23 years ago[WATCHDOG] sbc60xxwdt.c patch6
Wim Van Sebroeck [Sat, 9 Aug 2003 20:31:48 +0000 (22:31 +0200)]
[WATCHDOG] sbc60xxwdt.c patch6

some small clean-ups: do correct errorhandling

23 years ago[WATCHDOG] w83877f_wdt.c patch3 (add timeout features)
Wim Van Sebroeck [Sat, 9 Aug 2003 20:29:13 +0000 (22:29 +0200)]
[WATCHDOG] w83877f_wdt.c patch3 (add timeout features)

added WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT ioctls
made timeout (the emulated heartbeat) a module_param
made the keepalive ping an internal subroutine

23 years ago[WATCHDOG] w83877f_wdt.c patch2
Wim Van Sebroeck [Sat, 9 Aug 2003 20:18:18 +0000 (22:18 +0200)]
[WATCHDOG] w83877f_wdt.c patch2

add CONFIG_WATCHDOG_NOWAYOUT support
changed watchdog_info to correctly reflect what the driver offers
added WDIOC_GETSTATUS, WDIOC_GETBOOTSTATUS and WDIOC_SETOPTIONS ioctls
use module_param

23 years ago[WATCHDOG] w83877f_wdt patch
Wim Van Sebroeck [Sat, 9 Aug 2003 19:39:41 +0000 (21:39 +0200)]
[WATCHDOG] w83877f_wdt patch

cleanup comments and trailing spaces
eliminate extra spin_unlock
add KERN_* tags to printks
added extra printk's to report what problem occured

23 years ago[WATCHDOG] advantechwdt.c patch2
Wim Van Sebroeck [Sat, 9 Aug 2003 18:00:53 +0000 (20:00 +0200)]
[WATCHDOG] advantechwdt.c patch2

some small clean-ups (use PFX + report default timeout as it's value in the MODULE_PARM_DESC)

23 years ago[WATCHDOG] sbc60xxwdt.c patch5
Wim Van Sebroeck [Sat, 9 Aug 2003 17:50:46 +0000 (19:50 +0200)]
[WATCHDOG] sbc60xxwdt.c patch5

some last clean-ups

23 years ago[WATCHDOG] sbc60xxwdt patch4
Wim Van Sebroeck [Sat, 9 Aug 2003 17:44:14 +0000 (19:44 +0200)]
[WATCHDOG] sbc60xxwdt patch4

added extra printk's to report what problem occured

23 years ago[WATCHDOG] sbc60xxwdt patch3
Wim Van Sebroeck [Sat, 9 Aug 2003 17:32:42 +0000 (19:32 +0200)]
[WATCHDOG] sbc60xxwdt patch3

make wdt_stop and wdt_start module params

23 years ago[WATCHDOG] sbc60xxwdt patch2
Wim Van Sebroeck [Sat, 9 Aug 2003 17:10:23 +0000 (19:10 +0200)]
[WATCHDOG] sbc60xxwdt patch2

report default timeout as a number

23 years ago[WATCHDOG] sbc60xxwdt.c patch
Wim Van Sebroeck [Sat, 9 Aug 2003 16:34:52 +0000 (18:34 +0200)]
[WATCHDOG] sbc60xxwdt.c patch

general cleanup of trailing spaces and comments
fix possible wdt_is_open race
add KERN_* to printk's
changed watchdog_info to correctly reflect what the driver offers
added WDIOC_GETSTATUS, WDIOC_GETBOOTSTATUS, WDIOC_SETTIMEOUT, WDIOC_GETTIMEOUT, and WDIOC_SETOPTIONS ioctls
made timeout (the emulated heartbeat) a module_param
made the keepalive ping an internal subroutine
added MODULE_AUTHOR and MODULE_DESCRIPTION info

23 years agoLinux 2.6.0-test3 v2.6.0-test3
Linus Torvalds [Fri, 8 Aug 2003 14:09:36 +0000 (07:09 -0700)]
Linux 2.6.0-test3

23 years ago[irda] Add VIA FIR driver, via-ircc
Jeff Garzik [Fri, 8 Aug 2003 17:17:35 +0000 (13:17 -0400)]
[irda] Add VIA FIR driver, via-ircc

Contributed by VIA, via Jean Tourrilhes.

23 years ago[PATCH] tekram-sir driver fix
Jean Tourrilhes [Fri, 8 Aug 2003 17:14:54 +0000 (13:14 -0400)]
[PATCH] tekram-sir driver fix

ir260_tekram-sir.diff :
~~~~~~~~~~~~~~~~~~~~~
<Patch from Martin Diehl>
o [CORRECT] Update tekram-sir dongle driver to common power-settling

23 years ago[PATCH] irda-usb probe fix
Jean Tourrilhes [Fri, 8 Aug 2003 17:14:30 +0000 (13:14 -0400)]
[PATCH] irda-usb probe fix

ir260_usb_probe-4.diff :
~~~~~~~~~~~~~~~~~~~~~~
<Patch from Oliver Neukum and Daniele Bellucci>
o [CORRECT] minor fix to the probe failure path of irda-usb.

23 years ago[PATCH] IrLAP retry count
Jean Tourrilhes [Fri, 8 Aug 2003 17:14:05 +0000 (13:14 -0400)]
[PATCH] IrLAP retry count

ir260_lap_retry_count.diff :
~~~~~~~~~~~~~~~~~~~~~~~~~~
o [CORRECT] add interoperability workaround for 2.4.X IrDA stacks

23 years ago[PATCH] Donauboe probe fix
Jean Tourrilhes [Fri, 8 Aug 2003 17:13:41 +0000 (13:13 -0400)]
[PATCH] Donauboe probe fix

ir260_donau_cleanup.diff :
~~~~~~~~~~~~~~~~~~~~~~~~
<Patch from Christian Gennerat>
o [CORRECT] Disable chip probing that fail too often
o [FEATURE] Cleanup STATIC

23 years ago[power] Get rid of internal spinlock.
Patrick Mochel [Fri, 8 Aug 2003 11:01:43 +0000 (04:01 -0700)]
[power] Get rid of internal spinlock.

We don't need the spinlock to protect the lists (at least not now), since
we have a semaphore to synchronize all operations device PM operations.

23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/linus-2.6
Linus Torvalds [Fri, 8 Aug 2003 10:43:10 +0000 (03:43 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
Linus Torvalds [Fri, 8 Aug 2003 10:42:42 +0000 (03:42 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Fri, 8 Aug 2003 10:21:09 +0000 (03:21 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/pci-2.6

23 years ago[PATCH] PCI: pci_enable_device vs bridges bugs
Ivan Kokshaysky [Fri, 8 Aug 2003 10:03:19 +0000 (03:03 -0700)]
[PATCH] PCI: pci_enable_device vs bridges bugs

Bug #1 (found by Jay Estabrook).
On Alpha, under certain circumstances the firmware may close the IO
window of PCI-to-PCI bridge even if there is IO behind.
This wouldn't be a problem - linux PCI setup code does set up this
window properly, but in addition the firmware clears the IO-enable
bit in the PCI_COMMAND register of the bridge.
Since we don't call pci_enable_* routines for bridges in non-hotplug
path, we end up with disabled IO. Fixed by adding pci_enable_bridges()
to pci_assign_unassigned_resources().
Architectures which don't use the latter, but do use other setup-bus
code (parisc?) also should call pci_enable_bridges() for each root bus.

Bug #2 (closely related to #1).
As it turns out, pci_enable_device() doesn't work for bridges at all,
only for regular devices (header type 0) due to 0x3f mask passed to
pci_enable_device_bars(). The mask should be (1 << PCI_NUM_RESOURCES) - 1.

Bug #3 (quite a few archs, including i386).
pcibios_enable_device() does only check first 6 resources (regardless
of the mask) to decide whether or not to enable IO and MEM.
Bridge resources start at 7.

#2 and #3 affect hotplug. I wonder, has anybody ever tried *bridged*
PCI card behind a hot-plug controller?

23 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Fri, 8 Aug 2003 09:56:37 +0000 (02:56 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.6

23 years ago[PATCH] I2C: Additional P4B subsystem id for hidden asus smbus
Sean Estabrooks [Fri, 8 Aug 2003 09:36:42 +0000 (02:36 -0700)]
[PATCH] I2C: Additional P4B subsystem id for hidden asus smbus

  This patch adds another P4B motherboard subsystem identifier to the recent
asus sensor patch for the 2.6 kernel.

23 years ago[PATCH] USB: ftdi_sio - VID/PID for ID TECH IDT1221U USB to RS-232 adapter
Ian Abbott [Fri, 8 Aug 2003 09:35:07 +0000 (02:35 -0700)]
[PATCH] USB: ftdi_sio - VID/PID for ID TECH IDT1221U USB to RS-232 adapter

This patch adds support for ID TECH's IDT1221U USB to RS-232 adapter
(intended for use and/or supplied with some of their magnetic/smart
card readers).  The VID and PID were provided by Steve Briggs on
the ftdi-usb-sio-devel list.

23 years ago[PATCH] I2C: i2c sysfs rant
Wiktor Wodecki [Fri, 8 Aug 2003 09:33:00 +0000 (02:33 -0700)]
[PATCH] I2C: i2c sysfs rant

On Wed, Aug 06, 2003 at 04:22:44PM -0700, Greg KH wrote:
> On Wed, Aug 06, 2003 at 09:11:45PM +0200, Wiktor Wodecki wrote:
> > Hello folks,
> >
> > I just saw that I2C provides "/sys/bus/i2c/drivers/dev\ driver" in
> > 2.6.0-test2. It would be nice if you'd consider renaming this to
> > dev_driver, to avoid un-neccessary quoting in scripts.
> >
> > Thank You :-)
>
> Patches are always gladly accepted :)

here you go

23 years agoI2C: fix up driver model programming error.
Greg Kroah-Hartman [Fri, 8 Aug 2003 09:24:32 +0000 (02:24 -0700)]
I2C: fix up driver model programming error.

There was no release function for the objects.
bad greg, no biscuit...

23 years agoI2C: move the name field back into the i2c_client and i2c_adapter structures.
Greg Kroah-Hartman [Fri, 8 Aug 2003 09:15:11 +0000 (02:15 -0700)]
I2C: move the name field back into the i2c_client and i2c_adapter structures.

This is because the name field of struct device is going away, and the name
fields on these i2c structures are useful for people.

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Fri, 8 Aug 2003 04:22:14 +0000 (21:22 -0700)]
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years agoMerge http://ncpfs.bkbits.net/matroxfb
Linus Torvalds [Fri, 8 Aug 2003 03:51:20 +0000 (20:51 -0700)]
Merge http://ncpfs.bkbits.net/matroxfb
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PATCH] floppy smp fix
Jens Axboe [Fri, 8 Aug 2003 03:27:25 +0000 (20:27 -0700)]
[PATCH] floppy smp fix

This is a port of some smp fixes I did for 2.4 floppy.c

Andrew did the re-diffing.

23 years ago[PATCH] remove unnecessary stubs from watchdog drivers
Rob Radez [Fri, 8 Aug 2003 03:26:27 +0000 (20:26 -0700)]
[PATCH] remove unnecessary stubs from watchdog drivers

This removes some function stubs from 6 watchdog drivers.

The VFS already returns -EINVAL in cases where fop->read == NULL, so
there's no need to duplicate the code 6 times.  This patch removes the
stubs and is compile tested.

23 years ago[PATCH] modify data types in efi.h
David Mosberger [Fri, 8 Aug 2003 03:26:18 +0000 (20:26 -0700)]
[PATCH] modify data types in efi.h

From Matt Tolentino:

  Here's a small patch to change several data types from u64 to
  unsigned long in efi.h.  These changes enable the use of the
  same data structures and function prototypes for ia32 EFI kernels.

23 years agoRemove bogus temporary file from revision control.
Linus Torvalds [Fri, 8 Aug 2003 03:23:10 +0000 (20:23 -0700)]
Remove bogus temporary file from revision control.

23 years agoMerge
Linus Torvalds [Fri, 8 Aug 2003 03:07:55 +0000 (20:07 -0700)]
Merge

23 years ago[PATCH] ia64: more ACPI/IOSAPIC cleanup
Bjorn Helgaas [Thu, 7 Aug 2003 16:49:31 +0000 (09:49 -0700)]
[PATCH] ia64: more ACPI/IOSAPIC cleanup

This applies on top of Takayoshi's interrupt polarity fix and just
makes things a tiny bit more consistent.

Is acpi_irq_to_vector() even needed anymore?  I don't see any
references to it.

23 years ago[PATCH] ia64: IOSAPIC .weak symbol cleanup
Bjorn Helgaas [Thu, 7 Aug 2003 16:48:13 +0000 (09:48 -0700)]
[PATCH] ia64: IOSAPIC .weak symbol cleanup

The patch below removes the .weak symbol stuff from iosapic.c.

As far as I can tell, iosapic.c is compiled for every flavor except
the simulator.  I tried to boot the HP_SIM kernel on ski, but it
seems to loop in find_save_locs().  This happens both with and
without this patch, so maybe I have a local problem.  (I started
with a clean tree, did make

23 years ago[PATCH] ia64: hardirq.h should include smp_lock.h when preempt enabled
Ian Wienand [Thu, 7 Aug 2003 16:40:03 +0000 (09:40 -0700)]
[PATCH] ia64: hardirq.h should include smp_lock.h when preempt enabled

As in_atomic() uses kernel_locked() which is in smp_lock.h.

23 years ago[PATCH] ia64: sn2 pci fixes (among others)
Jesse Barnes [Thu, 7 Aug 2003 16:38:44 +0000 (09:38 -0700)]
[PATCH] ia64: sn2 pci fixes (among others)

sn2 still doesn't use ACPI to describe PCI busses on the system (I'm
working on it), so we have to do it the old fashioned way.  This patch
also includes a few other fixes.

23 years ago[PATCH] ia64: compat_ioctl.c support
Arun Sharma [Thu, 7 Aug 2003 16:35:01 +0000 (09:35 -0700)]
[PATCH] ia64: compat_ioctl.c support

The attached patch (against 2.6) helps IA-32 applications take advantage of the
generic 32 bit (fs/compat_ioctl.c) ioctl handlers.

23 years ago[PATCH] ia64: epoll support for ia32 applications
Arun Sharma [Thu, 7 Aug 2003 16:31:18 +0000 (09:31 -0700)]
[PATCH] ia64: epoll support for ia32 applications

The patch was created by Matt Helsley <matthltc at us.ibm.com> for 2.4 and
has been changed slightly to match 2.6.

The implementation compromises performance for correctness.

23 years ago[PATCH] Make x86-64 compile again
Andi Kleen [Thu, 7 Aug 2003 12:03:48 +0000 (05:03 -0700)]
[PATCH] Make x86-64 compile again

Add include to fix compilation on x86-64

23 years agoMerge bk://kernel.bkbits.net/jgarzik/net-drivers-2.6
Linus Torvalds [Thu, 7 Aug 2003 10:55:05 +0000 (03:55 -0700)]
Merge bk://kernel.bkbits.net/jgarzik/net-drivers-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[netdrvr airo] now that it builds, re-enable wireless_ext
Jeff Garzik [Thu, 7 Aug 2003 14:33:15 +0000 (10:33 -0400)]
[netdrvr airo] now that it builds, re-enable wireless_ext

23 years ago[netdrvr airo] Fix adhoc config
Javier Achirica [Thu, 7 Aug 2003 14:29:47 +0000 (10:29 -0400)]
[netdrvr airo] Fix adhoc config

23 years ago[netdrvr airo] safer unload code
Javier Achirica [Thu, 7 Aug 2003 14:29:15 +0000 (10:29 -0400)]
[netdrvr airo] safer unload code

23 years ago[netdrvr airo] MIC support with newer firmware
Javier Achirica [Thu, 7 Aug 2003 13:20:47 +0000 (09:20 -0400)]
[netdrvr airo] MIC support with newer firmware

23 years ago[netdrvr airo] add missing lines for Wireless Extensions 16
Javier Achirica [Thu, 7 Aug 2003 13:17:38 +0000 (09:17 -0400)]
[netdrvr airo] add missing lines for Wireless Extensions 16

23 years ago[netdrvr airo] MAC type changed to unsigned
Javier Achirica [Thu, 7 Aug 2003 13:11:58 +0000 (09:11 -0400)]
[netdrvr airo] MAC type changed to unsigned

23 years ago[netdrvr airo] Missing defines (only for documentation)
Javier Achirica [Thu, 7 Aug 2003 13:11:18 +0000 (09:11 -0400)]
[netdrvr airo] Missing defines (only for documentation)

23 years agoia64: Make elfcore32.h compile for 2.6.0-test2.
David Mosberger [Thu, 7 Aug 2003 09:20:29 +0000 (02:20 -0700)]
ia64: Make elfcore32.h compile for 2.6.0-test2.

23 years agoMerge with DRI CVS tree: fix use-after-free bug in DRM(takedown)
Linus Torvalds [Thu, 7 Aug 2003 08:37:30 +0000 (01:37 -0700)]
Merge with DRI CVS tree: fix use-after-free bug in DRM(takedown)

23 years ago[netdrvr pcmcia] remove the release timer from all pcmcia net drivers
Christoph Hellwig [Thu, 7 Aug 2003 08:18:14 +0000 (04:18 -0400)]
[netdrvr pcmcia] remove the release timer from all pcmcia net drivers

Ack'd by Russell King as well.

23 years agoMerge kernel.bkbits.net:linux-2.5-power
Patrick Mochel [Thu, 7 Aug 2003 07:42:37 +0000 (00:42 -0700)]
Merge kernel.bkbits.net:linux-2.5-power
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years agoMerge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Patrick Mochel [Thu, 7 Aug 2003 07:29:24 +0000 (00:29 -0700)]
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-power

23 years ago[power] Improve device suspend/resume sequence.
Patrick Mochel [Thu, 7 Aug 2003 07:16:20 +0000 (00:16 -0700)]
[power] Improve device suspend/resume sequence.

- Split calls into
  - device_pm_suspend() [ Saving device state. ]
  - device_pm_power_down() [ Powering devices down. ]
  - device_pm_power_up() [ Powering devices up. ]
  - device_pm_resume() [ Restoring device state. ]

- Walk local dpm_active list when suspending devices, and move devices to
  dpm_suspended list when ->suspend() is called.
- Walk dpm_suspended list to power down devices (with interrrupts enabled.)
  - Try to power down devices with IRQs on.
  - If they succeed, move them to dpm_off list.
  - If they return -EAGAIN, move them to dpm_off_irq list.
- Disable interrupts and suspend devices needed interrupts off.

- Do converse on resume
  - power on devices that need interrupts off and move them to
    dpm_suspended.
  - Enable interrupts.
  - Power on all other devices and move them to dpm_suspended.
  - Restore state of all devices and move them to dpm_active.

23 years ago[PATCH] ia64: make ia32 core dumps work
Arun Sharma [Thu, 7 Aug 2003 06:22:58 +0000 (23:22 -0700)]
[PATCH] ia64: make ia32 core dumps work

The attached patch implements core dump functionality for IA-32
applications running on ia64.

23 years ago[PATCH] fixes to zap_other_threads fix
Roland McGrath [Thu, 7 Aug 2003 06:06:12 +0000 (23:06 -0700)]
[PATCH] fixes to zap_other_threads fix

We should amend that test for zombies to include the "dead" state as
well.

23 years ago[PATCH] defxx: Maintenance + DMA API fixes
Maciej W. Rozycki [Thu, 7 Aug 2003 05:58:51 +0000 (22:58 -0700)]
[PATCH] defxx: Maintenance + DMA API fixes

 Having necessary resources, I've decided to take over the maintenance of
the defxx driver for the PDQ-based family of DEC FDDI controllers (the
DEFEA for EISA and the DEFPA for PCI are the models currently handled).

I've talked to Larry, the original author and the last maintainer of the
code, and he's said he'd be happy about it.  He's asked me to update his
long-outdated contact information.

Here is a patch to update the driver to the PCI version of the DMA API.

The patch includes appropriate status and contact information updates.

23 years agoMerge bk://linux.bkbits.net/linux-2.5
Patrick Mochel [Thu, 7 Aug 2003 05:45:23 +0000 (22:45 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into kernel.bkbits.net:/home/mochel/linux-2.5-power

23 years agoMerge bk://are.twiddle.net/axp-2.5
Linus Torvalds [Thu, 7 Aug 2003 05:12:21 +0000 (22:12 -0700)]
Merge bk://are.twiddle.net/axp-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[ALPHA] Enhanced EV6/EV7 error management.
Richard Henderson [Thu, 7 Aug 2003 04:21:01 +0000 (21:21 -0700)]
[ALPHA] Enhanced EV6/EV7 error management.
From Jay Estabrook <Jay.Estabrook@compaq.com>.

23 years ago[ALPHA] Fix RTC init for LYNX.
Richard Henderson [Thu, 7 Aug 2003 04:19:28 +0000 (21:19 -0700)]
[ALPHA] Fix RTC init for LYNX.
From Jay Estabrook <Jay.Estabrook@compaq.com>.

23 years ago[ALPHA] IRQ updates to match x86 changes.
Richard Henderson [Thu, 7 Aug 2003 04:16:40 +0000 (21:16 -0700)]
[ALPHA] IRQ updates to match x86 changes.
From Jay Estabrook <Jay.Estabrook@compaq.com>.

23 years ago[PATCH] initialise page->private
Andrew Morton [Thu, 7 Aug 2003 04:15:16 +0000 (21:15 -0700)]
[PATCH] initialise page->private

From: Nathan Scott <nathans@sgi.com>

XFS wants to use page->private as a bitmap of uptodate indicators for
sub-page-sized blocks (which is one of the things ->provate was intended
for).

But someone needs to initialise ->private somewhere.  best to do it in the
page allocator, so the zeroness of a new page's ->private becomes a
system-wide thing.

23 years ago[PATCH] mtrr race fix
Andrew Morton [Thu, 7 Aug 2003 04:15:08 +0000 (21:15 -0700)]
[PATCH] mtrr race fix

From: john stultz <johnstul@us.ibm.com>

I've found a race in the mtrr ipi_handler() and set_mtrr() functions.

Basically the server, set_mtrr() does the following:

  1.1 initialize a flag
  1.2 send ipi
  1.3 waits for all cpus to check in
  1.4 toggle flag
  1.5 do stuff
  1.6 wait for all cpus to check out
  1.7 toggle flag again
  1.8 return

While the clients, running ipi_handler() do the following:

  2.1 check in
  2.2 wait for flag
  2.3 do stuff
  2.4 check out
  2.5 wait for flag
  2.6 return

The problem is the flag is on the servers stack! So if 1.7 and 1.8
executes before 2.5 happens, the client's pointer to the flag becomes
invalid (likely overwritten) which causes the client to never see the
flag change, hanging the box.

The patch fixes that by adding a final synchronisation step in which the
controlling CPU waits for all the IPI'ed CPUs to complete.

23 years ago[PATCH] declare struct irq_desc
Andrew Morton [Thu, 7 Aug 2003 04:15:00 +0000 (21:15 -0700)]
[PATCH] declare struct irq_desc

From: Martin Pool <mbp@samba.org>

ia64_mv_irq_desc returns a 'struct irq_desc', which had a forward declaration
but did not actually exist.  We're currently using a silly anonymous struct
typedefed to irq_desc_t.

Now add the structure name as well.

23 years ago[PATCH] ext3: handle aborted journals in
Andrew Morton [Thu, 7 Aug 2003 04:14:52 +0000 (21:14 -0700)]
[PATCH] ext3: handle aborted journals in

Teach journal_get_write_access() and journal_get_undo_access() to handle
aborted trasaction handles.

23 years ago[PATCH] itimer resolution and rounding fixes
Andrew Morton [Thu, 7 Aug 2003 04:14:45 +0000 (21:14 -0700)]
[PATCH] itimer resolution and rounding fixes

From: george anzinger <george@mvista.com>

a) Fixes bug 858 (http://bugme.osdl.org/show_bug.cgi?id=858)

   The problem was caused by round off error in calculating the correct
   jiffies value in micro seconds to do the round up to jiffies.  The fix
   is to do the round up AFTER conversion to jiffies, rather than before.
   This only affected the timeval to jiffies calculation.

b) Changed the scale values to get the highest possible precision short
   of going to full 64-bit math.  This is particularly useful in the
   scaling of the seconds part of time.  The code now computes a trial
   value at compile time and adjusts the scaling if the result is less than
   32 bits.

c) Adds comments to time.h to remove (I hope) ALL the confusion that
   this file use to generate.

23 years ago[PATCH] Add do_setitimer prototype to linux/time.h
Andrew Morton [Thu, 7 Aug 2003 04:14:37 +0000 (21:14 -0700)]
[PATCH] Add do_setitimer prototype to linux/time.h

From: Peter Chubb <peterc@gelato.unsw.edu.au>

Currently, do_setitimer() is used in several files, but doesn't appear
in any header.  Thus its declaration is repeated in some files, and
its use causes a warning in others (because there is no declaration
present).

This patch:
     -- adds a couple of declarations to linux/times.h
     -- removes the (now duplicate) declarations from other files.

23 years ago[PATCH] NMI watchdog documentation for x86-64
Andrew Morton [Thu, 7 Aug 2003 04:14:29 +0000 (21:14 -0700)]
[PATCH] NMI watchdog documentation for x86-64

From: Ville Herva <vherva@niksula.hut.fi>

NMI watchdog is nowadays supported on x86-64, too. The nmi-watchdog.txt
document doesn't mention this. Here is a patch to add a few words on that.

23 years ago[PATCH] fix free_all_bootmem_core for virtual memmap
Andrew Morton [Thu, 7 Aug 2003 04:14:21 +0000 (21:14 -0700)]
[PATCH] fix free_all_bootmem_core for virtual memmap

From: jbarnes@sgi.com (Jesse Barnes)

Currently, free_all_bootmem_core() assumes that the bdata for a given
node will begin where the node's memory map begins.  This isn't
necessarily true on machines that use a virtual memory map (e.g. ia64
discontig machines), so we fix page to point to the first actual page of
RAM on the node, which _does_ contain the bdata struct.

23 years ago[PATCH] export lookup_create()
Andrew Morton [Thu, 7 Aug 2003 04:14:13 +0000 (21:14 -0700)]
[PATCH] export lookup_create()

From: jbarnes@sgi.com (Jesse Barnes)

hwgfs needs lookup_create(), and intermezzo already has copied it.

Document it, export it to modules and fix intermezzo.

23 years ago[PATCH] Don't trigger NMI watchdog for panic delay
Andrew Morton [Thu, 7 Aug 2003 04:14:06 +0000 (21:14 -0700)]
[PATCH] Don't trigger NMI watchdog for panic delay

From: Andi Kleen <ak@muc.de>

In some cases panic can be called with interrupts off.  Don't trigger the
NMI watchdog in this case when a panic= parameter is specified.

23 years ago[PATCH] might_sleep() checks for x86 usercopy functions
Andrew Morton [Thu, 7 Aug 2003 04:13:58 +0000 (21:13 -0700)]
[PATCH] might_sleep() checks for x86 usercopy functions

From: Matt Mackall <mpm@selenic.com>

This only checks in the non-__ versions, as those are occassionally
called inside things like kmap_atomic pairs which take a spinlock in
with highmem. It's all conditional on CONFIG_DEBUG_SPINLOCK_SLEEP
(which isn't quite the right name) so there's no overhead for normal
builds.

23 years ago[PATCH] ide-cd error handling oops fix
Andrew Morton [Thu, 7 Aug 2003 04:13:50 +0000 (21:13 -0700)]
[PATCH] ide-cd error handling oops fix

cdrom_decode_status() can call cdrom_end_request() twice.  The second call
oopses because the first call destroyed the request.

Fix it to only call cdrom_end_request() once.

Jens has acked this change.

23 years ago[PATCH] move_one_page() atomicity fix
Andrew Morton [Thu, 7 Aug 2003 04:13:43 +0000 (21:13 -0700)]
[PATCH] move_one_page() atomicity fix

move_one_page() is awkward.  It grabs an atomic_kmap of the source pte
(because it needs to know if there's really a page there) and then it needs
to allocate a pte for the dest.  But it cannot allocate the dest pte while
holding the src's atomic kmap.

So it performs this little dance peeking at pagetables to predict if
alloc_one_pte_map() might need to perform a pte page allocation.

When I wrote this code I made it conditional on CONFIG_HIGHPTE.  But that was
bogus: even in the !CONFIG_HIGHPTE case, get_one_pte_map_nested() will run
atomic_kmap() against the pte page, which disables preemption.

Net effect: with CONFIG_HIGHMEM && !CONFIG_HIGHPTE we can end up performing a
GFP_KERNEL pte page allocation while preemption is disabled.  It triggers a
might_sleep() warning and indeed is buggy.

So the patch removes the conditionality: even in the !CONFIG_HIGHPTE case we
still do the pagetable peek and drop the kmap if necessary.

(Arguably, we shouldn't be performing the atomic_kmap() at all if
!CONFIG_HIGHPTE: all it does is a pointless preemption disable).

(Arguably, kmap_atomic() should not be disabling preemption if the target
page is not highmem.  But we're doing it anyway at present for consistency
(ie: debug coverage) and because the filemap.c pagecache copying functions
rely on kmap_atomic() disabling do_no_page() for all pages: see
do_no_page()'s use of in_atomic()).

23 years ago[PATCH] remount_fs needs lock_kernel()
Andrew Morton [Thu, 7 Aug 2003 04:13:35 +0000 (21:13 -0700)]
[PATCH] remount_fs needs lock_kernel()

The new emergency remount path forgot to take lock_kernel(), which is
required for ->remount_fs().

23 years ago[PATCH] reiserfs: fix races between link and unlink on same
Andrew Morton [Thu, 7 Aug 2003 04:13:27 +0000 (21:13 -0700)]
[PATCH] reiserfs: fix races between link and unlink on same

From: Oleg Drokin <green@namesys.com>

This patch (originally by Chris Mason) fixes link/unlink races in reiserfs.