{"id":801894,"url":"http://patchwork.ozlabs.org/api/1.2/patches/801894/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1502862122-14771-3-git-send-email-bmeng.cn@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1502862122-14771-3-git-send-email-bmeng.cn@gmail.com>","list_archive_url":null,"date":"2017-08-16T05:41:51","name":"[U-Boot,02/13] x86: fsp: Update struct common_buf for FSP spec 1.1","commit_ref":"bb737ced7fc8c6d49554fb431971df87720b0e00","pull_url":null,"state":"accepted","archived":false,"hash":"c0ff88ff73977a086578dfa70f527304dbf4fa1f","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/1.2/people/64981/?format=json","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"delegate":{"id":56520,"url":"http://patchwork.ozlabs.org/api/1.2/users/56520/?format=json","username":"bmeng","first_name":"Bin","last_name":"Meng","email":"bmeng.cn@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1502862122-14771-3-git-send-email-bmeng.cn@gmail.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/801894/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/801894/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"E7KORlBN\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xXJC02Nx0z9sPr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 16 Aug 2017 15:42:20 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 16E0CC21DB5; Wed, 16 Aug 2017 05:38:48 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id ED7A7C21E1C;\n\tWed, 16 Aug 2017 05:38:10 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid D74E7C21DDD; Wed, 16 Aug 2017 05:37:46 +0000 (UTC)","from mail-it0-f67.google.com (mail-it0-f67.google.com\n\t[209.85.214.67])\n\tby lists.denx.de (Postfix) with ESMTPS id A8BBEC21DD9\n\tfor <u-boot@lists.denx.de>; Wed, 16 Aug 2017 05:37:42 +0000 (UTC)","by mail-it0-f67.google.com with SMTP id o72so1877476ita.3\n\tfor <u-boot@lists.denx.de>; Tue, 15 Aug 2017 22:37:42 -0700 (PDT)","from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139])\n\tby smtp.gmail.com with ESMTPSA id g13sm30442ioi.0.2017.08.15.22.37.40\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 15 Aug 2017 22:37:40 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=1WVJhpoLKKFfGLRxcnTvsJ6OuhSi/LNWjLKmC8XivD8=;\n\tb=E7KORlBNpk94tw67GxjNoBtFwYOaiyIVQRlIntmA6gqnaQb2dKmpP+ZvR1S3NGwYuj\n\te131oE7hZJ3Zoc/eyZJ0aDgM4nK1XBG03xUqMJRpr0GkhCinpi8nbEctjG2LNFLHYxH9\n\t/xgb2fdiK8YG3tDR03RFQVoj5rCN7N9R2yAug0r7PJVlGXnRjJJ9vMzv7VqehYlLEd17\n\tIsBcqEn3tGBP40m5rpqSXuxxVObMbfRd+19JnnvsCSz2eOWpQvkFqwbmyeRrKD/99YPp\n\tdit5pxu7STaKm9XkWIKLMvCkIW1xD1Z9U0KlremdkZutBIf6hVi3vrtvAdrNj+hBGjAW\n\tAvMw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=1WVJhpoLKKFfGLRxcnTvsJ6OuhSi/LNWjLKmC8XivD8=;\n\tb=UAJZsJnsYkRUTb6oEggu+bL06E993UthiE9rA2kk2+XtqODZoyNir2fyTxOQAuOZFp\n\tJABbUR3lRaizeJBhIshce68+x3aw/gfWlE5dq3OMOYyWiQvQSRrJbFZ/SN3MSyuEUMeY\n\tu7cGuJZTBVJqCy/i6z+5qJsviw6dLfflA3Zz+opxi33IvTRyNQ6qv3YKTcTAnvhEr9t1\n\tyziyRnOzhnoB9Nti54acTqrjhDBi2+0J+CSQepLu812p6wMxtxc/uNBjzgU/pTXkwpa1\n\tIqqSNOLNZhvRsSFmWbQVCjNBZlkpOYoPHzILalSeahsGZCTtn8kJgVGLuM25UIV2jG5P\n\tZzXA==","X-Gm-Message-State":"AHYfb5hDkv9//kAeIaI83MSSqI1x0eaUjNZRfdikqxOzxgDZwSLilg2U\n\t41242ONnRcFrgw==","X-Received":"by 10.36.250.129 with SMTP id v123mr954617ith.17.1502861861639; \n\tTue, 15 Aug 2017 22:37:41 -0700 (PDT)","From":"Bin Meng <bmeng.cn@gmail.com>","To":"Simon Glass <sjg@chromium.org>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>","Date":"Tue, 15 Aug 2017 22:41:51 -0700","Message-Id":"<1502862122-14771-3-git-send-email-bmeng.cn@gmail.com>","X-Mailer":"git-send-email 1.7.9.5","In-Reply-To":"<1502862122-14771-1-git-send-email-bmeng.cn@gmail.com>","References":"<1502862122-14771-1-git-send-email-bmeng.cn@gmail.com>","Subject":"[U-Boot] [PATCH 02/13] x86: fsp: Update struct common_buf for FSP\n\tspec 1.1","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"FSP spec 1.1 adds one more member to the struct common_buf to\ndetermine the memory size that can be reserved by FSP below \"top\nof low usable memory\" for bootloader usage. This new member uses\nthe reserved space so that it is still compatible with previous\nFSP spec 1.0.\n\nA new HOB (FSP_HOB_RESOURCE_OWNER_BOOTLOADER_TOLUM_GUID) is also\npublished when common_buf.tolum_size is valid and non zero.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n arch/x86/include/asm/fsp/fsp_api.h | 3 ++-\n arch/x86/include/asm/fsp/fsp_hob.h | 8 ++++++++\n 2 files changed, 10 insertions(+), 1 deletion(-)","diff":"diff --git a/arch/x86/include/asm/fsp/fsp_api.h b/arch/x86/include/asm/fsp/fsp_api.h\nindex afafb30..43f0cdb 100644\n--- a/arch/x86/include/asm/fsp/fsp_api.h\n+++ b/arch/x86/include/asm/fsp/fsp_api.h\n@@ -43,7 +43,8 @@ struct common_buf {\n \tu32\tstack_top;\n \tu32\tboot_mode;\t/* Current system boot mode */\n \tvoid\t*upd_data;\t/* User platform configuraiton data region */\n-\tu32\treserved[7];\t/* Reserved */\n+\tu32\ttolum_size;\t/* Top of low usable memory size (FSP 1.1) */\n+\tu32\treserved[6];\t/* Reserved */\n };\n \n enum fsp_phase {\ndiff --git a/arch/x86/include/asm/fsp/fsp_hob.h b/arch/x86/include/asm/fsp/fsp_hob.h\nindex 7c22bcd..8ce665e 100644\n--- a/arch/x86/include/asm/fsp/fsp_hob.h\n+++ b/arch/x86/include/asm/fsp/fsp_hob.h\n@@ -242,4 +242,12 @@ static inline u16 get_guid_hob_data_size(const struct hob_header *hdr)\n \t{ 0x82, 0xb9, 0x56, 0xa5, 0xf3, 0xe6, 0x2a, 0x07 } \\\n \t}\n \n+/* The following GUIDs are newly introduced in FSP spec 1.1 */\n+\n+#define FSP_HOB_RESOURCE_OWNER_BOOTLOADER_TOLUM_GUID \\\n+\t{ \\\n+\t0x73ff4f56, 0xaa8e, 0x4451, \\\n+\t{ 0xb3, 0x16, 0x36, 0x35, 0x36, 0x67, 0xad, 0x44 } \\\n+\t}\n+\n #endif\n","prefixes":["U-Boot","02/13"]}