Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2146048iof; Tue, 7 Jun 2022 21:17:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGxPVcaKnxH0DLfPGgI/JwP9dJjXZkCi0PePifyGJcWo3EwAQXizM2kDWt/h8mhY16dFjO X-Received: by 2002:a17:90b:4c48:b0:1e6:9145:513 with SMTP id np8-20020a17090b4c4800b001e691450513mr32917286pjb.227.1654661832023; Tue, 07 Jun 2022 21:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661832; cv=none; d=google.com; s=arc-20160816; b=bo8jATYwQ46IJFO73oOSq7sndCfxHEifKwuhtYEnaXycJC8fejbifvpKJRUBhKPx4A PCV3qXqb1WUuzR2UlR61w8dpSl1ApBZflMqRAcr5jz8sC8DzpqtF955iAhKCB8gHnO6u mwAplwSDbnHpfCMO1A1i0MmXD1AHlEDmnJwEoxrm69EMYexreAKDwoZDcc8EXFggY29j BEwelwtV/0rW/7AODAwk4F0aOKqDyFJDmtcQ6fpjRBlwSa4WHb1WdTug5snpsWsF5J/p lMmuc6CCgj/UQcFu8nQdBFGoYo0c9wvsOvkdytneBXoIVPTklfJZRdOUOMHUUpBuxtlp i3Wg== 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=Z7Y1O+qgI/KGaqx5NP0Ga9SpL0WOPjaXaA8MGTJXEL4=; b=au8IK0rEeiGmg7/K+DHUxiniR6Vlh+zmai+w0gKAQuLRrMWkzWQTR9QpYlmHx6BHRM +0Jv1RndCPHTPyNrmThaNkI/gjivbc6I8jaIT77mpKpHYsus4xBRVNqXUNN8cidlbTgf 0aZ/uLbz2M3QeGFN3hmC0H7JYiTGuf3V75zTDBc/BaXrwUuhR5xEeKB/iTIG5Wk1WT5A Joy9kGGDwyBeDbkSS9P7LyI8br3MFJeJLS40Q4fMRzJNAVDypug11oKkXksCcPVgFB6M xFJVYM2WgyMO1IHBH1yS/noXpWsxTrIEg+AVxHVWY92jefmhhGfF0/Q4EnXSjqJasJRd uPBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0tmLOyyd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id e9-20020a170902ed8900b00161d28c3907si25181172plj.8.2022.06.07.21.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:17:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0tmLOyyd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 66D2638C757; Tue, 7 Jun 2022 20:50:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386205AbiFGWsi (ORCPT + 99 others); Tue, 7 Jun 2022 18:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381294AbiFGVk0 (ORCPT ); Tue, 7 Jun 2022 17:40:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA96C4D9C1; Tue, 7 Jun 2022 12:06:15 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4762661846; Tue, 7 Jun 2022 19:06:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59699C385A2; Tue, 7 Jun 2022 19:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628774; bh=MKXYq3zsco4CGUkzrvPtgdSTX73quzIXig0cbYbwW5Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0tmLOyydIDuxI+rNhweGGmQh5DzuJ+oZFpnrgkCuoO7ASO3upOe+f8spEYZgsY1eP DrjcTxoP9P/zffViHaRGWK9FfC/omvjaLAPnyByF0A8Vzo6xfpWkhiLQjGrFvQERuW arYH5mhhZOHaxG/GnaXyshSKSHP63UU+PeFFQJCo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Gaignard , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 450/879] media: hantro: HEVC: Fix tile info buffer value computation Date: Tue, 7 Jun 2022 18:59:28 +0200 Message-Id: <20220607165015.930440638@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 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=unavailable 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: Benjamin Gaignard [ Upstream commit d7f4149df818463c1d7094b35db6ebd79f46c7bd ] Use pps->column_width_minus1[j] + 1 as value for the tile info buffer instead of pps->column_width_minus1[j + 1]. The patch fixes DBLK_E_VIXS_2, DBLK_F_VIXS_2, DBLK_G_VIXS_2, SAO_B_MediaTek_5, TILES_A_Cisco_2 and TILES_B_Cisco_1 tests in fluster. Fixes: cb5dd5a0fa51 ("media: hantro: Introduce G2/HEVC decoder") Signed-off-by: Benjamin Gaignard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/hantro/hantro_g2_hevc_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/hantro_g2_hevc_dec.c b/drivers/staging/media/hantro/hantro_g2_hevc_dec.c index 2e7eec0372cd..5f3178bac9c8 100644 --- a/drivers/staging/media/hantro/hantro_g2_hevc_dec.c +++ b/drivers/staging/media/hantro/hantro_g2_hevc_dec.c @@ -60,7 +60,7 @@ static void prepare_tile_info_buffer(struct hantro_ctx *ctx) no_chroma = 1; for (j = 0, tmp_w = 0; j < num_tile_cols - 1; j++) { tmp_w += pps->column_width_minus1[j] + 1; - *p++ = pps->column_width_minus1[j + 1]; + *p++ = pps->column_width_minus1[j] + 1; *p++ = h; if (i == 0 && h == 1 && ctb_size == 16) no_chroma = 1; -- 2.35.1