[PATCH] aic7xxx: cap maxsync according to correct card limits

2007-07-30 Thread James Bottomley
Not doing this can cause cards less than u160 capable to send out PPR offers to devices they can't then deliver on ... causing some devices to get a bit confused. Fix by capping the start syncrate at the appropriate level according to the card capabilities. James diff --git

[PATCH 1/1] scsi: Fix SRP_ATTRS Kconfig

2007-07-30 Thread Brian King
Since the srp transport class was added, if scsi tgt support is not selected, the current Kconfig allows for enabling a dependent device driver, such as ibmvscsi, which does a select of SCSI_SRP_ATTRS. This does not, however, enable SCSI_TGT also. This fixes this up to prevent the following build

Re: [PATCH 3/5] Use mutex instead of semaphore in the SCSI Tape driver

2007-07-30 Thread Kai Makisara
On Sun, 29 Jul 2007, Matthias Kaehlcke wrote: The SCSI Tape driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Signed-off-by: Kai Makisara [EMAIL PROTECTED] Thanks. -- Kai - To unsubscribe from this

Re: [patch 2/4] Expose Power Management Policy option to users

2007-07-30 Thread Jeff Garzik
Kristen Carlson Accardi wrote: @@ -42,6 +42,16 @@ enum scsi_eh_timer_return { EH_RESET_TIMER, }; +/* + * shost pm policy: If you alter this, you also need to alter scsi_sysfs.c + * (for the ascii descriptions) + */ +enum scsi_host_link_pm { + SHOST_NOT_AVAILABLE, +

Re: [2/3] 2.6.23-rc1: known regressions v3

2007-07-30 Thread Michal Piotrowski
Hi all, Here is a list of some known regressions in 2.6.23-rc1. Feel free to add new regressions/remove fixed etc. http://kernelnewbies.org/known_regressions List of Aces NameRegressions fixed since 21-Jun-2007 Adrian Bunk6 Andi Kleen

qla2xyz broken in current Linus tree

2007-07-30 Thread Matthew Wilcox
Reverting 281afe1947d855661754850de29d7530b2ff18dc fixes this panic: qla2xxx :42:07.0: Found an ISP2322, irq 19, iobase 0xf8812000 qla2xxx :42:07.0: Configuring PCI space... qla2xxx :42:07.0: Configure NVRAM parameters... BUG: unable to handle kernel NULL pointer dereference at

advansys update 2007-07-30

2007-07-30 Thread Matthew Wilcox
It's Monday morning, so time for another round of patches. I'd like to thank jejb for merging the Lindent patch into Linus' tree already. And I'd like to thank jgarzik for being indefatigable in his reviews. I'd also like to thank jgarzik for telling me about isa_register_driver which I wasn't

[PATCH 1/23] advansys: version, copyright, etc

2007-07-30 Thread Matthew Wilcox
Update the version to 3.4 Add my copyright Add myself to MAINTAINERS Exercise my right to change the license from dual BSD/GPL to GPL Don't force the definition of CONFIG_ISA on x86 Always include pci.h Stop including stat.h --- MAINTAINERS |6 ++ drivers/scsi/advansys.c |

[PATCH 3/23] advansys: Improve interrupt handler

2007-07-30 Thread Matthew Wilcox
Pass the Scsi_Host to the interrupt handler, rather than polling all hosts for each interrupt. Return IRQ_NONE if we didn't handle this interrupt Don't set the IRQF_DISABLED flag; this is not a fast-executing interrupt handler. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] ---

[PATCH 2/23] advansys: Clean up proc_info implementation

2007-07-30 Thread Matthew Wilcox
Just use the Scsi_Host passed in, rather than looking through the driver's own array of boards for one that matches it. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 36 1 files changed, 12 insertions(+), 24 deletions(-)

[PATCH 4/23] advansys: Stop checking the scsi_cmnd belongs to our Scsi_Host

2007-07-30 Thread Matthew Wilcox
The interrupt routines used to walk the list of Scsi_Hosts belonging to this driver to make sure that the scsi_cmnd belonged to one of them. This is a waste of time and gets in the way of later cleanups, so delete it. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c |

[PATCH 13/23] Add QUANTUM XP34301 to the blacklist

2007-07-30 Thread Matthew Wilcox
According to the AdvanSys driver, this device has a problem with tagged queueing. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/scsi_devinfo.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c

