Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2192806/?format=api
{ "id": 2192806, "url": "http://patchwork.ozlabs.org/api/patches/2192806/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/87qzr1z0tf.fsf@jcompost-mobl.amr.corp.intel.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "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": "<87qzr1z0tf.fsf@jcompost-mobl.amr.corp.intel.com>", "list_archive_url": null, "date": "2026-02-04T02:42:36", "name": "x86/coreboot: Exclude memory regions starting above 4GB", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "5f77e27dcce5d0ea2f3fc22e66e0a99c993f08f5", "submitter": { "id": 72823, "url": "http://patchwork.ozlabs.org/api/people/72823/?format=api", "name": "Jeremy Compostella", "email": "jeremy.compostella@intel.com" }, "delegate": { "id": 56520, "url": "http://patchwork.ozlabs.org/api/users/56520/?format=api", "username": "bmeng", "first_name": "Bin", "last_name": "Meng", "email": "bmeng.cn@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/87qzr1z0tf.fsf@jcompost-mobl.amr.corp.intel.com/mbox/", "series": [ { "id": 490933, "url": "http://patchwork.ozlabs.org/api/series/490933/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=490933", "date": "2026-02-04T02:42:36", "name": "x86/coreboot: Exclude memory regions starting above 4GB", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/490933/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2192806/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2192806/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=D0zDDw0U;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=intel.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.b=\"D0zDDw0U\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=intel.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=jeremy.compostella@intel.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f5Zwf2Dpvz1xtH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 04 Feb 2026 20:36:02 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 59D3583B55;\n\tWed, 4 Feb 2026 10:34:53 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 3478B83A24; Wed, 4 Feb 2026 03:42:44 +0100 (CET)", "from mgamail.intel.com (mgamail.intel.com [192.198.163.16])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 2AC01839D5\n for <u-boot@lists.denx.de>; Wed, 4 Feb 2026 03:42:40 +0100 (CET)", "from orviesa010.jf.intel.com ([10.64.159.150])\n by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Feb 2026 18:42:38 -0800", "from ssimmeri-mobl2.amr.corp.intel.com (HELO\n jcompost-mobl.amr.corp.intel.com) ([10.125.110.217])\n by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Feb 2026 18:42:38 -0800" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1770172961; x=1801708961;\n h=from:to:cc:subject:date:message-id:mime-version;\n bh=H3wNjeunb1xFQApzsfjGkr8qkNZbVeeD7UnaPab/Xow=;\n b=D0zDDw0U9fUanaG87TCf2v8YOhg/zfzki+uf73Zxfi2Uy2ODwvMzk56l\n pJZ+Inw6faSmB3IyheCbohD/vYRONttjG2RETC79R5AChbndiwh+HzLXS\n dPWhDimN1AweY8M0EsLUi1Krdb4Zit3VcwGcbaRamy4F0HT0NBAgEzCqS\n CkuKllA9tAYA/oUl/cGkP0GDynm7YWo8MujFYmODNnvqZvZdfFCxlJU6y\n c8zsccJgAyMTqQXV79zfAiHwAI6rc5pARQL5rov4D4Ydu+9HLXGgIwj+z\n KvRwyrBFQUmOoJJLHsoPM/NMmz5pf3e8MXAL2f7JFgzLLer0EtFj0MQ6l A==;", "X-CSE-ConnectionGUID": [ "EttcW4/ITZW7JycuUIwU6w==", "5tMIbtLwTHOde8GV7G+ddw==" ], "X-CSE-MsgGUID": [ "VO++Ih7PRRSLztCqsMZ0Hg==", "OXVYGB8SRp+pcjD6WhPT7w==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11691\"; a=\"58932990\"", "E=Sophos;i=\"6.21,271,1763452800\"; d=\"scan'208\";a=\"58932990\"", "E=Sophos;i=\"6.21,271,1763452800\"; d=\"scan'208\";a=\"209323206\"" ], "X-ExtLoop1": "1", "From": "Jeremy Compostella <jeremy.compostella@intel.com>", "To": "<u-boot@lists.denx.de>", "Cc": "Simon Glass <sjg@chromium.org>", "Subject": "[PATCH] x86/coreboot: Exclude memory regions starting above 4GB", "Date": "Tue, 03 Feb 2026 19:42:36 -0700", "Message-ID": "<87qzr1z0tf.fsf@jcompost-mobl.amr.corp.intel.com>", "Organization": "Intel Corporation - 2200 Mission College Blvd. Santa Clara, CA\n 95052. USA", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Mailman-Approved-At": "Wed, 04 Feb 2026 10:34:46 +0100", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "This commit updates the RAM region filtering logic in\nboard_get_usable_ram_top() to skip any memory regions whose start address\nis above 4GB. Previously, only the end address was capped at 4GB, but\nregions entirely above this threshold were still considered.\n\nTypically, the following memory map entries would cause\nboard_get_usable_ram_top() to return 0x100000000, which is incorrect.\n\n start=00000000, end=00001000, type=16\n start=00001000, end=000a0000, type=1\n start=000a0000, end=000f6000, type=2\n start=000f6000, end=000f7000, type=16\n start=000f7000, end=00100000, type=2\n start=00100000, end=6f170000, type=1\n start=6f170000, end=70000000, type=16\n start=70000000, end=80800000, type=2\n start=e0000000, end=f8000000, type=2\n start=fa000000, end=fc000000, type=2\n start=fc800000, end=fc880000, type=2\n start=fd800000, end=fe800000, type=2\n start=feb00000, end=feb80000, type=2\n start=fec00000, end=fed00000, type=2\n start=fed20000, end=fed80000, type=2\n start=feda1000, end=feda2000, type=2\n start=fedc0000, end=fede0000, type=2\n start=100000000, end=102400000, type=2\n start=102400000, end=47f800000, type=1\n start=4000000000, end=4020000000, type=2\n\nBy adding a check to continue the loop if the region's start address\nexceeds 0xffffffffULL, the function now properly ignores regions that are\nnot usable in 32-bit address space.\n\nChange-Id: I8cbe0281aeea67a2f5bb9f6669456f5c7df9b409\nSigned-off-by: Jeremy Compostella <jeremy.compostella@intel.com>\n---\n arch/x86/cpu/coreboot/sdram.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c\nindex 013225f129a..cc1edd7badd 100644\n--- a/arch/x86/cpu/coreboot/sdram.c\n+++ b/arch/x86/cpu/coreboot/sdram.c\n@@ -42,6 +42,8 @@ phys_addr_t board_get_usable_ram_top(phys_size_t total_size)\n \t\t\tcontinue;\n \n \t\t/* Filter memory over 4GB. */\n+\t\tif (start > 0xffffffffULL)\n+\t\t\tcontinue;\n \t\tif (end > 0xffffffffULL)\n \t\t\tend = 0x100000000ULL;\n \t\t/* Skip this region if it's too small. */\n", "prefixes": [] }