Date   

Re: Issue with k_poll

Venkatesh Sukumaran
 

Anyone familiar with k_poll architecture here? Let me know if you need any other info.

Thanks,
- Venkatesh.


On Wed, Oct 27, 2021 at 12:47 PM Venkatesh Sukumaran <venkatesh.sukumaran@...> wrote:
Hi Zephyr developers,

I was looking at the k_poll mechanism in Zephyr and found that it can potentially miss events from the producer in SMP when the following happens:

1) Set up a bunch of events with K_POLL_TYPE_SIGNAL and K_POLL_MODE_NOTIFY_ONLY.
2) A producer thread calls k_poll_signal_raise() to set the "signalled" field to 1 for event X in the list above.
3) The destination/consumer thread is already in the middle of processing of events and finds the same event X "raised" (from a previous signal_raise() call maybe), runs the handler for the event to completion and sets the "signalled" field to zero.
4) Destination thread goes back to k_poll to pend on events.

Now depending how 2) and 3) are ordered - step 3) could set "signalled" back to zero and lose the update from the producer thread in step 2).

Am I missing something here? Shouldn't we take a snapshot of the events/signals when exiting k_poll in the critical section and pass that to the destination thread? Once, a thread calls k_poll again then "OR" the pending events with events that the thread has not handled so far (if any)?

Thanks,
- Venkatesh.


Updated Event: Zephyr: Power Management Sync #cal-invite

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr: Power Management Sync

When:
Thursday, November 11, 2021
11:00am to 12:00pm
(UTC-08:00) America/Los Angeles
Repeats: Weekly on Thursday

Where:
Microsoft Teams

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:


________________________________________________________________________________
Microsoft Teams meeting
Join on your computer or mobile app
Click here to join the meeting
Or call in (audio only)
+1 321-558-6518,,677440320# United States, Orlando
Phone Conference ID: 677 440 320#
 
________________________________________________________________________________


Fix for mcumgr/smp over serial not adding CRC16 to packet length

Ermel, Dominik
 

Hello,

 

For a long time the Zephyr implementation of mcumgr/smp protocol over serial has not been adding length of CRC16 to the length of the packet,

although mcumgr-cli always did so. This bug has been present due to the information not being included into documentation, which has been

corrected here https://github.com/apache/mynewt-mcumgr/commit/9bd9d55d00bb70f93d85e52d7b016bbbb8c79942.

 

I have created Zephyr issue https://github.com/zephyrproject-rtos/zephyr/issues/39546 that describes the bug, and provided the fix here

https://github.com/zephyrproject-rtos/zephyr/pull/40127; because this fix may break something in software that is already there,

I am sending this e-mail to let you all know about that fix, so that you may voice your concerns under the issue or in the PR for the fix.

 

Best regards,

Dominik

Dominik ERMEL | Senior Software Engineer
Kraków, Poland
nordicsemi.com | devzone.nordicsemi.com

Nordic_logo_signature

 


Event: Zephyr: Power Management Sync - 11/04/2021 #cal-reminder

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Reminder: Zephyr: Power Management Sync

When:
11/04/2021
6:00pm to 7:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:


________________________________________________________________________________
Microsoft Teams meeting
Join on your computer or mobile app
Click here to join the meeting
Or call in (audio only)
+1 321-558-6518,,677440320# United States, Orlando
Phone Conference ID: 677 440 320#
 
________________________________________________________________________________


Updated Event: Zephyr Project: APIs #cal-invite

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr Project: APIs

When:
Tuesday, November 9, 2021
9:00am to 10:00am
(UTC-08:00) America/Los Angeles
Repeats: Weekly on Tuesday

Where:
Microsoft Teams Meeting

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:

Meeting decisions/discussions in their respective PRs, tracked here: https://github.com/zephyrproject-rtos/zephyr/projects/18


________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 317 990 129#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 
________________________________________________________________________________


Updated Event: Zephyr: Networking Forum #cal-invite

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr: Networking Forum

When:
Tuesday, December 7, 2021
8:00am to 9:00am
(UTC-08:00) America/Los Angeles
Repeats: Monthly on the first Tuesday

Where:
Microsoft Teams Meeting

Organizer: tsc@...

An RSVP is requested. Click here to RSVP

