mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1528] [CLOSED] sycl: size a card from the DRM fdinfo only when the driver reports it entirely free #3511
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3511
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1528
Author: @Arthur031221
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:sycl-drm-free-figure📝 Commits (1)
a15ea2dsycl: the DRM fdinfo replaces the driver's free figure only when the driver reports the whole card free📊 Changes
4 files changed (+52 additions, -2 deletions)
View changed files
📝
sycl/CMakeLists.txt(+4 -0)➕
sycl/include/strata/sycl_drm_free.hpp(+11 -0)➕
sycl/src/core/drm_free_test.cpp(+34 -0)📝
sycl/src/core/expert_cache.cpp(+3 -2)📄 Description
Title
Issue: Part of #1440 (item 2)
Summary
On a layer split across two Arc cards on xe, the second card's expert cache doesn't open.
device_free_bytes()charges it with the first card's cache and both cards' weights. On the issue's B70 pair it reads 3.81 GiB free, while the driver reports 26.97 of 31.89 GiB.What changed
The DRM fdinfo total sums every card the process holds. It can only replace the driver's figure where the driver reports the whole card as free, as an Arc A750 on i915 does.
drm_total_replaces_free(sycl/include/strata/sycl_drm_free.hpp) now requires the driver's figure to be within 16 MiB of the total.sycl/src/core/drm_free_test.cppcovers the issue's numbers and the A750 case:Extra Notes
Builds on the patch @maxious posted in the issue, which @crobe201 had also suggested. Matching
drm-pdevper card would also cover several i915 cards, but I can't check that query here. I couldn't compile the SYCL target either.Assisted by Claude/Codex.
Co-authored-by: Alex Sadleir 81432+maxious@users.noreply.github.com
Co-authored-by: crobe201 273473305+crobe201@users.noreply.github.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.