[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAG374jAnKQCerh3nBX9WsmwP4g6uPLKPSZ2EhhwPa-i89RsyZQ@mail.gmail.com>
Date: Wed, 7 Oct 2015 16:32:16 +0200
From: Gabriel Fernandez <gabriel.fernandez@...aro.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Mark Rutland <mark.rutland@....com>, Andrew Lunn <andrew@...n.ch>,
"kernel@...inux.com" <kernel@...inux.com>,
Viresh Kumar <viresh.kumar@...aro.org>,
Liviu Dudau <liviu.dudau@....com>,
Sachin Kamat <sachin.kamat@...sung.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Tanmay Inamdar <tinamdar@....com>,
Lee Jones <lee.jones@...aro.org>,
Mauro Carvalho Chehab <mchehab@....samsung.com>,
Phil Edworthy <phil.edworthy@...esas.com>,
Russell King <linux@....linux.org.uk>,
Jingoo Han <jg1.han@...sung.com>,
Kishon Vijay Abraham I <kishon@...com>,
Muralidharan Karicheri <m-karicheri2@...com>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
Thierry Reding <treding@...dia.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Pawel Moll <pawel.moll@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>, Tejun Heo <tj@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Fabrice Gasnier <fabrice.gasnier@...com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Maxime Coquelin <maxime.coquelin@...com>,
Srinivas Kandagatla <srinivas.kandagatla@...il.com>,
Patrice Chotard <patrice.chotard@...com>,
Minghuan Lian <Minghuan.Lian@...escale.com>,
Zhou Wang <wangzhou1@...ilicon.com>,
Greg KH <gregkh@...uxfoundation.org>,
Joe Perches <joe@...ches.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"David S. Miller" <davem@...emloft.net>,
Lucas Stach <l.stach@...gutronix.de>
Subject: Re: [PATCH v5 3/3] PCI: st: Provide support for the sti PCIe controller
On 6 October 2015 at 23:01, Arnd Bergmann <arnd@...db.de> 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@...ts.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists