Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2609053lqo; Tue, 14 May 2024 04:15:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfDsshNu3OvpjG331+mTWSOZ9vsJgtXsNYW5VJinJV9/eCYi5P/inn5Er/VxLLjPGhDW8MTVg9qeVJYinAn2mfJn/p0+O6utolK4UrPA== X-Google-Smtp-Source: AGHT+IFVaZloHni39TmrvSWQCriHVSxrpZ/D/+3MF5uIEMbQjB1MS8eTiY1ao6kvNnTvLVXi18Gz X-Received: by 2002:a50:a448:0:b0:56e:c5a:c7a9 with SMTP id 4fb4d7f45d1cf-5734d6e0dc1mr8933758a12.41.1715685338339; Tue, 14 May 2024 04:15:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715685338; cv=pass; d=google.com; s=arc-20160816; b=SryDWLFHV0AY3Wy9Avpe3sd/icOn+GqxsqDGGCY8HbR7hgLF/EoIYE2tUib2PG9Otf 2yMOCS1rkt2ZmfDZ4IPcjcEp996HuA0udTqwJMPytTDenCjz9pePCi1IhvtEQ9wvG23Z IaiRfWaRiaFxHINaASdAuKHvF1aqfEverhtN7SrUnGFbGJm4YZzkehlPIXkzehucKZ5u Najf117tUe4VXneYC7zQT8DLdfIzA1oW+L3XYX64l2ucu64r0cRaoe4uBooUYvR9OKEr 1Z8APR921CsBIbG9/IdDl+gRfWR6UIC6uexsaSHHBf50Bk4tQ22KsAM6AvEMTa/v+/ij O4/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mz9h/+2k+hQ5BrK+QCMUHDgfuh9R4XkRpE2HOKXE+WU=; fh=FovrqjQu5zrj9WKXSO3qsZQ8iGrgbqlTV0cjtZ10TB4=; b=rYK03XEhku66aI566R6D1/PYLI9k0fzbnKLTdyeMLOs/fHxA0CVbm9qQyrrNjW0gtK 1pTxh76iWBrrD6cx8XjG7CaV21xNz/gqW5xHP5FAMfHZmhWcGGWgwlCoamb2Q+1ZaFZU IUp/5BLHWkBrJVdXsoPQat2vICi6ROZEHVG8k2GOt+QNAUsxIX0mLOHM440gfSGhpX0l GdtwFst0NyIX23fGFOF2By+lo5moj2iJfWDXUH2LOO8Re8FapwS9dXvr2JD7EDnuvRDS 5BD0agYc2Zz66P+FViHK34f+TgLiD+DCFBw1LWnhoUmAPPxP169AzAyzOrKQXSZETqdJ jQaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2rq3Cz4U; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-178577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c328884si6075520a12.409.2024.05.14.04.15.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 04:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2rq3Cz4U; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-178577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 885121F210D6 for ; Tue, 14 May 2024 11:15:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3E0312B16A; Tue, 14 May 2024 10:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2rq3Cz4U" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 23D5A6CDC9; Tue, 14 May 2024 10:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683924; cv=none; b=Fad46WsvTf+AJeKTellbkbm0fhxp9HaaoPIF9xYZNTZz7lwOtwi1FGVKLMc83DG1De1Hlm4LArululMtJtrEnoXX72pzlfPlUB4nvlVIYCX4onyoc958ioIQ2wSQfEg0qUPf/gYIWi4rXmLZw2Lwx/nVt5B6oMeHQ7avK+ztOxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683924; c=relaxed/simple; bh=WMJQLQK3xvtxXIucFzzsCvik3TpnnQ8GDX/UfG/DdT4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b5QGdGbUr3kvfrV+a5cx/eYmZM2qA+Z44tLAaqIpNBPEDi2+WEUsYlvMRMLxXEA1PoY2fEXlvyNAVSrzakeyA7z+izHWAhISUMFZI8WL7wiuUJcN03K6/oRvgiEmJ3RexqHJLrtYouXsRCbtcC+vI2xNOUAJxz0w3jYxyeGneTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2rq3Cz4U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4469EC2BD10; Tue, 14 May 2024 10:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715683924; bh=WMJQLQK3xvtxXIucFzzsCvik3TpnnQ8GDX/UfG/DdT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2rq3Cz4UrpBXEQ3MrY1RZVqRZNn1ej5WuOR1RKvOQRvf3eCpZ3O66o2wL9lJ91qxb sOX8v4GYJG/5d/7S9IGARSdBhDz3eH7Z75kOOJK0/rlx8Gc9YejWmAGJa3h2UpIH4U UowE86m3WpuEhLx4RkVRdC8ZqGXnXICVl4PUyuBM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zack Rusin , =?UTF-8?q?Christian=20K=C3=B6nig?= , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 6.8 296/336] drm/ttm: Print the memory decryption status just once Date: Tue, 14 May 2024 12:18:20 +0200 Message-ID: <20240514101049.790528517@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101038.595152603@linuxfoundation.org> References: <20240514101038.595152603@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-kernel@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.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zack Rusin commit 27906e5d78248b19bcdfdae72049338c828897bb upstream. Stop printing the TT memory decryption status info each time tt is created and instead print it just once. Reduces the spam in the system logs when running guests with SEV enabled. Signed-off-by: Zack Rusin Fixes: 71ce046327cf ("drm/ttm: Make sure the mapped tt pages are decrypted when needed") Reviewed-by: Christian König Cc: Thomas Hellström Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: # v5.14+ Link: https://patchwork.freedesktop.org/patch/msgid/20240408155605.1398631-1-zack.rusin@broadcom.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/ttm/ttm_tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -92,7 +92,7 @@ int ttm_tt_create(struct ttm_buffer_obje */ 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);