How many threads does RTEMS create?

2020-12-27 Thread Richi Dubey
Hi,

When I am debugging the tm24 running on Strong APA scheduler, I can see
that when the Tasks

function is being executed, there are two threads with priority 2, with
status SCHEDULER_SMP_NODE_BLOCKED in the list of threads, with both of them
having different addresses. How can there be two such threads?  Shouldn't
there only be a single thread with priority 2 that runs the High_task

function? Please let me know your views about this.



Thank you,
Richi.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH v3 2/2] libtests/ofw01: Added a test for RTEMS OFW

2020-12-27 Thread Niteesh G. S.
Hello Christian,

On Sun, Dec 27, 2020 at 2:39 PM Christian Mauderer 
wrote:

> Hello Niteesh,
>
> I pushed the two patches.
>
Thanks for pushing the patches.

Thanks,
Niteesh.

> Best regards
>
> Christian
>
> On 22/12/2020 19:01, Niteesh G. S. wrote:
> > Hello Christian,
> >
> > On Tue, Dec 22, 2020 at 6:33 PM Christian Mauderer  > > wrote:
> >
> > Hello Niteesh,
> >
> > On 19/12/2020 16:57, Niteesh G. S. wrote:
> >  > Hello Christian,
> >  >
> >  > On Sat, Dec 19, 2020 at 7:11 PM Christian Mauderer
> > mailto:o...@c-mauderer.de>
> >  > >> wrote:
> >  >
> >  > Hello Niteesh,
> >  >
> >  > sorry, I somehow forget to check that patch set. I'll do it
> > in the next
> >  > few days.
> >  >
> >  > No problem, please take your time :).
> >
> > I have a problem with the patches on a non-fdt-BSP: The test doesn't
> > link. I tried it with the xilinx_zynq_a9_qemu BSP.
> >
> >
> > Basically the bsp_fdt_get() is missing on that BSP. To work arround
> > that, it is possible to change the return statement in the
> > __wrap_bsp_fdt_get to:
> >
> >
> >   #ifdef BSP_FDT_IS_SUPPORTED
> > return __real_bsp_fdt_get();
> >   #else
> >return some_bin;
> >   #endif
> >
> > I am sorry for not testing it on a non-fdt-BSP, I totally forgot about
> > this part though
> > you mentioned it in the previous patch.
> >
> > Note that in the no-fdt-bsp-case, it has to return a valid FDT
> because
> > otherwise the ofw initialization fails.
> >
> > I tested that modified version on xilinx_zynq_a9_qemu and on BBB and
> it
> > seems to work fine. If you are OK with this modification (and no one
> > objects in the next two days) I'll push the patches with this
> > modification.
> >
> >
> > Please push if no one objects.
> >
> >  > If you are on vacation, enjoy your vacations :)
> >
> > Thanks. It wouldn't be reasonable to travel during a pandemic and I
> > don't like traveling anyway.
> >
> > +1
> >
> > Therefore it's a quiet and relaxing
> > vacation ;-)
> >
> >
> > :)
> >
> >
> > Thanks,
> > Niteesh.
> >
> > Best regards
> >
> > Christian
> >
> >  >
> >  > Thanks,
> >  > Niteesh.
> >  >
> >  >
> >  > Best regards
> >  >
> >  > Christian
> >  >
> >  > On 17/12/2020 12:15, Niteesh G. S. wrote:
> >  >  > ping.
> >  >  >
> >  >  >
> >  >  > On Fri, Dec 4, 2020 at 1:41 PM G S Niteesh Babu
> >  > mailto:niteesh...@gmail.com>
> > >
> >  >  > 
> >  >  >  >
> >  >  > This commit adds a basic test that tests all the
> > implemented
> >  >  > RTEMS OFW functions.
> >  >  > ---
> >  >  >   spec/build/testsuites/libtests/grp.yml   |   2 +
> >  >  >   spec/build/testsuites/libtests/ofw01.yml |  21 +++
> >  >  >   testsuites/libtests/ofw01/init.c | 197
> >  > +++
> >  >  >   testsuites/libtests/ofw01/ofw01.doc  |  29 
> >  >  >   testsuites/libtests/ofw01/ofw01.scn  |   2 +
> >  >  >   testsuites/libtests/ofw01/some.c |  72
> +
> >  >  >   testsuites/libtests/ofw01/some.dts   |  76
> +
> >  >  >   testsuites/libtests/ofw01/some.h |  15 ++
> >  >  >   8 files changed, 414 insertions(+)
> >  >  >   create mode 100644
> > spec/build/testsuites/libtests/ofw01.yml
> >  >  >   create mode 100644 testsuites/libtests/ofw01/init.c
> >  >  >   create mode 100644
> testsuites/libtests/ofw01/ofw01.doc
> >  >  >   create mode 100644
> testsuites/libtests/ofw01/ofw01.scn
> >  >  >   create mode 100644 testsuites/libtests/ofw01/some.c
> >  >  >   create mode 100644 testsuites/libtests/ofw01/some.dts
> >  >  >   create mode 100644 testsuites/libtests/ofw01/some.h
> >  >  >
> >  >  > diff --git a/spec/build/testsuites/libtests/grp.yml
> >  >  > b/spec/build/testsuites/libtests/grp.yml
> >  >  > index aff46c9f8f..82c2288e2f 100644
> >  >  > --- a/spec/build/testsuites/libtests/grp.yml
> >  >  > +++ b/spec/build/testsuites/libtests/grp.yml
> >  >  > @@ -316,6 +316,8 @@ links:
> >  >  > uid: write
> >  >  >   - role: build-dependency
> >  >  > uid: writev
> >  >  > +- role: build-dependency
> >  >  > +  uid: ofw01
> >  >  >   type: 

