]> www.infradead.org Git - users/jedix/linux-maple.git/log
users/jedix/linux-maple.git
13 years ago[SCSI] hpsa: set max sectors instead of taking the default
Stephen M. Cameron [Wed, 26 Oct 2011 21:20:53 +0000 (16:20 -0500)]
[SCSI] hpsa: set max sectors instead of taking the default

Set the max hardware sectors in the SCSI host template to 8192
to allow for larger i/o's (8192 is the same limit the cciss
driver currently has.)

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit c0d6a4d17b3848750b0285861b7a807811a0cfa6)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: detect controller lockup
Stephen M. Cameron [Wed, 26 Oct 2011 21:22:04 +0000 (16:22 -0500)]
[SCSI] hpsa: detect controller lockup

When controller lockup condition is detected,
we should fail all outstanding commands and disable
the controller.  This will enable multipath solutions
to recover gracefully.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit a0c124137a40fc22730ae87caf17e821f2dce1ed)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: remove unused busy_initializing and busy_scanning
Stephen M. Cameron [Wed, 26 Oct 2011 21:20:58 +0000 (16:20 -0500)]
[SCSI] hpsa: remove unused busy_initializing and busy_scanning

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 03ab31f4c14f259bfa160543c83dbfd93d6fb3e2)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years agocciss: fix flush cache transfer length
Stephen M. Cameron [Mon, 28 Nov 2011 19:12:05 +0000 (20:12 +0100)]
cciss: fix flush cache transfer length

We weren't filling in the transfer length of the
flush cache command (it transfers 4 bytes of zeroes).
Firmware didn't seem to be bothered by this, but it
should be fixed.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 59bd71a81b66990564eac69aedd28ad87a2c81f4)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years agocciss: auto engage SCSI mid layer at driver load time
Stephen M. Cameron [Wed, 16 Nov 2011 08:21:49 +0000 (09:21 +0100)]
cciss: auto engage SCSI mid layer at driver load time

A long time ago, probably in 2002, one of the distros, or maybe more than
one, loaded block drivers prior to loading the SCSI mid layer.  This meant
that the cciss driver, being a block driver, could not engage the SCSI mid
layer at init time without panicking, and relied on being poked by a
userland program after the system was up (and the SCSI mid layer was
therefore present) to engage the SCSI mid layer.

This is no longer the case, and cciss can safely rely on the SCSI mid
layer being present at init time and engage the SCSI mid layer straight
away.  This means that users will see their tape drives and medium
changers at driver load time without need for a script in /etc/rc.d that
does this:

for x in /proc/driver/cciss/cciss*
do
echo "engage scsi" > $x
done

However, if no tape drives or medium changers are detected, the SCSI mid
layer will not be engaged.  If a tape drive or medium change is later
hot-added to the system it will then be necessary to use the above script
or similar for the device(s) to be acceesible.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 0007a4c90a11a5371c8b3f80b220fa402a399189)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years agoThe Windows driver .inf disables ASPM on all cciss devices. Do the same.
Matthew Garrett [Fri, 11 Nov 2011 21:05:54 +0000 (22:05 +0100)]
The Windows driver .inf disables ASPM on all cciss devices. Do the same.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: iss_storagedev@hp.com
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 193733585692301f38d489b8ad8724c2f88349c0)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years agocciss: add transport mode attribute to sys
Joe Handzik [Mon, 8 Aug 2011 09:40:17 +0000 (11:40 +0200)]
cciss: add transport mode attribute to sys

Signed-off-by: Joseph Handzik <joseph.t.handzik@beardog.cce.hp.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
(cherry picked from commit f963d270cb7bbb8eeb57901d02b22a493e664fd2)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years agocciss: Adds simple mode functionality
Joseph Handzik [Mon, 8 Aug 2011 09:40:15 +0000 (11:40 +0200)]
cciss: Adds simple mode functionality

Signed-off-by: Joseph Handzik <joseph.t.handzik@beardog.cce.hp.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
(cherry picked from commit 13049537007dee73a76f0a30fcbc24d02c6fa9e4)

Conflicts:

drivers/block/cciss.c

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: update device attributes when they change
Scott Teel [Thu, 19 Jan 2012 20:01:30 +0000 (14:01 -0600)]
[SCSI] hpsa: update device attributes when they change

Certain types of changes to devices should not be interpreted as a device
change that would cause the device to be removed and re-added.  These include
RAID level and Firmware revision changes.  However, these attribute changes DO
need to be reflected in the controller info structure's dev structure list, so
that sysfs and /proc info files for the devices will reflect the new values.

Signed-off-by: Scott Teel <scott.stacy.teel@hp.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit bd9244f7b9508a5945dcbd015db334110a9cdecf)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: improve naming on external target device functions
Scott Teel [Thu, 19 Jan 2012 20:01:25 +0000 (14:01 -0600)]
[SCSI] hpsa: improve naming on external target device functions

Reduce confusion and inaccuracy caused by dated naming of vars and functions
referring to external target devices.

CURRENT NAMING:                PROPOSED NAMING:

"MSA2xxx devices"              "external target devices"
msa2xxx_model                  ext_target_model
is_msa2xxx                     is_ext_target
add_msa2xxx_enclosure          add_ext_target_dev
nmsa2xxx_enclosures            n_ext_target_devs

Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 4f4eb9f1d8f8eb91d0dd486deafd4800b425f289)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: eliminate 8 external target limitation
Scott Teel [Thu, 19 Jan 2012 20:01:19 +0000 (14:01 -0600)]
[SCSI] hpsa: eliminate 8 external target limitation

