Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp244614pxf; Wed, 10 Mar 2021 05:32:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjd2piN7JGYTVFRqgU8Ykl08p9cr5l4BLjQmwt/t57tk1t3Z1MmHcpMQ0JOP97YD4dnGvW X-Received: by 2002:a17:906:c402:: with SMTP id u2mr3635167ejz.546.1615383155718; Wed, 10 Mar 2021 05:32:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383155; cv=none; d=google.com; s=arc-20160816; b=VBTOHdZZbyYdPce7MAPoSQnkuLdNoB5Z3+A1z2hBDDvyrRLi1rQ5oGsxgd1RQ3QLS+ elXk2WoGRhIDARuMrW4YNGWb+hBkdOiyTsvtiIpZhvxlASjLS806vKBouGLKUSUhgqbF KE+0i5WXIR/0/YBaytnLgAHqVeEn9T01cJx7/QSnZlQFwbNiyV8+aHbjKodlHhWbI03y nNqUlb7Zl9pDxoXCZ5fiS48PvSEANhg+tIf2k9lmJ1F/wom0uS1au0bGeImjc/7dvF+O 1IIhR8Wll2ImJIC2JO/C0WtFqb6KeU+ljQpeobaUh4+fMEQt+BOCJXASULApgzArB/7N sQZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FAeWWLdz8aBG4/2Z7/mNjb1yA4TSQezyQGWMzK1WeDE=; b=MOsGi7kmaxkK9G7vZtRIVfhqoDxx0aU9OgagsPnkdW4AqHUW22uBhOO1vko/Kli756 5Us3Tr7/ugFSb/MXxN3Ftoo6TK1W83az/OlGXFFfutcjG6fSIUb+uVYB1uAySZ6mxr8r mDRsh2b0WvaGIMo37fXw4XrrfSHtGpOXw59Ck/o62y2uljeYocQRDgdSHwG+PyERcPmK s/IKhtBZFTniE7dkTN39CI2jvcD/2ySgxRE2hRMsn2qqFfh29GWOYQYjupqTjl7QkWre 31D6Smm5B47QWt44uSliovmRIVEYOhBvP3KjWZFXOr97BqiflRdFrKuvZonOFGIU2MPL CPjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1KQokAP6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si6355058ejx.287.2021.03.10.05.32.12; Wed, 10 Mar 2021 05:32:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1KQokAP6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233341AbhCJNbN (ORCPT + 99 others); Wed, 10 Mar 2021 08:31:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:49290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233533AbhCJNZw (ORCPT ); Wed, 10 Mar 2021 08:25:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9782664FD8; Wed, 10 Mar 2021 13:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382752; bh=YJU8yFNiyFH3WZ34gjSAtlslf+6v0fNqB+uKWus6eHY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1KQokAP6n0dSvd+ZfgtrDkajuMLnmicPop4FN/htF+3e3hRRJHX5+zK9Mkeo/VJfp zI70QKVLII8yBW3O1nGFWR0ht6U6OlI65hiyuUjeJqBTp3UX5ANXFNjGPtl0H8pRwT Fcss7V58puG/qwSMIOBVWQbj2ig5n7rI0iCPRyxA= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Lee Kruse , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 34/39] media: cx23885: add more quirks for reset DMA on some AMD IOMMU Date: Wed, 10 Mar 2021 14:24:42 +0100 Message-Id: <20210310132320.778550677@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132319.708237392@linuxfoundation.org> References: <20210310132319.708237392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Daniel Lee Kruse [ Upstream commit dbf0b3a7b719eb3f72cb53c2ce7d34a012a9c261 ] 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: Daniel Lee Kruse Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/pci/cx23885/cx23885-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c index fd5c52b21436..a1d738969d7b 100644 --- a/drivers/media/pci/cx23885/cx23885-core.c +++ b/drivers/media/pci/cx23885/cx23885-core.c @@ -2084,6 +2084,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) -- 2.30.1