Skip to content

Rebuild libvgpu with the timeslice lock fixes - #24

Merged
pengpeng merged 1 commit into
feat/nvsharefrom
fix/libvgpu-lock-grant-and-reclaim
Sep 5, 2026
Merged

pengpeng merged 1 commit into
feat/nvsharefrom
fix/libvgpu-lock-grant-and-reclaim

Conversation

@pengpeng

@pengpeng pengpeng commented Sep 5, 2026

Copy link
Copy Markdown
Member

Refreshes both bundled libvgpu.so binaries from HAMi-core 4c9b2d0 (v0.1.3-43-g4c9b2d0, Above-Os/HAMi-core#16).

What the client half of that change does: a drop: from the scheduler is now answered with released even when the lock had already been let go early. Previously the handler stayed silent whenever own_lock was 0, which is also the state left behind by the idle timer. If the scheduler had not recorded that earlier release it still considered us the owner — precisely why it was dropping a lock we no longer thought we held — so the two sides stayed permanently out of sync and the waiter blocked forever.

The binaries also carry the sync to Project-HAMi/HAMi-core f01e9f2, so this is a larger delta than the lock fix alone.

Both architectures are rebuilt:

file arch
lib/nvidia/libvgpu.so x86-64
lib/nvidia/libvgpu.arm64.so aarch64

The arm64 one needed a fix to HAMi-core's build-arm-in-docker target first: its prebuilt image ships no git while DOCKER_BUILD_CMD starts with git config, so that target had been failing and the arm64 binary could only ever lag behind.

One gap worth flagging separately: nothing records which HAMi-core commit a bundled binary came from. The build embeds no revision string, so the commit message is the only provenance we have.

Both binaries come from HAMi-core 4c9b2d0dee9ee9fec6fcf2ac07782ac62e3ebbc7 (v0.1.3-43-g4c9b2d0), which carries the
client half of the timeslice lock repair -- a drop is now answered with
`released` even when the lock had already been let go early -- on top of the
upstream sync to Project-HAMi f01e9f2.

Nothing records which HAMi-core commit a bundled binary was built from; the
build embeds no revision string, so this message is the only provenance. Worth
fixing separately.

Co-authored-by: Cursor <cursoragent@cursor.com>
@pengpeng
pengpeng merged commit 9ad4f30 into feat/nvshare Sep 5, 2026
2 checks passed
@pengpeng
pengpeng deleted the fix/libvgpu-lock-grant-and-reclaim branch September 5, 2026 12:58
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.

1 participant