From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 74445402BA9; Tue, 21 Jul 2026 20:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784665590; cv=none; b=S66YFNSb8u1caClWvj/S+GBqQjbCa3kmC0h0UNtAZPiTP7rMgnw6J4UPK9ZOr4YLdzm2/qpZqPjjukdobORPYg7wQEaf1w0LAz7mzpKEBUxibUdnSGIkeZiKqwtu6uq4qF5NYPV2Vt/VhYAnPce6D+I0Ch3J6vYvbViNuDz4sQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784665590; c=relaxed/simple; bh=lStCw80ERRn8HXPw4/kzr4TqK1n/N+02FkODDF58t6A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fbq1jDpLKESt4V3r3PEQBHodJEG0lppAApixog1qL6CiD0DMY5FrBi0U/2Zwi2SaXyIMu45NxuR1zuF6b9MCuY6bJStOrswaOpwEzAqEnVQ667vytfegRH+CcGNpeuea004Z0vDv7BFjL7AhLrjDJyMhX3SaMJJwVT4hQrpa0eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KS995Pja; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KS995Pja" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 886EB1F000E9; Tue, 21 Jul 2026 20:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784665589; bh=uwke3nhMpNklieQA0Pz5mf7UuQLL47Ab7Qxeok8s8Uk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KS995PjaY0tBMO//rPXcAjok87FUkkWxivhm1uFs17ieGEjFn/ZZ6gD8e7szYAeil 4pGs4JPAhILwCb3tjITnWAhRCUoG6EJ6IEXEoOTzb/axG6u8u3RVFMc4wgFaCO7oxW 6W2D3ikOgPo7Xpobop8Gm/2uCwmuRRZ4Qc2fapCs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Zimmermann , Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan , linux-rockchip@lists.infradead.org, Sasha Levin Subject: [PATCH 6.6 0359/1266] drm/rockchip: Test for imported buffers with drm_gem_is_imported() Date: Tue, 21 Jul 2026 17:13:16 +0200 Message-ID: <20260721152449.862072126@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152441.786066624@linuxfoundation.org> References: <20260721152441.786066624@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Zimmermann [ Upstream commit 9fc0da81916250f343599a4dd259f097196bf0fb ] 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: Sandy Huang Cc: Heiko Stübner Cc: Andy Yan Cc: linux-rockchip@lists.infradead.org Fixes: b57aa47d39e9 ("drm/gem: Test for imported GEM buffers with helper") Closes: https://lore.kernel.org/dri-devel/38d09d34.4354.196379aa560.Coremail.andyshrk@163.com/ Signed-off-by: Heiko Stuebner Link: https://patch.msgid.link/20260227133113.235940-11-tzimmermann@suse.de Signed-off-by: Sasha Levin --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index 93ed841f5dceae..04879e23797fb7 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c @@ -332,7 +332,7 @@ void rockchip_gem_free_object(struct drm_gem_object *obj) struct rockchip_drm_private *private = drm->dev_private; struct rockchip_gem_object *rk_obj = to_rockchip_obj(obj); - if (obj->import_attach) { + if (drm_gem_is_imported(obj)) { if (private->domain) { rockchip_gem_iommu_unmap(rk_obj); } else { -- 2.53.0