Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2207300iof; Tue, 7 Jun 2022 23:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIo6UNXkcK5AGf0gTgReNjnhZvAy+cWYjXExB4OOEWFGBvmH2T376bNm6dRBkyyA14UaFl X-Received: by 2002:a17:90a:5ae1:b0:1db:d0a4:30a4 with SMTP id n88-20020a17090a5ae100b001dbd0a430a4mr36082819pji.128.1654668782128; Tue, 07 Jun 2022 23:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668782; cv=none; d=google.com; s=arc-20160816; b=GCk6x8m5golbQdxYvlmbMRuUyabYir6lg43Sm6dq66GnScI/kTWONkkT4dgq4mx+C+ q6KMFTkk8iOXNTt1TjXBrGSiYSUYzlwvJSidf5TGWIbbz0DZ99lMGMiRA9gxwishl0DL ZhHM0bX68oMyhUvly0ELieMdnkwv5SkCr5QZjAEOx+gfCodYeae/mD4jHJ2y5zeZqGRQ 6Ozhb3bUT+FoNeCUGsOjWEh4p7BBHO4TY8M/vOLpSZLGV1OgEvRC/pYEIeFzpA7M2OlG Kmye6fZULZL54qOAJ3rXr3TJAorjOjfDbelKTqsBaXpt5Tcbc6ABeb8ajzqNm5/u7vSI WFAg== 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=GROBbrkNz6aseVA+FEkWw2YIDG8oNgzwAXj8ue7w9ZQ=; b=McuAjL8RTt43mQGCVmoVQbABvk/JG7xGPlU66rajCbKmd0R/Hw97pdXtHaHaR8JG2o dzUxjrd1jnaID5olkRVlGtkey6XdcX6tx7VooiMC8TyxE/lA5WFmM4KLpJF9dJ57OsO0 xeItM1jwCEBCPyO+ZWm3cft0XxLam+t9VCn1jxOLnm1347+0dIcnLO2ZxtfumT8ccTFF REO/WGN1TAZzJG3Zk18VDUoA+lpKkePFfx36lDMtXPxmwuWgFQdecOq1jYKQMFvOlv+a +SQ4CoWLXddvbQPxKRSA1PDzfeQrravC6Iup+6Ja+lA8X4gxeb/rzTQlOY+ijIyR2r12 emCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZFk1LpUG; 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 e13-20020a170902ef4d00b00161f3701ecdsi13512135plx.389.2022.06.07.23.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:13:02 -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=ZFk1LpUG; 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 A3D37387E01; Tue, 7 Jun 2022 22:35:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390881AbiFHBvr (ORCPT + 99 others); Tue, 7 Jun 2022 21:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357031AbiFGVo0 (ORCPT ); Tue, 7 Jun 2022 17:44:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28DF82342B7; Tue, 7 Jun 2022 12:07:20 -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 0C44061874; Tue, 7 Jun 2022 19:07:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19EB3C385A2; Tue, 7 Jun 2022 19:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628838; bh=wBHxjob7x0XzPX7Nk91SNo2LE9sqgvauDwTuTzLOtjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZFk1LpUG8Yp3dlnvFkOZxbtDyFSvTBjozgJzxJPqeEWMaMnieRTldHdBlTqsRTwWE gQ4QmCM1mRGkPpKZaFGjpk2WjK5Tb7h9M2j9A/KHRIvbcIBFmxn07t1VHZrR+ZkDpR fUEr3AxfIw+zLTqZeFFsjqrsYTnCB6zyzE+8P+aY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Dufresne , Sebastian Fricke , Ezequiel Garcia , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 475/879] media: rkvdec: Stop overclocking the decoder Date: Tue, 7 Jun 2022 18:59:53 +0200 Message-Id: <20220607165016.666307078@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: Nicolas Dufresne [ Upstream commit 9998943f6dfc5d5472bfab2e38527fb6ba5e9da7 ] While this overclock hack seems to work on some implementations (some ChromeBooks, RockPi4) it also causes instability on other implementations (notably LibreComputer Renegade, but there were more reports in the LibreELEC project, where this has been removed). While performance is indeed affected (tested with GStreamer), 4K playback still works as long as you don't operate in lock step and keep at least 1 frame ahead of time in the decode queue. After discussion with ChromeOS members, it would seem that their implementation indeed used to synchronously decode each frame, so this hack was simply compensating for their code being less efficient. In my opinion, this hack should not have been included upstream. Fixes: cd33c830448ba ("media: rkvdec: Add the rkvdec driver") Signed-off-by: Nicolas Dufresne Reviewed-by: Sebastian Fricke Reviewed-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/rkvdec/rkvdec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index c0cf3488f970..2df8cf4883e2 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -1027,12 +1027,6 @@ static int rkvdec_probe(struct platform_device *pdev) if (ret) return ret; - /* - * Bump ACLK to max. possible freq. (500 MHz) to improve performance - * When 4k video playback. - */ - clk_set_rate(rkvdec->clocks[0].clk, 500 * 1000 * 1000); - rkvdec->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(rkvdec->regs)) return PTR_ERR(rkvdec->regs); -- 2.35.1