Received: by 10.213.65.68 with SMTP id h4csp2544324imn; Mon, 9 Apr 2018 05:21:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Egge8V5Y5XMN3wedj9XfQgritwUknSUTIJ4yk7ulX5YRFSV1E5D4M67wmkPTtmRyoMOUE X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr20626773plb.335.1523276516062; Mon, 09 Apr 2018 05:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523276516; cv=none; d=google.com; s=arc-20160816; b=lHQqjwGbEFx6MNDW+DrSjLQ2IhBIQLgWHBT//g+SgYNs92a5LWjOV8gjopreVZ5ikI m2JkbFYw5Bo2TE8ZkvK2jLUXOwtuRU73JdkDREUMpi5eMzY659GO4+E7QIzMUq0Mytdw bhQXgC+oGmoJOU9aji7PWIv2l6WLt/4o7mF5eE+XAL717tD4c5HtZXX971Mzz+JRhMRQ e82LadEyeo0TAAzyclXwfVtuVtRmva/8VXZ+Ehn9LZwxHQjsHxi1xLqkQdzbUUfpvvY+ a5F8+k9IoFy2e9COWzZic0fuSPkr8x8cKn1PqQnafT1b+jokwp3LzgA1QVxQ1cJuNHgt UrSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=NZs8E94fXvT4sLmSPTjEklXohAhyeIFpya/5C6CIMJk=; b=ylofMckhDpydnRIV9pK/HkeCLI5E5swrYWaJSscZ+VesxJrQ9eErEvb44AH0Ic+DD/ XKbycYTwGNJHp9jedbgNeWE8t9pXjd8mVLy2eq86+t1Y0LKgSbCbbqh2avB5HKRJUczR IMsdS7fsPQnkpycuv0eoLNNBF7Jdbe7wzGVnjEZf7qCXqfH2n7h/grnhcp8acH6ltK6W GlQlpSThHKsKU7Jx4JEyOpCHSzEstwe1ra8FQW868lDu0aFXlYkGTmx68bnZkTSZ6e4Q RlxorcbFojmM3tGw+a4amHezhTr38YoSeaKNiCV5Nz0JOSO0BB1szWK47XMMXdZZKrdU vH/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si102177pgc.27.2018.04.09.05.21.18; Mon, 09 Apr 2018 05:21:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752588AbeDIMR4 (ORCPT + 99 others); Mon, 9 Apr 2018 08:17:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:38008 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752200AbeDIMRz (ORCPT ); Mon, 9 Apr 2018 08:17:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 38D86AD4A; Mon, 9 Apr 2018 12:17:54 +0000 (UTC) Date: Mon, 9 Apr 2018 14:17:51 +0200 From: Johannes Thumshirn To: Bart Van Assche Cc: "martin.petersen@oracle.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "himanshu.madhani@cavium.com" Subject: Re: [PATCH] qla2xxx: correctly shift host byte Message-ID: <20180409121751.vwrph2ojoh6eye4r@linux-x5ow.site> References: <20180406075222.7358-1-jthumshirn@suse.de> <222067aa244e369343101a4df9efab1ebd1b918c.camel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <222067aa244e369343101a4df9efab1ebd1b918c.camel@wdc.com> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 06, 2018 at 03:33:30PM +0000, Bart Van Assche wrote: > On Fri, 2018-04-06 at 09:52 +0200, Johannes Thumshirn wrote: > > The host byte has to be shifted by 16 not 6. > > > > Signed-off-by: Johannes Thumshirn > > --- > > drivers/scsi/qla2xxx/qla_isr.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c > > index 89f93ebd819d..49d67e1d571f 100644 > > --- a/drivers/scsi/qla2xxx/qla_isr.c > > +++ b/drivers/scsi/qla2xxx/qla_isr.c > > @@ -2368,7 +2368,7 @@ qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt, > > bsg_job->reply_len = sizeof(struct fc_bsg_reply); > > /* Always return DID_OK, bsg will send the vendor specific response > > * in this case only */ > > - sp->done(sp, DID_OK << 6); > > + sp->done(sp, DID_OK << 16); > > > > } > > Hello Johannes, > > Had you noticed the following statements? I think the "<< 1" should be removed > from these statements. > > $ git grep 'SAM_STAT.*<< 1' > drivers/scsi/qla2xxx/qla_isr.c: cmd->result |= SAM_STAT_CHECK_CONDITION << 1; > drivers/scsi/qla2xxx/qla_isr.c: cmd->result |= SAM_STAT_CHECK_CONDITION << 1; > drivers/scsi/qla2xxx/qla_isr.c: cmd->result |= SAM_STAT_CHECK_CONDITION << 1; Thanks for the heads up, but this will be a separate patch. Byte, Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850