Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2483267pxj; Mon, 10 May 2021 04:11:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwx422T8Kl0396mR9Ixygz218TfnmcCuYep4G1QXEix55TrdfHtcAVuyqEL+68biPvW6fw X-Received: by 2002:a17:907:600f:: with SMTP id fs15mr6648396ejc.158.1620645072502; Mon, 10 May 2021 04:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645072; cv=none; d=google.com; s=arc-20160816; b=KlDzzwLvlU9jUyUNAjccuCKq4arVayb82Q8DTC7/7uzpo1F/s/mHNv//jG/oecEZ1W bBfT4BrmY+AUbOis49KxIwe0y3R/FhkT2PIMbljZmWa2TaGKgbUZMzXkmsg3L4GUnki7 6Mj4cVRYnsteTYHDOcclGvxJAZc8uYw8hwjVCuOUa9jYRZggq0bXjqAbDBZdD8Jf9OxK 6zjFsxZc3JnPxK7M0E51YIvEkR+mzUu8AFz7B5SDLOI6gCyvgM+anT4sQ195j5fE1PlY X2nCugwp7Lk0vP358ubGldu+H79z02xgIhrYAld06N6kRp7hUbYxWoCy5g8HiT+yqbu4 IKUw== 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=axNZcgihS73zO6+iRqN4mEQlhy8xg24uEdgMqjUnIu8=; b=xej7qZpVys5xdQz4psKGTQB72v4C/lAONqjnQq6udc/fcT29Wlw0PdFzKqjFGr5i1S GO0WS+1+6K4nufN6JZ3A8Ai/ofTFIVNajPcE56SqGA4I5KmuC5kA/ffOJP7F+n6Ro1sO 47v2BVeIYEGQlIten71O39KiL7y+IwU9NC25b8UHa1Bwd559DfUsOv1yMekbVJLEaX/3 oeoXTbwONHLIfLXCNcLL+GUB/MR0RswQ6pufhszN9KgH/Li4V1TgHIaZJeNIPBNL7LfN JIs4nibdWKY8/yO6AmG6Dgoj3jUB3649HC2H8Xiz4IsvGzsxd1J0wgHjMZyLizooOJ+3 Z/jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ldIn2uWb; 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 k19si12535165edx.68.2021.05.10.04.10.48; Mon, 10 May 2021 04:11:12 -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=ldIn2uWb; 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 S236292AbhEJLHs (ORCPT + 99 others); Mon, 10 May 2021 07:07:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:59640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbhEJKrk (ORCPT ); Mon, 10 May 2021 06:47:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6321E61941; Mon, 10 May 2021 10:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643052; bh=fRP3g17GIT7FXpO3sRJycJ0l79WL4vpifiTY6o4F18w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ldIn2uWbTVhXPsc+UeeLR3oB3UALdOJ4Ihz65pvgjnbKNz/BeSJS0xvCCSMa/X87f SP4gQtKYf95sd4uvvTOGw1kex0yVEP94UUh4/huoI2GSn4lOG5JaKQQ8PmXM6Nuenw AdOONEtja65OQ/heGbxpJ2PAl7gsTr/mb6jMsUWM= 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 5.10 123/299] scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe Date: Mon, 10 May 2021 12:18:40 +0200 Message-Id: <20210510102009.040311992@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 d4ade7cdb93a..deab8931ab48 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -3300,7 +3300,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