diff options
author | Neela Chithirala <chithiralan@google.com> | 2022-03-03 05:17:38 +0000 |
---|---|---|
committer | Neela Chithirala <chithiralan@google.com> | 2022-03-07 05:11:37 +0000 |
commit | 6d71338807ebff13916d2285d67ce59f261eab3e (patch) | |
tree | dd3bbbaab5286ec315807569c72fe790f8fea61d /gxp-debug-dump.c | |
parent | 49087428c8fea8eb57a4f57f4fe83e0d2f26b113 (diff) | |
download | gs201-6d71338807ebff13916d2285d67ce59f261eab3e.tar.gz |
Merge branch 'gs201-release' to android13-gs-pixel-5.10
* gs201-release:
gxp: create own queue for power state transition
Bug: 221187219
gxp: Fix checkpatch errors
gxp: lower the default power state
Bug: 201600514
gxp: support memory power state operation
Bug: 201600514
gxp: change power state asynchronously
Bug: 221187219
gxp: Support for mapping and unmapping dma-bufs
Bug: 177224744
gxp: Remove extra call to gxp_pm_init() on probe
gxp: support power state voting by wakelock IOCTL
Bug: 201600514
gxp: add firmware authentication support
Bug: 218949590
GitOrigin-RevId: ae2f794c392b0357bbad0f6b84c71896b9e61185
Change-Id: I42bf2d5a834700059b4e8f145b8a78a27aa7b668
Signed-off-by: Neela Chithirala <chithiralan@google.com>
Change-Id: Id2ea88150f661804c06455924b799640c38b0480
Diffstat (limited to 'gxp-debug-dump.c')
-rw-r--r-- | gxp-debug-dump.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gxp-debug-dump.c b/gxp-debug-dump.c index 87d5539..bbc4635 100644 --- a/gxp-debug-dump.c +++ b/gxp-debug-dump.c @@ -247,8 +247,8 @@ static void gxp_get_common_dump(struct gxp_dev *gxp) #if IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) static void gxp_send_to_sscd(struct gxp_dev *gxp, void *segs, int seg_cnt, - const char *info) { - + const char *info) +{ struct gxp_debug_dump_manager *mgr = gxp->debug_dump_mgr; struct sscd_platform_data *pdata = (struct sscd_platform_data *)mgr->sscd_pdata; @@ -337,11 +337,10 @@ static void gxp_handle_debug_dump(struct gxp_dev *gxp, uint32_t core_id) for (i = 0; i < GXP_NUM_CORE_SEGMENTS; i++) core_dump_header->seg_header[i].valid = 0; - - return; } -static void gxp_free_segments(struct gxp_dev *gxp) { +static void gxp_free_segments(struct gxp_dev *gxp) +{ #if IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) int core_id; @@ -351,7 +350,8 @@ static void gxp_free_segments(struct gxp_dev *gxp) { kfree(gxp->debug_dump_mgr->common_dump); } -static int gxp_init_segments(struct gxp_dev *gxp) { +static int gxp_init_segments(struct gxp_dev *gxp) +{ #if !IS_ENABLED(CONFIG_SUBSYSTEM_COREDUMP) return 0; #else @@ -384,7 +384,8 @@ err_out: #endif } -static void gxp_handle_dram_dump(struct gxp_dev *gxp, uint32_t core_id) { +static void gxp_handle_dram_dump(struct gxp_dev *gxp, uint32_t core_id) +{ struct gxp_debug_dump_manager *mgr = gxp->debug_dump_mgr; struct gxp_core_dump_header *core_dump_header = &mgr->core_dump->core_dump_header[core_id]; @@ -407,7 +408,8 @@ static void gxp_handle_dram_dump(struct gxp_dev *gxp, uint32_t core_id) { } static bool gxp_is_segment_valid(struct gxp_dev *gxp, uint32_t core_id, - int seg_idx) { + int seg_idx) +{ struct gxp_core_dump *core_dump; struct gxp_core_dump_header *core_dump_header; struct gxp_seg_header *seg_header; |