diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2026-09-17 18:06:49 -0700 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-09-22 22:07:43 +0900 |
| commit | e1a9f41b896f0d57eb1165dd8a4c7446be6af638 (patch) | |
| tree | 683d369d5eca62f44d626b562d4ec22fb9d01c63 /tools/lib/python | |
| parent | 6f0bdccfff6c84bd33f0385517c6f1f331a5ea04 (diff) | |
gpu: nova-core: gsp: give the command queue its own BAR0 mapping
Sending a command to the GSP ends by writing the GSP doorbell, a BAR0
register, so every send path through the command queue needs the BAR0
mapping. A command too large for one queue element goes out as a first
element followed by continuation records, so the send path has four
functions.
Nova-core passed the mapping down from the caller as an argument, which
was threaded through all four functions, and every caller of a send had
to carry it as well.
Store the mapping in the command queue and drop the argument. The queue
lives exactly as long as the mapping does, since both belong to the
bound device.
Suggested-by: Alexandre Courbot <acourbot@nvidia.com>
Assisted-by: LLM
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Timur Tabi <ttabi@nvidia.com>
Link: https://patch.msgid.link/20260918010719.1176945-4-jhubbard@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
