Re: IMX8MM 4GiB boundary issue

2022-02-27 Thread Marek Vasut
On 2/26/22 14:30, Mark Kettenis wrote: Date: Fri, 25 Feb 2022 14:50:59 +0100 From: Marek Vasut On 2/25/22 12:37, Mark Kettenis wrote: From: Fabio Estevam Date: Fri, 25 Feb 2022 08:12:58 -0300 Hi Tim, On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: Fabio, No, that commit is 'not' in v2

Re: IMX8MM 4GiB boundary issue

2022-02-26 Thread Mark Kettenis
> Date: Fri, 25 Feb 2022 14:50:59 +0100 > From: Marek Vasut > > On 2/25/22 12:37, Mark Kettenis wrote: > >> From: Fabio Estevam > >> Date: Fri, 25 Feb 2022 08:12:58 -0300 > >> > >> Hi Tim, > >> > >> On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: > >> > >>> Fabio, > >>> > >>> No, that commit

Re: IMX8MM 4GiB boundary issue

2022-02-25 Thread Marek Vasut
On 2/25/22 12:37, Mark Kettenis wrote: From: Fabio Estevam Date: Fri, 25 Feb 2022 08:12:58 -0300 Hi Tim, On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: Fabio, No, that commit is 'not' in v2021.07. Please test with master and you should see that go away. Yes, you are right. Regardles

Re: IMX8MM 4GiB boundary issue

2022-02-25 Thread Mark Kettenis
> From: Fabio Estevam > Date: Fri, 25 Feb 2022 08:12:58 -0300 > > Hi Tim, > > On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: > > > Fabio, > > > > No, that commit is 'not' in v2021.07. Please test with master and you > > should see that go away. > > Yes, you are right. > > > Regardless, Ma

Re: IMX8MM 4GiB boundary issue

2022-02-25 Thread Fabio Estevam
Hi Tim, On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: > Fabio, > > No, that commit is 'not' in v2021.07. Please test with master and you > should see that go away. Yes, you are right. > Regardless, Marek's suggestion is the right fix if you can manage > that... we really don't want to limi

Re: IMX8MM 4GiB boundary issue

2022-02-24 Thread Tim Harvey
On Thu, Feb 24, 2022 at 12:32 PM Fabio Estevam wrote: > > Hi Tim, > > On Thu, Feb 24, 2022 at 5:20 PM Tim Harvey wrote: > > > Fabio, > > > > As Marek points out the individual peripheral drivers have not been > > updated properly but this should be worked around with commit > > e27bddff4b97 ("imx

Re: IMX8MM 4GiB boundary issue

2022-02-24 Thread Fabio Estevam
Hi Tim, On Thu, Feb 24, 2022 at 5:20 PM Tim Harvey wrote: > Fabio, > > As Marek points out the individual peripheral drivers have not been > updated properly but this should be worked around with commit > e27bddff4b97 ("imx8m: Restrict usable memory to space below 4G > boundary"). I am using 20

Re: IMX8MM 4GiB boundary issue

2022-02-24 Thread Marek Vasut
On 2/24/22 21:19, Tim Harvey wrote: On Thu, Feb 24, 2022 at 12:03 PM Marek Vasut wrote: On 2/24/22 20:50, Fabio Estevam wrote: Hi Tim, Sorry for resurrecting such an old thread. On Fri, Sep 25, 2020 at 11:52 AM Tim Harvey wrote: Greetings, I'm working with an IMX8MM board that has 4GiB

Re: IMX8MM 4GiB boundary issue

2022-02-24 Thread Tim Harvey
On Thu, Feb 24, 2022 at 12:03 PM Marek Vasut wrote: > > On 2/24/22 20:50, Fabio Estevam wrote: > > Hi Tim, > > > > Sorry for resurrecting such an old thread. > > > > On Fri, Sep 25, 2020 at 11:52 AM Tim Harvey wrote: > >> > >> Greetings, > >> > >> I'm working with an IMX8MM board that has 4GiB of

Re: IMX8MM 4GiB boundary issue

2022-02-24 Thread Marek Vasut
On 2/24/22 20:50, Fabio Estevam wrote: Hi Tim, Sorry for resurrecting such an old thread. On Fri, Sep 25, 2020 at 11:52 AM Tim Harvey wrote: Greetings, I'm working with an IMX8MM board that has 4GiB of DRAM. I've found that in this configuration the MMC driver and FEC network driver appear

Re: IMX8MM 4GiB boundary issue

2022-02-24 Thread Fabio Estevam
Hi Tim, Sorry for resurrecting such an old thread. On Fri, Sep 25, 2020 at 11:52 AM Tim Harvey wrote: > > Greetings, > > I'm working with an IMX8MM board that has 4GiB of DRAM. I've found > that in this configuration the MMC driver and FEC network driver > appear to have some issues with crossin

Re: IMX8MM 4GiB boundary issue

2020-10-02 Thread Fabio Estevam
On Thu, Oct 1, 2020 at 1:50 PM Marek Vasut wrote: > In Linux, R-Car3 uses IOMMU, so there is no performance hit on that > specific hardware. On iMX8M, you would likely need to set some bit which > indicates the hardware supports only 32bit DMA, so the DMA buffers would > be allocated below the 32

RE: IMX8MM 4GiB boundary issue

2020-10-02 Thread Peng Fan
> Subject: Re: IMX8MM 4GiB boundary issue > > On Sat, Sep 26, 2020 at 7:35 PM Peng Fan wrote: > > > > > Subject: Re: IMX8MM 4GiB boundary issue > > > > > > On 9/27/20 2:56 AM, Peng Fan wrote: > > > > > > [...] > > >

Re: IMX8MM 4GiB boundary issue

2020-10-01 Thread Marek Vasut
On 10/1/20 6:33 PM, Tim Harvey wrote: > On Sun, Sep 27, 2020 at 7:47 AM Marek Vasut wrote: >> >> On 9/27/20 4:35 AM, Peng Fan wrote: >>>> Subject: Re: IMX8MM 4GiB boundary issue >>>> >>>> On 9/27/20 2:56 AM, Peng Fan wrote: >>>> >

Re: IMX8MM 4GiB boundary issue

2020-10-01 Thread Tim Harvey
On Sun, Sep 27, 2020 at 7:47 AM Marek Vasut wrote: > > On 9/27/20 4:35 AM, Peng Fan wrote: > >> Subject: Re: IMX8MM 4GiB boundary issue > >> > >> On 9/27/20 2:56 AM, Peng Fan wrote: > >> > >> [...] > >> > >>>>> I c

Re: IMX8MM 4GiB boundary issue

2020-09-30 Thread Tim Harvey
On Sat, Sep 26, 2020 at 7:35 PM Peng Fan wrote: > > > Subject: Re: IMX8MM 4GiB boundary issue > > > > On 9/27/20 2:56 AM, Peng Fan wrote: > > > > [...] > > > > >>> I can imagine that either the FEC/SDHCI is limited to 32bit > > >>

Re: IMX8MM 4GiB boundary issue

2020-09-27 Thread Marek Vasut
On 9/27/20 4:35 AM, Peng Fan wrote: >> Subject: Re: IMX8MM 4GiB boundary issue >> >> On 9/27/20 2:56 AM, Peng Fan wrote: >> >> [...] >> >>>>> I can imagine that either the FEC/SDHCI is limited to 32bit >>>>> addressing in hardwa

RE: IMX8MM 4GiB boundary issue

2020-09-26 Thread Peng Fan
> Subject: Re: IMX8MM 4GiB boundary issue > > On 9/27/20 2:56 AM, Peng Fan wrote: > > [...] > > >>> I can imagine that either the FEC/SDHCI is limited to 32bit > >>> addressing in hardware (the DMA can only operate on 32bit range due > >>>

Re: IMX8MM 4GiB boundary issue

2020-09-26 Thread Marek Vasut
On 9/27/20 2:56 AM, Peng Fan wrote: [...] >>> I can imagine that either the FEC/SDHCI is limited to 32bit addressing >>> in hardware (the DMA can only operate on 32bit range due to it coming >>> from 32bit systems), OR, the drivers need to be patched to support the >>> 64bit addresses properly on

RE: IMX8MM 4GiB boundary issue

2020-09-26 Thread Peng Fan
> Subject: Re: IMX8MM 4GiB boundary issue > > On Fri, Sep 25, 2020 at 8:05 AM Marek Vasut wrote: > > > > On 9/25/20 4:52 PM, Tim Harvey wrote: > > > Greetings, > > > > > > I'm working with an IMX8MM board that has 4GiB of DRAM. I've fou

Re: IMX8MM 4GiB boundary issue

2020-09-25 Thread Marek Vasut
On 9/25/20 5:12 PM, Tim Harvey wrote: > On Fri, Sep 25, 2020 at 8:05 AM Marek Vasut wrote: >> >> On 9/25/20 4:52 PM, Tim Harvey wrote: >>> Greetings, >>> >>> I'm working with an IMX8MM board that has 4GiB of DRAM. I've found >>> that in this configuration the MMC driver and FEC network driver >>>

Re: IMX8MM 4GiB boundary issue

2020-09-25 Thread Tim Harvey
On Fri, Sep 25, 2020 at 8:05 AM Marek Vasut wrote: > > On 9/25/20 4:52 PM, Tim Harvey wrote: > > Greetings, > > > > I'm working with an IMX8MM board that has 4GiB of DRAM. I've found > > that in this configuration the MMC driver and FEC network driver > > appear to have some issues with crossing t

Re: IMX8MM 4GiB boundary issue

2020-09-25 Thread Marek Vasut
On 9/25/20 4:52 PM, Tim Harvey wrote: > Greetings, > > I'm working with an IMX8MM board that has 4GiB of DRAM. I've found > that in this configuration the MMC driver and FEC network driver > appear to have some issues with crossing the 4GiB address space. If I > tell U-Boot I have 3GiB everything

IMX8MM 4GiB boundary issue

2020-09-25 Thread Tim Harvey
Greetings, I'm working with an IMX8MM board that has 4GiB of DRAM. I've found that in this configuration the MMC driver and FEC network driver appear to have some issues with crossing the 4GiB address space. If I tell U-Boot I have 3GiB everything is ok, but when I set it to 4GiB I see the followi