From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754579AbbJGOc6 (ORCPT ); Wed, 7 Oct 2015 10:32:58 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:35023 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753997AbbJGOc5 (ORCPT ); Wed, 7 Oct 2015 10:32:57 -0400 MIME-Version: 1.0 In-Reply-To: <5139149.TmJY1YjqAU@wuerfel> References: <1444118168-13086-1-git-send-email-gabriel.fernandez@linaro.org> <1444118168-13086-4-git-send-email-gabriel.fernandez@linaro.org> <5139149.TmJY1YjqAU@wuerfel> From: Gabriel Fernandez Date: Wed, 7 Oct 2015 16:32:16 +0200 Message-ID: Subject: Re: [PATCH v5 3/3] PCI: st: Provide support for the sti PCIe controller To: Arnd Bergmann Cc: Mark Rutland , Andrew Lunn , "kernel@stlinux.com" , Viresh Kumar , Liviu Dudau , Sachin Kamat , "linux-kernel@vger.kernel.org" , Tanmay Inamdar , Lee Jones , Mauro Carvalho Chehab , Phil Edworthy , Russell King , Jingoo Han , Kishon Vijay Abraham I , Muralidharan Karicheri , "linux-pci@vger.kernel.org" , Thierry Reding , "devicetree@vger.kernel.org" , Pawel Moll , Ian Campbell , Kumar Gala , Tejun Heo , Rob Herring , Bjorn Helgaas , Fabrice Gasnier , "linux-arm-kernel@lists.infradead.org" , Maxime Coquelin , Srinivas Kandagatla , Patrice Chotard , Minghuan Lian , Zhou Wang , Greg KH , Joe Perches , Andrew Morton , "David S. Miller" , Lucas Stach 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 6 October 2015 at 23:01, Arnd Bergmann wrote: > On Tuesday 06 October 2015 09:56:08 Gabriel Fernandez wrote: >> + >> +/* >> + * On ARM platforms, we actually get a bus error returned when the PCIe IP >> + * returns a UR or CRS instead of an OK. >> + */ >> +static int st_pcie_abort_handler(unsigned long addr, unsigned int fsr, >> + struct pt_regs *regs) >> +{ >> + return 0; >> +} >> > > I'm not sure if we discussed this already for this driver. Usually > you should have a register in the PCI host that you can check to see > what caused the abort. > > Try to make this as narrow as possible so you return nonzero for > any abort except the one you actually try to prevent. > > Arnd > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel Hi Arnd, Yes we already discussed about that: http://www.spinics.net/lists/arm-kernel/msg393705.html We can probably improve the abort handling once the patch below will be merged http://lists.infradead.org/pipermail/linux-arm-kernel/2015-August/366215.html As imx6 does the same, does it sound reasonable to keep this approach of the st driver and start discussing about generic way to handle abort for DW pci driver ? Best regards Gabriel