Driver limits SAS external target IDs to range 1-8.
Need to increase limit and clean up overlapping concepts of targets and paths
in the code.

There are several defined constants that control this:
HPSA_MAX_TARGETS_PER_CTLR     16
MAX_MSA2XXX_ENCLOSURES        32
HPSA_MAX_PATHS                8

We can condense this to one constant:
MAX_EXT_TARGETS               32

SAS switches allow for 8 connections, and there is capacity for 4 switches per
enclosure in largest blade enclosure type.

Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit aca4a5200dc2b0835f5477d6609a05b0401a91f3)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: fix potential array overflow in hpsa_update_scsi_devices
Scott Teel [Wed, 26 Oct 2011 21:21:12 +0000 (16:21 -0500)]
[SCSI] hpsa: fix potential array overflow in hpsa_update_scsi_devices

The currentsd[] array in hpsa_update_scsi_devices had room for
256 devices.  The code was iterating over however many physical
and logical devices plus an additional number of possible external
MSA2XXX controllers, which together could potentially exceed 256.

We increased the size of the currentsd array to 1024 + 1024 + 32 + 1
elements to reflect a reasonable maximum possible number of devices
which might be encountered.  We also don't just walk off the end
of the array if the array controller reports more devices than we
are prepared to handle, we just ignore the excessive devices.

Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit b7ec021fe6fe979dbd4e62604a4942f964b12864)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: rename HPSA_MAX_SCSI_DEVS_PER_HBA
Scott Teel [Wed, 26 Oct 2011 21:21:07 +0000 (16:21 -0500)]
[SCSI] hpsa: rename HPSA_MAX_SCSI_DEVS_PER_HBA

Rename HPSA_MAX_SCSI_DEVS_PER_HBA to HPSA_MAX_DEVICES

Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit cfe5badcab2e993e71ebebbc07c21c270e5580c0)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: refactor hpsa_figure_bus_target_lun
Stephen M. Cameron [Thu, 19 Jan 2012 20:01:14 +0000 (14:01 -0600)]
[SCSI] hpsa: refactor hpsa_figure_bus_target_lun

It should call hpsa_set_bus_target_lun rather
than individually setting bus, target and lun.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 1f310bde4631185d4462dbd544b3fa82513cdb6f)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: make target and lun match what SCSI REPORT LUNs returns
Stephen M. Cameron [Thu, 19 Jan 2012 20:01:09 +0000 (14:01 -0600)]
[SCSI] hpsa: make target and lun match what SCSI REPORT LUNs returns

Some distros have a "rescan-scsi-bus.sh" script which depends on
SCSI REPORT LUNs not reporting something different than what the
driver tells the kernel, even if the driver uses scan_start and
scan_finished methods of the SCSI host template to override the
usual SCSI midlayer discovery code.  Previously, 1 was added to
the LUN to make room to insert the RAID controller device at
LUN 0.  Now, the RAID controller is moved to bus 3, and 1 is no
longer added to the LUN.  However, SCSI REPORT LUNS on Smart Array
doesn't report physical devices like tape drives or auto-loaders
as it turns out, so those particular device types still won't match.
Generally the logical drives are reported first however, so at
least those should match.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit bbef6c0ce8046114c07f5b6a62ce6a239503dd61)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[SCSI] hpsa: Fix problem with MSA2xxx devices
Stephen M. Cameron [Thu, 19 Jan 2012 20:01:04 +0000 (14:01 -0600)]
[SCSI] hpsa: Fix problem with MSA2xxx devices

Upgraded firmware on Smart Array P7xx (and some others) made them show up as
SCSI revision 5 devices and this caused the driver to fail to map MSA2xxx
logical drives to the correct bus/target/lun.  A symptom of this would be that
the target ID of the logical drives as presented by the external storage array
is ignored, and all such logical drives are assigned to target zero,
differentiated only by LUN.  Some multipath software reportedly does not deal
well with this behavior, failing to recognize different paths to the same
device as such.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 9bc3711cbb67ac620bf09b4a147cbab45b2c36c0)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years ago[scsi] hpsa: Add IRQF_SHARED back in for the non-MSI(X) interrupt handler
Joe Jin [Tue, 15 May 2012 06:41:33 +0000 (14:41 +0800)]
[scsi] hpsa: Add IRQF_SHARED back in for the non-MSI(X) interrupt handler

Add IRQF_SHARED back in for the non-MSI(X) interrupt handler.
This backport from RHEL6U3.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
13 years agoSPEC: v2.6.39-200.9.0
Maxim Uvarov [Fri, 11 May 2012 00:11:09 +0000 (17:11 -0700)]
SPEC: v2.6.39-200.9.0

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years ago[SCSI] scsi_dh_rdac: Fix for unbalanced reference count
Moger, Babu [Thu, 2 Feb 2012 15:21:54 +0000 (15:21 +0000)]
[SCSI] scsi_dh_rdac: Fix for unbalanced reference count

Orabug: 14059970
This patch fixes an unbalanced refcount issue.

Elevating the lock for both kref_put and also for controller node deletion.
Previously, controller deletion was protected but the not the kref_put. This
was causing the other thread to pick up the controller structure which was
already kref'd zero.

This was causing the following WARN_ON and also sometimes panic.

WARNING: at lib/kref.c:43 kref_get+0x2d/0x30() (Not tainted)
Hardware name: IBM System x3655 -[7985AC1]-
Modules linked in: fuse scsi_dh_rdac autofs4 nfs lockd fscache nfs_acl
auth_rpcgss sunrpc 8021q garp stp llc ipv6 ib_srp(U) scsi_transport_srp
scsi_tgt ib_cm(U) ib_sa(U) ib_uverbs(U) ib_umad(U) mlx4_ib(U) mlx4_core(U)
ib_mthca(U) ib_mad(U) ib_core(U) dm_mirror dm_region_hash dm_log dm_round_robin
dm_multipath uinput bnx2 ses enclosure sg ibmpex ibmaem ipmi_msghandler
serio_raw k8temp hwmon amd64_edac_mod edac_core edac_mce_amd shpchp i2c_piix4
ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_t10dif sata_svw pata_acpi ata_generic
pata_serverworks aacraid radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core
dm_mod [last unloaded: freq_table]
Pid: 13735, comm: srp_daemon Not tainted 2.6.32-71.el6.x86_64 #1
Call Trace:
[<ffffffff8106b857>] warn_slowpath_common+0x87/0xc0
[<ffffffff8106b8aa>] warn_slowpath_null+0x1a/0x20
[<ffffffff8125c39d>] kref_get+0x2d/0x30
[<ffffffffa01b4029>] rdac_bus_attach+0x459/0x580 [scsi_dh_rdac]
[<ffffffff8135232a>] scsi_dh_handler_attach+0x2a/0x80
[<ffffffff81352c7b>] scsi_dh_notifier+0x9b/0xa0
[<ffffffff814cd7a5>] notifier_call_chain+0x55/0x80
[<ffffffff8109711a>] __blocking_notifier_call_chain+0x5a/0x80
[<ffffffff81097156>] blocking_notifier_call_chain+0x16/0x20
[<ffffffff8132bec5>] device_add+0x515/0x640
[<ffffffff813329e4>] ? attribute_container_device_trigger+0xc4/0xe0
[<ffffffff8134f659>] scsi_sysfs_add_sdev+0x89/0x2c0
[<ffffffff8134d096>] scsi_probe_and_add_lun+0xea6/0xed0
[<ffffffff8134beb2>] ? scsi_alloc_target+0x292/0x2d0
[<ffffffff8134d1e1>] __scsi_scan_target+0x121/0x750
[<ffffffff811df806>] ? sysfs_create_file+0x26/0x30
[<ffffffff8132b759>] ? device_create_file+0x19/0x20
[<ffffffff81332838>] ? attribute_container_add_attrs+0x78/0x90
[<ffffffff814b008c>] ? klist_next+0x4c/0xf0
[<ffffffff81332e30>] ? transport_configure+0x0/0x20
[<ffffffff813329e4>] ? attribute_container_device_trigger+0xc4/0xe0
[<ffffffff8134df40>] scsi_scan_target+0xd0/0xe0
[<ffffffffa02f053a>] srp_create_target+0x75a/0x890 [ib_srp]
[<ffffffff8132a130>] dev_attr_store+0x20/0x30
[<ffffffff811df145>] sysfs_write_file+0xe5/0x170
[<ffffffff8116c818>] vfs_write+0xb8/0x1a0
[<ffffffff810d40a2>] ? audit_syscall_entry+0x272/0x2a0
[<ffffffff8116d251>] sys_write+0x51/0x90
[<ffffffff81013172>] system_call_fastpath+0x16/0x1b

Signed-off-by: Babu Moger <babu.moger@netapp.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
13 years ago[SCSI] scsi_dh_rdac: Adding couple more vendor product ids
Moger, Babu [Fri, 2 Sep 2011 15:21:17 +0000 (11:21 -0400)]
[SCSI] scsi_dh_rdac: Adding couple more vendor product ids

Orabug: 14059970
This patch adds couple more Vendor/Product IDs for RDAC.. There are no
functional changes.

Signed-off-by: Babu Moger <babu.moger@netapp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
13 years ago[SCSI] dh_rdac: Associate HBA and storage in rdac_controller to support partitions...
Chandra Seetharaman [Wed, 27 Jul 2011 18:22:56 +0000 (11:22 -0700)]
[SCSI] dh_rdac: Associate HBA and storage in rdac_controller to support partitions in storage

Orabug: 14059970
rdac hardware handler assumes that there is one-to-one relation ship
between the host and the controller w.r.t lun.  IOW, it does not
support "multiple storage partitions" within a storage.

Example:
HBA1 and HBA2 see lun 0 and 1 in storage A (1)
HBA3 and HBA4 see lun 0 and 1 in storage A (2)
HBA5 and HBA6 see lun 0 and 1 in storage A (3)

luns 0 and 1 in (1), (2) and (3) are totally different.

But, rdac handler treats the lun 0s (and lun 1s) as the same when
sending a mode select to the controller, which is wrong.

This patch makes the rdac hardware handler associate HBA and the
storage w.r.t lun (and not the host itself).

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
13 years ago[SCSI] dh_rdac: Use WWID from C8 page instead of Subsystem id from C4 page to identif...
Chandra Seetharaman [Wed, 20 Jul 2011 21:18:56 +0000 (14:18 -0700)]
[SCSI] dh_rdac: Use WWID from C8 page instead of Subsystem id from C4 page to identify storage

Orabug: 14059970
rdac hardware handler uses "Subsystem Identifier" from C4 inquiry page
to uniquely identify a storage. The problem with that is that if any
any of the bytes are non-ascii, subsys_id will all be spaces (hex
0x20). This creates lot of problems especially when there are multiple
rdac storages are connected to the server.

Use "Storage Array Unique Identifier" from C8 inquiry page, which is the
world wide unique identifier for the storage array, to uniquely identify
the storage.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
13 years agokernel config: turn on sxge and sxgevf drivers
Maxim Uvarov [Thu, 10 May 2012 21:22:58 +0000 (14:22 -0700)]
kernel config: turn on sxge and sxgevf drivers

Signei-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agosxge/sxgevf: add new driver
Maxim Uvarov [Thu, 10 May 2012 20:28:36 +0000 (13:28 -0700)]
sxge/sxgevf: add new driver

Orabug: 13444150
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agobe2iscsi: adding functionality to change network settings using iscsiadm
root [Wed, 2 May 2012 14:36:21 +0000 (20:06 +0530)]
be2iscsi: adding functionality to change network settings using iscsiadm

 This patch allows iscsiadm to set/ delete static IP and enable /disable
 DHCP.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: Adding bsg interface for be2iscsi
root [Wed, 2 May 2012 14:34:18 +0000 (20:04 +0530)]
be2iscsi: Adding bsg interface for be2iscsi

 This patch enables bsg interface for the be2iscsi driver

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: Get Initiator Name for the iSCSI_Host
root [Wed, 2 May 2012 14:29:13 +0000 (19:59 +0530)]
be2iscsi: Get Initiator Name for the iSCSI_Host

 Implement the ISCSI_HOST_PARAM_INITIATOR_NAME for .get_host_param

Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: Return async handle of unknown opcode to free list.
root [Wed, 2 May 2012 14:26:56 +0000 (19:56 +0530)]
be2iscsi: Return async handle of unknown opcode to free list.

 The async handle corresponding to unknown Opcode was not freed
 earlier. This code does the fix for that.

Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: Check ASYNC PDU Handle corresponds to HDR/DATA Handle
root [Wed, 2 May 2012 14:25:07 +0000 (19:55 +0530)]
be2iscsi: Check ASYNC PDU Handle corresponds to HDR/DATA Handle

 For each ASYNC PDU received there is an HDR and DATA handle for it.
 There will be only 1 HDR ASYNC Handle, but DATA Handle can be more
 than 1 for each ASYNC PDU received. Checking if the ASYNC Handle
 correspongs to HDR or DATA while returning the Handle to the free list.
 hwi_free_async_msg just return the handles to the free list. No return
 values are needed so changing the return type to void.

Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Bump the driver Version
root [Wed, 2 May 2012 14:21:56 +0000 (19:51 +0530)]
be2iscsi:Bump the driver Version

 This patch bumps the driver version
Signed-off-by: Minh Tran <MinhDuc.Tran@Emulex.Com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: Update in Copyright information
root [Wed, 2 May 2012 14:19:51 +0000 (19:49 +0530)]
be2iscsi: Update in Copyright information

 change from Serverengines to Emulex

Signed-off-by: Minh Tran <MinhDuc.Tran@Emulex.Com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Fix the function return values.
root [Wed, 2 May 2012 14:17:43 +0000 (19:47 +0530)]
be2iscsi:Fix the function return values.

 This patch fixes the return value

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Code cleanup, removing the goto statement
root [Wed, 2 May 2012 14:16:38 +0000 (19:46 +0530)]
be2iscsi:Code cleanup, removing the goto statement

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Fix double free of MCCQ info memory.
root [Wed, 2 May 2012 14:14:51 +0000 (19:44 +0530)]
be2iscsi:Fix double free of MCCQ info memory.

 In case of MCC_Q creation failed, the MCCQ info memory is freed
 from be_mcc_queues_destroy and be_mcc_queues_create. This caused
 kernel to panic because of double free.

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Set num_cpu = 1 if pci_enable_msix fails
root [Wed, 2 May 2012 14:13:21 +0000 (19:43 +0530)]
be2iscsi:Set num_cpu = 1 if pci_enable_msix fails

 This patch sets the num_cpu to 1 if  msix not supported
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Fix typo function name mismatch
root [Wed, 2 May 2012 14:11:06 +0000 (19:41 +0530)]
be2iscsi:Fix typo function name mismatch

Signed-off-by: Minh Tran <MinhDuc.Tran@Emulex.Com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi:Freeing of WRB and SGL Handle in cleanup task
root [Wed, 2 May 2012 14:09:28 +0000 (19:39 +0530)]
be2iscsi:Freeing of WRB and SGL Handle in cleanup task

 The WRB and SGL Handle allocated for Login task were not freed
 back to the pool after the login process was done. This code
 releases the WRB and SGL Handle after the login process.

 v2:
 - Fix up locking so bh calls are not done when not needed.
 - Make beiscsi_cleanup_task static.

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: WRB Initialization and Failure code path change
root [Wed, 2 May 2012 14:07:17 +0000 (19:37 +0530)]
be2iscsi: WRB Initialization and Failure code path change

 Removing code duplication during the WRB_Handle and WRB
 initialization.
 Added memory allocation failure handling code during WRB
 initialization.

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: Fix in the Asynchronous Code Path
root [Wed, 2 May 2012 14:01:03 +0000 (19:31 +0530)]
be2iscsi: Fix in the Asynchronous Code Path

 Set the ASYNC PDU Handle pBuffer for Data ring with the VA/PA
 of the allocated memory for it.
 To get the correct ASYNC PDY Handle iterate the list and compare
 the PA set during initialization with the passed PHY Address.
 The buffer_size and num_enteries are common for HDR and Data ring

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: root <root@localhost.(none)>
13 years agobe2iscsi: cleanup a min_t() call
root [Wed, 2 May 2012 13:58:04 +0000 (19:28 +0530)]
be2iscsi: cleanup a min_t() call

 "sense_len" was declared as int type but actually it only stores a
 u16 value that comes from hardware.  The cast to u16 in min_t()
 confuses static analysis because it truncates the int to u16 so I've
 fixed the declaration to reflect that "sense_len" is just a u16.

 Also there was a call to cpu_to_be16() which I've changed to
 be16_to_cpu().  The functions are equivalent, but obviously the
 hardware is big endian and we're doing the min_t() comparison on CPU
 endian values.

 This whole patch is just a cleanup and doesn't affect how the code
 works.

 upstream commit id : 4053a4be525d3441cad6cd1ae207177f03eb9ce7
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: root <root@localhost.(none)>
13 years agoqlge: driver update to v1.0.0.30
Maxim Uvarov [Thu, 10 May 2012 00:48:52 +0000 (17:48 -0700)]
qlge: driver update to v1.0.0.30

