From patchwork Fri Sep 22 02:00:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Jinchao X-Patchwork-Id: 143081 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5267481vqi; Thu, 21 Sep 2023 19:04:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0rzID6wDmSBGPVkSb2cmU4JbuY/GBvmzWfA3q/7Ym0cJ7N4jv5MBgAknrAhxL9yTofEjJ X-Received: by 2002:a17:903:41c6:b0:1c4:7c4:b2e9 with SMTP id u6-20020a17090341c600b001c407c4b2e9mr8317716ple.43.1695348275152; Thu, 21 Sep 2023 19:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695348275; cv=none; d=google.com; s=arc-20160816; b=vISV2I/jvhqxccyCN4xL7aUoKFR4CqPGYvhrXaUXJHMfmLPtqbGXqRy9XnpscoNhkI spiqpZNGJ2aJepUXufWeANdDTogLSao+hGFkWUs0MB8I55NjRAWpitwDf/MAgbQRI9Or wiJirkHSqLVdN8CH3HXgo9MOZ4+Y54+IpUzo3DfudP7oFJpZJKR3nizRye/v8JtoqCSK hm845NARnFK6sEzIX5aAG6NEfIZcBet3kivNa55fPitjXIiRxHq1AhrWZL/l8guzZ9Ke 7myh0kTPGOoJo9I7x+Tzx8O8Wncc2rhaQx+oI0j89unzRJeinL5SiMojgZVOH/IQc5Ju 1QGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=zEA0tg9aKKkaefOPy5PEck40rJwA5kRFLcJAmdR1E24=; fh=xfMmTuRFHnPreXlqbx0kerq+EZ62LRaB/C4n5G6hxKo=; b=k8Az99KMQ2YrEyTDY5vx1Cnpxt3AVbvU+LoFulXS56XxybP+SulHqLGXz40ZnYrIjW ZKlFbhqbNN9qvV6kyri+X30rjAZ4XMx0S/7vfrNN1HBW/8qQZQDHPpKAWRUfK7S96Q1Q Q1qih9pcI/hocRVfwLKeiVhBcSPTgi8RIocg3lPZwyQ52h7EMeCFm/r1Onlo0D2N16DS NeMJ5seBsrczxLhxtAOPYXUEAfT89Lyi+i9QHw9F8Iq1sbPGHdprcOY4/Gh8CsEiJ8UE rKP16PA1jetS/uSND5P+M7sumXFccEiglRS7ZwtbuBP/a+s7bI8W5A2v5b640uMxeBaX w8dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h6-20020a170902680600b001c434927d8dsi2786421plk.131.2023.09.21.19.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 19:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0C11F8096FEA; Thu, 21 Sep 2023 19:01:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230292AbjIVCAs (ORCPT + 30 others); Thu, 21 Sep 2023 22:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjIVCAr (ORCPT ); Thu, 21 Sep 2023 22:00:47 -0400 Received: from wxsgout04.xfusion.com (wxsgout04.xfusion.com [36.139.87.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F4C91 for ; Thu, 21 Sep 2023 19:00:38 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4RsFmG5H0QzB0R6m; Fri, 22 Sep 2023 09:58:22 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 22 Sep 2023 10:00:21 +0800 Date: Fri, 22 Sep 2023 10:00:21 +0800 From: Wang Jinchao To: David Hildenbrand , Oscar Salvador , Jonathan Corbet , , , CC: xulei Subject: [PATCH] memory-hotplug.rst: fix wrong /sys/device/ path Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00600.xfusion.com (10.32.133.213) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 19:01:00 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777701512712758319 X-GMAIL-MSGID: 1777701512712758319 Actually, it should be /sys/devices/ Signed-off-by: Wang Jinchao Reviewed-by: David Hildenbrand --- Documentation/admin-guide/mm/memory-hotplug.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/mm/memory-hotplug.rst b/Documentation/admin-guide/mm/memory-hotplug.rst index cfe034cf1e87..01595965734a 100644 --- a/Documentation/admin-guide/mm/memory-hotplug.rst +++ b/Documentation/admin-guide/mm/memory-hotplug.rst @@ -250,15 +250,15 @@ Observing the State of Memory Blocks The state (online/offline/going-offline) of a memory block can be observed either via:: - % cat /sys/device/system/memory/memoryXXX/state + % cat /sys/devices/system/memory/memoryXXX/state Or alternatively (1/0) via:: - % cat /sys/device/system/memory/memoryXXX/online + % cat /sys/devices/system/memory/memoryXXX/online For an online memory block, the managing zone can be observed via:: - % cat /sys/device/system/memory/memoryXXX/valid_zones + % cat /sys/devices/system/memory/memoryXXX/valid_zones Configuring Memory Hot(Un)Plug ============================== @@ -326,7 +326,7 @@ however, a memory block might span memory holes. A memory block spanning memory holes cannot be offlined. For example, assume 1 GiB memory block size. A device for a memory starting at -0x100000000 is ``/sys/device/system/memory/memory4``:: +0x100000000 is ``/sys/devices/system/memory/memory4``:: (0x100000000 / 1Gib = 4)