mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Add support for emitting ftrace events for job submissions with hardware timestamps, including configuring engines to capture timestamps when execution starts and ends. Bug 3829397 Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Change-Id: I3a3f6fcf931d7f8fb337f029af7729ffc2cbb972 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2891349 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
29 lines
601 B
C
29 lines
601 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2020 NVIDIA Corporation */
|
|
|
|
#ifndef _TEGRA_DRM_UAPI_SUBMIT_H
|
|
#define _TEGRA_DRM_UAPI_SUBMIT_H
|
|
|
|
struct tegra_drm_used_mapping {
|
|
struct tegra_drm_mapping *mapping;
|
|
u32 flags;
|
|
};
|
|
|
|
struct tegra_drm_submit_data {
|
|
struct tegra_drm_used_mapping *used_mappings;
|
|
u32 num_used_mappings;
|
|
u32 id;
|
|
|
|
struct {
|
|
struct device *dev;
|
|
dma_addr_t iova;
|
|
void *virt;
|
|
} timestamps;
|
|
};
|
|
|
|
int tegra_drm_fw_validate(struct tegra_drm_client *client, u32 *data, u32 start,
|
|
u32 words, struct tegra_drm_submit_data *submit,
|
|
u32 *job_class);
|
|
|
|
#endif
|