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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5122EC44532 for ; Tue, 21 Jul 2026 15:46:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BD10310E387; Tue, 21 Jul 2026 15:46:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=robert.mader@collabora.com header.b="BXC5B1ty"; dkim-atps=neutral Received: from sender4-op-o11.zoho.com (sender4-op-o11.zoho.com [136.143.188.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3518010E387 for ; Tue, 21 Jul 2026 15:45:59 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1784648757; cv=none; d=zohomail.com; s=zohoarc; b=dcqplijPyjeFh261he/Uf3MIREWRqkkLqWLk8Z7/7eTFFjpZNhing7Z++N0JUBLn9IVFLRlop/1IJIXBu6Ml/yIMQiJqNca+2vMAhqVL6DlmzT1R2OjlUEQXjqfEd3COXXIybCIMzG3BRXNy5iQxFGqk0oNFdd173qIB3sHoHFY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784648757; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=ZAvQk/6m6DWKl6sT4lq/bUf3KH2u2HC04TgXFYqcg+Y=; b=laeHal/krEnan2RwAPJcIltUoNIsUyOqsq1xsinx6bFjGzerMm014LhNx81y0mRcQD4e+D1ZlW42fi29pmGBoLxS1ybC95GV7yzVzXbQ+SNpwFjOvUrgova53Esxs1diapvFRaHwINmacd7rj2PWm2cTEXQjRQaIMgrchbbblaE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=robert.mader@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1784648757; s=zohomail; d=collabora.com; i=robert.mader@collabora.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=ZAvQk/6m6DWKl6sT4lq/bUf3KH2u2HC04TgXFYqcg+Y=; b=BXC5B1tytGVpelkNTs0JjAUE/y8n+AYT1LZ0LVY337BQfjyAv5m7wywZ+1+oIcZ3 Up+Xq5xwIDM+cipFPbPG6/cjyqNMOnTni8S+2TIzVbE/pl4aHn/mIU4Az5HoVSRlvpe 5UDtnkJtTWHDe+1HM9h6o4Odlu7Uz5MMMVgA05Lo= Received: by mx.zohomail.com with SMTPS id 1784648754899218.0162182642406; Tue, 21 Jul 2026 08:45:54 -0700 (PDT) Message-ID: <025d17ff-b558-422d-b44e-6bd1d005b73c@collabora.com> Date: Tue, 21 Jul 2026 17:45:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] software_isp: debayer_egl: Re-add log for failing DMABuf import To: dri-devel@lists.freedesktop.org References: <20260721130839.85262-1-robert.mader@collabora.com> <87b82d38-fb6a-44ed-abad-e5a3ac9add1e@collabora.com> Content-Language: en-US, de-DE From: Robert Mader In-Reply-To: <87b82d38-fb6a-44ed-abad-e5a3ac9add1e@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Uh, I'm sorry, please ignore this message - wrong mailing list 🤦 On 21.07.26 17:44, Robert Mader wrote: > P.S.: this should also help with testing the CAMSS pipeline handler > (https://patchwork.libcamera.org/cover/27426/), which *should* be able > to accommodate requested strides - and thus always allow dmabuf import > \o/ (I haven't tested that yet, will try ASAP). > > On 21.07.26 15:08, Robert Mader wrote: >> The log was introduced in commit >> 93f0db167a8d ("debayer_egl: Implement dmabuf import for input buffers") >> and dropped in the commit mentioned below. Let's readd it as failing >> imports majorly impact performance and indicate actionable issues in the >> V4L2 or GPU drivers. Ensure the log is only printed once, now that we >> use >> multiple eGLImages. >> >> Fixes: 13f7b921acdf ("libcamera: software_isp: debayer_egl: Implement >> input/output frame caching mechanism") >> Signed-off-by: Robert Mader >> --- >>   src/libcamera/software_isp/debayer_egl.cpp | 2 ++ >>   1 file changed, 2 insertions(+) >> >> diff --git a/src/libcamera/software_isp/debayer_egl.cpp >> b/src/libcamera/software_isp/debayer_egl.cpp >> index 02651fe87922..8e0a9b79dfa4 100644 >> --- a/src/libcamera/software_isp/debayer_egl.cpp >> +++ b/src/libcamera/software_isp/debayer_egl.cpp >> @@ -533,6 +533,8 @@ eGLImage >> *DebayerEGL::getCachedInputFrameBuffer(FrameBuffer *input, std::optiona >>           if (egl_.createInputDMABufTexture2D(*eglImageIn, >> input->planes()[0].fd.get()) == 0) >>               return eglImageIn; >>   +        if (eglImageInCache_.size() == 1) >> +            LOG(Debayer, Info) << "Importing input buffer with >> DMABuf import failed, falling back to upload"; >>       } else if (!eglImageIn->dmabuf_import_failed_) { >>           egl_.activateBindTexture(*eglImageIn); >>           return eglImageIn; > -- Robert Mader Consultant Software Developer Collabora Ltd. Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK Registered in England & Wales, no. 5513718