✗ CI.checkpatch: warning for Allow scratch page under fault mode for certain platform

Patchwork patchwork at emeril.freedesktop.org
Thu Feb 27 02:52:02 UTC 2025


== Series Details ==

Series: Allow scratch page under fault mode for certain platform
URL   : https://patchwork.freedesktop.org/series/145539/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
22f9cda3436b4fe965b5c5f31d2f2c1bcb483189
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 693e2a036ce880d39a3e3f6e1d8d5551bfc3ccf0
Author: Oak Zeng <oak.zeng at intel.com>
Date:   Wed Feb 26 22:02:05 2025 -0500

    drm/xe: Allow scratch page under fault mode for certain platform
    
    Normally scratch page is not allowed when a vm is operate under page
    fault mode, i.e., in the existing codes, DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE
    and DRM_XE_VM_CREATE_FLAG_FAULT_MODE are mutual exclusive. The reason
    is fault mode relies on recoverable page to work, while scratch page
    can mute recoverable page fault.
    
    On xe2 and xe3, out of bound prefetch can cause page fault and further
    system hang because xekmd can't resolve such page fault. SYCL and OCL
    language runtime requires out of bound prefetch to be silently dropped
    without causing any functional problem, thus the existing behavior
    doesn't meet language runtime requirement.
    
    At the same time, HW prefetching can cause page fault interrupt. Due to
    page fault interrupt overhead (i.e., need Guc and KMD involved to fix
    the page fault), HW prefetching can be slowed by many orders of magnitude.
    
    Fix those problems by allowing scratch page under fault mode for xe2 and
    xe3. With scratch page in place, HW prefetching could always hit scratch
    page instead of causing interrupt.
    
    A side effect is, scratch page could hide application program error.
    Application out of bound accesses are hided by scratch page mapping,
    instead of get reported to user.
    
    v2: Refine commit message (Thomas)
    
    v3: Move the scratch page flag check to after scratch page wa (Thomas)
    
    v4: drop NEEDS_SCRATCH macro (matt)
        Add a comment to DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE
    
    Signed-off-by: Oak Zeng <oak.zeng at intel.com>
+ /mt/dim checkpatch 8541a64154cd8b9c07977dedc1d22883f43279a0 drm-intel
cacc404dc7e1 drm/xe: Introduced needs_scratch bit in device descriptor
2f4aa1aaa1ae drm/xe: Clear scratch page on vm_bind
-:73: CHECK:BRACES: braces {} should be used on all arms of this statement
#73: FILE: drivers/gpu/drm/xe/xe_pt.c:506:
+		if (xe_walk->clear_pt)
[...]
-		/*
[...]

-:86: CHECK:BRACES: Unbalanced braces around else statement
#86: FILE: drivers/gpu/drm/xe/xe_pt.c:509:
+		else {

total: 0 errors, 0 warnings, 2 checks, 294 lines checked
693e2a036ce8 drm/xe: Allow scratch page under fault mode for certain platform




More information about the Intel-xe mailing list