Skip to main content
Visitor
Question

ISP1564 EHCI intermittent PCI/DMA failure

Hello Team,

We are reaching out regarding a reproducible hardware issue we have isolated on the  ISP1564 Hi-Speed USB PCI Host Controller (VID: 0x1131, DID: 0x1562, Rev: 0x11) in an embedded production platform.

1. System Architecture
Host Controller: ISP1564 (EHCI Function 2, 32-bit/33 MHz PCI, Cache Line Size = 64 bytes, MemWINV+, Latency = 48).
Platform & OS: MIPS64 (Cavium Octeon CN5020) running Linux kernel 2.6.32.
USB Topology & Workload: Four high-speed cellular modems (Sierra Wireless EM7565) connected behind a 4-port USB 2.0 hub on a single ISP1564 downstream port, running concurrent bulk-IN/OUT IP traffic (QMI/PPP, 512-byte max packet size).

2. Issue Summary & Diagnostic Findings
After extended continuous operation (typically 0.6 to 54 hours), the ISP1564 EHCI controller experiences a permanent transfer stall accompanied by an exact, repeatable out-of-bounds DMA write into host memory:
Exact Overrun Signature: Using page-aligned RX buffers with canary padding, we captured five consecutive stall events across two separate hardware units. In every instance, the ISP1564 wrote exactly 576 bytes past the end of a 512-byte bulk-IN qTD buffer (page offsets +0x200 to +0x43f), stopping cleanly on a 64-byte cache-line boundary (+0x440).
Controller SRAM Leakage: The 576 overrun bytes consist of 512 bytes of uninitialized internal controller SRAM (exhibiting a persistent, chip-unique bit signature that survives warm reboots) followed by a 64-byte wrap-around of the beginning of the RX buffer at +0x400.
Simultaneous Wedge: The packet at +0x000 is received intact, but the controller never retires the qTD (remaining bytes still read 512) and stalls permanently until a host controller reset (HCReset) is issued. Across ~437,000 normal packets prior to each stall, zero canary hits occurred.
Ruled-Out Causes:
PCI Bus Errors: With ParErr+ and SERR+ enabled, PCI Status (06h) shows zero errors (ParErr-, <PERR-, >SERR-, <MAbort-, <TAbort-).
EHCI Schedule Unlink Races: Over 1.19 million QH unlinks completed with zero touches to unlinked QHs, and varying IAA doorbell timing had no effect.

3. Questions for ST
Known Silicon Errata: Is this 576-byte bulk-IN FIFO/DMA overrun and lockup a known silicon erratum on the ISP1564 (rev 0x11)? If so, can you share the official errata sheet or application note?
System Tuning Register (BAR0 + 0x6C): We are currently testing disabling USB IN Ring Buffering (RBD = 1, bit 1) and USB OUT Watermarking (WMD = 1, bit 0) via BAR0 + 0x6C (and corresponding SYS_TUNE hardware strapping). Can you confirm whether disabling RBD (or adjusting SYS_TUNE / PCI MWI / Cache Line Size) is the recommended hardware/register workaround to prevent internal FIFO pointer overruns?
Recovery Guidance: When this wedge occurs, is a software HCReset (USBCMD bit 1) sufficient to fully clear the internal FIFO/DMA state machine, or is a full PCI RST# / power cycle required?
Thank you for your assistance. We can provide full canary memory dumps, register snapshots, and PCI traces upon request.

Thanks & Regards
Simon