Skip to content

accel/ivpu: Expose NPU frequency into userspace

Maciej Falkowski dri-devel stable 1 version Applied

Status from this message: Applied to drm-misc-fixes

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2accel/ivpu: Fix the NPU's DPU frequency calculationdrivers/accel/ivpu/ivpu_drv.c drivers/accel/ivpu/ivpu_fw.c drivers/accel/ivpu/ivpu_hw.h +3 more+66 -881 reply
2/2accel/ivpu: Show NPU frequency in sysfsdrivers/accel/ivpu/ivpu_hw.h drivers/accel/ivpu/ivpu_hw_btrs.c drivers/accel/ivpu/ivpu_hw_btrs.h +1 more+62 -15 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJeff HugoJacek Lawrynowicz
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] accel/ivpu: Expose NPU frequency into userspace

This patchset introduces the capability to measure the NPU frequency and makes it accessible to a userspace via sysfs. The initial patch in the series addresses the inconsistency in retrieving the clock frequency from the device across the Meteor Lake and Lunar Lake generations.

Subsequently, the latter patch exposes the driver's frequency through sysfs to facilitate frequency sampling.

Andrzej Kacprowski (2):
accel/ivpu: Fix the NPU's DPU frequency calculation accel/ivpu: Show NPU frequency in sysfs

 drivers/accel/ivpu/ivpu_drv.c     |   4 +-
 drivers/accel/ivpu/ivpu_fw.c      |   3 +-
 drivers/accel/ivpu/ivpu_hw.h      |  14 ++--
 drivers/accel/ivpu/ivpu_hw_btrs.c | 134 ++++++++++++++----------------
 drivers/accel/ivpu/ivpu_hw_btrs.h |   7 +-
 drivers/accel/ivpu/ivpu_sysfs.c   |  49 ++++++++++-
 include/uapi/drm/ivpu_accel.h     |   4 +-
 7 files changed, 127 insertions(+), 88 deletions(-)
Signature · 1 line
2.43.0