Linux Media Controller development
 help / color / mirror / Atom feed
From: Sean Young <sean@mess.org>
To: Martin Burnicki <martin.burnicki@burnicki.net>
Cc: Rolf Pedersen <rolfpedersen@mindspring.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Brad Love <brad@nextdimension.cc>
Subject: Re: HauppaugeTV-quadHD DVB-T mpeg risc op code error
Date: Mon, 27 Apr 2020 09:07:51 +0100	[thread overview]
Message-ID: <20200427080751.GA5925@gofer.mess.org> (raw)
In-Reply-To: <1a2d9e15-55e2-88a7-d197-208a8ce99218@burnicki.net>

On Mon, Apr 27, 2020 at 09:03:22AM +0200, Martin Burnicki wrote:
> Martin Burnicki wrote:
> > Sean Young wrote:
> >> On Fri, Apr 24, 2020 at 07:46:26PM +0200, Martin Burnicki wrote:
> >>> I came across this thread and want to let you know that I also have
> >>> problems with the cx23885 driver on a Ryzen system.
> >>>
> >>> The only solution I found on the 'net that could make it work was to add
> >>> a line
> >>>
> >>> options cx23885 debug=7
> >>>
> >>> to the file /etc/modprobe.d/cx23885.conf
> >>
> >> Have you tried: 
> >>
> >> options cx23885 dma_reset_workaround=2
> > 
> > I think I remember I originally tried this when I set up this system,
> > and it didn't work, but that may not have been with a value of 2.
> 
> I've tried this now once more on my Ubuntu system with 5.3.0-46-generic,
> and indeed the workaround fixes the problem.
> 
> In case you are interested, here is the full dmesg output of the system
> when the error occurs if *no* workaround is enabled:
> 
> https://burnicki.net/martin/tmp/dmesg-with-error.txt
> 
> See the "mpeg risc op code error" message close to the bottom of the file.

Would you mind testing this patch please?

Thanks

Sean

From 216bd7f1a68de7a60bfa15a31f28343574bae313 Mon Sep 17 00:00:00 2001
From: Sean Young <sean@mess.org>
Date: Thu, 23 Apr 2020 17:28:09 +0100
Subject: [PATCH] media: cx23885: add a missing vid for other problematic AMD
 IOMMOs

The issue described in commit 95f408bbc4e4 ("media: cx23885: Ryzen DMA
related RiSC engine stall fixes") also affects this device.

Fixes: 95f408bbc4e4 ("media: cx23885: Ryzen DMA related RiSC engine stall fixes")

Cc: Brad Love <brad@nextdimension.cc>
Signed-off-by: Sean Young <sean@mess.org>
---
 drivers/media/pci/cx23885/cx23885-core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c
index 7e0b0b7cc2a3..f18c5017be84 100644
--- a/drivers/media/pci/cx23885/cx23885-core.c
+++ b/drivers/media/pci/cx23885/cx23885-core.c
@@ -2074,6 +2074,8 @@ static struct {
 	 * 0x1451 is PCI ID for the IOMMU found on Ryzen
 	 */
 	{ PCI_VENDOR_ID_AMD, 0x1451 },
+	{ PCI_VENDOR_ID_AMD, 0x1481 },
+	{ PCI_VENDOR_ID_AMD, 0x15d1 }, /* Raven2 IOMMU */
 };
 
 static bool cx23885_does_need_dma_reset(void)
-- 
2.25.4


  reply	other threads:[~2020-04-27  8:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-23 12:32 HauppaugeTV-quadHD DVB-T mpeg risc op code error Rolf Pedersen
2020-04-23 15:35 ` Sean Young
2020-04-23 15:49   ` Rolf Pedersen
2020-04-23 15:59     ` Sean Young
2020-04-23 16:09       ` Rolf Pedersen
2020-04-23 16:35         ` Sean Young
2020-04-24 17:46           ` Martin Burnicki
2020-04-25 11:41             ` Sean Young
2020-04-25 14:06               ` Martin Burnicki
2020-04-27  7:03                 ` Martin Burnicki
2020-04-27  8:07                   ` Sean Young [this message]
2020-04-27  8:59                     ` Martin Burnicki
2020-04-28 18:24                       ` Martin Burnicki
2020-04-30 16:49                         ` Sean Young
2022-05-23 22:36                           ` HauppaugeTV-quadHD DVB-T & HVR5525 " Ken Smith
2022-05-24  7:51                             ` Martin Burnicki
2022-05-26 17:06                               ` Ken Smith
2022-06-06 13:59                                 ` Ken Smith
2022-06-30  9:59                                   ` Ken Smith
2022-05-24  8:36                           ` Ken Smith
2022-05-26  9:52                           ` Ken Smith
2022-05-26 11:33                             ` Ken Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200427080751.GA5925@gofer.mess.org \
    --to=sean@mess.org \
    --cc=brad@nextdimension.cc \
    --cc=linux-media@vger.kernel.org \
    --cc=martin.burnicki@burnicki.net \
    --cc=rolfpedersen@mindspring.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox