From patchwork Tue Aug 30 01:49:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Shaoqin" X-Patchwork-Id: 12958597 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 0341AECAAD4 for ; Tue, 30 Aug 2022 01:51:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8EDDF6B0073; Mon, 29 Aug 2022 21:51:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 84CD6940009; Mon, 29 Aug 2022 21:51:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 69F856B0075; Mon, 29 Aug 2022 21:51:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5BB456B0073 for ; Mon, 29 Aug 2022 21:51:19 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3922AA0C03 for ; Tue, 30 Aug 2022 01:51:19 +0000 (UTC) X-FDA: 79854581478.11.1FB8B27 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf11.hostedemail.com (Postfix) with ESMTP id AAABC4000D for ; Tue, 30 Aug 2022 01:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661824278; x=1693360278; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=daaV3WZWukjbgGvbQ73mOCe8nI4eaN3LDyARuyKPkhs=; b=LeaLOrwSwlUwkUlZF70uJMBTu2wjdhKu+tYUIp2LWp5XycxeGc4oDwQQ DQECt4IkwDpSPWU2n2Sv0o7BDJaW+1PQf3g4pX4GxJC4j1tqDryoPMHfh tkQLKlkQXu8zxBC9mRXZ/HBGx3gy9Iqhb1gZOy3gylNt0o7LefyLuMJ2Q i96up21jscaSGiUiyBpwE5y/fYKqkjZzI5/hYupJ8FjvYRb+V1U24Rjvg SVTRvNdJ5qFZSXBl3JV0+EgeMeWx8XmbU1igcNhbPsBaC7Fa395cX37rt L2HuigBiX/ipjRQUsQv/EtczkYgkSzQNy1epOukz2URxMNi5tPy6x7eHv w==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="321177929" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="321177929" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 18:51:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="641167077" Received: from q.bj.intel.com ([10.238.154.102]) by orsmga008.jf.intel.com with ESMTP; 29 Aug 2022 18:51:16 -0700 From: shaoqin.huang@intel.com To: rppt@kernel.org Cc: Shaoqin Huang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] memblock test: Update TODO list Date: Tue, 30 Aug 2022 09:49:19 +0800 Message-Id: <20220830014925.162718-4-shaoqin.huang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220830014925.162718-1-shaoqin.huang@intel.com> References: <20220830014925.162718-1-shaoqin.huang@intel.com> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=LeaLOrwS; spf=softfail (imf11.hostedemail.com: 192.55.52.88 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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661824278; a=rsa-sha256; cv=none; b=0hz5I28lk+R1JcSdXl00Da69OW/lBldD7NiMb9U6bZoe0Bh+/1sKnUwl4VOPUdEUCElJaf 7z9QYvdkeONy+dNkNdoLNqoAcS94cB0Ioe9GBl4rfsZpa3QUTgmUyqs3RXMtEXtbcJS6M2 uCc0HfrlULzXb++3DF7L0sJZwWHDsbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661824278; 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=mV2Akdqp0YkYv86KzAPYeyZw1BawAMCjVxQLZhjCCTD+KsKbWdu7Z8tVPTuMm+Ec2RqsB+ EXqYO5aNtaavOPSc5mGNaHRslQ5wyGY0F8Fy3NNh4VBCoFjRrsPm56+Oh2NHLM0MbeQ9RF pFWnLJMlnvwfE3N2o6DNYqWyOiPDVsI= Authentication-Results: imf11.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=LeaLOrwS; spf=softfail (imf11.hostedemail.com: 192.55.52.88 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-Rspamd-Server: rspam06 X-Rspam-User: X-Stat-Signature: akiwbswt4chnbca87w9ai4ppj613nzn3 X-Rspamd-Queue-Id: AAABC4000D X-HE-Tag: 1661824278-718409 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