Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1243521lqb; Thu, 18 Apr 2024 04:40:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgUPIVsX7OsPoxV7Wm/6tToHpsqGX3ylMzW5iJEnq9mTOUEyT6ixDwxJh5T+gWwtF+A8BGdx9ifpc2xK1/gFJgSCg9V7THw1OPb8sqog== X-Google-Smtp-Source: AGHT+IGb5Ebj8lC2+x+O0AF+Ov5jGJUMZxE4BDZJCBmWcvRjWesAxbFeJxrivfqARpAsMAhw/gd+ X-Received: by 2002:a50:d794:0:b0:568:9936:b2e with SMTP id w20-20020a50d794000000b0056899360b2emr1582692edi.24.1713440430988; Thu, 18 Apr 2024 04:40:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713440430; cv=pass; d=google.com; s=arc-20160816; b=tmtgIsV26qJdH9gUu7WyBdjjquQvyfz088PBL8dYG3yANv0KhE0bzZwKQycwZTx6mC hOovW0l2pWe6cqAFSIO+waGit2D1lnaol5fPJHXiejiFDwCjClOG7H9wZavTJ1kQrVt9 aLJKkO9KjWqWmTD5+oAA+c88vw9ruJMTZHdZKe+Nacbuz6cKWhAD3VIXoz7aLr/0D0/M Q7GlmeTkbzprHYhlzl3ESaRakh2J614CD8W4DlrICVwvtp6bjBD2QR5lbf03C5z7Q0xO S/3GNd/BzPnCVik4g/NjrohmceP6mwD1mFo72OlLHaFqu93MSANE6KIohsGmeLHE1J8u shFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=yPdetuRBjXUV0x/T5+LWombu6Cj3dX6RWAGOI9ScLmc=; fh=gSeBIpB5WhC//Bh4xiVklnhv+ewe50Oxh9fckuyNU8o=; b=HGz21n2lKnx1CRo1hfvvGTUoQi/s4pYTqQiaNEGa1NB7bI+NjyIDEhJQmdgCsubrak 1EvEGsK2JrqGP1QBKEWgLSZgwyVqhrcaZAhArN1JKtoe/9Na+0lKslo33+6hA80pTxwl KIY/07wYdEVa3nbGYSs+lHKGgebCyZpZJX3HWjqUdfHBNzFNPOaP1IW9u20/Ay6MP6Eu jtNyR0AwMByJPnIVl+7DgIBqqduxicamXpmbE08pXt7M69+SxDODjJP0w7B5T0GY+FXz 6hZWlGi+fR+48VxVErBMQg105FXbRmw9Fjx6PxMdb8s/ds3JWBb3fjYYIlHhPhi9/oBS V4zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=NdqBehYG; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-149989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l11-20020aa7c30b000000b00570be7579ccsi756641edq.309.2024.04.18.04.40.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=NdqBehYG; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-149989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B48D91F225B9 for ; Thu, 18 Apr 2024 11:40:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7587F15FA6F; Thu, 18 Apr 2024 11:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="NdqBehYG" Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F067815ECE9 for ; Thu, 18 Apr 2024 11:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713440293; cv=none; b=H1rJwGWOsY0lUiPrrWfA0U17vFbTeLehAHpBZSKIiOA9se4FDZfI56QM5CPVx02wss4gFvt8GsGmA3a45T0+wYQa7xQeL76aNM5aUXwdoWyEXA84+78R1bhDz0cVori1IAXv1gRKv+m6X+AxE66a90DdFT0NNoGw8q077SlN9ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713440293; c=relaxed/simple; bh=yPdetuRBjXUV0x/T5+LWombu6Cj3dX6RWAGOI9ScLmc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gnkrHyPRt2Ot496zNz0hQTNCr2FCipb6aHKq7NQPMRPZOXV4NS0bNYdxGnaG46A8Jihr46N+G8iLLYu6OTruhCLGeyGKg6Mjee3XeEUhwkIreDbeD6o6rk8QnKzPoEtPvRNl+4kYXJb5VFewr8ty0KEWtfCVdgL+qWVxV3B5X+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=NdqBehYG; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-6153d85053aso6128237b3.0 for ; Thu, 18 Apr 2024 04:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1713440291; x=1714045091; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yPdetuRBjXUV0x/T5+LWombu6Cj3dX6RWAGOI9ScLmc=; b=NdqBehYGc1RdDeyJCpdGKdih36i2dSIuKfTCKDZxlt2+uH8bYxX88R58bo0UeAFaqZ pxsGjlYcUXzfyAjFFXWLwUaWQxFfrv73KtmndIMg56+FQPB0vp31QVDgTB8PHGySaJDH Ff43+OLgL2I7jm437PG25dKNzYPFCmbYJMT/Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713440291; x=1714045091; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yPdetuRBjXUV0x/T5+LWombu6Cj3dX6RWAGOI9ScLmc=; b=gR0DnySunD1Ktf7vBD1Tzqdh8xe5XaZRaWZFpBNXgNQcP6xqcM8f5VuD5ecdzqmecg X5m/QvQqoaNawylUlQy2ZNXSjsUGOr+wrn+cOvy9PpQ9Rxz2HyD8omsL5RYPWtruSLb8 EyUu9D2wAu0KGo5pVqUhxECgbh9Lfus1NNl1Vq+ZN3gMs2clDNpEOyZAUVDZ0MX2pFTA Er5TakSYRjqv5/8CoaGr1oYzMA8OlU35wSRrMDMVI3dr/erZgg/Q65OELrm1rr4u4iJI lY4jh0nXFmHN03jaMXrQmvMawOzrGKhuFznkJyv9vPAerfzUdV/SEtiB9hh7WYBtk/2q aDtQ== X-Forwarded-Encrypted: i=1; AJvYcCWOVY0zEQECFMmphrCaXOw5xRLZvTeM32m1dr8KEXHjxuofz+Ny6KPCZpxOEmLnxF+5Rl1OEmBZfroc1GaB8A4awZrttuJ0ZsgeiK0E X-Gm-Message-State: AOJu0Yw3mv00UPZjBp7T2SkXwFNmXjJvKKngoyozuieHksidadXZR/UT QRcsIGFZxNrJGwmKy9G45tb5pcJ2LItgNS0ptGmFWmX/vmoUvKcjyNXfO00LVE4hmVe6pw5xQr6 Mj1S5c9fFEfnQz+q0OKkIa8isL9h/6QFWwHTq X-Received: by 2002:a05:690c:700a:b0:61a:b0bc:934c with SMTP id jf10-20020a05690c700a00b0061ab0bc934cmr2704594ywb.3.1713440290952; Thu, 18 Apr 2024 04:38:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240408155605.1398631-1-zack.rusin@broadcom.com> <843fdfa2-348b-410e-8ff1-84ab86cac17d@amd.com> <5ca415e9-fb3e-4d81-b385-71e8780a1399@amd.com> In-Reply-To: From: Zack Rusin Date: Thu, 18 Apr 2024 07:38:00 -0400 Message-ID: Subject: Re: [PATCH] drm/ttm: Print the memory decryption status just once To: =?UTF-8?Q?Christian_K=C3=B6nig?= , dri-devel@lists.freedesktop.org Cc: Broadcom internal kernel review list , Ian Forbes , Martin Krastev , Maaz Mombasawala , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ping on this one. If we don't want the "_once" then I can quickly prepare a patch that just removes the logging altogether, because while useful it's polluting up the kernel logs too much right now so getting a fix in for 6.9 for this would be great. z On Mon, Apr 8, 2024 at 1:46=E2=80=AFPM Zack Rusin = wrote: > > Sorry, apologies to everyone. By accident I replied off the list. > Redoing it now on the list. More below. > > On Mon, Apr 8, 2024 at 12:10=E2=80=AFPM Christian K=C3=B6nig > wrote: > > > > Am 08.04.24 um 18:04 schrieb Zack Rusin: > > > On Mon, Apr 8, 2024 at 11:59=E2=80=AFAM Christian K=C3=B6nig > > > wrote: > > >> 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 en= abled. > > >> Do we then really need this in the first place? > > > Thomas asked for it just to have an indication when those paths are > > > being used because they could potentially break things pretty bad. I > > > think it is useful knowing that those paths are hit (but only once). > > > It makes it pretty easy for me to tell whether bug reports with peopl= e > > > who report black screen can be answered with "the kernel needs to be > > > upgraded" ;) > > > > Sounds reasonable, but my expectation was rather that we would print > > something on the device level. > > > > If that's not feasible for whatever reason than printing it once works > > as well of course. > > TBH, I think it's pretty convenient to have the drm_info in the TT > just to make sure that when drivers request use_dma_alloc on SEV > systems TT turns decryption on correctly, i.e. it's a nice sanity > check when reading the logs. But if you'd prefer it in the driver I > can move this logic there as well. > > z