Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28B7BC433F5 for ; Thu, 26 May 2022 11:33:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241281AbiEZLdX (ORCPT ); Thu, 26 May 2022 07:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiEZLdW (ORCPT ); Thu, 26 May 2022 07:33:22 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 694426AA57 for ; Thu, 26 May 2022 04:33:20 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id j25so1786351wrb.6 for ; Thu, 26 May 2022 04:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=+IAh8lxfUr/l1JQMPe87Z+Q/FRVH0ZlqbMzuUKVFHXY=; b=FQ6n3zoao16xh/QgGPg62lORkzZES3oscH3ZDSwkSjdoOJVyueZFwe2G0lT1NttpVH Drg4MRs1jW+QjToc3WJMe3+q5N5+hk9WzaRI2cO9LpML3xML+2BE8Ih25VJvwWVbds2X 35HMqe4TgQ0jfwUl4NnhQfO/TlhFBjLhDAd4c8G1/FU4iqzukgyKybyaHUEHlrW1og49 4GPSfrr+j9PeiRPf2abz7bM+j8J3GNp28kSHxT2s9ZwyR1otIi9/1wSMdEoRvhxjzBzX jiXuuD5DKZR0YAv9B73WBd5Xz5Z8Tc4w43fmnFqSFeA3klCXoc0Hp8uCaVVNjllw+wbj /ynQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=+IAh8lxfUr/l1JQMPe87Z+Q/FRVH0ZlqbMzuUKVFHXY=; b=Gd8GSCGT2OfPuOp82A+Tm9uTLVUkqdVBYqkwDSv1vAMIkcjyRk0yZZzQgCe0wPnWbi LWUJxvluK2M/W80JcW8uStY0cCvaRRdlyNLlFnlmX9lNt7e6rctFX/Rk+xf8H5lvvQLq 5AhmvL0HFILS3ECjgRlzZNcqYBp8nX+phwZuIyNbIr1RRX/OMgggHLtnAkCKl9BoaIkq Lh/jvxBOKCQ9/kybekR04q2R7s2U1V5Fei2/650OVtpzFfNe6g2w9tqTnzh/0xpUQNP0 ILGmZQlOY6de3AWdpSGtNvE368YaCnH1MYDw5SBm+mLMlj8nrtoicQBg+0SGEzGC47rd 2UsQ== X-Gm-Message-State: AOAM531mfQo/1sI/unMo9BNQtjWUT8x1KY0cahF6832j4Q+S0HkvjmTz /1Xld3efP7GSTRDvdgmD0fV8CVUytNrAht1b X-Google-Smtp-Source: ABdhPJyB0kaLKerRlHJXiA6FcEGKsKYpXCxq13gYelmn4PHjb3m5J1lRjue46cycjm0sMb5F4cSuTg== X-Received: by 2002:a5d:6989:0:b0:20d:b25:f5 with SMTP id g9-20020a5d6989000000b0020d0b2500f5mr30199481wru.616.1653564798739; Thu, 26 May 2022 04:33:18 -0700 (PDT) Received: from localhost.localdomain (knetgate.kensnet.org. [80.168.136.138]) by smtp.gmail.com with ESMTPSA id j8-20020a05600c1c0800b003973e27b789sm6072284wms.27.2022.05.26.04.33.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 May 2022 04:33:18 -0700 (PDT) Subject: Re: HauppaugeTV-quadHD DVB-T & HVR5525 mpeg risc op code error From: Ken Smith To: Linux Media Mailing List References: <20200423155908.GA22613@gofer.mess.org> <20200423163559.GB23006@gofer.mess.org> <0cd2436c-0a39-0f85-929e-5d8f333b5027@burnicki.net> <20200425114147.GA3037@gofer.mess.org> <4aa38e2a-6b98-6530-69d9-d945a467bf0b@burnicki.net> <1a2d9e15-55e2-88a7-d197-208a8ce99218@burnicki.net> <20200427080751.GA5925@gofer.mess.org> <0fc5d43f-7928-1649-220b-45916b189d8f@burnicki.net> <20200430164934.GA16730@gofer.mess.org> Message-ID: Date: Thu, 26 May 2022 12:33:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Apologies for multiple posts - e-mail configuration error at my end. Ken Smith wrote: > > > Ian Young wrote: >> On Tue, Apr 28, 2020 at 08:24:20PM +0200, Martin Burnicki wrote: >>> Hi, >>> >>> Am 27.04.20 um 10:59 schrieb Martin Burnicki: >>>> Sean Young wrote: >>>>> Would you mind testing this patch please? >>>> I'm going to try it this evening. >>>> >>>> I'll have to find out how to do an out-of-tree build for a copy of the >>>> cx module that includes the patch. >>>> >>>> My own kernel driver is always and only built out-of-tree, but for the >>>> cx driver I need to see which files I need to copy to a local >>>> directory, >>>> and if there is anything else that needs to be done to build a copy of >>>> it out-of-tree. >>> Sorry, I haven't managed to test the patch, yet. >>> >>> Currently I have the driver loaded with >>> >>> options cx23885 dma_reset_workaround=2 >>> >>> but today there were 3 occurrences of the risc opcode error: >>> >>> >> Drats. >> >>> So the workaround doesn't seem to fix the problem anyway, and the patch >>> would just enable the workaround with out the specific option, right? >> Yes, that's right. >> >>> The effect of the workaround looks just like debug levels lower than 7, >>> it just seems to reduce the probability that the bug occurs, but >>> doesn't >>> really fix it. >>> >>> So my conclusion is still that that this smells like a missing memory >>> barrier or so in the driver. >>> >>> Since the driver seems to work properly with older mainboards/CPU >>> types, >>> this doesn't sound like a problem in the CX chip, IMO. >> I would agree with that. I would suspect same issue was being papered >> over >> by the patch; now what that issue is, I don't know. Certainly some >> ordering >> or barrier issue seems likely. >> >> Actually I suspected this all along, but the workaround is the best >> we have. >> >> I think, some time spent hunting down the issue would really be helpful >> here. Hopefully that doesn't mean too many aborted recordings.. >> >> Thanks, >> >> Sean >> > > Hi, I'd like to resurrect this thread (copied above). I have a system > showing this error. Its on a HP ML350 server with 2x Xeon 5675 running > Rocky Linux 8.5. It has a Hauppauge HVR5525 card that uses the same > cx23885 kernel module, as many PCIe cards do, as the quadHD card > discussed above. The HVR5525 is a dual DVB-T2/DVB-S2 card. > > Elsewhere I read about the dma_reset_workaround option. That option > did not appear to be in the driver included in standard kernel in > Rocky 8.5. I have tested with a 5.4 & 5.18 kernel and compiled the DVB > media modules from .git source and set dma_reset_workaround=2 in a > file in modprobe.d. The built module shows version 0.0.4 > > Sadly the error remains. The system runs MythTV v.31. The main symptom > is aborted recordings. Although the card does appear to recover, not > requiring a reboot/cold restart. > > I've also logged this on Bugzilla. For some reason my original > subscription to this list had stopped working so I may have missed > some threads since Oct 2020. > > I'd appreciate some assistance with this. What information can I > provide, or testing can I do, to help to trace this. > > Many thanks > > Ken > >