[PATCH 10/23] advansys: Update resource management

2007-07-30 Thread Matthew Wilcox
Make sure the resources are reserved and released by all the callers of advansys_board_found(). This eliminates the check_region-style race. It also allows us to use the pci_request_regions() API. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 70

[PATCH 12/23] advansys: remove AscCompareString()

2007-07-30 Thread Matthew Wilcox
AscCompareString() is just another name for strncmp Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 23 +++ 1 files changed, 3 insertions(+), 20 deletions(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 424549d..277002a

[PATCH 8/23] advansys: Convert to EISA driver model

2007-07-30 Thread Matthew Wilcox
- Switch EISA probing to the driver model - Remove some now-unused macros and functions - Update the FIXME now that we use the correct driver model probing API Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 175 +-- 1

[PATCH 9/23] advansys: Convert to ISA driver model

2007-07-30 Thread Matthew Wilcox
Register two isa_drivers, one for ISA and one for VLB, in order to preserve detection order. When deleting advansys_detect, we lose the last vestiges of the code that limited IO port scanning. This code has been effectively disabled for many years anyway; I'll restore it in a module_param later.

[PATCH 5/23] advansys: Make advansys_board_found a little more readable

2007-07-30 Thread Matthew Wilcox
- Put all the error cleanup at the end of the function and goto the appropriate label - Split advansys_wide_init_chip out of advansys_board_found - Split advansys_wide_free_mem out of advansys_board_found. Use it from advansys_release - Use GFP_KERNEL, not GFP_ATOMIC, when allocating

[PATCH 17/23] advansys: ioremap no longer needs page-aligned addresses

2007-07-30 Thread Matthew Wilcox
At some point during Linux 2.1 development, ioremap() gained the ability to handle addresses which weren't page-aligned. Also expand the CONFIG_PCI range to encompass that entire section of wide board initialisation, since all wide boards are PCI. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED]

[PATCH 15/23] advansys: misc reformatting

2007-07-30 Thread Matthew Wilcox
Remove some useless forward declarations Reformat some comments, debug messages, and the occasional piece of real code Removal of unnecessary braces Remove duplicate setting of shost-irq Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 260

[PATCH 20/23] advansys: Remove library-style callback routines

2007-07-30 Thread Matthew Wilcox
Convert adv_isr_callback, adv_async_callback and asc_isr_callback into direct calls. Remove the unused asc_exe_callback. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 50 +++--- 1 files changed, 8 insertions(+), 42

[PATCH 11/23] advansys: More PCI cleanups

2007-07-30 Thread Matthew Wilcox
- Remove wrappers around the PCI configuration space accessors - Call pci_set_master() instead of poking at config space directly - Move the latency setting into one function called for both narrow and wide boards. - Tidy up AdvInitGetConfig() a little. - Delete a few unused prototypes and

[PATCH 16/23] advansys: delete AscGetChipBusType

2007-07-30 Thread Matthew Wilcox
By moving a test from AscGetChipBusType into its only caller, we can delete the whole function Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 36 1 files changed, 4 insertions(+), 32 deletions(-) diff --git

[PATCH 18/23] advansys: Stop using n_io_port in Scsi_Host structure

2007-07-30 Thread Matthew Wilcox
n_io_port isn't suitable for advansys because some of the boards have more than 255 bytes of io port space. There's already a driver-private replacement, asc_n_io_port, but for some reason the driver was still setting and occasionally reporting n_io_port. Signed-off-by: Matthew Wilcox [EMAIL

[PATCH 19/23] advansys: Move struct device out of the cfg structures

2007-07-30 Thread Matthew Wilcox
The cfg structures are supposed to be disposable after initialisation; with the 'dev' used for DMA mapping in there, that's not possible. Move the dev to the board. Also inline AscInitFromAscDvcVar into its only caller, remove some unnecessary prototypes and sort out a few minor formatting

[PATCH 14/23] advansys: remove INQUIRY sniffing

2007-07-30 Thread Matthew Wilcox
Use slave_configure() to do all the work that used to be done in AscInquiryHandling and AdvInquiryHandling. Split slave_configure into two functions, one for wide and one for narrow controllers. Remove some unused definitions, duplicate definitions, unnecessary declarations, and scsireqq,

[PATCH 6/23] advansys: Move to scsi hotplug initialisation model

2007-07-30 Thread Matthew Wilcox
- Switch from scsi_register/scsi_unregister to scsi_host_alloc, scsi_add_host, scsi_scan_host and scsi_host_put. - Rename the scsi_host_template to advansys_template - Use module_init and module_exit instead of scsi_module.c - Remove protection against advansys_detect being called twice

[PATCH 21/23] advansys: Remove pci_slot_info

2007-07-30 Thread Matthew Wilcox
The driver kept a copy of the PCI config address; refer to the pci_dev associated with the card instead. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- drivers/scsi/advansys.c | 29 + 1 files changed, 9 insertions(+), 20 deletions(-) diff --git

[PATCH 7/23] advansys: Convert to PCI driver model

2007-07-30 Thread Matthew Wilcox
- Add a pci_driver interface for the PCI advansys devices (for ISA/EISA/VLB devices, we still call advansys_detect). - Many functions are converted from __init to __devinit to allow hotplug PCI to work. - Only keep devices found by advansys_detect in the asc_host list. - Rename

[PATCH 22/23] advansys: use memcpy instead of open-coded loop

2007-07-30 Thread Matthew Wilcox
Use memcpy to initialise eep_config instead of a loop. For AdvInitFrom38C1600EEP where we need to modify the default EEPROM configuration, do it after the loop, and do it using the structure definition, not by finding the right byte. I think it was wrong for big-endian machines. Also delete

[PATCH 23/23] advansys: Move documentation to Documentation/scsi

2007-07-30 Thread Matthew Wilcox
The 700+-line comment at the top of the advansys driver fits more comfortably in Documentation/scsi. Delete the sections on: - kernels supported - other files modified (obsolete) - source comments (obsolete) - tests to run - release history (that's what a VCS is for) - contacting connectcom

RE: [PATCH 3/3] mptsas: add SMP passthrough support via bsg

2007-07-30 Thread Moore, Eric
On Sunday, July 29, 2007 1:37 AM, FUJITA Tomonori wrote: Eric, can I get your ACK on this patch? One comment on the the patch: + if (!(ioc-sas_mgmt.status MPT_IOCTL_STATUS_COMMAND_GOOD)) { + printk(KERN_ERR %s: smp response invalid!\n, __FUNCTION__); + ret

Re: qla2xyz broken in current Linus tree

2007-07-30 Thread Seokmann Ju
Matthew Wilcox wrote: Reverting 281afe1947d855661754850de29d7530b2ff18dc fixes this panic: It turned out that one of changes didn't committed into local git tree that is being used to generate the patch. I'm sorry for creating a serious problem on the kernel. The patch that fixes the problem

[PATCH] qla2xxx: fix panic caused by previous patch

2007-07-30 Thread Seokmann Ju
As a fix to the issue initiated by the email thread 'qla2xyz broken in current Linus tree', Following patch should fix the problem. Thank you, Seokmann --- From d0355c3c61a12ce466c87d8ef953425d2b21725b Mon Sep 17 00:00:00 2001 From: Seokmann Ju [EMAIL PROTECTED] Date: Mon, 30 Jul 2007 13:12:17

Re: advansys update 2007-07-30

2007-07-30 Thread Jeff Garzik
Matthew Wilcox wrote: It's Monday morning, so time for another round of patches. I'd like to thank jejb for merging the Lindent patch into Linus' tree already. And I'd like to thank jgarzik for being indefatigable in his reviews. I'd also like to thank jgarzik for telling me about

Re: [PATCH] qla2xxx: fix panic caused by previous patch

2007-07-30 Thread Matthew Wilcox
On Mon, Jul 30, 2007 at 11:01:07AM -0700, Seokmann Ju wrote: As a fix to the issue initiated by the email thread 'qla2xyz broken in current Linus tree', Following patch should fix the problem. Confirmed. Thanks! -- Bill, look, we understand that you're interested in selling us this

Announcing new open source iSER (iSCSI/RDMA) target

2007-07-30 Thread Pete Wyckoff
We are releasing code to add support for iSCSI Extensions for RDMA (iSER) to the existing STGT user space SCSI target. It uses OpenFabrics libraries and kernel drivers to act as a SCSI target over RDMA-capable devices. The code has been tested against the existing Linux iSER initiator over

RE: [PATCH 0/5] mpt fusion: Add logging support

2007-07-30 Thread Moore, Eric
On Saturday, July 28, 2007 11:40 AM, James Bottomley wrote: I tell you what, let me just show you the actual patch. This allows you to write to the /sys/module/mptbase/parameters/mpt_debug_level and have it take effect in every ioc. ACK, If possible, I would like this patch thrown

[PATCH] dpt_i2o: convert to SCSI hotplug model

2007-07-30 Thread Matthew Wilcox
dpt_i2o: Convert to new SCSI driver model - Delete refereces to HOSTS_C - Switch to module_init/module_exit instead of detect/release - Don't pass around the host template and rename it to adpt_template - Switch from scsi_register/scsi_unregister to scsi_host_alloc, scsi_add_host,

Re: [PATCH] dpt_i2o: convert to SCSI hotplug model

2007-07-30 Thread Christoph Hellwig
On Mon, Jul 30, 2007 at 03:19:18PM -0600, Matthew Wilcox wrote: dpt_i2o: Convert to new SCSI driver model - Delete refereces to HOSTS_C - Switch to module_init/module_exit instead of detect/release - Don't pass around the host template and rename it to adpt_template - Switch from

Re: [PATCH] dpt_i2o: convert to SCSI hotplug model

2007-07-30 Thread Jeff Garzik
Matthew Wilcox wrote: dpt_i2o: Convert to new SCSI driver model - Delete refereces to HOSTS_C - Switch to module_init/module_exit instead of detect/release - Don't pass around the host template and rename it to adpt_template - Switch from scsi_register/scsi_unregister to scsi_host_alloc,

[2.6 patch] drivers/scsi/imm.c: fix check-after-use

2007-07-30 Thread Adrian Bunk
The Coverity checker spotted that we have already oops'ed if cmd was NULL. Since cmd being NULL doesn't seem to be possible at this point this patch removes the NULL check. Signed-off-by: Adrian Bunk [EMAIL PROTECTED] --- --- linux-2.6.23-rc1-mm1/drivers/scsi/imm.c.old 2007-07-30

RE: [PATCH 0/5] mpt fusion: Add logging support

2007-07-30 Thread FUJITA Tomonori
From: Moore, Eric [EMAIL PROTECTED] Subject: RE: [PATCH 0/5] mpt fusion: Add logging support Date: Mon, 30 Jul 2007 12:33:00 -0600 On Saturday, July 28, 2007 11:40 AM, James Bottomley wrote: I tell you what, let me just show you the actual patch. This allows you to write to the

[PATCH]: Revert ESP_BUS_TIMEOUT back down to 250

2007-07-30 Thread David Miller
James, please push upstream, thanks a lot! [SCSI] ESP: Drop ESP_BUS_TIMEOUT back down to 250 This reverts d73f5222a618a91452d41c29f5996ce3d9c63673 The bug that made us increase ESP_BUS_TIMEOUT to 275 turned out to be a memset bug on 32-bit sparc. It is better to put this back at the correct

RE: [PATCH 3/3] mptsas: add SMP passthrough support via bsg

2007-07-30 Thread FUJITA Tomonori
From: Moore, Eric [EMAIL PROTECTED] Subject: RE: [PATCH 3/3] mptsas: add SMP passthrough support via bsg Date: Mon, 30 Jul 2007 11:10:07 -0600 On Sunday, July 29, 2007 1:37 AM, FUJITA Tomonori wrote: Eric, can I get your ACK on this patch? One comment on the the patch: + if

Re: [PATCH 5/6] aha152x.c - Fix check_condition code-path

2007-07-30 Thread Randy Dunlap
On Sun, 29 Jul 2007 22:27:06 +0300 Boaz Harrosh wrote: check_condition code-path was similar but more complicated to Reset. It went like this: 1. extra space was allocated at aha152x_scdata for mirroring scsi_cmnd members. 2. At aha152x_internal_queue() every not

[PATCHSET/RFC] Refactor block layer to improve support for stacked devices.

2007-07-30 Thread Neil Brown
Hi, I have just sent a patch-set to linux-kernel that touches quite a number of block device drives, with particular relevance to md and dm. Rather than fill lots of peoples mailboxes multiple times (35 patches in the set), I only sent the full set to linux-kernel, and am just sending this