Skip to content

Comments

uadk: support querying device bandwidth utilization#744

Merged
Liulongfang merged 4 commits intoLinaro:developfrom
tomismyfriend:develop
Jan 19, 2026
Merged

uadk: support querying device bandwidth utilization#744
Liulongfang merged 4 commits intoLinaro:developfrom
tomismyfriend:develop

Conversation

@tomismyfriend
Copy link

uadk supports obtaining the bandwidth utilization of specified devices and algorithms.

Weili Qian added 4 commits January 8, 2026 20:57
When looking up the corresponding driver by algorithm type,
since the driver does not save the algorithm type, it cannot
be directly obtained. Therefore, the algorithm type should be
saved during algorithm registration.

Signed-off-by: Weili Qian <qianweili@huawei.com>
uadk adds API to support obtaining the current bandwidth
utilization of a device. When the device driver creates
the "dev_usage" file, users can obtain the current bandwidth
utilization of the specified algorithm on the device by passing
in the device and algorithm name to be queried.

Signed-off-by: Weili Qian <qianweili@huawei.com>
uadk supports obtaining the bandwidth utilization of
specified devices and algorithms through user-space drivers.
After hardware resources are initialized, the bandwidth utilization
can be directly obtained through the hardware mmio space, replacing
the method of reading sysfs files and reducing system calls.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Supports obtaining the device's bandwidth utilization.
For usage details, refer to "uadk_tool dfx --help".

Signed-off-by: Weili Qian <qianweili@huawei.com>
@qwl731
Copy link

qwl731 commented Jan 9, 2026

lgtm

Copy link
Collaborator

@Liulongfang Liulongfang left a comment

Choose a reason for hiding this comment

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

looks good to me

@Liulongfang Liulongfang merged commit e7ad179 into Linaro:develop Jan 19, 2026
2 checks passed
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.

3 participants