Description:


________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 458 216 365#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 
________________________________________________________________________________


Event: Zephyr Project: APIs - 11/02/2021 #cal-reminder

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Reminder: Zephyr Project: APIs

When:
11/02/2021
4:00pm to 5:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams Meeting

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:

Meeting decisions/discussions in their respective PRs, tracked here: https://github.com/zephyrproject-rtos/zephyr/projects/18


________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 317 990 129#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 
________________________________________________________________________________


Re: API meeting: agenda

Carles Cufi
 

Hi Keith,

 

Just merged that one now.

 

Carles

 

From: Keith Short <keithshort@...>
Sent: 02 November 2021 16:44
To: Cufi, Carles <Carles.Cufi@...>
Cc: devel@...; Bursztyka, Tomasz <tomasz.bursztyka@...>; hebad@...
Subject: Re: [Zephyr-devel] API meeting: agenda

 

Hi Carles -

 

I can't make the meeting today, but can you add the following to the agenda:

 

Can that PR get merged?  I believe all outstanding comments have been addressed, including adding a test which was requested by galak@.

 

Regards,

Keith

 

On Tue, Nov 2, 2021 at 5:17 AM Carles Cufi via lists.zephyrproject.org <carles.cufi=nordicsemi.no@...> wrote:


Re: API meeting: agenda

Keith Short
 

Hi Carles -

I can't make the meeting today, but can you add the following to the agenda:

Can that PR get merged?  I believe all outstanding comments have been addressed, including adding a test which was requested by galak@.

Regards,
Keith

On Tue, Nov 2, 2021 at 5:17 AM Carles Cufi via lists.zephyrproject.org <carles.cufi=nordicsemi.no@...> wrote:


Event: Zephyr: Networking Forum - 11/02/2021 #cal-reminder

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Reminder: Zephyr: Networking Forum

When:
11/02/2021
3:00pm to 4:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams Meeting

Organizer: tsc@...

An RSVP is requested. Click here to RSVP

Description:


________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 458 216 365#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 
________________________________________________________________________________


Re: Networking Forum Agenda

Lubos, Robert
 

One topic showed up for Today’s forum:

 

  1. General discussion on native stack/net offload/socket offload coexistence.

 

Therefore the meeting is not cancelled.

 

Regards,

Robert

 

From: devel@... <devel@...> On Behalf Of Lubos, Robert via lists.zephyrproject.org
Sent: wtorek, 2 listopada 2021 11:19
To: devel@...
Subject: [Zephyr-devel] Networking Forum Agenda

 

Hi all,

 

Currently I have no items in the agenda for Today’s networking forum – please let me know if you have something that you want to discuss. Otherwise, I’ll just cancel the meeting.

 

Meeting notes:

https://docs.google.com/document/d/1qFsOpvbyLzhflJbbv4Vl__497pKHDoUCy9hjAveyCX0

 

Shared Folder:

https://drive.google.com/drive/folders/1j6d0FLeOjiMil1Ellb59AsfHdzuWdAAc?usp=sharing

 

Teams meeting:
https://teams.microsoft.com/l/meetup-join/19%3ameeting_NDU5ODRkNzktZDBmNC00MDg5LWI2OWEtNzM0MGZjMDU0Yjgw%40thread.v2/0?context=%7b%22Tid%22%3a%22af0096d9-700c-411a-b795-b3dd7122bad2%22%2c%22Oid%22%3a%22841a7c92-7816-4faf-9887-5e334e88f6d8%22%7d

 

Regards,
ROBERT LUBOS | Senior Firmware Engineer
M +48 504 088 482 | Krakow, Poland
nordicsemi.com | devzone.nordicsemi.com

Nordic_logo_signature

 


API meeting: agenda

Carles Cufi
 


Networking Forum Agenda

Lubos, Robert
 

Hi all,

 

Currently I have no items in the agenda for Today’s networking forum – please let me know if you have something that you want to discuss. Otherwise, I’ll just cancel the meeting.

 

Meeting notes:

https://docs.google.com/document/d/1qFsOpvbyLzhflJbbv4Vl__497pKHDoUCy9hjAveyCX0

 

Shared Folder:

