Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091308rwb; Mon, 15 Aug 2022 17:54:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR47hpNr8GaAq8PYl/GDfphj9NljjBRxAAi2WYmBebAS3v/PK6V1YKseJdOh85gjvPUJev4J X-Received: by 2002:a05:6402:518b:b0:43e:70be:97cd with SMTP id q11-20020a056402518b00b0043e70be97cdmr16758110edd.388.1660611196730; Mon, 15 Aug 2022 17:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611196; cv=none; d=google.com; s=arc-20160816; b=mOPdrjOhrlIeMw5Yk/RzrMCM+YMMH8rOjXZaoH11vJQdlcEHv5c0UI7XRX5kbcYDWi +LhosU9/Ir2xwfEzhifqkQobUELzorLI18jJKhpRkEj5k9U330QugKfeP5V/KAV9felR m56oQtLjYZxWtf5xIFLnxm4qv2ZkHW0XEccpQC/mrhu/ZVXqwBYGGdBRLux3mlOMUspv hiGiVez5oZGgHcOodJ/HJ1XKptUrkShvSZlXYrpu3wyel2ZKgMgpECzgtwu+Nj0NTlbf I/d3h+Kr91gfptcACpAC4q0jkP12ucb3HT5Bk/tELYauGSX9mw4mkw3Dvb8mAnlftVQU 2bjQ== 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=Hj3AR5gYRDVwq9QNV9MxxewD8ErIRDzA919Ra0qoafk=; b=Zd/oL+Ep/tqgVHyOJc/B82Bq9uLHBaDsZB4dzmXI8SdBg6/fRf9VQz2OsQTR+98r9q EwW1BG88ZuYWtkhN6dy40TsV8IMR+QD3H67tmp3e0S/q5tzjpoOfKf+ahv9c5EA0C0ST qV5bQs2AVEkoeranmMFmluLO4u5BRfFZcFNW8L5bjSK78UUAGBBGUsHHimHLoS6j3R/j eeXfTW6j7zaQbx/U7X7DvlDTi1CrnJwpl/4iNcwdJmN+zXPTlaExqnMXqKdT4xxsMX5l F1St8DfgXOVHRzimm3NWXWZb8VBDtrPlTlh3sg1w3PFjcb2UsGQDPIUW399bgSP+zaKk J54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gZXlovj8; 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 f25-20020a170906495900b007311135dc53si7318869ejt.809.2022.08.15.17.52.51; Mon, 15 Aug 2022 17:53:16 -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=gZXlovj8; 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 S1354124AbiHOXnQ (ORCPT + 99 others); Mon, 15 Aug 2022 19:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354075AbiHOXlI (ORCPT ); Mon, 15 Aug 2022 19:41:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792E798CA4; Mon, 15 Aug 2022 13:10:28 -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 28718B80EA8; Mon, 15 Aug 2022 20:10:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 945C4C433D6; Mon, 15 Aug 2022 20:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594225; bh=HvlymAI/0v47dl1gQMbakE7KNs6h3AoSjWfLIO/fnk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gZXlovj8z8PoC1/eONEo0CSPISDQvWw/Hi0tGZ6Wc9vXCJTvTMjPCjZ4JVoQwvtT+ RGUHnm5hPyUX9myxbeu58o+8q8OgTgaytZS1VxVEAdZUJpNyL0zJNv/cyhiomnt1gz wzfX8mqCUfBAwO+u/JdZ58hYEvA4qP9ea9It37rg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Gaignard , Nicolas Dufresne , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.19 0375/1157] media: Hantro: Correct G2 init qp field Date: Mon, 15 Aug 2022 19:55:31 +0200 Message-Id: <20220815180454.727301911@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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,T_SCC_BODY_TEXT_LINE 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: Benjamin Gaignard [ Upstream commit 300065f966d30baa59a13849753305aac8c320c3 ] Documentation said that g2 init_qp field use bits 24 to 30 of the 8th register. Change the field mask to be able to set 7 bits and not only 6 of them. Conformance test INITQP_B_Main10_Sony_1 decoding is OK with this patch. Fixes: cb5dd5a0fa518 ("media: hantro: Introduce G2/HEVC decoder") Signed-off-by: Benjamin Gaignard Reviewed-by: Nicolas Dufresne Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/hantro/hantro_g2_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/hantro_g2_regs.h b/drivers/staging/media/hantro/hantro_g2_regs.h index 877d663a8181..82606783591a 100644 --- a/drivers/staging/media/hantro/hantro_g2_regs.h +++ b/drivers/staging/media/hantro/hantro_g2_regs.h @@ -107,7 +107,7 @@ #define g2_start_code_e G2_DEC_REG(10, 31, 0x1) #define g2_init_qp_old G2_DEC_REG(10, 25, 0x3f) -#define g2_init_qp G2_DEC_REG(10, 24, 0x3f) +#define g2_init_qp G2_DEC_REG(10, 24, 0x7f) #define g2_num_tile_cols_old G2_DEC_REG(10, 20, 0x1f) #define g2_num_tile_cols G2_DEC_REG(10, 19, 0x1f) #define g2_num_tile_rows_old G2_DEC_REG(10, 15, 0x1f) -- 2.35.1