Skip to content

[SKIP CI] docker: add AMD/Rembrandt gcc toolchain - #5897

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
fredoh9:fix/amd_rmb_tool_docker
Aug 10, 2022
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
fredoh9:fix/amd_rmb_tool_docker

Conversation

@fredoh9

@fredoh9 fredoh9 commented Jun 6, 2022

Copy link
Copy Markdown
Contributor

Add AMD/Rembrandt (rmb) gcc toolchain to thesofproject/sof docker image.

Signed-off-by: Fred Oh fred.oh@linux.intel.com

@fredoh9

fredoh9 commented Jun 6, 2022 •

Copy link
Copy Markdown
Contributor Author

Docker image thesofproject/sof:20220606 (=thesofproject/sof:latest from a few minutes ago) has this fix.

I picked up #5833 and rebased top of today's main. But I have build error for rmb with latest docker image. Because of this error "./scripts/xtensa-build-all.sh -a" cannot finish the job.

./scripts/docker-run.sh ./scripts/xtensa-build-all.sh rmb
...
[ 15%] Building ASM object src/arch/xtensa/CMakeFiles/reset.dir/xtos/reset-vector.S.o
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S: Assembler messages:
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:850: Error: unknown opcode or format name 'rsr.memctl'
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:863: Error: unknown opcode or format name 'rsr.memctl'
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:863: Error: unknown opcode or format name 'wsr.memctl'
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:880: Error: unknown opcode or format name 'rsr.memctl'
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:893: Error: unknown opcode or format name 'rsr.memctl'
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:893: Error: unknown opcode or format name 'wsr.memctl'
/home/sof/work/sof.git/src/arch/xtensa/hal/cache_asm.S:893: Error: unknown opcode or format name 'diwbui.p'
...
[ 43%] No install step for 'smex_ep'
[ 44%] Completed 'smex_ep'
[100%] Linking C executable rimage
[ 44%] Built target smex_ep
[100%] Built target rimage
[ 44%] No install step for 'rimage_ep'
[ 45%] Completed 'rimage_ep'
[ 45%] Built target rimage_ep
make[1]: *** [CMakeFiles/Makefile2:2154: src/arch/xtensa/CMakeFiles/bin.dir/rule] Error 2
make: *** [Makefile:814: bin] Error 2

@fredoh9 fredoh9 changed the title docker: add AMD/Rembrandt gcc toolchain [SKIP CI] docker: add AMD/Rembrandt gcc toolchain Jun 6, 2022
@fredoh9
fredoh9 requested a review from marc-hb June 6, 2022 20:00
@fredoh9
fredoh9 marked this pull request as ready for review June 6, 2022 22:43
@marc-hb
marc-hb requested a review from balakishorepati June 6, 2022 22:48
@lgirdwood

Copy link
Copy Markdown
Member

Docker image thesofproject/sof:20220606 (=thesofproject/sof:latest from a few minutes ago) has this fix.

I picked up #5833 and rebased top of today's main. But I have build error for rmb with latest docker image. Because of this error "./scripts/xtensa-build-all.sh -a" cannot finish the job.

./scripts/docker-run.sh ./scripts/xtensa-build-all.sh rmb
...
[ 43%] No install step for 'smex_ep'
[ 44%] Completed 'smex_ep'
[100%] Linking C executable rimage
[ 44%] Built target smex_ep
[100%] Built target rimage
[ 44%] No install step for 'rimage_ep'
[ 45%] Completed 'rimage_ep'
[ 45%] Built target rimage_ep
make[1]: *** [CMakeFiles/Makefile2:2154: src/arch/xtensa/CMakeFiles/bin.dir/rule] Error 2
make: *** [Makefile:814: bin] Error 2

@fredoh9 are you saying we have some dependencies before merging ?

@lgirdwood

Copy link
Copy Markdown
Member

@fredoh9 are you saying we have some dependencies before merging ?

Ping - do we need to merge any other PRs before this one ?

@marc-hb

marc-hb commented Jun 8, 2022

Copy link
Copy Markdown
Collaborator

Ping - do we need to merge any other PRs before this one ?

@balakishorepati can you please test this?

@marc-hb
marc-hb marked this pull request as draft June 8, 2022 13:40
@fredoh9

fredoh9 commented Jun 9, 2022

Copy link
Copy Markdown
Contributor Author

@fredoh9 are you saying we have some dependencies before merging ?

Ping - do we need to merge any other PRs before this one ?

This doesn't have any dependency but I suspect rmb toolchain may need some fix(es)

@lgirdwood

Copy link
Copy Markdown
Member

@fredoh9 ping

@marc-hb

marc-hb commented Jul 7, 2022 •

Copy link
Copy Markdown
Collaborator

I could be wrong but I believe @fredoh9 is waiting on @balakishorepati to reproduce the error reported above.

@balakishorepati

Copy link
Copy Markdown
Contributor

I could be wrong but I believe @fredoh9 is waiting on @balakishorepati to reproduce the error reported above.

I could be wrong but I believe @fredoh9 is waiting on @balakishorepati to reproduce the error reported above.

@marc-hb : There is no issue in rmb tool chain. But issue is due to gcc compiler was not picking the core-isa.h file which we up streamed.
We are able to compile the rmb code with the up streamed toolchain if gcc compiler is picking the proper core-isa.h file during compilation.
Any inputs are welcome to debug why compiler is taking wrong core-isa.h header file

