diff options
Diffstat (limited to 'gxp-debug-dump.h')
-rw-r--r-- | gxp-debug-dump.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gxp-debug-dump.h b/gxp-debug-dump.h index 1b1fda0..2a5d1ce 100644 --- a/gxp-debug-dump.h +++ b/gxp-debug-dump.h @@ -2,8 +2,9 @@ /* * GXP debug dump handler * - * Copyright (C) 2020 Google LLC + * Copyright (C) 2020-2022 Google LLC */ + #ifndef __GXP_DEBUG_DUMP_H__ #define __GXP_DEBUG_DUMP_H__ @@ -11,10 +12,11 @@ #include <linux/types.h> #include <linux/workqueue.h> -#if IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) +#if IS_ENABLED(CONFIG_GXP_TEST) || IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) #include <linux/platform_data/sscoredump.h> #endif +#include "gxp-dma.h" #include "gxp-internal.h" #define GXP_NUM_COMMON_SEGMENTS 2 @@ -172,15 +174,9 @@ struct gxp_debug_dump_work { uint core_id; }; -struct gxp_debug_dump_buffer { - void *vaddr; - dma_addr_t daddr; - u32 size; -}; - struct gxp_debug_dump_manager { struct gxp_dev *gxp; - struct gxp_debug_dump_buffer buf; + struct gxp_coherent_buf buf; /* Buffer holding debug dump data */ struct gxp_debug_dump_work debug_dump_works[GXP_NUM_CORES]; struct gxp_core_dump *core_dump; /* start of the core dump */ struct gxp_common_dump *common_dump; @@ -192,7 +188,7 @@ struct gxp_debug_dump_manager { * time */ struct mutex debug_dump_lock; -#if IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) +#if IS_ENABLED(CONFIG_GXP_TEST) || IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) struct sscd_segment segs[GXP_NUM_CORES][GXP_NUM_SEGMENTS_PER_CORE]; #endif }; |