Orabug: 14045380
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agonetxen: driver update to v4.0.78
Maxim Uvarov [Thu, 10 May 2012 00:41:15 +0000 (17:41 -0700)]
netxen: driver update to v4.0.78

Orabug: 14045367
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agoqlcnic: driver update to v5.0.28.1
Maxim Uvarov [Thu, 10 May 2012 00:37:24 +0000 (17:37 -0700)]
qlcnic: driver update to v5.0.28.1

Orabug: 14055720
Update qlcnic driver to v5.0.28.1
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agoSPEC: v2.6.39-200.8.0
Maxim Uvarov [Wed, 9 May 2012 22:27:45 +0000 (15:27 -0700)]
SPEC: v2.6.39-200.8.0

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agoMerge branch 'uek2-merge' of git://ca-git.us.oracle.com/linux-konrad-public into...
Maxim Uvarov [Wed, 9 May 2012 18:49:36 +0000 (11:49 -0700)]
Merge branch 'uek2-merge' of git://ca-git.us.oracle.com/linux-konrad-public into uek-2.6.39-200

13 years agoSPEC: v2.6.39-200.7.0
Maxim Uvarov [Wed, 9 May 2012 18:11:10 +0000 (11:11 -0700)]
SPEC: v2.6.39-200.7.0

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
13 years agoRevert "x86/ioapic: Add register level checks to detect bogus io-apic entries"
Maxim Uvarov [Wed, 9 May 2012 17:51:48 +0000 (10:51 -0700)]
Revert "x86/ioapic: Add register level checks to detect bogus io-apic entries"

This reverts commit 42af242e5687c0522154800c3bbd6d0a73a35d2a.

13 years agoqla2xxx: Updated the driver version to 8.04.00.03.39.0-k.
Giridhar Malavali [Thu, 3 May 2012 07:53:34 +0000 (13:23 +0530)]
qla2xxx: Updated the driver version to 8.04.00.03.39.0-k.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Don't attach driver with function.
Giridhar Malavali [Thu, 3 May 2012 07:51:50 +0000 (13:21 +0530)]
qla2xxx: Don't attach driver with function.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Proper detection of firmware abort error code for ISP82xx.
Giridhar Malavali [Wed, 11 Apr 2012 07:02:51 +0000 (12:32 +0530)]
qla2xxx: Proper detection of firmware abort error code for ISP82xx.

JIRA Key: V2632FC-160

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Fix typo in bus-reset handler.
Andrew Vasquez [Wed, 11 Apr 2012 06:59:09 +0000 (12:29 +0530)]
qla2xxx: Fix typo in bus-reset handler.

Both the target-id and LUN are munged in the original printk().

JIRA Key: V2632FC-161

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Correct link-reset regressions introduced during 83xx porting.
Andrew Vasquez [Mon, 30 Jan 2012 19:12:40 +0000 (11:12 -0800)]
qla2xxx: Correct link-reset regressions introduced during 83xx porting.

- flags.enable_lip_reset should not be set for 24xx/81xx (in
  corresponding nvram_config() functions).

- ISP2031 is *not* a CNA, remove comparison check against that
  ISP in qla2x00_lip_reset().

JIRA Key: V2632FC-159

13 years agoqla2xxx: Handle device mapping changes due to device logout.
Arun Easi [Wed, 11 Apr 2012 06:55:38 +0000 (12:25 +0530)]
qla2xxx: Handle device mapping changes due to device logout.

A device logout sent in the delete path of a fcport would clear the
port handle binding inside the firmware. This could lead to queued
work items for the fcport, if any, getting incorrect results. This
patch fixes the issue by checking for device name changes after a
call to get port database.

JIRA Key: V2632FC-131

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Avoid invalid request queue dereference for bad response packets.
Arun Easi [Wed, 11 Apr 2012 06:38:48 +0000 (12:08 +0530)]
qla2xxx: Avoid invalid request queue dereference for bad response packets.

JIRA Key: V2632FC-144

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Stop iteration after first failure in *_id functions.
Arun Easi [Thu, 19 Jan 2012 20:59:41 +0000 (12:59 -0800)]
qla2xxx: Stop iteration after first failure in *_id functions.

JIRA Key: V2632FC-153

13 years agoqla2xxx: Fix incorrect register access in qla2x00_start_iocbs().
Arun Easi [Sat, 14 Jan 2012 00:21:43 +0000 (05:51 +0530)]
qla2xxx: Fix incorrect register access in qla2x00_start_iocbs().

JIRA Key: V2632FC-147

13 years agoqla2xxx: Fix to update proper command completion upon command retries.
Andrew Vasquez [Mon, 16 Jan 2012 19:52:25 +0000 (11:52 -0800)]
qla2xxx: Fix to update proper command completion upon command retries.

Pass right completion om processing continuation status IOCB.

JIRA Key: V2632FC-149

