Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2515996rwb; Mon, 3 Oct 2022 01:45:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ELJ0zD4WfRUru1p/sWQ6mcB/otSssLsb8Er6dNAAIyM3G3arWY5l0J2J1z4sWNCYnfwRi X-Received: by 2002:a17:903:2615:b0:17f:6590:7fbd with SMTP id jd21-20020a170903261500b0017f65907fbdmr1207907plb.101.1664786724591; Mon, 03 Oct 2022 01:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664786724; cv=none; d=google.com; s=arc-20160816; b=b/MUdiuiSsO9gp1ib8jofBdXcNoKwRONDlGGH8bm7ZVvJRrAT2/IKCnnhj8vrtGiXr mgbLhzVzueHfUTwipSfK++2Q8Pm7umHQwhiVUzyhpQOVGHmovU16DqZ8zRtmgpZnEXPY 41z7paOF6da1SEj5VRpbuSZm/i08C2NZ+323WbRXMQ1pWmzNr2C3916R7CBHfdZgV/pQ YPv37qNTYF3T3NLqOBNhf0R1MBHlTNnfI7XQdbLchZ15/a0/za2z/gHUso881rEfQMk0 O6Z0NxzbIaXHtOSCdrmD+K84/SC+zNFS1JFsPrgnZka71yk0d9dsmbgYiV7GXGCnWO8R 7mXw== 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=WRnbwcGPyQyAZAKVyl8rsaWS6QlO4GLxnXhZd5l36rI=; b=VQ2GFcfFLG1qyOt1V7D3d3IVfm91sw47HLpRDOF2SvntquHyQDO2HOIlUVibdjG0ig jhlC1+xNmOzMyI8B3tLfF0n/11qAlOWiEotER9JzrXG31C3Bbl555eFPiJe7Zrhr+hzU iWmcXnSnUAirDRRkKby69aOJ9b+tUJHm4OjMLH7ZdbmIYZvgw67+poLF7cppzMC59/0z JZroU/Zcx2HRXIXsIHpcMbeXEblHbAIdCI3qyY9cDWkf4ya6gVnCsmpSfOwpjt5hXCJR Aaxwie14pREo9WOOwk9axiDW43fe7H88CkaY33LYzBTDqVXiGGp3A0d36fJhw+wPMisC PdWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BZwIlliD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020aa783ce000000b00536c7c210d3si9137253pfn.171.2022.10.03.01.45.13; Mon, 03 Oct 2022 01:45:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BZwIlliD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231360AbiJCHdH (ORCPT + 99 others); Mon, 3 Oct 2022 03:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbiJCHcf (ORCPT ); Mon, 3 Oct 2022 03:32:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 451E24DF38; Mon, 3 Oct 2022 00:21:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 38E6DB80E90; Mon, 3 Oct 2022 07:19:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D040C433C1; Mon, 3 Oct 2022 07:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781558; bh=bLvLAYpSrTFfe7GvDq+4us9MRoQncBYlB1SEYr38dPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BZwIlliDb0ifwulFXDOeGPWCQMZv1aZVh/HGeUdNFU8ixPucTf8tyGozsN2FWGJjz xQJSKen1tLHiuKB/ARyWuTww4ANUqWm4YALgTRcI0L2CguHCPZ2UBu0dHpK8sopqiL dRP/lQZjs6XaR7WOka8A8AgCTAJoWO9/0c4Znr6M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Dufresne , Brian Norris , Ezequiel Garcia , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.15 36/83] media: rkvdec: Disable H.264 error detection Date: Mon, 3 Oct 2022 09:11:01 +0200 Message-Id: <20221003070722.901877992@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Dufresne commit 3a99c4474112f49a5459933d8758614002ca0ddc upstream. Quite often, the HW get stuck in error condition if a stream error was detected. As documented, the HW should stop immediately and self reset. There is likely a problem or a miss-understanding of the self reset mechanism, as unless we make a long pause, the next command will then report an error even if there is no error in it. Disabling error detection fixes the issue, and let the decoder continue after an error. This patch is safe for backport into older kernels. Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver") Signed-off-by: Nicolas Dufresne Reviewed-by: Brian Norris Tested-by: Brian Norris Reviewed-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/rkvdec/rkvdec-h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/staging/media/rkvdec/rkvdec-h264.c +++ b/drivers/staging/media/rkvdec/rkvdec-h264.c @@ -1124,8 +1124,8 @@ static int rkvdec_h264_run(struct rkvdec schedule_delayed_work(&rkvdec->watchdog_work, msecs_to_jiffies(2000)); - writel(0xffffffff, rkvdec->regs + RKVDEC_REG_STRMD_ERR_EN); - writel(0xffffffff, rkvdec->regs + RKVDEC_REG_H264_ERR_E); + writel(0, rkvdec->regs + RKVDEC_REG_STRMD_ERR_EN); + writel(0, rkvdec->regs + RKVDEC_REG_H264_ERR_E); writel(1, rkvdec->regs + RKVDEC_REG_PREF_LUMA_CACHE_COMMAND); writel(1, rkvdec->regs + RKVDEC_REG_PREF_CHR_CACHE_COMMAND);