From mboxrd@z Thu Jan 1 00:00:00 1970 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 793CCECAAA1 for ; Mon, 24 Oct 2022 15:37:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 049FE940008; Mon, 24 Oct 2022 11:37:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F3C7D940007; Mon, 24 Oct 2022 11:37:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E2C6D940008; Mon, 24 Oct 2022 11:37:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D220B940007 for ; Mon, 24 Oct 2022 11:37:57 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B41B41A013F for ; Mon, 24 Oct 2022 15:37:57 +0000 (UTC) X-FDA: 80056248594.16.1B930D4 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf05.hostedemail.com (Postfix) with ESMTP id 091B5100010 for ; Mon, 24 Oct 2022 15:37:56 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EDC67B81031; Mon, 24 Oct 2022 15:37:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C123CC433D7; Mon, 24 Oct 2022 15:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666625873; bh=J9pT4nyGeEtb9WbnqsO0aJ6Tb24OwN80e5SPk1Da/xM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JGtUmlhNApE1czrXF/24y3XSZlsttXNQPQH8WWReLPbEPUy1M617Ph8mZ4vHL7VOy 22BMhUxomhdnmAbtPi87r1UqndX1TD6eUv1qjia4u5XBYBcRiy8nJAXKDSGsNdUPKn SJ1iy9w6rfVuCE5saEoZWZsLZz+QVEMhYrDR34wqf/2zYuC3+iU7+jw9jTaKSjJ1aC AcP+SezpGhNg2gTrbO/7BYay2w8+JURPd2mz+e8VxV51R7+wJZDuG16RVKlLrckCWF A/QQgunLljwKdYPD2kqzMBjNayA306jJRLuCXvlC6DKK+Y5zq0YPS5B/DvCa7RKLx+ ugeb3+RnzhLig== Date: Mon, 24 Oct 2022 18:37:38 +0300 From: Mike Rapoport To: shaoqin.huang@intel.com Cc: David Hildenbrand , Karolina Drobnik , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rebecca Mckeever Subject: Re: [PATCH v4 0/3] Add tests trying to memblock_add() or memblock_reserve() 129th region Message-ID: References: <20221011062128.49359-1-shaoqin.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221011062128.49359-1-shaoqin.huang@intel.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666625877; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=mvcZEmPcBI7a8pYXKubdgDZUA5f08uVQXPCu/zysrDg=; b=r0z9aWPomGU2mnBkYea7V9CL/cKiAUNw70g6LXRvfRyr+WwWMih14XB3/uBrXcGsMaS/KZ mLby9Z6JP2WHqgkd3ZJjMLsn3V/mft7Je8sR821XvauQV9+ebGnHpOWjWy84Fi5N56XnA6 WwqUBwUTCJMz6jcp4J6RH2/U0J7WlfQ= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=JGtUmlhN; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666625877; a=rsa-sha256; cv=none; b=Da1FXEB5igXWddDVzTcg9WbdkYqtok0By/0tFVd4+3nU3dMWo639f25uM/s6zx9VPKsEdq 3zStEGFLoJL6+5+aPrgV26Y2m2v0H+oe3qcbvI/XWK+mL35t53RDQvH4F40joySxRmJMkR qJdj7wCig1ZQGXMyDyILRhyRP1waz4c= X-Stat-Signature: 957myk58cospkyep3meee9i8qcxcm4s5 X-Rspamd-Queue-Id: 091B5100010 X-Rspam-User: Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=JGtUmlhN; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org X-Rspamd-Server: rspam01 X-HE-Tag: 1666625876-513146 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: On Tue, Oct 11, 2022 at 02:21:19PM +0800, shaoqin.huang@intel.com wrote: > From: Shaoqin Huang > > 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. > > Changelog: > ---------- > v4: > - Increase the MEM_SIZE to SZ_32K. And makes the calculation process in > memblock_add_many_check() more simpler. > v3: > - Avoid to allocated multiple memory region from dummy_physical_memory_base(), > split the memory into different part instead. > - Some comments improvement. > v2: > - Modify the get_memory_block_base() to dummy_physical_memory_base(). > - memory_add() the memory which is allocated from dummy_physical_memory_init() > instead of some faked memory. > - Add more comments to illustrate the test process. > - Add a function dummy_physical_memory_cleanup_many() to free multiple memory > which is allocated from dummy_physical_memory_init(). > > 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 | 184 +++++++++++++++++++++++ > tools/testing/memblock/tests/common.c | 7 +- > tools/testing/memblock/tests/common.h | 6 +- > 4 files changed, 196 insertions(+), 12 deletions(-) Applied, thanks! -- Sincerely yours, Mike.