From patchwork Fri Jan 26 19:31:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 10186955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 032E7603ED for ; Fri, 26 Jan 2018 19:31:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA09A28508 for ; Fri, 26 Jan 2018 19:31:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD71329614; Fri, 26 Jan 2018 19:31:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8170F29953 for ; Fri, 26 Jan 2018 19:31:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753158AbeAZTbs (ORCPT ); Fri, 26 Jan 2018 14:31:48 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:46365 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753126AbeAZTbi (ORCPT ); Fri, 26 Jan 2018 14:31:38 -0500 Received: by mail-qt0-f196.google.com with SMTP id o35so3984122qtj.13 for ; Fri, 26 Jan 2018 11:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KcSXXi1Id4lSKO1l6Qq056v6Q1CI4ZKHoPMPYunL7OU=; b=duVTJDXgPuhP5o61dB47t87d8BUlQMlb66iVEM6tkHRDH0t9d5GPo6t0P0Hw82GXNc DXbmEePGLcNzkGFZjxRWECbEIue1HfMYIKJst7nEi+rJc9POXa2vwr9UoxO7RSO3/Gui oLeNBs1Zl2i/yK0uKOLp00WZAjjmpUdDyjjcgq0tcPjGaPytJHA1AAL9mkPO2cZaBbim uWsgwHoNI+7kR28F3/epv0g985eIuAjQHsGeK1mMhrsxu4BR2ztGLEH2sOUfyJiRAj6n X6oGSR2B1pXmWmfMOy7KBI9t3/WhwQy4FuZdq/MCrlUyA0q5hV2zvMi/Vh8AFZvIOlNf 8gRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KcSXXi1Id4lSKO1l6Qq056v6Q1CI4ZKHoPMPYunL7OU=; b=NIGOvQ76pFMWDA1S/i2I4gu3zo2E7ikT8joII1SJM+luglAmdhpssHAeue7nVmoyXt mAOaEmEDAr8tuHe8MvLvlSK+DWBh2JQx9hGavqjmDKaj/UUlxV5edI0gNmcXX12mloEL DTw/jt9pGA9Gie2I6urw0J0mujm8g9hvxEpl0iWmVZ8ON2eNQuOu8NLL/SFMTbqt+yEg LXyN5GDcBTdJkYxmQR3QD9AIMn8FqarmZ6/dV/UuYoqzDEXYi/aJnx3zfKgCE3Eue6JF us2/1Zr74y6Vcn/ApILYb2aft4bfDmoVv1qairQGw3vlw+cgQTGjt6vfPvJp4l6nHwxC nBQw== X-Gm-Message-State: AKwxytdD/uc+TKBaYacTDQj1SjaTFpFHXsoSTHpoU/8LdwDbmMjMC58r 4J+ydXXwXWpRmt0Gviu+IBGRJA== X-Google-Smtp-Source: AH8x226Wdqr2QEk14j29Rx4bbxO9lWkjZsTt2jcNwCi8yMetgFA6BM9gC6s8bhe8aFpRxxziqNCEGA== X-Received: by 10.200.12.138 with SMTP id n10mr24535108qti.186.1516995097768; Fri, 26 Jan 2018 11:31:37 -0800 (PST) Received: from pallmd1.broadcom.com ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id x10sm3763255qkl.83.2018.01.26.11.31.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 11:31:37 -0800 (PST) From: James Smart To: linux-scsi@vger.kernel.org Cc: James Smart , Dick Kennedy , James Smart Subject: [PATCH 10/13] lpfc: Fix nvme embedded io length on new hardware Date: Fri, 26 Jan 2018 11:31:10 -0800 Message-Id: <20180126193113.29610-11-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180126193113.29610-1-jsmart2021@gmail.com> References: <20180126193113.29610-1-jsmart2021@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Newer hardware more strictly enforces buffer lenghts, causing an mis-set value to be identified. Older hardware won't catch it. The difference is benign on old hardware. Set the right embedded buffer length for nvme ios. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c index 63e2d64da68f..d3eaa6d59179 100644 --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/drivers/scsi/lpfc/lpfc_nvme.c @@ -655,7 +655,7 @@ lpfc_nvme_adj_fcp_sgls(struct lpfc_vport *vport, /* Word 0-2 - NVME CMND IU (embedded payload) */ wqe->generic.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_IMMED; - wqe->generic.bde.tus.f.bdeSize = 60; + wqe->generic.bde.tus.f.bdeSize = 56; wqe->generic.bde.addrHigh = 0; wqe->generic.bde.addrLow = 64; /* Word 16 */