Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2019-02-12 Thread Stefan Agner
On 12.02.2019 12:33, Lorenzo Pieralisi wrote: > On Tue, Feb 12, 2019 at 09:54:54AM +0100, Lucas Stach wrote: >> Hi Bjorn, >> >> Am Montag, den 11.02.2019, 15:39 -0600 schrieb Bjorn Helgaas: >> > On Wed, Feb 06, 2019 at 10:57:32AM +0100, Stefan Agner wrote: >> > > Define the length of the DBI regist

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2019-02-12 Thread Lorenzo Pieralisi
On Tue, Feb 12, 2019 at 09:54:54AM +0100, Lucas Stach wrote: > Hi Bjorn, > > Am Montag, den 11.02.2019, 15:39 -0600 schrieb Bjorn Helgaas: > > On Wed, Feb 06, 2019 at 10:57:32AM +0100, Stefan Agner wrote: > > > Define the length of the DBI registers. This makes sure that > > > the kernel does not

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2019-02-12 Thread Lucas Stach
Hi Bjorn, Am Montag, den 11.02.2019, 15:39 -0600 schrieb Bjorn Helgaas: > On Wed, Feb 06, 2019 at 10:57:32AM +0100, Stefan Agner wrote: > > Define the length of the DBI registers. This makes sure that > > the kernel does not access registers beyond that point, avoiding > > the following abort on a

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2019-02-11 Thread Bjorn Helgaas
On Wed, Feb 06, 2019 at 10:57:32AM +0100, Stefan Agner wrote: > Define the length of the DBI registers. This makes sure that > the kernel does not access registers beyond that point, avoiding > the following abort on a i.MX 6Quad: > # cat /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:0

[PATCH 2/2] PCI: imx6: limit DBI register length

2019-02-06 Thread Stefan Agner
Define the length of the DBI registers. This makes sure that the kernel does not access registers beyond that point, avoiding the following abort on a i.MX 6Quad: # cat /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:00.0/config [ 100.021433] Unhandled fault: imprecise external abort

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-20 Thread Stefan Agner
On 20.11.2018 14:03, Leonard Crestez wrote: > From: Stefan Agner >> On 20.11.2018 11:22, Leonard Crestez wrote: >> > On Mon, 2018-11-19 at 10:41 +0100, Stefan Agner wrote: >> >> Define the length of the DBI registers. This makes sure that >> >> the kernel does not access registers beyond that poin

RE: [PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-20 Thread Leonard Crestez
From: Stefan Agner > On 20.11.2018 11:22, Leonard Crestez wrote: > > On Mon, 2018-11-19 at 10:41 +0100, Stefan Agner wrote: > >> Define the length of the DBI registers. This makes sure that > >> the kernel does not access registers beyond that point, avoiding > >> the following abort on a i.MX 6Qu

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-20 Thread Stefan Agner
On 20.11.2018 11:22, Leonard Crestez wrote: > On Mon, 2018-11-19 at 10:41 +0100, Stefan Agner wrote: >> Define the length of the DBI registers. This makes sure that >> the kernel does not access registers beyond that point, avoiding >> the following abort on a i.MX 6Quad: >> # cat /sys/devices/so

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-20 Thread Leonard Crestez
On Mon, 2018-11-19 at 10:41 +0100, Stefan Agner wrote: > Define the length of the DBI registers. This makes sure that > the kernel does not access registers beyond that point, avoiding > the following abort on a i.MX 6Quad: > # cat /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:00.0/con

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-19 Thread Trent Piepho
On Mon, 2018-11-19 at 10:41 +0100, Stefan Agner wrote: > > > +static const struct imx6_pcie_drvdata imx6q_pcie_drvdata = { > + .variant = IMX6Q, > + .dbi_length = 0x15c, > +}; > + > +static const struct imx6_pcie_drvdata imx6sx_pcie_drvdata = { > + .variant = IMX6SX, > +}; > + > +sta

Re: [PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-19 Thread Trent Piepho
On Mon, 2018-11-19 at 10:41 +0100, Stefan Agner wrote: > Define the length of the DBI registers. This makes sure that > the kernel does not access registers beyond that point, avoiding > the following abort on a i.MX 6Quad: > # cat > /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:00.0/c

[PATCH 2/2] PCI: imx6: limit DBI register length

2018-11-19 Thread Stefan Agner
Define the length of the DBI registers. This makes sure that the kernel does not access registers beyond that point, avoiding the following abort on a i.MX 6Quad: # cat /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:00.0/config [ 100.021433] Unhandled fault: imprecise external abort