13 years agoqla2xxx: Hard code the number of loop entries at 128.
Chad Dupuis [Fri, 13 Jan 2012 15:08:35 +0000 (09:08 -0600)]
qla2xxx: Hard code the number of loop entries at 128.

Do not use ha->max_fibre_devices in loop topology since the maximum number of
entries will always be 128 and so we don't have to worry about changing
ha->max_fibre_devices back.

JIRA Key: V2632FC-146

13 years agoRevert "qla2xxx: Return N-port id to firmware on logout."
Giridhar Malavali [Wed, 11 Apr 2012 06:14:16 +0000 (11:44 +0530)]
Revert "qla2xxx: Return N-port id to firmware on logout."

This reverts commit b6c09482a0c1f7aaa3f84fb83908f131ae7a3736.

13 years agoqla2xxx: Reference proper scsi_qla_host structure for processing non-scsi SRB commands.
Giridhar Malavali [Sat, 24 Dec 2011 06:44:16 +0000 (22:44 -0800)]
qla2xxx: Reference proper scsi_qla_host structure for processing non-scsi SRB commands.

JIRA Key: V2632FC-137

13 years agoqla2xxx: Fix wrong decrement, null sp access.
Arun Easi [Tue, 20 Dec 2011 17:48:04 +0000 (09:48 -0800)]
qla2xxx: Fix wrong decrement, null sp access.

JIRA Key: V2632FC-135

13 years agoqla2xxx: Further consolidation of SRB related code changes.
Giridhar Malavali [Wed, 11 Apr 2012 06:03:27 +0000 (11:33 +0530)]
qla2xxx: Further consolidation of SRB related code changes.

JIRA Key: V2632FC-134

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Complete mailbox command timedout to avoid initialization failures during...
Giridhar Malavali [Wed, 14 Dec 2011 01:17:47 +0000 (17:17 -0800)]
qla2xxx: Complete mailbox command timedout to avoid initialization failures during next reset cycle.

Complete the mailbox command timed out before initiating another abort cycle
to recover so that mailbox commands issued during next reset cycle don't fail
due to pending mailbox access timeout.

JIRA Key: V2632FC-122

13 years agoqla2xxx: Add ha->max_fibre_devices to keep track of the maximum number of targets.
Chad Dupuis [Tue, 10 Apr 2012 11:54:05 +0000 (17:24 +0530)]
qla2xxx: Add ha->max_fibre_devices to keep track of the maximum number of targets.

Add a field to the qla_hw_data struct to allow us to set the maximum number of
fabric devices on a per adapter basis based on ISP type.

JIRA Key: V2632FC-125

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Cache swl during fabric discovery.
Andrew Vasquez [Tue, 10 Apr 2012 11:52:14 +0000 (17:22 +0530)]
qla2xxx: Cache swl during fabric discovery.

Rather than continuously allocating and freeing swl within the discovery
process, simply pre-allocate it the first time that it's needed, cache it
through the rest of the lifecycle of the driver and free it at module unload.

JIRA Key: V2632FC-124

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Remove EDC sysfs interface.
Joe Carnuccio [Tue, 10 Apr 2012 11:50:36 +0000 (17:20 +0530)]
qla2xxx: Remove EDC sysfs interface.

Since the new firmware periodically resets the EDC, the EDC is now
not able to be flashed while the firmware is running, so the user
applications must be prevented from flashing the EDC, and this is
achieved by removing the EDC sysfs interface.

JIRA Key: V2632FC-112

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Perform firmware dump procedure on mailbox command timeout.
Chad Dupuis [Wed, 7 Dec 2011 21:51:34 +0000 (15:51 -0600)]
qla2xxx: Perform firmware dump procedure on mailbox command timeout.

JIRA Key: V2632FC-39

13 years agoqla2xxx: Change the log message when previous dump is available to retrieve for ISP82xx.
Giridhar Malavali [Thu, 1 Dec 2011 18:31:01 +0000 (12:31 -0600)]
qla2xxx: Change the log message when previous dump is available to retrieve for ISP82xx.

JIRA Key: V2632FC-103

13 years agoqla2xxx: Log messages to use correct vha.
Arun Easi [Tue, 10 Apr 2012 11:46:39 +0000 (17:16 +0530)]
qla2xxx: Log messages to use correct vha.

JIRA Key: V2632FC-99

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Add new message when a new loopid is assigned.
Chad Dupuis [Tue, 10 Apr 2012 11:42:19 +0000 (17:12 +0530)]
qla2xxx: Add new message when a new loopid is assigned.

JIRA Key: V2632FC-98

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Fix ql_dbg arguments.
Arun Easi [Wed, 2 Nov 2011 02:03:13 +0000 (19:03 -0700)]
qla2xxx: Fix ql_dbg arguments.

JIRA Key: V2632FC-96

13 years agoqla2xxx: Use ql_log* #define's in ql_log() and ql_log_pci().
Chad Dupuis [Tue, 10 Apr 2012 11:40:10 +0000 (17:10 +0530)]
qla2xxx: Use ql_log* #define's in ql_log() and ql_log_pci().

JIRA Key: V2632FC-127

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Convert remaining printk's to ql_log format.
Chad Dupuis [Tue, 10 Apr 2012 11:35:01 +0000 (17:05 +0530)]
qla2xxx: Convert remaining printk's to ql_log format.

JIRA Key: V2632FC-126

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Print mailbox command opcode and return code when a command times out.
Chad Dupuis [Tue, 10 Apr 2012 11:27:25 +0000 (16:57 +0530)]
qla2xxx: Print mailbox command opcode and return code when a command times out.