https://drive.google.com/drive/folders/1j6d0FLeOjiMil1Ellb59AsfHdzuWdAAc?usp=sharing

 

Teams meeting:
https://teams.microsoft.com/l/meetup-join/19%3ameeting_NDU5ODRkNzktZDBmNC00MDg5LWI2OWEtNzM0MGZjMDU0Yjgw%40thread.v2/0?context=%7b%22Tid%22%3a%22af0096d9-700c-411a-b795-b3dd7122bad2%22%2c%22Oid%22%3a%22841a7c92-7816-4faf-9887-5e334e88f6d8%22%7d

 

Regards,
ROBERT LUBOS | Senior Firmware Engineer
M +48 504 088 482 | Krakow, Poland
nordicsemi.com | devzone.nordicsemi.com

Nordic_logo_signature

 


Updated Event: Zephyr Project: Dev Meeting #cal-invite

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr Project: Dev Meeting

When:
Thursday, November 11, 2021
8:00am to 9:00am
(UTC-08:00) America/Los Angeles
Repeats: Weekly on Thursday

Where:
Microsoft Teams Meeting

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:

________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 483 314 739#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 
________________________________________________________________________________


Updated Event: Zephyr Memory Footprint - biweekly discussion #cal-invite

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr Memory Footprint - biweekly discussion

When:
Monday, November 8, 2021
8:00am to 9:00am
(UTC-08:00) America/Los Angeles
Repeats: Every 2 weeks on Monday

Where:
Microsoft Teams Meeting

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:
Working doc: https://docs.google.com/document/d/1bnQLJKVhgI3zkk3MsSXun8onEsA8z1Rf5ohdbCHASmU/edit#heading=h.x36xe8bnwr9r

________________________________________________________________________________
Microsoft Teams meeting
Join on your computer or mobile app
Click here to join the meeting
Or call in (audio only)
+1 321-558-6518,,546018126# United States, Orlando
Phone Conference ID: 546 018 126#
 
 
________________________________________________________________________________


Updated Event: Zephyr: Toolchain Working Group #cal-invite

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr: Toolchain Working Group

When:
Monday, November 15, 2021
8:00am to 9:00am
(UTC-08:00) America/Los Angeles
Repeats: Every 2 weeks on Monday

Where:
Microsoft Teams Meeting

Organizer: Torsten Rasmussen

An RSVP is requested. Click here to RSVP

Description:

________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 


Now: Zephyr: Toolchain Working Group - 11/01/2021 #cal-notice

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr: Toolchain Working Group

When:
11/01/2021
3:00pm to 4:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams Meeting

Organizer: Torsten Rasmussen

Description:

________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 


Event: Zephyr: Toolchain Working Group - 11/01/2021 #cal-reminder

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Reminder: Zephyr: Toolchain Working Group

When:
11/01/2021
3:00pm to 4:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams Meeting

Organizer: Torsten Rasmussen

An RSVP is requested. Click here to RSVP

Description:

________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 


stm32: PWM: "st,prescaler" pwm property moved to timers node

Alexandre BOURDIOL
 

Hi all,

 

I'd like to inform STM32 PWM users that I'm pushing a change [1] to move Device Tree property "st,prescaler" from pwm node to timers node.

Benefit is that it reflect hardware reality, and prescaler is usable by  other drivers based on timers (like counter with ongoing PR #39414)

 

This change will be hopefully integrated in the next Zephyr DV.

Note that I temporarily avoid compatibility break:  if "st,prescaler" is defined in PWM node, it will be the value used by PWM driver.

 

[1] https://github.com/zephyrproject-rtos/zephyr/pull/39628

 

 

Regards,

Alexandre Bourdiol

 

 


Event: Zephyr: Power Management Sync - 10/28/2021 #cal-reminder

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Reminder: Zephyr: Power Management Sync

When:
10/28/2021
6:00pm to 7:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams

Organizer: devel@...

An RSVP is requested. Click here to RSVP

Description:


________________________________________________________________________________
Microsoft Teams meeting
Join on your computer or mobile app
Click here to join the meeting
Or call in (audio only)
+1 321-558-6518,,677440320# United States, Orlando
Phone Conference ID: 677 440 320#
 
________________________________________________________________________________

641 - 660 of 8779