mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
In Orin and previous chipsets, engine timestamp counter runs 32 times faster than CNTVCT register, so the actual timestamp is obtained by right shifting with factor of 5. In Thor onwards, this shift is not required is for VIC engine. Jira HOSTX-5905 Change-Id: I69980fdfcf50b15db99b1fbad522aecd571a0f17 Signed-off-by: Mainak Sen <msen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3306825 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
30 lines
624 B
C
30 lines
624 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;
|
|
u32 timestamp_shift;
|
|
} 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
|