From mboxrd@z Thu Jan 1 00:00:00 1970 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 C9AD4FEFB56 for ; Fri, 27 Feb 2026 14:22:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 31F8B10EBA4; Fri, 27 Feb 2026 14:22:42 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 2AE7610EBA5 for ; Fri, 27 Feb 2026 14:22:38 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 74A3C1516; Fri, 27 Feb 2026 06:22:31 -0800 (PST) Received: from [10.1.39.16] (unknown [10.1.39.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 15B963F62B; Fri, 27 Feb 2026 06:22:35 -0800 (PST) Message-ID: <4eacdcda-c493-48a0-8eef-50faedaa3f46@arm.com> Date: Fri, 27 Feb 2026 14:22:31 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/panthor: Test for imported buffers with drm_gem_is_imported() To: Thomas Zimmermann , maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch Cc: dri-devel@lists.freedesktop.org, Boris Brezillon , Liviu Dudau References: <20260227133113.235940-8-tzimmermann@suse.de> From: Steven Price Content-Language: en-GB In-Reply-To: <20260227133113.235940-8-tzimmermann@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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" On 27/02/2026 13:31, Thomas Zimmermann wrote: > Instead of testing import_attach for imported GEM buffers, invoke > drm_gem_is_imported() to do the test. The test itself does not change. > > Signed-off-by: Thomas Zimmermann > Cc: Boris Brezillon > Cc: Steven Price > Cc: Liviu Dudau Reviewed-by: Steven Price > --- > drivers/gpu/drm/panthor/panthor_gem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panthor/panthor_gem.c b/drivers/gpu/drm/panthor/panthor_gem.c > index 4b4575dd6e90..6d14b0269574 100644 > --- a/drivers/gpu/drm/panthor/panthor_gem.c > +++ b/drivers/gpu/drm/panthor/panthor_gem.c > @@ -666,7 +666,7 @@ static void panthor_gem_debugfs_bo_print(struct panthor_gem_object *bo, > resident_size, > drm_vma_node_start(&bo->base.base.vma_node)); > > - if (bo->base.base.import_attach) > + if (drm_gem_is_imported(&bo->base.base)) > gem_state_flags |= PANTHOR_DEBUGFS_GEM_STATE_FLAG_IMPORTED; > if (bo->base.base.dma_buf) > gem_state_flags |= PANTHOR_DEBUGFS_GEM_STATE_FLAG_EXPORTED;