CONFIG_SMP_IDLETHREAD_STACKSIZE vs CONFIG_IDLETHREAD_STACKSIZE

2020-03-30 Thread Takashi Yamamoto
hi,

these configs have the following default values:

  CONFIG_SMP_IDLETHREAD_STACKSIZE=2048
  CONFIG_IDLETHREAD_STACKSIZE=1024

is there any rationale of these values?
the kconfig help text seems to suggest the opposite; the SMP one
should be smaller.


Re: CONFIG_SMP_IDLETHREAD_STACKSIZE vs CONFIG_IDLETHREAD_STACKSIZE

2020-03-30 Thread Gregory Nutt




these configs have the following default values:

   CONFIG_SMP_IDLETHREAD_STACKSIZE=2048
   CONFIG_IDLETHREAD_STACKSIZE=1024

is there any rationale of these values?
the kconfig help text seems to suggest the opposite; the SMP one
should be smaller.


Partially.  Yes, there is a reason for the to stacksizes to be 
different.  CPU0 is different from all of the other CPUs. 
CONFIG_IDLETHREAD_STACKSIZE is for CPU0; CONFIG_SMP_IDLETHREAD_STACKSIZE 
is for the other CPUs.  CPU0 must do all of the hardware initialization 
and OS bring-up plus start the initial task.  The other CPUs don't have 
to do any of that initialization.


That means that CONFIG_IDLETHREAD_STACKSIZE should be relatively large; 
CONFIG_SMP_IDLETHREAD_STACKSIZE, on the other hand, may be relatively small.


But that is not what I am seeing in the configuration data you are 
showing.  It looks unoptimized.  2048 is the default size for almost all 
stacks.  The idea is that you want everything to run "out of the box" 
and people producing products should take the time to tune the most 
appropriate stack sizes for a product.  2048 is usually bigger than is 
needed.


So I think that CONFIG_IDLETHREAD_STACKSIZE has been tuned to 1024 but 
CONFIG_SMP_IDLETHREAD_STACKSIZE is still at the default of 2048 and is 
need of tuning.  It could probably be as small as 512 or 768 bytes I 
would think.


Greg



USB Host drive porting - after enumeration....

2020-03-30 Thread Phani Kumar
Hi Greg and all,

I am currently at the last stage of USB Host driver (currently using HID
KBD for test) development. If any of you have developed this kind of Host
driver/ ported - please let me know, your suggestions/ comments/
observations. It would help me a lot.

Currently I am done with the basic driver of USB Host. As soon as the
device is connected, connect event triggers and enumerates the device. This
completes getting all the details from device (mainly this is done in
usbhost_enumerate.c). I can see all the data going from device and finally
host also sets the configuration of the device. Which seems to be last
stage of the enumeration. Also if I list the folder under /dev, I see kbda
and assume enumeration is successful.
nsh> ls /dev
/dev:
console
*kbda*
null
ttyS2
ttyS8

After this, I don't see any thing from upper layer - so no activity happens
on the bus. At this point (after enumeration is done), what is the next
step? Who should start request to read the device (as the device is HID
KBD, which is already identified during enumeration).

Also I tried the Hidkbd example and I see the same behavior, as above.

Any of your comments/ suggestions/ observations on what is the next step
after enumeration - it would be really helps me a lot.

Thanks in advance and With best regards,
Phani.

>


Re: The Release

2020-03-30 Thread Adam Feuer
Ok, I copied that release checklist and put in the wiki here:

https://cwiki.apache.org/confluence/display/NUTTX/Release+9.0+Checklist

We can edit to check off items as needed.

-adam

On Sun, Mar 29, 2020 at 2:15 PM Justin Mclean 
wrote:

> Hi,
>
> I would make a check list like so [1], this one assumes you are using the
> ordinary disclaimer. I’ve reviewed hundreds and hundreds of releases so can
> help out. I also know what the IPMC looks out for and I’m currently the VP
> of the Incubator.
>
> Thanks,
> Justin
>
> 1.
> https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist



-- 
Adam Feuer 


Re: [DISCUSS] Release Notes

2020-03-30 Thread Adam Feuer
Here's a list of all closed PRs since 2019-11-16, the date of NuttX release
8.2:

https://github.com/apache/incubator-nuttx/pulls?q=is%3Apr+is%3Aclosed+closed%3A%3E2019-11-16+

There are 613 closed PRs. This might be motivation to get back to doing
them every two months. :)

-adam

