Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4360447ybe; Mon, 9 Sep 2019 08:13:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfLRqbeR/httIobzLzT39WEsJuo/fF7N5ljq8J6n3nRpwwzhwgubF2QE7Ok/LKGuuh9JXd X-Received: by 2002:a17:906:b896:: with SMTP id hb22mr19982203ejb.59.1568041992300; Mon, 09 Sep 2019 08:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568041992; cv=none; d=google.com; s=arc-20160816; b=OWJk2ipJ19v6GAsTIFWIzNDa8/dSXPNxe6WotZIZF3+g15P+lMcyBOKJZyvpjnUxAT WKq7lwHb/V6Sb1KqKTxpZfHpVNUR5QYlz3GJnpza3bX493PgYvnMxy1GHtRXqYifwove 8/3Ry2pQ2XJ/7NfOZzKQbhFvR5KjySd+KmjcHJgQzixGg6AOjy30T7yhkr40sPUxFCtq FNeFoRVwa/TKDycOpwpUxFk078jhqsWh8pObjK43sMJ2qWb96JV8kt4wmUMHyBy+wFYr u7xR11UB7r0wmmro0AN9InAp3npSJlz5Co1Az1qvJXUwg4yUHKpqzw9V+nxDocbGlnfc tMEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nkgxfyyynI7isiueWlzcBjvaj2ty8uVTrVmQjQhJboM=; b=voPyHb20UUExF6pkz3RpzXGx0l9jVi3gzWSjywO9i2eiMrIURmeB3wdIRZX3qvuqim GH3SNo13PtF3NZHyoX4gzpA61scHjnPP+fBSFThY13KnNrMtcQiFM7piyQPAXN6sJhum e6jLoE65iR3rOIYSAd30WtuouKByVnkF5l4knD8c5qZzXsqp+XHzl7QG7cs8mbnHyvz4 NC+Suyk/SRh4RHiF1cIfYCPNgK8Xmi8rVbG9X8vIUFyk1hEscjrbXFcXh5yprQvo/FfU cJP5xL7HDtDKABMTHllK7adY22Y3Mc4Gie96vOTFAy1Ifh8nfL8siPPF8JTyD5LICB13 HYAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KyRRriKU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si9397353edf.6.2019.09.09.08.12.44; Mon, 09 Sep 2019 08:13:12 -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=@gmail.com header.s=20161025 header.b=KyRRriKU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389660AbfIIJJj (ORCPT + 99 others); Mon, 9 Sep 2019 05:09:39 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41720 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727135AbfIIJJj (ORCPT ); Mon, 9 Sep 2019 05:09:39 -0400 Received: by mail-pg1-f193.google.com with SMTP id x15so7450260pgg.8; Mon, 09 Sep 2019 02:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nkgxfyyynI7isiueWlzcBjvaj2ty8uVTrVmQjQhJboM=; b=KyRRriKUZdEP7SymqzKEAIo1aivwNm+LsxEQIgia+ei8L68Fm31A0/EofVFAGS+9m2 Iv6POZsNwoAbTwOp1icRWHENj6yWlrRLRc7DdxwHR/jT1Zkk/NA5XfUK2oSJFLocI7ng lKTdCSYK5+Nx6y2q71Y0f45r7nYDbMib3oAYBwhn9qq3U5IJU2hbMLpLyJ+GqXJEDzXO 0O5IdFzML8z5ST3xEApfWCV6ufmncsI09YcWRqS1BmpbU/w+P+WFEMvQ5SfeaQb0uU8T g1CIL4xfuZ0KdaYvwvBk3HtHEGrLkRrOXYTHQanQEMIE0RxiJsilYhKlp3RNlWR84wBU nIeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nkgxfyyynI7isiueWlzcBjvaj2ty8uVTrVmQjQhJboM=; b=mcoyXrSbDWPOJzuNC/eTMmwNdzbFtU+rmcJuqYikje6d/6wltwDouHnTkp0c3u7ibH QSzJqjIgZaUBB1gCRNUSStwQWtMcr3D3AQ11Idrg9w3HV5AK4Rs2+usGrJLyF6nSBLLs oytOEBne3QLX6WiCN9MxMvtkvWlPObDg+sZp6CsSj7fLv9XCZ8eY1yE+U59SRWO+r5Nq 9J8KfqUvJPnYsE1TjezIZgozAMZQdPRHwDxlkIgS8DEcSeFoMeMob77fMfW9cu5KtbWm z116Fcw2euqYahAv2ejDVLFAp5jxEZt0RQAMQK4o9sZNLdlkf7oy2kh/b27WtPQJkkpQ M/6w== X-Gm-Message-State: APjAAAXM4030o0IGqt/FiK7OrXbp7EYPyK2cVYNemRMLmCGfAPT0xrqj R0bUAejhormCqrKAet5RGizWoqdGBvw= X-Received: by 2002:a17:90a:f993:: with SMTP id cq19mr24573494pjb.51.1568020178081; Mon, 09 Sep 2019 02:09:38 -0700 (PDT) Received: from localhost.localdomain ([175.203.71.146]) by smtp.googlemail.com with ESMTPSA id s18sm19122962pfh.0.2019.09.09.02.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2019 02:09:37 -0700 (PDT) From: Seunghun Han To: Jarkko Sakkinen Cc: Peter Huewe , Matthew Garrett , linux-integrity@vger.kernel.org (open list:TPM DEVICE DRIVER), linux-kernel@vger.kernel.org, Seunghun Han Subject: [PATCH v2 0/2] Enhance support for the AMD's fTPM Date: Mon, 9 Sep 2019 18:09:04 +0900 Message-Id: <20190909090906.28700-1-kkamagui@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series enhances the support for the AMD's fTPM. The AMD system assigned a command buffer and response buffer independently in ACPI NVS region. ACPI NVS region allowed nothing to assign a resource in it. For supporting AMD's fTPM, I made a patch to enhance the code of command and response buffer size calculation. I also made a patch to detect TPM regions in ACPI NVS and work around it. Changes in v2: - fix a warning of kbuild test robot. The link is below. https://lkml.org/lkml/2019/8/31/217 Seunghun Han (2): tpm: tpm_crb: enhance command and response buffer size calculation code tpm: tpm_crb: enhance resource mapping mechanism for supporting AMD's fTPM drivers/char/tpm/tpm_crb.c | 69 ++++++++++++++++++++++++++++++++------ 1 file changed, 59 insertions(+), 10 deletions(-) -- 2.21.0