Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp242540pxf; Wed, 10 Mar 2021 05:29:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzIRWeDNtdV4wyY/5D6CLYCOItVg9SOVOSn93f4iWGHuLvVWYipiu/EikCTQaVjDk4p2W7 X-Received: by 2002:a17:906:f896:: with SMTP id lg22mr3579015ejb.124.1615382980081; Wed, 10 Mar 2021 05:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382980; cv=none; d=google.com; s=arc-20160816; b=szL4brvumdU1vv8PakjkJ4ppA1m3hXl+vOulvl/gVbl29VG3keTA7HXiF6c4OWA2un FbMPqsMD9XcKuxnxe8w4suqOSq5pBvgn3nWt4x0sPzxkQFXtoAtfcTSRz76JXV1Vyen/ 0mXFav4V3XCEpJTLj0Nxt249qtIeJuOnzYpJ/9eMSF8DlIx3b/1ooLn8witPhvfDNI+W 1zxv5RgmToyj7GklbYK6jbiBxLI4CNa5ZZTYY3fS/OBdXKbA/5GtFaE2KxwImIQx+UuD 1FdAaJFyjB0ya8JYdyPSuPhS8rNnOOdwHpU1O4FZ/t8eFQMhLLoBUtKnHhmuxpwvOlhL 3XJA== 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=wGAu+bCUtatmIw43e2dahr3c3MstFt7WvZ7dXOFCSdQ=; b=K32a7mXd+GgW59D3qoklzJTKsxbr4j+NAbPoIlVGzsN0b4AjPrv6Xs89zGbOlaFfTB e3HHuA+t5tNLruZF2DZ5gY2dMTls/hpiC4NlQ5jmrHJm9pPi7BRy8Xcs5+fzUmIn25Qy nHBuny7fjjdLQF3ue1d2rISbIbLdPVRb7/S7jeWxzCtz6VEZBL6yY/2H/JzrliGL6Bwx qJXmzz9qAtdN9D+FaRGzK6I5HbD819bghiwQbkW6kVVEZHRl+RAp8bBhU8zMXMbz76Id sXDYkKuXJGr+Uf+pf8VdEyxW9JYamUaUQ0RlvO6ISxxtGA4ehONZI2ywlHE+ErTODpGm Uaqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="VT7fM/4H"; 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 y14si3868397ejm.461.2021.03.10.05.29.16; Wed, 10 Mar 2021 05:29:40 -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="VT7fM/4H"; 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 S233788AbhCJN0L (ORCPT + 99 others); Wed, 10 Mar 2021 08:26:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:46164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233007AbhCJNYq (ORCPT ); Wed, 10 Mar 2021 08:24:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 659B964FEF; Wed, 10 Mar 2021 13:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382685; bh=pNeHKl7PBP6p8g7DY5rL5HNpimmaaw/uXF3RzwUa24Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VT7fM/4HJSzWw9UElrDHxBNvQSdNz5IF4xmD4jno8qnw4T8rmi+9DbdRPASaRnGsw PvnyGwN3z8rkKCglguFJhdX5IL6fz/1h62v7of1aNeG6ZmnVLYreo/ZvmK4pWf5HTg ZM/c3eEQwlhL2LmmRkwksDD2yilK4V5A3mRO6Aq0= 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 5.10 22/49] media: cx23885: add more quirks for reset DMA on some AMD IOMMU Date: Wed, 10 Mar 2021 14:23:33 +0100 Message-Id: <20210310132322.655298973@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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 4b0c53f61fb7..4e8132d4b2df 100644 --- a/drivers/media/pci/cx23885/cx23885-core.c +++ b/drivers/media/pci/cx23885/cx23885-core.c @@ -2074,6 +2074,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