]> git.hungrycats.org Git - linux/log
linux
23 years ago[driver model] Remove 'power' file in favor of 'power' directory.
Patrick Mochel [Thu, 14 Aug 2003 05:41:10 +0000 (22:41 -0700)]
[driver model] Remove 'power' file in favor of 'power' directory.

- Only present when CONFIG_PM=y.
- Contains 'state' file for controlling power state with new PM
  infrastructure.

23 years ago[driver model] Allow per-device shutdown or suspend on driver detach.
Patrick Mochel [Thu, 14 Aug 2003 05:34:30 +0000 (22:34 -0700)]
[driver model] Allow per-device shutdown or suspend on driver detach.

- Add struct device::detach_state, which tells the core what state to put
  the device in when it's detached from its driver (on module removal).

  This is a value in the range of 0-4, with 0 being On and meaning 'Do
  Nothing', 4 being Off, meaing calling ->shutdown() for the device, and
  1-3 being low-power states, meaning call ->suspend() for the device.

- Add per-device sysfs file 'detach_state' to control the value of the
  field.

- Add device_device_shutdown() function, and call it from bus.c::
  device_detach_driver().

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Patrick Mochel [Thu, 14 Aug 2003 02:44:29 +0000 (19:44 -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 agoMerge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
Patrick Mochel [Thu, 14 Aug 2003 02:36:17 +0000 (19:36 -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] Fix pd.c for new queue allocation
Alexander Viro [Wed, 13 Aug 2003 16:47:49 +0000 (09:47 -0700)]
[PATCH] Fix pd.c for new queue allocation

From A1tmblwd@netscape.net

23 years ago[PATCH] Email address update
Kai Mäkisara [Wed, 13 Aug 2003 16:47:41 +0000 (09:47 -0700)]
[PATCH] Email address update

This updates my email address.

23 years ago[PATCH] SCSI tape fix for oops in read with wrong block size
Kai Mäkisara [Wed, 13 Aug 2003 16:47:33 +0000 (09:47 -0700)]
[PATCH] SCSI tape fix for oops in read with wrong block size

This corrects the following problem:

- release user buffer mapping early in read path (prevent oops in some
  HBA drivers)

23 years ago[PATCH] Document mounting of binfmt_misc
John Levon [Wed, 13 Aug 2003 16:47:25 +0000 (09:47 -0700)]
[PATCH] Document mounting of binfmt_misc

Patch by Ivan Gyurdiev.

23 years ago[PATCH] IPMI updates for 2.6.0-test3
Corey Minyard [Wed, 13 Aug 2003 16:47:17 +0000 (09:47 -0700)]
[PATCH] IPMI updates for 2.6.0-test3

Here are some minor updates to the IPMI driver.  They fix the following:

    * A missing check for copy_to_user() in the watchdog driver.
    * Removal of unnecessary check_region() calls.
    * Fixes for the ACPI configuration. The previous one would only work
      with memory addresses, this will work with memory addresses,
      ports, and hadle checking that the type is correct.

23 years ago[PATCH] hpt366 fix
Andries E. Brouwer [Wed, 13 Aug 2003 16:38:33 +0000 (09:38 -0700)]
[PATCH] hpt366 fix

The HPT366 code is broken - it tries to set the interface to too high a
speed, which leads to error messages at boot time and/or to data
corruption.

The typical effect at boot time is

 hde: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
 hde: set_drive_speed_status: error=0x04 { DriveStatusError }

Fixed thus.

23 years ago[PATCH] Fix bug in sunrpc/server code.
Neil Brown [Wed, 13 Aug 2003 16:38:25 +0000 (09:38 -0700)]
[PATCH] Fix bug in sunrpc/server code.

When a socket has a request ready it notifies a server thread.
When the thread has 'received' the request it calls svc_sock_received
to confirm the fact.

In some cases, svc_sock_received would be called an extra time and
this could lead to linked-list corruption and bad problems.

23 years ago[PATCH] Disable buggy raid5 handling of read-ahead
Neil Brown [Wed, 13 Aug 2003 16:38:17 +0000 (09:38 -0700)]
[PATCH] Disable buggy raid5 handling of read-ahead

raid5 tries to honour RWA_MASK, but messes it up and can return bad data.
Just ignore RAW_MASK for now.

23 years ago[PATCH] x86-64 merge for 2.6.0test3
Andi Kleen [Wed, 13 Aug 2003 16:38:10 +0000 (09:38 -0700)]
[PATCH] x86-64 merge for 2.6.0test3

Without these changes an x86-64 NUMA kernel won't boot in many
configurations.

The main change is the improved IOMMU code which supports merging of
mappings and has various bugfixes.

 - Update defconfig
 - Use argument ptregs in 32bit elf_core_copy_task_fpregs
 - Harden aperture fixup code: read aperture from the AGP bridge if needed,
   better error checking.
 - Support nmi_watchdog=panic to panic on watchdog trigger
 - IOMMU: Support panic on IOMMU overflow (iommu=panic)
 - IOMMU: Force SAC for mappings >40bits when iommu=force is active
   (this can potentially give better performance)
 - IOMMU: Cache northbridges for faster TLB flush
 - IOMMU: Fix SMP race in TLB flush
 - IOMMU: Merge pci_alloc_consistent and pci_map_single
 - IOMMU: Clean up leak tracing
 - IOMMU: Rewrite pci_map_sg, support merging of mappings
   On overflow fall back to piece-by-piece mapping.
 - IOMMU: Tell block layer to assume merging when iommu force is active
   (this gives better performance with MTP fusion, drawback is that the
   overflow/fragmentation handling of the IOMMU area is still a big
   dubious with that)
 - Fix/clean up per cpu data
 - Add 64bit clean time(2)
 - Export cpu_callout_map for IPv6
 - Handle nodes with no own memory in NUMA discovery.
   This fixes boot on various newer Opteron motherboards where the memory
   is only connected to a single CPU.
 - Fix fallback path for failed NUMA discovery. numnodes has to be reset.
 - Check for enabled nodes in NUMA discovery (Eric Biederman)
 - Remove NUMA emunodes support. Has badly bitrotted.
 - Add __clear_bit_string for IOMMU code
 - Add new 32bit system calls to ia32_unistd.h
 - Remove duplicate default_do_nmi prototype
 - Make PCI_DMA_BUS_IS_PHYS dependent on no_iommu
 - Fix padding length of siginfo_t to match glibc
 - More pci direct access functions.

23 years ago[PATCH] Make SELinux security module compile on m68k
Geert Uytterhoeven [Wed, 13 Aug 2003 16:38:01 +0000 (09:38 -0700)]
[PATCH] Make SELinux security module compile on m68k

23 years ago[PATCH] fix trident.c lockup on module load 2.6.0-test2
Muli Ben-Yehuda [Wed, 13 Aug 2003 16:37:54 +0000 (09:37 -0700)]
[PATCH] fix trident.c lockup on module load 2.6.0-test2

This patch fixes a kernel lockup with 2.6.0-test2 when the trident.c
OSS driver is loaded and the driver attempts to initialize the
card. The problem is that in ali_ac97_get() we lock the card->lock
spinlock, but never release it on the good path, only on the error
path. This patch adds the missing spin_unlock_irqrestore().

This bug snuck in in a 2.4 sync from Alan, and 2.4 appears to suffer
from the same problem.  A patch for that will be send to Marcelo
momentarily.

23 years ago[PATCH] Fix protocol bugs with NFS and nanoseconds
Jamie Lokier [Wed, 13 Aug 2003 16:37:46 +0000 (09:37 -0700)]
[PATCH] Fix protocol bugs with NFS and nanoseconds

NFS with 2.5.75 as both client and server is broken with GNU Make.

The nanosecond field of timestamps of newly touched files is often
negative on the client, which is probably why Make fails.  The value
also bears no relation to the file's nanosecond field on the server.

The culprit is htons() used where htonl() should be:

- *p++ = htonl((u32) time->tv_sec); *p++ = htons(time->tv_nsec);
+ *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec);

The rest of this patch corrects nfsd to use microseconds in NFSv2, not
nanoseconds.  (The client already gets this right, but I have
optimised it slightly to avoid division when possible).

23 years ago[PATCH] zap_other_threads() detaches thread group leader
Matt Wilson [Wed, 13 Aug 2003 16:37:38 +0000 (09:37 -0700)]
[PATCH] zap_other_threads() detaches thread group leader

The change to detach the threads in zap_other_threads() broke the case
where the non-thread-group-leader is the cause of de_thread().

In this case the group leader will be detached and freed before
switch_exec_pids() is complete and invalid data will be used.  This is a
patch that makes sure that the group leader does not get detached and
reaped.

23 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Wed, 13 Aug 2003 16:30:29 +0000 (09:30 -0700)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Wed, 13 Aug 2003 16:29:11 +0000 (09:29 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge http://linux-watchdog.bkbits.net/linux-2.5-watchdog
Linus Torvalds [Wed, 13 Aug 2003 16:26:18 +0000 (09:26 -0700)]
Merge http://linux-watchdog.bkbits.net/linux-2.5-watchdog
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PATCH] Clean up missing spin_unlock_irqrestore from rrunner driver
François Romieu [Wed, 13 Aug 2003 16:23:58 +0000 (09:23 -0700)]
[PATCH] Clean up missing spin_unlock_irqrestore from rrunner driver

This is a cleaner fix that avoids having two separate unlock
operations.

23 years ago[PATCH] Disable APIC on reboot
Mikael Pettersson [Wed, 13 Aug 2003 16:13:54 +0000 (09:13 -0700)]
[PATCH] Disable APIC on reboot

This disables the local APIC before reboot.  This fixes BIOS reboot
problems reported by a few people.

disable_local_APIC() now checks if detect_init_APIC() enabled the
local APIC via the APIC_BASE MSR, and if so it now disables APIC_BASE.
Previously we would leave APIC_BASE enabled, and that made some
BIOSen unhappy.

The SMP reboot code calls disable_local_APIC(). On SMP HW there is
no change since detect_init_APIC() isn't called and APIC_BASE isn't
enabled by us. An SMP kernel on UP HW behaves just like an UP_APIC
kernel, so it disables APIC_BASE if we enabled it at boot.

The UP_APIC disable-before-suspend code is simplified since the existing
code to disable APIC_BASE is moved into disable_local_APIC().

(Felix Kühling originally reported the BIOS reboot problem. This is a
fixed-up version of his preliminary patch.)

23 years ago[PATCH] logic error in gus_wave driver
Dave Jones [Wed, 13 Aug 2003 16:13:46 +0000 (09:13 -0700)]
[PATCH] logic error in gus_wave driver

23 years ago[PATCH] sparse annotations for ipc/sem
Dave Jones [Wed, 13 Aug 2003 16:13:38 +0000 (09:13 -0700)]
[PATCH] sparse annotations for ipc/sem

23 years ago[PATCH] sparse annotations for page_alloc
Dave Jones [Wed, 13 Aug 2003 16:13:31 +0000 (09:13 -0700)]
[PATCH] sparse annotations for page_alloc

Again, more work to do here..

23 years ago[PATCH] AD1848 claims a card it shouldn't.
Dave Jones [Wed, 13 Aug 2003 16:13:23 +0000 (09:13 -0700)]
[PATCH] AD1848 claims a card it shouldn't.

23 years ago[PATCH] Remove useless assertions from reiserfs
Dave Jones [Wed, 13 Aug 2003 16:13:15 +0000 (09:13 -0700)]
[PATCH] Remove useless assertions from reiserfs

23 years ago[PATCH] correct tlb_remove_page comment.
Dave Jones [Wed, 13 Aug 2003 16:13:07 +0000 (09:13 -0700)]
[PATCH] correct tlb_remove_page comment.

Remove prototype. It was wrong anyway.

23 years ago[PATCH] LDM 64bit fixup
Dave Jones [Wed, 13 Aug 2003 16:12:59 +0000 (09:12 -0700)]
[PATCH] LDM 64bit fixup

23 years ago[PATCH] sparse annotations for page-writeback
Dave Jones [Wed, 13 Aug 2003 16:12:51 +0000 (09:12 -0700)]
[PATCH] sparse annotations for page-writeback

More to do, but its a beginning.

23 years ago[PATCH] EFI 64bit fixup
Dave Jones [Wed, 13 Aug 2003 16:12:43 +0000 (09:12 -0700)]
[PATCH] EFI 64bit fixup

23 years ago[PATCH] BEFS 64bit fixup
Dave Jones [Wed, 13 Aug 2003 16:12:36 +0000 (09:12 -0700)]
[PATCH] BEFS 64bit fixup

23 years ago[PATCH] sync iocb wakeup
Dave Jones [Wed, 13 Aug 2003 16:12:28 +0000 (09:12 -0700)]
[PATCH] sync iocb wakeup

if ki_users = 1, we don't do the wakeup, which seems wrong.

23 years ago[PATCH] missing copy_from_user check in mixcom driver.
Dave Jones [Wed, 13 Aug 2003 16:12:20 +0000 (09:12 -0700)]
[PATCH] missing copy_from_user check in mixcom driver.

23 years ago[PATCH] missing copy_from_user check in munich driver
Dave Jones [Wed, 13 Aug 2003 16:12:12 +0000 (09:12 -0700)]
[PATCH] missing copy_from_user check in munich driver

23 years ago[PATCH] Missing spin_unlock_irqrestore from rrunner driver.
Dave Jones [Wed, 13 Aug 2003 16:12:05 +0000 (09:12 -0700)]
[PATCH] Missing spin_unlock_irqrestore from rrunner driver.

23 years ago[PATCH] missing copy_*_user checks in sbni wan driver
Dave Jones [Wed, 13 Aug 2003 16:11:57 +0000 (09:11 -0700)]
[PATCH] missing copy_*_user checks in sbni wan driver

23 years ago[PATCH] missing copy_from_user check in comx-proto-fr driver
Dave Jones [Wed, 13 Aug 2003 16:11:49 +0000 (09:11 -0700)]
[PATCH] missing copy_from_user check in comx-proto-fr driver

23 years ago[PATCH] missing copy_to_user check in pc300 wan driver
Dave Jones [Wed, 13 Aug 2003 16:11:42 +0000 (09:11 -0700)]
[PATCH] missing copy_to_user check in pc300 wan driver

23 years ago[PATCH] missing copy_from_user check in comx_proto_lapb driver
Dave Jones [Wed, 13 Aug 2003 16:11:34 +0000 (09:11 -0700)]
[PATCH] missing copy_from_user check in comx_proto_lapb driver

23 years ago[PATCH] Missing copy_from_user check in comx driver
Dave Jones [Wed, 13 Aug 2003 16:11:26 +0000 (09:11 -0700)]
[PATCH] Missing copy_from_user check in comx driver

23 years ago[PATCH] missing copy_to_user check in tun driver.
Dave Jones [Wed, 13 Aug 2003 16:11:18 +0000 (09:11 -0700)]
[PATCH] missing copy_to_user check in tun driver.

23 years ago[PATCH] PCMCIA copy_*_user fixes.
Dave Jones [Wed, 13 Aug 2003 16:11:10 +0000 (09:11 -0700)]
[PATCH] PCMCIA copy_*_user fixes.

These copies already did a verify_area above.

23 years ago[PATCH] sparse annotations for MSR driver
Dave Jones [Wed, 13 Aug 2003 16:11:03 +0000 (09:11 -0700)]
[PATCH] sparse annotations for MSR driver

23 years ago[PATCH] c99 for blkmtd
Dave Jones [Wed, 13 Aug 2003 16:10:55 +0000 (09:10 -0700)]
[PATCH] c99 for blkmtd

23 years ago[PATCH] c99 initiliasers for bttv (2)
Dave Jones [Wed, 13 Aug 2003 16:10:47 +0000 (09:10 -0700)]
[PATCH] c99 initiliasers for bttv (2)

23 years ago[PATCH] CodingStyle fixes for drm_agpsupport
Dave Jones [Wed, 13 Aug 2003 16:10:39 +0000 (09:10 -0700)]
[PATCH] CodingStyle fixes for drm_agpsupport

23 years ago[PATCH] boolean logic error in fpu emulation.
Dave Jones [Wed, 13 Aug 2003 16:10:31 +0000 (09:10 -0700)]
[PATCH] boolean logic error in fpu emulation.

23 years ago[PATCH] c99 struct initialisers for AMD8111e driver.
Dave Jones [Wed, 13 Aug 2003 16:10:24 +0000 (09:10 -0700)]
[PATCH] c99 struct initialisers for AMD8111e driver.

23 years ago[PATCH] arcnet indentation fixup
Dave Jones [Wed, 13 Aug 2003 16:10:16 +0000 (09:10 -0700)]
[PATCH] arcnet indentation fixup

23 years ago[PATCH] FusionMPT 64bit fixup
Dave Jones [Wed, 13 Aug 2003 16:10:08 +0000 (09:10 -0700)]
[PATCH] FusionMPT 64bit fixup

23 years ago[PATCH] c99 initialisers for bttv
Dave Jones [Wed, 13 Aug 2003 16:10:00 +0000 (09:10 -0700)]
[PATCH] c99 initialisers for bttv

23 years ago[PATCH] misc 3c505 bits
Dave Jones [Wed, 13 Aug 2003 16:09:52 +0000 (09:09 -0700)]
[PATCH] misc 3c505 bits

- Remove unneeded breaks
- Fix double spin_unlock_irqrestore problem

23 years ago[PATCH] remove version.h from bttv
Dave Jones [Wed, 13 Aug 2003 16:09:45 +0000 (09:09 -0700)]
[PATCH] remove version.h from bttv

23 years ago[PATCH] Remove unneeded ; from macros in i8042
Dave Jones [Wed, 13 Aug 2003 16:09:37 +0000 (09:09 -0700)]
[PATCH] Remove unneeded ; from macros in i8042

23 years ago[PATCH] c99 initialisers for random.c
Dave Jones [Wed, 13 Aug 2003 16:09:29 +0000 (09:09 -0700)]
[PATCH] c99 initialisers for random.c

23 years ago[PATCH] cpu_relax whilst in busy-wait loops.
Dave Jones [Wed, 13 Aug 2003 16:09:21 +0000 (09:09 -0700)]
[PATCH] cpu_relax whilst in busy-wait loops.

23 years ago[PATCH] CCISS 64bit fixup.
Dave Jones [Wed, 13 Aug 2003 16:09:14 +0000 (09:09 -0700)]
[PATCH] CCISS 64bit fixup.

23 years ago[PATCH] DAC960 64bit fixup
Dave Jones [Wed, 13 Aug 2003 16:09:06 +0000 (09:09 -0700)]
[PATCH] DAC960 64bit fixup

23 years ago[PATCH] Remove duplicate ; at end of macro definitions
Dave Jones [Wed, 13 Aug 2003 16:08:58 +0000 (09:08 -0700)]
[PATCH] Remove duplicate ; at end of macro definitions

23 years ago[PATCH] document easier bitkeeper option.
Dave Jones [Wed, 13 Aug 2003 16:08:50 +0000 (09:08 -0700)]
[PATCH] document easier bitkeeper option.

Achieves the same result.  From Lenz Grimmer at Mysql AG

23 years ago[PATCH] microcode driver sparse __user annotations.
Dave Jones [Wed, 13 Aug 2003 16:08:42 +0000 (09:08 -0700)]
[PATCH] microcode driver sparse __user annotations.

Plus with a little codeshuffling, we can do away with the
prototypes.

23 years ago[PATCH] Fix x87 FPU exception status check
Dave Jones [Wed, 13 Aug 2003 16:08:35 +0000 (09:08 -0700)]
[PATCH] Fix x87 FPU exception status check

From Dave Richards (drichards@mahinetworks.com)

  "While diagnosing an MMX/FPU problem I found a minor problem in the
   code which diagnoses and generates signals for FPU exceptions.  On
   x86 Stack Fault Exception are a subclass of Invalid Operation.  Thus,
   the FPU status register will have both the SF and IF bits set when a
   stack fault occurs.  The code which turns FPU exceptions into signals
   was assuming IF would be clear".

23 years ago[PATCH] winchip3d can use same -march as winchip2
Dave Jones [Wed, 13 Aug 2003 16:08:27 +0000 (09:08 -0700)]
[PATCH] winchip3d can use same -march as winchip2

23 years ago[PATCH] Don't refer to devel kernel in Kconfig option
Dave Jones [Wed, 13 Aug 2003 16:08:19 +0000 (09:08 -0700)]
[PATCH] Don't refer to devel kernel in Kconfig option

23 years ago[PATCH] Enable OOSTORE on Geode.
Dave Jones [Wed, 13 Aug 2003 16:08:11 +0000 (09:08 -0700)]
[PATCH] Enable OOSTORE on Geode.

From Hiroshi Miura <miurahr@nttdata.co.jp>

23 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Wed, 13 Aug 2003 16:00:04 +0000 (09:00 -0700)]
Merge bk://linux-dj.bkbits.net/agpgart
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[AGPGART] Fix overflow on machines with >4GB
Dave Jones [Wed, 13 Aug 2003 19:22:20 +0000 (20:22 +0100)]
[AGPGART] Fix overflow on machines with >4GB
From Marcelo E Magallon.

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

23 years ago[AGPGART] VIA AGP3 fixups.
Dave Jones [Wed, 13 Aug 2003 10:44:22 +0000 (11:44 +0100)]
[AGPGART] VIA AGP3 fixups.
From folks at VIA.

23 years ago[AGPGART] Disable calibration cycle when not in AGP3 mode of operation on AGP3 chipset.
Dave Jones [Wed, 13 Aug 2003 10:38:51 +0000 (11:38 +0100)]
[AGPGART] Disable calibration cycle when not in AGP3 mode of operation on AGP3 chipset.

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 agoPPC32: Restrict when we enable IBM405_ERR{77,51}.
Tom Rini [Tue, 12 Aug 2003 07:58:03 +0000 (00:58 -0700)]
PPC32: Restrict when we enable IBM405_ERR{77,51}.
Newer IBM40x cores have these problems fixed.

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 agoPPC32: Fix compile error on SMP - asm-ppc/smp.h needs linux/threads.h.
Paul Mackerras [Mon, 11 Aug 2003 19:30:39 +0000 (05:30 +1000)]
PPC32: Fix compile error on SMP - asm-ppc/smp.h needs linux/threads.h.

23 years agoMerge ssh://mulgrave-w/BK/scsi-misc-2.5
James Bottomley [Sun, 10 Aug 2003 19:11:43 +0000 (14:11 -0500)]
Merge ssh://mulgrave-w/BK/scsi-misc-2.5
into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.6

23 years agoMerge tetrachloride.(none):/mnt/raid/src/kernel/2.5/trees/bk-linus
Dave Jones [Sun, 10 Aug 2003 16:44:11 +0000 (17:44 +0100)]
Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/trees/bk-linus
into tetrachloride.(none):/mnt/raid/src/kernel/2.5/trees/agpgart

23 years ago[WATCHDOG] alim7101_wdt.c patch3
Wim Van Sebroeck [Sun, 10 Aug 2003 16:38:37 +0000 (18:38 +0200)]
[WATCHDOG] alim7101_wdt.c patch3

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] alim7101_wdt.c patch2
Wim Van Sebroeck [Sun, 10 Aug 2003 16:28:43 +0000 (18:28 +0200)]
[WATCHDOG] alim7101_wdt.c patch2

