Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp302176pxj; Thu, 20 May 2021 09:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnIX0FUdtf7YS0a0uc/qj+lwGh8a6hAy2qABbR9Wv7plTqZuWWi7U3Av+2365Te09WiXze X-Received: by 2002:a50:fe94:: with SMTP id d20mr2092861edt.127.1621528730651; Thu, 20 May 2021 09:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621528730; cv=none; d=google.com; s=arc-20160816; b=q/Fi6CQGM5Faz+LrdHhrBJb5kWIQQGIUD6TOLt/RqNShYC1mkpVOgBeGmUYaWh9+1z 9hWFljndlVO3XoLIZatltGygkdwW4OmyuuMouyLuuDhc7liJLD1KMvvkuFZHtTiQ6ciY 4K1Fgo5g9CxXgt+qH7/ToehOv9K8WozVtkvB4GC7voJ8OekDALDbKlZqGCt9YEBDWszW IWGwadm+pLQNtkLj/R3IE1iWr9eGQVhze+zHKHp4lCxyfM+D6m0sBLUgz59HJCbV9+mZ 6Iz700zvMjeJ1Ajyj7VSAYNPM1ZG7p9R9QIDXoUoFhh8j2qRv88of/SB7TCOMCuOSQj7 T9lQ== 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=Nj21VurpbLsOnR0FRaKJ6QnIARr9ISMx/eDPp35Ue9w=; b=N7Gw+HYbhk3RVAfrmvst9ew6QPqe0ozUa132sIl5EIrbyo6pImUDrmhTbsBVHCn20A RztAmv1H7uMxmz1eVxLOUmCldjmEc4RfHDZiUqi4isYrIpP7Lr7X15nqctTvcJmNZwmk CCZEUpoKGS06iXYLLW5lXjIuPkj5tNVV9QDUer3Zxq3hJzgC7oF3YBnKfvcSoVEILfG5 zpjtH8mBvmEKWlm5zLv3veNaLZLVkq1D56zHMp6SQ+6Abv/QNiOBpvw43PoVLiDTFsan GTr8q76AGIquLChq30Um2CQZYGgx6pt8dIN8ZXtIavWIefto/ynULCADCzxql1+KFiIG NVtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Egx+g9bv; 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 n15si2895145edy.288.2021.05.20.09.38.27; Thu, 20 May 2021 09:38:50 -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=Egx+g9bv; 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 S232753AbhETJj7 (ORCPT + 99 others); Thu, 20 May 2021 05:39:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:40918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbhETJiW (ORCPT ); Thu, 20 May 2021 05:38:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 050A96141B; Thu, 20 May 2021 09:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503040; bh=VpicjMrC7wIbSeScJ//MRPXRuxWp5cOb6PXgVW05iAw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Egx+g9bv7233PD0OcanuPkFbbsBKiuWausYVDotljYo+a9QWm0wCnGDsACK0Cj1T2 Y1Vuvh0SbgNAAoh6sUSzM0riBEsm0nHgq208GNuQTfZosbjngbQpShynPP/wUYK4Fo Grc0QRToOK74YmAm/xycMUsrDuaAqqpk2309iVXo= 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.19 042/425] scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe Date: Thu, 20 May 2021 11:16:51 +0200 Message-Id: <20210520092132.808153165@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 5bc33817568e..23ead17e60fe 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -2912,7 +2912,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