{"id":810092,"url":"http://patchwork.ozlabs.org/api/1.2/patches/810092/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170905115943.19919-1-joakim.tjernlund@infinera.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.2/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20170905115943.19919-1-joakim.tjernlund@infinera.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170905115943.19919-1-joakim.tjernlund@infinera.com/","date":"2017-09-05T11:59:43","name":"fsl_pci: Correct fsl_pci_mcheck_exception","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"6de871a503cc3410dff7691793af8df8f86bf611","submitter":{"id":67550,"url":"http://patchwork.ozlabs.org/api/1.2/people/67550/?format=json","name":"Joakim Tjernlund","email":"Joakim.Tjernlund@infinera.com"},"delegate":{"id":1707,"url":"http://patchwork.ozlabs.org/api/1.2/users/1707/?format=json","username":"scottwood","first_name":"Scott","last_name":"Wood","email":"scottwood@freescale.com"},"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170905115943.19919-1-joakim.tjernlund@infinera.com/mbox/","series":[{"id":1561,"url":"http://patchwork.ozlabs.org/api/1.2/series/1561/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=1561","date":"2017-09-05T11:59:43","name":"fsl_pci: Correct fsl_pci_mcheck_exception","version":1,"mbox":"http://patchwork.ozlabs.org/series/1561/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810092/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810092/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmlnB48Zlz9sPt\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue,  5 Sep 2017 22:06:38 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xmlnB38fYzDrRw\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue,  5 Sep 2017 22:06:38 +1000 (AEST)","from smtp.transmode.se (smtp.transmode.se [31.15.61.139])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xmllV6t0yzDrJF\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue,  5 Sep 2017 22:05:10 +1000 (AEST)","from gentoo-jocke.infinera.com (gentoo-jocke.infinera.com\n\t[10.210.73.93])\n\tby smtp.transmode.se (Postfix) with ESMTP id E3EFA11870D7;\n\tTue,  5 Sep 2017 13:59:46 +0200 (CEST)","from gentoo-jocke.infinera.com (gentoo-jocke.infinera.com\n\t[127.0.0.1])\n\tby gentoo-jocke.infinera.com (8.14.9/8.14.9) with ESMTP id\n\tv85Bxk2Z019986; Tue, 5 Sep 2017 13:59:46 +0200","(from jocke@localhost)\n\tby gentoo-jocke.infinera.com (8.14.9/8.14.9/Submit) id v85Bxkfq019985;\n\tTue, 5 Sep 2017 13:59:46 +0200"],"Authentication-Results":"ozlabs.org;\n\tspf=permerror (mailfrom) smtp.mailfrom=infinera.com\n\t(client-ip=31.15.61.139; helo=smtp.transmode.se;\n\tenvelope-from=joakim.tjernlund@infinera.com; receiver=<UNKNOWN>)","X-Greylist":"delayed 317 seconds by postgrey-1.36 at bilbo;\n\tTue, 05 Sep 2017 22:05:10 AEST","From":"Joakim Tjernlund <joakim.tjernlund@infinera.com>","To":"linuxppc-dev linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,\n\tYork Sun <york.sun@nxp.com>","Subject":"[PATCH] fsl_pci: Correct fsl_pci_mcheck_exception","Date":"Tue,  5 Sep 2017 13:59:43 +0200","Message-Id":"<20170905115943.19919-1-joakim.tjernlund@infinera.com>","X-Mailer":"git-send-email 2.13.5","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"get_user() had it args reversed causing NIP to be NULL:ed instead\nof fixing up the PCI access.\n\nNote: This still hangs my P1020 Freescale CPU hard, but at least\nI get a NIP now.\n\nSigned-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>\n---\n arch/powerpc/sysdev/fsl_pci.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c\nindex 7c8b779c329a..9e64c12dff6a 100644\n--- a/arch/powerpc/sysdev/fsl_pci.c\n+++ b/arch/powerpc/sysdev/fsl_pci.c\n@@ -996,7 +996,7 @@ int fsl_pci_mcheck_exception(struct pt_regs *regs)\n \tif (is_in_pci_mem_space(addr)) {\n \t\tif (user_mode(regs)) {\n \t\t\tpagefault_disable();\n-\t\t\tret = get_user(regs->nip, &inst);\n+\t\t\tret = get_user(inst, (__u32 __user *)regs->nip);\n \t\t\tpagefault_enable();\n \t\t} else {\n \t\t\tret = probe_kernel_address(regs->nip, inst);\n","prefixes":[]}