@balakishorepati

Copy link
Copy Markdown
Contributor

Docker image thesofproject/sof:20220606 (=thesofproject/sof:latest from a few minutes ago) has this fix.
I picked up #5833 and rebased top of today's main. But I have build error for rmb with latest docker image. Because of this error "./scripts/xtensa-build-all.sh -a" cannot finish the job.

./scripts/docker-run.sh ./scripts/xtensa-build-all.sh rmb
...
[ 43%] No install step for 'smex_ep'
[ 44%] Completed 'smex_ep'
[100%] Linking C executable rimage
[ 44%] Built target smex_ep
[100%] Built target rimage
[ 44%] No install step for 'rimage_ep'
[ 45%] Completed 'rimage_ep'
[ 45%] Built target rimage_ep
make[1]: *** [CMakeFiles/Makefile2:2154: src/arch/xtensa/CMakeFiles/bin.dir/rule] Error 2
make: *** [Makefile:814: bin] Error 2

@fredoh9 are you saying we have some dependencies before merging ?

@fredoh9 : Need to take below commit into sof git for rimage compilation.
thesofproject/rimage@1b233f6

@marc-hb

marc-hb commented Jul 7, 2022

Copy link
Copy Markdown
Collaborator

@marc-hb : There is no issue in rmb tool chain.

You're confusing me with @fredoh9 :-)

But issue is due to gcc compiler was not picking the core-isa.h file which we up streamed.

Note there are files with all the same "core-isa.h" names everywhere: in SOF, in the toolchains, in qemu, in Zephyr HALs,.... What #include could possibly go wrong?

@fredoh9 : Need to take below commit into sof git for rimage compilation.

@balakishorepati please submit an rimage submodule update in SOF. See recent and good example in 4e1d3ba

@balakishorepati

Copy link
Copy Markdown
Contributor

@marc-hb : There is no issue in rmb tool chain.

You're confusing me with @fredoh9 :-)

But issue is due to gcc compiler was not picking the core-isa.h file which we up streamed.

Note there are files with all the same "core-isa.h" names everywhere: in SOF, in the toolchains, in qemu, in Zephyr HALs,.... What #include could possibly go wrong?

@fredoh9 : Need to take below commit into sof git for rimage compilation.

@balakishorepati please submit an rimage submodule update in SOF. See recent and good example in 4e1d3ba

Please find the below pull request to resolve picking up of proper core-isa.h file.
thesofproject/xtensa-overlay#14

@lgirdwood

Copy link
Copy Markdown
Member

Please find the below pull request to resolve picking up of proper core-isa.h file.
thesofproject/xtensa-overlay#14

Now merged. Not sure how CI picks up this update for overlays. @marc-hb @greg-intel what needs done here ?

@lgirdwood

Copy link
Copy Markdown
Member

Please find the below pull request to resolve picking up of proper core-isa.h file.
thesofproject/xtensa-overlay#14

Now merged. Not sure how CI picks up this update for overlays. @marc-hb @greg-intel what needs done here ?

@balakishorepati thinking aloud, force pushing this PR again may cause the container to rebuild and pick up the new overlay. It's worth a try as @marc-hb is out atm.

@lgirdwood

Copy link
Copy Markdown
Member

Please find the below pull request to resolve picking up of proper core-isa.h file.
thesofproject/xtensa-overlay#14

Now merged. Not sure how CI picks up this update for overlays. @marc-hb @greg-intel what needs done here ?

@balakishorepati thinking aloud, rebase and force pushing this PR again may cause the container to rebuild and pick up the new overlay. It's worth a try as @marc-hb is out atm.

@marc-hb

marc-hb commented Aug 8, 2022

Copy link
Copy Markdown
Collaborator

The docker build is unfortunately manual for now, updates are infrequent so it wasn't worth investing in automating it. More in #5073

I'm on vacation but @fredoh9 knows much more than me about this.

@fredoh9

fredoh9 commented Aug 9, 2022

Copy link
Copy Markdown
Contributor Author

I will try with latest xtensa-overlay (including thesofproject/xtensa-overlay#14)

Add AMD/Rembrandt (rmb) gcc toolchain to thesofproject/sof docker image.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
@fredoh9

fredoh9 commented Aug 9, 2022

Copy link
Copy Markdown
Contributor Author

rmb build fine with latest docker build.
20220809 is new tag. Need to do some sanity test with it. Will promote to the latest by the end of today or tomorrow.
Will rebase and update this PR shortly.

@fredoh9
fredoh9 marked this pull request as ready for review August 9, 2022 22:12
@fredoh9
fredoh9 force-pushed the fix/amd_rmb_tool_docker branch from 7802d33 to f474f75 Compare August 9, 2022 22:12
@lgirdwood

Copy link
Copy Markdown
Member

@fredoh9 pls let me know when this can be merged. Thanks.

@fredoh9

fredoh9 commented Aug 10, 2022

Copy link
Copy Markdown
Contributor Author

This is tested fine, can be merged now.

#6119 also ready to merge also.

@lgirdwood
lgirdwood merged commit 4e85dfc into thesofproject:main Aug 10, 2022
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.

4 participants