From: Marek Vasut Date: Thu, 20 Oct 2016 15:32:18 +0200 Subject: [U-Boot] [PATCH] spi: cadence_qspi_apb: Improve indirect write transaction In-Reply-To: <9023dda4-da25-d791-5621-371d4474e916@ti.com> References: <1475752747-28763-1-git-send-email-vigneshr@ti.com> <3e1882af-57ab-52b5-1f6b-19737d73e8c6@ti.com> <52dc40d8-97b8-1f8e-681c-5487d1eefdd2@denx.de> <9e86ac30-3112-259a-c60f-5abee73db4b6@ti.com> <49ba5d08-a748-89b7-1c20-c87fa5c3fe00@denx.de> <9023dda4-da25-d791-5621-371d4474e916@ti.com> Message-ID: <5107be2e-266e-8ae7-1e7a-7e2c31ec3e27@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/20/2016 01:01 PM, Vignesh R wrote: > > > On Wednesday 19 October 2016 08:58 PM, Marek Vasut wrote: >> On 10/19/2016 05:19 PM, Jagan Teki wrote: >>> On Wed, Oct 19, 2016 at 8:18 PM, Marek Vasut wrote: >>>> On 10/19/2016 04:41 PM, Jagan Teki wrote: >>>>> On Wed, Oct 19, 2016 at 10:10 AM, Vignesh R wrote: >>>>>> Hi, > ... >>>>>>> You can probably pull this block from the else branch. >>>>>> >>>>>> Yeah, I guess writesb() can handle zero byte write request I believe. >>>>>> >>>>>> With above change, can I have your Acked-by/Reviewed-by? >>>>> >>>>> Also try to get the 'sf update' data before and after and append it on >>>>> commit message. >>>> >>>> Why? Seems useless to me. >>> >>> Since it's a performance improvement patch better to have that >>> numbers, no harm getting that data. >> >> Urghhhh, sf update is mixing multiple access patterns, it is by no means >> a good performance metric for evaluating performance of the >> write path. >> >> What you would need to do here is perform long unaligned writes >> repeatedly (to eliminate outliers) and measure the improvement. >> And you'd have to make sure the erase cycle is not counted in. >> >> I suspect the performance improvement would be negligible, but >> I'd be happy to be proven wrong. If it'd be negligible, then >> we should probably not complicate the code more and just drop >> this patch. >> > > Today, I was performing unaligned writes of various sizes to get > performance numbers and discovered that unaligned writes (i.e txbuf > address is not word aligned or write_byte % 4 != 0) are sometimes > failing on TI platforms with Cadence QSPI (with or w/o this patch) :( > Reverting the patch "mtd: cqspi: Simplify indirect write code" seems to > be helping. I don't see anything obviously wrong here. Let me debug > whats causing the difference and get back. Can you please drill into it ? I'd be happy to help testing. -- Best regards, Marek Vasut