[PATCH 08/12] accel/ivpu: Add NPU profiling support
Jeffrey Hugo
quic_jhugo at quicinc.com
Fri May 10 16:46:29 UTC 2024
On 5/8/2024 7:21 AM, Jacek Lawrynowicz wrote:
> From: Tomasz Rusinowicz <tomasz.rusinowicz at intel.com>
>
> Implement time based Metric Streamer profiling UAPI.
>
> This is a generic mechanism allowing user mode tools to sample
> NPU metrics. These metrics are defined by the FW and transparent to
> the driver.
>
> The user space can check for this feature by checking
> DRM_IVPU_CAP_METRIC_STREAMER driver capability.
>
> Signed-off-by: Tomasz Rusinowicz <tomasz.rusinowicz at intel.com>
> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz at linux.intel.com>
> ---
> drivers/accel/ivpu/Makefile | 3 +-
> drivers/accel/ivpu/ivpu_drv.c | 14 +-
> drivers/accel/ivpu/ivpu_drv.h | 3 +
> drivers/accel/ivpu/ivpu_jsm_msg.c | 98 ++++++++++
> drivers/accel/ivpu/ivpu_jsm_msg.h | 8 +-
> drivers/accel/ivpu/ivpu_ms.c | 309 ++++++++++++++++++++++++++++++
> drivers/accel/ivpu/ivpu_ms.h | 36 ++++
> drivers/accel/ivpu/ivpu_pm.c | 4 +
> include/uapi/drm/ivpu_accel.h | 69 ++++++-
> 9 files changed, 540 insertions(+), 4 deletions(-)
> create mode 100644 drivers/accel/ivpu/ivpu_ms.c
> create mode 100644 drivers/accel/ivpu/ivpu_ms.h
>
> diff --git a/drivers/accel/ivpu/Makefile b/drivers/accel/ivpu/Makefile
> index 95ff7ad16338..726cf8f28ea3 100644
> --- a/drivers/accel/ivpu/Makefile
> +++ b/drivers/accel/ivpu/Makefile
> @@ -1,5 +1,5 @@
> # SPDX-License-Identifier: GPL-2.0-only
> -# Copyright (C) 2023 Intel Corporation
> +# Copyright (C) 2022-2024 Intel Corporation
Are you sure this is correct? Seems odd to be adding 2022 in addition
to 2024 at this point.
-Jeff
More information about the dri-devel
mailing list