Skip to content

cx23885: Ryzen/Xeon DMA/interrupt fixes

Brad Love linux-media 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cx23885: Handle additional bufs on interruptdrivers/media/pci/cx23885/cx23885-core.c+24 -130 replies
2/5cx23885: Use PCI and TS masks in irq functionsdrivers/media/pci/cx23885/cx23885-core.c+10 -20 replies
3/5cx23885: Ryzen DMA related RiSC engine stall fixesdrivers/media/pci/cx23885/cx23885-core.c drivers/media/pci/cx23885/cx23885-reg.h+75 -20 replies
4/5cx23885: Expand registers in dma tsport reg dumpdrivers/media/pci/cx23885/cx23885-core.c+12 -00 replies
5/5cx23885: Add some missing register documentationdrivers/media/pci/cx23885/cx23885-core.c+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] cx23885: Ryzen/Xeon DMA/interrupt fixes

Various problems have been reported to Hauppauge related to usage of QuadHD products on Ryzen platforms and some Xeon platforms. The most serious issue causes adapters on the card to stop working. When the four tuners are in use it is possible to experience RiSc engine OP CODE errors, at which point the DMA engine for that port stalls and becomes inoperable until a reboot. Unloading and reloading the driver does not fix the condition. This DMA stall is handled by checking TC_REQ and TC_REQ_SET registers in a lot of various spots. If both of these registers are found to have the same bits set, then their contents must be written back to 'un-freeze' the DMA engine and let operation continue. The problem can be quite hard to reproduce depending on motherboard and cpu. The attached patch has been reported to fix all various parties reporting issues with an assortment of Ryzen motherboards and CPU combinations. It has been reported that some manufacturers have released BIOS updates to address the PCIe instability. This patch has been confirmed to have no adverse affets on the reporting systems.

In the investigation of the issue a couple other problems were found:
- On Ryzen/Xeon platforms it is possible to skip interrupts
- PCI and TS masks were ignored during irq

Brad Love (5):
cx23885: Handle additional bufs on interrupt
cx23885: Use PCI and TS masks in irq functions
cx23885: Ryzen DMA related RiSC engine stall fixes
cx23885: Expand registers printed during dma tsport reg dump
cx23885: Add some missing register documentation

 drivers/media/pci/cx23885/cx23885-core.c | 144 +++++++++++++++++++++++++++----
 drivers/media/pci/cx23885/cx23885-reg.h  |  14 +++
 2 files changed, 139 insertions(+), 19 deletions(-)
Signature · 1 line
2.7.4