Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2537664pxj; Mon, 10 May 2021 05:27:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCBQ2h2MkoMYfh/ej51579WvnYI/9Y7zsvvh0SW58Vb6ickwd8SraqpoVQlnML0+ddwD+q X-Received: by 2002:a05:6402:5106:: with SMTP id m6mr29281502edd.212.1620649630132; Mon, 10 May 2021 05:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620649630; cv=none; d=google.com; s=arc-20160816; b=aiftabZRHgwfap/jojIU8un8vaNfClmXn5tyuEwJiMuPp8WwCgroJnjOa66TNlP4cL X0mZX5djOCt+9KrvT9ikpGTTu/HsEubqg4/Z90fwl1dMkJY6F/CTcZh4K2DwLHnfTiMA 4OhTXi3szp3Suz17cr238tlm4FPbOulhUaGKrmjYcLhpu8/4McpYh+eTJKvvOlwlmHh9 lQ2v8bBKoVKHDusCflXKevwNfOBSsmRbItWzicOU0bKdpQLo6FS6H9n0sAzuG5X88YSD kXiw1PKCCGWq/4BwRvZuUmP2lDrYrZYMEm+aCeiCQ0ZFfy9v6vce2MalOCDbRcCqL035 lCEA== 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=THjUi40dFJDV1qD64WJJ8olP/nmM90+Xlr339ZYcBz0=; b=QfqgHkhXsVBUJxt46bQs7pxsEXZ1bh7OUJSbsuBFYaZJ0+DeczzovsMG/1K5dufkkQ 56HkKxRG8qCZTQQZN6Gtr6Gvts0RwfmyxnjGLEoBCVE5vhnzs0L3kdXJigDsiyfzMdCY KhjXUHQ7yzdVDpXezOWnfjkmiO1OSl0nYsS3aRCmsp5xKcIJNSQvwOMp4N0iwTXPUPl2 eRBAzFXmyNqYsNdNxqIlK9uMzyAnAvkTKI91cdxNAXIPRL5BI7H8jBiGuLKHF8LGqBcY dfok87KTIM3RxLqAGYkWyllTsw3dzA0sJZsj2XPfkMzGQYSQDV56Ltus5x57mfdUITl7 aeAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=phNeN61d; 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 f10si7383666ejf.291.2021.05.10.05.26.46; Mon, 10 May 2021 05:27:10 -0700 (PDT) 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=phNeN61d; 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 S236141AbhEJMQm (ORCPT + 99 others); Mon, 10 May 2021 08:16:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:45604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232714AbhEJLIx (ORCPT ); Mon, 10 May 2021 07:08:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 871406162B; Mon, 10 May 2021 11:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620644656; bh=zF10B42BU7PZxpk8L9YI3lbTpw7BWdCgjXh1YWIYcew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=phNeN61drW9QPPARijFbQH28pkLItZCJQMI5MBROn1Ca4lVPAk0qMOXhxl9Wdu+Gc zv2dHjAgxvOQ85DCiZr2w6c9ZKZ7Xxk7WWTHpmnon3rDlYGKcny9OCez73ZxTeKc6X DcxpndTYXU8aS+FEhbNf0ahY0gJzDOlaSs3PiKp8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brad Love , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.12 170/384] media: cx23885: add more quirks for reset DMA on some AMD IOMMU Date: Mon, 10 May 2021 12:19:19 +0200 Message-Id: <20210510102020.483245389@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102014.849075526@linuxfoundation.org> References: <20210510102014.849075526@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: Brad Love [ Upstream commit 5f864cfbf59bfed2057bd214ce7fbf6ad420d54b ] The folowing AMD IOMMU are affected by the RiSC engine stall, requiring a reset to maintain continual operation. After being added to the broken_dev_id list the systems are functional long term. 0x1481 is the PCI ID for the IOMMU found on Starship/Matisse 0x1419 is the PCI ID for the IOMMU found on 15h (Models 10h-1fh) family 0x5a23 is the PCI ID for the IOMMU found on RD890S/RD990 Signed-off-by: Brad Love Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/pci/cx23885/cx23885-core.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c index 22f55a7840a6..d0ca260ecf70 100644 --- a/drivers/media/pci/cx23885/cx23885-core.c +++ b/drivers/media/pci/cx23885/cx23885-core.c @@ -2077,6 +2077,15 @@ static struct { * 0x1423 is the PCI ID for the IOMMU found on Kaveri */ { PCI_VENDOR_ID_AMD, 0x1423 }, + /* 0x1481 is the PCI ID for the IOMMU found on Starship/Matisse + */ + { PCI_VENDOR_ID_AMD, 0x1481 }, + /* 0x1419 is the PCI ID for the IOMMU found on 15h (Models 10h-1fh) family + */ + { PCI_VENDOR_ID_AMD, 0x1419 }, + /* 0x5a23 is the PCI ID for the IOMMU found on RD890S/RD990 + */ + { PCI_VENDOR_ID_ATI, 0x5a23 }, }; static bool cx23885_does_need_dma_reset(void) -- 2.30.2