From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752490AbbG1RkB (ORCPT ); Tue, 28 Jul 2015 13:40:01 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:35172 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbbG1Rj6 (ORCPT ); Tue, 28 Jul 2015 13:39:58 -0400 MIME-Version: 1.0 In-Reply-To: <20150727113622.GE29945@e104818-lin.cambridge.arm.com> References: <20150724224258.GA23990@google.com> <20150727113622.GE29945@e104818-lin.cambridge.arm.com> From: Duc Dang Date: Tue, 28 Jul 2015 10:39:28 -0700 Message-ID: Subject: Re: X-Gene: Unhandled fault: synchronous external abort in pci_generic_config_read32 To: Catalin Marinas Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Tanmay Inamdar , linux-arm , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2015 at 4:36 AM, Catalin Marinas wrote: > On Fri, Jul 24, 2015 at 05:05:19PM -0700, Duc Dang wrote: >> On Fri, Jul 24, 2015 at 3:42 PM, Bjorn Helgaas wrote: >> > I regularly see faults like this on an APM X-Gene: >> > >> > U-Boot 2013.04-mustang_sw_1.14.14 (Dec 16 2014 - 15:59:33) >> > CPU0: APM ARM 64-bit Potenza Rev B0 2400MHz PCP 2400MHz >> > 32 KB ICACHE, 32 KB DCACHE >> > SOC 2000MHz IOBAXI 400MHz AXI 250MHz AHB 200MHz GFC 125MHz >> > ... >> > Unhandled fault: synchronous external abort (0x96000010) at 0xffffff8000110034 > > That's generated by an external device (PCIe root complex, card etc.) > and some mis-configured CPU setting. > >> > Internal error: : 96000010 [#1] SMP >> > Modules linked in: >> > CPU: 0 PID: 3723 Comm: ... 4.1.0-smp-DEV #3 >> > Hardware name: APM X-Gene Mustang board (DT) >> > task: ffffffc7dc1a4140 ti: ffffffc7dc118000 task.ti: ffffffc7dc118000 >> > PC is at pci_generic_config_read32+0x4c/0xb8 >> > LR is at pci_generic_config_read32+0x40/0xb8 >> > pc : [] lr : [] pstate: 600001c5 >> > ... >> > Call trace: >> > [] pci_generic_config_read32+0x4c/0xb8 >> > [] pci_user_read_config_byte+0x60/0xc4 >> > [] pci_read_config+0x15c/0x238 >> > [] sysfs_kf_bin_read+0x68/0xa0 >> > [] kernfs_fop_read+0x9c/0x1ac >> > [] __vfs_read+0x44/0x128 >> > [] vfs_read+0x84/0x144 >> > [] SyS_read+0x50/0xb0 >> >> The log shows kernel gets an exception when trying to access Mellanox >> card configuration space. This is usually due to suboptimal PCIe >> SerDes parameters are using in your board, which will cause bad link >> quality. > > I would have hoped that "suboptimal" means that it still works, albeit > not fully optimal ;). Yes, it should still work, but you may see crashes occasionally due to link quality. > >> The PCIe SerDes programming is done in U-Boot, so I suggest you do a >> U-Boot upgrade to our latest X-Gene U-Boot release. >> >> In order to access latest X-Gene U-Boot release, please use APM >> official support channel: >> https://myapm.apm.com >> >> Please register an account at myapm.apm.com if you don't have one >> using following link: >> https://myapm.apm.com/user/register > > Isn't the latest U-Boot source for X-Gene publicly available anywhere? > It's GPL code anyway, so it shouldn't have proprietary code to require > registration, click-through agreements. APM X-Gene U-Boot isn't available publicly yet. Though, if this is required, we can make a public GIT which will be hosted with APM server. As of now, customer who has a board from APM will have to use MyAPM to get U-Boot source and binary. > > -- > Catalin -- Regards, Duc Dang. From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhdang@apm.com (Duc Dang) Date: Tue, 28 Jul 2015 10:39:28 -0700 Subject: X-Gene: Unhandled fault: synchronous external abort in pci_generic_config_read32 In-Reply-To: <20150727113622.GE29945@e104818-lin.cambridge.arm.com> References: <20150724224258.GA23990@google.com> <20150727113622.GE29945@e104818-lin.cambridge.arm.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jul 27, 2015 at 4:36 AM, Catalin Marinas wrote: > On Fri, Jul 24, 2015 at 05:05:19PM -0700, Duc Dang wrote: >> On Fri, Jul 24, 2015 at 3:42 PM, Bjorn Helgaas wrote: >> > I regularly see faults like this on an APM X-Gene: >> > >> > U-Boot 2013.04-mustang_sw_1.14.14 (Dec 16 2014 - 15:59:33) >> > CPU0: APM ARM 64-bit Potenza Rev B0 2400MHz PCP 2400MHz >> > 32 KB ICACHE, 32 KB DCACHE >> > SOC 2000MHz IOBAXI 400MHz AXI 250MHz AHB 200MHz GFC 125MHz >> > ... >> > Unhandled fault: synchronous external abort (0x96000010) at 0xffffff8000110034 > > That's generated by an external device (PCIe root complex, card etc.) > and some mis-configured CPU setting. > >> > Internal error: : 96000010 [#1] SMP >> > Modules linked in: >> > CPU: 0 PID: 3723 Comm: ... 4.1.0-smp-DEV #3 >> > Hardware name: APM X-Gene Mustang board (DT) >> > task: ffffffc7dc1a4140 ti: ffffffc7dc118000 task.ti: ffffffc7dc118000 >> > PC is at pci_generic_config_read32+0x4c/0xb8 >> > LR is at pci_generic_config_read32+0x40/0xb8 >> > pc : [] lr : [] pstate: 600001c5 >> > ... >> > Call trace: >> > [] pci_generic_config_read32+0x4c/0xb8 >> > [] pci_user_read_config_byte+0x60/0xc4 >> > [] pci_read_config+0x15c/0x238 >> > [] sysfs_kf_bin_read+0x68/0xa0 >> > [] kernfs_fop_read+0x9c/0x1ac >> > [] __vfs_read+0x44/0x128 >> > [] vfs_read+0x84/0x144 >> > [] SyS_read+0x50/0xb0 >> >> The log shows kernel gets an exception when trying to access Mellanox >> card configuration space. This is usually due to suboptimal PCIe >> SerDes parameters are using in your board, which will cause bad link >> quality. > > I would have hoped that "suboptimal" means that it still works, albeit > not fully optimal ;). Yes, it should still work, but you may see crashes occasionally due to link quality. > >> The PCIe SerDes programming is done in U-Boot, so I suggest you do a >> U-Boot upgrade to our latest X-Gene U-Boot release. >> >> In order to access latest X-Gene U-Boot release, please use APM >> official support channel: >> https://myapm.apm.com >> >> Please register an account at myapm.apm.com if you don't have one >> using following link: >> https://myapm.apm.com/user/register > > Isn't the latest U-Boot source for X-Gene publicly available anywhere? > It's GPL code anyway, so it shouldn't have proprietary code to require > registration, click-through agreements. APM X-Gene U-Boot isn't available publicly yet. Though, if this is required, we can make a public GIT which will be hosted with APM server. As of now, customer who has a board from APM will have to use MyAPM to get U-Boot source and binary. > > -- > Catalin -- Regards, Duc Dang.