Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-29 Thread Stefan Agner
On 28.11.2018 20:35, Robin Murphy wrote: > On 28/11/2018 17:53, Stefan Agner wrote: >> On 28.11.2018 17:16, Robin Murphy wrote: >>> Hi Stefan, >>> >>> On 28/11/2018 13:25, Stefan Agner wrote: Add a fault handler which handles reads in Thumb-2 mode. Install the appropriate handler dependin

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-29 Thread Stefan Agner
On 28.11.2018 19:01, Russell King - ARM Linux wrote: > On Wed, Nov 28, 2018 at 02:25:54PM +0100, Stefan Agner wrote: >> Add a fault handler which handles reads in Thumb-2 mode. Install >> the appropriate handler depending on which mode the kernel has >> been built. This avoids an "Unhandled fault:

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Trent Piepho
On Wed, 2018-11-28 at 19:52 +, Robin Murphy wrote: > On 28/11/2018 18:56, Trent Piepho wrote: > > On Wed, 2018-11-28 at 16:16 +, Robin Murphy wrote: > > > > > > > > > > > +static int imx6q_pcie_abort_handler_thumb2(unsigned long addr, > > > > + unsigned int fsr, struct pt

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Robin Murphy
On 28/11/2018 18:56, Trent Piepho wrote: On Wed, 2018-11-28 at 16:16 +, Robin Murphy wrote: +static int imx6q_pcie_abort_handler_thumb2(unsigned long addr, + unsigned int fsr, struct pt_regs *regs) +{ + unsigned long pc = instruction_pointer(regs); + unsigned

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Robin Murphy
On 28/11/2018 17:53, Stefan Agner wrote: On 28.11.2018 17:16, Robin Murphy wrote: Hi Stefan, On 28/11/2018 13:25, Stefan Agner wrote: Add a fault handler which handles reads in Thumb-2 mode. Install the appropriate handler depending on which mode the kernel has been built. This avoids an "Unha

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Trent Piepho
On Wed, 2018-11-28 at 16:16 +, Robin Murphy wrote: > > > > > +static int imx6q_pcie_abort_handler_thumb2(unsigned long addr, > > + unsigned int fsr, struct pt_regs *regs) > > +{ > > + unsigned long pc = instruction_pointer(regs); > > + unsigned long instr = *(unsigned long *)p

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Russell King - ARM Linux
On Wed, Nov 28, 2018 at 02:25:54PM +0100, Stefan Agner wrote: > Add a fault handler which handles reads in Thumb-2 mode. Install > the appropriate handler depending on which mode the kernel has > been built. This avoids an "Unhandled fault: external abort on > non-linefetch (0x1008) at 0xf0a8"

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Stefan Agner
On 28.11.2018 17:16, Robin Murphy wrote: > Hi Stefan, > > On 28/11/2018 13:25, Stefan Agner wrote: >> Add a fault handler which handles reads in Thumb-2 mode. Install >> the appropriate handler depending on which mode the kernel has >> been built. This avoids an "Unhandled fault: external abort on

Re: [PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Robin Murphy
Hi Stefan, On 28/11/2018 13:25, Stefan Agner wrote: Add a fault handler which handles reads in Thumb-2 mode. Install the appropriate handler depending on which mode the kernel has been built. This avoids an "Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a8" during boot on

[PATCH] pci: imx6: support kernels built in Thumb-2 mode

2018-11-28 Thread Stefan Agner
Add a fault handler which handles reads in Thumb-2 mode. Install the appropriate handler depending on which mode the kernel has been built. This avoids an "Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a8" during boot on a device with a PCIe switch connected. Link: https://l