drm/ttm: Print the memory decryption status just once
authorjsg <jsg@openbsd.org>
Mon, 20 May 2024 05:17:01 +0000 (05:17 +0000)
committerjsg <jsg@openbsd.org>
Mon, 20 May 2024 05:17:01 +0000 (05:17 +0000)
From Zack Rusin
306e99777886fd9fe3495a2b889d551dc509a820 in linux-6.6.y/6.6.3
27906e5d78248b19bcdfdae72049338c828897bb in mainline linux

sys/dev/pci/drm/ttm/ttm_tt.c

index 0eee929..795d4f2 100644 (file)
@@ -92,7 +92,7 @@ int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc)
         */
        if (bdev->pool.use_dma_alloc && cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) {
                page_flags |= TTM_TT_FLAG_DECRYPTED;
-               drm_info(ddev, "TT memory decryption enabled.");
+               drm_info_once(ddev, "TT memory decryption enabled.");
        }
 
        bo->ttm = bdev->funcs->ttm_tt_create(bo, page_flags);