]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.kernel.org/revert-scsi-qla2xxx-do-not-honour-max_vports-from-firmware-for-2g-isps-and-below.patch
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.kernel.org / revert-scsi-qla2xxx-do-not-honour-max_vports-from-firmware-for-2g-isps-and-below.patch
1 From 680d7db88ace53c673e1c437c9b6abcc053e8d6f Mon Sep 17 00:00:00 2001
2 From: Shyam Sundar <shyam.sundar@qlogic.com>
3 Date: Fri, 24 Oct 2008 15:13:46 -0700
4 Subject: revert - SCSI: qla2xxx: Do not honour max_vports from firmware for 2G ISPs and below.
5
6 -------------------
7 This is a revert of this patch that is included in 2.6.27.7
8 as a further qla2xxx driver update in the series conflicts with this
9 - gregkh
10 -------------------
11
12 From: Shyam Sundar <shyam.sundar@qlogic.com>
13
14 commit 680d7db88ace53c673e1c437c9b6abcc053e8d6f upstream.
15
16 For 23XX ISPs, max_vports may return an invalid value.
17 Do not honour it.
18
19 Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
20 Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
21 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22
23 ---
24
25 ---
26 drivers/scsi/qla2xxx/qla_init.c | 2 +-
27 drivers/scsi/qla2xxx/qla_mbx.c | 2 +-
28 2 files changed, 2 insertions(+), 2 deletions(-)
29
30 --- a/drivers/scsi/qla2xxx/qla_init.c
31 +++ b/drivers/scsi/qla2xxx/qla_init.c
32 @@ -974,6 +974,7 @@ qla2x00_setup_chip(scsi_qla_host_t *ha)
33 &ha->fw_minor_version,
34 &ha->fw_subminor_version,
35 &ha->fw_attributes, &ha->fw_memory_size);
36 + qla2x00_resize_request_q(ha);
37 ha->flags.npiv_supported = 0;
38 if ((IS_QLA24XX(ha) || IS_QLA25XX(ha) ||
39 IS_QLA84XX(ha)) &&
40 @@ -985,7 +986,6 @@ qla2x00_setup_chip(scsi_qla_host_t *ha)
41 ha->max_npiv_vports =
42 MIN_MULTI_ID_FABRIC - 1;
43 }
44 - qla2x00_resize_request_q(ha);
45
46 if (ql2xallocfwdump)
47 qla2x00_alloc_fw_dump(ha);
48 --- a/drivers/scsi/qla2xxx/qla_mbx.c
49 +++ b/drivers/scsi/qla2xxx/qla_mbx.c
50 @@ -1964,7 +1964,7 @@ qla2x00_get_resource_cnts(scsi_qla_host_
51 *cur_iocb_cnt = mcp->mb[7];
52 if (orig_iocb_cnt)
53 *orig_iocb_cnt = mcp->mb[10];
54 - if (ha->flags.npiv_supported && max_npiv_vports)
55 + if (max_npiv_vports)
56 *max_npiv_vports = mcp->mb[11];
57 }
58