Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3714813rwe; Mon, 17 Apr 2023 02:21:18 -0700 (PDT) X-Google-Smtp-Source: AKy350aYrd1mOwH5CVN/XTl8TncfQxSEWyUq/VBAdKAIqnfRtGE2oPdPoKHijXfCQ7QDlvQxzNyj X-Received: by 2002:a05:6a20:6a0f:b0:ef:7d7b:433a with SMTP id p15-20020a056a206a0f00b000ef7d7b433amr4962710pzk.47.1681723277736; Mon, 17 Apr 2023 02:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681723277; cv=none; d=google.com; s=arc-20160816; b=wnIAWwmJpYVHL8Ai/Ar/bOehsIPLAcKLmHv+A4Sa6251vdPvh+C2bDxsnDd3TwlFoF rdAjzRxkPzpk04qsV2QvuwOJEFRRWy3nfX/7swgASRUbq1OCtYKAIS9yVmWaRiq1YbI0 F8j/Xsm5DZ9c8Lddl2/pYzp7l7ZQmJR656cqfA4WgUJidiUz3Yx1vhdWCdXGWW30h+2O WaEdjegly6zwlmfjGpew8FDc+sAA42oHUotaTcoHDH1OtsLwqCZmeNEBPMaozLMBvL0E kYFO3qWHg7NSwrPLE71SGajzuu+fAF30WJwm5WXbDtB+jaeP1mXcNAo7d/xkqWTzzpPK tcHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jFLkdQxQwIy0kwyYHkCouJTe4tR41JTRH3lRK0CUzjk=; b=Rkr/kLL2pm8wAQgGjV/OQqyUsZeTIbSQk3g7UkJ0+YBuV/rJuxt99hXTarFd+BTvc9 j766/XrqQqlHM6eN6Y02mFb17y3TelyNb9EU3TK7sDDR3f+rL6jopKFsUyj7dzwzu1eo S7nbc1qBQqYWQ1h+EA04Kq+gKaoJIe06ucsqXqWLOEIw2M74yoVWon6xhsqy2TjFEzGC m3ZxXjhXwKrB+WD16k43uDaFqy4i/hedvzLpq23vnMfDhVHVsuMivGJn2lRhkdnjATv5 tP8bv/a38rTQyyg0kgV6gxg3yR74ucLo0NfGbWrAhyaq6vU0gqYleaugftBX6wMJqD6G epoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jebdwN5k; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020aa796f4000000b0063b59a25a0asi10027892pfq.134.2023.04.17.02.21.06; Mon, 17 Apr 2023 02:21:17 -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=@collabora.com header.s=mail header.b=jebdwN5k; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230526AbjDQJSg (ORCPT + 99 others); Mon, 17 Apr 2023 05:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbjDQJSZ (ORCPT ); Mon, 17 Apr 2023 05:18:25 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5916DB7; Mon, 17 Apr 2023 02:18:20 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2] (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 115E3660309E; Mon, 17 Apr 2023 10:18:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681723099; bh=B6LbGft4HxAIqoilnk5IC83grPCkk/Hif1oJBGNxpWU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jebdwN5kgEG64iYOCZj683+YGj3wMzGsaamuIPbrw7rTfny4mghm2QLnsviE9sNuV TLUfGHqyQZvtoMVtvnjYLI210dt4ZZupgQ0WHJNrgBpnha92v/5dx251GIkO1OX38t CLR3CAd1YLab+xYyY5unuL3GgDAMKU2eJvGZJhyJy1CeUMoGD33aMXhW8OXH2n77je vjNudg7KXB/jWsj5P96Yz9zvgxRzfad6MvpYtv3+vY4KEdvT3P2tNs1gi4K7tMgMv0 ocBThx1DCx2vT6aSVt4XK05xHxlZA6zO2heIV19bFQBN0FUNAUmzd/eFH9Xc+fb1KX fEEdYW5UOdqrQ== Message-ID: <37b56f69-99c2-adf0-cc9f-572fbdaa2eee@collabora.com> Date: Mon, 17 Apr 2023 11:18:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 1/6] media: mediatek: vcodec: can`t regard getting lat buffer fail as error Content-Language: en-US To: Yunfei Dong , Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , Benjamin Gaignard , =?UTF-8?Q?N=c3=adcolas_F_=2e_R_=2e_A_=2e_Prado?= Cc: Matthias Brugger , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20230417054816.17097-1-yunfei.dong@mediatek.com> <20230417054816.17097-2-yunfei.dong@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230417054816.17097-2-yunfei.dong@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 17/04/23 07:48, Yunfei Dong ha scritto: > The speed of lat decoder is much faster than core, need to get trans > buffer again when lat fail to get trans buffer. > The commit description is misleading, looks like you're doing functional changes, but you're just changing loglevels... and the title is also a little confusing, so.. I would propose: media: mediatek: vcodec: Avoid unneeded error logging Since the LAT decoder works faster than its CORE, getting the trans buffer may be done only after CORE finishes processing: avoid printing an error if the decode function returns -EAGAIN, as this means that the buffer from CORE is not yet available, but will be at a later time. Also change the log level for calls to vdec_msg_queue_dqbuf() in H264 and VP9 LAT decoder drivers to avoid excessive logging. Cheers, Angelo