From: Dinh Nguyen Date: Thu, 3 Nov 2016 09:21:19 -0500 Subject: [U-Boot] [RFC] 0/4] Add Pl330 DMA support In-Reply-To: References: <20161010155223.23751-1-dinguyen@kernel.org> <21754438-9061-fda2-8457-890ea33d4a02@kernel.org> <20be18eb-ec28-8482-a652-7c3b0acddfc4@denx.de> <7e3afb41-02f3-ee2c-11f8-f7d0735c832b@denx.de> <1fd3ad74-c8f7-35f1-56ee-e3e80fdeb7f5@kernel.org> <53d8d38d-60c5-f7e7-6098-92e4c7f94d93@kernel.org> <689b6238-622b-70ee-2675-c24c84b2d553@denx.de> <26d71cc0-6ea2-6396-2963-f1ee04f03ea1@kernel.org> Message-ID: <2b6a6592-bfa0-71aa-4312-eca074c5d92e@kernel.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/02/2016 03:47 PM, Marek Vasut wrote: > On 11/02/2016 05:30 PM, Dinh Nguyen wrote: >> On Tue, Nov 1, 2016 at 3:43 PM, Dinh Nguyen wrote: >>> >>> >>> On 11/01/2016 03:42 PM, Marek Vasut wrote: >>>> On 11/01/2016 09:39 PM, Dinh Nguyen wrote: >>>>> >>>>> >>>>> On 11/01/2016 03:09 PM, Marek Vasut wrote: >>>>>> On 11/01/2016 04:43 PM, Dinh Nguyen wrote: >>>>>>> >>>>>>> >>>>>>> On 10/29/2016 02:59 PM, Marek Vasut wrote: >>>>>>>> On 10/18/2016 05:50 PM, Dinh Nguyen wrote: >>>>>>>>> On Sun, Oct 16, 2016 at 10:59 AM, Marek Vasut wrote: >>>>>>>>>> On 10/15/2016 12:10 AM, Dinh Nguyen wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 10/10/2016 10:52 AM, Dinh Nguyen wrote: >>>>>>>>>>>> Hi, >>>>>>>>>>>> >>>>>>>>>>>> This patchset adds the PL330 DMA driver to U-Boot. The SoCFPGA platform makes >>>>>>>>>>>> use of the PL330 to transfer zereos to the SDRAM which enables the ECC bit. >>>>>>>>>>>> >>>>>>>>>>>> This is only an RFC because after rebasing to v2016.11-rc1, I had to revert >>>>>>>>>>>> the following patch "a78cd8613204 ARM: Rework and correct barrier definitions" >>>>>>>>>>>> in order for this patch set to work correctly. With the above patch applied, >>>>>>>>>>>> after the SDRAM scrubbing is complete, the SPL is failing to find the MMC >>>>>>>>>>>> device. >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> I kinda figured out why patch "a78cd8613204 ARM: Rework and correct >>>>>>>>>>> barrier definitions" is causing SPL to fail after the SDRAM scrub >>>>>>>>>>> operation. It appears that before the above mentioned patch, the dmb() >>>>>>>>>>> operation is defined as this: >>>>>>>>>>> >>>>>>>>>>> #define dmb() __asm__ __volatile__ ("" : : : "memory") >>>>>>>>>>> >>>>>>>>>>> after the patch, the dmb is now: >>>>>>>>>>> >>>>>>>>>>> #define DMB asm volatile ("dmb sy" : : : "memory") >>>>>>>>>>> >>>>>>>>>>> So the "dmb sy" as described in the ARM documentation is a "Full system >>>>>>>>>>> DMB operation". For whatever reason, this change is causing the SPL >>>>>>>>>>> error after the SDRAM scrub operation. >>>>>>>>>> >>>>>>>>>> Thanks for looking into this, can you poke into it some more ? >>>>>>>>>> >>>>>>>>> >>>>>>>>> Of course.. >>>>>>>> >>>>>>>> The patch is causing a failure even in normal operation -- if you boot >>>>>>>> the socfpga board and type "reset", it won't reset with the patch. >>>>>>>> >>>>>>> >>>>>>> Can I ask what board are you seeing this on? I'm seeing that on my Atlas >>>>>>> board, it does not reset properly(even with the patch reverted). But >>>>>>> "reset" is working fine on my devkit, with and without the patch. >>>>>> >>>>>> SoCKit and MCVEVK. >>>>>> >>>>>> I tried bisecting it, it worked on 2016.07 and doesn't on 2016.09 , and >>>>>> I arrived at this patch. Maybe you can double-check this ? >>>>>> >>>>> >>>>> Okay, I can check it on the SoCKit. >>>> >>>> It also happens on MCVEVK, but that's probably moot for your test ;-) >>>> >>> >>> I don't have an MCVEVK. >>> >> >> The "reset" functionality is working fine on the SoCKit with 2016.11-rc3. > > Does it work on 2016.09.01 too ? > Yes...reset works fine on 2016.09.01 and 2016.09 on my SoCKit. Dinh