James Bottomley | 1 Jun 01:35 2005

[PATCH] update spi transport class so that u320 Domain Validation works

There are several extra things that have to be considered when running
Domain Validation on a u320 target (notably how you fall back).

Hopefully this should help us when someone adds this transport class to
aic79xx.

I've tested this on the lsi1030, so I know it works correctly up to
u320.

James

--- a/drivers/scsi/scsi_transport_spi.c
+++ b/drivers/scsi/scsi_transport_spi.c
 <at>  <at>  -669,6 +669,7  <at>  <at>  spi_dv_retrain(struct scsi_request *sreq
 {
 	struct spi_internal *i = to_spi_internal(sreq->sr_host->transportt);
 	struct scsi_device *sdev = sreq->sr_device;
+	struct scsi_target *starget = sdev->sdev_target;
 	int period = 0, prevperiod = 0; 
 	enum spi_compare_returns retval;

 <at>  <at>  -682,24 +683,40  <at>  <at>  spi_dv_retrain(struct scsi_request *sreq
 			break;

 		/* OK, retrain, fallback */
+		if (i->f->get_iu)
+			i->f->get_iu(starget);
+		if (i->f->get_qas)
+			i->f->get_qas(starget);
 		if (i->f->get_period)
(Continue reading)

Moore, Eric Dean | 1 Jun 18:47 2005

[PATCH 2/4] fusion - remove whitespace

mptfusion patch 2/4:

This patch can also be found at this URL:
ftp://ftp.lsil.com/HostAdapterDrivers/linux/Fusion-MPT/2.6-kernel/3.03.03/


Changelog:
* killing white space 

Signed-off-by: Eric.Moore<Eric.Moore <at> lsil.com>
Attachment (sas_upates2.patch): text/x-diff, 3254 bytes
Moore, Eric Dean | 1 Jun 18:47 2005

[PATCH 3/4] fusion - ioctl updates

mptfusion patch 3/4:

This patch can also be found at this URL:
ftp://ftp.lsil.com/HostAdapterDrivers/linux/Fusion-MPT/2.6-kernel/3.03.03/

Changelog:
* Please note: NO NEW IOCTLS ARE BEING ADDED !!!
* adding new define MPT_IOCTL_INTERFACE_SAS, and handle respective cases
* removed RAID related data from the _SpiCfgData struct, and moved to
new structure called _RaidCfgData
* The currently implemented IOCTL called MPT_COMMAND is the mpi 
firmware passthru ioctl.  This patch enables support for new firmware functions
when using the existing MPT_COMMAND ioctl. Here they are:
	{ MPI_FUNCTION_TOOLBOX, MPI_FUNCTION_SAS_IO_UNIT_CONTROL,
	MPI_FUNCTION_SMP_PASSTHROUGH, MPI_FUNCTION_SATA_PASSTHROUGH}

Signed-off-by: Eric.Moore<Eric.Moore <at> lsil.com>
Attachment (sas_upates3.patch): text/x-diff, 8 KiB
Moore, Eric Dean | 1 Jun 18:47 2005

[PATCH 1/4] fusion - sas support

mptfusion patch 1/4:

This patch can also be found at this URL:
ftp://ftp.lsil.com/HostAdapterDrivers/linux/Fusion-MPT/2.6-kernel/3.03.03/


Changelog:
* adding support for new module in Kconfig and Makefile
* adding mptsas.c module 

Signed-off-by: Eric.Moore<Eric.Moore <at> lsil.com>
Attachment (sas_upates1.patch): text/x-diff, 14 KiB
Moore, Eric Dean | 1 Jun 18:47 2005

[PATCH 4/4] fusion - Miscellanous updates, and bump driver version

mptfusion patch 4/4:

This patch can also be found at this URL:
ftp://ftp.lsil.com/HostAdapterDrivers/linux/Fusion-MPT/2.6-kernel/3.03.03/

Changelog:
* bump driver version to 3.03.03 
* SAS pci id recoginzation
* implemented new SAS functions for host page buffers - 
this feature is for firmware to allow usage of host physical memory 
for RAID related features, when memory is limited in controller memory space
* implemented new SAS funtions for clearing the persistant mappings - this can
occur if ioc facts config page says it needs clearing, or we could receive an
async event from firmware requesting it cleared when table is full, or we can
force clearing it thru a command line option when driver loads
* mpt_interrupt clean up code - main interrupt handler, also adding 0xdeadbeef
check for validating message frames being in use or freed.
* removed RAID related data from the _SpiCfgData struct, and moved to
new structure called _RaidCfgData, also created new struct _SasCfgData.
* MSI Suport - this is enabled thru command line option
* SAS fixes for firmware download boot
* Event Handling - updated debug strings with support for new SAS and RAID 
events
* Some changes in scsi completion routine - handling returning proper status
for underrun case 
* added target reset in mptscsih_slave_destroy function when scsi device is
being removed - clears the firmware outstanding io queue.
* eh entry points - cleanup, and added some more debuging info, added dumping
fw response code
* minor domain validation fixes.
(Continue reading)

Moore, Eric Dean | 1 Jun 18:47 2005

[PATCH 4/4] fusion - Miscellanous updates, and bump driver version

mptfusion patch 4/4:

This patch can also be found at this URL:
ftp://ftp.lsil.com/HostAdapterDrivers/linux/Fusion-MPT/2.6-kernel/3.03.03/

Changelog:
* bump driver version to 3.03.03 
* SAS pci id recoginzation
* implemented new SAS functions for host page buffers - 
this feature is for firmware to allow usage of host physical memory 
for RAID related features, when memory is limited in controller memory space
* implemented new SAS funtions for clearing the persistant mappings - this can
occur if ioc facts config page says it needs clearing, or we could receive an
async event from firmware requesting it cleared when table is full, or we can
force clearing it thru a command line option when driver loads
* mpt_interrupt clean up code - main interrupt handler, also adding 0xdeadbeef
check for validating message frames being in use or freed.
* removed RAID related data from the _SpiCfgData struct, and moved to
new structure called _RaidCfgData, also created new struct _SasCfgData.
* MSI Suport - this is enabled thru command line option
* SAS fixes for firmware download boot
* Event Handling - updated debug strings with support for new SAS and RAID 
events
* Some changes in scsi completion routine - handling returning proper status
for underrun case 
* added target reset in mptscsih_slave_destroy function when scsi device is
being removed - clears the firmware outstanding io queue.
* eh entry points - cleanup, and added some more debuging info, added dumping
fw response code
* minor domain validation fixes.
(Continue reading)

Moore, Eric Dean | 1 Jun 18:58 2005

[PATCH 4/4] fusion - misc upates and bump version - (resend)

mptfusion patch 4/4:

This patch can be found at this URL: (sas_upates4.patch)
ftp://ftp.lsil.com/HostAdapterDrivers/linux/Fusion-MPT/2.6-kernel/3.03.03/

Changelog:
* bump driver version to 3.03.03 
* SAS pci id recoginzation
* implemented new SAS functions for host page buffers - 
this feature is for firmware to allow usage of host physical memory 
for RAID related features, when memory is limited in controller memory space
* implemented new SAS funtions for clearing the persistant mappings - this can
occur if ioc facts config page says it needs clearing, or we could receive an
async event from firmware requesting it cleared when table is full, or we can
force clearing it thru a command line option when driver loads
* mpt_interrupt clean up code - main interrupt handler, also adding 0xdeadbeef
check for validating message frames being in use or freed.
* removed RAID related data from the _SpiCfgData struct, and moved to
new structure called _RaidCfgData, also created new struct _SasCfgData.
* MSI Suport - this is enabled thru command line option
* SAS fixes for firmware download boot
* Event Handling - updated debug strings with support for new SAS and RAID 
events
* Some changes in scsi completion routine - handling returning proper status
for underrun case 
* added target reset in mptscsih_slave_destroy function when scsi device is
being removed - clears the firmware outstanding io queue.
* eh entry points - cleanup, and added some more debuging info, added dumping
fw response code
* minor domain validation fixes.
(Continue reading)

Mark Haverkamp | 1 Jun 19:24 2005

[PATCH] 2.6 aacraid: Another updated patch for aacraid sysfs files

James,
The update patch that I sent last week applied to the original sysfs
patch that was in the scsi-misc-2.6 tree.  I see that it was removed.
Here is a patch that should apply to the current scsi-misc-2.6 tree.
--

This patch adds some files into the /sys/class/scsi_host/hostN
directories for aacraid adapters:

model
vendor
hba_kernel_version
hba_monitor_version
hba_bios_version
serial_number

Signed-off-by: Mark Haverkamp <markh <at> osdl.org>

diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
 <at>  <at>  -533,6 +533,134  <at>  <at>  static long aac_compat_cfg_ioctl(struct 
 }
 #endif

+static ssize_t aac_show_model(struct class_device *class_dev,
+		char *buf)
+{
+	struct aac_dev *dev = (struct aac_dev*)class_to_shost(class_dev)->hostdata;
+	int len;
(Continue reading)

James Bottomley | 1 Jun 19:35 2005

Re: [PATCH 1/4] fusion - sas support

On Wed, 2005-06-01 at 10:47 -0600, Moore, Eric Dean wrote:
> Changelog:
> * adding support for new module in Kconfig and Makefile
> * adding mptsas.c module 

No to this one until you and Adaptec (and any other interested parties)
get the sas transport class sorted out and in use ... at least in
embryo.  I won't hold the drivers up while the fine details and code
location is sorted out, but we need to get at least the structure in
place.

Additionally:

> +static struct device_attribute mptsas_queue_depth_attr = {
> +       .attr = {
> +               .name =         "queue_depth",
> +               .mode =         S_IWUSR,
> +       },
> +       .store = mptscsih_store_queue_depth,
> +};

This can all be done with the change_queue_depth host template API.

There are also a suspicious lot of SPI strings in the SAS driver (are
these cut and paste issues?):

> +       .name                           = "MPT SPI Host",

> +       mptsasDoneCtx = mpt_register(mptscsih_io_done, MPTSPI_DRIVER);
> +       mptsasTaskCtx = mpt_register(mptscsih_taskmgmt_complete,
(Continue reading)

Andrew Vasquez | 1 Jun 20:48 2005

Re: 2.6.12-rc5: sleeping function called from invalid context (qla2xxx/scsi_transport_fc?)

On Mon, 30 May 2005, Andrew Morton wrote:

> Ake.Sandgren <at> hpc2n.umu.se (Ake) wrote:
> >
> > Hi!
> > I got the following when i pulled the FC cable from one of my qla2312
> > cards.
> > This is a 2.6.12-rc5 kernel (with udm1 patches for 2.6.12-rc2)
> > 
> > 
> > May 30 14:12:45 ican-i kernel: [ 1109.864830] qla2300 0000:03:09.0: LOOP DOWN detected.
> > May 30 14:12:45 ican-i kernel: [ 1109.875948] Debug: sleeping function called from invalid context at include/linux/rwsem.h:43
> > May 30 14:12:45 ican-i kernel: [ 1109.894492] in_atomic():1, irqs_disabled():1
> > May 30 14:12:45 ican-i kernel: [ 1109.903864]  [dump_stack+30/48] dump_stack+0x1e/0x30
> > May 30 14:12:45 ican-i kernel: [ 1109.913648]  [__might_sleep+167/176] __might_sleep+0xa7/0xb0
> > May 30 14:12:45 ican-i kernel: [ 1109.924003]  [device_for_each_child+35/144] device_for_each_child+0x23/0x90
> > May 30 14:12:45 ican-i kernel: [ 1109.935865]  [pg0+944279047/1069622272]
scsi_target_block+0x57/0x60 [scsi_mod]
> > May 30 14:12:45 ican-i kernel: [ 1109.949142]  [pg0+944996009/1069622272]
fc_remote_port_block+0x39/0x60 [scsi_transport_fc]
...
> 
> This was reported (and anaylsed) a month ago:
> 
> 	http://lkml.org/lkml/2005/4/29/82
> 
> I don't know if anything has been done about it yet though?

Greg,

(Continue reading)


Gmane