Repository navigation
Add panic info into panic dump and fix some issues to make code build #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c59d165
a848c5c
34312c0
da2f295
fda777c
aee5702
ed2ed1e
f3fc87a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,8 +35,9 @@ | |
| #include <string.h> | ||
| #include <stdint.h> | ||
| #include <sof/bit.h> | ||
| #include <sof/dma.h> | ||
| #include <sof/platform.h> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
PLATFORM_DCACHE_ALIGN is defined in sof/platform.h |
||
| #include <platform/memory.h> | ||
| #include <arch/spinlock.h> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| struct sof; | ||
|
|
||
|
|
@@ -66,6 +67,9 @@ struct sof; | |
| #define RZONE_TYPE_MASK 0xf | ||
| #define RZONE_FLAG_MASK 0xf0 | ||
|
|
||
| struct dma_copy; | ||
| struct dma_sg_config; | ||
|
|
||
| struct mm_info { | ||
| uint32_t used; | ||
| uint32_t free; | ||
|
|
@@ -135,11 +139,4 @@ void init_heap(struct sof *sof); | |
| /* frees entire heap (supported for slave core system heap atm) */ | ||
| void free_heap(int zone); | ||
|
|
||
| /* flush block map from cache to sram */ | ||
| static inline void flush_block_map(struct block_map *map) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What error, please include error this fixes in commit message.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That will be very long list.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @xiulipan I dont need a list of errors, but just something similar to "fixes build error for target X caused by missing header Y" will do.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lgirdwood |
||
| { | ||
| dcache_writeback_invalidate_region(map->block, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This function is only a helper function for alloc.c |
||
| sizeof(*map->block) * map->count); | ||
| dcache_writeback_invalidate_region(map, sizeof(*map)); | ||
| } | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,12 +69,6 @@ int platform_boot_complete(uint32_t boot_message); | |
| */ | ||
| int platform_init(struct sof *sof); | ||
|
|
||
| /** | ||
| * \brief Called by the panic handler. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
platform_panic is defined in platform/platform.h |
||
| * \param[in] p Panic cause, one of SOF_IPC_PANIC_... codes (see ipc.h). | ||
| */ | ||
| static inline void platform_panic(uint32_t p); | ||
|
|
||
| /** @}*/ | ||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,7 @@ | |
|
|
||
| #include <sof/lock.h> | ||
| #include <sof/trace.h> | ||
| #include <sof/wait.h> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
wait_delay is defined in sof/wait.h |
||
|
|
||
| /** \brief Power management trace function. */ | ||
| #define trace_pm(__e) trace_event(TRACE_CLASS_POWER, __e) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,7 @@ | |
| #include <platform/timer.h> | ||
| #include <platform/platform.h> | ||
| #include <platform/clk.h> | ||
| #include <sof/drivers/timer.h> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
platform_timer_get is defined in sof/drivers/timer.h |
||
|
|
||
| #define trace_sa(__e) trace_event_atomic(TRACE_CLASS_SA, __e) | ||
| #define trace_sa_value(__e) trace_value_atomic(__e) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.