1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
/* SPDX-License-Identifier: MIT */
/*
* Copyright © 2021 Intel Corporation
*/
#ifndef __IGT_TAINTS_H__
#define __IGT_TAINTS_H__
#define TAINT_MACHINE_CHECK 4
#define TAINT_BAD_PAGE 5
#define TAINT_DIE 7
#define TAINT_WARN 9
#define TAINT_SOFT_LOCKUP 14
unsigned long igt_kernel_tainted(unsigned long *taints);
const char *igt_explain_taints(unsigned long *taints);
unsigned long igt_bad_taints(void);
static inline unsigned long is_tainted(unsigned long taints)
{
return taints & igt_bad_taints();
}
#endif /* __IGT_TAINTS_H__ */
|