summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-27Mark version as 1.6.1-rcv1.6.1-rcv1.6.0-branchAnas Nashif
Change-Id: I3d28433f84d7c9503b76b148fe272f6aa873c012 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-20release-notes: cleanup for releaseAnas Nashif
Change-Id: Ib38b630946acb4eb7a1e0be6148750d49e8ffd54 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-20release notesAnas Nashif
Change-Id: I7bfd7fd7e730994ad5912bcc8bf2b713fd2918a9 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-04-20ext: lib: mbedtls: Upgrading mbedTLS libraryKumar Gala
Upgrading mbedTLS to version 2.4.2 from 2.4 Origin: https://tls.mbed.org/download/start/mbedtls-2.4.2-apache.tgz Jira: ZEP-1800 Change-Id: I16a7eaeb4c2e47d11f0594fe1bd865be3eef37b6 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-19ext/lib/crypto: Update TinyCrypt to version 0.2.6Flavio Santes
Update TinyCrypt to version 0.2.6. Origin: https://github.com/01org/tinycrypt/releases/tag/v0.2.6 Jira: ZEP-749 Change-Id: I62be0c134236d4a5dcae14bee86692c0fd6dc381 Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2017-04-19tinycrypt: Update TinyCrypt to version 0.2.5Flavio Santes
TinyCrypt 0.2.5 was released a few hours ago: https://github.com/01org/tinycrypt/releases/tag/v0.2.5 This patch updates some TinyCrypt files, solving the following issues: - Decryptions using ccm mode can incorrectly fail - Minor style issues in code documentation Change-Id: I606cde179888aad7a52fd277d73973f2347d8882 Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2017-03-26Bluetooth: controller: Fix race waiting for ticker job to compltVinayak Chettimada
Same volatile status variable as return and being updated in ISR would modify the variable in two context which caused the variable to be set to a stale value. This commit uses two different variables, one for return value and the other to be updated by ISR. Jira: ZEP-1941 Change-id: I19e3bdc85e15bda7891395f3f1f64c2ddbeee0c6 Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
2017-03-26Bluetooth: Controller: Fix assert on role stop/abortVinayak Chettimada
Call to ticker_stop/update can fail under the condition where in a role is being stopped but at the same time it is preempted by the role event that also uses ticker_stop/ update. Also if a role closes graceful while it is being stopped, the radio ISR will process the stop state with no active role at that instance in time. In this case just reset the state to none, the role has already been gracefully closed before this ISR execution. The above applies to aborting a role event too. This commit adds code to detect these conditions and deterministically recover from it. This commit fixes the assert observed while stopping advertiser in the Bluetooth sample scan_adv. Jira: ZEP-1852 Change-id: I51c8d6e212ef43e3526a199cf7b666a79729c732 Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
2017-03-23ext: lib: mbedtls : Upgrading mbedTLS librarySergio Rodriguez
Upgrading mbedTLS to version 2.4 from 2.3 Origin: https://tls.mbed.org/download/start/mbedtls-2.4.0-apache.tgz Jira: ZEP-1292 Jira: ZEP-734 Change-Id: I32d81304f5d568810e271b8e9fc2135def1dda0a Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com>
2017-03-15kernel: arm: Increase idle stack size to fix corruption by FP_SHARINGFlorian Vaussard
When enabling CONFIG_FP_SHARING on ARM, 64 extra bytes are necessary on the stack of each task in order to save FPU registers S16 to S31. In the case of the idle stack, the default value of 256 bytes is too small. As described in ZEP-1470, when the idle task is scheduled out, floating point registers are saved, which corrupts the stack frame (especially the saved PC value). When scheduling the idle task, the restored PC will jump to nowhere, leading to a Usage Fault. Increase the size of the idle stack by 64 bytes to fix this issue. JIRA: ZEP-1470 Change-Id: Ib800cd51e5189dda8bf59332db661c21399db3e3 Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-02-11grove: fix variable type mismatchJithu Joseph
These were reported by ISSM compiler. Jira: ZEP-1179 Change-Id: I10d04c2949ad2a390d4c1159d2342c73108a58b7 Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
2017-02-09sanity: filter the build-all test for ethernetGenaro Saucedo Tejada
Ethernet build-all test was not being filtered base on RAM size so build step LINK was failing with "region `RAM' overflowed by 192 bytes" error when running daily sanitycheck. Added filter so this test is not attempted for boards with smaller RAM such as quark_d2000_crb, which was causing daily build failure Change-Id: I4ed3bef4f1c78e83890331db34fb1f2b2b066414 Signed-off-by: Genaro Saucedo Tejada <genaro.saucedo.tejada@intel.com> (cherry picked from commit 1589f2ccdd4063f15b7edb425b8bb9c9759f6bb4)
2017-02-09ext: qmsi: fix an incomplete type issueBaohong Liu
Incomplete type is not acceptable to LLVM. Let's use pointer instead. Jira: ZEP-1179 Change-Id: Ie6324b2e5076ae2b378fa270d0d9fdcbf29bf8ce Signed-off-by: Baohong Liu <baohong.liu@intel.com>
2017-01-19Makefile (arc/soc/quark_se): New compiler optionsJuro Bystricky
GCC 6.x for ARC does not recognize the options -mARCv2EM and -mav2em anymore. Both options replaced in Makefile by -mcpu=quarkse_em. Change-Id: I9dec26dd64b4738976704a39455fe4241406db9e Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-01-19Makefile (arc/soc/em*): New compiler optionsJuro Bystricky
GCC 6.x for ARC does not recognize the options -mARCv2EM and -mav2em anymore. Both options replaced in Makefile by -mcpu=arcem. Change-Id: Ic86bf51cd5fb1a67ba2cd75998cd907e26996347 Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-19arc: add -fno-delete-null-pointer-checksAndrew Boie
This option has side effects. It also tells the compiler not to generate these checks in the first place. The checks call abort() which doesn't exist in our environment. This patch gets rid of linker errors due to missing abort() in the 0.9 SDK. Change-Id: Ibc5aeb5458d0bded714c9c074cdf08112733428b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-01-19Makefile.toolchain.zephyr: Modifications for SDK 0.9Juro Bystricky
Various changes required by new SDK 0.9: 1. Renamed toolchain vendor name ("poky" -> "zephyr") 2. Toolchains now 64 bit, previously 32 bit 3. New toolchain for Xtensa 4. New toolchain for RISC-V 0.8.2 is still supported. Change-Id: Icfd4cc44ef643da0f3840b33d6dfc4b3c99dfa9a Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-01-13Bluetooth: ATT: Fix using k_fifo API with net_bufLuiz Augusto von Dentz
net_buf shall not be used with k_fifo since net_buf_unref will assume unused bytes in the beginning are actually fragments causing it to unref them as well. Jira: ZEP-1489 Change-Id: I5ce420de73b245dc20eb15ea4d8d0b6ba346e513 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2017-01-13Bluetooth: fix write cmd handlingLouis Caron
The data pointer and length was not updated before invoking the write_rsp function therefore providing pointer to the handle. Change-Id: I5c27ab7a793979dffb8f1f2c68def027c45f2376 Signed-off-by: Louis Caron <louis.caron@intel.com>
2017-01-12Bluetooth: GATT: Fix missing connection address comparisonJohan Hedberg
When receiving notifications we should be properly matching against the remote address of subscribed peers. Change-Id: Ibcba1101aac418fd02f9068667f84e8294aade07 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> (cherry picked from commit 883f91a7c7c534d812c7d5c2a1d340e0dab2b58a)
2017-01-04arm: Cortex-M0: Adapt core register code to M0Carles Cufi
The Cortex-M0(+) and in general processors that support only the ARMv6-M instruction set have a reduced set of registers and fields compared to the ARMv7-M compliant processors. This change goes through all core registers and disables or removes everything that is not part of the ARMv6-M architecture when compiling for Cortex-M0. Jira: ZEP-1497 Change-id: I13e2637bb730e69d02f2a5ee687038dc69ad28a8 Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no> Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-01-04arm: nvic: Fix exception priority access on Cortex-M0(+)Carles Cufi
The Cortex-M0(+) and in general processors that support only the ARMv6-M instruction set can only access the NVIC_IPRn registers with word accesses, and not with byte ones like the Cortex-M3 and onwards. This patch addresses the issue by modifying the way that _NvicIrqPrioSet() writes to the IPRn register, using a word access for Cortex-M0(+). A similar issue is addressed for internal exceptions, this time for the SHPR registers that are accessed differently on ARMv6-M. Reference code taken from CMSIS. Jira: ZEP-1497 Change-id: I08e1bf60b3b70579b42f4ab926ee835c18bb65bb Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no> Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-01-04arm: nvic: Use uint8_t for priority levelJohan Hedberg
Since the value is treated as uint8_t internally anyway, just use uint8_t for the input and output parameter types. Jira: ZEP-1497 Change-Id: I61d68eb39cba5d82dad6ab7593b267c26e003d2b Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org> (cherry picked from commit ae0ce206990c8ecb1f1084e1439392a46b07d766)
2016-12-03Zephyr 1.6.0zephyr-v1.6.0v1.6.0Anas Nashif
Change-Id: Iccecc12218132ff1eae209d2dd17edaf71b94d5a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-03release-notes: minor updatesAnas Nashif
Change-Id: Ic93535da51462cffbe6b19f79034f82a0344fe27 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-02sanitycheck: update footprint dataAnas Nashif
Change-Id: I2a0b480b42bcb8daf8a941848eb59f35ffbf844a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-03nios2: fix irq_lock/unlock ordering bugAndrew Boie
Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc537712abaeb5dfbb27ced924fe6ccc1f611c for the ARM fix for a complete description of the issue and fix. Change-Id: I1d96fe0088d90150f0888c2893d017155fc0a0a7 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> (cherry picked from commit bba445b31ff2ed815a1953d3d74d0daca1d7e993)
2016-12-02arc: fix irq_lock/unlock ordering bugBenjamin Walsh
Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc537712abaeb5dfbb27ced924fe6ccc1f611c for the ARM fix for a complete description of the issue and fix. Change-Id: I056afb0406cabe0e1ce2612904e727ccce5f6308 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-12-02x86: fix irq_lock/unlock ordering bugBenjamin Walsh
Memory accesses could be reordered before an irq_lock() or after an irq_unlock() without the memory barriers. See commit 15bc537712abaeb5dfbb27ced924fe6ccc1f611c for the ARM fix for a complete description of the issue and fix. Change-Id: Ic92a6b33f62a938d2252d68eccc55a5fb07c9114 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com> (cherry picked from commit 1f8125a41683eb96aca9414616b6eaec7f05e6ac)
2016-12-02arm: fix irq_unlock() ordering bugMarcus Shawcroft
Add the missing memory clobber to irq_unlock() in order to prevent the compiler reordering memory operations over the unlock. Change-Id: If1d664079796618ed247ff5b33b8b3f85fb7e680 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-12-02kernel: Fix ARM irq_lock() ordering bug.Marcus Shawcroft
The inline asm definition of irq_lock() on the ARM architecture marks the ASM as volatile which prevents the compiler from removing the isntruction but does provide any information to the compiler to prevent the inline ASM instruction being re-ordered relative to other instructions. The instruction used in irq_lock() do not touch memory, however in order to acheive their intended purpose they must be ordered relative to other memory access instruction. This is acheived by adding the "memory" clobber. Instances of the compiler inappropriately re-ordering irq_lock() calls relative to other instructions without this patch can be observed in the code generated for k_sleep() on NRF51 target boards. Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com> Change-Id: I9d42d54cd9a50e8150c10ce6715af7ca2f5cfe51 (cherry picked from commit 15bc537712abaeb5dfbb27ced924fe6ccc1f611c)
2016-12-02work_q: delayed work cancel returns incorrect statusMahavir Jain
If delayed work is already submitted or completed, then subsequent cancel should return -EINVAL as return status. Fixes ZEP-1373. Change-Id: I16bbacca7e31a5a5d8e5a89e729d70302ada6223 Signed-off-by: Mahavir Jain <mjain@marvell.com> (cherry picked from commit 45f2ef653df6ca39cbd0140ccb9ed735a336a314)
2016-12-01release notes: update release notes for 1.6Anas Nashif
Change-Id: Ibb560b0382aadc76d393d76ab71dbef2b268ecf6 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-01Zephyr 1.6.0-rc4v1.6.0-rc4Anas Nashif
Change-Id: Ib357207570e7f03434e66da748439983c1cdf27e Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-01doc: power_mgmt: Update PM doc with latest changesRamesh Thomas
Revise the document to reflect the latest changes including the updated concept of SOC interface instead of PMA. Simplified and enhanced areas that were known to cause confusion. Added descriptions of new APIs and usages. Jira: ZEP-1386 Change-Id: I5fa74d85245924f512c22d9d977dd0c9ea62b6ce Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-12-01usb :mass_storage: correct the license detailsJithu Joseph
Certain structures and defines in this file are from from mbed's implementation. The file header is updated as per this. Change-Id: I688917cdd17cfc8b27d5b78181ced90df73c9efd Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
2016-12-01kernel: add emphasis to nano_sem_take/k_sem_take return code differenceBenjamin Walsh
The reversal of the meaning of a value of 0 from k_sem_take vs nano_sem_take has caused some issue when porting code from the legacy API to the new API, so put some emphasis on this difference. - Add a note in the API description. - Put the call to k_sem_take and the reversal of the return value inside of nano_sem_take on one line so that grepping on it shows the reversal. Change-Id: I2f4ba58dc087176d68b55371fa6e367b72559e70 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-12-01[REVERTME]boards: omit frame pointer for ARC boardsAnas Nashif
The current ARC GCC compiler used in Zephyr SDK v0.8.2 generates incorrect code when using the "-fno-omit-frame-pointer" option. This bug should have been fixed in the 2016.03 release of the compiler. Jira: ZEP-1243, ZEP-1403 Change-Id: I0901f55973c1ea37491b07bf625d0d1918803f3e Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-12-01scrips/kconfig: reduce impact of getenv() buffer overflowInaky Perez-Gonzalez
getenv() returns an string of unknown size, so Coverity warns that it might be used to overflow the stack in the call chain off conf_read_simple(). To avoid that, wisdom says copy to an string of known size and pass that. Change-Id: I9e468de0ae66429062027f58fe0a0a4e1197218f Coverity-ID: 150819 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2016-12-01release-notes: fixed reST errorsDavid B. Kinder
Change-Id: I02c02dfcfd5b12ba5df745b42eed3b55401d8fb0 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2016-11-30release-notes: Update and cleanupAnas Nashif
Change-Id: Iffd4c117f5ac7696652f6458009821fb351205f8 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-30release-notes: Update executive summary and driversMaureen Helm
Change-Id: I90c6cc53a78696a49a1e64d513b6fe2a5b7c7ccf Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2016-11-30release-notes: update executive summaryKien Dinh
Change-Id: I445beb8ea475d6f381baf9b4825ebd7a675721fb Signed-off-by: Kien Dinh <kien.t.dinh@intel.com>
2016-11-28Zephyr 1.6.0-rc3v1.6.0-rc3Anas Nashif
Change-Id: I6c1592a77a7ad0a5bee28e03967345999353c4e8 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-28arm: fix bug when Zero Latency Interrupts are enabledBenjamin Walsh
An IRQ would always register as a ZIL interrupt. Change-Id: If82a85f472a60512745652aacc7e8b7dfacaa268 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-11-28arc: fix missing _firq_stack symbol when INIT_STACKS=y and NUM_BANKS=1Benjamin Walsh
There is no FIRQ stack in the system in this case, so do not initialize it. Change-Id: I8bc068ce43ac8a39909994d8cc01ba0c6a17f4ae Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-11-28kernel: remove K_TIMING thread flagBenjamin Walsh
The fact that a thread is timing out was tracked via two flags: the K_TIMING thread flag bit, and the thread's timeout's delta_ticks_from_prev being -1 or not. This duplication could potentially cause discrepancies if the two flags got out-of-sync, and there was no benfits to having both. Since timeouts that are not parts of a thread rely on the value of delta_ticks_from_prev, standardize on it. Since the K_TIMING bit is removed from the thread's flags, K_READY would not reflect the reality anymore. It is removed and replaced by _is_thread_prevented_froM_running(), which looks at the state flags that are relevant. A thread that is ready now is not prevented from running and does not have an active timeout. Change-Id: I902ef9fb7801b00626df491f5108971817750daa Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-11-28kernel/arch: move common thread.flags definitions to common fileBenjamin Walsh
Also remove NO_METRIC, which is not referenced anywhere anymore. Change-Id: Ieaedf075af070a13aa3d975fee9b6b332203bfec Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-11-28quark_se_ss: power_mgmt: Fix a bug in call to sleep instructionRamesh Thomas
When sleep instruction is called with interrupts enabled, the interrupt priority threshold bits need to be set. Only interrupts with equal or higher priority will wake the sleep. Currently it is set to 0 unintentionally and only priority 0 interrupt can wake the sleep. Jira: ZEP-1349 Change-Id: I927e259345cc37c5ecc4dfdcde996dd16443e61b Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-11-28quark_se: power_mgmt: Fixes a cpu context save bugRamesh Thomas
The cpu context save function was manipulating stack and returning to C caller. This can corrupt stack if the calling function has data saved and it pops before entering deep sleep. Moved sleep functions into assembly to avoid this. Jira: ZEP-1345 Change-Id: I8a6d279ec14e42424f764d9ce8cbbef32149fe84 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>