diff options
author | Samuel Pitoiset <[email protected]> | 2017-08-31 11:43:59 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-01 09:46:32 +0200 |
commit | 12cbd9a13f97f67b62657728bc244b96de7f7b83 (patch) | |
tree | f881b7c68eaf80c88c0d897714e93bc8f2a2a6a6 /src/amd/common/ac_debug.h | |
parent | 72d9ffc72cba5852ec09d2e8d1f55fdbbefcfe6f (diff) |
radeonsi: move si_vm_fault_occured() to AMD common code
For radv, in order to report VM faults when detected.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_debug.h')
-rw-r--r-- | src/amd/common/ac_debug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_debug.h b/src/amd/common/ac_debug.h index a37acd20296..277025d8b66 100644 --- a/src/amd/common/ac_debug.h +++ b/src/amd/common/ac_debug.h @@ -28,6 +28,7 @@ #include <stdint.h> #include <stdio.h> +#include <stdbool.h> #include "amd_family.h" @@ -46,4 +47,7 @@ void ac_parse_ib(FILE *f, uint32_t *ib, int num_dw, const int *trace_ids, unsigned trace_id_count, const char *name, enum chip_class chip_class, ac_debug_addr_callback addr_callback, void *addr_callback_data); +bool ac_vm_fault_occured(enum chip_class chip_class, + uint64_t *old_dmesg_timestamp, uint64_t *out_addr); + #endif |