From patchwork Sun Sep 8 16:19:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Lam X-Patchwork-Id: 13795565 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 56B8DE6FE49 for ; Sun, 8 Sep 2024 16:20:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 49D736B00A9; Sun, 8 Sep 2024 12:20:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 424736B00AA; Sun, 8 Sep 2024 12:20:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 29E876B00AC; Sun, 8 Sep 2024 12:20:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 08F2D6B00A9 for ; Sun, 8 Sep 2024 12:20:36 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 73D00141A9C for ; Sun, 8 Sep 2024 16:20:35 +0000 (UTC) X-FDA: 82542084030.26.C3768EC Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by imf18.hostedemail.com (Postfix) with ESMTP id C9BF01C0004 for ; Sun, 8 Sep 2024 16:20:33 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=T+koCcpi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf18.hostedemail.com: domain of dennis.lamerice@gmail.com designates 209.85.222.174 as permitted sender) smtp.mailfrom=dennis.lamerice@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725812321; 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:references:dkim-signature; bh=R+KJF6T6XBCWzZ+orANPx7bX+BJ+F0qpNOws7FrO2Ek=; b=m4qowmb8lqfkGhjQNB7r1H3toT4mb2uRtFEvm15nPmsJsSnf5JAysufd3ttxhUwCq1DAw1 XQHiFqvEfPVl10kDhU616YE0tlumEtRFE+VbRt3bi21fBScLUQ6YdOHZmY8VtbCWskj8// DpWTW/ZES44OzfmRdZtAeTJq5D8oUFY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725812321; a=rsa-sha256; cv=none; b=U59ftr0Jl9R9TeKkM24dgxprNGCjgFktSUa4qF+DVPwt7UuUye3dV5JHInQoDMI2gsq00W fqJtrCfAQ1ryU3xKlW3egj8aALXRPnC4CeuCtKqBtMD8g7t36kpI5krQX67ZM/QSUOacC2 AWldaNnFteAblLBV7huGYI91PlDo/88= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=T+koCcpi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf18.hostedemail.com: domain of dennis.lamerice@gmail.com designates 209.85.222.174 as permitted sender) smtp.mailfrom=dennis.lamerice@gmail.com Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7a99a46af10so143690385a.0 for ; Sun, 08 Sep 2024 09:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725812433; x=1726417233; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=R+KJF6T6XBCWzZ+orANPx7bX+BJ+F0qpNOws7FrO2Ek=; b=T+koCcpi4B8qxjCXAwbzJ/oxvWZL+Aimm/Or+S3XvZTTO3Nhym4XRnOQASWa9FSZtV Rz8x6M2dAhg0RO+gnUBJf1BcY+cUT6g8HMZfnZA1GMBGPkCHLOgVGhn0Mb8HW0zl4lUg JMPBznsgmiJqiBtV9fqSXcimX21ysFh5F9TZmMSDul3Gyd3C+ah3p5pPXIkP2Vsx415C 9r7CQ5SUkpvOxpdw7m4FxRpWWcQXi6OOEfUf4hwQIeGpQnC7XRikA2ltGZn4sDyT95B+ 1h8GltOe5zzo+ikw2ehIhFhZ8PD6SH2P+r5h8L7KZQbd3HTZTZFoOZqGUpKXuL39FeBU /47Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725812433; x=1726417233; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R+KJF6T6XBCWzZ+orANPx7bX+BJ+F0qpNOws7FrO2Ek=; b=rwdWvp1cr6xBThTKBTy41auvdp/AsrY2+03uV2kREuGcwJkjxW20FlgJlWmSbAQpZ9 z2cNkHx1RfeqwKstRjJoJTztiK/HWjBLMfnKBFedb3ox8kdYG7bXRgLzXGh0oqgtq9f4 O2Iyu1sNe8+dBh4GkQeEI4MqvbA26BkQiJGOB9NjvycYFH4qzrieOl6VeSt0PxkDW5eu 1rjjAK7R2eclL0WMyYRFaD0sjSNECjW8r+PpXsUMgwuJnrKfimTK545iQjAu5mKnuWcm fJYPLqV4vp5w/rGLEAfstcVxSKj3e8IQ/jVU/vEY2fg8oOijpi5FP/Qcz5UOQqf6ICsY WwwQ== X-Gm-Message-State: AOJu0Yz3ZVsRj7n7rxaxZz2lWmt5ac9fdvaR1/EzzpJ+Qs1i1U2KOn39 4MHmtrh5QBZuygrUR0FJ8XExqu7d8m3eAM81n2I9ORAY4hbOMUpz X-Google-Smtp-Source: AGHT+IGWDM3DwoIoL/vXTEgHYvo5VkmJMcLfpXnfszmZQCj0MNu7rhwgZQmWCAM6dDFsg9ve+yfHtw== X-Received: by 2002:a05:620a:4547:b0:7a9:ac57:ff5a with SMTP id af79cd13be357-7a9ac58052dmr522393885a.39.1725812432755; Sun, 08 Sep 2024 09:20:32 -0700 (PDT) Received: from localhost.localdomain (d24-150-189-55.home.cgocable.net. [24.150.189.55]) by smtp.googlemail.com with ESMTPSA id af79cd13be357-7a9a7a1ff6bsm139874185a.122.2024.09.08.09.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 09:20:32 -0700 (PDT) From: Dennis Lam To: jglisse@redhat.com, corbet@lwn.net Cc: linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Dennis Lam Subject: [PATCH] docs:mm: fix spelling mistakes in heterogeneous memory management page Date: Sun, 8 Sep 2024 12:19:28 -0400 Message-ID: <20240908161928.3700-1-dennis.lamerice@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C9BF01C0004 X-Stat-Signature: 5yhigpg7iai1dc37oaeuuihdoq1j66x8 X-Rspam-User: X-HE-Tag: 1725812433-908788 X-HE-Meta: U2FsdGVkX1+Z6m8j22I6ibDMD1cRzoCFxrKabUAn6U8BYxaCISMOJb7QnEa/XihqN3123sCZzf3bQDHLxEgONZ9MHVgzYtltuaQGNczXobnquqTtMBfvjqdKFDQ4Ww7FHcRiwoLf6nrCFAAMvY6YGyfk92Ya/bxjGJiCjAPBoYSHJ20yms6lnV9TrNE/bO1hHZ1oCKRUK7+KJ82w7rxIJTk0GQ15KzH/mQNvCfQ8WYUM7XPRYMJPYJ2l+hmS9oxXT/G0UPe9DJwy87kGujFk41cWEVtrkflmJZdqZ9v9cdazhrYf4s3KF1fwhkA0T5QBwGkxCm4UldjDRVJcmofPAaVWpxAO4Ow+LioK3N5jU83urVTxkcqSY2POrpS5M8Vnany2lJmVP6BcC2MUsIpCAWtoTXiWRZ1bE6XatwtEGN4e4ADN0X/39lBZiMXF5D5iIKDvoCV6kNO8SL9I0wQtIVrp9xvCTR9G7MOF8FWNetysRwv5kNkznO8E1JI4ln78paHnYHnaNdIXCfpsT7dicur8frMD6vnvk5zsg9lWNcuSNkznEFQuKobnazsfG07dTvnksLKP2NcbU/JbNisOqR/dzN0htSlfgfT/a8kLcFkloHlPo/Jf8kwNUC99SJTzAjaYYHofekpuYK/MIGzlT1jBWw1fEqQj2KIsjr2eBJDJxudxNS1A8AZvd2vyuyXYPHguUoTa5HDIDRqwRF93supylJU4oi9h3IylQvh/w3jkeAUe8gNNU7oJej6qvZhrqZUyrVwzrQcuTVplhAVHNrOp8DjzG9K7OV0bcifDVX5uTccAT22yYS9AcrNR3snzC3lg+mGqIq1xKHUG0WYLdXKrXqjpOHZ7rIvVK6k1JRX82qHGZBZS7iXKciLQss6GV1J7cBLCYdFPhtEAsBKXXqV91qD9nbxIbiR1TAyy2InJQvA1wiIo3i8WrFNQb++z61kUcVERLHII0WeS+2o EKXX+DEw XpaCxsoGF8OXDEkz+UTjjMT0f7hT0FEFS0Ibx3wzfVRVStuiDzZk6MQTRyB9jvb9CVKnDlxyjoN5VvWeW4SP05kESjzWY7SJHp0fMMOKEsQXbGiweOGd+KrR3utfiO/Zd5Ndgfi9nBm9PNafupyBoqfaHv+n1ey2nxqPaLDj0qgUPPoz22sPpPdb2+2pNgpCAsvLOfULLxEFG0PizRNfke/8JgzvfNC9kI8pRY6tN9pDEuQIkLK371Bxbmh7R2MFoRydmQNJKW742HrzNX7ughVQS4g9C6F7eOZuByK9lKXDyhqPQhnw9CcyENx2gzjKr4eQ1UVfdWIWlbwCCYcp0Pj9ndA0qVqa1YtQ9Kdr2j58cRkLagHswokIqkiMMB3WkL+DLnnJRBSIwGA1KE8aG9t2RMESlTCSH7Zc4zeTy5gLQspmraU7LgdFY9Et3lAszzKw8uXJEm41x0X3ZIEA61TmmUH4lxABMAIaD X-Bogosity: Ham, tests=bogofilter, spamicity=0.000035, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Signed-off-by: Dennis Lam Reviewed-by: Lorenzo Stoakes --- Documentation/mm/hmm.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/mm/hmm.rst b/Documentation/mm/hmm.rst index 0595098a74d9..f6d53c37a2ca 100644 --- a/Documentation/mm/hmm.rst +++ b/Documentation/mm/hmm.rst @@ -66,7 +66,7 @@ combinatorial explosion in the library entry points. Finally, with the advance of high level language constructs (in C++ but in other languages too) it is now possible for the compiler to leverage GPUs and other devices without programmer knowledge. Some compiler identified patterns -are only do-able with a shared address space. It is also more reasonable to use +are only doable with a shared address space. It is also more reasonable to use a shared address space for all other patterns. @@ -267,7 +267,7 @@ functions are designed to make drivers easier to write and to centralize common code across drivers. Before migrating pages to device private memory, special device private -``struct page`` need to be created. These will be used as special "swap" +``struct page`` needs to be created. These will be used as special "swap" page table entries so that a CPU process will fault if it tries to access a page that has been migrated to device private memory. @@ -322,7 +322,7 @@ between device driver specific code and shared common code: The ``invalidate_range_start()`` callback is passed a ``struct mmu_notifier_range`` with the ``event`` field set to ``MMU_NOTIFY_MIGRATE`` and the ``owner`` field set to - the ``args->pgmap_owner`` field passed to migrate_vma_setup(). This is + the ``args->pgmap_owner`` field passed to migrate_vma_setup(). This allows the device driver to skip the invalidation callback and only invalidate device private MMU mappings that are actually migrating. This is explained more in the next section. @@ -405,7 +405,7 @@ can be used to make a memory range inaccessible from userspace. This replaces all mappings for pages in the given range with special swap entries. Any attempt to access the swap entry results in a fault which is -resovled by replacing the entry with the original mapping. A driver gets +resolved by replacing the entry with the original mapping. A driver gets notified that the mapping has been changed by MMU notifiers, after which point it will no longer have exclusive access to the page. Exclusive access is guaranteed to last until the driver drops the page lock and page reference, at @@ -431,7 +431,7 @@ Same decision was made for memory cgroup. Device memory pages are accounted against same memory cgroup a regular page would be accounted to. This does simplify migration to and from device memory. This also means that migration back from device memory to regular memory cannot fail because it would -go above memory cgroup limit. We might revisit this choice latter on once we +go above memory cgroup limit. We might revisit this choice later on once we get more experience in how device memory is used and its impact on memory resource control.