From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Francois Dugast <francois.dugast@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe/vm_doc: Fix some typos
Date: Tue, 7 May 2024 08:38:37 -0400 [thread overview]
Message-ID: <ZjogzbhT-e7bn8HM@intel.com> (raw)
In-Reply-To: <20240506202950.109750-1-francois.dugast@intel.com>
On Mon, May 06, 2024 at 10:29:50PM +0200, Francois Dugast wrote:
> Fix some typos and add / remove / change a few words to improve
> readability and prevent some ambiguities.
>
> Signed-off-by: Francois Dugast <francois.dugast@intel.com>
> ---
> drivers/gpu/drm/xe/xe_vm_doc.h | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_vm_doc.h b/drivers/gpu/drm/xe/xe_vm_doc.h
1. We should delete this _doc.h file and always aim to keep the doc with the code,
otherwise we are sentenced to live with outdated docs.
2. Is these doc files $f in (vm, migrate, bo) getting included in the final generated doc,
like: getting built and showing up in the generated html? Last time I checked it wasn't.
Another reason to move towards the xe_$f.c code.
But for the improvements below:
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> index bdc6659891a5..4d33f310b653 100644
> --- a/drivers/gpu/drm/xe/xe_vm_doc.h
> +++ b/drivers/gpu/drm/xe/xe_vm_doc.h
> @@ -25,7 +25,7 @@
> * VM bind (create GPU mapping for a BO or userptr)
> * ================================================
> *
> - * Creates GPU mapings for a BO or userptr within a VM. VM binds uses the same
> + * Creates GPU mappings for a BO or userptr within a VM. VM binds uses the same
> * in / out fence interface (struct drm_xe_sync) as execs which allows users to
> * think of binds and execs as more or less the same operation.
> *
> @@ -190,8 +190,8 @@
> * Deferred binds in fault mode
> * ----------------------------
> *
> - * In a VM is in fault mode (TODO: link to fault mode), new bind operations that
> - * create mappings are by default are deferred to the page fault handler (first
> + * If a VM is in fault mode (TODO: link to fault mode), new bind operations that
> + * create mappings are by default deferred to the page fault handler (first
> * use). This behavior can be overriden by setting the flag
> * DRM_XE_VM_BIND_FLAG_IMMEDIATE which indicates to creating the mapping
> * immediately.
> @@ -225,7 +225,7 @@
> *
> * A VM in compute mode enables long running workloads and ultra low latency
> * submission (ULLS). ULLS is implemented via a continuously running batch +
> - * semaphores. This enables to the user to insert jump to new batch commands
> + * semaphores. This enables the user to insert jump to new batch commands
> * into the continuously running batch. In both cases these batches exceed the
> * time a dma fence is allowed to exist for before signaling, as such dma fences
> * are not used when a VM is in compute mode. User fences (TODO: link user fence
> @@ -244,7 +244,7 @@
> * Once all preempt fences are signaled for a VM the kernel can safely move the
> * memory and kick the rebind worker which resumes all the engines execution.
> *
> - * A preempt fence, for every engine using the VM, is installed the VM's
> + * A preempt fence, for every engine using the VM, is installed into the VM's
> * dma-resv DMA_RESV_USAGE_PREEMPT_FENCE slot. The same preempt fence, for every
> * engine using the VM, is also installed into the same dma-resv slot of every
> * external BO mapped in the VM.
> @@ -314,7 +314,7 @@
> * signaling, and memory allocation is usually required to resolve a page
> * fault, but memory allocation is not allowed to gate dma fence signaling. As
> * such, dma fences are not allowed when VM is in fault mode. Because dma-fences
> - * are not allowed, long running workloads and ULLS are enabled on a faulting
> + * are not allowed, only long running workloads and ULLS are enabled on a faulting
> * VM.
> *
> * Defered VM binds
> @@ -399,14 +399,14 @@
> * Notice no rebind is issued in the access counter handler as the rebind will
> * be issued on next page fault.
> *
> - * Cavets with eviction / user pointer invalidation
> - * ------------------------------------------------
> + * Caveats with eviction / user pointer invalidation
> + * -------------------------------------------------
> *
> * In the case of eviction and user pointer invalidation on a faulting VM, there
> * is no need to issue a rebind rather we just need to blow away the page tables
> * for the VMAs and the page fault handler will rebind the VMAs when they fault.
> - * The cavet is to update / read the page table structure the VM global lock is
> - * neeeed. In both the case of eviction and user pointer invalidation locks are
> + * The caveat is to update / read the page table structure the VM global lock is
> + * needed. In both the case of eviction and user pointer invalidation locks are
> * held which make acquiring the VM global lock impossible. To work around this
> * every VMA maintains a list of leaf page table entries which should be written
> * to zero to blow away the VMA's page tables. After writing zero to these
> @@ -427,9 +427,9 @@
> * VM global lock (vm->lock) - rw semaphore lock. Outer most lock which protects
> * the list of userptrs mapped in the VM, the list of engines using this VM, and
> * the array of external BOs mapped in the VM. When adding or removing any of the
> - * aforemented state from the VM should acquire this lock in write mode. The VM
> + * aforementioned state from the VM should acquire this lock in write mode. The VM
> * bind path also acquires this lock in write while the exec / compute mode
> - * rebind worker acquire this lock in read mode.
> + * rebind worker acquires this lock in read mode.
> *
> * VM dma-resv lock (vm->ttm.base.resv->lock) - WW lock. Protects VM dma-resv
> * slots which is shared with any private BO in the VM. Expected to be acquired
> --
> 2.43.0
>
prev parent reply other threads:[~2024-05-07 12:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 20:29 [PATCH] drm/xe/vm_doc: Fix some typos Francois Dugast
2024-05-07 1:18 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-07 1:18 ` ✓ CI.checkpatch: " Patchwork
2024-05-07 1:19 ` ✓ CI.KUnit: " Patchwork
2024-05-07 1:31 ` ✓ CI.Build: " Patchwork
2024-05-07 1:33 ` ✓ CI.Hooks: " Patchwork
2024-05-07 1:35 ` ✓ CI.checksparse: " Patchwork
2024-05-07 2:08 ` ✓ CI.BAT: " Patchwork
2024-05-07 6:28 ` ✗ CI.FULL: failure " Patchwork
2024-05-07 12:38 ` Rodrigo Vivi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZjogzbhT-e7bn8HM@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=francois.dugast@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.