From patchwork Wed Aug 21 00:23:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Williams X-Patchwork-Id: 1150513 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.b="u0BMeCVv"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46CpM04HZzz9s4Y for ; Wed, 21 Aug 2019 10:24:26 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B029EC21FB0; Wed, 21 Aug 2019 00:24:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B11A5C21D83; Wed, 21 Aug 2019 00:24:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D8300C21D83; Wed, 21 Aug 2019 00:24:03 +0000 (UTC) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lists.denx.de (Postfix) with ESMTPS id 39A41C21C27 for ; Wed, 21 Aug 2019 00:24:03 +0000 (UTC) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7L0LM4v023881; Tue, 20 Aug 2019 17:24:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=CwjfhH2vAhkTO9aXDcTER3qfPpSeroqc1vukaeHZ3HE=; b=u0BMeCVvfY9zcbenOnfpfOUt5XT7lmgW9idk8Rd5w1z9P8SscHIzzm8w7WQr+/NTDLm2 jCYYT6RZZuOnilEN6eKzKWT517HwuFB0j21QQlepgae7SC3XIJJSjRWUbMpXdxIJZy5l l/gyAaxaZ7HJ3VSCQNJ5vTx+Q0R10aMZ2/3UB6i2MT5633OfNyKMEbT4jMCt8g2m7JEq 76ONNvuO9VGYCT55zkSaKtpMlwatbkqKSXcBbL1c2PBfubfBHhCOn55bZ6lYcZlHTtU4 2OvuJzMXCBBq/unqQL+8kXF8ZPbvTui9iCeBWpy7vR//aI0ByAsIPDtDTCyg6dI6dA3u eA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2ugu7fg11a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 20 Aug 2019 17:24:00 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 20 Aug 2019 17:23:59 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 20 Aug 2019 17:23:59 -0700 Received: from marvell.com (unknown [10.85.93.181]) by maili.marvell.com (Postfix) with ESMTP id B6F733F7041; Tue, 20 Aug 2019 17:23:58 -0700 (PDT) From: Aaron Williams To: Date: Tue, 20 Aug 2019 17:23:28 -0700 Message-ID: <20190821002329.24906-1-awilliams@marvell.com> X-Mailer: git-send-email 2.16.4 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-20_11:2019-08-19,2019-08-20 signatures=0 Subject: [U-Boot] [PATCH 0/1] NVME fix PRP Offset Invalid X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Let's try this yet again. I'm sorry if multiple emails are going out, I'm having issues getting git send-email working with our mail server. Anyway, this fixes a problem where the U-Boot NVME driver fails during large transfers due to the way the NVME driver allocates the PRP data structure. This data structure cannot cross a page boundary and hence it should be aligned to a page boundary and be a multiple of the page size (4K). The last entry in the PRP points to the next page if there are more entries than will fit in a single page. Without this fix, I was seeing a status code of 0x13 (PRP Offset Invalid) when writing a 187MiB Linux kernel image to a 128GiB FAT32 filesystem on a Samsung 1TB 970+ NVME SSD drive. -Aaron