Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27595235rwd; Tue, 4 Jul 2023 05:19:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2MQbTxyu482RVyGgUCJB2SSIirMwrhdNDJxy0+eiNH8j9Sj3dOaNrt0PsuWjzSMXAsXUk X-Received: by 2002:a17:902:6acc:b0:1b1:a9e7:5d4b with SMTP id i12-20020a1709026acc00b001b1a9e75d4bmr12923247plt.22.1688473159402; Tue, 04 Jul 2023 05:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688473159; cv=none; d=google.com; s=arc-20160816; b=Nezb8tMBe+x0OEdPBitoTET4h3Zh1T++rNeBnBXfk5eogWGz2laY8mfMQ0q/Om2GzC rsMRFdbIWYRWpZN+M/7WyR5XpupBReYpikZjXgT29UgaNV4e5AsPym+43qNDl3arV7RR kX4Fjotd38xkvD0dZQ5xfeM7bo9iWWYe5IPEfIaMY+WDOTN2qbhkc1Gd9aFjAGvrMiRL F72wmrlzHMRn/5era1jV4q5QxqHxHOnx4zMtqIENzkBFqzd8+epx8c0RUffiAGG4nNKB ZkyLlYfHh2Hl9wq3XYvNmbyqgh/6pJpJB10xmNB9wZxqFhdFGu6RVMLvZThZjCDDRisX 1AJw== 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=6/NLUzZOrvphBSM0CGiNJItc+WumqMfLJ05++z22SuQ=; fh=NAuXkc5JSLEXANS/WGzRBo8+pvt2IHDPVUsBNLp4AZI=; b=GlNSwBzv/7oz724dqXGsbQXTDjuEQ3pSH24fAEXQ6TDsUTpHvW2Xlr8cMM53MPUqz0 Q2m9Xx0CppKRhlmLrSEfjZM3ZbwgEcvkVnkX0GAGepHz/DjpLRLsjKCYC0NAjhhMfOWw 3FAls07NDPWUETkfqu72uoywT6YiU/afAPsXbPGSos6/uovLz7InwxFbvjcuWPzOmYRg CLYWrld6zp5Pn3in4PLqPuPL7RBrLBw/9Y34DZ31HSGI7RBkvxHcbc26tc1KYznLr6Ul pfyQdrisMSk/Bev6Ov2JdtYn00cLDdJJnPlKERNKSm25WFKuwdR6hi0CzDGFq5JvtOci r+mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TWgC58eT; 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 j3-20020a170903028300b001b81e6ce809si15321114plr.5.2023.07.04.05.19.05; Tue, 04 Jul 2023 05:19:19 -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=TWgC58eT; 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 S231472AbjGDMMi (ORCPT + 99 others); Tue, 4 Jul 2023 08:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbjGDMMa (ORCPT ); Tue, 4 Jul 2023 08:12:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F72BE7B; Tue, 4 Jul 2023 05:12:29 -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 1E3BF6606F8B; Tue, 4 Jul 2023 13:12:27 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1688472748; bh=mN8qypJRIFbd3Kesz4lPo40wSVIs6bQ5nGg3PNEh0Es=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TWgC58eTs6oZA7ZEYYX4Jy6iRrUATyE+Mf8PohuGsnWKJzD5P+6FQBSVq55XZgxzj tjnF0biSjx988Fl7AcytyQiabX2CHLqZw4A7sKIiFF3u8qyKfW96dbsXN09eoQx/rx usXL4+EF/k4o8R5+eDvstgt8YDTDjEeChMZ+/54K7lxd6kfi0M0Zca1q52+YDGwAXW 4k3vE4r0ys2t6ibSAZtgcVnhFhxZopQRCEkOsqtWFzCFVTNefiFPfI4x6hezUt6z4p RztDoE8Rg8kmXvC0pfxNb4flQcrin/3rIRwxYt5lctbpoQSGv+HvzZ1gmLlKUG80R1 Q7bXK2YlGLhqw== Message-ID: Date: Tue, 4 Jul 2023 14:12:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v5,05/11] media: mediatek: vcodec: remove the dependency of vcodec debug log Content-Language: en-US To: Yunfei Dong , =?UTF-8?Q?N=c3=adcolas_F_=2e_R_=2e_A_=2e_Prado?= , Nicolas Dufresne , Hans Verkuil , Benjamin Gaignard , Nathan Hebert Cc: Chen-Yu Tsai , 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: <20230704111327.7140-1-yunfei.dong@mediatek.com> <20230704111327.7140-6-yunfei.dong@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230704111327.7140-6-yunfei.dong@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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,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 Il 04/07/23 13:13, Yunfei Dong ha scritto: > 'mtk_vcodec_debug' and 'mtk_vcodec_err' depends on 'mtk_vcodec_ctx' > to get the index of each instance. Define two different macro > mtk_vdec_debug and mtk_venc_debug for decoder and encoder, and re-write > macro mtk_vcodec_debug as the common interface which is called > by mtk_vdec_debug and mtk_venc_debug. The vcodec debug log can be > separeated by encoder and decoder. > > Signed-off-by: Yunfei Dong > Reviewed-by: Nicolas Dufresne Reviewed-by: AngeloGioacchino Del Regno