alloc: fix memory heap initialization#541
Conversation
|
Hi all, This is a patch to fix the bug of memory initialization in FW. |
|
Is there a corresponding issue number of the "bug"? @libinyang |
lgirdwood
left a comment
There was a problem hiding this comment.
Can you please explain the bug and the fix in detail in the commit message (otherwise it;s really hard to follow what you are fixing and why).
|
@wenqingfu This patch is made for the bug #539. However, as the memory issue should be very general, I believe this patch may fix some other potential unstable issues because of the memory allocation. This bug is the member base of memmap.runtime[] map and memmap.buffer[] map is set wrong. |
90a1086 to
394dda2
Compare
|
Patch updated by adding more comments in the code. |
lgirdwood
left a comment
There was a problem hiding this comment.
Please describe what is broken with existing code and how your changes fix this in the commit message otherwise this cant be applied (even if it's correct). I've spent 20 minutes working out what is wrong with the current code that could have been avoided if you had explained in the commit message.
There was a problem hiding this comment.
please follow coding style of one variable per line.
There was a problem hiding this comment.
please follow coding style of one variable per line.
Thanks for point it out. I didn't realize we have such coding style in sof project.
There was a problem hiding this comment.
OK for this and upper review comments.
This patch fixes the bug of runtime & buffer memory heap initialization, and sets the correct base address for each map. Signed-off-by: Libin Yang <libin.yang@intel.com>
394dda2 to
159f118
Compare
|
this change makes issue thesofproject/linux#253 go away, can we please prioritize reviews and integration. |
This patch fixes the bug of runtime & buffer memory heap initialization and
sets the correct base for each map.
This is a generic fix and It was verified to fix the issues below:
thesofproject/linux#253
#539 duplicate of linux #253
Signed-off-by: Libin Yang libin.yang@intel.com