- Apr 04, 2023
-
-
Ahmed Gadallah authored
This patch updates the SCP-firmware version to 2.12.0. Signed-off-by:
Ahmed Gadallah <ahmed.gadallah@arm.com> Change-Id: Ib4de4db8f9eee4938ff167f96cb343f6c5d40df4
-
Ahmed Gadallah authored
Update the change log to summarize the changes included in this release. Signed-off-by:
Ahmed Gadallah <ahmed.gadallah@arm.com> Change-Id: Iba6cb9d149f551f5541f2fb298d239acac96fb12
-
- Mar 24, 2023
-
-
Leandro Belli authored
The log terminator was fixed and not possible to be changed/configured, delegating the responsibility to modify it to the `stream` driver. This patch includes a firmware definition `FMW_LOG_ENDLINE_STR` that allows to define a custom log terminator if desired. It is also refactored the banner to be aligned to the log terminator modifications. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: Ia896a8ee2772e5a5c1fc83e95ddfea7db61c8b47
-
Leandro Belli authored
Currently, the terminator string is partially handled by fwk_log by adding a \n character at the end of each log message when it is needed. Later, when the log message is processed by the driver, it prepends a carriage return character (\r) on specified conditions. By doing this, the responsibility of setting the end line is delegated to the framework and the driver itself, which is incorrect and breaks encapsulation, and makes it hardware-agnostic. For this mentioned reason, this responsibility is being taken down from the driver. In an upcoming patch, the log terminator string is going to be refactored to improve configurability and encapsulation. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I45be77bb6cec2296e1176bbb422c1fdcac939707
-
Khaled Ali Ahmed authored
Update core maintainers list. Signed-off-by:
Khaled Ali Ahmed <khaled.aliahmed@arm.com> Change-Id: I89c4c3060c41dfd58e3da98d3f37dfa1a48ab4e7
-
Mohamed Omar Asaker authored
Instead of binding APIs invoke the message_handler directly. To remove unnecessary code and simplify the test. Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: Id440d4ca6d951877e78e74374f00877d78d8559c
-
- Mar 23, 2023
-
-
Leandro Belli authored
The current method of reading the clock state calls the Clock HAL directly, which can cause inconsistencies between what is being read by Clock Hal and what is being set in the SCMI agent state table. To address this, the existing `scmi_clock_get_agent_clock_state` helper function is used to read the clock state in relation to the requesting SCMI agent. i.e. function returns the state expected by SCMI agent. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: I8f0f00dc06eecd21803983837f3a7f27d0033723
-
Leandro Belli authored
This patch cleans up the policy functions from the `scmi_clock` module. As seen in `c49f0437`, due to the code complexity of the function can potentially introduce defects that can be difficult to spot and maintain. Refactoring `mod_scmi_clock_config_set_policy` function also helps to reduce the number of function calls and processing time, which can improve performance and efficiency. Furthermore, this commit refactors the module by removing all unnecessary parameters in helper functions. In addition, removing the FWK_WEAK to enforce the current policy until further requirements. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: I03edb2306d6e7acd1cd77168a6d5144fa2c291fa
-
- Mar 16, 2023
-
-
Leandro Belli authored
The reference count for each clock is stored into an internal array, clock_count[], whose size is "number of available clocks" (not SCMI). In that table, we are mistakenly using an index that is taken from the agent's number of clocks. That leads to a mismatch of clock reference count in some cases. Fix this by using the clock index that corresponds to the agent's device index to determine to correct location in clock_count[] table to update the reference count. At the same time, clean-up some of the variables' name to ease the readability of the various clocks. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I9819891fe2237abb252764dadd4a1d36302bc4bf
-
- Mar 15, 2023
-
-
Leandro Belli authored
This patch fixes all outdated dependencies and broken links. ArmClang compiler 6 is not longer provided in the Docker image, if it is required the compiler directory should be mounted as a volumen in the specified location in the documentation. LLVM was updated to the latest supported version by the firmware with the instalation script that build the compiler-rt assets. For the `dev` taget an user was created following the recomendations from Docker documentation. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I28bc940fefa754796e98f473bdb1f85bd13cc683
-
- Mar 14, 2023
-
-
Katherine Vincent authored
The security.md file is currently within the doc folder, however this is not being located by Google Scorecard. To address this issue, it is being moved to the main directory of the project. Signed-off-by:
Katherine Vincent <katherine.vincent@arm.com> Change-Id: Ibb9dba4fa284215111ab458df4e5a86815c09c6e
-
- Mar 09, 2023
-
-
Nicola Mazzucato authored
The scmi_perf_message_handler() function does not check for handlers not present in the handler_table. Although this does not cause an immediate NULL pointer dereferencing, cause the sanity is performed against the payload size, the above function returns an imprecise error. The error returned in such case is PROTOCOL_ERROR, while it would be more appropriate to return NOT_SUPPORTED, for optional commands, according to the specification. From the specification (4.1.2, Commands) "Any command that is sent with an unknown protocol_id or message_id must be responded to with a return value of NOT_SUPPORTED as the status code". Therefore properly check for NULL dereferencing and return the correct SCMI error status. Unit tests have been modified/added accordingly. Change-Id: I053ea2b9d3faddfc11cc3cc1a99c760015759ba4 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Nicola Mazzucato authored
Initial Unit Testing is added for features in SCMI-Perf used by the Performance Plugins Handler. Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: I91249521d37e77b2c350bad2759b51c51c931449
-
Nicola Mazzucato authored
When performance is evaluated and limits ar enot changed, level still needs to be brought within the limits' range. Currently it works only for the maximum limit, i.e. level is reduced if max limit is pushed down. Fix the level within both limit boundaries. This is done only for the case where BUILD_HAS_SCMI_PERF_PLUGIN_HANDLER is set. Change-Id: I03d62dae42ad9907aabb90338b99b0a2bfe84c44 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
- Mar 08, 2023
-
-
Chandni Cherukuri authored
Populate plat_info structure with the silicon revision which is fetched from the SCP2PCC module. Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Change-Id: I1168789630f85c25dc48364468e0bbd997391587
-
Ben Horgan authored
Core no.7 is now assigned to HUNTER_ELP. Change all the configurations accordingly. Signed-off-by:
Ben Horgan <ben.horgan@arm.com> Change-Id: I03aa07200e1857964760e0841dc5516035dfe01b
-
Ben Horgan authored
Adding the power values for dvfs based on provisional values of dynamic-power-coefficient. Signed-off-by:
Ben Horgan <ben.horgan@arm.com> Change-Id: I101a70ceebb11cbfb5914b8fec9d17759bbbaeed
-
- Feb 16, 2023
-
-
Leandro Belli authored
When the subsystem mode was disabled, the system would be suspended even if there were characters waiting to be printed. This resulted in only one character being printed each time the system woke up. The issue was resolved by preventing the system from being suspended when there were elements in the output log buffer that were ready to be printed. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I63322343130b84ba8f10294340cf64d413c07931
-
Leandro Belli authored
When the SCP is compiled as a subsystem `SCP_ENABLE_SUB_SYSTEM_MODE` is enabled, logging is not printed correctly. In this mode, only one character is printed instead of the complete log message. This defect is fixed by replacing `fwk_log_unbuffer` with `fwk_log_flush`. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: If7ae17aad66e252db823b690c794ca6b5620e882
-
- Feb 08, 2023
-
-
Nicola Mazzucato authored
Remove TC0 from the platforms being built and tested. The platform has been deprecated from the SCP-firmware and will be removed from the project within two release cycles. Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: I6e9771c02784d7991820f76e5f069891907ce75b
-
Nicola Mazzucato authored
Add an error message in the build system to inform the user that the chosen platform won't be built cause it's in the list of deprecated platforms. Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: I7b8d64812fdb8eed941391c68e195b7ab412ce7e
-
Nicola Mazzucato authored
Similarly to what's been done for TC0, an experimental variant for TC2 is added. This new variant option will add software features like mpmm, tcop, thermal management to the platform so developers can have a software reference for experimenting the above components. To enable the experimental features, please add the following in your build command: EXTRA_CONFIG_ARGS+=-DSCP_PLATFORM_VARIANT=1 The standard build still falls into the traditional set of software support. Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: I8354480822bbb7aa223beaaa8dd44573bab6a1dd
-
Nicola Mazzucato authored
Add SCMI Performance FastChannels configurations for the 2 performance domains. The default build configuration is without FastChannels. To enable SCMI Performance FastChannels please add `DSCP_ENABLE_SCMI_PERF_FAST_CHANNELS` to your build commands. Change-Id: I415ddf2c6fe22d625fd495efb308a87db2b51e96 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
- Feb 06, 2023
-
-
Nicola Mazzucato authored
A recent change [1] for RD-N2 platform introduced a new variant 3 but the ci build was not added. Add it now. [1] ebc5d50a Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: I12afacc115f97ce7126ec3be0eb186beb26ca3c0
-
Tony Nadackal authored
Added casting for variable in FWK_LOG_INFO to fix the Clang toolchain test failure for variant 3. Signed-off-by:
Tony Nadackal <tony.nadackal@arm.com> Change-Id: I11601f870e9d313646ba54995172218732c6737d
-
Vivek Kumar Gautam authored
Enable CMN configuration for memory regions of SoC expansion block that is connected to IO virtualization block #1 on RD-N2-Cfg2 platform. Also enable the pcie integration control configurations for this SoC expansion block. Signed-off-by:
Vivek Gautam <vivek.gautam@arm.com> Change-Id: I42b25ae5d2fe45317100f9e5611030e5c3fd5859
-
- Jan 30, 2023
-
-
Nicola Mazzucato authored
notify_warm_reset returns `false` when notifications are not enabled, while it should return an integer and not a boolean. Return FWK_SUCCESS when framework notifications are not available instead. Change-Id: Ib2519e07e9dcd648a8b608c5bcc77d0a81986e57 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
- Jan 25, 2023
-
-
Andrew Graham authored
We want to use the proper Syntax Highlighting for C-like code blocks and that also align with what we have in code_style.md. Change-Id: Icd3c2b1d8978b704cd02665275f9f6523c00a58f Signed-off-by:
Andrew Graham <andrew.graham@arm.com>
-
Chuyue Luo authored
Add unit tests for the following functions: - scmi_perf_domain_attributes_handler - scmi_perf_describe_levels_handler - scmi_perf_describe_fast_channels - find_opp_for_level - validate_new_limits Co-authored-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Signed-off-by:
Chuyue Luo <Chuyue.Luo@arm.com> Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: Ie442634db79ff48b12a66a9335e6de2e51c4beaf
-
Chuyue Luo authored
This patch adds a new test target which has the BUILD_HAS_SCMI_PERF_FAST_CHANNELS feature flag enabled. An existing unit test has been updated to make use of this. In an upcoming patch, unit tests for the function `scmi_perf_describe_fast_channels()` will be added, which requires this feature flag to be enabled. Co-authored-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com> Signed-off-by:
Chuyue Luo <Chuyue.Luo@arm.com> Change-Id: Ia1c8a0df0a0702c921f577e9ce475aaa5b3f5c34
-
Nicola Mazzucato authored
chef-utils, mixlib-config and tomlrb are updated as result of latest "bundle update". Change-Id: Ia6cef2328429c7cc79c05b2f740a9b25bc0a01ea Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Vincent Guittot authored
Align SCMI clock init value with MOCK clock and system PLL which are enabled by default. SCMI compliance test fails without this change. Signed-off-by:
Vincent Guittot <vincent.guittot@linaro.org>
-
- Jan 19, 2023
-
-
Nicola Mazzucato authored
When mocks are required for module unit testing, it is necessary to add an explicit clang-format configuration withn the mocks folder to disable the formatting. Reflect this explicitly in the user_guide. Change-Id: Ic9510351f8f23f0e9f85bcaa3234e0a093dc8a7b Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Nicola Mazzucato authored
Currently the ci_cmake scripts execute framework test and modules' unit tests from the same test case. The result is shown as below: Check framework: Success/Failed This does not tell the user whether the result came from the framework tests or the unit tests. Improve this by splitting the two tests and provide detailed results. The summary will then be as follow: Check framework: Success/Failed Check utest: Success/Failed Change-Id: I5ae3000c7bcfb6a8e6807c0c165d3b0a6034aaa5 Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Nicola Mazzucato authored
Code sytle guidelines are updated to support readable hardware register descriptions that would otherwise be formatted by the tool in a manner that would become difficult to read. Change-Id: If78bc29151abe84ff0f544454edbc5912bd017cc Signed-off-by:
Nicola Mazzucato <nicola.mazzucato@arm.com>
-
Leandro Belli authored
This patch adds `FWK_TRACE` functionality and includes an example to use it. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I874fbdcbd609aac546b533bb1bda4755a0e8ea02
-
Leandro Belli authored
This patch renames `TRACE` to `DEBUG` because in further patches a new functionallity for tracing will be introduced and having the same name for both could cause confusion. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I42517984982fbcb3e9f325f89a9ca7761852831b
-
Katherine Vincent authored
A security.md file has been added to add details of the SCP-firmware security process. Signed-off-by:
Katherine Vincent <katherine.vincent@arm.com> Change-Id: Ia7c4d9e50e85ebc6844e255730a6e6a9d0721aca
-
- Jan 10, 2023
-
-
Leandro Belli authored
This patch adds a log message when multiple fast channels events are pending to be processed. This will allow to identify issues related with the processing time of performance plugins when they are configured. It is also increased the log level from `TRACE` to `ERROR` when it is not possible to create a fast channels process event. Signed-off-by:
Leandro Belli <leandro.belli@arm.com> Change-Id: I154735381342a363c101209122c15c5e562983b0
-
- Jan 06, 2023
-
-
Baruch Siach authored
Print the right number for each type. Signed-off-by:
Baruch Siach <baruch@tkos.co.il>
-