mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: add capability for FECS tracing
FECS tracing is not supported yet on some platforms (e.g. GM20B), so we need a flag to determine when to run automated tests. Jira EVLR-992 Change-Id: I01a5b2f78612363de44c1f2c17cebaded696f423 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1293350 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
cae5a0bc36
commit
771445abc8
@@ -518,6 +518,9 @@ int gk20a_ctxsw_trace_init(struct gk20a *g)
|
|||||||
if (unlikely(err))
|
if (unlikely(err))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
g->gpu_characteristics.flags |=
|
||||||
|
NVGPU_GPU_FLAGS_SUPPORT_FECS_CTXSW_TRACE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|||||||
@@ -130,6 +130,8 @@ struct nvgpu_gpu_zbc_query_table_args {
|
|||||||
#define NVGPU_GPU_FLAGS_SUPPORT_SET_THERM_ALERT_LIMIT (1ULL << 14)
|
#define NVGPU_GPU_FLAGS_SUPPORT_SET_THERM_ALERT_LIMIT (1ULL << 14)
|
||||||
/* NVGPU_GPU_IOCTL_GET_EVENT_FD is available */
|
/* NVGPU_GPU_IOCTL_GET_EVENT_FD is available */
|
||||||
#define NVGPU_GPU_FLAGS_SUPPORT_DEVICE_EVENTS (1ULL << 15)
|
#define NVGPU_GPU_FLAGS_SUPPORT_DEVICE_EVENTS (1ULL << 15)
|
||||||
|
/* FECS context switch tracing is available */
|
||||||
|
#define NVGPU_GPU_FLAGS_SUPPORT_FECS_CTXSW_TRACE (1ULL << 16)
|
||||||
|
|
||||||
struct nvgpu_gpu_characteristics {
|
struct nvgpu_gpu_characteristics {
|
||||||
__u32 arch;
|
__u32 arch;
|
||||||
|
|||||||
Reference in New Issue
Block a user