From: bugzilla-daemon@kernel.org
To: linux-scsi@vger.kernel.org
Subject: [Bug 199887] Fibre login failure on older adapters
Date: Sun, 28 Aug 2022 19:54:34 +0000 [thread overview]
Message-ID: <bug-199887-11613-KCUChxQpmA@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-199887-11613@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=199887
Pavel Kankovsky (peak@argo.troja.mff.cuni.cz) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peak@argo.troja.mff.cuni.cz
--- Comment #4 from Pavel Kankovsky (peak@argo.troja.mff.cuni.cz) ---
Created attachment 301697
--> https://bugzilla.kernel.org/attachment.cgi?id=301697&action=edit
kinda fix
I did some experiments with my old QLA2340 (ISP2312, fw 3.03.28) and the most
recent stable kernel, ie. 5.19.4.
"Async-gnlist" failures seem to be survivable and I decided to ignore them for
the time being. In fact, the old driver in 4.9.325 was able to work without
MBC_PORT_NODE_NAME_LIST. There was a function issuing that command, namely
qla2x00_get_node_name_list(), but AFAICT it was never called.
"Async-gpdb" failures are a real problem because they trigger session deletion
(qla24xx_handle_gpdb_event() gets an invalid zero login state).
As far as I can tell, the new asynchronous implementation provides correct
parameters to MBC_GET_PORT_DATABASE (compare qla24xx_async_gpdb() with
qla2x00_get_port_database(), HAS_EXTENDED_IDS is true for ISP2312) but
1. the adapter cannot handle the request when it receives it via the IOCB
interface, and
2. the driver would not be able to handle returned data anyway because their
format is completely different on old non-IS_FWI2_CAPABLE adapters (compare
qla24xx_handle_gpdb_event() with the final part of
qla2x00_get_port_database()).
I tried replacing the new code with a small wrapper around a call to the old
qla2x00_get_port_database() sending the request synchronously via the mbox
interface... and it worked! The driver was able to finish logins and access
available FC targets. See the attached patch.
That said, it is a horrible hack done by someone almost totally ignorant of the
inner workings of the driver. There is absolutely no guarantee. It might crash
your kernel. It might fail to handle some (newly connected?) remote ports. It
might brick your adapter. It might wipe all your disk arrays. It might summon
the Elder Gods. You have been warned.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2022-08-28 19:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-199887-11613@https.bugzilla.kernel.org/>
2021-12-29 3:43 ` [Bug 199887] Fibre login failure on older adapters bugzilla-daemon
2022-08-28 19:54 ` bugzilla-daemon [this message]
2022-09-17 20:50 ` bugzilla-daemon
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=bug-199887-11613-KCUChxQpmA@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).