Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp413184pxj; Thu, 20 May 2021 12:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz1Tlc6wddIK/87wWOMEk5r9K+em+tBR+FNb1n6lOoSnVFU9UXuC411yDJ1FlWQM4/qu1Q X-Received: by 2002:aa7:c0d0:: with SMTP id j16mr6497633edp.324.1621538056430; Thu, 20 May 2021 12:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621538056; cv=none; d=google.com; s=arc-20160816; b=bL/Ylkev/Bj0Sos+7+Q62RkaFHo3dROFkJT8ETZCsva9dTJ+EGlGcWqat1I8l9kElA E4jYTX5q+GyN0G7g5aodUj01Zmf8iAr2VOXriwE9YauvZ2MoSJr5Z9X45w8pLxXc6Wsy MQg7weeBtcJ8epvL7uzYSaBWSsx3C5WUnriZqlzF7R+RHBwgyL2qWvLW/jnUx9+oNE6y /6WlM0AM9EtYWc5aR2yjNKqJ2PXgqLQ/gRNG+mlAIhTzp65JssLqezBd2xhDoAXKV8Ut qUw2UpDw9Zwac3KdZzhSG6oegSbYhSow7TdG+qObBdiJaU7fY8B1uBcyRdrnXAqiVvrV dhyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M251llR1NFZPD63pW+4P9Fp+9lgRi1bIjgP6uraQlRY=; b=p/3PIdi+k56kEk1SfAUR91LBvTKEdbFxmD70tR1HgOFUoy7QMIYxpF1TJJgTUK6cwV 15mIRnbZAFPujd6uU4iRVWTJKkvDuHztLmg62Ss6iBKpQ6IrPZuL+XX//d0eHKp9xGe+ +PdontnWGLm2gj3VJCGfS+pAnycqRzqL0omqQ1ZCA31P324mJL5llltJumJQ4nPIbA/7 K7HATELkVbtiI19lzzI3rjJktGKSVGUhwGmnFn+ubH1MMowlzNYZATYdi0fnw6Gk8+Sg 38wU4+WyMlcDZhpZBomdIXUkpyUbNm8fdIb8Vu1X0MENb0FQWpO3pboyfe6Z8QKXK90n sLFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="h/5dldeF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si3226062ejb.555.2021.05.20.12.13.52; Thu, 20 May 2021 12:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="h/5dldeF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235815AbhETKbz (ORCPT + 99 others); Thu, 20 May 2021 06:31:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:50934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235919AbhETKRb (ORCPT ); Thu, 20 May 2021 06:17:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B992F619AB; Thu, 20 May 2021 09:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503992; bh=mreJA38N0U0gb/wXrh/DdUeY8KH2zVlSVER6kcpkOiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/5dldeFEEIE0sIxP5mwJBsohNeRKcU0ZPL/UQj7Ms4Svt9u5nxPgrBu5FTmYfHyu Zn/PgvF6IWy82xlTDsiJDX8llSfIXu2rfwhatGAZmQva+Wqr8OEoR551BgcuCuyXh6 ofOAfmmIaGzLpl8RBJx718QdJ07O6ajCyanZ+MN8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dick Kennedy , James Smart , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 045/323] scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe Date: Thu, 20 May 2021 11:18:57 +0200 Message-Id: <20210520092121.654681066@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Smart [ Upstream commit 9302154c07bff4e7f7f43c506a1ac84540303d06 ] The wqe_dbde field indicates whether a Data BDE is present in Words 0:2 and should therefore should be clear in the abts request wqe. By setting the bit we can be misleading fw into error cases. Clear the wqe_dbde field. Link: https://lore.kernel.org/r/20210301171821.3427-2-jsmart2021@gmail.com Co-developed-by: Dick Kennedy Signed-off-by: Dick Kennedy Signed-off-by: James Smart Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/lpfc/lpfc_nvmet.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c index eacdcb931bda..fa0d0d15e82c 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -2554,7 +2554,6 @@ lpfc_nvmet_unsol_issue_abort(struct lpfc_hba *phba, bf_set(wqe_rcvoxid, &wqe_abts->xmit_sequence.wqe_com, xri); /* Word 10 */ - bf_set(wqe_dbde, &wqe_abts->xmit_sequence.wqe_com, 1); bf_set(wqe_iod, &wqe_abts->xmit_sequence.wqe_com, LPFC_WQE_IOD_WRITE); bf_set(wqe_lenloc, &wqe_abts->xmit_sequence.wqe_com, LPFC_WQE_LENLOC_WORD12); -- 2.30.2