santhosh-c-c commented on PR #22261:
URL: https://github.com/apache/nuttx/pull/22261#issuecomment-7154195250

   @zyfeier @jasonbu a few questions regarding the design
   
   **1. Kconfig help vs. PR description**
   
   The `BMP` help text says "a single copy of the OS maintains an overall view 
of all system resources" and "You can use both SMP and BMP on the same system". 
The description says "each CPU runs its own kernel instance", and the `choice` 
makes SMP and BMP mutually exclusive.
   
   **2. BMP vs. AMP naming**
   
   QNX defines BMP as "a single instantiation of an OS manages all CPUs 
simultaneously, but you can lock individual applications or threads to a 
specific CPU", and AMP as "a separate OS, or a separate instantiation of the 
same OS, runs on each CPU". Green Hills (CAST-32A, ARINC 653 Supp. 4/5) calls 
BMP "an enhanced and restricted form of SMP". One kernel per CPU with shared 
code looks like homogeneous AMP. Would a name like `CONFIG_AMP_SHARED_IMAGE` 
work, so `BMP` keeps its industry meaning?
   
   **3. `CONFIG_NCPUS`**
   
   `PERCPU_ARRAY` uses `CONFIG_NCPUS`, but I only find `CONFIG_SMP_NCPUS`. Is 
it defined somewhere? Otherwise the first `DEFINE_PER_CPU_SMP` user breaks the 
SMP build.
   
   **4. Isolation and D-cache**
   
   Is MPU separation between instances planned, and a strict per-CPU/shared 
data split so the D-cache can be enabled on non-coherent parts like TriCore? If 
not, what does this model gain over SMP with strict affinity?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to