2020-05-21 04:35:16 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (C) 2020 Linaro Ltd. */
|
|
|
|
|
|
|
|
#ifndef __VENUS_DBGFS_H__
|
|
|
|
#define __VENUS_DBGFS_H__
|
|
|
|
|
2022-06-16 04:02:02 -07:00
|
|
|
#include <linux/fault-inject.h>
|
|
|
|
|
2020-05-21 04:35:16 -07:00
|
|
|
struct venus_core;
|
|
|
|
|
2022-06-16 04:02:02 -07:00
|
|
|
#ifdef CONFIG_FAULT_INJECTION
|
|
|
|
extern struct fault_attr venus_ssr_attr;
|
|
|
|
static inline bool venus_fault_inject_ssr(void)
|
|
|
|
{
|
|
|
|
return should_fail(&venus_ssr_attr, 1);
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline bool venus_fault_inject_ssr(void) { return false; }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2020-05-21 04:35:16 -07:00
|
|
|
void venus_dbgfs_init(struct venus_core *core);
|
|
|
|
void venus_dbgfs_deinit(struct venus_core *core);
|
|
|
|
|
|
|
|
#endif
|