Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1586878iol; Fri, 10 Jun 2022 10:22:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6opS2iXNgUeY+uutKsYAHJn7ZK9TrfRmmCkiymr96dKhGURMOIjktf7l6kP+J+Usq5MBS X-Received: by 2002:a17:90b:384a:b0:1e6:9e79:4072 with SMTP id nl10-20020a17090b384a00b001e69e794072mr785184pjb.10.1654881761778; Fri, 10 Jun 2022 10:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654881761; cv=none; d=google.com; s=arc-20160816; b=FIK86yC0odcAWi+RUFLeL57L+GBOY//uNrBUYw5YkWTLPO+7nk4hYreArog0yEaLPg gJy6gNDfRljvhmQzhEIVFZSJP1vmUcd6UUgbNJfaq3qBJ+aQVFbJFoKT3uJiK2UhKyOi 3RBUNRVpmaYb4ra8gsA9PzK33rsIAAuiyITgzqDi6uQiLmm59ZFK0M4G5H3V/p30/VFx J7620+4mA3n9Q2y2eHto1zEHLMfsD7HgP9Mcn0xrg6AISxkNgXbL0NDtcgdfhrelrwqo IUNSp+msruZeGSF//6KmcSdfEflbPsDVmk0ZFSgwkmfdVN9cKMl0Fc3vdMjqG7SNpD8q XqNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=256cAUtVkFagDS/yqIZzb58j3dk1nOGs4ItV0B+B3cI=; b=UtWtVYS/ygoma1ebrLQKQzGlwJBaKa8gNi8/pLT4Ljz4hxL8PaK5scLfNir+Q9mah0 R/19MVRT8ofVXgWP9c0MNp79Dsg1kDOLYB3pceZ6KAPnls8bfF/RgldW/ZjuCu2PqPEY h/P4hfsQJW3lJ5kvYAqACgfreu7VD6ccZiHq+dKbRuwyPOWgypev9YakmZradP7vMC+r X7nKYfnfu0TDMpZAWckb2m5fxd53JS4GIfXPSPuc6tjXhyksOO/H0+LFX4ZRnitqxKp4 kIzLv/GzYNqq0FGyUJWKt8gsOlJJdlTjBcs+eEzqbCWTHLKM1PwTHdSTxTjTNHyBrw7Q bkyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=D3zV7Y1I; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe13-20020a17090b4f8d00b001df5e0b50d9si3990061pjb.151.2022.06.10.10.22.18; Fri, 10 Jun 2022 10:22:41 -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=@chromium.org header.s=google header.b=D3zV7Y1I; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349791AbiFJQjw (ORCPT + 99 others); Fri, 10 Jun 2022 12:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349871AbiFJQj0 (ORCPT ); Fri, 10 Jun 2022 12:39:26 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA985EBC0 for ; Fri, 10 Jun 2022 09:39:22 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id x4so15728333pfj.10 for ; Fri, 10 Jun 2022 09:39:22 -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=256cAUtVkFagDS/yqIZzb58j3dk1nOGs4ItV0B+B3cI=; b=D3zV7Y1IWSVTJVokfED/63D/2j42lBd46GeSwVKGFKBdfoXZEHxL3cr6zYs0RngV7D I47cqKiMrBoDtuOweVBbjjvTV2UimiCGImI6tAQad8Zac33GT/Umx8ULdOgXDKsfcL24 cfi5tdK4vzvNmxLc5iiyEZjVNjGk7pOSqAi9M= 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=256cAUtVkFagDS/yqIZzb58j3dk1nOGs4ItV0B+B3cI=; b=2ufF7WNtqUPWUA8hobroTiuWSbI880ZUtZaMgX8HygweaONInWd9vnJ/Upx6AX5IA7 hiHdgf/H36NYZfhSBFkrr1gM/STeEOfA0HWygbzf7lIkymaQhHAlfPop9aUtfYIYmuum YnuMc36TYpRQvpUzvc4/8ZaaHPRWIchMo9E6AJFeQuNMnTqDYyUVIBb6+5kThUn8VgOO 8DmIbvyCAZpkUWn8UZ5CmidaOiMmGYCjl4RV0S8Bge2eYL4p0BRtThR0DvVUiEodmL9h dm4TWNfvvzcO1MIRQu1w/+D9mr+apls/9FI2DVK1K4NC0OGnykzRBKxWD84pPQczrP1h bvcw== X-Gm-Message-State: AOAM530BRuOsGKSiaKWm18vRu/8xNFZ5ZxyGebyVu1y7IcWlO85hdRMu pHf/N53Aabp3YuQvjp3GDuaiGg== X-Received: by 2002:a05:6a00:b41:b0:50d:35fa:476d with SMTP id p1-20020a056a000b4100b0050d35fa476dmr47102208pfo.33.1654879162018; Fri, 10 Jun 2022 09:39:22 -0700 (PDT) Received: from google.com ([2620:15c:202:201:b40f:db8c:1759:e71b]) by smtp.gmail.com with ESMTPSA id a2-20020a17090a70c200b001e2a36fb4aasm1943824pjm.43.2022.06.10.09.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 09:39:21 -0700 (PDT) Date: Fri, 10 Jun 2022 09:39:19 -0700 From: Brian Norris To: Nicolas Dufresne Cc: linux-media@vger.kernel.org, Ezequiel Garcia , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Boris Brezillon , kernel@collabora.com, Mauro Carvalho Chehab , linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/5] media: rkvdec: Disable H.264 error detection Message-ID: References: <20220610125215.240539-1-nicolas.dufresne@collabora.com> <20220610125215.240539-2-nicolas.dufresne@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610125215.240539-2-nicolas.dufresne@collabora.com> X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, Jun 10, 2022 at 08:52:11AM -0400, Nicolas Dufresne wrote: > Quite often, the HW get stuck in error condition if a stream error > was detected. As documented, the HW should stop immediately and self > reset. There is likely a problem or a miss-understanding of the self > self reset mechanism, as unless we make a long pause, the next command > will then report an error even if there is no error in it. > > Disabling error detection fixes the issue, and let the decoder continue > after an error. This patch is safe for backport into older kernels. > > Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver") > Signed-off-by: Nicolas Dufresne This is effectively how ChromeOS previously was using this hardware for years. When moving to the upstream/staging driver, this started giving us problems. This fix is helpful; we'd rather sacrifice error detection for now, to avoid hanging the hardware in error cases ;) Reviewed-by: Brian Norris Tested-by: Brian Norris