JIRA Key: V2632FC-102

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Remove check for null fcport from host reset handler.
Michael Christie [Tue, 10 Apr 2012 11:20:23 +0000 (16:50 +0530)]
qla2xxx: Remove check for null fcport from host reset handler.

Remove the check for a NULL fcport so that the host reset will run
unconditionally to unwedge any commands before the device is offlined and to
prevent a quick runthrough of the SCSI error handling.

JIRA Key: V2632FC-89

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Correct out of bounds read of ISP2200 mailbox registers.
Andrew Vasquez [Fri, 28 Oct 2011 21:40:44 +0000 (14:40 -0700)]
qla2xxx: Correct out of bounds read of ISP2200 mailbox registers.

From Olatunji:

A tool that I m building for finding memory faults in
Linux drivers is reporting that the following loop, in
qla2x00_mbx_completion(), reads outside the allocated io memory
while reading ISP2200 mailbox registers.  I would appreciate your
help in confirming this bug.

...
  wptr = (uint16_t __iomem *)MAILBOX_REG(ha, reg, 1);
 for (cnt = 1; cnt < ha->mbx_count; cnt++) {
    if (IS_QLA2200(ha) && cnt == 8)
wptr = (uint16_t __iomem *)MAILBOX_REG(ha, reg, 8);
    if (cnt == 4 || cnt == 5)
ha->mailbox_out[cnt] = qla2x00_debounce_register(wptr);
    else
       ha->mailbox_out[cnt] = RD_REG_WORD(wptr);
     wptr++;
  }
...

During isp2200 initialization (qla2x00_probe_one), ha->mbx_count
is set to 32, even though isp2200 has 24 mailbox registers
(mailbox0 ... mailbox23).  Therefore the loop runs for
cnt=[1..31], wptr walks off the allocated mailbox register region
at cnt==24, and results in out-of-bounds reads.

Although I observed this problem in linux2.6.17.1, I
confirmed that it also exists in 2.6.37 and 3.1-rc4.

Fortunately, the reads outside the 24 mailbox registers are
benign.  For correctness, limit the driver's read to 24.

JIRA Key: V2632FC-95

13 years agoqla2xxx: Remove errant clearing of MBX_INTERRUPT flag during CT-IOCB processing.
Andrew Vasquez [Thu, 20 Oct 2011 23:29:49 +0000 (16:29 -0700)]
qla2xxx: Remove errant clearing of MBX_INTERRUPT flag during CT-IOCB processing.

This can cause instability in mailbox command state machine handling.

JIRA Key: V2632FC-94

13 years agoqla2xxx: Reduce mbx-command timeout for Login/Logout requests.
Andrew Vasquez [Thu, 20 Oct 2011 22:49:13 +0000 (15:49 -0700)]
qla2xxx: Reduce mbx-command timeout for Login/Logout requests.

Don't use default 30 second mailbox-command timeout for these
serial requests, instead, limit the TMO to the standard 2*RATOV
plus some fudge-factor.

JIRA Key: V2632FC-93

13 years agoqla2xxx: Clear options-flags while issuing stop-firmware mbx command.
Andrew Vasquez [Thu, 20 Oct 2011 17:14:16 +0000 (10:14 -0700)]
qla2xxx: Clear options-flags while issuing stop-firmware mbx command.

Not clearing the options flags in mbx1 could lead the firmware
into interpreting old data in mbx1 through mbx8.  This could
lead to inadvertent DMA read/write operations to stale memory.

JIRA Key: V2632FC-92

13 years agoqla2xxx: Prep zero-length BSG data-transfer requests.
Andrew Vasquez [Tue, 10 Apr 2012 11:09:30 +0000 (16:39 +0530)]
qla2xxx: Prep zero-length BSG data-transfer requests.

During command failure/non-recognition, the upper-layer
FC-transport expects the drivers to set
job-reply->reply_payload_rcv_len.  Do this in a consistent manner
to avoid duplication.

JIRA Key: V2632FC-90

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Perform implicit logout during rport tear-down.
Andrew Vasquez [Fri, 4 Nov 2011 14:31:51 +0000 (09:31 -0500)]
qla2xxx: Perform implicit logout during rport tear-down.

During rport tear-down, make sure we do an implicit LOGO of the fcport in our
firmware to try to clear any residual commands associated with that fcport.

JIRA Key: V2632FC-88

13 years agoqla2xxx: Return N-port id to firmware on logout.
Joe Carnuccio [Tue, 11 Oct 2011 23:47:36 +0000 (16:47 -0700)]
qla2xxx: Return N-port id to firmware on logout.

When logging out a port, return the N-port id to the firmware for
recycling to avoid running out of N-port id's.

JIRA Key: V2632FC-83

13 years agoqla2xxx: Handle failure cases during fabric_login
Chad Dupuis [Tue, 10 Apr 2012 11:00:12 +0000 (16:30 +0530)]
qla2xxx: Handle failure cases during fabric_login

Make sure that all calls to ha->isp_ops->fabric_login() check the
return value for failure.

JIRA Key: V2632FC-84

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Increase speed of flash access in ISP82xx adapters to improve firmware load...
Chad Dupuis [Tue, 10 Apr 2012 10:55:28 +0000 (16:25 +0530)]
qla2xxx: Increase speed of flash access in ISP82xx adapters to improve firmware load speed.

JIRA Key: V2632FC-78

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Handle change notifications based on switch scan results.
Arun Easi [Mon, 8 Aug 2011 07:06:36 +0000 (00:06 -0700)]
qla2xxx: Handle change notifications based on switch scan results.

Instead of processing each RSCN individually, use only the name server results
from the switch to tell the existance of a given fcport.