changed watchdog_info to correctly reflect what the driver offers
added WDIOC_GETSTATUS, WDIOC_GETBOOTSTATUS and WDIOC_SETOPTIONS ioctls

23 years ago[WATCHDOG] alim7101_wdt.c patch
Wim Van Sebroeck [Sun, 10 Aug 2003 16:17:40 +0000 (18:17 +0200)]
[WATCHDOG] alim7101_wdt.c patch

cleanup comments and trailing spaces
added extra printk's to report what problem occured
added MODULE_DESCRIPTION

23 years agoMerge http://linux-watchdog.bkbits.net/linux-2.5-watchdog
Wim Van Sebroeck [Sun, 10 Aug 2003 14:15:51 +0000 (16:15 +0200)]
Merge http://linux-watchdog.bkbits.net/linux-2.5-watchdog
into iguana.be:/home/wim/BitKeeper/projects/linux-2.5-watchdog

23 years ago[WATCHDOG] sc520_wdt.c patch3
Wim Van Sebroeck [Sun, 10 Aug 2003 14:05:46 +0000 (16:05 +0200)]
[WATCHDOG] sc520_wdt.c patch3

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] sc520_wdt.c patch2
Wim Van Sebroeck [Sun, 10 Aug 2003 13:51:23 +0000 (15:51 +0200)]
[WATCHDOG] sc520_wdt.c patch2

changed watchdog_info to correctly reflect what the driver offers
added WDIOC_GETSTATUS, WDIOC_GETBOOTSTATUS and WDIOC_SETOPTIONS ioctls

23 years ago[WATCHDOG] sc520_wdt.c patch
Wim Van Sebroeck [Sun, 10 Aug 2003 13:33:46 +0000 (15:33 +0200)]
[WATCHDOG] sc520_wdt.c patch

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

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 ago[PATCH] make sym2 scan devices again
Christoph Hellwig [Sun, 10 Aug 2003 05:31:44 +0000 (00:31 -0500)]
[PATCH] make sym2 scan devices again

It needs a call to scsi_scan_host to find devices.  Also remove the
superflous scsi_set_device call - scsi_add_host does that for us.

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 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