Skip to content

USB and cache related fixes

Tom Rini u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v36 patches 0 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Drop alignment on rootdev/hccr/hcor as a double-check showed that was masking an alignment problem elsewhere (Marek Vasut)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ehci-omap: Do not call dcache_off from omap_ehci_hcd_initdrivers/usb/host/ehci-omap.c+0 -10 replies
2/6ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignmentdrivers/usb/host/ehci-hcd.c drivers/usb/musb/musb_core.h include/usb.h+14 -40 replies
3/6mcx: Disable DCACHE since USB EHCI is enabledinclude/configs/mcx.h+1 -110 replies
3/6mcx: Disable DCACHE since USB EHCI is enabled+0 -01 reply
3/6mcx: Disable DCACHE since USB EHCI is enabled+0 -01 reply
3/6mcx: Disable DCACHE since USB EHCI is enabled+0 -04 replies
3/6mcx: Disable DCACHE since USB EHCI is enabled+0 -00 replies
3/6mcx: Disable DCACHE since USB EHCI is enabled+0 -04 replies
4/6omap3_beagle: Disable DCACHE since USB EHCI is enabledinclude/configs/omap3_beagle.h+1 -10 replies
5/6omap4_panda: Disable DCACHE since USB EHCI is enabledinclude/configs/omap4_panda.h+1 -02 replies
6/6tam3517-common: Disable DCACHE since USB EHCI is enabledinclude/configs/tam3517-common.h+1 -00 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchR Sricharan
1/6
2/6
3/6
3/6
3/6
3/6
3/6
3/6
4/6
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/6] USB and cache related fixes

Hey all,

In commit b8adb12 the cache flushing behavior was changed for the EHCI stack. This change showed a few different problems on TI platforms (where our cacheline size is 64 not 32). First, the dcache_off call that ehci-omap had been doing was now not happening soon enough to paper over the cache issues. This call is removed in patch 1. The second patch deal with the same problem in EHCI and MUSB. The USB spec says that 32 bytes is the minimum alignment but we need larger alignment when the cache is larger. Note that we can't use MAX() here as gcc doesn't allow that expansion inside of align(..). Patches 3 to 6 disable dcache support at build time on all platforms that enable CONFIG_USB_EHCI_OMAP because performing a run-time 'dcache off' operation leaves USB unusable due to the unaligned flushes that are still attempted. Run-time testing on an omap3_beagle shows a very slight (less than half a second, checked with grabserial) increase in load time for a 3.5-rc3 kernel image from SD card. Note that otherwise a tftp load takes minutes to complete rather than seconds due to all of the console spam.

Tested on omap3_beagle (which was previously broken) and a MAKEALL -a arm looks good too.

Changes in v4:
- Drop alignment on rootdev/hccr/hcor as a double-check showed that was masking an alignment problem elsewhere (Marek Vasut)

Changes in v3:
- Drop the cache_v7.c change and instead make all CONFIG_USB_EHCI_OMAP boards disable DCACHE at build time.

Changes in v2:
- Condense last two patches into one that puts the test into <usb.h>

Signature · 1 line
Tom