Kirkwood, kernel 3.2, vmalloc region overlap, not starting up
Hi Nils
There was a thread a while back about CONFIG_ARM_PATCH_PHYS_VIRT causing problem with some kirkwood boards. Maybe try disabling this and set CONFIG_PHYS_OFFSET=0x0.
However, it could be a different problem...
Andrew
Am 07.02.2012 16:29, schrieb Andrew Lunn:
Quoted 1 line
Hi Nils
Hey Andrew!
Quoted 5 lines
There was a thread a while back about
CONFIG_ARM_PATCH_PHYS_VIRTcausing problem with some kirkwood boards. Maybe try disabling this and setCONFIG_PHYS_OFFSET=0x0.However, it could be a different problem...
Nope, nothing elese, it worked exactly as you described it! (Though it took me some minutes to find the options in menuconfig).
Here it is happily up again:
root at tk71:~# uname -a
Linux tk71 3.2.0-00012-g980d683-dirty #31 Tue Feb 7 17:04:50 CET 2012 armv5tel GNU/Linux
Thanks a million!
Should we ever meet in person - I now officially owe you a beer (or other drink at your choice :)
Apart from my joy - the basic reason for that change would be still interesting? Does this only apply to Kirwoods or my special board?
Quoted 1 line
Andrew
Thanks again!
Cheers
nils
Signature · 4 lines
kernel concepts GbR Tel: +49-271-771091-12 Sieghuetter Hauptweg 48 Fax: +49-271-771091-19 D-57072 Siegen Mob: +49-176-21024535 http://www.kernelconcepts.de
Quoted 2 lines · Nils Faerber
Apart from my joy - the basic reason for that change would be still interesting? Does this only apply to Kirwoods or my special board?
I don't think it's related to the uboot caching issues (but it could be).
It needs someone to cook up a patch to find out what's going on, but alas I don't have time at the moment, because I'm busy writing ARM kautobuild V2 with kboottest functionality at the moment.
Quoted 2 lines
Apart from my joy - the basic reason for that change would be still interesting? Does this only apply to Kirwoods or my special board?
I think the conversation fizzled out without coming to a conclusion what is wrong. Look back in the archives and see what you can find. The problem hits kirkwood, but i don't know if it also affects other Orion based processors. u-boot also play a role in the problem...
Andrew
Quoted 7 lines · Andrew Lunn
Quoted 2 lines
Apart from my joy - the basic reason for that change would be still interesting? Does this only apply to Kirwoods or my special board?
I think the conversation fizzled out without coming to a conclusion what is wrong. Look back in the archives and see what you can find. The problem hits kirkwood, but i don't know if it also affects other Orion based processors. u-boot also play a role in the problem...
I think what's going on (what's suggested by the uboot patch) is that uboot leaves the L2 cache enabled, and then passes control over to the kernel decompressor.
The kernel decompressor starts, and enables the L1 cache. This unexpectedly enables the L2 cache as well. However, the decompressor is not L2 cache aware, and only cleans the L1 cache.
The decompressor finishes, flushes the L1 cache, and disables the L1 cache (and, because of the way things work, disables the dirty L2 cache.)
We're now in the situation where the kernel text/data may or may not be in RAM, and therefore may or may not be executable.
I don't think that's Nils problem.
But why you've both identified that turning off the V2P stuff fixes it, I'm not sure. It needs debugging (it needs me or someone else to cook up a patch to get some information out of - explicitly - Nils system) so that we can work out what's going on there.
The theory is, the V2P stuff should be able to calculate the physical offset irrespective of the kernel placement, and so having it enabled should be totally transparent. Obviously, something is going wrong. As yet we don't know what's causing Nils problem.
If no one gets there before me, then I'll post a patch for Nils to run with to get some information from his kernel sometime in the next few days, assuming these messages don't get too buried and I don't forget.
Am 07.02.2012 17:51, schrieb Russell King - ARM Linux:
Quoted 31 lines · Andrew Lunn
Quoted 7 lines
Quoted 2 lines
Apart from my joy - the basic reason for that change would be still interesting? Does this only apply to Kirwoods or my special board?
I think the conversation fizzled out without coming to a conclusion what is wrong. Look back in the archives and see what you can find. The problem hits kirkwood, but i don't know if it also affects other Orion based processors. u-boot also play a role in the problem...
I think what's going on (what's suggested by the uboot patch) is that uboot leaves the L2 cache enabled, and then passes control over to the kernel decompressor.
The kernel decompressor starts, and enables the L1 cache. This unexpectedly enables the L2 cache as well. However, the decompressor is not L2 cache aware, and only cleans the L1 cache.
The decompressor finishes, flushes the L1 cache, and disables the L1 cache (and, because of the way things work, disables the dirty L2 cache.)
We're now in the situation where the kernel text/data may or may not be in RAM, and therefore may or may not be executable.
I don't think that's Nils problem.
But why you've both identified that turning off the V2P stuff fixes it, I'm not sure. It needs debugging (it needs me or someone else to cook up a patch to get some information out of - explicitly - Nils system) so that we can work out what's going on there.
Quoted 8 lines
The theory is, the V2P stuff should be able to calculate the physical offset irrespective of the kernel placement, and so having it enabled should be totally transparent. Obviously, something is going wrong. As yet we don't know what's causing Nils problem.
If no one gets there before me, then I'll post a patch for Nils to run with to get some information from his kernel sometime in the next few days, assuming these messages don't get too buried and I don't forget.
If you have anything for me to try I will gladly do it, no problem!
The same issue should also hit most of the other Kirkwood based systems so finding a fix for my TK71 should also resolve issues on quite some other boards.
Cheers
nils
Signature · 4 lines
kernel concepts GbR Tel: +49-271-771091-12 Sieghuetter Hauptweg 48 Fax: +49-271-771091-19 D-57072 Siegen Mob: +49-176-21024535 http://www.kernelconcepts.de
Hi Nils,
Quoted 1 line · Nils Faerber
(Though it took me some minutes to find the options in menuconfig).
If you look closely at the top of the menuconfig screen it says "Press ... </> for Search".
HTH
Johannes