drm/tegra: Enable job timestamping for NVJPG

NVJPG firmware now supports timestamping, so enable use of it.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: I5a21f51e29ac19a95d36bb435dc884a440095ac2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3070327
Reviewed-by: Satvik Raj Gupta <satvikrajg@nvidia.com>
Tested-by: Satvik Raj Gupta <satvikrajg@nvidia.com>
This commit is contained in:
Mikko Perttunen
2024-02-05 11:35:50 +02:00
committed by Satvik Raj Gupta
parent 01ab1b46c3
commit 6025535763
2 changed files with 13 additions and 11 deletions

View File

@@ -122,17 +122,7 @@ static int virt_engine_can_use_memory_ctx(struct tegra_drm_client *client, bool
static int virt_engine_has_job_timestamping(struct tegra_drm_client *client, bool *supported)
{
struct virt_engine *virt = to_virt_engine(client);
switch (virt->client.base.class) {
case HOST1X_CLASS_NVJPG:
case HOST1X_CLASS_NVJPG1:
*supported = false;
break;
default:
*supported = true;
break;
}
*supported = true;
return 0;
}