Re: [PATCH v3 2/2] libtests/ofw01: Added a test for RTEMS OFW

2020-12-27 Thread Christian Mauderer

Hello Niteesh,

I pushed the two patches.

Best regards

Christian

On 22/12/2020 19:01, Niteesh G. S. wrote:

Hello Christian,

On Tue, Dec 22, 2020 at 6:33 PM Christian Mauderer > wrote:


Hello Niteesh,

On 19/12/2020 16:57, Niteesh G. S. wrote:
 > Hello Christian,
 >
 > On Sat, Dec 19, 2020 at 7:11 PM Christian Mauderer
mailto:o...@c-mauderer.de>
 > >> wrote:
 >
 >     Hello Niteesh,
 >
 >     sorry, I somehow forget to check that patch set. I'll do it
in the next
 >     few days.
 >
 > No problem, please take your time :).

I have a problem with the patches on a non-fdt-BSP: The test doesn't
link. I tried it with the xilinx_zynq_a9_qemu BSP.


Basically the bsp_fdt_get() is missing on that BSP. To work arround
that, it is possible to change the return statement in the
__wrap_bsp_fdt_get to:


      #ifdef BSP_FDT_IS_SUPPORTED
        return __real_bsp_fdt_get();
      #else
       return some_bin;
      #endif

I am sorry for not testing it on a non-fdt-BSP, I totally forgot about 
this part though

you mentioned it in the previous patch.

Note that in the no-fdt-bsp-case, it has to return a valid FDT because
otherwise the ofw initialization fails.

I tested that modified version on xilinx_zynq_a9_qemu and on BBB and it
seems to work fine. If you are OK with this modification (and no one
objects in the next two days) I'll push the patches with this
modification.


Please push if no one objects.

 > If you are on vacation, enjoy your vacations :)

Thanks. It wouldn't be reasonable to travel during a pandemic and I
don't like traveling anyway.

+1

Therefore it's a quiet and relaxing
vacation ;-)


:)


Thanks,
Niteesh.

Best regards

Christian

 >
 > Thanks,
 > Niteesh.
 >
 >
 >     Best regards
 >
 >     Christian
 >
 >     On 17/12/2020 12:15, Niteesh G. S. wrote:
 >      > ping.
 >      >
 >      >
 >      > On Fri, Dec 4, 2020 at 1:41 PM G S Niteesh Babu
 >     mailto:niteesh...@gmail.com>
>
 >      > 
      >
 >      >     This commit adds a basic test that tests all the
implemented
 >      >     RTEMS OFW functions.
 >      >     ---
 >      >       spec/build/testsuites/libtests/grp.yml   |   2 +
 >      >       spec/build/testsuites/libtests/ofw01.yml |  21 +++
 >      >       testsuites/libtests/ofw01/init.c         | 197
 >     +++
 >      >       testsuites/libtests/ofw01/ofw01.doc      |  29 
 >      >       testsuites/libtests/ofw01/ofw01.scn      |   2 +
 >      >       testsuites/libtests/ofw01/some.c         |  72 +
 >      >       testsuites/libtests/ofw01/some.dts       |  76 +
 >      >       testsuites/libtests/ofw01/some.h         |  15 ++
 >      >       8 files changed, 414 insertions(+)
 >      >       create mode 100644
spec/build/testsuites/libtests/ofw01.yml
 >      >       create mode 100644 testsuites/libtests/ofw01/init.c
 >      >       create mode 100644 testsuites/libtests/ofw01/ofw01.doc
 >      >       create mode 100644 testsuites/libtests/ofw01/ofw01.scn
 >      >       create mode 100644 testsuites/libtests/ofw01/some.c
 >      >       create mode 100644 testsuites/libtests/ofw01/some.dts
 >      >       create mode 100644 testsuites/libtests/ofw01/some.h
 >      >
 >      >     diff --git a/spec/build/testsuites/libtests/grp.yml
 >      >     b/spec/build/testsuites/libtests/grp.yml
 >      >     index aff46c9f8f..82c2288e2f 100644
 >      >     --- a/spec/build/testsuites/libtests/grp.yml
 >      >     +++ b/spec/build/testsuites/libtests/grp.yml
 >      >     @@ -316,6 +316,8 @@ links:
 >      >         uid: write
 >      >       - role: build-dependency
 >      >         uid: writev
 >      >     +- role: build-dependency
 >      >     +  uid: ofw01
 >      >       type: build
 >      >       use-after:
 >      >       - rtemstest
 >      >     diff --git a/spec/build/testsuites/libtests/ofw01.yml
 >      >     b/spec/build/testsuites/libtests/ofw01.yml
 >      >     new file mode 100644
 >      >     index 00..8517c58bad
 >      >     --- /dev/null
 >      >     +++ b/spec/build/testsuites/libtests/ofw01.yml
 >      >     @@ -0,0 +1,21 @@
 >      >     +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 >      >     +build-type: test-program
 >      >     +cflags: []
 >      >     +copyrights:
 >      >     +- Copyright (C) 2020