Commit dbf0b3a7 authored by Daniel Lee Kruse's avatar Daniel Lee Kruse Committed by Mauro Carvalho Chehab
Browse files

media: cx23885: add more quirks for reset DMA on some AMD IOMMU



On AMD Family 15h (Models 30h-3fh), I/O Memory Management Unit
RiSC engine sometimes stalls, requiring a reset.

As result, MythTV and w-scan won't scan channels on the AMD Kaveri
APU with the Hauppauge QuadHD TV tuner card.

For the solution I added the Input/Output Memory Management Unit's PCI
Identity of 0x1423 to the broken_dev_id[] array, which is used by
a quirks logic meant to fix similar problems with other AMD
chipsets.

Signed-off-by: default avatarDaniel Lee Kruse <daniel.lee.kruse@protonmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent a109073b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2073,6 +2073,10 @@ static struct {
	 * 0x1451 is PCI ID for the IOMMU found on Ryzen
	 */
	{ PCI_VENDOR_ID_AMD, 0x1451 },
	/* According to sudo lspci -nn,
	 * 0x1423 is the PCI ID for the IOMMU found on Kaveri
	 */
	{ PCI_VENDOR_ID_AMD, 0x1423 },
};

static bool cx23885_does_need_dma_reset(void)