From patchwork Mon Jul 27 03:44:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1336614 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=fglGWfd+; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BFQk16L6vz9sPB for ; Mon, 27 Jul 2020 13:47:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 87C18822AB; Mon, 27 Jul 2020 05:46:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="fglGWfd+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E7C9822E9; Mon, 27 Jul 2020 05:45:58 +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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) (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 D110C822DB for ; Mon, 27 Jul 2020 05:45:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x343.google.com with SMTP id v21so4040111otj.9 for ; Sun, 26 Jul 2020 20:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Xx4r2BvXcXDhu/dBWkQp26IFHqBrFO5rwqTNmcA6SOg=; b=fglGWfd++FPp9twezGfgqnYuFrYksjgjXRTSBzqzYspi7jIzbjbk/ozgy7AwDpto+U rLsVJzQPl5hBX9hM+PsSk57ZqWUJlIey8XgQleajGx6OlCFkVOz7noVb+nxwzyBcD1Qw imrOlTM0e2K7CglF+F3K+8TLG2Y4S0VKjwVYI= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Xx4r2BvXcXDhu/dBWkQp26IFHqBrFO5rwqTNmcA6SOg=; b=g1dIKqWAVrewy9H58pcH8luH2L/Pq2BGAaEEgo2POUg8qMoEeWwq9iCdwY8GbNFLNI tCr7PfH80RT39qOrqV50Urezk0x29xIyqsFuMp7VzAnRKZ0MLGV99DBIucQCCRpTUPYA aZPMi/IwL//+2BDQ6SHzpEYCkgmi5l0oOomg1uK9+Yc6g5yn8LBl1AwzEcet3n4CsWZo tydENbjEtQBQr1z+WNnyEPUjjZgd4M+n1zW6WF49yPNwPxw7vWcMIMPRV72y9KuSAclg 9wkBcrjJYrosLZXu4o66AtBmIzffRETk41xLLFXVAQg1QJs6zYoy1AzKnN+IRigZyXiK QnJQ== X-Gm-Message-State: AOAM532OyFT6IyoKcxUUXcDRK3rppaYKorb/cU9q3gJlMDSpCtbD9uey jueRCGbNfEiWnftPrB2zuT6WWAuOOGOGCQ== X-Google-Smtp-Source: ABdhPJw6mcHzFGMIeymEqAIP9GxgwqMXst6q4wxiYe2T0pl0PmC5YA4oPtTVnaTqSZoyaS/9UJn6Dw== X-Received: by 2002:a9d:6a88:: with SMTP id l8mr7126112otq.13.1595821548553; Sun, 26 Jul 2020 20:45:48 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id p64sm1808996oih.39.2020.07.26.20.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 20:45:48 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Wolfgang Wallner , Bin Meng , Simon Glass , Wolfgang Wallner Subject: [PATCH v1 09/54] x86: acpi: Expand the GNVS Date: Sun, 26 Jul 2020 21:44:41 -0600 Message-Id: <20200726214408.v1.9.I0d7d06404af2f2a88031aa0821faebb076dfe81b@changeid> X-Mailer: git-send-email 2.28.0.rc0.142.g3c755180ce-goog In-Reply-To: <20200727034526.1461514-1-sjg@chromium.org> References: <20200727034526.1461514-1-sjg@chromium.org> MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Expand this to 4KB so that it is possible to add custom information to it. On Chromebooks this is used to pass verified-boot information. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi/global_nvs.h | 2 +- arch/x86/include/asm/intel_gnvs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/acpi/global_nvs.h b/arch/x86/include/asm/acpi/global_nvs.h index a552cf6374f..46383629cc5 100644 --- a/arch/x86/include/asm/acpi/global_nvs.h +++ b/arch/x86/include/asm/acpi/global_nvs.h @@ -16,6 +16,6 @@ * DSDT, since it is created by code, so ACPI_GNVS_ADDR is unused. */ #define ACPI_GNVS_ADDR 0xdeadbeef -#define ACPI_GNVS_SIZE 0x100 +#define ACPI_GNVS_SIZE 0x1000 #endif /* _ACPI_GNVS_H_ */ diff --git a/arch/x86/include/asm/intel_gnvs.h b/arch/x86/include/asm/intel_gnvs.h index e2d479d4f32..c1e9d65779f 100644 --- a/arch/x86/include/asm/intel_gnvs.h +++ b/arch/x86/include/asm/intel_gnvs.h @@ -36,6 +36,7 @@ struct __packed acpi_global_nvs { u8 unused2[0x1000 - 0x100]; /* Pad out to 4096 bytes */ #endif }; + #ifdef CONFIG_CHROMEOS check_member(acpi_global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET); #endif