qinwei2004 commented on PR #6478:
URL: https://github.com/apache/incubator-nuttx/pull/6478#issuecomment-1185097313

   > I would like to say Congratulations on this HUGE PR!
   > 
   > In the Single Core case, `ostest` is running successfully for me.
   > 
   > In the SMP case, it seems that `ostest` fails or hangs in different 
places, but my system is ancient and I am running QEMU 3.1.0 (!!!), so it is 
possible that I am seeing old bugs in QEMU. I would need to upgrade my system 
and try the latest QEMU before I could draw any conclusions.
   > 
   > Anyway, this PR is a very good starting point for NuttX on Arm64 and I 
look forward to seeing NuttX on real Arm64 hardware!
   
   Yes, for SMP,the PR in qemu seem behave very different!!
   In the beginning, I debug the PR with Ubuntu which is running in VMware. For 
Single Core, everything is OK, but for SMP, ostest  hangs in different places 
just like your description. After fix some cache sync issue, the crash is 
occurred at signal testing every time, I check the crash with GDB and see a 
very strange phenomenon that data is different between CPU register and seeing 
with GDB, so it seem a data sync issue. I try different cache sync operation at 
this crash point  but not work at all
   
   things change when I debug the PR with a real Ubuntu PC, the crash not 
occurs anymore in that environment. I cannot explain why I see the phenomenon, 
but I cannot say it's certain a bug in qemu. because maybe  with different 
speed it have different execution order between these two environment. 
   
   My real Ubuntu environment
   Ubuntu 18.04.6 LTS
   QEMU emulator version 4.0.1 (v4.0.1)
   Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
   memory: 16GB
   
   I have a IMX8 porting patch but some change need to be done, I will testing 
it and submit ASAP
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to