Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2621193lqo; Tue, 14 May 2024 04:39:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnNCUxC1XGTEjLv3S0k9XPh89oTPHVOIMP8BEatWNPeO2vW2OrEz8dEMLSgDM8BoWO3xpZpfglRimkBHEQQ8+fsCal3sxtSxcfa+D/YQ== X-Google-Smtp-Source: AGHT+IHBlFZV035cLVflj8kco+IJXx75arg7cPRIMrHBEHw5mPUU1aRNtcC99AhSCzK0XLB3teAA X-Received: by 2002:a17:907:20a2:b0:a59:efea:caba with SMTP id a640c23a62f3a-a5a2d65ed0bmr809332766b.51.1715686798528; Tue, 14 May 2024 04:39:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715686798; cv=pass; d=google.com; s=arc-20160816; b=T3+e/pQIOaRyde3mJZ3i9qWIyFVl/Kq02F2Fa7yr2ua8jX5+ARUd1bt0fI6IC4g75S hZ/jlXV+rF4Css/yzLUiPo2PqHJgvLCYYK2l+Ku/DfIysj93Z2ClXFL6Shz16TCZt56e 7i5yoy/g4Bpwx+MJAMCatjaql4dXdoV5vofypZ4f/CI8UTtITlS8Y2scKwsA/qoSGb9x OiwsPS51Vf4OWY46XivaxOU+gwm7P7uaNJQxTqUSd0ydQ5pZ0EgivXWo3qC6FXHtB1Z6 iIELjWCb61ffApDeYY4ln7wbHur7xfhLPKpl4SMsV4qdfzLkgbtumyFsOdQISoKj5a2o bAkQ== 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=Wz7km5uHAyqeRadVvd9+yfZ0mVK2lh3HxJDFb0bbIBg=; fh=FovrqjQu5zrj9WKXSO3qsZQ8iGrgbqlTV0cjtZ10TB4=; b=m5gSa67e6RP+K29o7MioFwp5q2nojEFeOv6L8kuq7RxyjoFDrZISzFG9MkQhDOILmo RL5lcNTIcY4QwjCUSiNsT3QL3AYC42sesWW64+BWhA98FkOPs+cXZXm5ZlqCgcanGNTg t82Xj+zog1+yoAQ1Ca+L8R3UoOH8miMZH3WhIOuGSQlSkCL1vZG/eKiP1G/x2jaaDW2L BrBrdd56QwQkb/2+rBS/ZqBSdMddvLfMQByG5PLJJg5/R5FxTE33pzniJr0NX9LfnGRr yeTDeIHLBtlo3pttnBYJnAFJlZHRjnawOoNjAfEYMm/9jgW8EkFQ5r0wqbby6m9suyUM jyzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RT9hcJ1+; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-178604-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178604-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 a640c23a62f3a-a5a17ba3a43si676889166b.636.2024.05.14.04.39.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 04:39:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178604-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=RT9hcJ1+; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-178604-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178604-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 409C11F20FF4 for ; Tue, 14 May 2024 11:39:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F1A3140380; Tue, 14 May 2024 11:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RT9hcJ1+" 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 56A504F1E5; Tue, 14 May 2024 11:27:08 +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=1715686028; cv=none; b=rPLi7JRnHT6iDk6eJD3Id1fksT526lpPn5ayfN53X9axNugwOF/ZGexyOWpiRnEDYfXq/VHsI0v9li0iDLzpWAFCu9oml7xP5lUATmDPGpYMtgBAzny+J0SURjrnPJCI4Fb2rlpBarqy+IQoyWP781qoMTaXssQwz+2WOr0B5YA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715686028; c=relaxed/simple; bh=cdWNtugju7KUp25rkynGb9SgpU4MLHejvyIE1cY3AtU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=V8oZKM95e3jamu9InQSdsoNDlCOOvn/UNJc/kJ34JdMwc0a3f6BM1wU1d8Uc/Y3RSeyoQ2CZgywl2I2jkBOKGNtXbp3ewPuE/KjY33o3au7LBzMGTU3QFV2b51nVB5VwzN6WJF+8v6KmBLTyayOeB9tRX88OZorHlxK3xjIUptk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RT9hcJ1+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A364C32782; Tue, 14 May 2024 11:27:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715686028; bh=cdWNtugju7KUp25rkynGb9SgpU4MLHejvyIE1cY3AtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RT9hcJ1+A/NV6Hw3nAp7voydPPk4pk4o4fXNvFcVYg0HcfoAbC7WfG6i2txkjU+3n bnT6PEYTcA0S94aYFsRZBjbGoDp9fGKsbFfY0cmvH9GbRAtVXCw9ejpp2KTQgc4jd/ SckQzkQfqfxTY6YRUpxc+34qbmG1DbOr/2oCGUFw= 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.6 269/301] drm/ttm: Print the memory decryption status just once Date: Tue, 14 May 2024 12:19:00 +0200 Message-ID: <20240514101042.419244506@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101032.219857983@linuxfoundation.org> References: <20240514101032.219857983@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.6-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(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 578a7c37f00b..d776e3f87064 100644 --- 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_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.45.0