drm/xe: Fix app hang on pagefault - GDB signal not received - #411
Open
pravalikagurram1 wants to merge 1 commit into
Open
drm/xe: Fix app hang on pagefault - GDB signal not received#411pravalikagurram1 wants to merge 1 commit into
pravalikagurram1 wants to merge 1 commit into
Conversation
Application hangs and GDB never receives pagefault signal. VM_BIND ioctl blocks indefinitely, UMD cannot resume application or signal debugger. Root cause : decompression was skipped even with DECOMPRESS flag set. GPU received stale buffer, triggered engine reset, hung the kernel. This is due to drm UAPI DRM_XE_VM_BIND_FLAG_DECOMPRESS mismatch Move DECOMPRESS flag from bit 6 to bit 7 in UAPI (UMD mismatch) with this VM_BIND completes, decompression succeeds, UMD resumes app, GDB can attach debugger. No more app hang. Fixes: 45ada40 ("drm/xe: Add VM_BIND DECOMPRESS support") Signed-off-by: Pravalika Gurram <pravalika.gurram@intel.com>
CI Bug Log - changes from xkb-6.17-278-c586e863fdd23077866d3dbc0a624f7c23e7efb4_BAT -> xkb-pr-6.17-411-648-17e0562e042ea3856013e426d4d3738ab5f55426_BATSummarySUCCESS No regressions found. Participating hosts (9 -> 9)No changes in participating hosts Known issuesHere are the changes found in xkb-pr-6.17-411-648-17e0562e042ea3856013e426d4d3738ab5f55426_BAT that come from known issues: IGT changesIssues hit
Possible fixes
Build changes
igt-xkb-128-3a036e31e: 3a036e31e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Application hangs and GDB never receives pagefault signal.
VM_BIND ioctl blocks indefinitely, UMD cannot resume
application or signal debugger.
Root cause : decompression was skipped even
with DECOMPRESS flag set. GPU received stale buffer, triggered engine
reset, hung the kernel.
This is due to drm UAPI DRM_XE_VM_BIND_FLAG_DECOMPRESS mismatch
Move DECOMPRESS flag from bit 6 to bit 7 in UAPI (UMD mismatch)
with this VM_BIND completes, decompression succeeds, UMD resumes app, GDB
can attach debugger. No more app hang.
Fixes: 45ada40 ("drm/xe: Add VM_BIND DECOMPRESS support")
Signed-off-by: Pravalika Gurram pravalika.gurram@intel.com