Linus Torvalds [Thu, 14 Aug 2003 05:58:18 +0000 (22:58 -0700)]
DRI CVS update: bump i810 driver to 1.4.
This fixes the DMA interface to be backwards compatible with older
XFree86 versions, by looking at the I810_INIT_DMA parameters and
figuring out old version semantics.
Linus Torvalds [Thu, 14 Aug 2003 04:11:39 +0000 (21:11 -0700)]
Mark CLONE_DETACHED as being irrelevant: it must match CLONE_THREAD.
CLONE_THREAD without CLONE_DETACHED will now return -EINVAL, and
for a while we will warn about anything that uses it (there are no
known users, but this will help pinpoint any problems if somebody
used to care about the invalid combination).
A part of the 64 bit kdev_t patch already got merged, and it changes the
format of /sys/block/<dev>/dev from %02x%02x to %u:%u. The partition
could must also be changed.
e.g. cat /sys/block/hda/hda5/dev should return 3:5 instead of 0305
Russell King [Thu, 14 Aug 2003 02:21:40 +0000 (19:21 -0700)]
[PATCH] Make modules work on ARM
This patch allows modules to work for ARM, and is the one thing which
prevents the standard tree from building for any ARM machine.
After reviewing the /proc/kcore and kclist issues, I've decided that I'm
no longer prepared to even _think_ about supporting /proc/kcore on ARM -
it just gets too ugly, and adds too much code to make it worth the effort,
the time or the energy to implement a solution to that problem.
/proc/kcore should probably go away, but in the meantime this just allows
ARM to ignore the issues.
- kill redundant, never executed code in lba_capacity_is_ok()
- add idedisk_supports_{hpa,lba48}() helpers
- don't recalculate drive->cyl for drives using LBA addressing,
we never fall-back to CHS, so its useless and confusing
- remove wrong drive->head and drive->sect assignments for LBA-48
- don't overwrite id->lba_capacity and id->lba_capacity_2
HDIO_GETGEO_BIG_RAW is an ide specific hack introduced in 2.3.99-pre3.
There are no known programs using this ioctl.
Its aim was to provide current CHS translation to the user-space,
but very often it provides what driver thinks is a current translation
(drive with LBA have to support only one physical translation, also
drive may not support chosen translation and there is no return value check).
hdparm -I can be used instead, it provides correct information
(and bogus data is still accessible through /proc/ide/hdX/geometry).
Nathan Scott [Thu, 14 Aug 2003 03:45:48 +0000 (22:45 -0500)]
[XFS] Fix a race condition in async pagebuf IO completion,
by moving blk queue manipulation down into pagebuf.
Fix some busted comments in page_buf.h, use a more
descriptive name for __pagebuf_iorequest.
Michael Plump [Thu, 14 Aug 2003 01:56:53 +0000 (18:56 -0700)]
[PATCH] Correct DEVPTS config help
The help for CONFIG_DEVPTS_FS claims that devfs "is a more general
facility". But that apparently hasn't been true since 2.5.68. This patch
removes that claim, and adds a warning to the DEVFS_FS help.
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.
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.
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.
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.
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:
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).
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.
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.)
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".