nvproxy: support AMPERE_B and GET_HS_CREDITS_MAPPING - #14484
Open
copybara-service[bot] wants to merge 1 commit into
Open
nvproxy: support AMPERE_B and GET_HS_CREDITS_MAPPING#14484copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
nvproxy denies NVIDIA resource-manager classes and control commands it does not already understand, instead of passing them through to the host driver. This PR allowlists two of those: - **AMPERE_B (`0xc797`).** Ampere GA10x allocates this graphics class instead of `AMPERE_A` (`0xc697`, GA100). The parameter blob is the same `NV_GR_ALLOCATION_PARAMETERS` structure. Without the class ID, the sentry logs `handler is undefined for allocation class 0xc797` and `vkCreateDevice` fails. Register it next to `AMPERE_A` under `CapGraphics`, same as `TURING_A`, `ADA_A`, and `HOPPER_A`. Not a video or compute class; no new driver capability. - **`NVB0CC_CTRL_CMD_GET_HS_CREDITS_MAPPING` (`0xb0cc0116`).** Nsight Compute on multi-chiplet GPUs issues this after `GET_CHIPLET_HS_CREDIT_POOL` (`0xb0cc0115`). Without it, the sentry logs `handler is undefined` and NCU fails to prepare the kernel. Register it on the 560.28.03 ABI node under `CapProfiling`, same as the other B0CC profiler commands. Assisted-by: Cursor ## Test plan - [x] `vkCreateDevice` / `vulkaninfo` on Ampere GA10x (class `0xc797`) succeeds instead of failing on an undefined allocation class - [x] `//pkg/sentry/devices/nvproxy:nvproxy_test` passes - [x] Nsight Compute and Nsight Systems write non-empty reports and exit 0 on training and LLM-serving workloads FUTURE_COPYBARA_INTEGRATE_REVIEW=#14449 from botirkhaltaev:botir/nvproxy-ampere-b-and-ngx 3e69c51 PiperOrigin-RevId: 972845675
copybara-service
Bot
force-pushed
the
test/cl972845675
branch
from
August 28, 2026 23:51
f65be45 to
50d3ab3
Compare
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.
nvproxy: support AMPERE_B and GET_HS_CREDITS_MAPPING
nvproxy denies NVIDIA resource-manager classes and control commands it does not already understand, instead of passing them through to the host driver.
This PR allowlists two of those:
AMPERE_B (
0xc797). Ampere GA10x allocates this graphics class instead ofAMPERE_A(0xc697, GA100). The parameter blob is the sameNV_GR_ALLOCATION_PARAMETERSstructure. Without the class ID, the sentry logshandler is undefined for allocation class 0xc797andvkCreateDevicefails. Register it next toAMPERE_AunderCapGraphics, same asTURING_A,ADA_A, andHOPPER_A. Not a video or compute class; no new driver capability.NVB0CC_CTRL_CMD_GET_HS_CREDITS_MAPPING(0xb0cc0116). Nsight Compute on multi-chiplet GPUs issues this afterGET_CHIPLET_HS_CREDIT_POOL(0xb0cc0115). Without it, the sentry logshandler is undefinedand NCU fails to prepare the kernel. Register it on the 560.28.03 ABI node underCapProfiling, same as the other B0CC profiler commands.Assisted-by: Cursor
Test plan
vkCreateDevice/vulkaninfoon Ampere GA10x (class0xc797) succeeds instead of failing on an undefined allocation class//pkg/sentry/devices/nvproxy:nvproxy_testpassesFUTURE_COPYBARA_INTEGRATE_REVIEW=#14449 from botirkhaltaev:botir/nvproxy-ampere-b-and-ngx 3e69c51