From patchwork Thu Sep 15 08:57:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Gongyi X-Patchwork-Id: 12977056 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 D48DBECAAA1 for ; Thu, 15 Sep 2022 09:01:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 723A66B0073; Thu, 15 Sep 2022 05:01:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D4318D0005; Thu, 15 Sep 2022 05:01:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59B598D0003; Thu, 15 Sep 2022 05:01:53 -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 4C4456B0073 for ; Thu, 15 Sep 2022 05:01:53 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 292F7140843 for ; Thu, 15 Sep 2022 09:01:53 +0000 (UTC) X-FDA: 79913727306.19.F40856C Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf30.hostedemail.com (Postfix) with ESMTP id 09928800CA for ; Thu, 15 Sep 2022 09:01:50 +0000 (UTC) Received: from canpemm500005.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MSrh84DTDzmVMC; Thu, 15 Sep 2022 16:58:00 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.63) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 15 Sep 2022 17:01:45 +0800 From: Zhao Gongyi To: , , , CC: , , , , , Zhao Gongyi Subject: [PATCH -next v2 0/5] Optimize and bugfix for notifier error Date: Thu, 15 Sep 2022 16:57:52 +0800 Message-ID: <20220915085757.258608-1-zhaogongyi@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.63] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500005.china.huawei.com (7.192.104.229) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663232511; a=rsa-sha256; cv=none; b=7HbaaIEldB+Xa2WS6ucyy1X0NbwhNvlY0VhDQKQ35uODs7mmcfOEa9sBPcet67jS2q1Eb3 7KCmfJNrEdibJ5uclLM4EfQzwBvneKuls/HF+iRSfaJLpYDafVlSe/sCxaSLU4jrsCZKzt jVJnR28RTrmEr983B97kEgx/ki63s3c= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of zhaogongyi@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhaogongyi@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663232511; 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: references; bh=kdRSYqMtwPQLrualtZLcAyepZWLYl0gTcEMQufmUFvE=; b=37E4BIUKEA2QMMBokSRLlTCdUNTZLC3LFe882xVre3FpTjEdgQKcX17BYTGq7nY3jJFRpv rtrtyp6iZo43mJ4uAyQN/+2lFtyqL7f09A98VEdUvXtEt448h4w1VRw1fDOO7bxaysfvBM KFnyX3S/ijIpqoA9w4tjkUqdgFDsGoI= X-Rspam-User: Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of zhaogongyi@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhaogongyi@huawei.com X-Stat-Signature: cnzg4map18kkrktt5qfxq4qef4genggn X-Rspamd-Queue-Id: 09928800CA X-Rspamd-Server: rspam09 X-HE-Tag: 1663232510-107848 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: 1. Fix non-working usage of negative values 2. Add checking after online or offline 3. Restore memory before exit 4. Correct test's name Changes in v2: - Replace 'online_all_hot_pluggable_memory' with 'online_all_offline_memory()'. - Collect Reviewed-by tags from David Hildenbrand. Zhao Gongyi (5): docs: notifier-error-inject: fix non-working usage of negative values selftests/memory-hotplug: Use 'printf' instead of 'echo' selftests/memory-hotplug: Add checking after online or offline selftests/memory-hotplug: Restore memory before exit docs: notifier-error-inject: Correct test's name .../fault-injection/notifier-error-inject.rst | 14 ++++--- .../memory-hotplug/mem-on-off-test.sh | 37 +++++++++++++++---- 2 files changed, 39 insertions(+), 12 deletions(-) --- 2.17.1