Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1440573lqe; Mon, 8 Apr 2024 08:59:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmoGRuSlngiGlCX4nZqK/uNSavnUkMd2DUcgbgymYb/2wnkzfa+JG/n6XKs9uS8wISCR8P/NuD50OqgCA+49GLcomGEX/JDPc41I8JpA== X-Google-Smtp-Source: AGHT+IFqdz282LwrJc7tpt9dItq9MhvZBal+FTvwjcdJFGWb3KOZvktafYshJik9iiVfodSItkrN X-Received: by 2002:a05:6808:681:b0:3c5:db9f:a557 with SMTP id k1-20020a056808068100b003c5db9fa557mr9858417oig.22.1712591991000; Mon, 08 Apr 2024 08:59:51 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pc34-20020a05620a842200b0078a4137f778si8231463qkn.227.2024.04.08.08.59.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=mrH8TNwu; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-135646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A69811C223EF for ; Mon, 8 Apr 2024 15:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 762CE1422AD; Mon, 8 Apr 2024 15:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="mrH8TNwu" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2108.outbound.protection.outlook.com [40.107.236.108]) (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 60D0D1411C9; Mon, 8 Apr 2024 15:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.108 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591983; cv=fail; b=aX3PzO7YeFb8QEDIelWGZfjGzzXHjtwVLMPM9VMhueIB8VfRMhKiTGEMIdeOximVhs1EqzPXZszX0/p4QR4L5UXBv0HaK+lM1uUdZnGmEQcQGB9SyuAstVF9shEHJsIqZcb/gJW6Dj2E2ltMmh+k37p5gzhE8UOKzQMQlptKYDs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591983; c=relaxed/simple; bh=Fum0GI1laMkpBv9gA9nOjlg83S3RBpTeRvutuDfwtSc=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=QjqNolI5CQICkCIgWKeyRpxNuE/1h/hf33NJKVfNCUcdgCctCbCtzUxxClrNHpGzU5vlmdFufVG2WYDbOuh8SARCuWDBeJ9t94b1gisyTkEeoboInAFn2UEjjnVVin4rm6ti8YHiVaab5OGgJ7FYLmIkylVzvLR8ZqWIbVOg3Ik= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=mrH8TNwu; arc=fail smtp.client-ip=40.107.236.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HjaQHED2mPff4yvG6KEgtuBWAdd1DuzNYKgl0Kf5VARn+ySq14jisFqsm89TP+mIea+HlPpDKWW33CkmmkoZdVuvNjKtWE8v1mGXJuA/bZuQVwQpZ7ZJIqaRWvYC+B9C5lLJ8HDxk7AVgs6RPd7cxIuiuoMEj8XAVAQARKFj8YePukVpOf0TadLiMB6n5snJnI9RCHusVuoG0qzY9udxb1pY4G2YK51JWNsPT0pasAz8y4qw3Db9bUjw03qu4buDOL6GUD2z3ORjRkHS8/trd4ixHiOrwo8P4ds+810q9pTIigpc1oqNBdV3a5Js6oUSlJMYBsfF1HNUlRLpU0n9qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k/LDjZ3YY7Mj8/zoC9dLGpO68W62a3X0wMUre/G5Ar8=; b=D8w0JohO+pdtwx9H1tK49V9vzMs+nqaC9FeYnLqkF9DgnN7dK6sVJN6p8CEgdVJKNjG48x7kRm2drkeXDgUJBnIIsV/7/T+tFpWIiT7+nHs1r4ThezpQO2lGb9ExbApPPuS1veNH4LG4NadnAQWbv/vKqM23KHJsmqAeL4Ra2EmiQP2fwkZUyHNJjhR30rCCsJGkegbpZabC1Ibj+gRdJLn/ope7iUGBKe31zAS6CxypV7+kraTjjlWjC0Nj1JkXm2swFauGb1Fwkz9z0MrCf2QJfJeqXUH2wzb1/fj4dDIgcVNaQ1sXjKTRSVgcpZTRGmNkuODsHDEvSc3NQqCYOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k/LDjZ3YY7Mj8/zoC9dLGpO68W62a3X0wMUre/G5Ar8=; b=mrH8TNwu7fIv4opYIzuEcutzHjrLtktRHnpRr2lTc3KsCiCftgmIDctnsbzc/U+8wSpxCHbGNsmHslbm3Xwmv7H2SchJCFJXAAMRI0/JFtBJzGxYP2CV2kzfQSqjIXdEFVfSSQxlgcsXOEcZrQz5QPH5o1xAicOtnDDacISGmJ0= Received: from PH7PR12MB5685.namprd12.prod.outlook.com (2603:10b6:510:13c::22) by SJ2PR12MB8036.namprd12.prod.outlook.com (2603:10b6:a03:4c1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 8 Apr 2024 15:59:38 +0000 Received: from PH7PR12MB5685.namprd12.prod.outlook.com ([fe80::f2b6:1034:76e8:f15a]) by PH7PR12MB5685.namprd12.prod.outlook.com ([fe80::f2b6:1034:76e8:f15a%6]) with mapi id 15.20.7409.042; Mon, 8 Apr 2024 15:59:38 +0000 Message-ID: <843fdfa2-348b-410e-8ff1-84ab86cac17d@amd.com> Date: Mon, 8 Apr 2024 17:59:31 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/ttm: Print the memory decryption status just once To: Zack Rusin , dri-devel@lists.freedesktop.org Cc: Broadcom internal kernel review list , ian.forbes@broadcom.com, martin.krastev@broadcom.com, maaz.mombasawala@broadcom.com, =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240408155605.1398631-1-zack.rusin@broadcom.com> Content-Language: en-US From: =?UTF-8?Q?Christian_K=C3=B6nig?= In-Reply-To: <20240408155605.1398631-1-zack.rusin@broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: VI1PR06CA0128.eurprd06.prod.outlook.com (2603:10a6:803:a0::21) To PH7PR12MB5685.namprd12.prod.outlook.com (2603:10b6:510:13c::22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB5685:EE_|SJ2PR12MB8036:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 67BDl0y4V4lVRxeAlgNp0Zy+vidV0lfxOxGFGBsTNITeme82ticJ6I34uGnMcWHLCBoSOrZIiSGA6/iwvyoUvDd00bKCsIP+86IJ67+7PDxwa8xXzgD5mT5nphPpU9FHl//4Ijl2qjNP23c3TawDMDydzEF0izYT79xa3MxYaKnaRkcR5pb/YtOJZ/Xxnf3JXI3sAxjOD+yurCO79Kf0frlESpcIGND61TSxI69fVETViugqQCwRcyjBmXvBlhvIpnQyHR3Ip5T+NWAOrGkgoxtMAU0L7A1OgeH10dqJy4LDkWBKGuHLaqF4srNRQyXAGQEu1s3KQ616mZoWgGKI5W0MAKAJdE/6oq7ooJV6hDRqNb2DxehcAnxAAK2OjxUtQY48bs3oYUlhywa9p3NlREoFrZegtbku+WE+WLGyJNRLAqQhJNjLlHhbH4dtU3q3Rb5dq8RLtklW/iaAI4yJdaqms/xhmKg0+F5FlPLGBBbeXmpFl8/5uHgDBJVbExzfj02PP5Y7RiJvutng4lWywAkB7sMLiFdyP8UFkTvj6y3Bqp+oRu4rGrlINbTtJ72EP6PvPVu600Oq4GHLELwiG3VT85qkv6i+BzAXyUqs8T467zIvIo7NX6AgYPdQ2fN1baoQoVckUPrnPiyZlJNCLPBhHFC9Bzkqrk7L+ul0bNY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB5685.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Tzh6dEtleHAzcVpmMGY4aExTalp2dllIZUVsQkd6ZkkyRU5lNFNmc3psNFlP?= =?utf-8?B?V01ISXFiSHV4SXdLOTBFMlBxcjBtR0Q4eDAwU2FOMm9ZMlVzclIrQWlBMk9W?= =?utf-8?B?cVhVMnBleVZ5ZUVTMXdKTnd2MEZkaVAyMXoxd0x1T3RabU9qMVg4Z05lQ0NL?= =?utf-8?B?RVdJYllBTThMb3FMSlJIZk15WU03ZVM5aktwVHBEWXRrMXFuYmVhWXd0VTcy?= =?utf-8?B?N0dUWmtCS2lDRGlFNFlRYXBmVzR5cDU1WXpkNHlkeTNxa0RLU2w0OXIyMVBn?= =?utf-8?B?eUJsWktlS1FIM29LV0p0OWFDUnVnV0tqQyswTldiRHIwUk1UVThzUEdmNFE1?= =?utf-8?B?Zmx6S0tFL2xNaDcxR3A1bFIvL2EyRmNuNk02Q1o4VVhmV1pGeWFnMXBpbmNN?= =?utf-8?B?Y241ZWVjOXFVRnVweEpoOW1pMi9PR1pTY0FLWWlkemNLN3hvRHFoRmRvWDN4?= =?utf-8?B?QXFBQ3ltbUF1dWxEZDZjbHdGa24xN1RWaVhDcDN0b2ZkTnVOQ0o1amxVYXQ0?= =?utf-8?B?Z0dhdDQyQjNZNlJleDRudVlzcGo4MzhYMXlsRFpOOW5ibGNlUStNeUZWZTQz?= =?utf-8?B?SlhsbWpoVWNaSWpRcWFnYUk4d25B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Gs0S1JrQ0V0ZGwrVlpzbVM4ZmFPZ1daRlhkbjZkZk5Xam5JMXd1ZWJZbkhr?= =?utf-8?B?aENmQjF3Vng0WENQc2xpVEE2K1VqL01LZWZnM01BdUxwZHNkcWhTZ3RUMVln?= =?utf-8?B?dEprTEFkeVpTLzVmYzc0c2xtUjByWC8vbzR4UTI0Q3JTOTdnWnFPV0VsNFhQ?= =?utf-8?B?MkxtTGJhd2RGbzVHSC9XOHlKRzNFTTNpK1g1ck5FOVRteGFHcnRFQUhIRTBl?= =?utf-8?B?MThDbzR2Umh3bFMxMUhBQThIU1EzbUszYWl1UUJEYlRxaVhpNmNsSHJGOXF1?= =?utf-8?B?YXo2ZERGZkdneERCWC9PMEZET0JIYkJ0Q0pOOXNQUnpKSUd1Mk14Vjh1WWhF?= =?utf-8?B?c1VrV2l2bUlQalRJOTdLUG83bnJNYVAySzVxTUJyNWxZMW10andRWkErYWVz?= =?utf-8?B?cWZmeGtFRGVCY1d5THVYMmVVUHJ3eE9QMmR6T25tWkEzRy9iOC9TTm9mRzdX?= =?utf-8?B?L0hNTFoyRHE3bCsreHJGKzB6bnliaVU3ZW9zRGJsdkc4MGN4MXNlVFIrcUFN?= =?utf-8?B?WTVkN2kzR0owSk9sc0dkZVR4LytrcHlRRmo2Rm5SQm9Qd2ZsdkhrUEM0SWU5?= =?utf-8?Q?zqaQ=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f679758-6434-40b7-1161-08dc57e4e4c5 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB5685.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2024 15:59:38.4957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hIYZAbv13bFpqMnfSpFuyebrcN7ySTKYeFXJ92h5tp1kJJGxzuGF0nKqzhMqUzw/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8036 Am 08.04.24 um 17:56 schrieb Zack Rusin: > 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. Do we then really need this in the first place? Regards, Christian. > > Signed-off-by: Zack Rusin > Fixes: 71ce046327cf ("drm/ttm: Make sure the mapped tt pages are decrypted when needed") > Cc: Thomas Hellström > Cc: Christian König > Cc: dri-devel@lists.freedesktop.org > Cc: linux-kernel@vger.kernel.org > Cc: # v5.14+ > --- > 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);