JIRA Key: V2632FC-41

13 years agoqla2xxx: Correct print format for edc ql_log() calls.
Joe Carnuccio [Thu, 13 Oct 2011 18:25:12 +0000 (13:25 -0500)]
qla2xxx: Correct print format for edc ql_log() calls.

JIRA Key: V2632FC-77

13 years agoqla2xxx: Use consistent DL mask for ELS/CT passthru requests.
Andrew Vasquez [Fri, 23 Sep 2011 22:00:21 +0000 (15:00 -0700)]
qla2xxx: Use consistent DL mask for ELS/CT passthru requests.

Driver is logging a slew of 'good' status requests:

[ 9178.507535] qla2xxx [0000:19:00.1]-503f:15: ELS-CT pass-through-ct pass-through error hdl=379 comp_status-status=0x15 error subcode 1=0x1820 error subcode 2=0x81c8 total_byte = 0x10.
[ 9178.525950] qla2xxx [0000:19:00.1]-503f:15: ELS-CT pass-through-ct pass-through error hdl=37c comp_status-status=0x15 error subcode 1=0x1820 error subcode 2=0x81c8 total_byte = 0x10.
[ 9178.543461] qla2xxx [0000:19:00.1]-503f:15: ELS-CT pass-through-ct pass-through error hdl=37f comp_status-status=0x15 error subcode 1=0x1820 error subcode 2=0x81c8 total_byte = 0x10.
[ 9178.555836] qla2xxx [0000:19:00.1]-503f:15: ELS-CT pass-through-ct pass-through error hdl=382 comp_status-status=0x15 error subcode 1=0x1820 error subcode 2=0x81c8 total_byte = 0x10.

Change from

* ql_log() -> ql_dbg()
* ql_log_info -> ql_dbg_user

Chad/Saurav, does this require a renumbering?

JIRA Key: V2632FC-76

13 years agoqla2xxx: Consolidation of SRB processing.
Giridhar Malavali [Tue, 10 Apr 2012 10:51:33 +0000 (16:21 +0530)]
qla2xxx: Consolidation of SRB processing.

Rework the structures related to SRB processing to minimize the memor
allocations per I/O and manage resources associated with and completions
from common routines.

JIRA Key: V2632FC-132

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Use proper VPD/NVRAM regions with ISP8031 parts.
Andrew Vasquez [Fri, 23 Dec 2011 20:09:55 +0000 (12:09 -0800)]
qla2xxx: Use proper VPD/NVRAM regions with ISP8031 parts.

JIRA key: V2632FC-142.

13 years agoqla2xxx: Remove ql2xfwloadbin assignment to 0.
Chad Dupuis [Wed, 14 Dec 2011 16:39:15 +0000 (08:39 -0800)]
qla2xxx: Remove ql2xfwloadbin assignment to 0.

JIRA Key: V2632FC-123

13 years agoqla2xxx: Call MPI reset for 81xx adapters only.
Andrew Vaquez [Wed, 14 Dec 2011 14:21:53 +0000 (08:21 -0600)]
qla2xxx: Call MPI reset for 81xx adapters only.

JIRA Key: V2632FC-129

13 years agoqla2xxx: Driver need to do HotReset instead of FundamentalReset for ISP83XX
Andrew Vasquez [Tue, 10 Apr 2012 09:42:21 +0000 (15:12 +0530)]
qla2xxx: Driver need to do HotReset instead of FundamentalReset for ISP83XX

JIRA Key: V2632FC-115.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Use default semantic for firmware load.
Saurav Kashyap [Thu, 8 Dec 2011 15:16:46 +0000 (07:16 -0800)]
qla2xxx: Use default semantic for firmware load.

JIRA Key: V2632FC-123

13 years agoqla2xxx: Enhancements to support ISP83xx.
Giridhar Malavali [Tue, 10 Apr 2012 09:36:06 +0000 (15:06 +0530)]
qla2xxx: Enhancements to support ISP83xx.

JIRA Key: V2632FC-100

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Enhanced the dump routines to capture multiple request and response queues.
Giridhar Malavali [Thu, 13 Oct 2011 18:37:35 +0000 (13:37 -0500)]
qla2xxx: Enhanced the dump routines to capture multiple request and response queues.

JIRA Key: V2632FC-30

13 years agoqla2xxx: Update the driver version to 8.03.07.13.39.0-k.
Saurav Kashyap [Wed, 7 Mar 2012 04:57:03 +0000 (10:27 +0530)]
qla2xxx: Update the driver version to 8.03.07.13.39.0-k.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Fixed typos and misc issues.
Saurav Kashyap [Mon, 27 Feb 2012 11:32:11 +0000 (17:02 +0530)]
qla2xxx: Fixed typos and misc issues.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Fix byte swapping in IPE print statement.
Chad Dupuis [Mon, 27 Feb 2012 07:03:56 +0000 (12:33 +0530)]
qla2xxx: Fix byte swapping in IPE print statement.

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Add an "is reset active" helper.
Andrew Vasquez [Mon, 27 Feb 2012 06:58:22 +0000 (12:28 +0530)]
qla2xxx: Add an "is reset active" helper.

Many locations within the driver would use an inconsistent set of
checks to determine ISP-reset state.  Consolidate the checks into
this inline-helper.

Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
13 years agoqla2xxx: Disable generating pause frames when firmware hang detected for ISP82xx.
Giridhar Malavali [Mon, 27 Feb 2012 06:50:33 +0000 (12:20 +0530)]
qla2xxx: Disable generating pause frames when firmware hang detected for ISP82xx.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>