From patchwork Wed Jun 15 20:44:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12882901 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CCCCC43334 for ; Wed, 15 Jun 2022 20:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uJ47hdOcFQ46lPyuzHcyJItfKZVL9NNxxh8AEOFAlD4=; b=b3hC6qAki78A/p h68W9U60TDJQENKdcubjshl+h04hTwKV+QWGkGpJ/JnSdBiQLKiz29Wu3qeE775nN/bgtacA4uWTw WVGOWm8U4v/FbbgruW5DjXS2vMIJxwUOjopMHUbK+UIIRB4e23dRKWHtlReWZlJXdWuFUnRPZXiOb bNE/wIj1J7WndnGP6aHSkY4xxSJMdx3SFKxGJuzuH37xVD2IUMf+3afTUfHTUwX812ELMFLdctzCr uu+yI6Nnezv7ounulrNtA3QI+JTXkZOzylSvveUI8tK9hRspbKr6Kx1a7TACEwIa8oIbZ8yqAR6iL +u1ZQb9kTMoHjPXSgSTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Zsq-00GHsb-3L; Wed, 15 Jun 2022 20:45:00 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Zsn-00GHre-S1 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 20:44:59 +0000 Received: by mail-ed1-x534.google.com with SMTP id w27so17865940edl.7 for ; Wed, 15 Jun 2022 13:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tp4oIh2zYtBi2+RpvWEIz+CScSVPRmmdz9pJqOF/be0=; b=frLOPTAHpOW6WM+y8qwoZMCwMS51iwCN9CSULQFC+7vgTcnCxnQHN9Xby4N7qbkAdo LGs8h+xgkrkDVPqB7yJTZgIDNimJ6khTRoo5I3kER5tqQRN5I0wvjkU9wzFoNEoQz5eV dg+yMeWxL5qd97o6PEsS9YeeV5pkWyIAfP2B5ChFUC0wvfX1H+j/8BPMYmSUiEg0IBAM Bfhd7JN8oO7Q/TSmcUVQtBCfupH0MYL2QQnTyjlFtYiYlynHBzLA2J4cD0TOFtI3tKcb 07QmU1885KJnriYYcPA1mn58jFG8K1ZdEzpq4dJTCy4CZmP9LAZWxPzLt9B2GETu7oOE cVtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tp4oIh2zYtBi2+RpvWEIz+CScSVPRmmdz9pJqOF/be0=; b=WsbGr5i22LtEObmYNHTjjNr9dHlF/x2ITZLUqOUS4Im6e4DN271Yd6Xq/fFGKqoltp O+sFTF8AeTxPiKhker3Zmt/o9p0kEAl+53QYrpF1ME9moxVOmRwxk2eGxQS30IRS1SxZ 4mqFD40G3ANSqiWM7LqM12IkWJWu09ufcLzpy1vRabft8UZylE4c/zuWo3GNybiVmKk2 Z2obApZpZwWfUttgNepkLdJkIwxquNnWy0t1jxXa22lP7c0P0mauv3fXUdC7Q+F2s4dF TFy6hHEfC8voyQyaTQT6VrXO5buGNiqPKu3u+Y89rBxczza5NyF+m+rJxi1djJbZPXv7 dvCg== X-Gm-Message-State: AJIora+LFazoaV8jt8JkuVsoZpVquSvl79J7lDvFAc5UMPqbxeTxshNY EzA5W9qlSPC7Bq2Cneej4L0= X-Google-Smtp-Source: AGRyM1uQSv1o4AubDZMBfsKjQPuH2QynVWB1oxR/lAPoCnd7YAvz8HbUwnIEOBUBdtfG4T0zFOerdA== X-Received: by 2002:aa7:c457:0:b0:42d:bd18:4ef with SMTP id n23-20020aa7c457000000b0042dbd1804efmr2116460edr.112.1655325895465; Wed, 15 Jun 2022 13:44:55 -0700 (PDT) Received: from kista.localdomain (213-161-3-76.dynamic.telemach.net. [213.161.3.76]) by smtp.gmail.com with ESMTPSA id h16-20020a1709060f5000b00711d0b41bcfsm6777291ejj.0.2022.06.15.13.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 13:44:55 -0700 (PDT) From: Jernej Skrabec To: mripard@kernel.org, paul.kocialkowski@bootlin.com Cc: mchehab@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, hverkuil-cisco@xs4all.nl, benjamin.gaignard@collabora.com, nicolas.dufresne@collabora.com, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] media: cedrus: fix HEVC decoding Date: Wed, 15 Jun 2022 22:44:34 +0200 Message-Id: <20220615204436.137377-1-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220615_134457_965490_13C5FC40 X-CRM114-Status: GOOD ( 12.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org After detailed comparison of register names to vendor library I noticed that one register has completely different name. After some testing I discovered that it was misnamed and used incorrectly. This patch series fixes it. With that, 3 more reference bitstreams are now correctly decoded. It is also possible that this fixes instability issue I had after decoding such bitstreams. Running Fluster test suite very often locked up my board, but after applying this fix, I never experienced it again. It might still be completely coincidental, but I doubt this is the case. Note: Patch 2 clashes with HEVC uAPI destaging. In current form, it can be easily backported. However, there are few users of Cedrus HEVC and skipping this fix wouldn't be that bad. Please let me know which way to go: 1) wait for destaging, send rebased v2 and not care about backporting 2) merge before destaging, but v9 of HEVC uAPI destaging would need to be rebased. 3) something else? Best regards, Jernej Jernej Skrabec (2): media: cedrus: h265: Fix flag name media: cedrus: h265: Fix logic for not low delay flag .../staging/media/sunxi/cedrus/cedrus_h265.c | 29 ++++++++++++++++++- .../staging/media/sunxi/cedrus/cedrus_regs.h | 3 +- 2 files changed, 29 insertions(+), 3 deletions(-)