From patchwork Wed Jul 14 13:00:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 476740 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp544904jao; Wed, 14 Jul 2021 05:59:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4G5wo2RvrsOlb6VFgLLvVjIshogOs97vOoRMUWS2ZQpDsSLwrMnVglvLeiWC6N1TpmEyZ X-Received: by 2002:a17:907:9884:: with SMTP id ja4mr11957147ejc.406.1626267581012; Wed, 14 Jul 2021 05:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626267581; cv=none; d=google.com; s=arc-20160816; b=HdZqVw8e7wDtwGdZ/uA8F3Qs+r0zgXjPPAaruLJOzZdPYdv3SROV71YV4X9Ygjmqe5 Q5yYVjpymlCusw0xkka8nj25zG6t1g+V48rBC0wLNLqrvSgUvXvri6qZgMmC+EZr0E0w z5x6tZ636lbMNoHJ7sOb+ZqQV8jCTikrviKo3bjPlLTO4w8jerMNI2t4LL+lL7ZN/sMe Gl9LRuvv7PsdtNuvJtEbizSf69ZDc+nyvQ32DD98SMDjY3mtidV0EA3UCxzd5v5ZDm30 jsrgfgtfsBmfUbpSBVV/d3/b4vk1476cCQNcaHkfOtDBnMWquiCpLpvkYtY8AhGmLCmY 4rzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=WIuWVwVtGWNBC2O/6yRh6sWmuFInx7j0lx8zSknccQk=; b=MjN18C8U9W50Az6ZStw59ZQzWLKm3RWC2Q03OQovUKxoZJ59UHxTkWpLm5ftHZ2lpc s0wvHxnSxA2HAcqwntuWaW2TjeAvHE5QRyFEGMmqej6IBJSOvwQ8tULB8g6eKG+p+lhQ HMMF3VFd5+DY4uTlwqSL/eDNjUyipbxnK4M0GZqAqEz43ilWbikGyIlJ3kAOti4rFsNw z2FFhPX3X+jgpxFyc5M39h/ZlaE0HtvGS3JJtoaFbQwGk0NsAoz1vfLdV1FNfPSyCCOO ai8CeHzitWWFsoQNXQ9mhcx/aWuiB6+1zN81yZ3xjIc/ySsQregbNWhVQqKnzEO39tDJ TKkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z7k7MwUC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e5si526849ejb.594.2021.07.14.05.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 05:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z7k7MwUC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3FE1C81F7B; Wed, 14 Jul 2021 14:59:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Z7k7MwUC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 09B2881E47; Wed, 14 Jul 2021 14:59:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AEA3080FC5 for ; Wed, 14 Jul 2021 14:59:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pf1-x430.google.com with SMTP id m83so1999983pfd.0 for ; Wed, 14 Jul 2021 05:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=WIuWVwVtGWNBC2O/6yRh6sWmuFInx7j0lx8zSknccQk=; b=Z7k7MwUC8Rp527OfKciDQxVaU0v4R7cSqBB9ydG0Hgbt/rNTJl+57xnNv7NV5K7sst A6Iv3qHDP5X3NkWS0VSV1y1phb+XUIoj+aku6fsOij5VNyvfG/VuayLsnUIsqkgkcpGU 8WRYP2KnNn0xSBBMc+pdp+U2QUxu+VY9hTaS+5rRaOMeEOKjcDcrf49B3qfsRzspnb3S Q0sccSkcEhqCirL1dEqms3tE311zhG8FjPJ56RUMpRq53fZv4f4qprNd7YdbrX/9OgXD Xy0u5V3187uGefr6knMaehcAso19SWoEZTP+71ucg4oKXTdpQYdl2925qNQR8z+ZRfjX sG1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=WIuWVwVtGWNBC2O/6yRh6sWmuFInx7j0lx8zSknccQk=; b=sws6foCKihya/gsSbPvpj7azYqw28Kqi5pcBrjeVLQd7DQfpaj/8qqa4fvRcFvd7OK YlBcVMccF7yGb8hMBV5/pcXsWcEyPL2QD0VouTbNOtOG8dEWRHKc+UYEcEtW5Mo9Fn9N qp+u3S8LN7IPyZKqJf7wpKYQXC9RW4Nt9gIPd7sE0TSXJjV3lUSPsPf+AzxIx2jYcNIZ RI7aVHXRgJAobgHUtChhgvqjMdhsneHHYAjHBmKNvkooUaJiUsC8uVDqTXoBIJ7FJAGo oZkVTFyjZhHLlT56Drq4xzcYkIHi3qoCyrmFDyKQt/NeIQwiX3h28ak+3A2mKTXMX3Pi z1Yw== X-Gm-Message-State: AOAM531TIXlN4roBD0ySoLRDcDBQ7TgriXhcXheY3a/lB8RtJ5bbwcyQ cgCMxvhGm/dPZ1fXfsoEhCzErA== X-Received: by 2002:aa7:854a:0:b029:332:330e:1387 with SMTP id y10-20020aa7854a0000b0290332330e1387mr413609pfn.67.1626267562183; Wed, 14 Jul 2021 05:59:22 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id m21sm2787509pfo.159.2021.07.14.05.59.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 05:59:21 -0700 (PDT) From: Masahisa Kojima To: Heinrich Schuchardt , Alexander Graf , Ilias Apalodimas , Simon Glass , Masahisa Kojima , Dhananjay Phadke , u-boot@lists.denx.de Subject: [PATCH v2 1/6] efi_loader: increase eventlog buffer size Date: Wed, 14 Jul 2021 22:00:01 +0900 Message-Id: <20210714130006.17837-2-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210714130006.17837-1-masahisa.kojima@linaro.org> References: <20210714130006.17837-1-masahisa.kojima@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean TCG PC Client PFP spec says "The Log Area Minimum Length for the TCG event log MUST be at least 64KB." in ACPI chapter. This commit increase the buffer size to 64KB. Signed-off-by: Masahisa Kojima --- Changes in v2: - increase buffer size to 64KB, it follows the minimum size requirement stated in TCG spec lib/efi_loader/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Heinrich Schuchardt diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 156b391521..20edac6932 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -326,7 +326,7 @@ config EFI_TCG2_PROTOCOL config EFI_TCG2_PROTOCOL_EVENTLOG_SIZE int "EFI_TCG2_PROTOCOL EventLog size" depends on EFI_TCG2_PROTOCOL - default 4096 + default 65536 help Define the size of the EventLog for EFI_TCG2_PROTOCOL. Note that this is going to be allocated twice. One for the eventlog it self