From: Martin Knoblauch <martin.knoblauch@mscsoftware.com>
To: linux-kernel@vger.kernel.org
Cc: fibrechannel@compaq.com, ehm@cris.com, grif@cs.ucr.edu
Subject: [Patch] Prevent crash when loading "cpqfc" with Tachyon XL2 cards (against 2.4.20-rc1-ac1)
Date: Thu, 14 Nov 2002 13:07:49 +0100 [thread overview]
Message-ID: <200211141307.49206.martin.knoblauch@mscsoftware.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 975 bytes --]
Hi,
please apply the appended patch to "drivers/scsi/cpqfcTSinit.c". It
adds a call to "pci_enable_device" which prevents a hard crash when
loading the driver on a Tachyon XL2 based HP card (IA64 platform). The
patch is against 2.4.20-rc1-ac1, but should apply to mainline.
In general, is someone working making the Tachyon XL2 cards really work
with the cpqfc driver? I am very interested in that. It is really sad
to see those 60 FC disks idle when Linux is booted on our rx5670 :-( I
would love to help out with testing and experimenting.
The current problems (after applying this patch are):
- unable to read WWN from NVRAM
- no GBIC found
- no link state
- no disks found
Thanks
Martin
--
Martin Knoblauch
Senior System Architect
MSC.software GmbH
Am Moosfeld 13
D-81829 Muenchen, Germany
e-mail: martin.knoblauch@mscsoftware.com
http://www.mscsoftware.com
Phone/Fax: +49-89-431987-189 / -7189
Mobile: +49-174-3069245
[-- Attachment #2: cpqfcTSinit.c.patch --]
[-- Type: text/x-diff, Size: 896 bytes --]
--- cpqfcTSinit.c-orig Wed Nov 13 11:05:10 2002
+++ cpqfcTSinit.c Thu Nov 14 12:48:48 2002
@@ -242,6 +242,10 @@
while ((PciDev = pci_find_device(cpqfc_boards[i].vendor_id, cpqfc_boards[i].device_id, PciDev))) {
+ if (pci_enable_device(PciDev) != 0) {
+ printk(KERN_WARNING "cpqfc: pci_enable_devive failed, skipping.\n");
+ continue;
+ }
if (pci_set_dma_mask(PciDev, CPQFCTS_DMA_MASK) != 0) {
printk(KERN_WARNING "cpqfc: HBA cannot support required DMA mask, skipping.\n");
continue;
@@ -411,6 +415,7 @@
// can we find an FC device mapping to this SCSI target?
DumCmnd.channel = ScsiDev->channel; // For searching
DumCmnd.target = ScsiDev->id;
+ DumCmnd.lun = ScsiDev->lun;
pLoggedInPort = fcFindLoggedInPort(fcChip, &DumCmnd, // search Scsi Nexus
0, // DON'T search linked list for FC port id
NULL, // DON'T search linked list for FC WWN
reply other threads:[~2002-11-14 12:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200211141307.49206.martin.knoblauch@mscsoftware.com \
--to=martin.knoblauch@mscsoftware.com \
--cc=ehm@cris.com \
--cc=fibrechannel@compaq.com \
--cc=grif@cs.ucr.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome