From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF7573B583A; Fri, 15 May 2026 16:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778861978; cv=none; b=fcZFzdwk6cFGrIeBT082VnpYaxvFxiUiwJgDns8NjpwUcvi6WvitMroO+wmqdJkw/W2THxsSYCPDN5FjXWMjg39+SppIMrI+e5JYeoD5CbFWR3tM/f2IEce/vEghjrygcYSM4JetktmMWuShEdUv+blzLJwVvFVNubGOAbg4jbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778861978; c=relaxed/simple; bh=obN99Lh7cmh7qHv03TGzrQz9nSpFJ+/CvBPF1px56As=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GrGSLViN69i/zhyLhLPtlilrKPEVSoOnRm3PTNExkgD8leM5j0K6tkCKArPW0d0fFw5NSIaChqZjvHYElOBfepCqFsEQXzZ8dKoIcb9+/43O9wTeN8MRwyVFA5YKgMqEtfg7PS+CSJecgVTwsKky/a0OaFGThgELsTGJzXZUpns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YZXEwkHT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YZXEwkHT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4508FC2BCB0; Fri, 15 May 2026 16:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778861978; bh=obN99Lh7cmh7qHv03TGzrQz9nSpFJ+/CvBPF1px56As=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YZXEwkHTEP09F2SffL1XTFh+ynm9UvUwoJyO/sY8i1ms3gBE433ZpCvoQJ1T5PTe9 nv73ml+rMvjLkLCaLd4F3TAg09/a/5VqZq8/b7g3LX2T4Qizv+VUNRWRpWkVYsEYTn Kn3O9Ju0/DmFrlKllAiVAX8RkCEd8oGVf5e39Gkk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dmitry Baryshkov , Dikshita Agarwal , Vikash Garodia , Konrad Dybcio , Bryan ODonoghue , Hans Verkuil Subject: [PATCH 6.18 059/188] media: qcom: iris: increase H265D_MAX_SLICE to fix H.265 decoding on SC7280 Date: Fri, 15 May 2026 17:47:56 +0200 Message-ID: <20260515154658.595653923@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154657.309489048@linuxfoundation.org> References: <20260515154657.309489048@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dmitry Baryshkov commit 3e0b2053751657ed2924adfe3ff25b1450231e33 upstream. Follow the commit bfe1326573ff ("venus: Fix for H265 decoding failure.") and increase H265D_MAX_SLICE following firmware requirements on that platform. Otherwise decoding of the H.265 streams fails with the "insufficient scratch_1 buffer size" from the firmware. Signed-off-by: Dmitry Baryshkov Reviewed-by: Dikshita Agarwal Reviewed-by: Vikash Garodia Reviewed-by: Konrad Dybcio [bod: Fixed commit log withthe => with the] Fixes: e1f5d32608ec ("media: iris: Add internal buffer calculation for HEVC and VP9 decoders") Cc: stable@vger.kernel.org Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/qcom/iris/iris_vpu_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/platform/qcom/iris/iris_vpu_buffer.h +++ b/drivers/media/platform/qcom/iris/iris_vpu_buffer.h @@ -61,7 +61,7 @@ struct iris_inst; #define SIZE_DOLBY_RPU_METADATA (41 * 1024) #define H264_CABAC_HDR_RATIO_HD_TOT 1 #define H264_CABAC_RES_RATIO_HD_TOT 3 -#define H265D_MAX_SLICE 1200 +#define H265D_MAX_SLICE 3600 #define SIZE_H265D_HW_PIC_T SIZE_H264D_HW_PIC_T #define H265_CABAC_HDR_RATIO_HD_TOT 2 #define H265_CABAC_RES_RATIO_HD_TOT 2