mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
When debug dump is called from an interrupt thread, we do not want to call gk20a_busy() because it causes race in case rail gating is being engaged at the same time. It has to be called from all debugfs paths. Bug 200198908 Bug 1770522 Change-Id: I7eda7d029b0a59cce0320ecc1b750dc2f4d7ccf0 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1163440 GVS: Gerrit_Virtual_Submit Tested-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/*
|
|
* GK20A Debug functionality
|
|
*
|
|
* Copyright (C) 2011-2016 NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef _DEBUG_GK20A_H_
|
|
#define _DEBUG_GK20A_H_
|
|
|
|
struct platform_device;
|
|
struct gk20a;
|
|
struct gpu_ops;
|
|
|
|
extern unsigned int gk20a_debug_trace_cmdbuf;
|
|
|
|
struct gk20a_debug_output {
|
|
void (*fn)(void *ctx, const char *str, size_t len);
|
|
void *ctx;
|
|
char buf[256];
|
|
};
|
|
|
|
void gk20a_debug_output(struct gk20a_debug_output *o,
|
|
const char *fmt, ...);
|
|
|
|
void gk20a_debug_dump(struct device *pdev);
|
|
void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o);
|
|
int gk20a_gr_debug_dump(struct device *pdev);
|
|
void gk20a_debug_init(struct device *dev);
|
|
void gk20a_init_debug_ops(struct gpu_ops *gops);
|
|
void gk20a_debug_dump_device(void *dev);
|
|
|
|
|
|
#endif
|