Hi, Marek has updated and fixed some issues in the work pioneered by Andrey and I have rebased it on top of linus/v4.18-rc2.
Here is the result:
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/an...
I have not tried to test and it is not yet merged into our alpha-version letux-4.18-rc2 but that can easily be done manually:
git checkout -B letux+aess origin/letux-4.18-rc2 git merge origin/work/andrey/aess
If that has no negative side-effects, we can integrate it into the merge process of all future Letux kernels.
Next I think we have to test it and learn how to use it.
I, for example, have no idea how to configure or which additional BLOBs are needed so that aplay works with AESS...
@Andrey: most patches from you are missing a signed-off which makes it impossible to upstream, despite being GPL and open source. For Letux OS we are not that strict, especially for experimental features, but we should consider trying to get it upstream (although it might be difficult for other reasons for AESS).
BR an thanks, Nikolaus
Hi Nikolaus, On Mon, Jun 25, 2018 at 7:46 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi, Marek has updated and fixed some issues in the work pioneered by Andrey and I have rebased it on top of linus/v4.18-rc2.
Here is the result:
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/andrey/aess
Yes it's more less WIP as I just overtook patches from Andrey and fix some outstanding issues. For AESS AFAIK we need some binary blob. Do we know from where we get get it (maybe TI?) This branch i compile only tested because loading on pyra will fail due to the missing firmware. So next step would be to get firmware. Maybe Andrey has some which can be shared? Thanks.
I have not tried to test and it is not yet merged into our alpha-version letux-4.18-rc2 but that can easily be done manually:
git checkout -B letux+aess origin/letux-4.18-rc2 git merge origin/work/andrey/aess
If that has no negative side-effects, we can integrate it into the merge process of all future Letux kernels.
Next I think we have to test it and learn how to use it.
I, for example, have no idea how to configure or which additional BLOBs are needed so that aplay works with AESS...
@Andrey: most patches from you are missing a signed-off which makes it impossible to upstream, despite being GPL and open source. For Letux OS we are not that strict, especially for experimental features, but we should consider trying to get it upstream (although it might be difficult for other reasons for AESS).
BR an thanks, Nikolaus
BR,
marek
On Mon, Jun 25, 2018 at 07:46:08PM +0200, H. Nikolaus Schaller wrote:
Hi, Marek has updated and fixed some issues in the work pioneered by Andrey and I have rebased it on top of linus/v4.18-rc2.
That's great! Thanks Marek and congrats to everyone!
Next I think we have to test it and learn how to use it.
I, for example, have no idea how to configure or which additional BLOBs are needed so that aplay works with AESS...
Yeah. I haven't familiarized much with AESS firmware aspect, Peter Ujfalusi from TI knows it best. Peter has already shared quite some knowledge in "Porting AESS (ABE) kernel driver" thread. Unfortunately web archive of kernel@pyra-handheld.com ML is not working well - Marek, do you have that thread in your local archives?
@Andrey: most patches from you are missing a signed-off which makes it impossible to upstream, despite being GPL and open source. For Letux OS we are not that strict, especially for experimental features, but we should consider trying to get it upstream (although it might be difficult for other reasons for AESS).
Meh, I'm fine with whoever just taking the diff and signing with their name. All I was doing, IIRC, is porting bits of code from TI tree, so it's not like I'm exactly the author. Also commits I produces are not exactly in the shape Linux upstream maints would accept.
Hi Andrey, On Mon, Jun 25, 2018 at 8:48 PM Andrey Utkin andrey_utkin@fastmail.com wrote:
On Mon, Jun 25, 2018 at 07:46:08PM +0200, H. Nikolaus Schaller wrote:
Hi, Marek has updated and fixed some issues in the work pioneered by Andrey and I have rebased it on top of linus/v4.18-rc2.
That's great! Thanks Marek and congrats to everyone!
Next I think we have to test it and learn how to use it.
I, for example, have no idea how to configure or which additional BLOBs are needed so that aplay works with AESS...
Yeah. I haven't familiarized much with AESS firmware aspect, Peter Ujfalusi from TI knows it best. Peter has already shared quite some knowledge in "Porting AESS (ABE) kernel driver" thread. Unfortunately web archive of kernel@pyra-handheld.com ML is not working well - Marek, do you have that thread in your local archives?
Nope unfortunately I became subscriber last week only :(. DO you have binary blob so we can test at least some parts? Thanks.
@Andrey: most patches from you are missing a signed-off which makes it impossible to upstream, despite being GPL and open source. For Letux OS we are not that strict, especially for experimental features, but we should consider trying to get it upstream (although it might be difficult for other reasons for AESS).
Meh, I'm fine with whoever just taking the diff and signing with their name. All I was doing, IIRC, is porting bits of code from TI tree, so it's not like I'm exactly the author. Also commits I produces are not exactly in the shape Linux upstream maints would accept.
BR,
marek
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051.html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter.
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Hi,
TI had a demonstration Linux setup for the OMAP5... it was some Ubuntu 12.04 with an older 3.xx kernel.
This has been used for demonstration so the binary blob SHOULD be somewhere inside that OS...
I'm not sure their Linux setup is available somewhere - as they removed all OMAP5 stuff from their pages - but maybe someone here still has it and can check.
Apart from that, the OMAP5 seems to have a compatibility with the OMAP4 in quite a few things, so the binary blob from there might work as well.
There seems to be some information about how to create the firmware files here: https://github.com/intel/parameter-framework-samples/blob/master/omap-t utorial/README.md
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us: https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051. html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter. _______________________________________________ Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
Hi Michael, On Tue, Jun 26, 2018 at 1:02 AM Michael Mrozek EvilDragon@openpandora.org wrote:
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us: https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Cool. Thanks for sharing. I'll check.
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051. html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter. _______________________________________________ Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
-- Mit freundlichen Grüßen,
Michael Mrozek
OpenPandora GmbH Geschäftsführer: Michael Mrozek
Schäffbräustr. 11 85049 Ingolstadt Deutschland Tel.: 0841 / 990 5548 http://www.openpandora.de/ HRB 4879, Amtsgericht Ingolstadt
eMail: mrozek@openpandora.org
BR,
marek
Hi Peter,
sorry for bothering you directly. I'm working on (continue on adding AESS support for pyra). Andrey mentioned thread [0] where you shared AESS firmware. I tried to fetch it but unfortunately repo seems to be down. Can you please it again (if possible). Many thanks. On Tue, Jun 26, 2018 at 8:14 AM Belisko Marek marek.belisko@gmail.com wrote:
Hi Michael, On Tue, Jun 26, 2018 at 1:02 AM Michael Mrozek EvilDragon@openpandora.org wrote:
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us: https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Cool. Thanks for sharing. I'll check.
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051. html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter.
BR,
marek [0]- https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Hm, repo seems to work perfectly fine here. I just grabbed the firmware and attached it here.
On 27 June 2018 20:52:00 CEST, Belisko Marek marek.belisko@gmail.com wrote:
Hi Peter,
sorry for bothering you directly. I'm working on (continue on adding AESS support for pyra). Andrey mentioned thread [0] where you shared AESS firmware. I tried to fetch it but unfortunately repo seems to be down. Can you please it again (if possible). Many thanks. On Tue, Jun 26, 2018 at 8:14 AM Belisko Marek marek.belisko@gmail.com wrote:
Hi Michael, On Tue, Jun 26, 2018 at 1:02 AM Michael Mrozek EvilDragon@openpandora.org wrote:
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us:
https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Cool. Thanks for sharing. I'll check.
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to
work
around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051.
html
Also just search for all mentions of AESS, ABE in the whole
archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts?
Thanks.
I don't see any firmware files around, also I never really knew
which
to use. My vague understanding was that it depends which branch of
TI
kernel you use. So again, best of luck reading the archives and bugging Peter.
BR,
marek [0]- https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
BR,
marek On Fri, Jun 29, 2018 at 8:46 AM Michael Mrozek EvilDragon@openpandora.org wrote:
Hm, repo seems to work perfectly fine here. I just grabbed the firmware and attached it here.
On 27 June 2018 20:52:00 CEST, Belisko Marek marek.belisko@gmail.com wrote:
Hi Peter,
sorry for bothering you directly. I'm working on (continue on adding AESS support for pyra). Andrey mentioned thread [0] where you shared AESS firmware. I tried to fetch it but unfortunately repo seems to be down. Can you please it again (if possible). Many thanks. On Tue, Jun 26, 2018 at 8:14 AM Belisko Marek marek.belisko@gmail.com wrote:
Hi Michael, On Tue, Jun 26, 2018 at 1:02 AM Michael Mrozek EvilDragon@openpandora.org wrote:
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us: https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Cool. Thanks for sharing. I'll check.
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051. html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter.
BR,
marek [0]- https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
-- Mit freundlichen Grüßen / Greetings,
Michael Mrozek
OpenPandora GmbH Geschäftsführer / CEO: Michael Mrozek
Schäffbräustr. 11 85049 Ingolstadt Deutschland / Germany Tel.: +49 841 / 990 5548 http://www.openpandora.de/ HRB 4879, Amtsgericht Ingolstadt
eMail: mrozek@openpandora.org
Hi Marek,
Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
BR, Nikolaus
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
BR,
marek
Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
BR, Nikolaus
Hi Nikolaus, On Tue, Jul 3, 2018 at 10:10 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
Done.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
BR,
marek
On Tue, Jul 3, 2018 at 10:13 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus, On Tue, Jul 3, 2018 at 10:10 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
Done.
Looking at sound/soc/omap/aess it looks like we must add ti,omap4-aess property to dts + some resources to have it working. I think I overlooked in my previous test run.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
BR,
marek
BR,
marek
Hi Marek,
Am 03.07.2018 um 22:16 schrieb Belisko Marek marek.belisko@gmail.com:
On Tue, Jul 3, 2018 at 10:13 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus, On Tue, Jul 3, 2018 at 10:10 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Michael,
hmm strange but good that it works for you. I'll try to load driver with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
Done.
Thanks!
I have looked into what happened. First of all I did a wrong fixup of a merge conflict so that I added code back to letux-4.18-rc1 which was removed upstream. So the compiler stumbled about some missing functions.
But the bigger problem is that struct snd_soc_platform * has gone and is to be replaced by struct snd_soc_component * and associated helper functions.
I have started to rework this (hopefully without breaking things), but it is not complete (I just touched 3 or 4 files and not all relevant for aess) and it still does not compile.
If you or anyone else on this list has more time than me, please can you try to fix the code?
Here are my patches (on top of v4.18-rc2):
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/an...
Looking at sound/soc/omap/aess it looks like we must add ti,omap4-aess property to dts + some resources to have it working. I think I overlooked in my previous test run.
Ah, yes, that is reasonable. Like GPU needs some DT records so that the driver can access the real hardware.
This likely also answers a question what happens if we have the AESS driver on an OMAP3 system... It will simply be ignored if it is not in DT.
BR, Nikolaus
Hi Nikolaus, On Wed, Jul 4, 2018 at 10:51 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 03.07.2018 um 22:16 schrieb Belisko Marek marek.belisko@gmail.com:
On Tue, Jul 3, 2018 at 10:13 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus, On Tue, Jul 3, 2018 at 10:10 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
> Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com: > > Hi Michael, > > hmm strange but good that it works for you. I'll try to load driver > with this firmware. I'll share results then.
I now tried to build a kernel with AESS driver, but it failed.
The reason seems that some functions have been renamed in 4.18-rc1ff Mainly codec -> component.
In this case snd_soc_component_to_platform(component) has gone...
So it looks like we have to upgrade
http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3...
Which kernel did you try?
I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
Done.
Thanks!
I have looked into what happened. First of all I did a wrong fixup of a merge conflict so that I added code back to letux-4.18-rc1 which was removed upstream. So the compiler stumbled about some missing functions.
But the bigger problem is that struct snd_soc_platform * has gone and is to be replaced by struct snd_soc_component * and associated helper functions.
I have started to rework this (hopefully without breaking things), but it is not complete (I just touched 3 or 4 files and not all relevant for aess) and it still does not compile.
I think in 4.17 something also changed to snd_soc_component and I have already fixups for that in my branch. I would like to try it on my branch first (but not sure how to fill DT yet) and then if it will work we can bump it (to avoid so many things in once ;))
If you or anyone else on this list has more time than me, please can you try to fix the code?
Here are my patches (on top of v4.18-rc2):
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/an...
Looking at sound/soc/omap/aess it looks like we must add ti,omap4-aess property to dts + some resources to have it working. I think I overlooked in my previous test run.
Ah, yes, that is reasonable. Like GPU needs some DT records so that the driver can access the real hardware.
This likely also answers a question what happens if we have the AESS driver on an OMAP3 system... It will simply be ignored if it is not in DT.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
BR,
marek
Am 04.07.2018 um 11:32 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Wed, Jul 4, 2018 at 10:51 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 03.07.2018 um 22:16 schrieb Belisko Marek marek.belisko@gmail.com:
On Tue, Jul 3, 2018 at 10:13 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus, On Tue, Jul 3, 2018 at 10:10 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote: > > Hi Marek, > >> Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com: >> >> Hi Michael, >> >> hmm strange but good that it works for you. I'll try to load driver >> with this firmware. I'll share results then. > > I now tried to build a kernel with AESS driver, but it failed. > > The reason seems that some functions have been renamed in 4.18-rc1ff > Mainly codec -> component. > > In this case snd_soc_component_to_platform(component) has gone... > > So it looks like we have to upgrade > > http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3... > > Which kernel did you try? I tried with 4.17 version (I have pushed work/andrey/aess branch based on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
Done.
Thanks!
I have looked into what happened. First of all I did a wrong fixup of a merge conflict so that I added code back to letux-4.18-rc1 which was removed upstream. So the compiler stumbled about some missing functions.
But the bigger problem is that struct snd_soc_platform * has gone and is to be replaced by struct snd_soc_component * and associated helper functions.
I have started to rework this (hopefully without breaking things), but it is not complete (I just touched 3 or 4 files and not all relevant for aess) and it still does not compile.
I think in 4.17 something also changed to snd_soc_component and I have already fixups for that in my branch. I would like to try it on my branch first (but not sure how to fill DT yet) and then if it will work we can bump it (to avoid so many things in once ;))
Yes, indeed. We should finally mix things back into one branch. If we are lucky we can cherry-pick everything...
But for the moment it is indeed the best if you try to fix the DT with 4.17 and try to make it show some user-space activities :)
It should be orthogonal to driver code anyways, i.e. should not need to be changed by updating to 4.18-rc.
If you or anyone else on this list has more time than me, please can you try to fix the code?
Here are my patches (on top of v4.18-rc2):
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/an...
Looking at sound/soc/omap/aess it looks like we must add ti,omap4-aess property to dts + some resources to have it working. I think I overlooked in my previous test run.
Ah, yes, that is reasonable. Like GPU needs some DT records so that the driver can access the real hardware.
This likely also answers a question what happens if we have the AESS driver on an OMAP3 system... It will simply be ignored if it is not in DT.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
BR,
marek
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #6 SMP PREEMPT Thu Jul 5 10:47:45 CEST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Pyra-Handheld-V5.1.2ff [ 0.000000] Malformed early option 'console' [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 16 MiB at 0xfd800000 [ 0.000000] OMAP4: Map 0xfee00000 to (ptrval) for dram barrier [ 0.000000] On node 0 totalpages: 519680 [ 0.000000] Normal zone: 1536 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 323072 pages, LIFO batch:31 [ 0.000000] OMAP5432 ES2.0 [ 0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s39948 r8192 d21492 u69632 [ 0.000000] pcpu-alloc: s39948 r8192 d21492 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 518144 [ 0.000000] Kernel command line: console= root=PARTUUID=a2588f0a-02 rw rootfstype=ext4 rootwait console=ttyO2,115200n8 vram=12M omapfb.vram=0:8M,1:4M omapfb.rotate_type=0 omapdss.def_disp=lcd rootwait twl4030_charger.allow_usb=1 log_buk [ 0.000000] log_buf_len: 8388608 bytes [ 0.000000] early log buf free: 63892(97%) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 2025576K/2078720K available (6532K kernel code, 650K rwdata, 1820K rodata, 1024K init, 220K bss, 36760K reserved, 16384K cma-reserved, 1275904K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7525 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 651 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 221 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] Tasks RCU enabled. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] OMAP clockevent source: timer1 at 32768 Hz [ 0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16ac02862, max_idle_ns: 440795202218 ns [ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511085ns [ 0.000017] Switching to timer-based delay loop, resolution 162ns [ 0.000918] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000927] OMAP clocksource: 32k_counter at 32768 Hz [ 0.002357] Console: colour dummy device 80x30 [ 0.002378] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.28 BogoMIPS (lpj=61440) [ 0.002393] pid_max: default: 32768 minimum: 301 [ 0.002484] Security Framework initialized [ 0.002537] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.002550] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.003030] CPU: Testing write buffer coherency: ok [ 0.003220] /cpus/cpu@0 missing clock-frequency property [ 0.003235] /cpus/cpu@1 missing clock-frequency property [ 0.003247] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.049934] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.059931] Hierarchical SRCU implementation. [ 0.079960] smp: Bringing up secondary CPUs ... [ 0.130304] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.130394] smp: Brought up 1 node, 2 CPUs [ 0.130406] SMP: Total of 2 processors activated (24.57 BogoMIPS). [ 0.130414] CPU: All CPU(s) started in HYP mode. [ 0.130421] CPU: Virtualization extensions available. [ 0.131401] devtmpfs: initialized [ 0.142365] random: get_random_u32 called from bucket_table_alloc+0x150/0x1a0 with crng_init=0 [ 0.142895] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0 [ 0.143252] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.143268] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.143723] pinctrl core: initialized pinctrl subsystem [ 0.144671] NET: Registered protocol family 16 [ 0.146441] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.147217] omap_hwmod: l3_main_3 using broken dt data from ocp [ 0.147837] omap_hwmod: l3_main_2 using broken dt data from ocp [ 0.208166] audit: initializing netlink subsys (disabled) [ 0.208271] audit: type=2000 audit(0.200:1): state=initialized audit_enabled=0 res=1 [ 0.209778] cpuidle: using governor menu [ 0.218782] OMAP GPIO hardware version 0.1 [ 0.223621] GPIO line 234 (gpio8_234/msecure) hogged as output/high [ 0.224127] platform 50000000.gpmc: Cannot lookup hwmod 'gpmc' [ 0.224276] omap-gpmc 50000000.gpmc: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info [ 0.224288] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 0.242454] No ATAGs? [ 0.242518] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.242531] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.242935] OMAP DMA hardware revision 0.0 [ 0.273635] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported) [ 0.275613] vsys_cobra: supplied by vmain [ 0.276442] reg-fixed-voltage fixedregulator-mmcsdio: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_wlan_pins, deferring probe [ 0.276751] reg-fixed-voltage bt_en: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_bt_pins, deferring probe [ 0.281245] omap-iommu 4a066000.mmu: 4a066000.mmu registered [ 0.281515] omap-iommu 55082000.mmu: 55082000.mmu registered [ 0.282828] vgaarb: loaded [ 0.283344] SCSI subsystem initialized [ 0.283612] libata version 3.00 loaded. [ 0.284056] usbcore: registered new interface driver usbfs [ 0.284143] usbcore: registered new interface driver hub [ 0.284243] usbcore: registered new device driver usb [ 0.284480] usb_phy_generic hsusb2_phy: hsusb2_phy supply vcc not found, using dummy regulator [ 0.285379] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c1_pins, deferring probe [ 0.285415] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c2_pins, deferring probe [ 0.285445] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c3_pins, deferring probe [ 0.285474] omap_i2c 4807a000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c4_pins, deferring probe [ 0.285502] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c5_pins, deferring probe [ 0.286344] Advanced Linux Sound Architecture Driver Initialized. [ 0.287591] clocksource: Switched to clocksource arch_sys_counter [ 0.333790] VFS: Disk quotas dquot_6.6.0 [ 0.333852] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.344707] NET: Registered protocol family 2 [ 0.345178] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.345201] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.345266] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.345396] TCP: Hash tables configured (established 8192 bind 8192) [ 0.345477] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.345509] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.345682] NET: Registered protocol family 1 [ 0.345709] PCI: CLS 0 bytes, default 64 [ 0.398189] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 0.398379] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.400623] Initialise system trusted keyrings [ 0.400752] workingset: timestamp_bits=30 max_order=19 bucket_order=0 [ 0.401038] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.402588] Key type asymmetric registered [ 0.402599] Asymmetric key parser 'x509' registered [ 0.402648] bounce: pool size: 64 pages [ 0.402734] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.402746] io scheduler noop registered [ 0.402754] io scheduler deadline registered [ 0.402789] io scheduler cfq registered (default) [ 0.402798] io scheduler mq-deadline registered [ 0.402805] io scheduler kyber registered [ 0.406343] ti-pipe3 4a096000.phy: can't get syscon-pllreset, sata dpll won't idle [ 0.407101] pinctrl-single 4a002840.pinmux: 219 pins, size 438 [ 0.407562] pinctrl-single 4ae0c840.pinmux: 30 pins, size 60 [ 0.414997] omap_uart 4806c000.serial: no wakeirq for uart1 [ 0.415095] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 46, base_baud = 3000000) is a OMAP UART1 [ 0.415322] serial serial0: tty port ttyO1 registered [ 0.415571] 48020000.serial: ttyO2 at MMIO 0x48020000 (irq = 47, base_baud = 3000000) is a OMAP UART2 [ 1.354552] console [ttyO2] enabled [ 1.358738] omap_uart 4806e000.serial: no wakeirq for uart3 [ 1.364646] 4806e000.serial: ttyO3 at MMIO 0x4806e000 (irq = 48, base_baud = 3000000) is a OMAP UART3 [ 1.374806] omap_uart 48068000.serial: no wakeirq for uart5 [ 1.380731] 48068000.serial: ttyO5 at MMIO 0x48068000 (irq = 49, base_baud = 3000000) is a OMAP UART5 [ 1.398638] brd: module loaded [ 1.406457] loop: module loaded [ 1.410020] txs_probe() [ 1.412635] txs_probe() initial = 0 [ 1.416284] txs_probe() probed [ 1.421205] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled [ 1.428261] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode [ 1.437179] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst [ 1.447846] scsi host0: ahci [ 1.451108] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 77 [ 1.460213] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.468848] libphy: Fixed MDIO Bus: probed [ 1.475569] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.482423] ehci-pci: EHCI PCI platform driver [ 1.487152] usbcore: registered new interface driver usb-storage [ 1.493642] mousedev: PS/2 mouse device common for all mice [ 1.500197] i2c /dev entries driver [ 1.503921] IR NEC protocol handler initialized [ 1.508675] IR RC5(x/sz) protocol handler initialized [ 1.513958] IR RC6 protocol handler initialized [ 1.518703] IR JVC protocol handler initialized [ 1.523440] IR Sony protocol handler initialized [ 1.528282] IR SANYO protocol handler initialized [ 1.533197] IR Sharp protocol handler initialized [ 1.538131] IR MCE Keyboard/mouse protocol handler initialized [ 1.544229] IR XMP protocol handler initialized [ 1.548972] Driver for 1-wire Dallas network protocol. [ 1.557849] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec [ 1.566844] sdhci: Secure Digital Host Controller Interface driver [ 1.573428] sdhci: Copyright(c) Pierre Ossman [ 1.604795] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 1.609742] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 1.625162] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.631814] ledtrig-cpu: registered to indicate activity on CPUs [ 1.639647] usbcore: registered new interface driver usbhid [ 1.645584] usbhid: USB HID core driver [ 1.649751] ashmem: initialized [ 1.654893] oprofile: using timer interrupt. [ 1.659748] Initializing XFRM netlink socket [ 1.664247] NET: Registered protocol family 17 [ 1.668944] NET: Registered protocol family 15 [ 1.673612] Key type dns_resolver registered [ 1.678521] omap_vc_init_channel: No PMIC info for vdd_core [ 1.684375] omap_vp_init: No PMIC info for vdd_core [ 1.689558] omap_vc_init_channel: No PMIC info for vdd_mm [ 1.695245] omap_vp_init: No PMIC info for vdd_mm [ 1.700201] omap_vc_init_channel: No PMIC info for vdd_mpu [ 1.705969] omap_vp_init: No PMIC info for vdd_mpu [ 1.711034] Power Management for TI OMAP4+ devices. [ 1.716406] ThumbEE CPU extension supported. [ 1.720910] Registering SWP/SWPB emulation handler [ 1.725983] SmartReflex Class3 initialized [ 1.730738] Loading compiled-in X.509 certificates [ 1.737938] mmc0: new high speed MMC card at address 0001 [ 1.744222] mmcblk0: mmc0:0001 HBG4a2 29.1 GiB [ 1.749552] mmcblk0boot0: mmc0:0001 HBG4a2 partition 1 4.00 MiB [ 1.756312] mmcblk0boot1: mmc0:0001 HBG4a2 partition 2 4.00 MiB [ 1.762810] mmcblk0rpmb: mmc0:0001 HBG4a2 partition 3 4.00 MiB, chardev (248:0) [ 1.762958] ------------[ cut here ]------------ [ 1.775437] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 1.785528] Modules linked in: [ 1.789018] CPU: 1 PID: 779 Comm: kworker/1:1 Not tainted 4.17.0-letux+ #6 [ 1.791176] ata1: SATA link down (SStatus 0 SControl 300) [ 1.796225] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 1.808168] Workqueue: events deferred_probe_work_func [ 1.813568] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 1.821688] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 1.829264] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 1.836467] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 1.844403] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 1.853983] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 1.863749] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 1.873328] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 1.883352] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 1.893657] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 1.903595] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 1.912174] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 1.920394] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 1.929518] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 1.938461] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 1.947122] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 1.955695] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 1.963988] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 1.972114] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 1.981326] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 1.991171] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.001019] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.010048] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.018710] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.028015] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.036956] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.045614] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.054189] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.063670] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.073253] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.082558] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.091767] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.099515] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.107081] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.112373] 3fa0: 00000000 00000000 00000000 00000000 [ 2.120945] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.129511] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.136511] ---[ end trace 4839ad0f8521e5f5 ]--- [ 2.141409] palmas 0-0048: Irq flag is 0x00000000 [ 2.172703] palmas 0-0048: Muxing GPIO 3, PWM 0, LED 0 [ 2.185456] palmas-rtc 48070000.i2c:palmas@48:rtc: rtc core: registered 48070000.i2c:palmas@48:rtc as rtc0 [ 2.198486] random: fast init done [ 2.202532] SMPS123: supplied by regulator-dummy [ 2.209008] SMPS45: supplied by regulator-dummy [ 2.215347] SMPS6: supplied by vsys_cobra [ 2.221036] SMPS7: supplied by vsys_cobra [ 2.226683] SMPS8: supplied by vsys_cobra [ 2.232468] SMPS9: supplied by vsys_cobra [ 2.236984] smps9: Bringing 0uV into 2100000-2100000uV [ 2.243713] SMPS10_OUT2: supplied by regulator-dummy [ 2.250370] SMPS10_OUT1: supplied by regulator-dummy [ 2.256534] LDO1: supplied by vsys_cobra [ 2.261341] ldo1: Bringing 0uV into 1800000-1800000uV [ 2.267870] LDO2: supplied by vsys_cobra [ 2.274689] ldo4: Bringing 0uV into 1800000-1800000uV [ 2.281589] LDO5: supplied by vsys_cobra [ 2.290333] LDO7: supplied by vsys_cobra [ 2.294829] ldo7: Bringing 0uV into 2000000-2000000uV [ 2.301981] LDO8: supplied by vsys_cobra [ 2.307824] LDO9: supplied by vmmcsd_fixed [ 2.314201] LDOLN: supplied by vsys_cobra [ 2.320294] LDOUSB: supplied by vsys_cobra [ 2.328395] ------------[ cut here ]------------ [ 2.333240] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 2.343386] Modules linked in: [ 2.346595] CPU: 1 PID: 779 Comm: kworker/1:1 Tainted: G W 4.17.0-letux+ #6 [ 2.355256] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 2.361581] Workqueue: events deferred_probe_work_func [ 2.366976] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 2.375094] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 2.382697] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 2.389913] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 2.397849] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 2.407422] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 2.417183] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 2.426752] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 2.436779] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 2.447079] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 2.457017] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 2.465597] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 2.473818] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.482945] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.491884] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.500546] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.509112] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 2.517418] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 2.525540] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 2.534750] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 2.544603] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.554454] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.563495] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.572173] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.581472] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.590402] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.599061] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.607623] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.617109] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.626683] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.635985] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.645204] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.652965] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.660529] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.665824] 3fa0: 00000000 00000000 00000000 00000000 [ 2.674397] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.682973] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.689932] ---[ end trace 4839ad0f8521e5f6 ]--- [ 2.697772] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz [ 2.705095] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz [ 2.712253] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz [ 2.719143] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz [ 2.725919] vdds_1v8_main: supplied by smps7 [ 2.760667] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz [ 2.798741] omap_hsmmc 480ad000.mmc: allocated mmc-pwrseq [ 2.846114] mmc1: host does not support reading read-only switch, assuming write-enable [ 2.857550] mmc1: new high speed SDHC card at address 59b4 [ 2.865266] mmcblk1: mmc1:59b4 USD 7.51 GiB [ 2.873057] mmcblk1: p1 p2 [ 2.925488] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 2.930616] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 2.943377] omap_hsmmc 480ad000.mmc: card claims to support voltages below defined range [ 2.969558] mmc2: new high speed SDIO card at address 0001 [ 3.068662] ldo3: supplied by vdds_1v8_main [ 3.074017] ldo4: supplied by vdds_1v8_main [ 3.079670] ldo6: supplied by vdds_1v8_main [ 3.391600] input: user-button as /devices/platform/user-button/input/input0 [ 3.405783] input: pyra-gpio-keys@1 as /devices/platform/pyra-gpio-keys@1/input/input1 [ 3.417272] input: pyra-gpio-keys@2 as /devices/platform/pyra-gpio-keys@2/input/input2 [ 3.427228] palmas-rtc 48070000.i2c:palmas@48:rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801) [ 3.437776] sr_init: No PMIC hook to init smartreflex [ 3.444171] vmmcsdio_fixed: disabling [ 3.448032] bt_power: disabling [ 3.452942] ldo3: disabling [ 3.456602] ldo8: disabling [ 3.460046] ALSA device list: [ 3.463154] No soundcards found. [ 3.578406] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 3.587140] VFS: Mounted root (ext4 filesystem) on device 179:26. [ 3.607190] devtmpfs: mounted [ 3.611174] Freeing unused kernel memory: 1024K Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 4.824000] systemd-udevd[1263]: starting version 215 . ok [....] Synthesizing the initial hotplug events...[ 4.882724] random: udevd: uninitialized urandom read (16 bytes read) [ 4.892487] random: udevd: uninitialized urandom read (16 bytes read) done. [....] Waiting for /dev to be fully populated...[ 5.118688] usb3503 0-0008: usb3503_probe [ 5.129432] usb3503 0-0008: reset gpio state 0 [ 5.140513] usb3503 0-0008: usb3503_connect [ 5.146492] usb3503 0-0008: usb3503_reset 1 [ 5.152785] bmp280 2-0077: 2-0077 supply vddd not found, using dummy regulator [ 5.160567] bmp280 2-0077: 2-0077 supply vdda not found, using dummy regulator [ 5.169889] usb3503 0-0008: SP_ILOCK failed (-121) [ 5.176119] usb3503 0-0008: usb3503_probe: probed in hub mode [ 5.184460] palmas_pwrbutton 48070000.i2c:palmas@48:palmas_power_button: h/w controlled shutdown duration=8 seconds [ 5.197816] input: palmas_pwron as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:palmas@48:palmas_power_button/input/input3 [ 5.216066] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.223219] bmp280: probe of 2-0077 failed with error -121 [ 5.230753] bmp280 2-0076: 2-0076 supply vddd not found, using dummy regulator [ 5.238412] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.245285] bmp280 2-0076: 2-0076 supply vdda not found, using dummy regulator [ 5.255384] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.261823] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.268887] bmp280: probe of 2-0076 failed with error -121 [ 5.275765] bno055 2-0029: failed to switch to register page 0 [ 5.282387] bno055: probe of 2-0029 failed with error -121 [ 5.288331] input: tca8418 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0034/input/input4 [ 5.298289] bmc150_magn_i2c 2-0012: Failed to bring up device from suspend mode [ 5.307167] bmc150_magn_i2c: probe of 2-0012 failed with error -121 [ 5.321761] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.328863] as5013 1-0040: ID code: 0c [ 5.332803] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.339748] as5013 1-0040: ID version: 0d [ 5.344249] as5013 1-0040: silicon revision: 00 [ 5.346983] bmc150_accel_i2c 2-0010: Error: Reading chip id [ 5.355013] bmc150_accel_i2c: probe of 2-0010 failed with error -121 [ 5.361731] as5013 1-0040: control: f1 [ 5.362005] input: TSC2007 Touchscreen as /devices/platform/44000000.ocp/4807a000.i2c/i2c-3/3-0048/input/input5 [ 5.365795] input: nub0 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0040/input/input6 [ 5.386322] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.394748] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.402457] ts3a227e 4-003b: Cannot request irq 0 (-22) [ 5.402943] as5013 1-0040: probe 40, gpio -2, irq 0, "as5013" [ 5.408123] ts3a227e: probe of 4-003b failed with error -22 [ 5.419896] crtouch_drv 3-0049: failed to read size of screen [ 5.426214] crtouch_drv: probe of 3-0049 failed with error -5 [ 5.426221] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.439335] ina2xx 1-004f: error configuring the device: -121 [ 5.445385] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.453234] bq2429x_charger 1-006b: invalid det gpio: -2 [ 5.459356] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.465901] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.482082] bq24296_get_vsys_voltage(0) [ 5.491770] omap-dwc3 4a020000.omap_dwc3: vbus init failed [ 5.506611] => 3500000 uV [ 5.515405] bq24296_get_vsys_voltage(0) [ 5.523865] => 3500000 uV [ 5.532031] bq24296_get_otg_voltage(1) [ 5.537501] => 4998000 uV [ 5.541774] bq24296_get_otg_current_limit(1) [ 5.548011] bq24296_get_otg_voltage(1) [ 5.553591] => 4998000 uV [ 5.559751] bt_power: supplied by vsys [ 5.564586] input: twl6040:vibrator as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-004b/twl6040-vibra/input/input8 [ 5.578467] bq27xxx_battery_setup [ 5.585615] bq27xxx_battery_setup: dm_regs=(ptrval) [ 5.602353] (NULL device *): hwmon: 'bq27421-0' is not a valid name attribute, please fix [ 5.613334] bq27xxx_battery_settings [ 5.617777] bq27xxx_battery_set_config [ 5.625071] bq27xxx_battery_unseal [ 5.640011] bq27xxx_battery_update_dm_block [ 5.645549] bq27xxx: di->opts=1c [ 5.650302] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.655668] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.662890] bq27xxx-battery 1-0055: update design-capacity from 1340 to 6000 [ 5.672909] bq27xxx_battery_update_dm_block [ 5.678920] bq27xxx: di->opts=1c [ 5.683892] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.689736] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.697913] bq27xxx-battery 1-0055: update design-energy from 4960 to 22200 [ 5.706821] bq27xxx_battery_update_dm_block [ 5.713142] bq27xxx-battery 1-0055: terminate-voltage has 3200 [ 5.720928] bq27xxx_battery_cfgupdate_priv [ 5.753486] ehci-omap: OMAP-EHCI Host Controller driver [ 5.774041] bq27xxx_battery_cfgupdate_priv [ 5.810278] emif_probe: error getting device data [ 5.815249] emif_probe: error getting device data [ 5.835797] aess aess: no resource: dmem [ 5.842029] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.854146] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.866406] (NULL device *): hwmon: 'pyra-battery' is not a valid name attribute, please fix [ 5.876394] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.877720] ehci-omap 4a064c00.ehci: EHCI Host Controller [ 5.886524] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.901652] ehci-omap 4a064c00.ehci: new USB bus registered, assigned bus number 1 [ 5.910185] iio_charge:0 [ 5.912863] omapdss: unknown parameter 'def_disp' ignored [ 5.918894] ------------[ cut here ]------------ [ 5.923746] WARNING: CPU: 1 PID: 1302 at mm/vmalloc.c:1525 load_module+0x19a4/0x1f58 [ 5.932840] mm/pgtable-generic.c:40: bad pmd 8001141e. [ 5.933566] Unable to handle kernel paging request at virtual address bf223180 [ 5.938388] Trying to vfree() nonexistent vm area ((ptrval)) [ 5.945844] pgd = (ptrval) [ 5.951817] mm/pgtable-generic.c:40: bad pmd 8021940e. [ 5.954624] [bf223180] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 5.960051] Unable to handle kernel paging request at virtual address bf1a9148 [ 5.966597] Internal error: Oops: 7 [#1] PREEMPT SMP ARM [ 5.974203] mm/pgtable-generic.c:40: bad pmd 8041940e. [ 5.979719] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 5.979735] Unable to handle kernel paging request at virtual address bf235040 [ 5.985120] Modules linked in: [ 5.992776] pgd = (ptrval) [ 5.992780] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.000389] pgd = (ptrval) [ 6.003555] Internal error: Oops: 7 [#2] PREEMPT SMP ARM [ 6.006392] [bf1a9148] *pgd=aca42811 [ 6.012948] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.012963] Unable to handle kernel paging request at virtual address bf235040 [ 6.015793] mm/pgtable-generic.c:40: bad pmd 8061940e. [ 6.021349] pgd = (ptrval) [ 6.021352] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.021367] Internal error: Oops: 7 [#3] PREEMPT SMP ARM [ 6.021370] Modules linked in: [ 6.025126] mm/pgtable-generic.c:40: bad pmd 8081941e. [ 6.032765] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.032776] Unable to handle kernel paging request at virtual address bf235040 [ 6.032780] pgd = (ptrval) [ 6.040360] connector_hdmi(+) [ 6.045721] [bf235040] *pgd=acce0811, *pte=00000000 [ 6.048571] omapdss(+) [ 6.055117] , *ppte=00000000 [ 6.060693] generic_adc_battery [ 6.069271] omapdss_base [ 6.075288] Internal error: Oops: 7 [#4] PREEMPT SMP ARM [ 6.082849] pwm_bl [ 6.085665] Modules linked in: [ 6.088870] cec [ 6.093963] connector_hdmi(+) [ 6.096513] snd_soc_omap_aess ehci_omap(+) [ 6.099531] omapdss(+) generic_adc_battery [ 6.099539] Unable to handle kernel paging request at virtual address bf235040 [ 6.099543] pgd = (ptrval) [ 6.102919] wlcore_sdio(+) [ 6.105654] [bf235040] *pgd=acce0811 [ 6.111222] dwc3_omap [ 6.113403] , *pte=00000000 [ 6.116593] snd_soc_ts3a227e [ 6.118515] , *ppte=00000000 [ 6.118523] Internal error: Oops: 7 [#5] PREEMPT SMP ARM [ 6.118526] Modules linked in: [ 6.121723] leds_is31fl319x [ 6.126093] connector_hdmi(+) [ 6.130483] crtouch_mt [ 6.138019] omapdss(+) generic_adc_battery [ 6.138027] Unable to handle kernel paging request at virtual address bf235040 [ 6.138031] pgd = (ptrval) [ 6.140864] bq27xxx_battery_i2c(+) [ 6.143788] [bf235040] *pgd=acce0811 [ 6.147527] tsc2007 [ 6.149986] , *pte=00000000, *ppte=00000000 [ 6.149998] Internal error: Oops: 7 [#6] PREEMPT SMP ARM [ 6.152917] bmp280_spi [ 6.156021] Modules linked in: [ 6.159048] bq27xxx_battery [ 6.164598] connector_hdmi(+) [ 6.167800] bq2429x_charger [ 6.170803] omapdss(+) [ 6.173995] ina2xx [ 6.176548] generic_adc_battery [ 6.176554] Unable to handle kernel paging request at virtual address bf235040 [ 6.180936] gpio_twl6040 [ 6.188477] pgd = (ptrval) [ 6.188481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.191321] as5013(+) [ 6.194976] Internal error: Oops: 7 [#7] PREEMPT SMP ARM [ 6.198722] tca8418_keypad [ 6.200993] Modules linked in: [ 6.205374] twl6040_vibra [ 6.210932] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.210944] Unable to handle kernel paging request at virtual address bf235040 [ 6.213501] bmc150_magn_i2c [ 6.216693] pgd = (ptrval) [ 6.216697] [bf235040] *pgd=acce0811 [ 6.219716] bmc150_accel_i2c [ 6.222896] , *pte=00000000 [ 6.225906] palmas_pwrbutton [ 6.228457] , *ppte=00000000 [ 6.228465] Internal error: Oops: 7 [#8] PREEMPT SMP ARM [ 6.228469] Modules linked in: [ 6.230661] bmc150_magn [ 6.234036] connector_hdmi(+) [ 6.241618] bmc150_accel_core [ 6.244347] omapdss(+) [ 6.247176] Unable to handle kernel paging request at virtual address bf11b080 [ 6.253724] generic_adc_battery [ 6.253730] Unable to handle kernel paging request at virtual address bf235040 [ 6.253733] pgd = (ptrval) [ 6.253737] [bf235040] *pgd=acce0811 [ 6.256206] pgd = (ptrval) [ 6.261765] , *pte=00000000, *ppte=00000000 [ 6.261779] Internal error: Oops: 7 [#9] PREEMPT SMP ARM [ 6.264700] [bf11b080] *pgd=aca42811, *pte=00000000 [ 6.267897] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.270738] , *ppte=00000000 [ 6.276753] Unable to handle kernel paging request at virtual address bf235040 [ 6.287326] pgd = (ptrval) [ 6.390320] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.396896] Internal error: Oops: 7 [#10] PREEMPT SMP ARM [ 6.402549] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.402566] Unable to handle kernel paging request at virtual address bf235040 [ 6.417781] pgd = (ptrval) [ 6.420612] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.427181] Internal error: Oops: 7 [#11] PREEMPT SMP ARM [ 6.432826] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.432843] Unable to handle kernel paging request at virtual address bf235040 [ 6.448065] pgd = (ptrval) [ 6.450900] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.457480] Internal error: Oops: 7 [#12] PREEMPT SMP ARM [ 6.463135] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.463152] Unable to handle kernel paging request at virtual address bf235040 [ 6.478363] pgd = (ptrval) [ 6.481193] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.487769] Internal error: Oops: 7 [#13] PREEMPT SMP ARM [ 6.493419] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.493436] Unable to handle kernel paging request at virtual address bf235040 [ 6.508651] pgd = (ptrval) [ 6.511481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.518058] Internal error: Oops: 7 [#14] PREEMPT SMP ARM [ 6.523713] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.523731] Unable to handle kernel paging request at virtual address bf235040 [ 6.538958] pgd = (ptrval) [ 6.541789] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.548369] Internal error: Oops: 7 [#15] PREEMPT SMP ARM [ 6.554020] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.554037] Unable to handle kernel paging request at virtual address bf235040 [ 6.569252] pgd = (ptrval) [ 6.572082] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.578668] Internal error: Oops: 7 [#16] PREEMPT SMP ARM [ 6.584320] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.584337] Unable to handle kernel paging request at virtual address bf235040
Looks like AESS block is not clocked and hwmod is not properly initialized (maybe I'll copy from omap4-hwmod) where it's present. @ Andrey: would be possible to share sources from where you get original code. Thanks.
Diff is : diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 218892b..2a5aa09 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -148,6 +148,10 @@ "AFML", "Line In", "AFMR", "Line In"; }; + aess: aess { + compatible = "ti,omap4-aess"; + status = "okay"; + }; };
BR,
marek
On Wed, Jul 4, 2018 at 11:38 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 04.07.2018 um 11:32 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Wed, Jul 4, 2018 at 10:51 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 03.07.2018 um 22:16 schrieb Belisko Marek marek.belisko@gmail.com:
On Tue, Jul 3, 2018 at 10:13 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus, On Tue, Jul 3, 2018 at 10:10 PM H. Nikolaus Schaller hns@goldelico.com wrote:
> Am 03.07.2018 um 22:04 schrieb Belisko Marek marek.belisko@gmail.com: > > Hi Nikolaus, > On Tue, Jul 3, 2018 at 9:52 PM H. Nikolaus Schaller hns@goldelico.com wrote: >> >> Hi Marek, >> >>> Am 29.06.2018 um 09:15 schrieb Belisko Marek marek.belisko@gmail.com: >>> >>> Hi Michael, >>> >>> hmm strange but good that it works for you. I'll try to load driver >>> with this firmware. I'll share results then. >> >> I now tried to build a kernel with AESS driver, but it failed. >> >> The reason seems that some functions have been renamed in 4.18-rc1ff >> Mainly codec -> component. >> >> In this case snd_soc_component_to_platform(component) has gone... >> >> So it looks like we have to upgrade >> >> http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=bc840309edc035d822c3... >> >> Which kernel did you try? > I tried with 4.17 version (I have pushed work/andrey/aess branch based > on that version)
Ah, ok.
So we must fix the version I have rebased letux-base = 4.18-rc3 and pushed back.
Maybe can you push yours again as work-aess-4.17.3?
Done.
Thanks!
I have looked into what happened. First of all I did a wrong fixup of a merge conflict so that I added code back to letux-4.18-rc1 which was removed upstream. So the compiler stumbled about some missing functions.
But the bigger problem is that struct snd_soc_platform * has gone and is to be replaced by struct snd_soc_component * and associated helper functions.
I have started to rework this (hopefully without breaking things), but it is not complete (I just touched 3 or 4 files and not all relevant for aess) and it still does not compile.
I think in 4.17 something also changed to snd_soc_component and I have already fixups for that in my branch. I would like to try it on my branch first (but not sure how to fill DT yet) and then if it will work we can bump it (to avoid so many things in once ;))
Yes, indeed. We should finally mix things back into one branch. If we are lucky we can cherry-pick everything...
But for the moment it is indeed the best if you try to fix the DT with 4.17 and try to make it show some user-space activities :)
It should be orthogonal to driver code anyways, i.e. should not need to be changed by updating to 4.18-rc.
If you or anyone else on this list has more time than me, please can you try to fix the code?
Here are my patches (on top of v4.18-rc2):
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/an...
Looking at sound/soc/omap/aess it looks like we must add ti,omap4-aess property to dts + some resources to have it working. I think I overlooked in my previous test run.
Ah, yes, that is reasonable. Like GPU needs some DT records so that the driver can access the real hardware.
This likely also answers a question what happens if we have the AESS driver on an OMAP3 system... It will simply be ignored if it is not in DT.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
BR,
marek
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
On Thu, Jul 05, 2018 at 10:53:37AM +0200, Belisko Marek wrote:
@ Andrey: would be possible to share sources from where you get original code. Thanks.
I think I looked at next-bnw/ti-audio-next_3.15 branch of https://github.com/omap-audio/linux-audio
Also git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git might be of interest for you.
Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #6 SMP PREEMPT Thu Jul 5 10:47:45 CEST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Pyra-Handheld-V5.1.2ff [ 0.000000] Malformed early option 'console' [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 16 MiB at 0xfd800000 [ 0.000000] OMAP4: Map 0xfee00000 to (ptrval) for dram barrier [ 0.000000] On node 0 totalpages: 519680 [ 0.000000] Normal zone: 1536 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 323072 pages, LIFO batch:31 [ 0.000000] OMAP5432 ES2.0 [ 0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s39948 r8192 d21492 u69632 [ 0.000000] pcpu-alloc: s39948 r8192 d21492 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 518144 [ 0.000000] Kernel command line: console= root=PARTUUID=a2588f0a-02 rw rootfstype=ext4 rootwait console=ttyO2,115200n8 vram=12M omapfb.vram=0:8M,1:4M omapfb.rotate_type=0 omapdss.def_disp=lcd rootwait twl4030_charger.allow_usb=1 log_buk [ 0.000000] log_buf_len: 8388608 bytes [ 0.000000] early log buf free: 63892(97%) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 2025576K/2078720K available (6532K kernel code, 650K rwdata, 1820K rodata, 1024K init, 220K bss, 36760K reserved, 16384K cma-reserved, 1275904K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7525 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 651 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 221 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] Tasks RCU enabled. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] OMAP clockevent source: timer1 at 32768 Hz [ 0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16ac02862, max_idle_ns: 440795202218 ns [ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511085ns [ 0.000017] Switching to timer-based delay loop, resolution 162ns [ 0.000918] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000927] OMAP clocksource: 32k_counter at 32768 Hz [ 0.002357] Console: colour dummy device 80x30 [ 0.002378] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.28 BogoMIPS (lpj=61440) [ 0.002393] pid_max: default: 32768 minimum: 301 [ 0.002484] Security Framework initialized [ 0.002537] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.002550] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.003030] CPU: Testing write buffer coherency: ok [ 0.003220] /cpus/cpu@0 missing clock-frequency property [ 0.003235] /cpus/cpu@1 missing clock-frequency property [ 0.003247] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.049934] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.059931] Hierarchical SRCU implementation. [ 0.079960] smp: Bringing up secondary CPUs ... [ 0.130304] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.130394] smp: Brought up 1 node, 2 CPUs [ 0.130406] SMP: Total of 2 processors activated (24.57 BogoMIPS). [ 0.130414] CPU: All CPU(s) started in HYP mode. [ 0.130421] CPU: Virtualization extensions available. [ 0.131401] devtmpfs: initialized [ 0.142365] random: get_random_u32 called from bucket_table_alloc+0x150/0x1a0 with crng_init=0 [ 0.142895] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0 [ 0.143252] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.143268] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.143723] pinctrl core: initialized pinctrl subsystem [ 0.144671] NET: Registered protocol family 16 [ 0.146441] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.147217] omap_hwmod: l3_main_3 using broken dt data from ocp [ 0.147837] omap_hwmod: l3_main_2 using broken dt data from ocp [ 0.208166] audit: initializing netlink subsys (disabled) [ 0.208271] audit: type=2000 audit(0.200:1): state=initialized audit_enabled=0 res=1 [ 0.209778] cpuidle: using governor menu [ 0.218782] OMAP GPIO hardware version 0.1 [ 0.223621] GPIO line 234 (gpio8_234/msecure) hogged as output/high [ 0.224127] platform 50000000.gpmc: Cannot lookup hwmod 'gpmc' [ 0.224276] omap-gpmc 50000000.gpmc: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info [ 0.224288] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 0.242454] No ATAGs? [ 0.242518] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.242531] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.242935] OMAP DMA hardware revision 0.0 [ 0.273635] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported) [ 0.275613] vsys_cobra: supplied by vmain [ 0.276442] reg-fixed-voltage fixedregulator-mmcsdio: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_wlan_pins, deferring probe [ 0.276751] reg-fixed-voltage bt_en: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_bt_pins, deferring probe [ 0.281245] omap-iommu 4a066000.mmu: 4a066000.mmu registered [ 0.281515] omap-iommu 55082000.mmu: 55082000.mmu registered [ 0.282828] vgaarb: loaded [ 0.283344] SCSI subsystem initialized [ 0.283612] libata version 3.00 loaded. [ 0.284056] usbcore: registered new interface driver usbfs [ 0.284143] usbcore: registered new interface driver hub [ 0.284243] usbcore: registered new device driver usb [ 0.284480] usb_phy_generic hsusb2_phy: hsusb2_phy supply vcc not found, using dummy regulator [ 0.285379] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c1_pins, deferring probe [ 0.285415] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c2_pins, deferring probe [ 0.285445] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c3_pins, deferring probe [ 0.285474] omap_i2c 4807a000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c4_pins, deferring probe [ 0.285502] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c5_pins, deferring probe [ 0.286344] Advanced Linux Sound Architecture Driver Initialized. [ 0.287591] clocksource: Switched to clocksource arch_sys_counter [ 0.333790] VFS: Disk quotas dquot_6.6.0 [ 0.333852] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.344707] NET: Registered protocol family 2 [ 0.345178] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.345201] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.345266] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.345396] TCP: Hash tables configured (established 8192 bind 8192) [ 0.345477] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.345509] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.345682] NET: Registered protocol family 1 [ 0.345709] PCI: CLS 0 bytes, default 64 [ 0.398189] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 0.398379] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.400623] Initialise system trusted keyrings [ 0.400752] workingset: timestamp_bits=30 max_order=19 bucket_order=0 [ 0.401038] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.402588] Key type asymmetric registered [ 0.402599] Asymmetric key parser 'x509' registered [ 0.402648] bounce: pool size: 64 pages [ 0.402734] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.402746] io scheduler noop registered [ 0.402754] io scheduler deadline registered [ 0.402789] io scheduler cfq registered (default) [ 0.402798] io scheduler mq-deadline registered [ 0.402805] io scheduler kyber registered [ 0.406343] ti-pipe3 4a096000.phy: can't get syscon-pllreset, sata dpll won't idle [ 0.407101] pinctrl-single 4a002840.pinmux: 219 pins, size 438 [ 0.407562] pinctrl-single 4ae0c840.pinmux: 30 pins, size 60 [ 0.414997] omap_uart 4806c000.serial: no wakeirq for uart1 [ 0.415095] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 46, base_baud = 3000000) is a OMAP UART1 [ 0.415322] serial serial0: tty port ttyO1 registered [ 0.415571] 48020000.serial: ttyO2 at MMIO 0x48020000 (irq = 47, base_baud = 3000000) is a OMAP UART2 [ 1.354552] console [ttyO2] enabled [ 1.358738] omap_uart 4806e000.serial: no wakeirq for uart3 [ 1.364646] 4806e000.serial: ttyO3 at MMIO 0x4806e000 (irq = 48, base_baud = 3000000) is a OMAP UART3 [ 1.374806] omap_uart 48068000.serial: no wakeirq for uart5 [ 1.380731] 48068000.serial: ttyO5 at MMIO 0x48068000 (irq = 49, base_baud = 3000000) is a OMAP UART5 [ 1.398638] brd: module loaded [ 1.406457] loop: module loaded [ 1.410020] txs_probe() [ 1.412635] txs_probe() initial = 0 [ 1.416284] txs_probe() probed [ 1.421205] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled [ 1.428261] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode [ 1.437179] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst [ 1.447846] scsi host0: ahci [ 1.451108] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 77 [ 1.460213] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.468848] libphy: Fixed MDIO Bus: probed [ 1.475569] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.482423] ehci-pci: EHCI PCI platform driver [ 1.487152] usbcore: registered new interface driver usb-storage [ 1.493642] mousedev: PS/2 mouse device common for all mice [ 1.500197] i2c /dev entries driver [ 1.503921] IR NEC protocol handler initialized [ 1.508675] IR RC5(x/sz) protocol handler initialized [ 1.513958] IR RC6 protocol handler initialized [ 1.518703] IR JVC protocol handler initialized [ 1.523440] IR Sony protocol handler initialized [ 1.528282] IR SANYO protocol handler initialized [ 1.533197] IR Sharp protocol handler initialized [ 1.538131] IR MCE Keyboard/mouse protocol handler initialized [ 1.544229] IR XMP protocol handler initialized [ 1.548972] Driver for 1-wire Dallas network protocol. [ 1.557849] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec [ 1.566844] sdhci: Secure Digital Host Controller Interface driver [ 1.573428] sdhci: Copyright(c) Pierre Ossman [ 1.604795] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 1.609742] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 1.625162] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.631814] ledtrig-cpu: registered to indicate activity on CPUs [ 1.639647] usbcore: registered new interface driver usbhid [ 1.645584] usbhid: USB HID core driver [ 1.649751] ashmem: initialized [ 1.654893] oprofile: using timer interrupt. [ 1.659748] Initializing XFRM netlink socket [ 1.664247] NET: Registered protocol family 17 [ 1.668944] NET: Registered protocol family 15 [ 1.673612] Key type dns_resolver registered [ 1.678521] omap_vc_init_channel: No PMIC info for vdd_core [ 1.684375] omap_vp_init: No PMIC info for vdd_core [ 1.689558] omap_vc_init_channel: No PMIC info for vdd_mm [ 1.695245] omap_vp_init: No PMIC info for vdd_mm [ 1.700201] omap_vc_init_channel: No PMIC info for vdd_mpu [ 1.705969] omap_vp_init: No PMIC info for vdd_mpu [ 1.711034] Power Management for TI OMAP4+ devices. [ 1.716406] ThumbEE CPU extension supported. [ 1.720910] Registering SWP/SWPB emulation handler [ 1.725983] SmartReflex Class3 initialized [ 1.730738] Loading compiled-in X.509 certificates [ 1.737938] mmc0: new high speed MMC card at address 0001 [ 1.744222] mmcblk0: mmc0:0001 HBG4a2 29.1 GiB [ 1.749552] mmcblk0boot0: mmc0:0001 HBG4a2 partition 1 4.00 MiB [ 1.756312] mmcblk0boot1: mmc0:0001 HBG4a2 partition 2 4.00 MiB [ 1.762810] mmcblk0rpmb: mmc0:0001 HBG4a2 partition 3 4.00 MiB, chardev (248:0) [ 1.762958] ------------[ cut here ]------------ [ 1.775437] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 1.785528] Modules linked in: [ 1.789018] CPU: 1 PID: 779 Comm: kworker/1:1 Not tainted 4.17.0-letux+ #6 [ 1.791176] ata1: SATA link down (SStatus 0 SControl 300) [ 1.796225] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 1.808168] Workqueue: events deferred_probe_work_func [ 1.813568] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 1.821688] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 1.829264] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 1.836467] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 1.844403] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 1.853983] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 1.863749] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 1.873328] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 1.883352] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 1.893657] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 1.903595] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 1.912174] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 1.920394] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 1.929518] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 1.938461] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 1.947122] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 1.955695] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 1.963988] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 1.972114] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 1.981326] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 1.991171] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.001019] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.010048] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.018710] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.028015] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.036956] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.045614] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.054189] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.063670] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.073253] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.082558] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.091767] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.099515] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.107081] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.112373] 3fa0: 00000000 00000000 00000000 00000000 [ 2.120945] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.129511] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.136511] ---[ end trace 4839ad0f8521e5f5 ]--- [ 2.141409] palmas 0-0048: Irq flag is 0x00000000 [ 2.172703] palmas 0-0048: Muxing GPIO 3, PWM 0, LED 0 [ 2.185456] palmas-rtc 48070000.i2c:palmas@48:rtc: rtc core: registered 48070000.i2c:palmas@48:rtc as rtc0 [ 2.198486] random: fast init done [ 2.202532] SMPS123: supplied by regulator-dummy [ 2.209008] SMPS45: supplied by regulator-dummy [ 2.215347] SMPS6: supplied by vsys_cobra [ 2.221036] SMPS7: supplied by vsys_cobra [ 2.226683] SMPS8: supplied by vsys_cobra [ 2.232468] SMPS9: supplied by vsys_cobra [ 2.236984] smps9: Bringing 0uV into 2100000-2100000uV [ 2.243713] SMPS10_OUT2: supplied by regulator-dummy [ 2.250370] SMPS10_OUT1: supplied by regulator-dummy [ 2.256534] LDO1: supplied by vsys_cobra [ 2.261341] ldo1: Bringing 0uV into 1800000-1800000uV [ 2.267870] LDO2: supplied by vsys_cobra [ 2.274689] ldo4: Bringing 0uV into 1800000-1800000uV [ 2.281589] LDO5: supplied by vsys_cobra [ 2.290333] LDO7: supplied by vsys_cobra [ 2.294829] ldo7: Bringing 0uV into 2000000-2000000uV [ 2.301981] LDO8: supplied by vsys_cobra [ 2.307824] LDO9: supplied by vmmcsd_fixed [ 2.314201] LDOLN: supplied by vsys_cobra [ 2.320294] LDOUSB: supplied by vsys_cobra [ 2.328395] ------------[ cut here ]------------ [ 2.333240] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 2.343386] Modules linked in: [ 2.346595] CPU: 1 PID: 779 Comm: kworker/1:1 Tainted: G W 4.17.0-letux+ #6 [ 2.355256] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 2.361581] Workqueue: events deferred_probe_work_func [ 2.366976] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 2.375094] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 2.382697] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 2.389913] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 2.397849] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 2.407422] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 2.417183] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 2.426752] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 2.436779] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 2.447079] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 2.457017] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 2.465597] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 2.473818] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.482945] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.491884] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.500546] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.509112] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 2.517418] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 2.525540] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 2.534750] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 2.544603] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.554454] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.563495] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.572173] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.581472] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.590402] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.599061] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.607623] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.617109] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.626683] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.635985] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.645204] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.652965] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.660529] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.665824] 3fa0: 00000000 00000000 00000000 00000000 [ 2.674397] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.682973] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.689932] ---[ end trace 4839ad0f8521e5f6 ]---
looks like a spurious interrupt.
[ 2.697772] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz [ 2.705095] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz [ 2.712253] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz [ 2.719143] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz [ 2.725919] vdds_1v8_main: supplied by smps7 [ 2.760667] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz [ 2.798741] omap_hsmmc 480ad000.mmc: allocated mmc-pwrseq [ 2.846114] mmc1: host does not support reading read-only switch, assuming write-enable [ 2.857550] mmc1: new high speed SDHC card at address 59b4 [ 2.865266] mmcblk1: mmc1:59b4 USD 7.51 GiB [ 2.873057] mmcblk1: p1 p2 [ 2.925488] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 2.930616] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 2.943377] omap_hsmmc 480ad000.mmc: card claims to support voltages below defined range [ 2.969558] mmc2: new high speed SDIO card at address 0001 [ 3.068662] ldo3: supplied by vdds_1v8_main [ 3.074017] ldo4: supplied by vdds_1v8_main [ 3.079670] ldo6: supplied by vdds_1v8_main [ 3.391600] input: user-button as /devices/platform/user-button/input/input0 [ 3.405783] input: pyra-gpio-keys@1 as /devices/platform/pyra-gpio-keys@1/input/input1 [ 3.417272] input: pyra-gpio-keys@2 as /devices/platform/pyra-gpio-keys@2/input/input2 [ 3.427228] palmas-rtc 48070000.i2c:palmas@48:rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801) [ 3.437776] sr_init: No PMIC hook to init smartreflex [ 3.444171] vmmcsdio_fixed: disabling [ 3.448032] bt_power: disabling [ 3.452942] ldo3: disabling [ 3.456602] ldo8: disabling [ 3.460046] ALSA device list: [ 3.463154] No soundcards found. [ 3.578406] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 3.587140] VFS: Mounted root (ext4 filesystem) on device 179:26. [ 3.607190] devtmpfs: mounted [ 3.611174] Freeing unused kernel memory: 1024K Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 4.824000] systemd-udevd[1263]: starting version 215 . ok [....] Synthesizing the initial hotplug events...[ 4.882724] random: udevd: uninitialized urandom read (16 bytes read) [ 4.892487] random: udevd: uninitialized urandom read (16 bytes read) done. [....] Waiting for /dev to be fully populated...[ 5.118688] usb3503 0-0008: usb3503_probe [ 5.129432] usb3503 0-0008: reset gpio state 0 [ 5.140513] usb3503 0-0008: usb3503_connect [ 5.146492] usb3503 0-0008: usb3503_reset 1 [ 5.152785] bmp280 2-0077: 2-0077 supply vddd not found, using dummy regulator [ 5.160567] bmp280 2-0077: 2-0077 supply vdda not found, using dummy regulator [ 5.169889] usb3503 0-0008: SP_ILOCK failed (-121) [ 5.176119] usb3503 0-0008: usb3503_probe: probed in hub mode [ 5.184460] palmas_pwrbutton 48070000.i2c:palmas@48:palmas_power_button: h/w controlled shutdown duration=8 seconds [ 5.197816] input: palmas_pwron as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:palmas@48:palmas_power_button/input/input3 [ 5.216066] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.223219] bmp280: probe of 2-0077 failed with error -121 [ 5.230753] bmp280 2-0076: 2-0076 supply vddd not found, using dummy regulator [ 5.238412] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.245285] bmp280 2-0076: 2-0076 supply vdda not found, using dummy regulator [ 5.255384] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.261823] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.268887] bmp280: probe of 2-0076 failed with error -121 [ 5.275765] bno055 2-0029: failed to switch to register page 0 [ 5.282387] bno055: probe of 2-0029 failed with error -121 [ 5.288331] input: tca8418 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0034/input/input4 [ 5.298289] bmc150_magn_i2c 2-0012: Failed to bring up device from suspend mode [ 5.307167] bmc150_magn_i2c: probe of 2-0012 failed with error -121 [ 5.321761] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.328863] as5013 1-0040: ID code: 0c [ 5.332803] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.339748] as5013 1-0040: ID version: 0d [ 5.344249] as5013 1-0040: silicon revision: 00 [ 5.346983] bmc150_accel_i2c 2-0010: Error: Reading chip id [ 5.355013] bmc150_accel_i2c: probe of 2-0010 failed with error -121 [ 5.361731] as5013 1-0040: control: f1 [ 5.362005] input: TSC2007 Touchscreen as /devices/platform/44000000.ocp/4807a000.i2c/i2c-3/3-0048/input/input5 [ 5.365795] input: nub0 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0040/input/input6 [ 5.386322] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.394748] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.402457] ts3a227e 4-003b: Cannot request irq 0 (-22) [ 5.402943] as5013 1-0040: probe 40, gpio -2, irq 0, "as5013" [ 5.408123] ts3a227e: probe of 4-003b failed with error -22 [ 5.419896] crtouch_drv 3-0049: failed to read size of screen [ 5.426214] crtouch_drv: probe of 3-0049 failed with error -5 [ 5.426221] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.439335] ina2xx 1-004f: error configuring the device: -121 [ 5.445385] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.453234] bq2429x_charger 1-006b: invalid det gpio: -2 [ 5.459356] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.465901] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.482082] bq24296_get_vsys_voltage(0) [ 5.491770] omap-dwc3 4a020000.omap_dwc3: vbus init failed [ 5.506611] => 3500000 uV [ 5.515405] bq24296_get_vsys_voltage(0) [ 5.523865] => 3500000 uV [ 5.532031] bq24296_get_otg_voltage(1) [ 5.537501] => 4998000 uV [ 5.541774] bq24296_get_otg_current_limit(1) [ 5.548011] bq24296_get_otg_voltage(1) [ 5.553591] => 4998000 uV [ 5.559751] bt_power: supplied by vsys [ 5.564586] input: twl6040:vibrator as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-004b/twl6040-vibra/input/input8 [ 5.578467] bq27xxx_battery_setup [ 5.585615] bq27xxx_battery_setup: dm_regs=(ptrval) [ 5.602353] (NULL device *): hwmon: 'bq27421-0' is not a valid name attribute, please fix [ 5.613334] bq27xxx_battery_settings [ 5.617777] bq27xxx_battery_set_config [ 5.625071] bq27xxx_battery_unseal [ 5.640011] bq27xxx_battery_update_dm_block [ 5.645549] bq27xxx: di->opts=1c [ 5.650302] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.655668] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.662890] bq27xxx-battery 1-0055: update design-capacity from 1340 to 6000 [ 5.672909] bq27xxx_battery_update_dm_block [ 5.678920] bq27xxx: di->opts=1c [ 5.683892] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.689736] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.697913] bq27xxx-battery 1-0055: update design-energy from 4960 to 22200 [ 5.706821] bq27xxx_battery_update_dm_block [ 5.713142] bq27xxx-battery 1-0055: terminate-voltage has 3200 [ 5.720928] bq27xxx_battery_cfgupdate_priv [ 5.753486] ehci-omap: OMAP-EHCI Host Controller driver [ 5.774041] bq27xxx_battery_cfgupdate_priv [ 5.810278] emif_probe: error getting device data [ 5.815249] emif_probe: error getting device data [ 5.835797] aess aess: no resource: dmem
ok, there is something missing in DT
[ 5.842029] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.854146] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.866406] (NULL device *): hwmon: 'pyra-battery' is not a valid name attribute, please fix [ 5.876394] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.877720] ehci-omap 4a064c00.ehci: EHCI Host Controller [ 5.886524] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.901652] ehci-omap 4a064c00.ehci: new USB bus registered, assigned bus number 1 [ 5.910185] iio_charge:0 [ 5.912863] omapdss: unknown parameter 'def_disp' ignored [ 5.918894] ------------[ cut here ]------------ [ 5.923746] WARNING: CPU: 1 PID: 1302 at mm/vmalloc.c:1525 load_module+0x19a4/0x1f58 [ 5.932840] mm/pgtable-generic.c:40: bad pmd 8001141e. [ 5.933566] Unable to handle kernel paging request at virtual address bf223180 [ 5.938388] Trying to vfree() nonexistent vm area ((ptrval)) [ 5.945844] pgd = (ptrval) [ 5.951817] mm/pgtable-generic.c:40: bad pmd 8021940e. [ 5.954624] [bf223180] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 5.960051] Unable to handle kernel paging request at virtual address bf1a9148
memory access is getting into trouble.
[ 5.966597] Internal error: Oops: 7 [#1] PREEMPT SMP ARM [ 5.974203] mm/pgtable-generic.c:40: bad pmd 8041940e. [ 5.979719] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 5.979735] Unable to handle kernel paging request at virtual address bf235040 [ 5.985120] Modules linked in: [ 5.992776] pgd = (ptrval) [ 5.992780] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.000389] pgd = (ptrval) [ 6.003555] Internal error: Oops: 7 [#2] PREEMPT SMP ARM [ 6.006392] [bf1a9148] *pgd=aca42811 [ 6.012948] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.012963] Unable to handle kernel paging request at virtual address bf235040 [ 6.015793] mm/pgtable-generic.c:40: bad pmd 8061940e. [ 6.021349] pgd = (ptrval) [ 6.021352] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.021367] Internal error: Oops: 7 [#3] PREEMPT SMP ARM [ 6.021370] Modules linked in: [ 6.025126] mm/pgtable-generic.c:40: bad pmd 8081941e. [ 6.032765] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.032776] Unable to handle kernel paging request at virtual address bf235040 [ 6.032780] pgd = (ptrval) [ 6.040360] connector_hdmi(+) [ 6.045721] [bf235040] *pgd=acce0811, *pte=00000000 [ 6.048571] omapdss(+) [ 6.055117] , *ppte=00000000 [ 6.060693] generic_adc_battery [ 6.069271] omapdss_base [ 6.075288] Internal error: Oops: 7 [#4] PREEMPT SMP ARM [ 6.082849] pwm_bl [ 6.085665] Modules linked in: [ 6.088870] cec [ 6.093963] connector_hdmi(+) [ 6.096513] snd_soc_omap_aess ehci_omap(+) [ 6.099531] omapdss(+) generic_adc_battery [ 6.099539] Unable to handle kernel paging request at virtual address bf235040 [ 6.099543] pgd = (ptrval) [ 6.102919] wlcore_sdio(+) [ 6.105654] [bf235040] *pgd=acce0811 [ 6.111222] dwc3_omap [ 6.113403] , *pte=00000000 [ 6.116593] snd_soc_ts3a227e [ 6.118515] , *ppte=00000000 [ 6.118523] Internal error: Oops: 7 [#5] PREEMPT SMP ARM [ 6.118526] Modules linked in: [ 6.121723] leds_is31fl319x [ 6.126093] connector_hdmi(+) [ 6.130483] crtouch_mt [ 6.138019] omapdss(+) generic_adc_battery [ 6.138027] Unable to handle kernel paging request at virtual address bf235040 [ 6.138031] pgd = (ptrval) [ 6.140864] bq27xxx_battery_i2c(+) [ 6.143788] [bf235040] *pgd=acce0811 [ 6.147527] tsc2007 [ 6.149986] , *pte=00000000, *ppte=00000000 [ 6.149998] Internal error: Oops: 7 [#6] PREEMPT SMP ARM [ 6.152917] bmp280_spi [ 6.156021] Modules linked in: [ 6.159048] bq27xxx_battery [ 6.164598] connector_hdmi(+) [ 6.167800] bq2429x_charger [ 6.170803] omapdss(+) [ 6.173995] ina2xx [ 6.176548] generic_adc_battery [ 6.176554] Unable to handle kernel paging request at virtual address bf235040 [ 6.180936] gpio_twl6040 [ 6.188477] pgd = (ptrval) [ 6.188481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.191321] as5013(+) [ 6.194976] Internal error: Oops: 7 [#7] PREEMPT SMP ARM [ 6.198722] tca8418_keypad [ 6.200993] Modules linked in: [ 6.205374] twl6040_vibra [ 6.210932] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.210944] Unable to handle kernel paging request at virtual address bf235040 [ 6.213501] bmc150_magn_i2c [ 6.216693] pgd = (ptrval) [ 6.216697] [bf235040] *pgd=acce0811 [ 6.219716] bmc150_accel_i2c [ 6.222896] , *pte=00000000 [ 6.225906] palmas_pwrbutton [ 6.228457] , *ppte=00000000 [ 6.228465] Internal error: Oops: 7 [#8] PREEMPT SMP ARM [ 6.228469] Modules linked in: [ 6.230661] bmc150_magn [ 6.234036] connector_hdmi(+) [ 6.241618] bmc150_accel_core [ 6.244347] omapdss(+) [ 6.247176] Unable to handle kernel paging request at virtual address bf11b080 [ 6.253724] generic_adc_battery [ 6.253730] Unable to handle kernel paging request at virtual address bf235040 [ 6.253733] pgd = (ptrval) [ 6.253737] [bf235040] *pgd=acce0811 [ 6.256206] pgd = (ptrval) [ 6.261765] , *pte=00000000, *ppte=00000000 [ 6.261779] Internal error: Oops: 7 [#9] PREEMPT SMP ARM [ 6.264700] [bf11b080] *pgd=aca42811, *pte=00000000 [ 6.267897] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.270738] , *ppte=00000000 [ 6.276753] Unable to handle kernel paging request at virtual address bf235040 [ 6.287326] pgd = (ptrval) [ 6.390320] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.396896] Internal error: Oops: 7 [#10] PREEMPT SMP ARM [ 6.402549] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.402566] Unable to handle kernel paging request at virtual address bf235040 [ 6.417781] pgd = (ptrval) [ 6.420612] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.427181] Internal error: Oops: 7 [#11] PREEMPT SMP ARM [ 6.432826] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.432843] Unable to handle kernel paging request at virtual address bf235040 [ 6.448065] pgd = (ptrval) [ 6.450900] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.457480] Internal error: Oops: 7 [#12] PREEMPT SMP ARM [ 6.463135] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.463152] Unable to handle kernel paging request at virtual address bf235040 [ 6.478363] pgd = (ptrval) [ 6.481193] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.487769] Internal error: Oops: 7 [#13] PREEMPT SMP ARM [ 6.493419] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.493436] Unable to handle kernel paging request at virtual address bf235040 [ 6.508651] pgd = (ptrval) [ 6.511481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.518058] Internal error: Oops: 7 [#14] PREEMPT SMP ARM [ 6.523713] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.523731] Unable to handle kernel paging request at virtual address bf235040 [ 6.538958] pgd = (ptrval) [ 6.541789] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.548369] Internal error: Oops: 7 [#15] PREEMPT SMP ARM [ 6.554020] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.554037] Unable to handle kernel paging request at virtual address bf235040 [ 6.569252] pgd = (ptrval) [ 6.572082] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.578668] Internal error: Oops: 7 [#16] PREEMPT SMP ARM [ 6.584320] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.584337] Unable to handle kernel paging request at virtual address bf235040
Looks like AESS block is not clocked and hwmod is not properly initialized (maybe I'll copy from omap4-hwmod) where it's present.
Yes, that is very likely. Idid similar adventures for the OMAP3 PVR/SGX integration. hwmods are unfortunately incomplete. Sometimes they even have to switch some L3/L4 stuff which is black magic.
@ Andrey: would be possible to share sources from where you get original code. Thanks.
Diff is : diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 218892b..2a5aa09 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -148,6 +148,10 @@ "AFML", "Line In", "AFMR", "Line In"; };
aess: aess {
compatible = "ti,omap4-aess";
googling for 'compatible = "ti,omap4-aess"' gives nice stuff (but for still to be determined kernel versions):
https://patchwork.ozlabs.org/patch/807681/ https://e2e.ti.com/support/arm/automotive_processors/f/1020/t/640698?Linux-O... https://www.spinics.net/lists/linux-omap/msg139053.html https://kernel.googlesource.com/pub/scm/linux/kernel/git/lrg/asoc/+/omap/v3....
So it s clear that we need at least some reg property and some hwmods.
status = "okay";
};
};
BR,
marek
BR, Nikolaus
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #6 SMP PREEMPT Thu Jul 5 10:47:45 CEST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Pyra-Handheld-V5.1.2ff [ 0.000000] Malformed early option 'console' [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 16 MiB at 0xfd800000 [ 0.000000] OMAP4: Map 0xfee00000 to (ptrval) for dram barrier [ 0.000000] On node 0 totalpages: 519680 [ 0.000000] Normal zone: 1536 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 323072 pages, LIFO batch:31 [ 0.000000] OMAP5432 ES2.0 [ 0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s39948 r8192 d21492 u69632 [ 0.000000] pcpu-alloc: s39948 r8192 d21492 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 518144 [ 0.000000] Kernel command line: console= root=PARTUUID=a2588f0a-02 rw rootfstype=ext4 rootwait console=ttyO2,115200n8 vram=12M omapfb.vram=0:8M,1:4M omapfb.rotate_type=0 omapdss.def_disp=lcd rootwait twl4030_charger.allow_usb=1 log_buk [ 0.000000] log_buf_len: 8388608 bytes [ 0.000000] early log buf free: 63892(97%) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 2025576K/2078720K available (6532K kernel code, 650K rwdata, 1820K rodata, 1024K init, 220K bss, 36760K reserved, 16384K cma-reserved, 1275904K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7525 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 651 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 221 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] Tasks RCU enabled. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] OMAP clockevent source: timer1 at 32768 Hz [ 0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16ac02862, max_idle_ns: 440795202218 ns [ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511085ns [ 0.000017] Switching to timer-based delay loop, resolution 162ns [ 0.000918] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000927] OMAP clocksource: 32k_counter at 32768 Hz [ 0.002357] Console: colour dummy device 80x30 [ 0.002378] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.28 BogoMIPS (lpj=61440) [ 0.002393] pid_max: default: 32768 minimum: 301 [ 0.002484] Security Framework initialized [ 0.002537] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.002550] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.003030] CPU: Testing write buffer coherency: ok [ 0.003220] /cpus/cpu@0 missing clock-frequency property [ 0.003235] /cpus/cpu@1 missing clock-frequency property [ 0.003247] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.049934] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.059931] Hierarchical SRCU implementation. [ 0.079960] smp: Bringing up secondary CPUs ... [ 0.130304] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.130394] smp: Brought up 1 node, 2 CPUs [ 0.130406] SMP: Total of 2 processors activated (24.57 BogoMIPS). [ 0.130414] CPU: All CPU(s) started in HYP mode. [ 0.130421] CPU: Virtualization extensions available. [ 0.131401] devtmpfs: initialized [ 0.142365] random: get_random_u32 called from bucket_table_alloc+0x150/0x1a0 with crng_init=0 [ 0.142895] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0 [ 0.143252] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.143268] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.143723] pinctrl core: initialized pinctrl subsystem [ 0.144671] NET: Registered protocol family 16 [ 0.146441] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.147217] omap_hwmod: l3_main_3 using broken dt data from ocp [ 0.147837] omap_hwmod: l3_main_2 using broken dt data from ocp [ 0.208166] audit: initializing netlink subsys (disabled) [ 0.208271] audit: type=2000 audit(0.200:1): state=initialized audit_enabled=0 res=1 [ 0.209778] cpuidle: using governor menu [ 0.218782] OMAP GPIO hardware version 0.1 [ 0.223621] GPIO line 234 (gpio8_234/msecure) hogged as output/high [ 0.224127] platform 50000000.gpmc: Cannot lookup hwmod 'gpmc' [ 0.224276] omap-gpmc 50000000.gpmc: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info [ 0.224288] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 0.242454] No ATAGs? [ 0.242518] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.242531] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.242935] OMAP DMA hardware revision 0.0 [ 0.273635] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported) [ 0.275613] vsys_cobra: supplied by vmain [ 0.276442] reg-fixed-voltage fixedregulator-mmcsdio: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_wlan_pins, deferring probe [ 0.276751] reg-fixed-voltage bt_en: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_bt_pins, deferring probe [ 0.281245] omap-iommu 4a066000.mmu: 4a066000.mmu registered [ 0.281515] omap-iommu 55082000.mmu: 55082000.mmu registered [ 0.282828] vgaarb: loaded [ 0.283344] SCSI subsystem initialized [ 0.283612] libata version 3.00 loaded. [ 0.284056] usbcore: registered new interface driver usbfs [ 0.284143] usbcore: registered new interface driver hub [ 0.284243] usbcore: registered new device driver usb [ 0.284480] usb_phy_generic hsusb2_phy: hsusb2_phy supply vcc not found, using dummy regulator [ 0.285379] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c1_pins, deferring probe [ 0.285415] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c2_pins, deferring probe [ 0.285445] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c3_pins, deferring probe [ 0.285474] omap_i2c 4807a000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c4_pins, deferring probe [ 0.285502] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c5_pins, deferring probe [ 0.286344] Advanced Linux Sound Architecture Driver Initialized. [ 0.287591] clocksource: Switched to clocksource arch_sys_counter [ 0.333790] VFS: Disk quotas dquot_6.6.0 [ 0.333852] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.344707] NET: Registered protocol family 2 [ 0.345178] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.345201] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.345266] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.345396] TCP: Hash tables configured (established 8192 bind 8192) [ 0.345477] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.345509] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.345682] NET: Registered protocol family 1 [ 0.345709] PCI: CLS 0 bytes, default 64 [ 0.398189] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 0.398379] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.400623] Initialise system trusted keyrings [ 0.400752] workingset: timestamp_bits=30 max_order=19 bucket_order=0 [ 0.401038] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.402588] Key type asymmetric registered [ 0.402599] Asymmetric key parser 'x509' registered [ 0.402648] bounce: pool size: 64 pages [ 0.402734] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.402746] io scheduler noop registered [ 0.402754] io scheduler deadline registered [ 0.402789] io scheduler cfq registered (default) [ 0.402798] io scheduler mq-deadline registered [ 0.402805] io scheduler kyber registered [ 0.406343] ti-pipe3 4a096000.phy: can't get syscon-pllreset, sata dpll won't idle [ 0.407101] pinctrl-single 4a002840.pinmux: 219 pins, size 438 [ 0.407562] pinctrl-single 4ae0c840.pinmux: 30 pins, size 60 [ 0.414997] omap_uart 4806c000.serial: no wakeirq for uart1 [ 0.415095] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 46, base_baud = 3000000) is a OMAP UART1 [ 0.415322] serial serial0: tty port ttyO1 registered [ 0.415571] 48020000.serial: ttyO2 at MMIO 0x48020000 (irq = 47, base_baud = 3000000) is a OMAP UART2 [ 1.354552] console [ttyO2] enabled [ 1.358738] omap_uart 4806e000.serial: no wakeirq for uart3 [ 1.364646] 4806e000.serial: ttyO3 at MMIO 0x4806e000 (irq = 48, base_baud = 3000000) is a OMAP UART3 [ 1.374806] omap_uart 48068000.serial: no wakeirq for uart5 [ 1.380731] 48068000.serial: ttyO5 at MMIO 0x48068000 (irq = 49, base_baud = 3000000) is a OMAP UART5 [ 1.398638] brd: module loaded [ 1.406457] loop: module loaded [ 1.410020] txs_probe() [ 1.412635] txs_probe() initial = 0 [ 1.416284] txs_probe() probed [ 1.421205] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled [ 1.428261] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode [ 1.437179] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst [ 1.447846] scsi host0: ahci [ 1.451108] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 77 [ 1.460213] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.468848] libphy: Fixed MDIO Bus: probed [ 1.475569] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.482423] ehci-pci: EHCI PCI platform driver [ 1.487152] usbcore: registered new interface driver usb-storage [ 1.493642] mousedev: PS/2 mouse device common for all mice [ 1.500197] i2c /dev entries driver [ 1.503921] IR NEC protocol handler initialized [ 1.508675] IR RC5(x/sz) protocol handler initialized [ 1.513958] IR RC6 protocol handler initialized [ 1.518703] IR JVC protocol handler initialized [ 1.523440] IR Sony protocol handler initialized [ 1.528282] IR SANYO protocol handler initialized [ 1.533197] IR Sharp protocol handler initialized [ 1.538131] IR MCE Keyboard/mouse protocol handler initialized [ 1.544229] IR XMP protocol handler initialized [ 1.548972] Driver for 1-wire Dallas network protocol. [ 1.557849] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec [ 1.566844] sdhci: Secure Digital Host Controller Interface driver [ 1.573428] sdhci: Copyright(c) Pierre Ossman [ 1.604795] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 1.609742] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 1.625162] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.631814] ledtrig-cpu: registered to indicate activity on CPUs [ 1.639647] usbcore: registered new interface driver usbhid [ 1.645584] usbhid: USB HID core driver [ 1.649751] ashmem: initialized [ 1.654893] oprofile: using timer interrupt. [ 1.659748] Initializing XFRM netlink socket [ 1.664247] NET: Registered protocol family 17 [ 1.668944] NET: Registered protocol family 15 [ 1.673612] Key type dns_resolver registered [ 1.678521] omap_vc_init_channel: No PMIC info for vdd_core [ 1.684375] omap_vp_init: No PMIC info for vdd_core [ 1.689558] omap_vc_init_channel: No PMIC info for vdd_mm [ 1.695245] omap_vp_init: No PMIC info for vdd_mm [ 1.700201] omap_vc_init_channel: No PMIC info for vdd_mpu [ 1.705969] omap_vp_init: No PMIC info for vdd_mpu [ 1.711034] Power Management for TI OMAP4+ devices. [ 1.716406] ThumbEE CPU extension supported. [ 1.720910] Registering SWP/SWPB emulation handler [ 1.725983] SmartReflex Class3 initialized [ 1.730738] Loading compiled-in X.509 certificates [ 1.737938] mmc0: new high speed MMC card at address 0001 [ 1.744222] mmcblk0: mmc0:0001 HBG4a2 29.1 GiB [ 1.749552] mmcblk0boot0: mmc0:0001 HBG4a2 partition 1 4.00 MiB [ 1.756312] mmcblk0boot1: mmc0:0001 HBG4a2 partition 2 4.00 MiB [ 1.762810] mmcblk0rpmb: mmc0:0001 HBG4a2 partition 3 4.00 MiB, chardev (248:0) [ 1.762958] ------------[ cut here ]------------ [ 1.775437] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 1.785528] Modules linked in: [ 1.789018] CPU: 1 PID: 779 Comm: kworker/1:1 Not tainted 4.17.0-letux+ #6 [ 1.791176] ata1: SATA link down (SStatus 0 SControl 300) [ 1.796225] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 1.808168] Workqueue: events deferred_probe_work_func [ 1.813568] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 1.821688] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 1.829264] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 1.836467] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 1.844403] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 1.853983] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 1.863749] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 1.873328] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 1.883352] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 1.893657] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 1.903595] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 1.912174] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 1.920394] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 1.929518] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 1.938461] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 1.947122] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 1.955695] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 1.963988] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 1.972114] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 1.981326] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 1.991171] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.001019] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.010048] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.018710] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.028015] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.036956] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.045614] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.054189] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.063670] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.073253] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.082558] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.091767] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.099515] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.107081] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.112373] 3fa0: 00000000 00000000 00000000 00000000 [ 2.120945] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.129511] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.136511] ---[ end trace 4839ad0f8521e5f5 ]--- [ 2.141409] palmas 0-0048: Irq flag is 0x00000000 [ 2.172703] palmas 0-0048: Muxing GPIO 3, PWM 0, LED 0 [ 2.185456] palmas-rtc 48070000.i2c:palmas@48:rtc: rtc core: registered 48070000.i2c:palmas@48:rtc as rtc0 [ 2.198486] random: fast init done [ 2.202532] SMPS123: supplied by regulator-dummy [ 2.209008] SMPS45: supplied by regulator-dummy [ 2.215347] SMPS6: supplied by vsys_cobra [ 2.221036] SMPS7: supplied by vsys_cobra [ 2.226683] SMPS8: supplied by vsys_cobra [ 2.232468] SMPS9: supplied by vsys_cobra [ 2.236984] smps9: Bringing 0uV into 2100000-2100000uV [ 2.243713] SMPS10_OUT2: supplied by regulator-dummy [ 2.250370] SMPS10_OUT1: supplied by regulator-dummy [ 2.256534] LDO1: supplied by vsys_cobra [ 2.261341] ldo1: Bringing 0uV into 1800000-1800000uV [ 2.267870] LDO2: supplied by vsys_cobra [ 2.274689] ldo4: Bringing 0uV into 1800000-1800000uV [ 2.281589] LDO5: supplied by vsys_cobra [ 2.290333] LDO7: supplied by vsys_cobra [ 2.294829] ldo7: Bringing 0uV into 2000000-2000000uV [ 2.301981] LDO8: supplied by vsys_cobra [ 2.307824] LDO9: supplied by vmmcsd_fixed [ 2.314201] LDOLN: supplied by vsys_cobra [ 2.320294] LDOUSB: supplied by vsys_cobra [ 2.328395] ------------[ cut here ]------------ [ 2.333240] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 2.343386] Modules linked in: [ 2.346595] CPU: 1 PID: 779 Comm: kworker/1:1 Tainted: G W 4.17.0-letux+ #6 [ 2.355256] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 2.361581] Workqueue: events deferred_probe_work_func [ 2.366976] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 2.375094] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 2.382697] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 2.389913] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 2.397849] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 2.407422] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 2.417183] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 2.426752] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 2.436779] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 2.447079] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 2.457017] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 2.465597] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 2.473818] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.482945] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.491884] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.500546] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.509112] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 2.517418] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 2.525540] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 2.534750] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 2.544603] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.554454] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.563495] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.572173] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.581472] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.590402] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.599061] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.607623] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.617109] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.626683] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.635985] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.645204] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.652965] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.660529] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.665824] 3fa0: 00000000 00000000 00000000 00000000 [ 2.674397] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.682973] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.689932] ---[ end trace 4839ad0f8521e5f6 ]---
looks like a spurious interrupt.
[ 2.697772] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz [ 2.705095] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz [ 2.712253] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz [ 2.719143] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz [ 2.725919] vdds_1v8_main: supplied by smps7 [ 2.760667] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz [ 2.798741] omap_hsmmc 480ad000.mmc: allocated mmc-pwrseq [ 2.846114] mmc1: host does not support reading read-only switch, assuming write-enable [ 2.857550] mmc1: new high speed SDHC card at address 59b4 [ 2.865266] mmcblk1: mmc1:59b4 USD 7.51 GiB [ 2.873057] mmcblk1: p1 p2 [ 2.925488] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 2.930616] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 2.943377] omap_hsmmc 480ad000.mmc: card claims to support voltages below defined range [ 2.969558] mmc2: new high speed SDIO card at address 0001 [ 3.068662] ldo3: supplied by vdds_1v8_main [ 3.074017] ldo4: supplied by vdds_1v8_main [ 3.079670] ldo6: supplied by vdds_1v8_main [ 3.391600] input: user-button as /devices/platform/user-button/input/input0 [ 3.405783] input: pyra-gpio-keys@1 as /devices/platform/pyra-gpio-keys@1/input/input1 [ 3.417272] input: pyra-gpio-keys@2 as /devices/platform/pyra-gpio-keys@2/input/input2 [ 3.427228] palmas-rtc 48070000.i2c:palmas@48:rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801) [ 3.437776] sr_init: No PMIC hook to init smartreflex [ 3.444171] vmmcsdio_fixed: disabling [ 3.448032] bt_power: disabling [ 3.452942] ldo3: disabling [ 3.456602] ldo8: disabling [ 3.460046] ALSA device list: [ 3.463154] No soundcards found. [ 3.578406] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 3.587140] VFS: Mounted root (ext4 filesystem) on device 179:26. [ 3.607190] devtmpfs: mounted [ 3.611174] Freeing unused kernel memory: 1024K Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 4.824000] systemd-udevd[1263]: starting version 215 . ok [....] Synthesizing the initial hotplug events...[ 4.882724] random: udevd: uninitialized urandom read (16 bytes read) [ 4.892487] random: udevd: uninitialized urandom read (16 bytes read) done. [....] Waiting for /dev to be fully populated...[ 5.118688] usb3503 0-0008: usb3503_probe [ 5.129432] usb3503 0-0008: reset gpio state 0 [ 5.140513] usb3503 0-0008: usb3503_connect [ 5.146492] usb3503 0-0008: usb3503_reset 1 [ 5.152785] bmp280 2-0077: 2-0077 supply vddd not found, using dummy regulator [ 5.160567] bmp280 2-0077: 2-0077 supply vdda not found, using dummy regulator [ 5.169889] usb3503 0-0008: SP_ILOCK failed (-121) [ 5.176119] usb3503 0-0008: usb3503_probe: probed in hub mode [ 5.184460] palmas_pwrbutton 48070000.i2c:palmas@48:palmas_power_button: h/w controlled shutdown duration=8 seconds [ 5.197816] input: palmas_pwron as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:palmas@48:palmas_power_button/input/input3 [ 5.216066] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.223219] bmp280: probe of 2-0077 failed with error -121 [ 5.230753] bmp280 2-0076: 2-0076 supply vddd not found, using dummy regulator [ 5.238412] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.245285] bmp280 2-0076: 2-0076 supply vdda not found, using dummy regulator [ 5.255384] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.261823] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.268887] bmp280: probe of 2-0076 failed with error -121 [ 5.275765] bno055 2-0029: failed to switch to register page 0 [ 5.282387] bno055: probe of 2-0029 failed with error -121 [ 5.288331] input: tca8418 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0034/input/input4 [ 5.298289] bmc150_magn_i2c 2-0012: Failed to bring up device from suspend mode [ 5.307167] bmc150_magn_i2c: probe of 2-0012 failed with error -121 [ 5.321761] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.328863] as5013 1-0040: ID code: 0c [ 5.332803] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.339748] as5013 1-0040: ID version: 0d [ 5.344249] as5013 1-0040: silicon revision: 00 [ 5.346983] bmc150_accel_i2c 2-0010: Error: Reading chip id [ 5.355013] bmc150_accel_i2c: probe of 2-0010 failed with error -121 [ 5.361731] as5013 1-0040: control: f1 [ 5.362005] input: TSC2007 Touchscreen as /devices/platform/44000000.ocp/4807a000.i2c/i2c-3/3-0048/input/input5 [ 5.365795] input: nub0 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0040/input/input6 [ 5.386322] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.394748] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.402457] ts3a227e 4-003b: Cannot request irq 0 (-22) [ 5.402943] as5013 1-0040: probe 40, gpio -2, irq 0, "as5013" [ 5.408123] ts3a227e: probe of 4-003b failed with error -22 [ 5.419896] crtouch_drv 3-0049: failed to read size of screen [ 5.426214] crtouch_drv: probe of 3-0049 failed with error -5 [ 5.426221] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.439335] ina2xx 1-004f: error configuring the device: -121 [ 5.445385] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.453234] bq2429x_charger 1-006b: invalid det gpio: -2 [ 5.459356] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.465901] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.482082] bq24296_get_vsys_voltage(0) [ 5.491770] omap-dwc3 4a020000.omap_dwc3: vbus init failed [ 5.506611] => 3500000 uV [ 5.515405] bq24296_get_vsys_voltage(0) [ 5.523865] => 3500000 uV [ 5.532031] bq24296_get_otg_voltage(1) [ 5.537501] => 4998000 uV [ 5.541774] bq24296_get_otg_current_limit(1) [ 5.548011] bq24296_get_otg_voltage(1) [ 5.553591] => 4998000 uV [ 5.559751] bt_power: supplied by vsys [ 5.564586] input: twl6040:vibrator as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-004b/twl6040-vibra/input/input8 [ 5.578467] bq27xxx_battery_setup [ 5.585615] bq27xxx_battery_setup: dm_regs=(ptrval) [ 5.602353] (NULL device *): hwmon: 'bq27421-0' is not a valid name attribute, please fix [ 5.613334] bq27xxx_battery_settings [ 5.617777] bq27xxx_battery_set_config [ 5.625071] bq27xxx_battery_unseal [ 5.640011] bq27xxx_battery_update_dm_block [ 5.645549] bq27xxx: di->opts=1c [ 5.650302] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.655668] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.662890] bq27xxx-battery 1-0055: update design-capacity from 1340 to 6000 [ 5.672909] bq27xxx_battery_update_dm_block [ 5.678920] bq27xxx: di->opts=1c [ 5.683892] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.689736] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.697913] bq27xxx-battery 1-0055: update design-energy from 4960 to 22200 [ 5.706821] bq27xxx_battery_update_dm_block [ 5.713142] bq27xxx-battery 1-0055: terminate-voltage has 3200 [ 5.720928] bq27xxx_battery_cfgupdate_priv [ 5.753486] ehci-omap: OMAP-EHCI Host Controller driver [ 5.774041] bq27xxx_battery_cfgupdate_priv [ 5.810278] emif_probe: error getting device data [ 5.815249] emif_probe: error getting device data [ 5.835797] aess aess: no resource: dmem
ok, there is something missing in DT
[ 5.842029] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.854146] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.866406] (NULL device *): hwmon: 'pyra-battery' is not a valid name attribute, please fix [ 5.876394] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.877720] ehci-omap 4a064c00.ehci: EHCI Host Controller [ 5.886524] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.901652] ehci-omap 4a064c00.ehci: new USB bus registered, assigned bus number 1 [ 5.910185] iio_charge:0 [ 5.912863] omapdss: unknown parameter 'def_disp' ignored [ 5.918894] ------------[ cut here ]------------ [ 5.923746] WARNING: CPU: 1 PID: 1302 at mm/vmalloc.c:1525 load_module+0x19a4/0x1f58 [ 5.932840] mm/pgtable-generic.c:40: bad pmd 8001141e. [ 5.933566] Unable to handle kernel paging request at virtual address bf223180 [ 5.938388] Trying to vfree() nonexistent vm area ((ptrval)) [ 5.945844] pgd = (ptrval) [ 5.951817] mm/pgtable-generic.c:40: bad pmd 8021940e. [ 5.954624] [bf223180] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 5.960051] Unable to handle kernel paging request at virtual address bf1a9148
memory access is getting into trouble.
[ 5.966597] Internal error: Oops: 7 [#1] PREEMPT SMP ARM [ 5.974203] mm/pgtable-generic.c:40: bad pmd 8041940e. [ 5.979719] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 5.979735] Unable to handle kernel paging request at virtual address bf235040 [ 5.985120] Modules linked in: [ 5.992776] pgd = (ptrval) [ 5.992780] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.000389] pgd = (ptrval) [ 6.003555] Internal error: Oops: 7 [#2] PREEMPT SMP ARM [ 6.006392] [bf1a9148] *pgd=aca42811 [ 6.012948] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.012963] Unable to handle kernel paging request at virtual address bf235040 [ 6.015793] mm/pgtable-generic.c:40: bad pmd 8061940e. [ 6.021349] pgd = (ptrval) [ 6.021352] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.021367] Internal error: Oops: 7 [#3] PREEMPT SMP ARM [ 6.021370] Modules linked in: [ 6.025126] mm/pgtable-generic.c:40: bad pmd 8081941e. [ 6.032765] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.032776] Unable to handle kernel paging request at virtual address bf235040 [ 6.032780] pgd = (ptrval) [ 6.040360] connector_hdmi(+) [ 6.045721] [bf235040] *pgd=acce0811, *pte=00000000 [ 6.048571] omapdss(+) [ 6.055117] , *ppte=00000000 [ 6.060693] generic_adc_battery [ 6.069271] omapdss_base [ 6.075288] Internal error: Oops: 7 [#4] PREEMPT SMP ARM [ 6.082849] pwm_bl [ 6.085665] Modules linked in: [ 6.088870] cec [ 6.093963] connector_hdmi(+) [ 6.096513] snd_soc_omap_aess ehci_omap(+) [ 6.099531] omapdss(+) generic_adc_battery [ 6.099539] Unable to handle kernel paging request at virtual address bf235040 [ 6.099543] pgd = (ptrval) [ 6.102919] wlcore_sdio(+) [ 6.105654] [bf235040] *pgd=acce0811 [ 6.111222] dwc3_omap [ 6.113403] , *pte=00000000 [ 6.116593] snd_soc_ts3a227e [ 6.118515] , *ppte=00000000 [ 6.118523] Internal error: Oops: 7 [#5] PREEMPT SMP ARM [ 6.118526] Modules linked in: [ 6.121723] leds_is31fl319x [ 6.126093] connector_hdmi(+) [ 6.130483] crtouch_mt [ 6.138019] omapdss(+) generic_adc_battery [ 6.138027] Unable to handle kernel paging request at virtual address bf235040 [ 6.138031] pgd = (ptrval) [ 6.140864] bq27xxx_battery_i2c(+) [ 6.143788] [bf235040] *pgd=acce0811 [ 6.147527] tsc2007 [ 6.149986] , *pte=00000000, *ppte=00000000 [ 6.149998] Internal error: Oops: 7 [#6] PREEMPT SMP ARM [ 6.152917] bmp280_spi [ 6.156021] Modules linked in: [ 6.159048] bq27xxx_battery [ 6.164598] connector_hdmi(+) [ 6.167800] bq2429x_charger [ 6.170803] omapdss(+) [ 6.173995] ina2xx [ 6.176548] generic_adc_battery [ 6.176554] Unable to handle kernel paging request at virtual address bf235040 [ 6.180936] gpio_twl6040 [ 6.188477] pgd = (ptrval) [ 6.188481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.191321] as5013(+) [ 6.194976] Internal error: Oops: 7 [#7] PREEMPT SMP ARM [ 6.198722] tca8418_keypad [ 6.200993] Modules linked in: [ 6.205374] twl6040_vibra [ 6.210932] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.210944] Unable to handle kernel paging request at virtual address bf235040 [ 6.213501] bmc150_magn_i2c [ 6.216693] pgd = (ptrval) [ 6.216697] [bf235040] *pgd=acce0811 [ 6.219716] bmc150_accel_i2c [ 6.222896] , *pte=00000000 [ 6.225906] palmas_pwrbutton [ 6.228457] , *ppte=00000000 [ 6.228465] Internal error: Oops: 7 [#8] PREEMPT SMP ARM [ 6.228469] Modules linked in: [ 6.230661] bmc150_magn [ 6.234036] connector_hdmi(+) [ 6.241618] bmc150_accel_core [ 6.244347] omapdss(+) [ 6.247176] Unable to handle kernel paging request at virtual address bf11b080 [ 6.253724] generic_adc_battery [ 6.253730] Unable to handle kernel paging request at virtual address bf235040 [ 6.253733] pgd = (ptrval) [ 6.253737] [bf235040] *pgd=acce0811 [ 6.256206] pgd = (ptrval) [ 6.261765] , *pte=00000000, *ppte=00000000 [ 6.261779] Internal error: Oops: 7 [#9] PREEMPT SMP ARM [ 6.264700] [bf11b080] *pgd=aca42811, *pte=00000000 [ 6.267897] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.270738] , *ppte=00000000 [ 6.276753] Unable to handle kernel paging request at virtual address bf235040 [ 6.287326] pgd = (ptrval) [ 6.390320] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.396896] Internal error: Oops: 7 [#10] PREEMPT SMP ARM [ 6.402549] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.402566] Unable to handle kernel paging request at virtual address bf235040 [ 6.417781] pgd = (ptrval) [ 6.420612] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.427181] Internal error: Oops: 7 [#11] PREEMPT SMP ARM [ 6.432826] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.432843] Unable to handle kernel paging request at virtual address bf235040 [ 6.448065] pgd = (ptrval) [ 6.450900] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.457480] Internal error: Oops: 7 [#12] PREEMPT SMP ARM [ 6.463135] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.463152] Unable to handle kernel paging request at virtual address bf235040 [ 6.478363] pgd = (ptrval) [ 6.481193] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.487769] Internal error: Oops: 7 [#13] PREEMPT SMP ARM [ 6.493419] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.493436] Unable to handle kernel paging request at virtual address bf235040 [ 6.508651] pgd = (ptrval) [ 6.511481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.518058] Internal error: Oops: 7 [#14] PREEMPT SMP ARM [ 6.523713] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.523731] Unable to handle kernel paging request at virtual address bf235040 [ 6.538958] pgd = (ptrval) [ 6.541789] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.548369] Internal error: Oops: 7 [#15] PREEMPT SMP ARM [ 6.554020] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.554037] Unable to handle kernel paging request at virtual address bf235040 [ 6.569252] pgd = (ptrval) [ 6.572082] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.578668] Internal error: Oops: 7 [#16] PREEMPT SMP ARM [ 6.584320] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.584337] Unable to handle kernel paging request at virtual address bf235040
Looks like AESS block is not clocked and hwmod is not properly initialized (maybe I'll copy from omap4-hwmod) where it's present.
Yes, that is very likely. Idid similar adventures for the OMAP3 PVR/SGX integration. hwmods are unfortunately incomplete. Sometimes they even have to switch some L3/L4 stuff which is black magic.
@ Andrey: would be possible to share sources from where you get original code. Thanks.
Diff is : diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 218892b..2a5aa09 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -148,6 +148,10 @@ "AFML", "Line In", "AFMR", "Line In"; };
aess: aess {
compatible = "ti,omap4-aess";
googling for 'compatible = "ti,omap4-aess"' gives nice stuff (but for still to be determined kernel versions):
https://patchwork.ozlabs.org/patch/807681/ https://e2e.ti.com/support/arm/automotive_processors/f/1020/t/640698?Linux-OMAP5432-EVM-Trouble-in-booting-linux-on-OMAP5432-EVM-platform https://www.spinics.net/lists/linux-omap/msg139053.html https://kernel.googlesource.com/pub/scm/linux/kernel/git/lrg/asoc/+/omap/v3.10%5E1..omap/v3.10/
So it s clear that we need at least some reg property and some hwmods.
status = "okay";
};
};
BR,
marek
BR, Nikolaus
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #6 SMP PREEMPT Thu Jul 5 10:47:45 CEST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Pyra-Handheld-V5.1.2ff [ 0.000000] Malformed early option 'console' [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 16 MiB at 0xfd800000 [ 0.000000] OMAP4: Map 0xfee00000 to (ptrval) for dram barrier [ 0.000000] On node 0 totalpages: 519680 [ 0.000000] Normal zone: 1536 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 323072 pages, LIFO batch:31 [ 0.000000] OMAP5432 ES2.0 [ 0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s39948 r8192 d21492 u69632 [ 0.000000] pcpu-alloc: s39948 r8192 d21492 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 518144 [ 0.000000] Kernel command line: console= root=PARTUUID=a2588f0a-02 rw rootfstype=ext4 rootwait console=ttyO2,115200n8 vram=12M omapfb.vram=0:8M,1:4M omapfb.rotate_type=0 omapdss.def_disp=lcd rootwait twl4030_charger.allow_usb=1 log_buk [ 0.000000] log_buf_len: 8388608 bytes [ 0.000000] early log buf free: 63892(97%) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 2025576K/2078720K available (6532K kernel code, 650K rwdata, 1820K rodata, 1024K init, 220K bss, 36760K reserved, 16384K cma-reserved, 1275904K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7525 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 651 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 221 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] Tasks RCU enabled. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] OMAP clockevent source: timer1 at 32768 Hz [ 0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16ac02862, max_idle_ns: 440795202218 ns [ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511085ns [ 0.000017] Switching to timer-based delay loop, resolution 162ns [ 0.000918] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000927] OMAP clocksource: 32k_counter at 32768 Hz [ 0.002357] Console: colour dummy device 80x30 [ 0.002378] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.28 BogoMIPS (lpj=61440) [ 0.002393] pid_max: default: 32768 minimum: 301 [ 0.002484] Security Framework initialized [ 0.002537] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.002550] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.003030] CPU: Testing write buffer coherency: ok [ 0.003220] /cpus/cpu@0 missing clock-frequency property [ 0.003235] /cpus/cpu@1 missing clock-frequency property [ 0.003247] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.049934] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.059931] Hierarchical SRCU implementation. [ 0.079960] smp: Bringing up secondary CPUs ... [ 0.130304] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.130394] smp: Brought up 1 node, 2 CPUs [ 0.130406] SMP: Total of 2 processors activated (24.57 BogoMIPS). [ 0.130414] CPU: All CPU(s) started in HYP mode. [ 0.130421] CPU: Virtualization extensions available. [ 0.131401] devtmpfs: initialized [ 0.142365] random: get_random_u32 called from bucket_table_alloc+0x150/0x1a0 with crng_init=0 [ 0.142895] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0 [ 0.143252] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.143268] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.143723] pinctrl core: initialized pinctrl subsystem [ 0.144671] NET: Registered protocol family 16 [ 0.146441] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.147217] omap_hwmod: l3_main_3 using broken dt data from ocp [ 0.147837] omap_hwmod: l3_main_2 using broken dt data from ocp [ 0.208166] audit: initializing netlink subsys (disabled) [ 0.208271] audit: type=2000 audit(0.200:1): state=initialized audit_enabled=0 res=1 [ 0.209778] cpuidle: using governor menu [ 0.218782] OMAP GPIO hardware version 0.1 [ 0.223621] GPIO line 234 (gpio8_234/msecure) hogged as output/high [ 0.224127] platform 50000000.gpmc: Cannot lookup hwmod 'gpmc' [ 0.224276] omap-gpmc 50000000.gpmc: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info [ 0.224288] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 0.242454] No ATAGs? [ 0.242518] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.242531] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.242935] OMAP DMA hardware revision 0.0 [ 0.273635] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported) [ 0.275613] vsys_cobra: supplied by vmain [ 0.276442] reg-fixed-voltage fixedregulator-mmcsdio: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_wlan_pins, deferring probe [ 0.276751] reg-fixed-voltage bt_en: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_bt_pins, deferring probe [ 0.281245] omap-iommu 4a066000.mmu: 4a066000.mmu registered [ 0.281515] omap-iommu 55082000.mmu: 55082000.mmu registered [ 0.282828] vgaarb: loaded [ 0.283344] SCSI subsystem initialized [ 0.283612] libata version 3.00 loaded. [ 0.284056] usbcore: registered new interface driver usbfs [ 0.284143] usbcore: registered new interface driver hub [ 0.284243] usbcore: registered new device driver usb [ 0.284480] usb_phy_generic hsusb2_phy: hsusb2_phy supply vcc not found, using dummy regulator [ 0.285379] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c1_pins, deferring probe [ 0.285415] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c2_pins, deferring probe [ 0.285445] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c3_pins, deferring probe [ 0.285474] omap_i2c 4807a000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c4_pins, deferring probe [ 0.285502] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2800/pinmux@40/pinmux_i2c5_pins, deferring probe [ 0.286344] Advanced Linux Sound Architecture Driver Initialized. [ 0.287591] clocksource: Switched to clocksource arch_sys_counter [ 0.333790] VFS: Disk quotas dquot_6.6.0 [ 0.333852] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.344707] NET: Registered protocol family 2 [ 0.345178] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.345201] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.345266] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.345396] TCP: Hash tables configured (established 8192 bind 8192) [ 0.345477] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.345509] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.345682] NET: Registered protocol family 1 [ 0.345709] PCI: CLS 0 bytes, default 64 [ 0.398189] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 0.398379] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.400623] Initialise system trusted keyrings [ 0.400752] workingset: timestamp_bits=30 max_order=19 bucket_order=0 [ 0.401038] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.402588] Key type asymmetric registered [ 0.402599] Asymmetric key parser 'x509' registered [ 0.402648] bounce: pool size: 64 pages [ 0.402734] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.402746] io scheduler noop registered [ 0.402754] io scheduler deadline registered [ 0.402789] io scheduler cfq registered (default) [ 0.402798] io scheduler mq-deadline registered [ 0.402805] io scheduler kyber registered [ 0.406343] ti-pipe3 4a096000.phy: can't get syscon-pllreset, sata dpll won't idle [ 0.407101] pinctrl-single 4a002840.pinmux: 219 pins, size 438 [ 0.407562] pinctrl-single 4ae0c840.pinmux: 30 pins, size 60 [ 0.414997] omap_uart 4806c000.serial: no wakeirq for uart1 [ 0.415095] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 46, base_baud = 3000000) is a OMAP UART1 [ 0.415322] serial serial0: tty port ttyO1 registered [ 0.415571] 48020000.serial: ttyO2 at MMIO 0x48020000 (irq = 47, base_baud = 3000000) is a OMAP UART2 [ 1.354552] console [ttyO2] enabled [ 1.358738] omap_uart 4806e000.serial: no wakeirq for uart3 [ 1.364646] 4806e000.serial: ttyO3 at MMIO 0x4806e000 (irq = 48, base_baud = 3000000) is a OMAP UART3 [ 1.374806] omap_uart 48068000.serial: no wakeirq for uart5 [ 1.380731] 48068000.serial: ttyO5 at MMIO 0x48068000 (irq = 49, base_baud = 3000000) is a OMAP UART5 [ 1.398638] brd: module loaded [ 1.406457] loop: module loaded [ 1.410020] txs_probe() [ 1.412635] txs_probe() initial = 0 [ 1.416284] txs_probe() probed [ 1.421205] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled [ 1.428261] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode [ 1.437179] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst [ 1.447846] scsi host0: ahci [ 1.451108] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 77 [ 1.460213] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.468848] libphy: Fixed MDIO Bus: probed [ 1.475569] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.482423] ehci-pci: EHCI PCI platform driver [ 1.487152] usbcore: registered new interface driver usb-storage [ 1.493642] mousedev: PS/2 mouse device common for all mice [ 1.500197] i2c /dev entries driver [ 1.503921] IR NEC protocol handler initialized [ 1.508675] IR RC5(x/sz) protocol handler initialized [ 1.513958] IR RC6 protocol handler initialized [ 1.518703] IR JVC protocol handler initialized [ 1.523440] IR Sony protocol handler initialized [ 1.528282] IR SANYO protocol handler initialized [ 1.533197] IR Sharp protocol handler initialized [ 1.538131] IR MCE Keyboard/mouse protocol handler initialized [ 1.544229] IR XMP protocol handler initialized [ 1.548972] Driver for 1-wire Dallas network protocol. [ 1.557849] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec [ 1.566844] sdhci: Secure Digital Host Controller Interface driver [ 1.573428] sdhci: Copyright(c) Pierre Ossman [ 1.604795] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 1.609742] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 1.625162] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.631814] ledtrig-cpu: registered to indicate activity on CPUs [ 1.639647] usbcore: registered new interface driver usbhid [ 1.645584] usbhid: USB HID core driver [ 1.649751] ashmem: initialized [ 1.654893] oprofile: using timer interrupt. [ 1.659748] Initializing XFRM netlink socket [ 1.664247] NET: Registered protocol family 17 [ 1.668944] NET: Registered protocol family 15 [ 1.673612] Key type dns_resolver registered [ 1.678521] omap_vc_init_channel: No PMIC info for vdd_core [ 1.684375] omap_vp_init: No PMIC info for vdd_core [ 1.689558] omap_vc_init_channel: No PMIC info for vdd_mm [ 1.695245] omap_vp_init: No PMIC info for vdd_mm [ 1.700201] omap_vc_init_channel: No PMIC info for vdd_mpu [ 1.705969] omap_vp_init: No PMIC info for vdd_mpu [ 1.711034] Power Management for TI OMAP4+ devices. [ 1.716406] ThumbEE CPU extension supported. [ 1.720910] Registering SWP/SWPB emulation handler [ 1.725983] SmartReflex Class3 initialized [ 1.730738] Loading compiled-in X.509 certificates [ 1.737938] mmc0: new high speed MMC card at address 0001 [ 1.744222] mmcblk0: mmc0:0001 HBG4a2 29.1 GiB [ 1.749552] mmcblk0boot0: mmc0:0001 HBG4a2 partition 1 4.00 MiB [ 1.756312] mmcblk0boot1: mmc0:0001 HBG4a2 partition 2 4.00 MiB [ 1.762810] mmcblk0rpmb: mmc0:0001 HBG4a2 partition 3 4.00 MiB, chardev (248:0) [ 1.762958] ------------[ cut here ]------------ [ 1.775437] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 1.785528] Modules linked in: [ 1.789018] CPU: 1 PID: 779 Comm: kworker/1:1 Not tainted 4.17.0-letux+ #6 [ 1.791176] ata1: SATA link down (SStatus 0 SControl 300) [ 1.796225] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 1.808168] Workqueue: events deferred_probe_work_func [ 1.813568] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 1.821688] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 1.829264] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 1.836467] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 1.844403] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 1.853983] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 1.863749] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 1.873328] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 1.883352] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 1.893657] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 1.903595] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 1.912174] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 1.920394] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 1.929518] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 1.938461] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 1.947122] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 1.955695] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 1.963988] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 1.972114] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 1.981326] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 1.991171] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.001019] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.010048] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.018710] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.028015] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.036956] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.045614] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.054189] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.063670] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.073253] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.082558] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.091767] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.099515] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.107081] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.112373] 3fa0: 00000000 00000000 00000000 00000000 [ 2.120945] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.129511] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.136511] ---[ end trace 4839ad0f8521e5f5 ]--- [ 2.141409] palmas 0-0048: Irq flag is 0x00000000 [ 2.172703] palmas 0-0048: Muxing GPIO 3, PWM 0, LED 0 [ 2.185456] palmas-rtc 48070000.i2c:palmas@48:rtc: rtc core: registered 48070000.i2c:palmas@48:rtc as rtc0 [ 2.198486] random: fast init done [ 2.202532] SMPS123: supplied by regulator-dummy [ 2.209008] SMPS45: supplied by regulator-dummy [ 2.215347] SMPS6: supplied by vsys_cobra [ 2.221036] SMPS7: supplied by vsys_cobra [ 2.226683] SMPS8: supplied by vsys_cobra [ 2.232468] SMPS9: supplied by vsys_cobra [ 2.236984] smps9: Bringing 0uV into 2100000-2100000uV [ 2.243713] SMPS10_OUT2: supplied by regulator-dummy [ 2.250370] SMPS10_OUT1: supplied by regulator-dummy [ 2.256534] LDO1: supplied by vsys_cobra [ 2.261341] ldo1: Bringing 0uV into 1800000-1800000uV [ 2.267870] LDO2: supplied by vsys_cobra [ 2.274689] ldo4: Bringing 0uV into 1800000-1800000uV [ 2.281589] LDO5: supplied by vsys_cobra [ 2.290333] LDO7: supplied by vsys_cobra [ 2.294829] ldo7: Bringing 0uV into 2000000-2000000uV [ 2.301981] LDO8: supplied by vsys_cobra [ 2.307824] LDO9: supplied by vmmcsd_fixed [ 2.314201] LDOLN: supplied by vsys_cobra [ 2.320294] LDOUSB: supplied by vsys_cobra [ 2.328395] ------------[ cut here ]------------ [ 2.333240] WARNING: CPU: 1 PID: 779 at drivers/irqchip/irq-gic.c:1016 gic_irq_domain_translate+0xbc/0xcc [ 2.343386] Modules linked in: [ 2.346595] CPU: 1 PID: 779 Comm: kworker/1:1 Tainted: G W 4.17.0-letux+ #6 [ 2.355256] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 2.361581] Workqueue: events deferred_probe_work_func [ 2.366976] [<c01105f8>] (unwind_backtrace) from [<c010bf84>] (show_stack+0x10/0x14) [ 2.375094] [<c010bf84>] (show_stack) from [<c0747fdc>] (dump_stack+0x7c/0x98) [ 2.382697] [<c0747fdc>] (dump_stack) from [<c0130638>] (__warn+0xc8/0xfc) [ 2.389913] [<c0130638>] (__warn) from [<c013072c>] (warn_slowpath_null+0x38/0x44) [ 2.397849] [<c013072c>] (warn_slowpath_null) from [<c042331c>] (gic_irq_domain_translate+0xbc/0xcc) [ 2.407422] [<c042331c>] (gic_irq_domain_translate) from [<c0423610>] (gic_irq_domain_alloc+0x28/0x6c) [ 2.417183] [<c0423610>] (gic_irq_domain_alloc) from [<c01224fc>] (wakeupgen_domain_alloc+0xac/0xc8) [ 2.426752] [<c01224fc>] (wakeupgen_domain_alloc) from [<c017cffc>] (__irq_domain_alloc_irqs+0x158/0x244) [ 2.436779] [<c017cffc>] (__irq_domain_alloc_irqs) from [<c017d518>] (irq_create_fwspec_mapping+0x270/0x328) [ 2.447079] [<c017d518>] (irq_create_fwspec_mapping) from [<c017d618>] (irq_create_of_mapping+0x48/0x50) [ 2.457017] [<c017d618>] (irq_create_of_mapping) from [<c0632c94>] (of_irq_get+0x5c/0x64) [ 2.465597] [<c0632c94>] (of_irq_get) from [<c05d2048>] (i2c_device_probe+0xb0/0x258) [ 2.473818] [<c05d2048>] (i2c_device_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.482945] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.491884] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.500546] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.509112] [<c04cf3bc>] (bus_probe_device) from [<c04cdb78>] (device_add+0x3f8/0x50c) [ 2.517418] [<c04cdb78>] (device_add) from [<c05d356c>] (i2c_new_device+0x1b8/0x294) [ 2.525540] [<c05d356c>] (i2c_new_device) from [<c05d5a18>] (of_i2c_register_device+0x134/0x178) [ 2.534750] [<c05d5a18>] (of_i2c_register_device) from [<c05d5d34>] (of_i2c_register_devices+0x74/0xc0) [ 2.544603] [<c05d5d34>] (of_i2c_register_devices) from [<c05d3b04>] (i2c_register_adapter+0x284/0x39c) [ 2.554454] [<c05d3b04>] (i2c_register_adapter) from [<c05d8eb4>] (omap_i2c_probe+0x55c/0x658) [ 2.563495] [<c05d8eb4>] (omap_i2c_probe) from [<c04d1b24>] (platform_drv_probe+0x50/0xa0) [ 2.572173] [<c04d1b24>] (platform_drv_probe) from [<c04d0018>] (driver_probe_device+0x188/0x318) [ 2.581472] [<c04d0018>] (driver_probe_device) from [<c04ce900>] (bus_for_each_drv+0x80/0x90) [ 2.590402] [<c04ce900>] (bus_for_each_drv) from [<c04cfdf4>] (__device_attach+0x88/0x100) [ 2.599061] [<c04cfdf4>] (__device_attach) from [<c04cf3bc>] (bus_probe_device+0x28/0x80) [ 2.607623] [<c04cf3bc>] (bus_probe_device) from [<c04cf8cc>] (deferred_probe_work_func+0xec/0x120) [ 2.617109] [<c04cf8cc>] (deferred_probe_work_func) from [<c01477bc>] (process_one_work+0x244/0x460) [ 2.626683] [<c01477bc>] (process_one_work) from [<c0147a00>] (process_scheduled_works+0x28/0x30) [ 2.635985] [<c0147a00>] (process_scheduled_works) from [<c01485bc>] (worker_thread+0x2e8/0x3ec) [ 2.645204] [<c01485bc>] (worker_thread) from [<c014c6d8>] (kthread+0x12c/0x14c) [ 2.652965] [<c014c6d8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 2.660529] Exception stack(0xedea3fb0 to 0xedea3ff8) [ 2.665824] 3fa0: 00000000 00000000 00000000 00000000 [ 2.674397] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 2.682973] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 2.689932] ---[ end trace 4839ad0f8521e5f6 ]---
looks like a spurious interrupt.
[ 2.697772] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz [ 2.705095] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz [ 2.712253] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz [ 2.719143] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz [ 2.725919] vdds_1v8_main: supplied by smps7 [ 2.760667] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz [ 2.798741] omap_hsmmc 480ad000.mmc: allocated mmc-pwrseq [ 2.846114] mmc1: host does not support reading read-only switch, assuming write-enable [ 2.857550] mmc1: new high speed SDHC card at address 59b4 [ 2.865266] mmcblk1: mmc1:59b4 USD 7.51 GiB [ 2.873057] mmcblk1: p1 p2 [ 2.925488] omap_hsmmc 480d1000.mmc: Got CD GPIO [ 2.930616] omap_hsmmc 480d1000.mmc: Got WP GPIO [ 2.943377] omap_hsmmc 480ad000.mmc: card claims to support voltages below defined range [ 2.969558] mmc2: new high speed SDIO card at address 0001 [ 3.068662] ldo3: supplied by vdds_1v8_main [ 3.074017] ldo4: supplied by vdds_1v8_main [ 3.079670] ldo6: supplied by vdds_1v8_main [ 3.391600] input: user-button as /devices/platform/user-button/input/input0 [ 3.405783] input: pyra-gpio-keys@1 as /devices/platform/pyra-gpio-keys@1/input/input1 [ 3.417272] input: pyra-gpio-keys@2 as /devices/platform/pyra-gpio-keys@2/input/input2 [ 3.427228] palmas-rtc 48070000.i2c:palmas@48:rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801) [ 3.437776] sr_init: No PMIC hook to init smartreflex [ 3.444171] vmmcsdio_fixed: disabling [ 3.448032] bt_power: disabling [ 3.452942] ldo3: disabling [ 3.456602] ldo8: disabling [ 3.460046] ALSA device list: [ 3.463154] No soundcards found. [ 3.578406] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 3.587140] VFS: Mounted root (ext4 filesystem) on device 179:26. [ 3.607190] devtmpfs: mounted [ 3.611174] Freeing unused kernel memory: 1024K Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 4.824000] systemd-udevd[1263]: starting version 215 . ok [....] Synthesizing the initial hotplug events...[ 4.882724] random: udevd: uninitialized urandom read (16 bytes read) [ 4.892487] random: udevd: uninitialized urandom read (16 bytes read) done. [....] Waiting for /dev to be fully populated...[ 5.118688] usb3503 0-0008: usb3503_probe [ 5.129432] usb3503 0-0008: reset gpio state 0 [ 5.140513] usb3503 0-0008: usb3503_connect [ 5.146492] usb3503 0-0008: usb3503_reset 1 [ 5.152785] bmp280 2-0077: 2-0077 supply vddd not found, using dummy regulator [ 5.160567] bmp280 2-0077: 2-0077 supply vdda not found, using dummy regulator [ 5.169889] usb3503 0-0008: SP_ILOCK failed (-121) [ 5.176119] usb3503 0-0008: usb3503_probe: probed in hub mode [ 5.184460] palmas_pwrbutton 48070000.i2c:palmas@48:palmas_power_button: h/w controlled shutdown duration=8 seconds [ 5.197816] input: palmas_pwron as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:palmas@48:palmas_power_button/input/input3 [ 5.216066] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.223219] bmp280: probe of 2-0077 failed with error -121 [ 5.230753] bmp280 2-0076: 2-0076 supply vddd not found, using dummy regulator [ 5.238412] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.245285] bmp280 2-0076: 2-0076 supply vdda not found, using dummy regulator [ 5.255384] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.261823] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.268887] bmp280: probe of 2-0076 failed with error -121 [ 5.275765] bno055 2-0029: failed to switch to register page 0 [ 5.282387] bno055: probe of 2-0029 failed with error -121 [ 5.288331] input: tca8418 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0034/input/input4 [ 5.298289] bmc150_magn_i2c 2-0012: Failed to bring up device from suspend mode [ 5.307167] bmc150_magn_i2c: probe of 2-0012 failed with error -121 [ 5.321761] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.328863] as5013 1-0040: ID code: 0c [ 5.332803] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.339748] as5013 1-0040: ID version: 0d [ 5.344249] as5013 1-0040: silicon revision: 00 [ 5.346983] bmc150_accel_i2c 2-0010: Error: Reading chip id [ 5.355013] bmc150_accel_i2c: probe of 2-0010 failed with error -121 [ 5.361731] as5013 1-0040: control: f1 [ 5.362005] input: TSC2007 Touchscreen as /devices/platform/44000000.ocp/4807a000.i2c/i2c-3/3-0048/input/input5 [ 5.365795] input: nub0 as /devices/platform/44000000.ocp/48072000.i2c/i2c-1/1-0040/input/input6 [ 5.386322] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.394748] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.402457] ts3a227e 4-003b: Cannot request irq 0 (-22) [ 5.402943] as5013 1-0040: probe 40, gpio -2, irq 0, "as5013" [ 5.408123] ts3a227e: probe of 4-003b failed with error -22 [ 5.419896] crtouch_drv 3-0049: failed to read size of screen [ 5.426214] crtouch_drv: probe of 3-0049 failed with error -5 [ 5.426221] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.439335] ina2xx 1-004f: error configuring the device: -121 [ 5.445385] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.453234] bq2429x_charger 1-006b: invalid det gpio: -2 [ 5.459356] twl6040 0-004b: Failed to get supply 'vddvibl': -517 [ 5.465901] twl6040-vibra twl6040-vibra: couldn't get regulators -517 [ 5.482082] bq24296_get_vsys_voltage(0) [ 5.491770] omap-dwc3 4a020000.omap_dwc3: vbus init failed [ 5.506611] => 3500000 uV [ 5.515405] bq24296_get_vsys_voltage(0) [ 5.523865] => 3500000 uV [ 5.532031] bq24296_get_otg_voltage(1) [ 5.537501] => 4998000 uV [ 5.541774] bq24296_get_otg_current_limit(1) [ 5.548011] bq24296_get_otg_voltage(1) [ 5.553591] => 4998000 uV [ 5.559751] bt_power: supplied by vsys [ 5.564586] input: twl6040:vibrator as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-004b/twl6040-vibra/input/input8 [ 5.578467] bq27xxx_battery_setup [ 5.585615] bq27xxx_battery_setup: dm_regs=(ptrval) [ 5.602353] (NULL device *): hwmon: 'bq27421-0' is not a valid name attribute, please fix [ 5.613334] bq27xxx_battery_settings [ 5.617777] bq27xxx_battery_set_config [ 5.625071] bq27xxx_battery_unseal [ 5.640011] bq27xxx_battery_update_dm_block [ 5.645549] bq27xxx: di->opts=1c [ 5.650302] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.655668] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.662890] bq27xxx-battery 1-0055: update design-capacity from 1340 to 6000 [ 5.672909] bq27xxx_battery_update_dm_block [ 5.678920] bq27xxx: di->opts=1c [ 5.683892] bq27xxx: bq27xxx_dt_to_nvm=1 [ 5.689736] bq27xxx: CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y [ 5.697913] bq27xxx-battery 1-0055: update design-energy from 4960 to 22200 [ 5.706821] bq27xxx_battery_update_dm_block [ 5.713142] bq27xxx-battery 1-0055: terminate-voltage has 3200 [ 5.720928] bq27xxx_battery_cfgupdate_priv [ 5.753486] ehci-omap: OMAP-EHCI Host Controller driver [ 5.774041] bq27xxx_battery_cfgupdate_priv [ 5.810278] emif_probe: error getting device data [ 5.815249] emif_probe: error getting device data [ 5.835797] aess aess: no resource: dmem
ok, there is something missing in DT
[ 5.842029] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.854146] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.866406] (NULL device *): hwmon: 'pyra-battery' is not a valid name attribute, please fix [ 5.876394] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 5.877720] ehci-omap 4a064c00.ehci: EHCI Host Controller [ 5.886524] pwm-backlight keyboard-backlight: keyboard-backlight supply power not found, using dummy regulator [ 5.901652] ehci-omap 4a064c00.ehci: new USB bus registered, assigned bus number 1 [ 5.910185] iio_charge:0 [ 5.912863] omapdss: unknown parameter 'def_disp' ignored [ 5.918894] ------------[ cut here ]------------ [ 5.923746] WARNING: CPU: 1 PID: 1302 at mm/vmalloc.c:1525 load_module+0x19a4/0x1f58 [ 5.932840] mm/pgtable-generic.c:40: bad pmd 8001141e. [ 5.933566] Unable to handle kernel paging request at virtual address bf223180 [ 5.938388] Trying to vfree() nonexistent vm area ((ptrval)) [ 5.945844] pgd = (ptrval) [ 5.951817] mm/pgtable-generic.c:40: bad pmd 8021940e. [ 5.954624] [bf223180] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 5.960051] Unable to handle kernel paging request at virtual address bf1a9148
memory access is getting into trouble.
[ 5.966597] Internal error: Oops: 7 [#1] PREEMPT SMP ARM [ 5.974203] mm/pgtable-generic.c:40: bad pmd 8041940e. [ 5.979719] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 5.979735] Unable to handle kernel paging request at virtual address bf235040 [ 5.985120] Modules linked in: [ 5.992776] pgd = (ptrval) [ 5.992780] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.000389] pgd = (ptrval) [ 6.003555] Internal error: Oops: 7 [#2] PREEMPT SMP ARM [ 6.006392] [bf1a9148] *pgd=aca42811 [ 6.012948] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.012963] Unable to handle kernel paging request at virtual address bf235040 [ 6.015793] mm/pgtable-generic.c:40: bad pmd 8061940e. [ 6.021349] pgd = (ptrval) [ 6.021352] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.021367] Internal error: Oops: 7 [#3] PREEMPT SMP ARM [ 6.021370] Modules linked in: [ 6.025126] mm/pgtable-generic.c:40: bad pmd 8081941e. [ 6.032765] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.032776] Unable to handle kernel paging request at virtual address bf235040 [ 6.032780] pgd = (ptrval) [ 6.040360] connector_hdmi(+) [ 6.045721] [bf235040] *pgd=acce0811, *pte=00000000 [ 6.048571] omapdss(+) [ 6.055117] , *ppte=00000000 [ 6.060693] generic_adc_battery [ 6.069271] omapdss_base [ 6.075288] Internal error: Oops: 7 [#4] PREEMPT SMP ARM [ 6.082849] pwm_bl [ 6.085665] Modules linked in: [ 6.088870] cec [ 6.093963] connector_hdmi(+) [ 6.096513] snd_soc_omap_aess ehci_omap(+) [ 6.099531] omapdss(+) generic_adc_battery [ 6.099539] Unable to handle kernel paging request at virtual address bf235040 [ 6.099543] pgd = (ptrval) [ 6.102919] wlcore_sdio(+) [ 6.105654] [bf235040] *pgd=acce0811 [ 6.111222] dwc3_omap [ 6.113403] , *pte=00000000 [ 6.116593] snd_soc_ts3a227e [ 6.118515] , *ppte=00000000 [ 6.118523] Internal error: Oops: 7 [#5] PREEMPT SMP ARM [ 6.118526] Modules linked in: [ 6.121723] leds_is31fl319x [ 6.126093] connector_hdmi(+) [ 6.130483] crtouch_mt [ 6.138019] omapdss(+) generic_adc_battery [ 6.138027] Unable to handle kernel paging request at virtual address bf235040 [ 6.138031] pgd = (ptrval) [ 6.140864] bq27xxx_battery_i2c(+) [ 6.143788] [bf235040] *pgd=acce0811 [ 6.147527] tsc2007 [ 6.149986] , *pte=00000000, *ppte=00000000 [ 6.149998] Internal error: Oops: 7 [#6] PREEMPT SMP ARM [ 6.152917] bmp280_spi [ 6.156021] Modules linked in: [ 6.159048] bq27xxx_battery [ 6.164598] connector_hdmi(+) [ 6.167800] bq2429x_charger [ 6.170803] omapdss(+) [ 6.173995] ina2xx [ 6.176548] generic_adc_battery [ 6.176554] Unable to handle kernel paging request at virtual address bf235040 [ 6.180936] gpio_twl6040 [ 6.188477] pgd = (ptrval) [ 6.188481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.191321] as5013(+) [ 6.194976] Internal error: Oops: 7 [#7] PREEMPT SMP ARM [ 6.198722] tca8418_keypad [ 6.200993] Modules linked in: [ 6.205374] twl6040_vibra [ 6.210932] connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.210944] Unable to handle kernel paging request at virtual address bf235040 [ 6.213501] bmc150_magn_i2c [ 6.216693] pgd = (ptrval) [ 6.216697] [bf235040] *pgd=acce0811 [ 6.219716] bmc150_accel_i2c [ 6.222896] , *pte=00000000 [ 6.225906] palmas_pwrbutton [ 6.228457] , *ppte=00000000 [ 6.228465] Internal error: Oops: 7 [#8] PREEMPT SMP ARM [ 6.228469] Modules linked in: [ 6.230661] bmc150_magn [ 6.234036] connector_hdmi(+) [ 6.241618] bmc150_accel_core [ 6.244347] omapdss(+) [ 6.247176] Unable to handle kernel paging request at virtual address bf11b080 [ 6.253724] generic_adc_battery [ 6.253730] Unable to handle kernel paging request at virtual address bf235040 [ 6.253733] pgd = (ptrval) [ 6.253737] [bf235040] *pgd=acce0811 [ 6.256206] pgd = (ptrval) [ 6.261765] , *pte=00000000, *ppte=00000000 [ 6.261779] Internal error: Oops: 7 [#9] PREEMPT SMP ARM [ 6.264700] [bf11b080] *pgd=aca42811, *pte=00000000 [ 6.267897] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.270738] , *ppte=00000000 [ 6.276753] Unable to handle kernel paging request at virtual address bf235040 [ 6.287326] pgd = (ptrval) [ 6.390320] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.396896] Internal error: Oops: 7 [#10] PREEMPT SMP ARM [ 6.402549] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.402566] Unable to handle kernel paging request at virtual address bf235040 [ 6.417781] pgd = (ptrval) [ 6.420612] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.427181] Internal error: Oops: 7 [#11] PREEMPT SMP ARM [ 6.432826] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.432843] Unable to handle kernel paging request at virtual address bf235040 [ 6.448065] pgd = (ptrval) [ 6.450900] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.457480] Internal error: Oops: 7 [#12] PREEMPT SMP ARM [ 6.463135] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.463152] Unable to handle kernel paging request at virtual address bf235040 [ 6.478363] pgd = (ptrval) [ 6.481193] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.487769] Internal error: Oops: 7 [#13] PREEMPT SMP ARM [ 6.493419] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.493436] Unable to handle kernel paging request at virtual address bf235040 [ 6.508651] pgd = (ptrval) [ 6.511481] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.518058] Internal error: Oops: 7 [#14] PREEMPT SMP ARM [ 6.523713] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.523731] Unable to handle kernel paging request at virtual address bf235040 [ 6.538958] pgd = (ptrval) [ 6.541789] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.548369] Internal error: Oops: 7 [#15] PREEMPT SMP ARM [ 6.554020] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.554037] Unable to handle kernel paging request at virtual address bf235040 [ 6.569252] pgd = (ptrval) [ 6.572082] [bf235040] *pgd=acce0811, *pte=00000000, *ppte=00000000 [ 6.578668] Internal error: Oops: 7 [#16] PREEMPT SMP ARM [ 6.584320] Modules linked in: connector_hdmi(+) omapdss(+) generic_adc_battery [ 6.584337] Unable to handle kernel paging request at virtual address bf235040
Looks like AESS block is not clocked and hwmod is not properly initialized (maybe I'll copy from omap4-hwmod) where it's present.
Yes, that is very likely. Idid similar adventures for the OMAP3 PVR/SGX integration. hwmods are unfortunately incomplete. Sometimes they even have to switch some L3/L4 stuff which is black magic.
@ Andrey: would be possible to share sources from where you get original code. Thanks.
Diff is : diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 218892b..2a5aa09 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -148,6 +148,10 @@ "AFML", "Line In", "AFMR", "Line In"; };
aess: aess {
compatible = "ti,omap4-aess";
googling for 'compatible = "ti,omap4-aess"' gives nice stuff (but for still to be determined kernel versions):
https://patchwork.ozlabs.org/patch/807681/ https://e2e.ti.com/support/arm/automotive_processors/f/1020/t/640698?Linux-OMAP5432-EVM-Trouble-in-booting-linux-on-OMAP5432-EVM-platform https://www.spinics.net/lists/linux-omap/msg139053.html https://kernel.googlesource.com/pub/scm/linux/kernel/git/lrg/asoc/+/omap/v3.10%5E1..omap/v3.10/
So it s clear that we need at least some reg property and some hwmods.
status = "okay";
};
};
BR,
marek
BR, Nikolaus
Hi Marek,
Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com:
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations: 1. the kernel reports to be letux-4.17.0 and not 4.17.3
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
2. aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
3. aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com:
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think. My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
On Mon, Jul 09, 2018 at 08:36:15PM +0200, Belisko Marek wrote:
OK this is minor stuff I think. My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
What is the firmware you are using, where you obtained it (or its sources), how you built it, if you had to?
I'd advise to get feedback from Peter.
I don't remember anything useful (URLs etc) but I recall Peter was talking about incompatible firmwares for different kernel versions. Like, there is very old crufty firmware for old kernels, and new shiny but unfinished and abandoned firmwares (or just fw building tools?) for new kernels, based on kernel generic "topology" functionality...
Hi Andrey, On Mon, Jul 9, 2018 at 8:53 PM Andrey Utkin andrey_utkin@fastmail.com wrote:
On Mon, Jul 09, 2018 at 08:36:15PM +0200, Belisko Marek wrote:
OK this is minor stuff I think. My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
What is the firmware you are using, where you obtained it (or its sources), how you built it, if you had to?
I'd advise to get feedback from Peter.
I don't remember anything useful (URLs etc) but I recall Peter was talking about incompatible firmwares for different kernel versions. Like, there is very old crufty firmware for old kernels, and new shiny but unfinished and abandoned firmwares (or just fw building tools?) for new kernels, based on kernel generic "topology" functionality...
Michael fetch FW from omap-audio and I also tried but both of them sows same symptom.
BR,
marek
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com:
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikouals,
on my aess branch when added compatible to dts I cannot boot kernel at all: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
BR, Nikolaus
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com:
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote:
> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: > > Hi Nikouals, > > on my aess branch when added compatible to dts I cannot boot kernel at all: > [ 0.000000] Booting Linux on physical CPU 0x0 > [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
Hi Nikolaus, On Tue, Jul 10, 2018 at 8:06 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
cool thanks. I plan to do it today but you're faster than me ;).
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
BR, Nikolaus
BR,
marek
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com:
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote:
Hi Nikolaus,
yes it needs more patches from ti, working on it.
BR,
marek On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote: > > >> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: >> >> Hi Nikouals, >> >> on my aess branch when added compatible to dts I cannot boot kernel at all: >> [ 0.000000] Booting Linux on physical CPU 0x0 >> [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
Hi Marek,
Am 10.07.2018 um 08:10 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 10, 2018 at 8:06 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
cool thanks. I plan to do it today but you're faster than me ;).
Well, I did take a shortcut by merge+quick fix. Should better be a rebase so that we can have all aess stuff at the tip of the branch.
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
Peter should have best contacts and recommendations. So I put him on To: address.
BR, Nikolaus
BR, Nikolaus
BR,
marek
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com:
Moving forward a bit: dmesg | grep -i aess [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22
looks like I need to grab some other FW. Everything (wip) pushed to: work-aess-4.17.3
BR,
marek On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote: > > Hi Nikolaus, > > yes it needs more patches from ti, working on it. > > BR, > > marek > On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote: >> >> >>> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: >>> >>> Hi Nikouals, >>> >>> on my aess branch when added compatible to dts I cannot boot kernel at all: >>> [ 0.000000] Booting Linux on physical CPU 0x0 >>> [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
Hi Nikolaus, On Tue, Jul 10, 2018 at 9:12 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 10.07.2018 um 08:10 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 10, 2018 at 8:06 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
cool thanks. I plan to do it today but you're faster than me ;).
Well, I did take a shortcut by merge+quick fix. Should better be a rebase so that we can have all aess stuff at the tip of the branch.
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
Peter should have best contacts and recommendations. So I put him on To: address.
I did check more deeply what is going on with above error. I checked 3.15 branch from omap-audio and compared to actual one soc-fw was replaced by soc-topology which should be by my rough guess some standard format for ASoC firmware. I looked again to data and firmware looks to be correct according old struct but from our kernel it has format: struct snd_soc_tplg_hdr { __le32 magic; /* magic number */ __le32 abi; /* ABI version */ __le32 version; /* optional vendor specific version details */ __le32 type; /* SND_SOC_TPLG_TYPE_ */ __le32 size; /* size of this structure */ __le32 vendor_type; /* optional vendor specific type info */ __le32 payload_size; /* data bytes, excluding this header */ __le32 index; /* identifier for block */ __le32 count; /* number of elements in block */ } __attribute__((packed));
so thus we get this error.
In original 3.15 kernel struct looks like: struct snd_soc_fw_hdr { __le32 magic; __le32 abi; /* ABI version */ __le32 type; __le32 vendor_type; /* optional vendor specific type info */ __le32 version; /* optional vendor specific version details */ __le32 size; /* data bytes, excluding this header */ } __attribute__((packed));
so it's some items are missing like abi. So I think we would need to get somehow updated firmware based on some later kernel. I tried to look on https://github.com/omap-audio/abefw/tree/master and tried to compile but it cannot find some defines so no idea how to proceed. I can maybe edit existing snd_soc_tplg_hdr to fit to snd_soc_tplg_hdr and try it (first attempt shows a lot of is issues so it will take some time to rework).
BR, Nikolaus
BR,
marek
BR, Nikolaus
BR,
marek
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
> Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com: > > Moving forward a bit: > dmesg | grep -i aess > [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 > [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type > 0 at offset 0x0 size 0x1a5e8. > [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 > [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22 > > looks like I need to grab some other FW. Everything (wip) pushed to: > work-aess-4.17.3 > > BR, > > marek > On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote: >> >> Hi Nikolaus, >> >> yes it needs more patches from ti, working on it. >> >> BR, >> >> marek >> On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote: >>> >>> >>>> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: >>>> >>>> Hi Nikouals, >>>> >>>> on my aess branch when added compatible to dts I cannot boot kernel at all: >>>> [ 0.000000] Booting Linux on physical CPU 0x0 >>>> [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
Hi Marek,
Am 12.07.2018 um 21:30 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 10, 2018 at 9:12 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
Am 10.07.2018 um 08:10 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 10, 2018 at 8:06 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
cool thanks. I plan to do it today but you're faster than me ;).
Well, I did take a shortcut by merge+quick fix. Should better be a rebase so that we can have all aess stuff at the tip of the branch.
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
Peter should have best contacts and recommendations. So I put him on To: address.
I did check more deeply what is going on with above error. I checked 3.15 branch from omap-audio and compared to actual one soc-fw was replaced by soc-topology which should be by my rough guess some standard format for ASoC firmware. I looked again to data and firmware looks to be correct according old struct but from our kernel it has format: struct snd_soc_tplg_hdr { __le32 magic; /* magic number */ __le32 abi; /* ABI version */ __le32 version; /* optional vendor specific version details */ __le32 type; /* SND_SOC_TPLG_TYPE_ */ __le32 size; /* size of this structure */ __le32 vendor_type; /* optional vendor specific type info */ __le32 payload_size; /* data bytes, excluding this header */ __le32 index; /* identifier for block */ __le32 count; /* number of elements in block */ } __attribute__((packed));
so thus we get this error.
In original 3.15 kernel struct looks like: struct snd_soc_fw_hdr { __le32 magic; __le32 abi; /* ABI version */ __le32 type; __le32 vendor_type; /* optional vendor specific type info */ __le32 version; /* optional vendor specific version details */ __le32 size; /* data bytes, excluding this header */ } __attribute__((packed));
so it's some items are missing like abi. So I think we would need to get somehow updated firmware based on some later kernel. I tried to look on https://github.com/omap-audio/abefw/tree/master and tried to compile but it cannot find some defines so no idea how to proceed. I can maybe edit existing snd_soc_tplg_hdr to fit to snd_soc_tplg_hdr and try it (first attempt shows a lot of is issues so it will take some time to rework).
I came across commit ac9391daac004e12dc4e4c62e130b09f245ece2b "ASoC: topology: Improve backwards compatibility with v4 topology files"
which may be related to this problem. This patch came with 4.18-rc1 so we probably should rebase our aess driver on 4.18-rc* first (which means to replace struct platform device by component etc.) before trying to rebuild firmware.
BR, Nikolaus
Hi,
On 2018-07-10 10:12, H. Nikolaus Schaller wrote:
Hi Marek,
Am 10.07.2018 um 08:10 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 10, 2018 at 8:06 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
cool thanks. I plan to do it today but you're faster than me ;).
Well, I did take a shortcut by merge+quick fix. Should better be a rebase so that we can have all aess stuff at the tip of the branch.
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
Peter should have best contacts and recommendations. So I put him on To: address.
the omap-aess-adfw.bin is the AESS firmware with the dynamic firmware 'wrap'. It is most likely not what you want...
It was created with: https://github.com/omap-audio/abefw/tree/peter/bnw https://github.com/omap-audio/asoc-fw/tree/peter/bnw
the abefw repo contains the bare AESS firmware. There are instructions on how to build it.
The asoc-fw repo is to build the ASoC dynamic firmware image using the fw image from abefw.
- Péter
BR, Nikolaus
BR, Nikolaus
BR,
marek
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek,
> Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com: > > Moving forward a bit: > dmesg | grep -i aess > [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 > [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type > 0 at offset 0x0 size 0x1a5e8. > [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 > [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22 > > looks like I need to grab some other FW. Everything (wip) pushed to: > work-aess-4.17.3 > > BR, > > marek > On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote: >> >> Hi Nikolaus, >> >> yes it needs more patches from ti, working on it. >> >> BR, >> >> marek >> On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote: >>> >>> >>>> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: >>>> >>>> Hi Nikouals, >>>> >>>> on my aess branch when added compatible to dts I cannot boot kernel at all: >>>> [ 0.000000] Booting Linux on physical CPU 0x0 >>>> [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version
I have tried to compile, which went fine, and I was able to boot. But I did not have installed the firmware...
Some observations:
- the kernel reports to be letux-4.17.0 and not 4.17.3
OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
root@letux:~# uname -a Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux root@letux:~#
I'd suggest to merge/rebase on top of letux-4.17.3 (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) because that version includes some significant fixes and this may be part of your trouble.
- aess driver is loaded (but not firmware)
root@letux:~# dmesg|fgrep aess [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 root@letux:~#
root@letux:~# lsmod|fgrep abe snd_soc_omap_abe_twl6040 20480 0 snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~#
- aplay does only report the HDMI encoder
root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~#
I hope this helps to move forwards.
BR, Nikolaus
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Hi Peter, On Wed, Jul 18, 2018 at 10:27 AM Peter Ujfalusi peter.ujfalusi@ti.com wrote:
Hi,
On 2018-07-10 10:12, H. Nikolaus Schaller wrote:
Hi Marek,
Am 10.07.2018 um 08:10 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Tue, Jul 10, 2018 at 8:06 AM H. Nikolaus Schaller hns@goldelico.com wrote:
Hi Marek, I merged letux-4.17.3 (and replaced the gab driver merge conflict by the new version). Then I added the firmware ED had sent by mail and got this:
cool thanks. I plan to do it today but you're faster than me ;).
Well, I did take a shortcut by merge+quick fix. Should better be a rebase so that we can have all aess stuff at the tip of the branch.
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
Peter should have best contacts and recommendations. So I put him on To: address.
the omap-aess-adfw.bin is the AESS firmware with the dynamic firmware 'wrap'. It is most likely not what you want...
I don't get that point. By 'wrap' you mean this extra data on the beginning which we cannot parse due to the soc-topology or? Thanks for clarification.
It was created with: https://github.com/omap-audio/abefw/tree/peter/bnw https://github.com/omap-audio/asoc-fw/tree/peter/bnw
I tried to compile tools but it fails (I can report what was the problem)
the abefw repo contains the bare AESS firmware. There are instructions on how to build it.
The asoc-fw repo is to build the ASoC dynamic firmware image using the fw image from abefw.
Not I'm bit confused. So which repo we should use to get AESS FW up & running in 4.17 kernel. Thanks ;)
- Péter
BR,
marek
BR, Nikolaus
BR, Nikolaus
BR,
marek
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus, On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote: > > Hi Marek, > >> Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com: >> >> Moving forward a bit: >> dmesg | grep -i aess >> [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 >> [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type >> 0 at offset 0x0 size 0x1a5e8. >> [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 >> [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22 >> >> looks like I need to grab some other FW. Everything (wip) pushed to: >> work-aess-4.17.3 >> >> BR, >> >> marek >> On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote: >>> >>> Hi Nikolaus, >>> >>> yes it needs more patches from ti, working on it. >>> >>> BR, >>> >>> marek >>> On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote: >>>> >>>> >>>>> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: >>>>> >>>>> Hi Nikouals, >>>>> >>>>> on my aess branch when added compatible to dts I cannot boot kernel at all: >>>>> [ 0.000000] Booting Linux on physical CPU 0x0 >>>>> [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version > > I have tried to compile, which went fine, and I was able to boot. > But I did not have installed the firmware... > > Some observations: > 1. the kernel reports to be letux-4.17.0 and not 4.17.3 OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
My problem now is that during FW loading I get an parse error. So IMO it looks like FW is not correct. I need to dig to the code in soc-topology.c what it is parsing and try to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
> > root@letux:~# uname -a > Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux > root@letux:~# > > I'd suggest to merge/rebase on top of letux-4.17.3 > (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) > because that version includes some significant fixes and this may be part of your trouble. > > 2. aess driver is loaded (but not firmware) > > root@letux:~# dmesg|fgrep aess > [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 > [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 > root@letux:~# > > root@letux:~# lsmod|fgrep abe > snd_soc_omap_abe_twl6040 20480 0 > snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 > snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 > snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm > root@letux:~# > > 3. aplay does only report the HDMI encoder > > root@letux:~# aplay -l > **** List of PLAYBACK Hardware Devices **** > card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > root@letux:~# > > I hope this helps to move forwards. > > BR, > Nikolaus >
BR,
marek
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Hi Marrek,
On 2018-07-19 09:58, Belisko Marek wrote:
root@letux:~# lsmod|fgrep aess snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm root@letux:~# dmesg|fgrep aess [ 6.349644] aess 401f1000.aess: ASoC: invalid header size for type 0 at offset 0x0 size 0x1a5e8. [ 6.362569] aess 401f1000.aess: request for AESS FW failed -22 [ 6.373974] aess 401f1000.aess: ASoC: failed to probe component -22 root@letux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@letux:~# ls -l /lib/firmware/omap_aess-adfw.bin -rw-r--r-- 1 root root 108008 Jul 10 05:57 /lib/firmware/omap_aess-adfw.bin root@letux:~# file /lib/firmware/omap_aess-adfw.bin /lib/firmware/omap_aess-adfw.bin: data root@letux:~# xxd /lib/firmware/omap_aess-adfw.bin | head -10 0000000: 436f 5341 0100 0000 0500 0000 0000 0000 CoSA............ 0000010: a032 0f00 4404 0000 0500 0000 444c 3120 .2..D.......DL1 0000020: 4571 7561 6c69 7a65 7200 0000 0000 0000 Equalizer....... 0000030: 0000 0000 0000 0000 0000 0000 0683 8300 ................ 0000040: 0300 0000 0000 0000 3b00 0000 0000 0000 ........;....... 0000050: 0000 0000 0500 0000 ffff ffff 466c 6174 ............Flat 0000060: 2052 6573 706f 6e73 6500 0000 0000 0000 Response....... 0000070: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H 0000080: 7a20 4850 4620 3064 4200 0000 0000 0000 z HPF 0dB....... 0000090: 0000 0000 0000 0000 0000 0000 3830 3048 ............800H root@letux:~#
This seems to confirm that the firmware blob is not what the driver code expects...
Hmm well then we need to get it somehow from TI guys. Do you have any contact? Thanks.
Peter should have best contacts and recommendations. So I put him on To: address.
the omap-aess-adfw.bin is the AESS firmware with the dynamic firmware 'wrap'. It is most likely not what you want...
I don't get that point. By 'wrap' you mean this extra data on the beginning which we cannot parse due to the soc-topology or? Thanks for clarification.
Yes, the 'wrap' is the ASoC Dynamic Firmware stuff which need to be replaced by soc-topology. The Dynamic Firmware evolved to soc-topology over time. The asoc-fw should give details on what ADFW was adding to the firmware and I believe most of the functionality exist in soc-topology with different name or in a bit different way.
It was created with: https://github.com/omap-audio/abefw/tree/peter/bnw https://github.com/omap-audio/asoc-fw/tree/peter/bnw
I tried to compile tools but it fails (I can report what was the problem)
They will only compile with https://github.com/omap-audio/linux-audio/commits/next-bnw/ti-audio-next_3.1...
the abefw repo contains the bare AESS firmware. There are instructions on how to build it.
The asoc-fw repo is to build the ASoC dynamic firmware image using the fw image from abefw.
Not I'm bit confused. So which repo we should use to get AESS FW up & running in 4.17 kernel. Thanks ;)
The AESS firmware itself is in the abefw repo. See the peter/bnw branch. I have one patch on top which makes it compile with my bnw rewrite of the AESS/ABE code (bnw == Brave New World). As it is, it depends on the 3.15 bnw kernel to get the base addresses.
This will give you the AESS firmware itself which can be loaded to AESS.
On top of that you need to create the soc-topology image using the AESS firmware and using the information in asoc-fw repo on what we did with the dynamic firmware.
- Péter
BR,
marek
BR, Nikolaus
BR, Nikolaus
BR,
marek
Am 09.07.2018 um 21:56 schrieb H. Nikolaus Schaller hns@goldelico.com:
> Am 09.07.2018 um 20:36 schrieb Belisko Marek marek.belisko@gmail.com: > > Hi Nikolaus, > On Mon, Jul 9, 2018 at 8:08 PM H. Nikolaus Schaller hns@goldelico.com wrote: >> >> Hi Marek, >> >>> Am 05.07.2018 um 16:31 schrieb Belisko Marek marek.belisko@gmail.com: >>> >>> Moving forward a bit: >>> dmesg | grep -i aess >>> [ 6.698601] aess 401f1000.aess: ASoC: dai register 401f1000.aess #6 >>> [ 6.722268] aess 401f1000.aess: ASoC: invalid header size for type >>> 0 at offset 0x0 size 0x1a5e8. >>> [ 6.778381] aess 401f1000.aess: request for AESS FW failed -22 >>> [ 6.784506] aess 401f1000.aess: ASoC: failed to probe component -22 >>> >>> looks like I need to grab some other FW. Everything (wip) pushed to: >>> work-aess-4.17.3 >>> >>> BR, >>> >>> marek >>> On Thu, Jul 5, 2018 at 3:26 PM Belisko Marek marek.belisko@gmail.com wrote: >>>> >>>> Hi Nikolaus, >>>> >>>> yes it needs more patches from ti, working on it. >>>> >>>> BR, >>>> >>>> marek >>>> On Thu, Jul 5, 2018 at 3:22 PM H. Nikolaus Schaller hns@goldelico.com wrote: >>>>> >>>>> >>>>>> Am 05.07.2018 um 10:53 schrieb Belisko Marek marek.belisko@gmail.com: >>>>>> >>>>>> Hi Nikouals, >>>>>> >>>>>> on my aess branch when added compatible to dts I cannot boot kernel at all: >>>>>> [ 0.000000] Booting Linux on physical CPU 0x0 >>>>>> [ 0.000000] Linux version 4.17.0-letux+ (marek@mbuntu) (gcc version >> >> I have tried to compile, which went fine, and I was able to boot. >> But I did not have installed the firmware... >> >> Some observations: >> 1. the kernel reports to be letux-4.17.0 and not 4.17.3 > OK this is minor stuff I think.
Well, for example, letux-4.17.0 does not have our GAB out-of-bounds write fix. So this may trigger unexpected side-effects. And there were also other minor issues.
> My problem now is that during FW > loading I get an parse error. So IMO it looks like FW is not correct. > I need to dig to the code in soc-topology.c what it is parsing and try > to find such areas in actual firmware.
Ok, fine that you have a traceable symptom!
BR, Nikolaus
>> >> root@letux:~# uname -a >> Linux letux 4.17.0-letux+ #2535 SMP PREEMPT Mon Jul 9 17:32:57 CEST 2018 armv7l GNU/Linux >> root@letux:~# >> >> I'd suggest to merge/rebase on top of letux-4.17.3 >> (http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4...) >> because that version includes some significant fixes and this may be part of your trouble. >> >> 2. aess driver is loaded (but not firmware) >> >> root@letux:~# dmesg|fgrep aess >> [ 6.044004] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -2 >> [ 6.095322] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -2 >> root@letux:~# >> >> root@letux:~# lsmod|fgrep abe >> snd_soc_omap_abe_twl6040 20480 0 >> snd_soc_twl6040 28672 1 snd_soc_omap_abe_twl6040 >> snd_soc_omap_mcbsp 24576 1 snd_soc_omap_abe_twl6040 >> snd_soc_omap_aess 61440 2 snd_soc_omap_abe_twl6040,snd_soc_omap_mcpdm >> root@letux:~# >> >> 3. aplay does only report the HDMI encoder >> >> root@letux:~# aplay -l >> **** List of PLAYBACK Hardware Devices **** >> card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 [] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> root@letux:~# >> >> I hope this helps to move forwards. >> >> BR, >> Nikolaus >> > > BR, > > marek > > -- > as simple and primitive as possible > ------------------------------------------------- > Marek Belisko - OPEN-NANDRA > Freelance Developer > > Ruska Nova Ves 219 | Presov, 08005 Slovak Republic > Tel: +421 915 052 184 > skype: marekwhite > twitter: #opennandra > web: http://open-nandra.com
http://projects.goldelico.com/p/gta04-kernel/ Letux-kernel mailing list Letux-kernel@openphoenux.org http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Hi,
sorry I was away for a holiday and not checked mails...
On 2018-06-27 21:52, Belisko Marek wrote:
Hi Peter,
sorry for bothering you directly. I'm working on (continue on adding AESS support for pyra). Andrey mentioned thread [0] where you shared AESS firmware. I tried to fetch it but unfortunately repo seems to be down. Can you please it again (if possible). Many thanks.
I have migrated things to github a while back: https://github.com/omap-audio/linux-audio
The same branches are cloned and should be accessible.
On note: the firmware/omap-aess-adfw.bin is the AESS firmware with the dynamic firmware 'wrap'.
It was created with: https://github.com/omap-audio/abefw/tree/peter/bnw https://github.com/omap-audio/asoc-fw/tree/peter/bnw
the abefw repo contains the bare AESS firmware. There are instructions on how to build it.
The asoc-fw repos is to build the ASoC dynamic firmware image.
- Péter
On Tue, Jun 26, 2018 at 8:14 AM Belisko Marek marek.belisko@gmail.com wrote:
Hi Michael, On Tue, Jun 26, 2018 at 1:02 AM Michael Mrozek EvilDragon@openpandora.org wrote:
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us: https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Cool. Thanks for sharing. I'll check.
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051. html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter.
BR,
marek [0]- https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Hi Peter, On Wed, Jul 18, 2018 at 10:29 AM Peter Ujfalusi peter.ujfalusi@ti.com wrote:
Hi,
sorry I was away for a holiday and not checked mails...
On 2018-06-27 21:52, Belisko Marek wrote:
Hi Peter,
sorry for bothering you directly. I'm working on (continue on adding AESS support for pyra). Andrey mentioned thread [0] where you shared AESS firmware. I tried to fetch it but unfortunately repo seems to be down. Can you please it again (if possible). Many thanks.
I have migrated things to github a while back: https://github.com/omap-audio/linux-audio
The same branches are cloned and should be accessible.
On note: the firmware/omap-aess-adfw.bin is the AESS firmware with the dynamic firmware 'wrap'.
It was created with: https://github.com/omap-audio/abefw/tree/peter/bnw https://github.com/omap-audio/asoc-fw/tree/peter/bnw
the abefw repo contains the bare AESS firmware. There are instructions on how to build it.
I followed instruction on abefw and was able to compile abegen and then using script generate omap_abe_fw IIRC this FW can be used to load to AESS (even without dynamic wrap content)?
The asoc-fw repos is to build the ASoC dynamic firmware image.
I'll try to hack new soc-topology changes and post pull request.
- Péter
Thanks and BR,
marek
On Tue, Jun 26, 2018 at 8:14 AM Belisko Marek marek.belisko@gmail.com wrote:
Hi Michael, On Tue, Jun 26, 2018 at 1:02 AM Michael Mrozek EvilDragon@openpandora.org wrote:
On Mo, 2018-06-25 at 20:43 +0100, Andrey Utkin wrote:
Oh, and it seems Peter already pushed the firmware for us: https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Cool. Thanks for sharing. I'll check.
On Mon, Jun 25, 2018 at 08:51:26PM +0200, Belisko Marek wrote:
Nope unfortunately I became subscriber last week only :(.
The archive appears to work if you add a security exception to work around invalid HTTPS certificate:
https://www.pyra-handheld.com/pipermail/kernel/2017-September/002051. html
Also just search for all mentions of AESS, ABE in the whole archive.
Also just bug Peter :-P
DO you have binary blob so we can test at least some parts? Thanks.
I don't see any firmware files around, also I never really knew which to use. My vague understanding was that it depends which branch of TI kernel you use. So again, best of luck reading the archives and bugging Peter.
BR,
marek [0]- https://www.pyra-handheld.com/pipermail/kernel/2014-March/000276.html
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Hi Andrey,
Am 25.06.2018 um 20:48 schrieb Andrey Utkin andrey_utkin@fastmail.com:
On Mon, Jun 25, 2018 at 07:46:08PM +0200, H. Nikolaus Schaller wrote:
Hi, Marek has updated and fixed some issues in the work pioneered by Andrey and I have rebased it on top of linus/v4.18-rc2.
That's great! Thanks Marek and congrats to everyone!
Next I think we have to test it and learn how to use it.
I, for example, have no idea how to configure or which additional BLOBs are needed so that aplay works with AESS...
Yeah. I haven't familiarized much with AESS firmware aspect, Peter Ujfalusi from TI knows it best. Peter has already shared quite some knowledge in "Porting AESS (ABE) kernel driver" thread. Unfortunately web archive of kernel@pyra-handheld.com ML is not working well - Marek, do you have that thread in your local archives?
@Andrey: most patches from you are missing a signed-off which makes it impossible to upstream, despite being GPL and open source. For Letux OS we are not that strict, especially for experimental features, but we should consider trying to get it upstream (although it might be difficult for other reasons for AESS).
Meh, I'm fine with whoever just taking the diff and signing with their name. All I was doing, IIRC, is porting bits of code from TI tree,
Yes, there is an initial import commit of some stuff. And then cherry-picked work by TI and fixes by you.
BTW: do you have the exact link (repo + branch + commit) where you did get the initial files from?
It may be possible to cherry-pick some more patches that did lead to what you have initially imported. I recently did the same for the bq2429x driver which was originally a single copy&paste from some rokchip repository.
so it's not like I'm exactly the author.
Well, signing off is not the same as original authorship. "Author" is a separate field in the git header and/or source code file. According to e.g.
https://stackoverflow.com/questions/1962094/what-is-the-sign-off-feature-in-...
mainly that it certifies that it is really open source and does not infringe copyright of someone else and is compatible in license.
Also commits I produces are not exactly in the shape Linux upstream maints would accept.
That is IMHO not meant by signed-off, that it is acceptable code.
Almost all of our feature branches are not (yet) acceptable... So it certainly needs a lot of polishing and rework, but that is different from signed-off. Maybe the person that edits the commits adds his/her own signed-off to describe that the edits are original work.
BR, Nikolaus
On Mo, 2018-06-25 at 19:46 +0200, H. Nikolaus Schaller wrote:
Hi,
I, for example, have no idea how to configure or which additional BLOBs are needed so that aplay works with AESS...
As far as I know, it doesn't have anything to do with aplay. Basically, if installed properly, the full sound system should make use of it (otherwise, it wouldn't really make sense ;))