Skip to content

Release candidate for mbed-os-5.13.3 #11195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Aug 14, 2019
Merged

Release candidate for mbed-os-5.13.3 #11195

merged 32 commits into from
Aug 14, 2019

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Aug 9, 2019

Description

I am still one PR short (Nanostack, will apply it manually).

There were lot of conflicts in various PR that looked so simple, will need to verify all commits are OK here.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@0xc0170 0xc0170 changed the title Release candidate Release candidate for mbed-os-5.13.3 Aug 9, 2019
@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 9, 2019

Added nanostack PR 11156

@0xc0170 0xc0170 force-pushed the release-candidate branch from e885a79 to e99d926 Compare August 9, 2019 14:58
@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 9, 2019

Force pushed, removed PR 10877

@0xc0170 0xc0170 force-pushed the release-candidate branch from 8cf55ff to e99d926 Compare August 9, 2019 14:59
@ciarmcom ciarmcom requested a review from a team August 9, 2019 15:00
@ciarmcom
Copy link
Member

ciarmcom commented Aug 9, 2019

@0xc0170, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 9, 2019

Cleaned one wrong rebase, updated again

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 9, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 9, 2019

Test run: FAILED

Summary: 4 of 4 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_unittests
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR
  • jenkins-ci/mbed-os-ci_build-ARM

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 9, 2019

One of the rebases with conflicts might have caused the build issues (there were around 5 PRs conflicting). I'll fix that

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 10, 2019

I am going to recreate this RC. I've noticed at least one missing commit in here. Will fix it on Monday morning the latest.

https://github.com/ARMmbed/mbed-os/pull/11139/commits - this PR contains 5 commits, IAR included but not here. I have it locally as a patch but was not applied (I know why, I ended up having no commits left and no action and script reported an error).

Kyle Kearney and others added 12 commits August 12, 2019 08:32
- Fix assert when spi_master_block_write called with 0 size
- Fix assert when spi_format called before spi_frequency
- Simplify implementation of spi_master_write
- Simplify pointer arithmetic expressions in cyhal_spi_transfer and
  cyhal_spi_transfer_async
- Fix I2C driver not honoring the frequency specified during init.
For UTs mbed_assert_internal should not be declared as MBED_NORETURN
as UT stub for mbed_assert_internal only prints out the assert trace
and returns back to original code.
@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

unittest fails, I recall only #11162 PR with conflict (one file addition to the list). Need your help @ARMmbed/mbed-os-wan here

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

Failure is in CellularContext. The only commit touching that file is d160098 - was it applied correctly for 5.13 ? unit test url https://mbed-os.mbedcloudtesting.com/blue/organizations/jenkins/mbed-os-ci_unittests/detail/mbed-os-ci_unittests/3576/pipeline

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

Updated, removed 70c5817 - moved to 5.14. Still waiting for unittest cellular fix

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 12, 2019

Test run: FAILED

Summary: 3 of 4 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR

desmond-blue and others added 10 commits August 12, 2019 12:54
Due to the data buffer is loaded in two steps the whole block needs protection from being interrupted
This error prevented using this header in cpp code directly.
When STM32F746-DISCO board was being used in (unsupported) USBHost mode,
the communication was unreliable. Our investigation revealed that the
problem lied in redundant IN tokens that the host generated even though
it shouldn't. This could lead to endless high-frequency NAKs being
received from device, which caused watchdog reset as USBHost spent all
time in interrupt handlers.

In our application the clocks frequencies are:
  * HCLK = 48 MHz
  * APB1 = 6 MHz
  * APB2 = 12 MHz

We have captured the raw USB High-Speed traffic using OpenVizsla.
Without this change, when USB MSD device connected to the system
responded to IN with NAK, there were excessive IN tokens generated about
667 ns after the NAK. With this commit the IN tokens are generated no
sooner than 10 us after the NAK.

The high frequency of the IN/NAK pairs is not the biggest problem.
The biggest problem is that the USB Host did continue to send the IN token
after DATA and ACK packets were received from device - *without* any request
from upper layer (USB MSD).

The USB MSD devices won't have extra data available on Bulk IN endpoint
after the expected data was received by Host. In such case IN/NAK cycle
time is only houndreds of nanoseconds, the MCU has no time for anything else.

The problem manifested not only on Bulk endpoints, but also during
Control transfers. Example correct scenario (when this fix is applied):
  * SETUP stage
    * SETUP [host -> address 0 endpoint 0]
    * DATA0 [80 06 00 01 00 00 08 00] [CRC16: EB 94]
    * ACK
  * DATA stage
    * IN
    * NAK
    ... the IN/NAK repeated multiple time until device was ready
    * IN
    * DATA1 [12 01 10 02 00 00 00 40] [CRC16: 55 41]
    * ACK
  * STATUS stage
    * OUT
    * DATA1 ZLP
    * ACK

Without this commit, in DATA stage, after the ACK was received, the host
did send extra IN to which device responded with STALL. On bus it was:
  * DATA stage
    ...
    * IN
    * DATA1 [12 01 10 02 00 00 00 40] [CRC16: 55 41]
    * IN
    * STALL
    * IN
    * STALL
  * STATUS stage
    * OUT
    * DATA1 ZLP
    * STALL

In the fault case the next SETUP was sent only after 510 ms, which
indicates timeout in upper layer.

With this commit the next SETUP is sent 120 us after the STATUS stage ACK.
…13_x

Nanostack patch release for Mbed OS 5.13.x
@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

Another dependency, removed 11119 from this RC. Updated now

@0xc0170 0xc0170 force-pushed the release-candidate branch from 0dac8d2 to d587e73 Compare August 12, 2019 11:55
@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

CI restarted

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

@ARMmbed/mbed-os-test Can we fix merge failure : continuous-integration/jenkins/pr-merge — This commit cannot be built ? Also memory usage fails with the same error

@mbed-ci
Copy link

mbed-ci commented Aug 12, 2019

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 4
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 12, 2019

@ARMmbed/mbed-os-test dynamic job reports internal path error ,pls review

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 13, 2019

The CI is green, I am going to test client repos

@0xc0170
Copy link
Contributor Author

0xc0170 commented Aug 14, 2019

Looks like this is ready for integration, will merge once I get confirmation from the client team

@0xc0170 0xc0170 merged commit 808c450 into mbed-os-5.13 Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.