Skip to content

docs/testing.md: Known problems row for the RADV host-pointer import of a section view - #9224

Closed
GustawMatuszewski wants to merge 1 commit into
ProjectLeonida:mainfrom
GustawMatuszewski:docs/testing-radv-userptr-anononly
Closed

GustawMatuszewski wants to merge 1 commit into
ProjectLeonida:mainfrom
GustawMatuszewski:docs/testing-radv-userptr-anononly

Conversation

@GustawMatuszewski

Copy link
Copy Markdown
Contributor

Item: new docs item (claim on #9065). Docs only, one row.

What

A Known problems row in docs/testing.md for the RADV side of the slot-133 host-VA work, from the kernel-level finding first posted on #7218 (comment).

  • What you see: on RADV Mesa 26.0.8 (Ubuntu 26.04) d3d12_existing_heap exits 1 on its vulkan slot-133 buffer line 186 check while its other cases pass: a slot-133 resource placed at a host address, or an OpenExistingHeapFromAddress heap, whose pages are a MEM_MAPPED pagefile-backed section view comes back as an ordinary buffer (the layer logs could not import its pages and E_OUTOFMEMORY). Measured on an RX 9060 XT (RDNA4) and a Radeon 890M (RDNA3.5).
  • Cause: RADV's only host-pointer import is amdgpu userptr with AMDGPU_GEM_USERPTR_ANONONLY; amdgpu_ttm_tt_get_user_pages() answers -EPERM for a VMA with a vm_file (amdgpu_ttm.c, kernel 7.0 lines 743-746), so a file-backed section view cannot be imported at all. Mesa 26.0.8 maps every error but -EINVAL to VK_ERROR_UNKNOWN; Mesa MR !40574 (merged 2026-03-27) only normalises the code, so the pre-MR driver surfaces VK_ERROR_UNKNOWN and the layer turns it into a failed allocation. vkGetMemoryHostPointerPropertiesEXT accepts any pointer, so the refusal only shows at vkAllocateMemory time. Ranges from a plain VirtualAlloc (MEM_PRIVATE) do import.
  • What to do: expected with Mesa 26.0.8 and older. d3d12: a slot-133 buffer whose pages can't be imported is a shadow at the title's VA, re-copied before each submit #8225's shadow fallback keeps the title's VA by copying the pages and re-copying before each submission, and passes that check on RDNA3.5 and RDNA4 (RDNA3.5 run, RDNA4 run). An ordinary fallback buffer keeps its arena VA instead, so an expectation that the buffer's GPU VA equals the host pointer can only pass through the shadow.

Why a new row

The table's RADV rows name fixture failures (cs_w32_salu64, cs_signed_zero_nan); nothing there covers the D3D12 runtime's host-pointer import path, and #7218 / #8225 are the only places this was measured. The row is a documentation fix for the ordinary-buffer fallback's consequence, not a change to the runtime.

Checks

python3 -I on every tests/test_docs_*.py: same three pre-existing reds as main 867d922f0 (test_docs_cli_flags, test_docs_design_rows, test_docs_links, all in docs/embedded_shaders.md / README.md / docs/dev-tools.md), everything else OK, including test_docs_table_rows, test_docs_repo_paths and test_docs_table_ids. tests/test_check_no_game_data.py OK. Docs only; no game files, no runtime code.

AI-assisted (Claude Code).

…of a section view

On RADV the slot-133 host-VA import of a pagefile-backed section view
(`MEM_MAPPED`) fails at the kernel level: `AMDGPU_GEM_USERPTR_ANONONLY`
makes `amdgpu_ttm_tt_get_user_pages()` answer `-EPERM` for a file-backed
userptr, Mesa 26.0.8 maps that to `VK_ERROR_UNKNOWN` (MR !40574 only
normalises the code), and the layer falls back to an ordinary buffer that
loses the title's VA. The row names the cause, the upstream MR and
ItsNotRexed#8225's shadow fallback, verified on RDNA3.5 and RDNA4.

Item: new docs item, claimed on ItsNotRexed#9065.
AI-assisted (Claude Code).

@Grimkaaah Grimkaaah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent Linux CPU review

Checked: docs/testing.md Known problems row for RADV host-pointer / section-view import. Cross-checked links and wording against #7218/#8225 framing. Docs-only.

Looks correct; no game files.

@YordiLorenzo

Copy link
Copy Markdown

Tested cd8c4ae on Linux, Python 3.14.4: docs tests pass, one question

test_docs_repo_paths, repeated_lines, table_rows, table_ids: OK
test_docs_links: same failure as main, none in testing.md
check_no_game_data.py on the page: clean

The row names a check main doesn't have yet: d3d12_existing_heap_test.cpp on main is 88 lines with no slot-133 case, and "vulkan slot-133 buffer" and "could not import its pages" only exist in #7218 and #8225, both open. Add Depends on: #7218, or hold the row until it lands?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants