Skip to content

accel/amdxdna: fix hwctx qos priroity mapping (1.8)#1353

Open
hlaccabu wants to merge 1 commit into
amd:1.8from
hlaccabu:1.8-bckprt
Open

accel/amdxdna: fix hwctx qos priroity mapping (1.8)#1353
hlaccabu wants to merge 1 commit into
amd:1.8from
hlaccabu:1.8-bckprt

Conversation

@hlaccabu
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Hayden Laccabue <hlaccabu@amd.com>
@hlaccabu hlaccabu requested a review from Copilot May 21, 2026 20:05
@hlaccabu hlaccabu changed the title accel/amdxdna: fix hwctx qos priroity mapping accel/amdxdna: fix hwctx qos priroity mapping (1.8) May 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the AIE4 hardware-context QoS priority handling by translating the UAPI QoS priority values (e.g., 0x100..0x280) into the device/firmware “priority band” values expected by the AIE4 management message.

Changes:

  • Introduce an AIE4 “context priority band” enum for the HW context create message.
  • Add a mapping helper to convert AMDXDNA_QOS_*_PRIORITY values into AIE4 priority bands.
  • Update HW context creation to send the mapped priority band instead of the raw QoS value.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
drivers/accel/amdxdna/aie4_msg_priv.h Adds AIE4 context priority band enum used by management message fields.
drivers/accel/amdxdna/aie4_ctx.c Converts user QoS priority values to AIE4 priority bands when creating HW contexts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants