From: Felipe Balbi <felipe.balbi@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: dwc3: gadget: make cache-maintenance on event buffers more robust
Date: Wed, 05 Apr 2017 12:49:39 +0300 [thread overview]
Message-ID: <87k26zgp58.fsf@linux.intel.com> (raw)
In-Reply-To: <D0195666-8EE8-4C21-B0AC-39E79197D8A4@theobroma-systems.com>
Hi,
"Dr. Philipp Tomsich" <philipp.tomsich@theobroma-systems.com> writes:
>>>> Good point on the “long”, especially as I just copied this from other occurences and it’s consistently wrong throughout DWC3 in U-Boot:
>>>
>>> Hrm, I thought the driver was ported over from Linux, so is this broken
>>> in Linux too ?
>>
>> haven't seen a problem in almost 6 years dealing with this IP.
>
> The integer-sizes on the flushing really aren’t a big issue, as everyone runs from the lower 32bits as of today.
> And it could easily be another 6 years, before we hit the first 64bit address for any of the buffers being flushed.
> Even as the integer types on the dwc3_flush_range are consistently mismatches, that is just a sideshow and
> doesn’t cause any issues for anyone.
>
> The big one for us is really the patch submitted to reorder the flushes (i.e. clean+invalidate operations),
> as we sometimes (depends both on what happened before that in U-Boot — e.g. using the network
> stack will always hide this — and on what configuration we compile into U-Boot) have cachelines
> matching the allocation via dma_alloc_coherent either as cached (or possibly even as modified) in our
> cache.
>
> Any opinion on changing the sequencing of cache-maintenance relative to the payload?
no opinion, no. We've had one similar issue in linux WRT RNDIS. It was a
very similar situation (cache maintenance was ordered wrongly and ended
up corrupting req->buf).
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170405/c3ccbc9d/attachment.sig>
next prev parent reply other threads:[~2017-04-05 9:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 17:49 [U-Boot] [PATCH] usb: dwc3: gadget: make cache-maintenance on event buffers more robust Philipp Tomsich
2017-04-04 16:15 ` Marek Vasut
2017-04-04 17:46 ` Dr. Philipp Tomsich
2017-04-04 19:01 ` Marek Vasut
2017-04-04 19:56 ` Dr. Philipp Tomsich
2017-04-04 20:09 ` Marek Vasut
2017-04-04 20:26 ` Dr. Philipp Tomsich
2017-04-05 10:25 ` Marek Vasut
2017-04-05 10:57 ` Dr. Philipp Tomsich
2017-04-05 11:25 ` Marek Vasut
2017-04-05 8:18 ` Felipe Balbi
2017-04-05 8:33 ` Dr. Philipp Tomsich
2017-04-05 9:49 ` Felipe Balbi [this message]
2017-04-05 8:43 ` Marek Vasut
2017-04-05 8:15 ` Felipe Balbi
2017-04-05 8:43 ` Marek Vasut
-- strict thread matches above, loose matches on Subject: below --
2017-04-08 6:09 mohammadjannati04
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k26zgp58.fsf@linux.intel.com \
--to=felipe.balbi@linux.intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox