Andrew Morton [Sat, 6 Mar 2004 16:49:11 +0000 (08:49 -0800)]
[PATCH] char/rio/rioctrl: fix ioctl return values
From: "Randy.Dunlap" <rddunlap@osdl.org>
From: Tony Breeds <tony@bakeyournoodle.com>
It fixes 3 places where the ioctl returns positives instead of negatives.
I've gotten feedback from the maintainer (Rogier Wolff (sp?) and he has no
objections.
Andrew Morton [Sat, 6 Mar 2004 16:48:52 +0000 (08:48 -0800)]
[PATCH] ppc64: Convert mm_context_t to a struct
From: David Gibson <david@gibson.dropbear.id.au>
Converts the mm_context_t on ppc64 to be a struct. This lets us separate
the low_hpages flag into a separate field rather than folding it into the
actual context id. That makes things neater, since the flag is
conceptually separate and has, for example, should be propogate across a
fork whereas the context ID obviously isn't. The mm_context_id is the only
place to put arch-specific information in the mm_struct.
This patch will also make some interesting extensions to the hugepage
support much easier, such as allowing dynamic resizing of the hugepage
address space, or using special pagetables for hugepages.
Andrew Morton [Sat, 6 Mar 2004 16:48:32 +0000 (08:48 -0800)]
[PATCH] ppc64: iSeries_vio_dev cleanup
From: Stephen Rothwell <sfr@canb.auug.org.au>
This patch declares iSeries_vio_dev in an include file and includes it where
necessary. It also fixes arch/ppc64/kernel/mf.c to use the generic dma API
with iSeries_vio_dev.
Andrew Morton [Sat, 6 Mar 2004 16:48:11 +0000 (08:48 -0800)]
[PATCH] fastcall / regparm fixes
From: Gerd Knorr <kraxel@suse.de>
Current gcc's error out if a function's declaration and definition disagree
about the register passing convention.
The patch adds a new `fastcall' declatation primitive, and uses that in all
the FASTCALL functions which we could find. A number of inconsistencies were
fixed up along the way.
Andrew Morton [Sat, 6 Mar 2004 16:47:39 +0000 (08:47 -0800)]
[PATCH] svcauth_gss oops fix
From: "J. Bruce Fields" <bfields@fieldses.org>
I've done some testing with 2.6.4-rc1. It looks fine, except that one
critical patch got dropped somewhere along the way, without which
rpcsec_gss will oops.
We've changed gss_get_mic to write mic in place instead of kmalloc'ing new
memory for it; change must also be reflected in server side code.
Trond Myklebust [Sat, 6 Mar 2004 08:11:47 +0000 (00:11 -0800)]
[PATCH] Fix knfsd filehandles...
Here's a fix for an obvious typo in changeset
neilb@cse.unsw.edu.au|ChangeSet|20040305155724|31191
that was causing ESTALE errors galore on my NFS testrig.
The code initializing the "high" BATs on CPUs like the 750FX got
broken when copied over from 2.4. This cause random problems with
machines using those CPUs (iBook 2s typically).
Dave Jones [Fri, 5 Mar 2004 07:19:34 +0000 (23:19 -0800)]
[PATCH] mismatched syscall protos.
Sparse noticed a bunch of mismatched prototypes in the new syscalls.h file
when compiling net/socket.c Whilst most of them are just missing __user
tags, the last argument of sys_socketpair was completely different.
Russell King [Fri, 5 Mar 2004 21:35:39 +0000 (21:35 +0000)]
[SERIAL] Correct Oxford Semiconductor 16PCI952 PCI type entry.
WRT 2.4, Ed Vance put this fix into 2.4:
According to the data sheet, the OX16PCI952 has port 0 in BAR0 and
port 1 in BAR1. (unlike the OX16C954, BTW) The 921600 base baud value
is your oscillator rate divided by the default oversample rate, 16.
Since 2.6 PCI IDs have been updated to use the real device ID for
this part, we really should include this fix as well.
Russell King [Fri, 5 Mar 2004 21:12:13 +0000 (21:12 +0000)]
[SERIAL] Don't initialise port->mctrl before calling ->startup
If a serial port is hung up using vhangup() with HUPCL cleared (so
DTR isn't dropped), and then re-opened, we don't want to drop the
DTR line. This occurs during the login process, and dropping DTR
would cause a modem to hang up.
Harald Welte [Fri, 5 Mar 2004 20:41:31 +0000 (20:41 +0000)]
[SERIAL] Fix supprot for AFAVLAB 8port boards in 2.6.x
I didn't yet use one of my AFAVLAB boards with 2.6.x until now. The
upper 4 ports are not detected at all. I suppose the bug was
introduced while porting the driver from 2.4.x.
Please consider applying the following patch. It also adds support
for a new 8 port board called P030.
Bjorn Helgaas [Fri, 5 Mar 2004 20:16:43 +0000 (20:16 +0000)]
[SERIAL] Make serial console work for any port (take 2)
The current serial console code only works for ports that are either
defined in SERIAL_PORT_DFNS (and set up by serial8250_isa_init_ports())
or registered by early_serial_setup().
On ia64, SERIAL_PORT_DFNS is empty because we discover everything
via ACPI and PCI. And we only use early_serial_setup() for one port
described by the HCDP firmware table.
This patch against 2.6.4-rc1 makes it work for any valid port. If we
don't know about the port early, we just return -ENODEV from the
setup() function, which leaves the serial console disabled. After the
driver has found all the ports, we try to register the serial console
again if it hasn't been enabled already.
Keith Owens noticed that the first version of this patch broke some
serial console setups because many early serial ports are registered
with "type == PORT_UNKNOWN". So this version tests "port->ops"
instead, and Keith has confirmed that this works for him.
Marcel Holtmann [Fri, 5 Mar 2004 19:53:50 +0000 (20:53 +0100)]
[Bluetooth] Dynamic allocation of the RFCOMM TTY devices
Only allocate the RFCOMM TTY devices when they are really in use. This
prevents the system from calling hotplug and udev 256 times to create or
remove every device node. In fact this makes the loading and unloading
of the RFCOMM module much faster.
Marcel Holtmann [Fri, 5 Mar 2004 18:43:26 +0000 (19:43 +0100)]
[Bluetooth] Add notify callback for host drivers
This patch adds a notification callback to the hci_dev structure which
is used by the HCI core to tell the driver about connection creation
and clearing. It also notifies about changed voice setting.
Marcel Holtmann [Fri, 5 Mar 2004 18:27:52 +0000 (19:27 +0100)]
[Bluetooth] Send HCI_Reset for some Broadcom dongles
This patch introduces a quirk flag for sending the HCI_Reset command. In
general the HCI_Reset is not needed, but some Broadcom dongles uses this
reset command to switch from HID to HCI mode. And it is not safe to send
the HCI_Reset to every Bluetooth device, because the CSR firmware prior
HCI 12.x will reset the host transport and this is wrong according to the
Bluetooth specification.
Neil Brown [Thu, 4 Mar 2004 23:57:24 +0000 (15:57 -0800)]
[PATCH] kNFSd - Tidy up new filehandle type.
nfsd uses several different mechanisms for identifying the filesystem
from the filehandle.
This patch:
Marks type 2 as deprecated - it wastes space, and space in the filehandle
is not unlimited
Adds type 3 which handles new, large device number in 32bits of space
Tidies up the code for determining which type to use in a newly created
filehandle - the addition of type 2 broke this code.
Brian Gerst [Thu, 4 Mar 2004 15:05:03 +0000 (07:05 -0800)]
[PATCH] PnP BIOS exception fixes
This fixes two errors in fixup_exception() for PnP BIOS faults:
- Check for the correct segments used for the BIOS
- Fix asm constraints so that EIP and ESP are properly reloaded
Deepak Saxena [Thu, 4 Mar 2004 22:17:06 +0000 (22:17 +0000)]
[ARM PATCH] 1757/1: Allow building of LE kernels with BE-default toolchain
Patch from Deepak Saxena
The ARM makefile currently assumes that the compiler being used
defaults to little-endian builds unless the big-endian options
are provided. This may not always be the case (my toolchains default
to BE since that's what I mostly work with) so this patch forces
endianess options to be passed to the toolchain. W/O this,
building without CONFIG_CPU_BIG_ENDIAN on a big-endian toolchain
will still result in a big-endian kernel.
Alexander Viro [Thu, 4 Mar 2004 05:21:34 +0000 (21:21 -0800)]
[PATCH] d_alloc_root() fixes: gadgetfs
gatgetfs fill_super:
- double-free of inode on last two failure exits
- leak on the last failure exit
- touching addresses near 0 on last two failure exits
New revision of the Sigmatel irda driver. This version has much
better performance and doesn't drop frames in FIR mode.
Tested with both UHCI and EHCI/OHCI against nsc-ircc on laptop.
Thanks to Martin for additional testing and feedback.
* Receiver:
- changed from interrupt to bulk URB. Queue's one bulk
urb per USB tick (1ms).
- FIR unpack now uses get_unaligned and cpu32_le
instead of explicit shifts
- FIR unpack copies small frames
* Transmitter:
- pack data into io buffer. Since irda is half duplex
can use same buffer for transmit and receive.
- use xchange and wait_event for synchronization
* Other:
- use USB format messages rather than IRDA (ugly)
- clean up USB startup
- reset device on network open to clear up stuck state
- handle FIFO errors
- disconnect cleanup (from viro)
- don't DMA onto stack when reading fifo status
This adds a "timbase" entry in /proc/cpuinfo like p/iSeries that
provides the CPU timebase frequency. It is using by a all sort of
performance analysis tools we are hacking in house.
It also remove a useless bit about the l2 cache that was copied over
from ppc32.
I've had reports of flicker that appear with large (23") flat panels
and radeonfb. From experiments, it appears that forbiding the "odd"
PLL divider values fix it (like it fixes the blur problem on TMDS2).
There should not be anything special with TMDS1 and "odd" PLL values
though, so the problem may be subtly different (a bandwidth problem),
but until I have proper bandwidth calculation and access to this
monitor, the following patch is an acceptable workaround (Odd PLL values
aren't that useful anyway)
Olof Johansson [Wed, 3 Mar 2004 05:30:05 +0000 (21:30 -0800)]
[PATCH] ppc64: More IOMMU cleanups
* Tidy up some of the arguments to iommu_*()
* Comment cleanup
* Don't bump the hint to the next block for large allocs, to avoid
fragmentation.
* Simplify vmerge logic during SG allocations
* Move the memory barriers from the bus-specific parts into the common
code.
Some changes are mine, some are from Ben Herrenschmidt.
- fix bug introduced by my recent fixes
(do not try to disable 66MHz clock on PDC20246)
- cleanup cable verification code a bit
- remove unused macros (leftovers from driver split-up)
and duplicated define from pdc202xx_old.h
Alexander Viro [Wed, 3 Mar 2004 03:07:49 +0000 (19:07 -0800)]
[PATCH] parport: get rid of parport_enumerate
parport_enumerate() is gone. The last caller was under ifdef that
never had been true. Function itself is removed, port list handling
cleaned up (now we can do that, since drivers don't mess with the list
directly), tons of racy crap removed from parport/share.c
Alexander Viro [Wed, 3 Mar 2004 03:07:39 +0000 (19:07 -0800)]
[PATCH] parport: keep track of parport_sunbpp ports
parport_sunbpp switched to keeping track of the ports it had
created; in module_exit it uses the private list instead of messing
with parport_enumerate(). Added check for sbus_ioremap() failure in
port initialization.
Alexander Viro [Wed, 3 Mar 2004 03:07:29 +0000 (19:07 -0800)]
[PATCH] parport: keep track of parport_pc ports
parport_pc switched to keeping track of the ports it had
created; in module_exit it uses the private list instead of messing
with parport_enumerate().
Added compile fix for configs that have CONFIG_PARPORT_PC_FIFO turned
off (from -mm).
Alexander Viro [Wed, 3 Mar 2004 03:07:20 +0000 (19:07 -0800)]
[PATCH] parport: clean up parport_announce_port and friends
parport_announce_port() was always called right after
parport_proc_register(). Call shifted into parport_announce_port().
Similar for parport_remove_port() and parport_proc_unregister().
Alexander Viro [Wed, 3 Mar 2004 03:07:08 +0000 (19:07 -0800)]
[PATCH] parport: fix parport_unregister_port
parport_unregister_port() is split; parport_remove_port() does
what parport_unregister_port() used to do sans the final parport_put_port()
call.
Callers updated; many of them needed only parport_put_port() (failure
exit paths where we never had the port announced to drivers).
Fixed multiple races on port removal by shifting parport_remove_port()
in front of the code that releases irq/io ports/etc.
Alexander Viro [Wed, 3 Mar 2004 03:06:58 +0000 (19:06 -0800)]
[PATCH] parport: slave port cleanups
references to slave ports of mux added to struct parport.
parport_daisy_init() doesn't go through parport_announce_port() for mux
slaves anymore; parport_annouce_port() deals with found ones itself.
Error handling sanitized, races on unregistration fixed.