Skip to content

nvproxy: support AMPERE_B and GET_HS_CREDITS_MAPPING - #14484

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl972845675
Open

nvproxy: support AMPERE_B and GET_HS_CREDITS_MAPPING#14484
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl972845675

Conversation

@copybara-service

Copy link
Copy Markdown

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 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

  • vkCreateDevice / vulkaninfo on Ampere GA10x (class 0xc797) succeeds instead of failing on an undefined allocation class
  • //pkg/sentry/devices/nvproxy:nvproxy_test passes
  • 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

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Aug 28, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant