Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA77ACCA48C for ; Wed, 8 Jun 2022 00:15:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391105AbiFHAE6 (ORCPT ); Tue, 7 Jun 2022 20:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455627AbiFGXSy (ORCPT ); Tue, 7 Jun 2022 19:18:54 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FBCE154370 for ; Tue, 7 Jun 2022 14:20:55 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id d129so17040026pgc.9 for ; Tue, 07 Jun 2022 14:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xACJxgm2NxMfJ63TOgMaf2wsYKKZyKH+sYO/uMTxdV8=; b=cnhjNgeiucBtliMvRGjPQ9KBtpnKxEuHm7F7qoURydmKKos1SsNd6oNPqrre0KQyd0 oJtgjEwR59smODLPbgRC8GsBqT+lNY2j1sg7fNriXcw+ndQFHZsEQXiEkqNs78fush4R eMhMJ+LFjwo3VEdi1oew1qnd+vP2Us70VbhEc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xACJxgm2NxMfJ63TOgMaf2wsYKKZyKH+sYO/uMTxdV8=; b=tPsz2/XcVuXpT4gvvADPlXTellH02YedoFJsBumLwyQg43T1dh/Db3YL36uVwFseji Bsmn6pfEZeyaHA2gWI7O5xNiRz2KaH4VC4f7Urc+k8qHJo/U8gmmLKk2GB+If++yBpYY HHOQpzcY50MlwLkjxpQZgznRQlDIWESzWjYmV54T/KVX5mJXQDd/9FnO1yzL5qTUW4aR L0d+4SkJmCWvcTpDByWVd1lJq5No6mx2kC4q9F7sVq0cMcXNxPouaBk6z0g9r8HMhDPN hAEkPNRdE8tISxNWsiC6tb+sEkJ8tSHsA9Rcokko8PGLk08rlbZkml42rJ/bfxU7PrD3 zpkQ== X-Gm-Message-State: AOAM533cecGI2MFlLmlbmu1w7I8Kme+3/6b/xK3EwL4Awtlg9o3V+LC4 UZ2dO19rFWPIBr37kuhFCAMLfA== X-Google-Smtp-Source: ABdhPJz1N83MQjqoGWeUnm89J+Kb2P8aSo8x/0iIX66k35MM5DbderyK0bdkWVMnhV9Pr3faH31mxQ== X-Received: by 2002:a62:6144:0:b0:51b:99a7:5164 with SMTP id v65-20020a626144000000b0051b99a75164mr31011021pfb.61.1654636853838; Tue, 07 Jun 2022 14:20:53 -0700 (PDT) Received: from google.com ([2620:15c:202:201:b689:cc5b:e6ad:930e]) by smtp.gmail.com with ESMTPSA id je21-20020a170903265500b00163b02822bdsm12916329plb.160.2022.06.07.14.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 14:20:53 -0700 (PDT) Date: Tue, 7 Jun 2022 14:20:51 -0700 From: Brian Norris To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Nicolas Dufresne , Sebastian Fricke , Ezequiel Garcia , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: Re: [PATCH 5.17 404/772] media: rkvdec: Stop overclocking the decoder Message-ID: References: <20220607164948.980838585@linuxfoundation.org> <20220607165000.914511779@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607165000.914511779@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Hi, On Tue, Jun 07, 2022 at 06:59:56PM +0200, Greg Kroah-Hartman wrote: > 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 FWIW, I've noticed a problem that is uncovered by this patch, because the default clock rate is not currently acceptable all the time. See my fix here: https://lore.kernel.org/all/20220607141535.1.Idafe043ffc94756a69426ec68872db0645c5d6e2@changeid/ [PATCH] arm64: dts: rockchip: Assign RK3399 VDU clock rate It might be nice if $subject patch could be delayed until the fix is in too. The 5.19 cycle is only in -rc1, after all. (The same seems to apply for the 5.{18,15,10}.y series too.) Brian