Skip to content

memory: remove align to memory bank in APL - #1557

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
abonislawski:memory_apl_alignsram
Jun 21, 2019
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
abonislawski:memory_apl_alignsram

Conversation

@abonislawski

Copy link
Copy Markdown
Member

Due to small number of memory banks in APL it will be not possible to power down some of them
so there is no point in align to memory banks, this would significantly limit free memory for buffers

Signed-off-by: Adrian Bonislawski adrian.bonislawski@linux.intel.com

@tlauda

tlauda commented Jun 12, 2019

Copy link
Copy Markdown
Contributor

@abonislawski I don't know if it's coincidence, but both APL configurations are failing.

@tlauda

tlauda commented Jun 12, 2019

Copy link
Copy Markdown
Contributor

SOFCI TEST

@abonislawski

Copy link
Copy Markdown
Member Author

@abonislawski I don't know if it's coincidence, but both APL configurations are failing.

Because of "BYT_MB_RT5651 fail" its probably a CI issue but APL fails looks strange

@abonislawski
abonislawski force-pushed the memory_apl_alignsram branch from acc0869 to fd92b33 Compare June 13, 2019 11:04
Comment thread src/platform/apollolake/apollolake.x.in Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we align on page size here ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgirdwood I have started with 32 but there was strange errors in sof-ci/jenkins/pr-device-test: "verify_pcm_list" and "check_aplay_function". So I tried with page size and it works.
@tlauda fyi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abonislawski Can we find the root cause? Right now it works, but one change in memory map and we can potentially break it again.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tlauda take a look at logs: https://sof-ci.01.org/sofpr/PR1557/build2263/
Im not sure if I can do something with this.
Note that in the past these buffers were always aligned with fixed size so maybe there was a reason for this or just no one has ever tried it in any other way

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abonislawski We just need FW logs to see what happened.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tlauda looks like @lgirdwood advice with CACHE_LINE_SIZE (64) is also working so we will stay with it for this PR and debug later 32 if needed

Comment thread src/platform/apollolake/apollolake.x.in Resolved
@abonislawski
abonislawski force-pushed the memory_apl_alignsram branch from fd92b33 to 8effa4e Compare June 14, 2019 09:52
@abonislawski

Copy link
Copy Markdown
Member Author

@lgirdwood @tlauda please finish review and merge, this PR is needed for #1567

Comment thread src/platform/apollolake/apollolake.x.in Resolved
Due to small number of memory banks in APL it will be not possible to power down some of them
so there is no point in align to memory banks, this would significantly limit free memory for buffers

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
@abonislawski
abonislawski force-pushed the memory_apl_alignsram branch from 8effa4e to 4c7a3e9 Compare June 18, 2019 16:34
@abonislawski

Copy link
Copy Markdown
Member Author

#1568 merged so this one is ready now (used HEAP_BUF_ALIGNMENT)

@lgirdwood @tlauda

@lgirdwood
lgirdwood merged commit 3e6bf7f into thesofproject:master Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants