Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp132863lqc; Thu, 7 Mar 2024 12:29:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVV0yjg4YlVbqYrKdfatX/d97sfuw5RwVFfjuofc+aE0+/Dm5wt4wzLaCf1YjdB2qhnmnhiDJbJFj0llgMmGSi/NV0lKB8FSQ8UPzkItw== X-Google-Smtp-Source: AGHT+IHzb9dSyeieuz8h5XyqYgV/HzPvHkkXxdRSg+zrwXDzjPLJzdm6cugKeQTiqxceWvSmfUhK X-Received: by 2002:a05:6830:1548:b0:6e4:f43c:1a08 with SMTP id l8-20020a056830154800b006e4f43c1a08mr10171175otp.20.1709843344140; Thu, 07 Mar 2024 12:29:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709843344; cv=pass; d=google.com; s=arc-20160816; b=j9SCX2YT+/Olh/cEPNDsMc4qhRhfd6vwjpkS9GxpuTHNbgB6RIEp7oqDPfKABS8Wme KADJVGuqjfqWUt97FOQct/hfGcUDLrzTWTon1o/kI7xw3EpLxVR1aI0Q94LQBTaG1ajJ mSoeTsCw5IlRJSS+qGT+WUZyjG3DCDco6PmGZ59ON+3Wfsj0W1a7H1H7qT71CyybvQUO P/6FHksYJv1susrG+IBpF+tMykcp0Kp4V5ajAMzVHm9LG6DUTCDFeJ9yEafSm6uyvZ1L FOtsA9f972ikCwQE7ak/ZS8qMFJmtjsv6FcL712nEuivT2FbCJb2FLew1pwN9rtdAOrl m8aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ZTOF5h6G83VrMC1R2rQ9SCr5koT9vB4S9lsP8llgPU4=; fh=Dm1DgHr0UVNjOZM7OqIUbyqljRsIM3RE6TEicuDaxmw=; b=HnmHq8lxHAIp4P3Y2UN9nVJczMJU51l2u9Y2GoETJB4I7FJiQBoNF7VIN5NfileN7V d/eb+7P6qu7qwXxp3p25ySXHFhfjtYtKEHx//xyMwNEgbSjHAFrjDq/cxGtuchYYDD6/ 9dksFsSrbOUOuWAD8rU5Qk0c+Z0qEDwzZc65+z0WSJnVc5p4bK306/1/D0Z02HmVB8AC 9gFXamK2a9W3xRSxrjvT2HPrsZYjkEIoSfdnbGurlcc6lX9jOBaGgiVRJ/5/rC8BwVOs g/9l3awFSKvytc9CuXaQZKxljTENO8rhnXEEnW/iP3liPRaiER5ESz4qaSATHWbfUCBG mYDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dwYf4VUQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x18-20020a634852000000b005dc4fdcf9b2si14744239pgk.9.2024.03.07.12.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 12:29:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dwYf4VUQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 591CAB25EC6 for ; Thu, 7 Mar 2024 20:11:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A266138496; Thu, 7 Mar 2024 20:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dwYf4VUQ" 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 7A97D130AD0; Thu, 7 Mar 2024 20:11:25 +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=1709842286; cv=none; b=lsAQWvYf73UPPh/S6hRXzbdTanvQEBk2BKdsnwxG/TWsA8+5QfOefpIDS6qYoYy57HDyCOv57qmLpWzrlPoWXLbwt0CdM3i/e8ZPj17M3EfEHe3G+zjeiozZIa0rEN1NKDsX+4xvwh1MFqCRIiOO3JpbjY14UJ0pKgA4plGcCVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709842286; c=relaxed/simple; bh=PRBFZzxdnpbyh1YzxY3vy1NxVesh8HXasBP1ah/s4Iw=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=SUu4pbuTzMUpaA2gUtV08S74/XKGWeV1i2Wgbi3sLr6lL7myWVV/85JYP8u//1CivHmMFcCqnqxGcCrq+HWxvCBPikV0O9OM37c7HH/Lpe8bLCt6bQiW1N1tZMivFk2Yu+fDLlg0T+f4wy7L5ogIuLOb+A6V9dkZzl4X4wbn25Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dwYf4VUQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BAC9C433A6; Thu, 7 Mar 2024 20:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709842285; bh=PRBFZzxdnpbyh1YzxY3vy1NxVesh8HXasBP1ah/s4Iw=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=dwYf4VUQ+8MNiFFZOdC5+Xg2Q6c6ZutnWss0KZMLp8KlC8GDhhSlnMpJbLNM/z6eV IlXT0LgZE000dtOPKKG4nUzX4daZFcfjq81v3Z2KL6poa6s+aKSM9Y6zXp83bb1oLX vf7H/wbVBC1SkcE1cV7c9XRVVcThE2GaFeAGxtKYgQAXvMLpJQC7lJuxf8znez1+nG tE2kFPtPqel/nooorKOw1X+MuvznCTPh8UYE29mc4gbm6Th3I4tei7YmQXbyFngbKC w/rlOojq3q9qQKvHj/LjNM7A0cm2xCrnL1WjF0nXIo0td7VBd5cfIXxpPvmqxgA+tQ kHDV8NBkmu/hw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 07 Mar 2024 22:11:21 +0200 Message-Id: To: "Stefan Berger" , , , Cc: , , , Subject: Re: [PATCH 1/2] powerpc/prom_init: Replace linux,sml-base/sml-size with linux,sml-log From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <20240306155511.974517-1-stefanb@linux.ibm.com> <20240306155511.974517-2-stefanb@linux.ibm.com> In-Reply-To: <20240306155511.974517-2-stefanb@linux.ibm.com> On Wed Mar 6, 2024 at 5:55 PM EET, Stefan Berger wrote: > linux,sml-base holds the address of a buffer with the TPM log. This > buffer may become invalid after a kexec and therefore embed the whole TPM > log in linux,sml-log. This helps to protect the log since it is properly > carried across a kexec with both of the kexec syscalls. So, I see only description of the problem but nothing how it gets addressed. > > Signed-off-by: Stefan Berger > --- > arch/powerpc/kernel/prom_init.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_i= nit.c > index e67effdba85c..41268c30de4c 100644 > --- a/arch/powerpc/kernel/prom_init.c > +++ b/arch/powerpc/kernel/prom_init.c > @@ -1956,12 +1956,8 @@ static void __init prom_instantiate_sml(void) > =20 > reserve_mem(base, size); > =20 > - prom_setprop(ibmvtpm_node, "/vdevice/vtpm", "linux,sml-base", > - &base, sizeof(base)); > - prom_setprop(ibmvtpm_node, "/vdevice/vtpm", "linux,sml-size", > - &size, sizeof(size)); > - > - prom_debug("sml base =3D 0x%llx\n", base); > + prom_setprop(ibmvtpm_node, "/vdevice/vtpm", "linux,sml-log", > + (void *)base, size); > prom_debug("sml size =3D 0x%x\n", size); > =20 > prom_debug("prom_instantiate_sml: end...\n"); BR, Jarkko