You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:17:57 UTC

[GitHub] [incubator-nuttx] acassis opened a new pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

acassis opened a new pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454


   ## Summary
   NuttX has many user traps that we need to disarm, when working with
   NX Graphics the message queue is required to be at least 64 bytes.
   
   Bernd Walter faced this issue in the past:
   
   "NX requires a max message size of >=64 and mine was set to 32.
   Now it does something.
   No Hello World on the screen though, but that might be a problem
   somewhere else."
   ## Impact
   Users will get NX working when selecting NX support
   ## Testing
   ESP32


-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] acassis commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
acassis commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699662784



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       My initial idea was just make the default 32 bytes, but it could waste memory for boards with not enough RAM. Yes, I noticed the issue, Kconfig is not dynamic it doesn't run the rules during its executing. I think only the "depends" rules are checked during the execution.




-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454


   


-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699654915



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       I agree with the motivation, but the proposed solution fails to achieve its intent.
   The default value of 64 will only be effective in the following scenario:
   1) User selects `CONFIG_DISABLE_MQUEUE` for deactivating message queue support
   2) User enables `CONFIG_NX`
   3) User deselects `CONFIG_DISABLE_MQUEUE`
   
   So, given the need for this very specific scenario, I believe we need to come up with a better solution.




-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454


   


-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699672668



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       Imposing a default value for a given config is not scalable. Imagine if 300 configs required a different default value, it would become messy.
   It would be better if each config/subsystem performs a sanity check, either in Kconfig via `depends on` or at build time.




-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] acassis commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
acassis commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699662784



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       My initial idea was just make the default 32 bytes, but it could waste memory for boards with not enough RAM. Yes, I noticed the issue, Kconfig is not dynamic it doesn't run the rules during its executing. I think only the "depends" rules are checked during the execution.




-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699654915



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       I agree with the motivation, but the proposed solution fails to achieve its intent.
   The default value of 64 will only be effective in the following scenario:
   1) User selects `CONFIG_DISABLE_MQUEUE` for deactivating message queue support
   2) User enables `CONFIG_NX`
   3) User deselects `CONFIG_DISABLE_MQUEUE`
   So, given the need for this very specific scenario, I believe we need a better solution.

##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       I agree with the motivation, but the proposed solution fails to achieve its intent.
   The default value of 64 will only be effective in the following scenario:
   1) User selects `CONFIG_DISABLE_MQUEUE` for deactivating message queue support
   2) User enables `CONFIG_NX`
   3) User deselects `CONFIG_DISABLE_MQUEUE`
   
   So, given the need for this very specific scenario, I believe we need a better solution.

##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       I agree with the motivation, but the proposed solution fails to achieve its intent.
   The default value of 64 will only be effective in the following scenario:
   1) User selects `CONFIG_DISABLE_MQUEUE` for deactivating message queue support
   2) User enables `CONFIG_NX`
   3) User deselects `CONFIG_DISABLE_MQUEUE`
   
   So, given the need for this very specific scenario, I believe we need to come up with a better solution.

##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       Imposing a default value for a given config is not scalable. Imagine if 300 configs required a different default value, it would become messy.
   It would be better if each config/subsystem performs a sanity check, either in Kconfig via `depends on` or at build time.

##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       Imposing a default value for a given config is not scalable. Imagine if 300 configs required a different default value, it would become messy.
   It would be better if each config/subsystem performs a sanity check, either in Kconfig via `depends on` or at build time (preferrable).




-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699654915



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       I agree with the motivation, but the proposed solution fails to achieve its intent.
   The default value of 64 will only be effective in the following scenario:
   1) User selects `CONFIG_DISABLE_MQUEUE` for deactivating message queue support
   2) User enables `CONFIG_NX`
   3) User deselects `CONFIG_DISABLE_MQUEUE`
   So, given the need for this very specific scenario, I believe we need a better solution.

##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       I agree with the motivation, but the proposed solution fails to achieve its intent.
   The default value of 64 will only be effective in the following scenario:
   1) User selects `CONFIG_DISABLE_MQUEUE` for deactivating message queue support
   2) User enables `CONFIG_NX`
   3) User deselects `CONFIG_DISABLE_MQUEUE`
   
   So, given the need for this very specific scenario, I believe we need a better solution.




-- 
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-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4454: user/trap: Set MQ_MAXMSGSIZE to 64 to get NX working

Posted by GitBox <gi...@apache.org>.
gustavonihei commented on a change in pull request #4454:
URL: https://github.com/apache/incubator-nuttx/pull/4454#discussion_r699672668



##########
File path: sched/Kconfig
##########
@@ -1588,7 +1588,8 @@ config PREALLOC_MQ_IRQ_MSGS
 
 config MQ_MAXMSGSIZE
 	int "Maximum message size"
-	default 32
+	default 32 if !NX

Review comment:
       Imposing a default value for a given config is not scalable. Imagine if 300 configs required a different default value, it would become messy.
   It would be better if each config/subsystem performs a sanity check, either in Kconfig via `depends on` or at build time (preferrable).




-- 
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-unsubscribe@nuttx.apache.org

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