Skip to content

Commit 406c4c5

Browse files
Dennis LamJonathan Corbet
authored andcommitted
docs:mm: fix spelling mistakes in heterogeneous memory management page
Signed-off-by: Dennis Lam <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Message-ID: <[email protected]>
1 parent d895eb3 commit 406c4c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/mm/hmm.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ combinatorial explosion in the library entry points.
6666
Finally, with the advance of high level language constructs (in C++ but in
6767
other languages too) it is now possible for the compiler to leverage GPUs and
6868
other devices without programmer knowledge. Some compiler identified patterns
69-
are only do-able with a shared address space. It is also more reasonable to use
69+
are only doable with a shared address space. It is also more reasonable to use
7070
a shared address space for all other patterns.
7171

7272

@@ -267,7 +267,7 @@ functions are designed to make drivers easier to write and to centralize common
267267
code across drivers.
268268

269269
Before migrating pages to device private memory, special device private
270-
``struct page`` need to be created. These will be used as special "swap"
270+
``struct page`` needs to be created. These will be used as special "swap"
271271
page table entries so that a CPU process will fault if it tries to access
272272
a page that has been migrated to device private memory.
273273

@@ -322,7 +322,7 @@ between device driver specific code and shared common code:
322322
The ``invalidate_range_start()`` callback is passed a
323323
``struct mmu_notifier_range`` with the ``event`` field set to
324324
``MMU_NOTIFY_MIGRATE`` and the ``owner`` field set to
325-
the ``args->pgmap_owner`` field passed to migrate_vma_setup(). This is
325+
the ``args->pgmap_owner`` field passed to migrate_vma_setup(). This
326326
allows the device driver to skip the invalidation callback and only
327327
invalidate device private MMU mappings that are actually migrating.
328328
This is explained more in the next section.
@@ -405,7 +405,7 @@ can be used to make a memory range inaccessible from userspace.
405405

406406
This replaces all mappings for pages in the given range with special swap
407407
entries. Any attempt to access the swap entry results in a fault which is
408-
resovled by replacing the entry with the original mapping. A driver gets
408+
resolved by replacing the entry with the original mapping. A driver gets
409409
notified that the mapping has been changed by MMU notifiers, after which point
410410
it will no longer have exclusive access to the page. Exclusive access is
411411
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
431431
against same memory cgroup a regular page would be accounted to. This does
432432
simplify migration to and from device memory. This also means that migration
433433
back from device memory to regular memory cannot fail because it would
434-
go above memory cgroup limit. We might revisit this choice latter on once we
434+
go above memory cgroup limit. We might revisit this choice later on once we
435435
get more experience in how device memory is used and its impact on memory
436436
resource control.
437437

0 commit comments

Comments
 (0)