From 605668f91e4f9d3ff3096b92d54ef851f8a69e49 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 20 May 2024 05:17:01 +0000 Subject: [PATCH] drm/ttm: Print the memory decryption status just once From Zack Rusin 306e99777886fd9fe3495a2b889d551dc509a820 in linux-6.6.y/6.6.3 27906e5d78248b19bcdfdae72049338c828897bb in mainline linux --- sys/dev/pci/drm/ttm/ttm_tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/ttm/ttm_tt.c b/sys/dev/pci/drm/ttm/ttm_tt.c index 0eee929b31d..795d4f291a1 100644 --- a/sys/dev/pci/drm/ttm/ttm_tt.c +++ b/sys/dev/pci/drm/ttm/ttm_tt.c @@ -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); -- 2.20.1