Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4527654ybl; Mon, 26 Aug 2019 11:44:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxySMpKPVpnOD/xyQ5X7cuuyP8dEvDRiVNoFAGkHkmw8cYTWBKlFFoXHiNOOQ4lq4gvBEGx X-Received: by 2002:a17:90a:f48d:: with SMTP id bx13mr5239828pjb.97.1566845098030; Mon, 26 Aug 2019 11:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566845098; cv=none; d=google.com; s=arc-20160816; b=tVeWmW9G6c+lIMLeQMwTQ4cDNCSOsR/zH6XfbS73gqJgTNElGVSAYBxJcPy9PUMC49 Lji4xevyUeFlt2/jWcTFqVnKoXxiHo+74jS04Ynfzu78QxIZZoqiRDeoQPWHbVtBtYkj 8oObnlBFYXdO7DWrxOpRA7ob0mjiBfbmWqaWKvGtU4bUa1Bew+jeAKQuTbgI1jv4VvVq /hY/2iNHdDZSqKA3V2P3wVuAwz2wcjLXM0e6Kppz6T4s5fpVj1w7lcnOdMNBArGb8K74 pWx7+U1aAwwkr1Yg4MDPUDH3MunHc4r4DMCwIaYE5RF5+LBB5kndeAit5ouryHy07jIp FCaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=07FbLzlU1Ecz43EkldpfmQ01c+welin2T9Ux9RN+VOA=; b=rEk6SWT/4yiv6dIxY0WQ+9XxAE5YN2j9YMrlI5508hrlAsgoiNkXfxuOu7itYr1RkI U49TL3TgrWUGJ7Yhs7rTjN90dzhUYFuIrISYJ2SvGstgUxEvLy6wEPAnGBd/vi84akw8 nRI8QHTcUgTjbcWWjEi6hpeUsanML4RpOyeuayHtANxRHaAnRDeOq9V1yxQHR7Tzh83v rZ8sVCVtKbn8KBPR1K1kJHswxpmhEuYVG+YOt6jT93BxofQDMQe/2N642FgAcppbTiw5 QfqurV7Nz/NsZG40XbWE10U1hqy8YcJP9VXUb1NfYi5RHX/h8yzJP+57m3RIvSlT2NTE mirw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="jUktPM/+"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si311337pjc.33.2019.08.26.11.44.41; Mon, 26 Aug 2019 11:44:58 -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=@google.com header.s=20161025 header.b="jUktPM/+"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732836AbfHZRkj (ORCPT + 99 others); Mon, 26 Aug 2019 13:40:39 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:41182 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731833AbfHZRki (ORCPT ); Mon, 26 Aug 2019 13:40:38 -0400 Received: by mail-io1-f65.google.com with SMTP id j5so39276876ioj.8 for ; Mon, 26 Aug 2019 10:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=07FbLzlU1Ecz43EkldpfmQ01c+welin2T9Ux9RN+VOA=; b=jUktPM/+OKebsv6P/ehphnW7txXBARqsKU0ruH32PE1OiNAW7yGvUkyq4+ekbKnfoJ 18QQJJJ0+ms68LlNYQJyAwMDc0wrtDZn0oZLbAcZGMdhLqJq1DWNt159dVv1RGCYGbZp 4Cv8usiDzHIi6fraaFOJtNw2wQAGBDlbgdOs2kD5USWeBiv1vh7d3eDQ/z3VHHDMfcKY kmNp1wOZna+Ll+lQTmfx06KtrFNjR9AdjQ/TmSbd9IHGlY+g1WnWfUOtMSjlYvoNq3ZD ssgcOGtDlKDQBjLxRqnAjffKFcmGA1bDuGNwzkBERb3jVo6YvYKWaqX6j7+NoqjHNg0R i4nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=07FbLzlU1Ecz43EkldpfmQ01c+welin2T9Ux9RN+VOA=; b=RDPu0TtOo5cnBljOZsaXqAfdPp6G5WvmyUOGjUmq6/dSpN6+ELiOqa2CZt6IKWVs3z x6j1rZUDrPVX7E85MvT49rxLXi1ACSs05ARiBTqZfwhcbcr3fAoylS1D0E4omS/quR/7 scZ9ku7AgED3nWuFpYPwNfAOpw3YCgN/ojQjdgKegXs55jHQKSHmXIozyzZcOxHVS9jz f2P3sWSLFx2GlX99Y0wbZvRBOFvTsk7KUaoSTxIYGoFmUy0//LvzT64lHUVhepjTBZ7W vfqi8dBl1Inx2yQrF8Oe26ZKsZ/zWgR6YE87TP7AeVsUoxF8W2cVsf7v+vjvToJJRNj1 EUNA== X-Gm-Message-State: APjAAAWsn7tbT8hRAaKLc8+hIWtR5qCGOMyOb1LDwmQZ/8fVQYCttVo7 EUqOJhwGhr9MR88n9KrQmr1412gnLJPTj1qrTaWceSk2fbg= X-Received: by 2002:a6b:bcc4:: with SMTP id m187mr13841450iof.16.1566841237601; Mon, 26 Aug 2019 10:40:37 -0700 (PDT) MIME-Version: 1.0 References: <20190826081752.57258-1-kkamagui@gmail.com> In-Reply-To: <20190826081752.57258-1-kkamagui@gmail.com> From: Matthew Garrett Date: Mon, 26 Aug 2019 10:40:25 -0700 Message-ID: Subject: Re: [PATCH] x86: tpm: Remove a busy bit of the NVS area for supporting AMD's fTPM To: Seunghun Han Cc: Jarkko Sakkinen , Matthew Garrett , Peter Huewe , "open list:TPM DEVICE DRIVER" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 26, 2019 at 1:18 AM Seunghun Han wrote: > To support AMD's fTPM, I removed the busy bit from the ACPI NVS area like > the reserved area so that AMD's fTPM regions could be assigned in it. drivers/acpi/nvs.c saves and restores the contents of NVS regions, and if other drivers use these regions without any awareness of this then things may break. I'm reluctant to say that just unilaterally marking these regions as available is a good thing, but it's clearly what's expected by AMD's implementation. One approach would be to have a callback into the nvs code to indicate that a certain region should be handed off to a driver, which would ensure that we can handle this on a case by case basis?