mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: remove "trace/events/gk20a.h" from QNX build
- "include/trace/events/gk20a.h" file was having GPL2 license
(which should not used for QNX code). This file was used for
compiling linux userspace driver("libnvgpu-drv.so") and was used for
unit testing on QNX.
- This patch removes stubs in "include/trace/events/gk20a.h" file.
(which were used for linux userspace driver.)
- For QNX driver, "nvgpu_rmos/trace/events/gk20a.h" was used.
This patch moves that file to "include/nvgpu/posix/trace_gk20a.h" and
does relevant license change. This same file will be used for linux
userspace driver.
- This patch also creates a new file "include/nvgpu/trace.h" which
selects proper trace file depending on the config.
Bug 2802414
Change-Id: Icdfb251e5698073f986753a969e804161af3ecc5
Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2286388
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
bf072ed669
commit
bbb63c0a8c
@@ -74,7 +74,8 @@ ecc:
|
|||||||
log:
|
log:
|
||||||
safe: no
|
safe: no
|
||||||
owner: Vedashree V
|
owner: Vedashree V
|
||||||
sources: [ common/log_common.c ]
|
sources: [ common/log_common.c,
|
||||||
|
include/nvgpu/trace.h ]
|
||||||
deps:
|
deps:
|
||||||
|
|
||||||
# Pretty sure this can be marked as not-safe since we plan to use
|
# Pretty sure this can be marked as not-safe since we plan to use
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ headers:
|
|||||||
include/nvgpu/posix/soc_fuse.h,
|
include/nvgpu/posix/soc_fuse.h,
|
||||||
include/nvgpu/posix/vm.h,
|
include/nvgpu/posix/vm.h,
|
||||||
include/nvgpu/posix/posix_vidmem.h,
|
include/nvgpu/posix/posix_vidmem.h,
|
||||||
include/nvgpu/posix/posix-nvhost.h ]
|
include/nvgpu/posix/posix-nvhost.h,
|
||||||
|
include/nvgpu/posix/trace_gk20a.h ]
|
||||||
|
|
||||||
queue:
|
queue:
|
||||||
safe: yes
|
safe: yes
|
||||||
|
|||||||
@@ -22,8 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <trace/events/gk20a.h>
|
#include <nvgpu/trace.h>
|
||||||
|
|
||||||
#include <nvgpu/mm.h>
|
#include <nvgpu/mm.h>
|
||||||
#include <nvgpu/semaphore.h>
|
#include <nvgpu/semaphore.h>
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
@@ -1953,9 +1952,11 @@ struct nvgpu_channel *nvgpu_channel_get__func(struct nvgpu_channel *ch,
|
|||||||
|
|
||||||
nvgpu_spinlock_release(&ch->ref_obtain_lock);
|
nvgpu_spinlock_release(&ch->ref_obtain_lock);
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_TRACE
|
||||||
if (ret != NULL) {
|
if (ret != NULL) {
|
||||||
trace_nvgpu_channel_get(ch->chid, caller);
|
trace_nvgpu_channel_get(ch->chid, caller);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@@ -1965,7 +1966,9 @@ void nvgpu_channel_put__func(struct nvgpu_channel *ch, const char *caller)
|
|||||||
#if GK20A_CHANNEL_REFCOUNT_TRACKING
|
#if GK20A_CHANNEL_REFCOUNT_TRACKING
|
||||||
channel_save_ref_source(ch, channel_gk20a_ref_action_put);
|
channel_save_ref_source(ch, channel_gk20a_ref_action_put);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_NVGPU_TRACE
|
||||||
trace_nvgpu_channel_put(ch->chid, caller);
|
trace_nvgpu_channel_put(ch->chid, caller);
|
||||||
|
#endif
|
||||||
nvgpu_atomic_dec(&ch->ref_count);
|
nvgpu_atomic_dec(&ch->ref_count);
|
||||||
if (nvgpu_cond_broadcast(&ch->ref_count_dec_wq) != 0) {
|
if (nvgpu_cond_broadcast(&ch->ref_count_dec_wq) != 0) {
|
||||||
nvgpu_warn(ch->g, "failed to broadcast");
|
nvgpu_warn(ch->g, "failed to broadcast");
|
||||||
|
|||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/dma.h>
|
#include <nvgpu/dma.h>
|
||||||
#include <nvgpu/fifo.h>
|
#include <nvgpu/fifo.h>
|
||||||
#include <nvgpu/engines.h>
|
#include <nvgpu/engines.h>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -32,10 +32,7 @@
|
|||||||
#include <nvgpu/fence.h>
|
#include <nvgpu/fence.h>
|
||||||
#include <nvgpu/profile.h>
|
#include <nvgpu/profile.h>
|
||||||
#include <nvgpu/vpr.h>
|
#include <nvgpu/vpr.h>
|
||||||
|
#include <nvgpu/trace.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle the submit synchronization - pre-fences and post-fences.
|
* Handle the submit synchronization - pre-fences and post-fences.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* USERD
|
* USERD
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
#include <nvgpu/channel.h>
|
#include <nvgpu/channel.h>
|
||||||
#include <nvgpu/fifo.h>
|
#include <nvgpu/fifo.h>
|
||||||
|
|||||||
@@ -36,10 +36,8 @@
|
|||||||
#include <nvgpu/channel_sync.h>
|
#include <nvgpu/channel_sync.h>
|
||||||
#include <nvgpu/nvgpu_init.h>
|
#include <nvgpu/nvgpu_init.h>
|
||||||
#include <nvgpu/gops_mc.h>
|
#include <nvgpu/gops_mc.h>
|
||||||
|
#include <nvgpu/trace.h>
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_NVGPU_LS_PMU
|
#ifdef CONFIG_NVGPU_LS_PMU
|
||||||
#include <nvgpu/pmu/pmu_pstate.h>
|
#include <nvgpu/pmu/pmu_pstate.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/kmem.h>
|
#include <nvgpu/kmem.h>
|
||||||
#include <nvgpu/vm.h>
|
#include <nvgpu/vm.h>
|
||||||
#include <nvgpu/log2.h>
|
#include <nvgpu/log2.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Virtualized GPU Fifo
|
* Virtualized GPU Fifo
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/kmem.h>
|
#include <nvgpu/kmem.h>
|
||||||
#include <nvgpu/dma.h>
|
#include <nvgpu/dma.h>
|
||||||
#include <nvgpu/atomic.h>
|
#include <nvgpu/atomic.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Virtualized GPU USERD
|
* Virtualized GPU USERD
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
#include <nvgpu/fifo/userd.h>
|
#include <nvgpu/fifo/userd.h>
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/enabled.h>
|
#include <nvgpu/enabled.h>
|
||||||
#include <nvgpu/bug.h>
|
#include <nvgpu/bug.h>
|
||||||
|
|||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/ltc.h>
|
#include <nvgpu/ltc.h>
|
||||||
#include <nvgpu/cbc.h>
|
#include <nvgpu/cbc.h>
|
||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
|
|||||||
@@ -29,11 +29,7 @@
|
|||||||
#include <nvgpu/io.h>
|
#include <nvgpu/io.h>
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
#include <nvgpu/trace.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/hw/tu104/hw_ltc_tu104.h>
|
#include <nvgpu/hw/tu104/hw_ltc_tu104.h>
|
||||||
|
|
||||||
#include "cbc_tu104.h"
|
#include "cbc_tu104.h"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GM20B GPC MMU
|
* GM20B GPC MMU
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/sizes.h>
|
#include <nvgpu/sizes.h>
|
||||||
#include <nvgpu/utils.h>
|
#include <nvgpu/utils.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GM20B GPC MMU
|
* GM20B GPC MMU
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/sizes.h>
|
#include <nvgpu/sizes.h>
|
||||||
#include <nvgpu/utils.h>
|
#include <nvgpu/utils.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -20,10 +20,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
#include <nvgpu/types.h>
|
#include <nvgpu/types.h>
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -20,9 +20,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GM20B L2
|
* GM20B L2
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019 NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020 NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/enabled.h>
|
#include <nvgpu/enabled.h>
|
||||||
#include <nvgpu/bug.h>
|
#include <nvgpu/bug.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GM20B L2
|
* GM20B L2
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019 NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020 NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/enabled.h>
|
#include <nvgpu/enabled.h>
|
||||||
#include <nvgpu/bug.h>
|
#include <nvgpu/bug.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GM20B L2
|
* GM20B L2
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019 NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020 NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -22,10 +22,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/enabled.h>
|
#include <nvgpu/enabled.h>
|
||||||
#include <nvgpu/bug.h>
|
#include <nvgpu/bug.h>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -25,11 +25,7 @@
|
|||||||
#include <nvgpu/io.h>
|
#include <nvgpu/io.h>
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
#include <nvgpu/trace.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ltc_tu104.h"
|
#include "ltc_tu104.h"
|
||||||
|
|
||||||
#include "ltc_gv11b.h"
|
#include "ltc_gv11b.h"
|
||||||
|
|||||||
7
drivers/gpu/nvgpu/hal/mm/cache/flush_gk20a.c
vendored
7
drivers/gpu/nvgpu/hal/mm/cache/flush_gk20a.c
vendored
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -20,10 +20,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/mm.h>
|
#include <nvgpu/mm.h>
|
||||||
#include <nvgpu/io.h>
|
#include <nvgpu/io.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
|||||||
@@ -20,10 +20,7 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/mm.h>
|
#include <nvgpu/mm.h>
|
||||||
#include <nvgpu/io.h>
|
#include <nvgpu/io.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
|||||||
80
drivers/gpu/nvgpu/include/nvgpu/posix/trace_gk20a.h
Normal file
80
drivers/gpu/nvgpu/include/nvgpu/posix/trace_gk20a.h
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef NVGPU_POSIX_TRACE_GK20A_H
|
||||||
|
#define NVGPU_POSIX_TRACE_GK20A_H
|
||||||
|
|
||||||
|
#include <nvgpu/types.h>
|
||||||
|
|
||||||
|
static inline void trace_gk20a_mm_fb_flush(const char *name){}
|
||||||
|
|
||||||
|
static inline void trace_gk20a_mm_fb_flush_done(const char *name){}
|
||||||
|
|
||||||
|
static inline void trace_gk20a_mm_l2_invalidate(const char *name){}
|
||||||
|
|
||||||
|
static inline void trace_gk20a_mm_l2_invalidate_done(const char *name){}
|
||||||
|
|
||||||
|
static inline void trace_gk20a_mm_l2_flush(const char *name){}
|
||||||
|
|
||||||
|
static inline void trace_gk20a_mm_l2_flush_done(const char *name){}
|
||||||
|
|
||||||
|
static inline void trace_nvgpu_channel_open_new(int chid){}
|
||||||
|
static inline void trace_gk20a_release_used_channel(int chid){}
|
||||||
|
static inline void trace_nvgpu_channel_get(u32 chid, const char *caller){}
|
||||||
|
static inline void trace_nvgpu_channel_put(u32 chid, const char *caller){}
|
||||||
|
static inline void trace_gk20a_free_channel(int chid){}
|
||||||
|
static inline void trace_nvgpu_channel_update(int chid){}
|
||||||
|
static inline void trace_gk20a_mmu_fault(u64 fault_addr,
|
||||||
|
u32 fault_type,
|
||||||
|
u32 access_type,
|
||||||
|
u64 inst_ptr,
|
||||||
|
u32 engine_id,
|
||||||
|
const char *client_type_desc,
|
||||||
|
const char *client_id_desc,
|
||||||
|
const char *fault_type_desc){}
|
||||||
|
#ifdef CONFIG_NVGPU_COMPRESSION
|
||||||
|
static inline void trace_gk20a_ltc_cbc_ctrl_start(const char *name,
|
||||||
|
u32 cbc_ctrl, u32 min_value, u32 max_value) {}
|
||||||
|
static inline void trace_gk20a_ltc_cbc_ctrl_done(const char *name) {}
|
||||||
|
#endif
|
||||||
|
static inline void trace_gk20a_mm_tlb_invalidate(const char *name) {}
|
||||||
|
static inline void trace_gk20a_mm_tlb_invalidate_done(const char *name) {}
|
||||||
|
static inline void trace_gk20a_channel_reset(u32 chid, u32 tsgid) {}
|
||||||
|
|
||||||
|
static inline void trace_gk20a_channel_submit_gpfifo(const char *name,
|
||||||
|
u32 chid,
|
||||||
|
u32 num_entries,
|
||||||
|
u32 flags,
|
||||||
|
u32 wait_id,
|
||||||
|
u32 wait_value) {}
|
||||||
|
static inline void trace_gk20a_channel_submitted_gpfifo(const char *name,
|
||||||
|
u32 chid,
|
||||||
|
u32 num_entries,
|
||||||
|
u32 flags,
|
||||||
|
u32 incr_id,
|
||||||
|
u32 incr_value) {}
|
||||||
|
static inline void trace_gk20a_push_cmdbuf(const char *name,
|
||||||
|
u32 mem_id,
|
||||||
|
u32 words,
|
||||||
|
u32 offset,
|
||||||
|
void *cmdbuf) {}
|
||||||
|
#endif
|
||||||
34
drivers/gpu/nvgpu/include/nvgpu/trace.h
Normal file
34
drivers/gpu/nvgpu/include/nvgpu/trace.h
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef NVGPU_TRACE_H
|
||||||
|
#define NVGPU_TRACE_H
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_TRACE
|
||||||
|
#ifdef __KERNEL__
|
||||||
|
#include <trace/events/gk20a.h>
|
||||||
|
#else
|
||||||
|
#include <nvgpu/posix/trace_gk20a.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* NVGPU_TRACE_H */
|
||||||
@@ -20,11 +20,7 @@
|
|||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/dma-buf.h>
|
#include <linux/dma-buf.h>
|
||||||
#include <uapi/linux/nvgpu.h>
|
#include <uapi/linux/nvgpu.h>
|
||||||
|
#include <nvgpu/trace.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <nvgpu/dma.h>
|
#include <nvgpu/dma.h>
|
||||||
#include <nvgpu/gmmu.h>
|
#include <nvgpu/gmmu.h>
|
||||||
#include <nvgpu/timers.h>
|
#include <nvgpu/timers.h>
|
||||||
|
|||||||
@@ -18,9 +18,7 @@
|
|||||||
#include <linux/ktime.h>
|
#include <linux/ktime.h>
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <linux/poll.h>
|
#include <linux/poll.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
#include <uapi/linux/nvgpu.h>
|
#include <uapi/linux/nvgpu.h>
|
||||||
#include <nvgpu/kmem.h>
|
#include <nvgpu/kmem.h>
|
||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
|
|||||||
@@ -11,9 +11,7 @@
|
|||||||
* more details.
|
* more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
#include <linux/irqreturn.h>
|
#include <linux/irqreturn.h>
|
||||||
|
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GK20A Address Spaces
|
* GK20A Address Spaces
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -16,10 +16,7 @@
|
|||||||
#include <linux/cdev.h>
|
#include <linux/cdev.h>
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
|
#include <nvgpu/trace.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <uapi/linux/nvgpu.h>
|
#include <uapi/linux/nvgpu.h>
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
#include <linux/file.h>
|
#include <linux/file.h>
|
||||||
#include <linux/anon_inodes.h>
|
#include <linux/anon_inodes.h>
|
||||||
#include <linux/dma-buf.h>
|
#include <linux/dma-buf.h>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2019, NVIDIA Corporation. All rights reserved.
|
* Copyright (c) 2017-2020, NVIDIA Corporation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -38,9 +38,7 @@
|
|||||||
|
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <linux/dma-buf.h>
|
#include <linux/dma-buf.h>
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
#include <uapi/linux/nvgpu.h>
|
#include <uapi/linux/nvgpu.h>
|
||||||
|
|
||||||
#include "sync_sema_android.h"
|
#include "sync_sema_android.h"
|
||||||
|
|||||||
@@ -91,9 +91,7 @@
|
|||||||
#define GK20A_WAIT_FOR_IDLE_MS 2000
|
#define GK20A_WAIT_FOR_IDLE_MS 2000
|
||||||
|
|
||||||
#define CREATE_TRACE_POINTS
|
#define CREATE_TRACE_POINTS
|
||||||
#ifdef CONFIG_NVGPU_TRACE
|
#include <nvgpu/trace.h>
|
||||||
#include <trace/events/gk20a.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int nvgpu_wait_for_idle(struct gk20a *g)
|
static int nvgpu_wait_for_idle(struct gk20a *g)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* gk20a event logging to ftrace.
|
* gk20a event logging to ftrace.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
#undef TRACE_SYSTEM
|
#undef TRACE_SYSTEM
|
||||||
#define TRACE_SYSTEM gk20a
|
#define TRACE_SYSTEM gk20a
|
||||||
|
|
||||||
#if !defined(_TRACE_GK20A_H) || defined(TRACE_HEADER_MULTI_READ)
|
#if !defined(__NVGPU_TRACE_GK20A_H__) || defined(TRACE_HEADER_MULTI_READ)
|
||||||
#define _TRACE_GK20A_H
|
#define __NVGPU_TRACE_GK20A_H__
|
||||||
|
|
||||||
#include <linux/ktime.h>
|
#include <linux/ktime.h>
|
||||||
#include <linux/tracepoint.h>
|
#include <linux/tracepoint.h>
|
||||||
@@ -625,30 +625,4 @@ DEFINE_EVENT(gk20a_cde, gk20a_cde_finished_ctx_cb,
|
|||||||
/* This part must be outside protection */
|
/* This part must be outside protection */
|
||||||
#include <trace/define_trace.h>
|
#include <trace/define_trace.h>
|
||||||
|
|
||||||
#else /* Not __KERNEL__ */
|
|
||||||
|
|
||||||
#define trace_gk20a_mmu_fault(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_release_used_channel(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_free_channel(arg...) ((void)(NULL))
|
|
||||||
#define trace_nvgpu_channel_get(arg...) ((void)(NULL))
|
|
||||||
#define trace_nvgpu_channel_put(arg...) ((void)(NULL))
|
|
||||||
#define trace_nvgpu_channel_open_new(arg...) ((void)(NULL))
|
|
||||||
#define trace_nvgpu_channel_update(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_channel_reset(arg...) ((void)(NULL))
|
|
||||||
|
|
||||||
#define trace_gk20a_mm_fb_flush(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_fb_flush_done(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_l2_invalidate(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_l2_invalidate_done(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_l2_flush(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_l2_flush_done(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_tlb_invalidate(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_mm_tlb_invalidate_done(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_ltc_cbc_ctrl_start(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_ltc_cbc_ctrl_done(arg...) ((void)(NULL))
|
|
||||||
|
|
||||||
#define trace_gk20a_channel_submit_gpfifo(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_channel_submitted_gpfifo(arg...) ((void)(NULL))
|
|
||||||
#define trace_gk20a_push_cmdbuf(arg...) ((void)(NULL))
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user