Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp820633ybl; Fri, 30 Aug 2019 07:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoJRkPbl4WOCyvqva0/IbeUPlZYddMX4UIakdSfseePCNvdMv1bbNsN2jOv+YI58MT2dHk X-Received: by 2002:a63:ec03:: with SMTP id j3mr13837183pgh.325.1567176014612; Fri, 30 Aug 2019 07:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567176014; cv=none; d=google.com; s=arc-20160816; b=UI64eDWdmNiINVSFffhSDuy9BTC6ACGMf5RLHP0P3ecjrk6UxxiJuVpd5sw+bYFvdm ZEfE3z9QicFetSKgQ7xapKnujDaIBsSjDVY3euNkCASQtv3pnLLkYIUDje5tB0Ufrmkr E8z5BdxNHUYGdA8v3YVZGTIO7DAKk5hqFAdizIEtB//0aXB2Ba1XPmdBUtaWTEHAQImj 6R/yt5NM1PIZLxqRhGREdrqEtzMMrDNtWSAsShnPw0txJByZZkme783DU7Ee/uo0cnfQ hcJl8bhC8Mo2mMdizbhbuIjX60B34X52aLlWkK1EDeSSo1LQ1sumM4Fh8MXSl+CvA2l9 2NoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jgvuX3mMmDJc/ezKItSFjRT6UTB3DxucqcXRUOj/zcI=; b=Rxf6R4OaPEH105uF0PutH6Id6i9DDJ333to/M2W8O2QM7HzFl19pEVQvd8WV93BiG7 SrALXMeaPJHC5Rm+0BC94FEVtzHcYM5Gw1X1xTK1Yj1oC+XIIAc0HvtUMbzIS3/ozC6C ACJJKa+pGOaTk7Ozx0uqyjD7pAgUvUvu5q0PQg9TnuHSKjAI10DFq8CJP2y7jdNKdELx e4ZrgieBD/lGSLaEEzKSnGVNkABOTjP133YBFyKfSMeS5VlL/ot6DGuo3C02/SMsyj49 gzaT74r5SD7VFc83IVdyf1Uej6at+v8f8H6csoL3t0YUrclUY5NycXFYtT6rP0yQQDRz NifQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=GXget5Qq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si4673517pgv.97.2019.08.30.07.39.58; Fri, 30 Aug 2019 07:40:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=GXget5Qq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727751AbfH3Oiz (ORCPT + 99 others); Fri, 30 Aug 2019 10:38:55 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:42837 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbfH3Oiz (ORCPT ); Fri, 30 Aug 2019 10:38:55 -0400 Received: by mail-io1-f66.google.com with SMTP id n197so12457068iod.9 for ; Fri, 30 Aug 2019 07:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jgvuX3mMmDJc/ezKItSFjRT6UTB3DxucqcXRUOj/zcI=; b=GXget5QqWcoVV20hrVl8z/734YXraq2fUD3DzCUj4gl3uabBS3UFzNf0ba0+YCbay7 vog1JwlLXNOx8mQxUYV/a6YYm26t8RUPUGzw0MK0LVwAOcTOOB21n0qyBcqS0UjvNlOC kQgMcdNGGedkmoMSRrFZGpqfeWpLuSSe3EF8GyZyi/wEJCPDdTvPpw17Wht04TveC1LX qHFRlVmfR9Oic2M2iuBThZOXT14BchHEbKos5E0eQUDBc1ZjuuEjPVy+8VloXQnBs3p8 dvN5ignrb8HBn2yxAA7tN9/746wKC7bfpUsRVbEfGj8+U3HevUHZ+FMJhQl6rzi+eMRR bNng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jgvuX3mMmDJc/ezKItSFjRT6UTB3DxucqcXRUOj/zcI=; b=QBChnFSxpd2ob7MCx1Urt8v/P40IcBmgGvXWEnmmP8WNj7WpxppSGXVHiJN5lHKTuG MkGB948+QJTJT25U7bE2Xtk4pfZ+VtqjD1GSmw8KOSbLm07IGSVPYKFpbgqpfvufCWEG 5qfGX6yxUm8FCFQom6VTsrvHG9ftIQ38Y822yq8pJU7UFvmeVj1uYJtOykwxiFd8+Rea hIjvR8ho1c5kiSmcscmmjPCyQAiLzbwR5xCoj1yUCKwdsd52K/l3PJD7bgw/8eNPIzOV lcnCubcAgmECjvoL77cMgsCizNYTo/mi8vul/L5HbUOaPp0N+KiWo+kELq6tv2/WjH/L k2ww== X-Gm-Message-State: APjAAAX+Zixg95B/ybo7s/0NWWLo48OBbxmtzlyt3QUTdAzoEEHJtU3r yQnzSfngk+zpzCsAAIKOTgPkOw== X-Received: by 2002:a5d:9282:: with SMTP id s2mr4066iom.283.1567175934280; Fri, 30 Aug 2019 07:38:54 -0700 (PDT) Received: from ziepe.ca ([142.177.133.130]) by smtp.gmail.com with ESMTPSA id z9sm8093916ior.79.2019.08.30.07.38.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Aug 2019 07:38:53 -0700 (PDT) Received: from jgg by LT-JGG-7470.mtl.com with local (Exim 4.90_1) (envelope-from ) id 1i3i3A-00005B-SD; Fri, 30 Aug 2019 11:38:52 -0300 Date: Fri, 30 Aug 2019 11:38:52 -0300 From: Jason Gunthorpe To: Seunghun Han Cc: Jarkko Sakkinen , Peter Huewe , "open list:TPM DEVICE DRIVER" , Linux Kernel Mailing List Subject: Re: [PATCH 2/2] tpm: tpm_crb: enhance resource mapping mechanism for supporting AMD's fTPM Message-ID: <20190830143852.GA302@ziepe.ca> References: <20190830095639.4562-1-kkamagui@gmail.com> <20190830095639.4562-3-kkamagui@gmail.com> <20190830124334.GA10004@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 10:54:59PM +0900, Seunghun Han wrote: > When I tested this patch in my machine, it seemed that ACPI NVS was > saved after TPM CRB driver sent "TPM2_Shutdown(STATE)" to the fTPM > while suspending. Then, ACPI NVS was restored while resuming. > After resuming, PCRs didn't change and TPM2 tools such as > tpm2_pcrlist, tpm2_extend, tpm2_getrandoms worked well. > So, according to my test result, it seems that the patch doesn't > create bugs and race during resume. I have a feeling that is shear luck of link time ordering and not guarenteed?? Jason