@@ -66,7 +66,7 @@ combinatorial explosion in the library entry points.
66
66
Finally, with the advance of high level language constructs (in C++ but in
67
67
other languages too) it is now possible for the compiler to leverage GPUs and
68
68
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
70
70
a shared address space for all other patterns.
71
71
72
72
@@ -267,7 +267,7 @@ functions are designed to make drivers easier to write and to centralize common
267
267
code across drivers.
268
268
269
269
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"
271
271
page table entries so that a CPU process will fault if it tries to access
272
272
a page that has been migrated to device private memory.
273
273
@@ -322,7 +322,7 @@ between device driver specific code and shared common code:
322
322
The ``invalidate_range_start() `` callback is passed a
323
323
``struct mmu_notifier_range `` with the ``event `` field set to
324
324
``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
326
326
allows the device driver to skip the invalidation callback and only
327
327
invalidate device private MMU mappings that are actually migrating.
328
328
This is explained more in the next section.
@@ -405,7 +405,7 @@ can be used to make a memory range inaccessible from userspace.
405
405
406
406
This replaces all mappings for pages in the given range with special swap
407
407
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
409
409
notified that the mapping has been changed by MMU notifiers, after which point
410
410
it will no longer have exclusive access to the page. Exclusive access is
411
411
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
431
431
against same memory cgroup a regular page would be accounted to. This does
432
432
simplify migration to and from device memory. This also means that migration
433
433
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
435
435
get more experience in how device memory is used and its impact on memory
436
436
resource control.
437
437
0 commit comments