From patchwork Tue Oct 11 06:21:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Shaoqin" X-Patchwork-Id: 13003667 Return-Path: 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 72EE0C433FE for ; Tue, 11 Oct 2022 06:21:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0C2648E0002; Tue, 11 Oct 2022 02:21:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E7B1F8E0001; Tue, 11 Oct 2022 02:21:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF4748E0002; Tue, 11 Oct 2022 02:21:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B5D208E0001 for ; Tue, 11 Oct 2022 02:21:23 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 477F8C06A7 for ; Tue, 11 Oct 2022 06:21:23 +0000 (UTC) X-FDA: 80007671646.19.51B6BFA Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf17.hostedemail.com (Postfix) with ESMTP id 9DAA04001F for ; Tue, 11 Oct 2022 06:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665469282; x=1697005282; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=daaV3WZWukjbgGvbQ73mOCe8nI4eaN3LDyARuyKPkhs=; b=i7SBQxGvnec0dNaGfXlte/zyvRKhRoDWIcmrRYpY7r/35VdTd7n0ZBwC cFJNwTbjFUezh/G1AJWb5jCr8k/NhzoC5vvhkeuXoP2wSbSI1TzPykD9c w0hf20715CvM4bFFPgniBxI9N0990MmiL4SPnM7AK3lhPtHi32oItK5kL 3k0Rf12lXbSWfaTixGokRSlpyoibpxKcnrTFt7DGgTk0xBE8lZ0XSF4Mg ceLwHZOh9PIthvC7+zxNUSlt6LVSd6+g9vyNxUCbHwEbS8YtP2Ho+2Xar wLhLFj4WbX6eLJbSyCnpimLsDHBnFE95Z34SNtN0qxl5tg2kjcWJ1Zv07 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="390727663" X-IronPort-AV: E=Sophos;i="5.95,175,1661842800"; d="scan'208";a="390727663" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2022 23:21:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="577321998" X-IronPort-AV: E=Sophos;i="5.95,175,1661842800"; d="scan'208";a="577321998" Received: from q.bj.intel.com ([10.238.154.102]) by orsmga003.jf.intel.com with ESMTP; 10 Oct 2022 23:21:20 -0700 From: shaoqin.huang@intel.com To: rppt@kernel.org Cc: Shaoqin Huang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/3] memblock test: Update TODO list Date: Tue, 11 Oct 2022 14:21:22 +0800 Message-Id: <20221011062128.49359-4-shaoqin.huang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221011062128.49359-1-shaoqin.huang@intel.com> References: <20221011062128.49359-1-shaoqin.huang@intel.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665469282; 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:in-reply-to:references:references:dkim-signature; bh=s1k9mRuJjmyXidKKJwOEnc91tA8GRPaK+2E2lNwx6K4=; b=JfUs4p/Ls0p//C6xs2TKTnBIFh30vR9AWfW74/PHJO9Isl5CH4bQOYjC2wrA3+ncgMV9iB 2pj2V+J8IgBnC23BIMXdOWTliMJ1IffwYktDH5kTa3m1pAFoXTgVOEAhFp/QUm64qiTIfN 12Ia+ik6fVBy+P0MrHN614jTv+sqLSM= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=i7SBQxGv; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of shaoqin.huang@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=shaoqin.huang@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665469282; a=rsa-sha256; cv=none; b=aH8T70jvXhgnIF/zkti/mEKGIg2ENXtRNlah2ZEGlEw1tWWpEJOaE7Xrt9Jog5sbzIYf6M tImxU1Cmre5RkgkrVXpjdlbsqz1Kq32f1irhcrleYnpllKd3tOQpFgEBkjve8OggEQE3AS cAAzHCj2PcwyMOgeDwo65XHiP7YL4+U= Authentication-Results: imf17.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=i7SBQxGv; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of shaoqin.huang@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=shaoqin.huang@intel.com X-Stat-Signature: 6crmdb5um96z9h918b4ynick4oik37os X-Rspamd-Queue-Id: 9DAA04001F X-Rspam-User: X-Rspamd-Server: rspam06 X-HE-Tag: 1665469282-949800 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Shaoqin Huang Remove the completed items from TODO list. Signed-off-by: Shaoqin Huang --- tools/testing/memblock/TODO | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/testing/memblock/TODO b/tools/testing/memblock/TODO index 33044c634ea7..503cc96fcdc3 100644 --- a/tools/testing/memblock/TODO +++ b/tools/testing/memblock/TODO @@ -1,17 +1,10 @@ TODO ===== -1. Add tests trying to memblock_add() or memblock_reserve() 129th region. - This will trigger memblock_double_array(), make sure it succeeds. - *Important:* These tests require valid memory ranges, use dummy physical - memory block from common.c to implement them. It is also very - likely that the current MEM_SIZE won't be enough for these - test cases. Use realloc to adjust the size accordingly. - -2. Add test cases using this functions (implement them for both directions): +1. Add test cases using this functions (implement them for both directions): + memblock_alloc_raw() + memblock_alloc_exact_nid_raw() + memblock_alloc_try_nid_raw() -3. Add tests for memblock_alloc_node() to check if the correct NUMA node is set +2. Add tests for memblock_alloc_node() to check if the correct NUMA node is set for the new region