Message ID | 20220830014925.162718-1-shaoqin.huang@intel.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9CCFECAAD2 for <linux-mm@archiver.kernel.org>; Tue, 30 Aug 2022 01:51:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 20DC6940007; Mon, 29 Aug 2022 21:51:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1BC966B0073; Mon, 29 Aug 2022 21:51:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0D352940007; Mon, 29 Aug 2022 21:51:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id F300D6B0072 for <linux-mm@kvack.org>; Mon, 29 Aug 2022 21:51:08 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id CDB7AC0CBF for <linux-mm@kvack.org>; Tue, 30 Aug 2022 01:51:08 +0000 (UTC) X-FDA: 79854581016.22.8EAB0E5 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf25.hostedemail.com (Postfix) with ESMTP id D1013A0010 for <linux-mm@kvack.org>; Tue, 30 Aug 2022 01:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661824267; x=1693360267; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TJaa7NPIQMMfRVxnqj/u/WhocpvUjB4OFaLsFLxwmS0=; b=RLCXn/Xh6YTgXwUaFbYjQLQZf8TEO27kUTjWzyBut8lG0pDUrHW59IyK c9APvLiwjSc4YYjdfVVSw52ylIsSkSgT1nRmguiyqZmEgqQPT8ofZwwWt dBodOhUQ7O1IxNtSGoTuVtsNOX8XGpaMeP+cMqHdMwkg4Pef9XQ5IjSpa KVXBLZgP1faCJJfZDrcf9S7B/4wAzKJ4ISwJCRHXjJvvo3hixJm9RhSxE IDkaBqeFWsH9zMKWdnlbYz4VimKP61dgu3yVMSNhNs1PbwTRzIUdYzXrA xgf/JQ6hksDhk6YMmWczQseyR8fhzHUsOTeKIhBFPGKWFGn6Yes5yfV78 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="381349099" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="381349099" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 18:51:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="641167025" Received: from q.bj.intel.com ([10.238.154.102]) by orsmga008.jf.intel.com with ESMTP; 29 Aug 2022 18:51:03 -0700 From: shaoqin.huang@intel.com To: rppt@kernel.org Cc: Shaoqin Huang <shaoqin.huang@intel.com>, David Hildenbrand <david@redhat.com>, Karolina Drobnik <karolinadrobnik@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rebecca Mckeever <remckee0@gmail.com> Subject: [PATCH 0/3] Add tests trying to memblock_add() or memblock_reserve() 129th region Date: Tue, 30 Aug 2022 09:49:16 +0800 Message-Id: <20220830014925.162718-1-shaoqin.huang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="RLCXn/Xh"; spf=softfail (imf25.hostedemail.com: 192.55.52.43 is neither permitted nor denied by domain of shaoqin.huang@intel.com) smtp.mailfrom=shaoqin.huang@intel.com; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661824268; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=2qFSA0N9L4DuPjzms7+V5JLcc3XhYT2h9aLawYQED3Y=; b=adNNnAG/l/t0FMjMmUCc4B0nCKZ0Bztz7Iz+eupZnhahDI6LpOcgZKejPt/vqpIXXFAb/J lzxX9QfN6/f+UyVPKVg/PDnUldITbw54S4hLqMeZ+qxuRagD3CFe+bZis9C1dgh6B96q6J Ra7cYb3t6x9wlx0iHJY2WsYoSRbElio= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661824268; a=rsa-sha256; cv=none; b=pHF+MXiAjYn/6BZFj4f0pPUiQZt2O/eZTlJTkGDdKtXpjLH3fQBugzShGUmNChOES2sp0G bFjdAEV1bTPtUe0rfib5n1/AGaHGwLDFLqBMQ0RfL0xwKgQIDkSStuhNqBPhsOFNv4cpYk rZFTUZtXF2MKhqbj6Jmcyisgnf05KkA= X-Stat-Signature: iadur8etxnqin6b1hsfsx6mruyrgqsbk X-Rspamd-Queue-Id: D1013A0010 Authentication-Results: imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="RLCXn/Xh"; spf=softfail (imf25.hostedemail.com: 192.55.52.43 is neither permitted nor denied by domain of shaoqin.huang@intel.com) smtp.mailfrom=shaoqin.huang@intel.com; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none) X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1661824267-477351 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000004, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Add tests trying to memblock_add() or memblock_reserve() 129th region
|
expand
|
From: Shaoqin Huang <shaoqin.huang@intel.com> These tests is aimed for testing the memblock_double_array() can work normal. It will using the dummy_physical_memory_init() to add the valid memory region into the memblock.memory, and this memory region will be choosed when memblock_double_array() to allocate the new memory region to double the regions. Thus the new memory.regions or reserved.regions will occupy the valid memory region, and the memory.max and reserved.max also being doubled. Check all of these changed stuff, to make sure it actually success. Shaoqin Huang (3): memblock test: Add test to memblock_add() 129th region memblock test: Add test to memblock_reserve() 129th region memblock test: Update TODO list tools/testing/memblock/TODO | 11 +- tools/testing/memblock/tests/basic_api.c | 169 +++++++++++++++++++++++ tools/testing/memblock/tests/common.c | 7 +- tools/testing/memblock/tests/common.h | 3 + 4 files changed, 179 insertions(+), 11 deletions(-)