drm/rockchip: Test for imported buffers with drm_gem_is_imported()
Subsystems (4)
Thomas Zimmermann
maintainerPATCH 1/1 drm/rockchip: Test for imported buffers with drm_gem_is_imported()
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 <[email protected]>
Cc Sandy Huang <[email protected]>
Cc "Heiko Stübner" <[email protected]>
Cc Andy Yan <[email protected]>
--- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/rockchip_drm_gem.c +1 -1
@@ -334,7 +334,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 {
Signature · 7 lines
2.52.0 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Quoted 4 lines · Thomas Zimmermann
Instead of testing
import_attachfor imported GEM buffers, invokedrm_gem_is_imported()to do the test. The test itself does not change.
Applied, thanks!
[1/1] drm/rockchip: Test for imported buffers with drm_gem_is_imported()
commit: 9fc0da81916250f343599a4dd259f097196bf0fb
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>