{"id":804523,"url":"http://patchwork.ozlabs.org/api/1.2/patches/804523/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1503414919-30820-5-git-send-email-bmeng.cn@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1503414919-30820-5-git-send-email-bmeng.cn@gmail.com>","list_archive_url":null,"date":"2017-08-22T15:15:09","name":"[U-Boot,04/14] nvme: Fix endianness assignment to prp2 in nvme_identify()","commit_ref":"3e18562961933c7772b7e91ba6fc1e908b453d93","pull_url":null,"state":"accepted","archived":false,"hash":"6ef78c1b7e76f9a1c577a9ffa0ace532d9cfbafb","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/1.2/people/64981/?format=json","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/1.2/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1503414919-30820-5-git-send-email-bmeng.cn@gmail.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/804523/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/804523/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"iWYEnBUR\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xcDdj0L6Xz9sR9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 01:15:36 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid B7222C21E62; Tue, 22 Aug 2017 15:11:47 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 651BBC21E51;\n\tTue, 22 Aug 2017 15:11:16 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid F3A69C21E48; Tue, 22 Aug 2017 15:11:07 +0000 (UTC)","from mail-it0-f68.google.com (mail-it0-f68.google.com\n\t[209.85.214.68])\n\tby lists.denx.de (Postfix) with ESMTPS id 05233C21E2C\n\tfor <u-boot@lists.denx.de>; Tue, 22 Aug 2017 15:11:04 +0000 (UTC)","by mail-it0-f68.google.com with SMTP id 190so3488654itx.3\n\tfor <u-boot@lists.denx.de>; Tue, 22 Aug 2017 08:11:03 -0700 (PDT)","from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\ta189sm5182572itd.5.2017.08.22.08.11.01\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 22 Aug 2017 08:11:02 -0700 (PDT)"],"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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=a7FgLJEnNcYE/UfiIoLR9526QSkvszvZIzO4e9AaDWQ=;\n\tb=iWYEnBURL2eTKTTCb519qmRsgoLUwiKG3TxnsUWd4nxK+docvO49mOrWocNJgMpMQg\n\tyz71xHNzMEXgEwORxeXJBHoMECMrpYd40lWv1b+1tDTsE7ulDXzF+40EfEivM3fVp0YN\n\tzkLzfTo2FFqfJLWbiZG+R8UBEyNa1WO/c9aGR3kd2T4iUk13gVpn5m1yC4EapVUm8lN4\n\tvdY2GJK/zmkD+77pIb8XPHrnSB1Jpt4RHoEbuWuPbvjsuOhjQvKuBmwDbu28eJAL2QFQ\n\tB9Sx0QoauXOKCYl2HguTuDxv+s1Gex+ur85qHoIEu6T6OK9DpAab9+UeCccV1x7uuDIw\n\tCTZQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=a7FgLJEnNcYE/UfiIoLR9526QSkvszvZIzO4e9AaDWQ=;\n\tb=jH3evpRmytn62BBZ99j7V19d2oB1gJ68PnORC48UxitEwWkYDSJMy9KwYCepy0ehAB\n\ttwSyix0IXxF09i1M+TK2fyRd9VvL1uRhGOuJ8tqvhTrUnt+Kd5DoWXCnkKZjyRAxfT4g\n\t/9dD0+XDFz2i35dJma6FZmwYEAkRQCtGZn2LC5uJ5yqxYajU87HQYS3XBx52uFEEDtse\n\tFR+FnGhtkEwHDYO9rJg/ufZOYp9szDYm2+0LZMMUUdAkpOFu/1VA6n9ELWkXfx7w6vGA\n\t5VDGzLRgaT3WcJwY9Attlv0vwyiQJ7Fib65XW4aRl9H68Ye3MXqaPVuDph0jRWJgcher\n\tC+Tw==","X-Gm-Message-State":"AHYfb5jt3WEWeIRvWN5ojM//60xkkk/yK3cUYprvlVCYihVlzGfuWZmb\n\tMIgj7QQ7+xZ/ZA==","X-Received":"by 10.36.8.66 with SMTP id 63mr206966itc.164.1503414663013;\n\tTue, 22 Aug 2017 08:11:03 -0700 (PDT)","From":"Bin Meng <bmeng.cn@gmail.com>","To":"Tom Rini <trini@konsulko.com>, U-Boot Mailing List <u-boot@lists.denx.de>","Date":"Tue, 22 Aug 2017 08:15:09 -0700","Message-Id":"<1503414919-30820-5-git-send-email-bmeng.cn@gmail.com>","X-Mailer":"git-send-email 1.7.9.5","In-Reply-To":"<1503414919-30820-1-git-send-email-bmeng.cn@gmail.com>","References":"<1503414919-30820-1-git-send-email-bmeng.cn@gmail.com>","Subject":"[U-Boot] [PATCH 04/14] nvme: Fix endianness assignment to prp2 in\n\tnvme_identify()","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"So far this is not causing any issue due to NVMe and x86 are using\nthe same endianness, but for correctness, it should be fixed.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/nvme/nvme.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c\nindex 5d39cab..2ae947c 100644\n--- a/drivers/nvme/nvme.c\n+++ b/drivers/nvme/nvme.c\n@@ -431,7 +431,7 @@ int nvme_identify(struct nvme_dev *dev, unsigned nsid,\n \t\tc.identify.prp2 = 0;\n \t} else {\n \t\tdma_addr += (page_size - offset);\n-\t\tc.identify.prp2 = dma_addr;\n+\t\tc.identify.prp2 = cpu_to_le64(dma_addr);\n \t}\n \n \tc.identify.cns = cpu_to_le32(cns);\n","prefixes":["U-Boot","04/14"]}