Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754940Ab1FPB6g (ORCPT ); Wed, 15 Jun 2011 21:58:36 -0400 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:36259 "EHLO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209Ab1FPB6f convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2011 21:58:35 -0400 From: Xiangliang Yu To: Jack Wang , "'James Bottomley'" CC: "yxlraid@gmail.com" , "lucas.demarchi@profusion.mobi" , "maciej.trela@intel.com" , "dan.j.williams@intel.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jacky Feng Date: Wed, 15 Jun 2011 18:57:05 -0700 Subject: RE: [PATCH] [SCSI] LIBSAS: fix libsas link error issue Thread-Topic: [PATCH] [SCSI] LIBSAS: fix libsas link error issue Thread-Index: AcwrIR/qdpMMo2uOTdi6EtZ/SnmPkgAAZ5KAACgYoPAAAOfC4A== Message-ID: References: <1308064628-11826-1-git-send-email-yxlraid@gmail.com> <1308065367.2401.24.camel@mulgrave> <1308117450.2329.31.camel@mulgrave> <637AF86F1A314F15B816411A580575F0@usish.com.cn> In-Reply-To: <637AF86F1A314F15B816411A580575F0@usish.com.cn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1610 Lines: 43 >> I get the issue like this: >> 1. HBA support 3Gbps, level 1 expander support 6Gbps, and level 2 expander >> support 6Gbps; >> 2. level 1 is fine, and find that level 2 link rate is 6Gbps in DISCOVER command >> response. >> 3. LIBSAS think level 2 is 6Gbps by sas_ex_get_linkrate function, and send >> command to level 2 expander >> 4. LIBSAS link error. >> >[Jack Wang] >What do you mean by "LIBSAS link error", OPEN_REJECT(CONNECTION RATE NOT >SUPPORTED)? LIBSAS only get the error event through LLDD. >According to SAS2r15 7.8.3 I mean that HBA get link error. Sorry. >A SAS initiator port shall set the initial CONNECTION RATE field to: >a) the highest supported connection rate supported by a potential pathway as determined during the >discover process (e.g., based on the logical link rates of each logical link reported in the SMP >DISCOVER responses); or Sas_ex_get_linkrate function >b) the logical link rate of the logical phy used to transmit the OPEN address frame. MVSAS get value of linkrate from sas_ex_get_linkrate function(child->linkrate) >If a SAS initiator port selected a connection rate based on discover process information but the connection >request results in OPEN_REJECT (CONNECTION RATE NOT SUPPORTED), then the discover process >information is no longer current and the discover process should be run again. Fail again. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/