Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp190857lqe; Wed, 27 Mar 2024 02:57:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0fQPdtWXi2FvRrCHvZjPKbuEJfAimoDKndXeGVXq6LVi8Du6Qeeh/EPOeAJHVGFKMdx+j0BVE9xaYD46lB4EkApNnomsTmSIVnjMQJQ== X-Google-Smtp-Source: AGHT+IF24/TIo3ZW0hazC7hHayyo2+IQN4hs+joUgKH2GG+hfxk9q4NXs6QVuIsghXO5Ap3dLY/Y X-Received: by 2002:a05:6358:431b:b0:17e:4fc7:d95 with SMTP id r27-20020a056358431b00b0017e4fc70d95mr4201741rwc.17.1711533455960; Wed, 27 Mar 2024 02:57:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711533455; cv=pass; d=google.com; s=arc-20160816; b=EL5WR2vlkcjPd5uBfipfcxnBaUQt+owzLGUlhciiBBBUEfWGrXTVa1MrxPHIvNu2LT FJxydZFWS4ezJet8Via7WidYUGQ5x2eJvzrjfjBwxBg4GAr1nPENP6jYZkXsqYmPZv17 K1aSi0IuNeOHXAEeqHBp4ncb9Gv2e3toadTPlas9cc7dTY1d6xvhc1QyErknevD6ruj+ A6HNooZ+17YmgVyu54hiNzxvt4SBfPlZAkqs7QphEkk/wv5s/5HWvu/6s+wzkfE4Sckd 3KQ5UOa/YEa/Tg+mKmzamVTUHD5URvcDcQWukgDhtlDj8Gy5fX8BT2ho2LNJ2fGTqtG8 8q3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/z3wkoo7fek/OngF9tNMy9Q9s0VbeotS9dxygIFGJyA=; fh=cNrakv4h+RsvxV9Hs508HWo19NwYgh3CZVw79edDfEU=; b=OdV3bmQV6MQm5DDld50QDi9bLwAusqvsoHUyVKfdYOkUxFmFl4nYBIr1AkY/A6Kfds +k1IP+sCmWX8u/GfaeMXBPDlfS95cmrbtUJO3NBHvHudP5HdNgkhksW6kGgENudq4msR VBpEsSfIX/+MiaiNOC0HhrbGwLsQOXXls64PLuF0BCY9q0E3H9n+NxePaGT+q2bxG28z 7F5NVkBCoAAp0jhF5CSkCF8BAdGkrxG1CxVJC2pGfw3qY1U2LlBCFiNcwzdXzFZp+0JB AVinCEqqnLXFw2PjznnDjjb+gVB7fKKx2TFEG07muSpvKIuoLu6vUzZpRcyiTgeRYLX6 2rAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=O9cgRC+o; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-120635-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g13-20020a63e60d000000b005cdfb96ea62si11756146pgh.243.2024.03.27.02.57.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 02:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120635-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=O9cgRC+o; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-120635-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9511229662C for ; Wed, 27 Mar 2024 09:57:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6D7545975; Wed, 27 Mar 2024 09:57:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="O9cgRC+o" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3952A1401F; Wed, 27 Mar 2024 09:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711533446; cv=none; b=Z2I4p4h96uPkEHnJ/tMFsRDzGXqZy8ffBhqi0uTw7Ij7nVqHGJ+/Zv55FSq/RA1P4zQpdtsKUGK//6M6Ec8Uge+9W1bKEBsBjtmpMteFsw3uSOzT1/n5/8ssOps4z0pDdJsGXUlVQA0tQLY0wtaE+GNYNEkT5F2zzOJfR+w/SUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711533446; c=relaxed/simple; bh=6i66eyLtFjTaO1dIDXVZlX8Q+lSEqYTtOhQaqZ1TG4Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=olUdk4t+baotI/3lBFXfGd1Tq19y8PvssKaOISwzhcrTL6PwTj1BYhVnLGoizyTo0sd2NOO10P/8Vq+XS6a+n/WiHMaseNQAuA4qBCqFpbe7gMMB2HY5gvZEe+nibBaLzUvb5LyTXJc72Oa0YRVvK+nCNf1X13bcVfXiqSrWSEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=O9cgRC+o; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711533443; bh=6i66eyLtFjTaO1dIDXVZlX8Q+lSEqYTtOhQaqZ1TG4Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O9cgRC+ouOzomKIMASnl8XCJ1FP8XAkY19uHoDuWXBSAWIZlGDY0K6OazuGD3rUtr W+84Dbhj0HYbPFfVsW31y3n/oOwJaizH68tLgmYnXe1N95NkWeE7w+AM1u5jxeagp7 9V7K56LW3zRaVA/eY1ev92fshjbjjTC4v/DjH1suTp8ji7lYcmy9jDZYQvqm26OVK4 K79GWTLo6oyQIIhcQgMcrA3Kwes/Bx976S+xMIcUDMXcqQKt4Xd0bjLcHFD3cscaB2 txx57D+K/2wYNck23bjyo+0QMF5OnNFy5BfmWkOF/kuq16x61TdUZfi53fWZ11+fd3 cdy02UHlicvFw== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 2478037813CA; Wed, 27 Mar 2024 09:57:23 +0000 (UTC) Date: Wed, 27 Mar 2024 10:57:22 +0100 From: Sebastian Fricke To: Fei Shao Cc: Hans Verkuil , Andrew-CT Chen , Matthias Brugger , Mauro Carvalho Chehab , Nicolas Dufresne , Tiffany Lin , Xiaoyong Lu , Yunfei Dong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno Subject: Re: [PATCH v2 0/4] Improvement around mtk_vcodec_mem_free() logging and usage Message-ID: <20240327095722.w56iugips6z2bl2p@basti-XPS-13-9310> References: <20231221092226.1395427-1-fshao@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hey Fei, On 27.03.2024 17:18, Fei Shao wrote: >On Thu, Dec 21, 2023 at 5:23 PM Fei Shao wrote: >> >> Hi, >> >> This series includes some improvements around mtk_vcodec_mem_free() in >> mtk_vcodec_util.c. >> >> I noticed that mtk_vcodec_mem_free() generates a spurious error if the >> target DMA buffer has been freed previously: >> mtk_vcodec_mem_free(),69: [MTK_V4L2][ERROR] 18000000.video-codec >> dma_free size=0 failed! >> >> The warning is harmless, but it brings some confusion to our developers >> and testing infra, so I sent this series to fix that with some minor >> improvement for the driver alongside. >> >> The first two patches are for aesthetic and style improvements, the >> third tries to make the error logs more informative, and the last adds >> back the missing checks when calling the free function. >> >> Regards, >> Fei >> >> v1: https://lore.kernel.org/all/20231113123049.4117280-1-fshao@chromium.org/ >> >> Changes in v2: >> - rebased on top of next-20231219 >> - revise commit message for clearer intention and rationale >> - update the error messages based on the suggestion >> >> Fei Shao (4): >> media: mediatek: vcodec: Replace dev_name in error string >> media: mediatek: vcodec: Drop unnecessary variable >> media: mediatek: vcodec: Update mtk_vcodec_mem_free() error messages >> media: mediatek: vcodec: Only free buffer VA that is not NULL >> >> .../mediatek/vcodec/common/mtk_vcodec_util.c | 23 +++++++++---------- >> .../vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 22 ++++++++++++------ >> .../vcodec/encoder/venc/venc_h264_if.c | 5 ++-- >> 3 files changed, 29 insertions(+), 21 deletions(-) > >Hi Hans, > >I'd like to get some attention for this series in case it has been >overlooked. It still applies to next-20240327 without conflict. >Please let me know if you have any feedback or concerns on this. Sorry this seems to have slipped through my fingers, I'll put it on my list. Thanks for the notification. > >Thank you, >Fei Greetings, Sebastian >> >> -- >> 2.43.0.472.g3155946c3a-goog >> >