Andrew Morton [Mon, 22 Mar 2004 09:55:33 +0000 (01:55 -0800)]
[PATCH] fix device open return values
The recent conversion of the open-of-a-nonexistent-blockdev return value from
ENXO to ENODEV was wrong. We should have converted the chardev code to
return -ENXIO too.
Wim Van Sebroeck [Sun, 21 Mar 2004 21:33:23 +0000 (22:33 +0100)]
[WATCHDOG] v2.6.5-rc2 pcwd.c-patch1
Version 1.14 of pcwd.c - Changes that were made are:
* Extract the start code in a seperate function (pcwd_start)
* Extract the stop code in a seperate function (pcwd_stop)
* Extract the get_temperature code in a seperate function (pcwd_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops
* Small clean-up's
James Morris [Sun, 21 Mar 2004 14:38:44 +0000 (06:38 -0800)]
[CRYPTO]: Add Michael MIC algorithm.
From Jouni Malinen <jkmaline@cc.hut.fi>
Added Michael MIC keyed digest for TKIP (IEEE 802.11i/WPA). This algorithm
is quite weak due to the requirements for compatibility with old legacy
wireless LAN hardware that does not have much CPU power. Consequently, this
should not really be used with anything else than TKIP.
Michael MIC is calculated over the payload of the IEEE 802.11 header which
makes it easier to add TKIP support for old wireless LAN cards. An additional
authenticated data area is used (but not send separately) to authenticate
source and destination addresses.
James Morris [Sun, 21 Mar 2004 14:36:22 +0000 (06:36 -0800)]
[CRYPTO]: Add setkey operation for digests.
From Jouni Malinen <jkmaline@cc.hut.fi>
Added support for using keyed digest with an optional dit_setkey handler.
This does not change the behavior of the existing digest algorithms, but
allows new ones to add setkey handler that can be used to initialize the
algorithm with a key or seed. setkey is to be called after init, but before
any of the update call(s).
Wim Van Sebroeck [Sun, 21 Mar 2004 12:28:25 +0000 (13:28 +0100)]
[WATCHDOG] v2.6.5-rc2 softdog.c-patch
Version 0.07 of softdog.c - Changes that were made are:
* Extract the start/keepalive code in a seperate function (softdog_keepalive)
* Extract the stop code in a seperate function (softdog_stop)
* Add notifier support
* Extract softdog_set_heartbeat code to seperate subroutine
* Small clean-up's
Linus Torvalds [Sun, 21 Mar 2004 12:26:39 +0000 (04:26 -0800)]
Remove stale legacy ISDN files.
From Armin Schindler <armin@melware.de>:
"These files were added in the first place for the compat
driver to the legacy isdn4linux module. Since the Eicon
driver now uses CAPI only, these files are obsolete."
Wim Van Sebroeck [Sun, 21 Mar 2004 12:22:23 +0000 (13:22 +0100)]
[WATCHDOG] v2.6.5-rc2 wdt_pci.c-patch
Version 0.10 of wdt_pci.c - Changes that were made are:
* Extract the start code in a seperate function (wdtpci_start)
* Extract the stop code in a seperate function (wdtpci_stop)
* Convert wdtpci_ping so that it return an int value (0=succes).
* Extract the get_temperature code in a seperate function (wdtpci_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops.
* Reorganize init and exit functions
* Make heartbeat (the emulated heartbeat) a module parameter
* Rewrite status flag code so that we could add a new tachometer module parameter
+ make clear distinction between PCI-WDT500 and PCI-WDT501.
* Small clean-up's
Wim Van Sebroeck [Sun, 21 Mar 2004 12:18:43 +0000 (13:18 +0100)]
[WATCHDOG] v2.6.5-rc2 wdt.c-patch
Version 0.10 of wdt.c - Changes that were made are:
* Extract the start code in a seperate function (wdt_start)
* Extract the stop code in a seperate function (wdt_stop)
* Convert wdt_ping so that it return an int value (0=succes).
* Extract the get_temperature code in a seperate function (wdt_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops.
* Reorganize init and exit functions
* Make heartbeat (the emulated heartbeat) a module parameter
* Rewrite status flag code so that we could add a new tachometer module parameter
* Small clean-up's
Peter Osterlund [Sun, 21 Mar 2004 07:23:11 +0000 (23:23 -0800)]
[PATCH] Revert UDF inode semaphore locking
For some reason I don't understand, the last UDF filesystem update makes
the UDF deadlock when I write a bunch of mp3 files to a CDRW using the
packet writing patch. Both "cp" and pdflush get stuck in __down.
Reverting the semaphore changes makes the problem go away. Use the
kernel lock again, until whatever recursive offender gets fixed.
(The offensive recursion seems to be: write() takes the inode semaphore,
causes memory pressure, and then trying to write back the inode or dirty
data to disk tries to get the semaphore again and deadlocks.)
[SPARC32]: Support memory starting at physical address other than 0
From: Stefan Holst <mail@s-holst.de>
Allow physical memory to start at almost arbitrary addresses. LEON
needs it, so do SPARCstation 10/20 without slot 0 populated. Although
Sun do not support this configuration, at least some such systems can
boot with this patch.
Physical memory starting at or above 0xF4000000 is not supported.
Andrew Morton [Sun, 21 Mar 2004 00:38:26 +0000 (16:38 -0800)]
[PATCH] make inflate use less stack space with gcc3.5
From: Matt Mackall <mpm@selenic.com>
Quick fix to work around gcc3.5's automatic inline and broken stack
requirements calculation. Without this, I see stack overflows at boot
with 4k stacks.
Andrew Morton [Sun, 21 Mar 2004 00:37:44 +0000 (16:37 -0800)]
[PATCH] kbuild ordering fix
From: Sam Ravnborg <sam@ravnborg.org>
In the i386 case we need to generate asm-offset.h, before starting building
the kernel tree. Building asm-offset.h causes us to use one of the
shorthands in the top-level makefile, namely the one for .s files. The one
that allows us to do: make some/dir/file.s
And this shorthand happens to have a dependency to scripts, therefore I did
not see this problem on i386. But David hit it with sparc64, because there
is no asm-offset.h file. No parallel stuff involved here, just an ordinary
error.
Andi Kleen [Sun, 21 Mar 2004 04:17:28 +0000 (23:17 -0500)]
[PATCH] Hack mptfusion to work on >4GB machines
fusion needs several separately allocated coherent regions and
requires that they all be in the same 4GB segment. Obviously this may
fail. The hack is to force the coherent_dma_mask to 0xffffffff thus
ensuring that all the allocations occur within the first 4GB. This
hack breaks Altix entirely.
Adam Belay [Sat, 20 Mar 2004 13:49:10 +0000 (13:49 +0000)]
[ISAPNP] MEM Config Fix
This patch fixes a bug in the resource configuration function. If
there are more than one memory ranges, the isapnp driver will write
into the incorrect configuration register.
Samuel Rydh [Sat, 20 Mar 2004 11:39:50 +0000 (03:39 -0800)]
[PATCH] keywest bugfix
This fixes a deadlock in I2C probing.
- keywest holds the pmac_low_i2c_lock while registering the i2c adapter.
- i2c_add_adapter() notifies registered drivers by calling
driver->attach_adapter().
- a driver might access the i2c bus from attach_adapter() which
deadlocks since all xfer routines take the lock.
Andrew Morton [Sat, 20 Mar 2004 01:45:57 +0000 (17:45 -0800)]
[PATCH] fix console oops/race
Finally nailed this sucker.
con_close() checks the tty->count and then sleeps in acquire_console_sem().
But another process can come in and grab a ref against the tty while
con_close() dropped the BKL. But con_close() then proceeds to deallocate the
tty->driver_data anyway, even though the tty now has ->count == 2.
Fix that by moving the check for ->tty_count inside console_sem.
Andi Kleen [Sat, 20 Mar 2004 01:44:56 +0000 (17:44 -0800)]
[PATCH] critical x86-64 merge
There were some nasty bugs in the x86-64 code, including one race that
could cause random reboots, especially on Intel machines, with the NMI
watchdog. This patch fixes them and also includes some harmless
cleanups.
Main fixes were for some buglets in the IOMMU code and the plugging of a
race in the exception stack handling. Also disables an broken MCE on K8
explicitely.
Also finally the preempt compile issues are fixed.
- Declare hpet interrupt separately in drivers/char/rtc.c
- Fix rtc.h/hpet.h to not depend on interrupt.h
- Finally include smp_lock.h in hardirq.h
- Update defconfig
- Export bad_dma_address
- Merge with 2.6.5rc2
- Never schedule on interrupt stacks.
- Add option to force software iotlb (iommu=soft)
- Add ifdefs to gsi patch to match i386 (Bjorn Helgaas)
- Fix K8 GART TLB MCE workaround to actually work
- Fix dwarf2 unwind table in SAVE_ARGS (Jim Houston)
- Disable APIC on VIA/NVidia even with acpi=off (Gwenole Beauchesne)
- Fix parsing bug in "apic" option (Gwenole Beauchesne)
- Fix dma mask handling in pci_alloc_consistent
- Make pci_alloc_consistent more robust in low memory situations.
- Print version number in oopses (from i386)
- ACPI GSI cleanup (Bjorn Helgaas)
- Disable K8 GART TLB walk error MCE explicitely
- Add support to disable individual MCEs in the various banks.
Andrew Morton [Sat, 20 Mar 2004 01:41:51 +0000 (17:41 -0800)]
[PATCH] therm_adt7467 update
From: "Colin Leroy" <colin@colino.net>
The fan driver I wrote for adt746x looks like it only handles the adt7467
chip found in iBooks G4; but it also handles the adt7460 chip found in the
Powerbook G4 Alu. Here's a patch that updates therm_adt7467.c, Kconfig and
Makefile.
Adam Belay [Sat, 20 Mar 2004 00:36:51 +0000 (00:36 +0000)]
[ISAPNP] Fix Device Detection Issue
Some isapnp devices were not getting detected as a result of a bug in the isapnp
driver. It was not following the specifications and calculating a checksum when
it was not reliable. This problem was originally discovered by Paul L. Rogers
<rogerspl@datasync.com>. He made an initial patch. This release has some small
modifications, including a check to see if we run out of CSNs.
Matthew Wilcox [Fri, 19 Mar 2004 06:08:16 +0000 (22:08 -0800)]
[PATCH] PCI: Use insert_resource in pci_claim_resource
On ia64, the parent resources are not necessarily PCI resources and
so won't get found by pci_find_parent_resource. Use the shiny new
insert_resource() function instead, which I think we would have used
here had it been available at the time.