David Jeffery [Thu, 15 Jan 2004 07:53:07 +0000 (02:53 -0500)]
[PATCH] ips fix for large mem 64bit machines
This patch fixes DMA bugs on x86-64 and ia64 machines. The driver was
using commands that only support 32bit addresses in places that could
return 64bit addresses. One place was DMAing off the stack. The other
place was causing problems on x86-64 machines by calling pci_map()
functions on a region allocated by pci_alloc_consistent().
David Jeffery [Thu, 15 Jan 2004 07:51:50 +0000 (02:51 -0500)]
[PATCH] ips 2/2: minor fixes
This patch fixes two minor bugs. It allows zero length write commands
through to devices. It also prevents the writing of any '\0'
characters at the end of version numbers to ips's /proc/scsi files.
James Bottomley [Thu, 15 Jan 2004 05:23:57 +0000 (00:23 -0500)]
g_NCR5380 - 2.6.0 - problem with reloading module
From: "Randy.Dunlap" <rddunlap@osdl.org>
The problem is that the detect function requests an IO region
of 16 bytes (at least when a command line override parameter is
used) but the release function only tries to release 8 bytes,
and this request isn't done because it doesn't match any allocated
IO region. [NCR53C400 extensions are not enabled, so
NCR5380_region_size is 8, not 16, but the request uses
NCR5380_region_size regardless.]
Fix: save the allocated region size in instance->n_io_ports and release
that size only;
Matthew Wilcox [Wed, 14 Jan 2004 06:47:05 +0000 (01:47 -0500)]
[PATCH] Re: Building sym 2.1.18f on linux/alpha
On Tue, Jan 13, 2004 at 06:02:08PM +0300, Sergey Tikhonov wrote:
> The final kernel could not pass linking stage with 2.1.18f version
> (included into 2.6.1 kernel patch).
> The linker complains that :
> drivers/built-in.o(.init.text+0x8cec): In function 'sym2_probe':
> : undfined reference to 'local symbols in discarded section .exit.text'
>
> I compared arch/alpha/kernel/vmlinux.lds.S with one from the i386 tree.
> The '.exit.text' and '.exit.data'
> sections were moved out of DISCARD attributes in the i386 version. I did
> the same with alpha version
> and it helped.
Thanks for this report; you uncovered a real bug. Actually two real
bugs; one is that parisc is not discarding the .init.text and .exit.text
sections (so I didn't notice this bug) and the other is that sym_detach
is marked __devexit, yet called from a __devinit function.
Marcel Holtmann [Wed, 14 Jan 2004 01:34:23 +0000 (02:34 +0100)]
[Bluetooth] Fix reference counting for incoming connections
The L2CAP reference counting must be increased by the RFCOMM module if an
incoming connection is accepted. If this is not done, it will be decreased
one time to often if the connection is terminated.
Krishna Kumar [Tue, 13 Jan 2004 15:26:01 +0000 (07:26 -0800)]
[XFRM]: Fix two bugs in xfrm_lookup()
- the found or allocated xfrm_states are not passed correctly to
xfrm_bundle_create (and to the subsequent frees in case of create
failing) if the first xfrm_tmpl_resolve failed and the second one
succeeded.
- error handling is wrong.
Remove duplicate/conflicting code now that netdev_register_notifier replays the
device registration events. Reorder initialization to avoid having to simplify error unwind
if /proc creation failed.
Change IPV6 to handle the new case where netdev events are replayed on registration:
* change code ordering so address configuration is ready before registration
(this was actually a bug in existing code)
* take out code that capture's existing devices, this is now done in the replay
* make notifier code local to addrconf.c so it can be have smaller scope
Marcel Holtmann [Tue, 13 Jan 2004 05:17:12 +0000 (06:17 +0100)]
[Bluetooth] Set disconnect timer for incoming ACL links
In general a Bluetooth stack that creates an ACL link should also take
care of its termination, but some Bluetooth devices think otherwise. The
problem is that the Bluetooth specification don't defines an ownership
of an ACL link and if nobody cares about it, two devices stay connected
even if there is no need. To avoid leftover ACL links the disconnect
timer must also be used for incoming connections, but it is set twice
the default disconnect timeout so the other side get enough time to
clean everything by itself.
Adrian Bunk [Sun, 11 Jan 2004 03:48:04 +0000 (22:48 -0500)]
[PATCH] qla1280.c doesn't compile
On Wed, Jan 07, 2004 at 11:28:31PM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.1-rc1-mm2:
>...
> -qla1280-update.patch
> +qla1280-update-2.patch
>
> Updated qlogic patch
>...
I got the following compile error when trying to compile this driver
statically into a kernel with hotplug enabled:
<-- snip -->
...
drivers/scsi/qla1280.c:4849: error: `qla1280_remove_one' undeclared here
(not in a function)
drivers/scsi/qla1280.c:4849: error: initializer element is not constant
drivers/scsi/qla1280.c:4849: error: (near initialization for
`qla1280_pci_driver.remove')
make[2]: *** [drivers/scsi/qla1280.o] Error 1
<-- snip -->
Since I don't see a good reason why qla1280_remove_one is #ifdef'ed out
in the non-modular case the patch below fixes this problem by removing
two #ifdef's.
James Bottomley [Sat, 10 Jan 2004 16:14:57 +0000 (11:14 -0500)]
Mac SCSI fixes (from Matthias Urlichs)
From: Geert Uytterhoeven <geert@linux-m68k.org>
Mac SCSI fixes (from Matthias Urlichs):
- Inline functions need to be defined before being used.
- out_8() takes an address and a value, not the other way round.
James Bottomley [Sat, 10 Jan 2004 16:09:04 +0000 (11:09 -0500)]
sym2 speed selection fix
From: Alex Tomas <alex@clusterfs.com>
without following patch I couldn't get 160MB from my disk. removed line
restores previous clocking value (0 in my case). so, driver thinks disk
isn't DT-capable ...
Simon Kelley [Sat, 10 Jan 2004 14:59:37 +0000 (09:59 -0500)]
[wireless atmel] various updates
Below is a patch against 2.6.1-rc1 which has that fix and
quite a few other components. viz:
* Bumped version to 0.9
* Dmitry Torokhov's skb-leak and netif_carrier patches.
* Added a couple of fields to /proc/driver/atmel
* Fixed failure to call unregister_netdev in a couple of error-unwind
paths. I think this fixes the
unregister_netdevice: waiting for eth1 to become free.
bugs, but I don't have definative proof.
* Remove floating-point constants just in case the compiler doesn't.
* Fixed bug in scanning.
* Added firmware versioning, driver will search through different
available versions of firmware 'till it finds an available one.
* Changed firmware URL in configure help to a directory rather than a
file, so I can release new named versions.
* Added support for later releases of the firmware, which are WPA aware.
Firmware verion is automatically detected, so users who upgrade their
kernel but not their firmware won't have problems.
The PCI support and possible WPA support will have to wait for another day.
James Bottomley [Sat, 10 Jan 2004 10:37:47 +0000 (05:37 -0500)]
SCSI sg,st block layer TCQ fix
Usually, the mid layer ends the block tag (if one was in use)
early to release the resources. However, things like sg and st
don't go through the code path that does the release, so put a
fallback release in __scsi_release_request() for them.