On Sun, Mar 29, 2020 at 2:07 PM Adam Feuer  wrote:

> Nathan,
>
> A quick Google search yielded Reno – tooling for managing release notes.
>
> Reno docs:
> https://docs.openstack.org/reno/latest/
>
> Reno source code:
> https://github.com/openstack/reno
>
> It can use ReStructuredText (RST) and has Sphinx integration. Zephyr,
> Rust, Clang, Python, and others also use RST and Sphinx.
>
> -adam
>
> On Sun, Mar 29, 2020 at 1:48 PM Nathan Hartman 
> wrote:
>
>> On Sun, Mar 29, 2020 at 2:03 PM Gregory Nutt  wrote:
>> > The organization of the release notes is fine, it is just making the
>> > level of effort needed to produce them manageable.  This begs for some
>> > kind of tooling.
>>
>> I wonder if there is some Free/Open Source tooling that already exists
>> (preferably something with a community and user base that already
>> exists around it) that we could adopt for this purpose.
>>
>> Can anyone recommend such a tool?
>>
>> Nathan
>>
>
>
> --
> Adam Feuer 
>


-- 
Adam Feuer 


Build failed in Jenkins: NuttX-Nightly-Build #81

2020-03-30 Thread Apache Jenkins Server
See 

Changes:


--
[...truncated 515.51 KB...]

Configuration/Tool: sim/tcpblaster

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...


Configuration/Tool: sim/touchscreen

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...


Configuration/Tool: sim/bas

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...

In file included from bas.c:84:0:
bas.c: In function 'bas_interpreter':
bas_error.h:110:37: warning: left-hand operand of comma expression has no 
effect [-Wunused-value]
 #define NOSUCHLINE STATIC+40, _("No such line")
 ^
bas.c:2425:52: note: in expansion of macro 'NOSUCHLINE'
   FS_putChars(STDCHANNEL, (NOSUCHLINE));
^~
bas_fs.c:107:22: warning: 'g_vt100_colormap' defined but not used 
[-Wunused-const-variable=]
 static const uint8_t g_vt100_colormap[8] =
  ^~~~
:4048:16: warning: 'input' defined but not used [-Wunused-function]

Configuration/Tool: sim/mtdpart

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...


Configuration/Tool: sim/spiffs

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...


Configuration/Tool: sim/ustream

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...

local/local_connect.c: In function 'psock_local_connect':
local/local_connect.c:292:2: warning: #warning Missing logic [-Wcpp]
 #warning Missing logic
  ^~~

Configuration/Tool: sim/userfs

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...

local/local_fifo.c: In function 'local_release_halfduplex':
local/local_fifo.c:449:4: warning: #warning Missing logic [-Wcpp]
 #  warning Missing logic
^~~
local/local_sockif.c: In function 'local_connect':
local/local_sockif.c:550:2: warning: #warning Missing logic [-Wcpp]
 #warning Missing logic
  ^~~
local/local_sockif.c: In function 'local_send':
local/local_sockif.c:695:2: warning: #warning Missing logic [-Wcpp]
 #warning Missing logic
  ^~~
local/local_connect.c: In function 'psock_local_connect':
local/local_connect.c:292:2: warning: #warning Missing logic [-Wcpp]
 #warning Missing logic
  ^~~

Skipping: sim/rpproxy

Configuration/Tool: sim/vpnkit

  Cleaning...
  Configuring...
  Copy files
  Select CONFIG_HOST_LINUX=y
  Refreshing...
  Building NuttX...

local/local_fifo.c: In function 'local_release_halfduplex':
local/local_fifo.c:

NuttX seminar online 1th April 2020 14:30 European time

2020-03-30 Thread Disruptive Solutions
In these Corona days I have the idea to make a online seminar “Getting started 
with Nuttx”. I also made a VirtualBox image for the participants. I am still 
learning Nuttx myself, but you learn the most when you teach right?

https://us04web.zoom.us/j/361350421?pwd=RGlhUkcxOG5XOUhDYVdINks5eFVrZz09

https://www.dropbox.com/sh/n51ficlngwpn6l7/AADaqVA-B0bICxNZp1ZskQXLa?dl=0

Maybe I will see you there? I have never used this platform before and it can 
handle 100 participants. So I hope all goes well. I have tested it with a few 
people. 

Thanks.

@Alan
I have tried to reach you and thought something was wrong. But I heared you are 
fine. I am glad!!

Ben

Verstuurd vanaf mijn iPhone