mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-21 22:56:32 +00:00
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk ........ r3950 | vlnb | 2011-12-01 21:46:33 -0500 (Thu, 01 Dec 2011) | 9 lines According to SPC-4 in the PERSISTENT RESERVE IN full status descriptor the format of byte 13 is defined as follows: - The most significant four bits are SCOPE field. - The least significant four bits are the TYPE field. Make sure that that byte is filled in according to the specification. BSD-Signed-off-by: Bart Van Assche <bvanassche@acm.org> ........ r3958 | vlnb | 2011-12-06 21:56:31 -0500 (Tue, 06 Dec 2011) | 21 lines We try to build FC SAN on Sun T2 server, FC HBA cards used are QLE2560 and QLE2562, the OS is RHEL6.0 with kernel linux-2.6.32, scst code version from svn is 3952. As T2 (SPARC64) is big-endian, which may not be tested sufficently, we had to fix some endian swap to make qla2x00t work good on it. The first fix is in q24_build_ctio_pkt(), loop_id from prm->cmd, which was generated by CPU, should be converted to little-endian when wrapped in pkt, which will be used by HBA ASIC. The second fix in qla2x_tgt_def.h, reorder the bit-order of structs' member, is an attempt in despair, cannot explain why, but it just works! Besides the programming skills, we cannot get QLogic FC HBA databook, and have little acknowledge about the driver, the fixes may need to be refined, so don't hold the comments :) Signed-off-by: Linwen Deng <linwendeng@gmail.com> ........ git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3974 d57e44dd-8a1f-0410-8b47-8ef2f437770f