Jaroslav Kysela [Thu, 18 Mar 2004 12:16:42 +0000 (13:16 +0100)]
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
au88x0 driver
Manuel Jander <mjander@elo.utfsm.cl>:
clean up and small bugfixes, the routing code fix for multiple streams.
Andrew Morton [Wed, 17 Mar 2004 10:55:20 +0000 (02:55 -0800)]
[PATCH] exportfs - Remove unnecessary locking from find_exported_dentry()
From: "Jose R. Santos" <jrsantos@austin.ibm.com>
After discussing it with Neil, he fell that the original justification for
taking the kernel_lock on find_exported_dentry() is not longer valid and
should be safe to remove.
This patch fixes an issue while running SpecSFS where under memory
pressure, shrinking dcache cause find_exported_dentry() to allocate
disconnected dentries that later needed to be properly connected. The
connecting part of the code was done with BKL taken which cause a sharp
drop in performance during iterations and profiles showing 75% time spent
on find_exported_dentry(). After applying the patch, time spent on the
function is reduce to <1%.
I have tested this on an 8-way machine with 56 filesystems for several days
now with no problems using ext2, ext3, xfs and jfs.
Andrew Morton [Wed, 17 Mar 2004 10:54:42 +0000 (02:54 -0800)]
[PATCH] ppc64: wrap some stuff in __KERNEL__
From: Anton Blanchard <anton@samba.org>
- remove now unused kernel syscalls.
- wrap recently added defines in #ifdef __KERNEL__, fixes glibc
compile issue
- some of our extra syscalls used asmlinkage, some did not. Make them
consistent
Andrew Morton [Wed, 17 Mar 2004 10:54:33 +0000 (02:54 -0800)]
[PATCH] ppc32: Fix booting some IBM PRePs
From: Tom Rini <trini@kernel.crashing.org>
The following patch comes from Paul Mackerras. Earlier on in 2.6,
arch/ppc/boot/utils/mkprep.c was changed slightly so that it would build
and work on Solaris. Doing this required changing from filling out
pointers to an area to filling out a local copy of the struct. However, a
memcpy was left out, and the info is only needed on some machines to boot.
The following adds in the missing memcpy and allows for IBM PRePs to boot
from a raw floppy again.
Don Fry [Wed, 17 Mar 2004 15:12:15 +0000 (10:12 -0500)]
[PATCH] back out netdev_priv() for loopback
Please apply this fix to backout an erroneous change in loopback.c
The statistics structure is allocated separately from the
loopback_dev structure, and the current code overwrites something
other than the statistics. In my case the scsi_cmd_pool structure.
Krzysztof Halasa [Wed, 17 Mar 2004 07:54:59 +0000 (02:54 -0500)]
[netdrvr de2104x] fix ifup/down and promise mode
The attached patch fixes the problem: de->macmode variable,
meant to shadow MacMode (CSR6) register, was used inconsistently,
causing some updates to this register to be dropped.
2.4 kernel doesn't shadow this register at all, so I removed
shadowing from 2.6 as well.
David Mosberger [Wed, 17 Mar 2004 02:18:16 +0000 (18:18 -0800)]
ia64: Prevent GCC from clobbering r13. Found by Luming You.
Without this change, GCC thinks it's OK to clobber r13. It doesn't do it
very often, but it's enough if it does it once and it turns out
acpi_bus_receive_event() had code that would trigger this issue.
Fix by declaring r13 as a global register variable.
* wireless/Kconfig: fix typos, add SMC2835W-V2
* islpci_hotplug.c: new version 1.1, authors list, and
module description updated appropriately
* isl_ioctl.c, islpci_dev.c,
islpci_eth.c, islpci_hotplug.c, islpci_mgt.c:
s/ndev->priv/netdev_priv(ndev)/g
* islpci_hotplug.c: Add PCI ID values for SMC2835W-V2 cardbus card
Patch by Manuel Lauss <manuel.lauss@fh-hagenberg.at>
* isl_38xx.[ch]: include firmware.h in header, remove
declaration of headers in c file. Fix compiler warnings.
* islpci_dev.c (islpci_alloc_memory),
* islpci_eth.c (islpci_eth_cleanup_transmit,
islpci_eth_transmit, islpci_eth_receive): deal with skb stray
pointer, declare NULL.
* isl_38xx.c: remove unecessary __KERNEL_SYSCALLS__ and
re-ordered headers per vger.kernel.org - liking.
* isl_ioctl.c, islpci_mgt.c: move from MODULE_PARAM to the new
module_param, which is type-safe. Includes the new
<linux/moduleparam.h>.
* isl_ioctl.c (prism54_[s|g]et_[maxframeburst|profile]): added.
Not adding ioctls as ajfa is working on moving current private ioctls
to subioctls.
* isl_oid.h (dot11_[maxframeburst|preamblesettings|
slotsettings|nonerpstatus|nonerpprotection]_t): added.
Note: more ioctls can be added here, I believe problems
with mixed modes can be pinpointed here, with these values.
From: Boehm Olaf <olaf.boehm@lanner.de>
From: Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
Wider range for 33MHz timing and PLL setup for HPT374
(using the HPT370A timing table, as it is the same as
used in the "opensource" driver by HighPoint).
Andrew Morton [Tue, 16 Mar 2004 23:10:45 +0000 (15:10 -0800)]
[PATCH] SHMLBA compat task alignment fix
From: Arun Sharma <arun.sharma@intel.com>
The current Linux implementation of shmat() insists on SHMLBA alignment even
when shmflg & SHM_RND == 0. This is not consistent with the man pages and
the single UNIX spec, which require only a page-aligned address.
However, some architectures require a SHMLBA alignment for correctness in all
cases. Such architectures use __ARCH_FORCE_SHMLBA.
Andrew Morton [Tue, 16 Mar 2004 23:09:29 +0000 (15:09 -0800)]
[PATCH] clean up devices.txt
From: "Cagle, John (ISS-Houston)" <john.cagle@hp.com>
Patch 1 cleans up the format by making devices.txt easily parsable.
Mainly this involved adding the word "block" after all the block major
numbers since the previous format didn't include it.
Andrew Morton [Tue, 16 Mar 2004 23:09:08 +0000 (15:09 -0800)]
[PATCH] make config_max_raw_devices work
From: "Kenneth Chen" <kenneth.w.chen@intel.com>
Even though there is a CONFIG_MAX_RAW_DEVS option, it doesn't actually
increase the number of raw devices beyond 256 because during the char
registration, it uses the standard register_chrdev() interface which has
hard coded 256 minor in it. Here is a patch that fix this problem by using
register_chrdev_region() and cdev_(init/add/del) functions.
Andrew Morton [Tue, 16 Mar 2004 23:08:58 +0000 (15:08 -0800)]
[PATCH] x86 vsyscall alignment fix
From: Andy Whitcroft <andyw@uk.ibm.com>
The vsyscall implementation for ia32 provides two different vsyscall pages;
one to use int80 and the other to use sysenter. Each includes a common
signal trailer. The kernel requires the alignment of routines in this
trailer be consistent in both copies. However this is not enforced at
compile time. Failure to maintain this alignment typically leads to an
obscure SIGSEGV in init during boot. This critical alignment requirement
is not well documented.
Below is a patch to better document the alignment requirements and to
enforce the requirement.
Andrew Morton [Tue, 16 Mar 2004 23:08:29 +0000 (15:08 -0800)]
[PATCH] s390: dasd driver fixes.
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
dasd driver fixes:
- Remove additional dasd attributes for a ccw-device if the discipline
(=driver) gets unloaded.
- Fix race of dasd_generic_offline against dasd_open.
- Remove irq_exit calls from diag interrupt handler. The irq_enter/
irq_exit is done in the external interrupt handler.
Andrew Morton [Tue, 16 Mar 2004 23:08:18 +0000 (15:08 -0800)]
[PATCH] s390: network driver fixes.
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
network driver fixes:
- Use SET_NETDEV_DEV to create the link from the network device to the
physical device. Remove link from physical to network device.
- Remove some unnecessary casts in netiucv.
- Add missing strings to dev_stat_names & dev_event_names.
- Add missing preempt_disable/preempt_enable pairs in iucv.
- Allow to change the peer username in netiucv.
Andrew Morton [Tue, 16 Mar 2004 23:07:59 +0000 (15:07 -0800)]
[PATCH] s390: common i/o layer.
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
Common i/o layer fixes:
- Improve blacklist argument parsing.
- Fix device recognition for devices where SenseID fails.
- Don't try to set a device online that has no driver.
- Chain a release ccw to the unconditional reserve ccw for forced online.
- Fix irb accumulation for pure status pending with eswf set.
- Fix rc handling in qdio_shutdown.
- Improve retry behavious for busy conditions on qdio.
- Fix activity check in ccw_device_start/read_dev_chars and read_conf_data.
Andrew Morton [Tue, 16 Mar 2004 23:07:50 +0000 (15:07 -0800)]
[PATCH] s390: core
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
s390 core changes:
- Merge 31 and 64 bit NR_CPUS config option. Default to 32 cpus.
- Remove unused system calls from compat_linux.c.
- Add statfs64 and fstatfs64. Reserve system call number for
remap_file_pages.
- Merge do_signal32 into do_signal.
- Don't remove the per bit and the program mask from the user psw
due to a signal.
- Fix a problem with gdb and interrupted system calls.
- Fix single stepping of interrupted system calls.
- Fix compiler warnings in bitops.h.
Andrew Morton [Tue, 16 Mar 2004 23:07:29 +0000 (15:07 -0800)]
[PATCH] ppc32: Fix thinko in PCI_DMA_FOO to DMA_FOO conversion
From: Tom Rini <trini@kernel.crashing.org>
When I converted the use of PCI_DMA_foo constants to DMA_foo constants, I
forgot that it's PCI_DMA_FROMDEVICE and DMA_FROM_DEVICE. The following
fixes that.
Andrew Morton [Tue, 16 Mar 2004 23:07:19 +0000 (15:07 -0800)]
[PATCH] ppc32: Update <asm-ppc/dma-mapping.h>
From: Tom Rini <trini@kernel.crashing.org>
include/asm-ppc/dma-mapping.h was made to be a 'real' header recently and
therefore missed out on the updates that davem did to all of the other
versions. This updates <asm-ppc/dma-mapping.h> to match what's expected
now.
Andrew Morton [Tue, 16 Mar 2004 23:07:10 +0000 (15:07 -0800)]
[PATCH] ppc32: Fix PCI DMA API changes
From: Tom Rini <trini@kernel.crashing.org>
When Dave Miller updated <asm-ppc/pci.h> for the _for_device and _for_cpu
portions of the PCI DMA API, he assumed that on PPC32 consistent_sync*
would also need to be changed for device or cpu. This is not the case, so
what this does is the pci_*_for_{cpu,device} calls call
consistent_sync{,page} again.
Chen Yang [Tue, 16 Mar 2004 12:53:34 +0000 (04:53 -0800)]
[PATCH] Make intermezzo work again
- Chen Yang's fix to work with NGROUPS
- Chen Yang's fix to handle file deletion
- Remove TCGETS handling and return -ENOTTY for unknown ioctl code.
- Removed InterMezzo from BROKEN state
Matt Mackall [Tue, 16 Mar 2004 10:36:03 +0000 (05:36 -0500)]
[PATCH] fix netpoll warning in tulip
On Tue, Mar 16, 2004 at 12:36:02PM +0200, Meelis Roos wrote:
> FYI: with netpoll configured out, I get
>
> CC [M] drivers/net/tulip/tulip_core.o
> drivers/net/tulip/tulip_core.c:256: warning: `poll_tulip' declared `static' but never defined
Jeff Garzik [Tue, 16 Mar 2004 10:15:18 +0000 (05:15 -0500)]
[netdrvr natsemi] Fix RX DMA mapping
RX skbs are always considered maximally sized, until actual reception
of the RX frame occurs. So, update this driver to always map and
unmap a maximally sized skb. This fixes this driver on several
non-x86 platforms.
ATAPI multi-lun support has been broken for a long time.
It used to be that "(drive->id->last_id & 0x7) + 1" was used as
shost->max_lun and the "hdXlun=" kernel parameter could be used to
override this value.
However it was far from optimal:
- people played with "hdXlun=" and then complained about multiple instances
of the same device (most ATAPI drives respond to each LUN)
- probably some devices return 7 not 0 in id->last_id (=> 7 x same device)
This patch from Willem Riede <wrlk@riede.org> fixes it w/o need
for "hdXlun=" option. It was tested by Willem on ATAPI PD/CD drive.
Rusty Russell [Tue, 16 Mar 2004 08:38:36 +0000 (00:38 -0800)]
[PATCH] wait_task_inactive should not return on preempt
wait_task_inactive is now only used in two non-time-critical places: the
ptrace code to guarantee a schedule and kthread_bind so we can change
the thread CPU. Unfortunately with preempt, the code as stands has a
race: we might return because the thread is preempted, not because it
actually reached schedule(). The ptrace code (probably) doesn't care,
but the kthread code does.
This patch simplifies the (now over-optimized) code, and does a yield()
for the preemption case.
Bjorn Helgaas [Tue, 16 Mar 2004 02:22:41 +0000 (18:22 -0800)]
[PATCH] ia64: fix up DMA API breakage in generic build
We also need the following patch to build the generic_defconfig
after the DMA API change:
http://linux.bkbits.net:8080/linux-2.5/cset@405490e15inT3T0H2x887j9SaMkYRQ
Andrew Morton [Mon, 15 Mar 2004 23:29:37 +0000 (15:29 -0800)]
[PATCH] ppc64: fix for massive OF properties
From: Anton Blanchard <anton@samba.org>
We have some versions of firmware out there that have huge OF properties.
So huge that we end up overwriting our initrd.
Place a 1MB limit and warn bitterly if its over this. Also fix a use of
package-to-path where the variable was 64bytes but we would pass in a
length of 255.