Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp850200pxb; Wed, 6 Apr 2022 01:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+4Rafv4ovntoASA/bHWnO0UfSFaCNIdYkFIfmpTOWh/e1SSaKp5JoGj3xjv8tqGTWXbwC X-Received: by 2002:a17:90b:4d87:b0:1c9:7f58:e5ca with SMTP id oj7-20020a17090b4d8700b001c97f58e5camr8510839pjb.154.1649235265610; Wed, 06 Apr 2022 01:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649235265; cv=none; d=google.com; s=arc-20160816; b=n8s2waHRQxiU+9+ydldhE6vYq88mCLxWcnpdo9/1ajCRxvQ0oAD6DjaofGwEshnObJ Dm53KVIULG7gL9wJuDbUoId8FiPDi17WinA+Clqjs1/5KGDASPRg37pWNbzK8HaUcPel U/5UeZ1oktdbY5cdmJpEzMNqILx7nrJkeK16zZXrIUuyYoOWjfIS8UwldYshHVXweZRP HtyW4x2MPnQ5HEieQ8luzK2cjwZmVE89fNXQ3kIHdIJOyRWXUUAoYVIQTf6Xz3+976NQ xxe1K5E7JPDqR6orQjKnTFkB6sc7B3zbrGqfmyGY2pnTzKJF4bNOlse2QIU8/WGmiy0X 2GMw== 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=Dd2mjMVW3wl5FvIp+tdmMhJpm2XXivS1bJCsH//bnBY=; b=r7LPaS6E5C9TNyI71C1Jwmi1b8tJVq2ozgLQMigKleXi0kffFV8fgDqlZrlstoMcyJ e+/T0XkSlvvIY/90Tt5IM99KOzCEPaUmSt2fOiJmPhdUEdcFb7wF/HY1j3K3iwfCey3r ne3ZiJJ207jz3IoDhyp8fow8T/KEy6MLpkejl3Qz2xmC7Z/reL4yzZJFPuifBSyAfeoc akMKD6eFlY5FCQ1h3WlSyteQLxAnsJuYCb5D3N1+v4+MoTFP3x/RaV2FjopFQ9iTfaeb R5K4Ku9SL4LBj479pUEJ76ndYtWbHwrKp34a5dyVObzLmy/wi6WCwrB4ufMMU/01xfAz 4jUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VIBepy08; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u6-20020a62ed06000000b004fa88829324si13895500pfh.158.2022.04.06.01.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 01:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VIBepy08; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7497530F9C2; Wed, 6 Apr 2022 01:40:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389757AbiDEP03 (ORCPT + 99 others); Tue, 5 Apr 2022 11:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347254AbiDEJqT (ORCPT ); Tue, 5 Apr 2022 05:46:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0714265B4; Tue, 5 Apr 2022 02:32:42 -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 96F6BB81B75; Tue, 5 Apr 2022 09:32:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8ECBC385A0; Tue, 5 Apr 2022 09:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151159; bh=qpTGx4gDrgTo3X7NXcmSJU5PQ3KXhSa0WjJz1pCzu00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VIBepy08WW5C8adJgPqi4TBgJ3hdW3nCDpTrE6w9eUkD+4/3BjuwKdoxwSo1QQ+P1 qpBBtYEM76wkuLyn9KzQH5+AZfUI/WFA83jvUiTz6mAIgxD6sMx2fMSkCZr/SCnVUM Dp5wh+nJNguAjl64uydaxhmM/RxY1d+QAtXEPyZY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jernej Skrabec , Hans Verkuil , Sasha Levin Subject: [PATCH 5.15 315/913] media: cedrus: H265: Fix neighbour info buffer size Date: Tue, 5 Apr 2022 09:22:57 +0200 Message-Id: <20220405070349.295036113@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Jernej Skrabec [ Upstream commit ee8b887329c78971967506f3ac79b9302c9f83c1 ] Neighbour info buffer size needs to be 794 kiB in H6. This is actually already indirectly mentioned in the comment, but smaller size is used nevertheless. Increase buffer size to cover H6 needs. Since increase is not that big in absolute numbers, it doesn't make sense to complicate logic for older generations. Bug was discovered using iommu, which reported access error when trying to play H265 video. Fixes: 86caab29da78 ("media: cedrus: Add HEVC/H.265 decoding support") Signed-off-by: Jernej Skrabec Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/staging/media/sunxi/cedrus/cedrus_h265.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_h265.c b/drivers/staging/media/sunxi/cedrus/cedrus_h265.c index ef0311a16d01..754942ecf064 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_h265.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_h265.c @@ -23,7 +23,7 @@ * Subsequent BSP implementations seem to double the neighbor info buffer size * for the H6 SoC, which may be related to 10 bit H265 support. */ -#define CEDRUS_H265_NEIGHBOR_INFO_BUF_SIZE (397 * SZ_1K) +#define CEDRUS_H265_NEIGHBOR_INFO_BUF_SIZE (794 * SZ_1K) #define CEDRUS_H265_ENTRY_POINTS_BUF_SIZE (4 * SZ_1K) #define CEDRUS_H265_MV_COL_BUF_UNIT_CTB_SIZE 160 -- 2.34.1