| 1117a16e | 25-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(versal): resolve misra 15.6 warnings
MISRA Violation: MISRA-C:2012 R.15.6 - The body of an iteration-statement or a selection-statement shall be a compound statement.
Signed-off-by: Venkatesh Y
fix(versal): resolve misra 15.6 warnings
MISRA Violation: MISRA-C:2012 R.15.6 - The body of an iteration-statement or a selection-statement shall be a compound statement.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Ia1d6fcabd36d18ff2dab6c22579ffafd5211fc1f
show more ...
|
| 8695ffcf | 24-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra 8.13 warnings
MISRA Violation: MISRA-C:2012 R.8.13 - The pointer variable points to a non-constant type but does not modify the object it points to. Consider adding const
fix(zynqmp): resolve misra 8.13 warnings
MISRA Violation: MISRA-C:2012 R.8.13 - The pointer variable points to a non-constant type but does not modify the object it points to. Consider adding const qualifier to the points-to type.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Ifd06c789cfd3babe1f5c0a17aff1ce8e70c87b05
show more ...
|
| 3d2ebe75 | 24-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(versal): resolve misra 8.13 warnings
MISRA Violation: MISRA-C:2012 R.8.13 - The pointer variable points to a non-constant type but does not modify the object it points to. Consider adding const
fix(versal): resolve misra 8.13 warnings
MISRA Violation: MISRA-C:2012 R.8.13 - The pointer variable points to a non-constant type but does not modify the object it points to. Consider adding const qualifier to the points-to type.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I74e1b69290e081645bec8bb380128936190b5e24
show more ...
|
| 912b7a6f | 24-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(versal): resolve the misra 4.6 warnings
MISRA Violation: MISRA-C:2012 R.4.6 - Using basic numerical type int rather than a typedef that includes size and signedness information.
Signed-off-by:
fix(versal): resolve the misra 4.6 warnings
MISRA Violation: MISRA-C:2012 R.4.6 - Using basic numerical type int rather than a typedef that includes size and signedness information.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I4eccce7e238f283348a5013e2e45c91435b4ae4e
show more ...
|
| 314f9f79 | 06-May-2022 |
Ronak Jain <ronak.jain@xilinx.com> |
feat(plat/xilinx/zynqmp): optimization on pinctrl_functions
Optimizing the pinctrl_functions structure. Remove the pointer to array of u16 type which consumes a lot of memory (64bits pointer to arra
feat(plat/xilinx/zynqmp): optimization on pinctrl_functions
Optimizing the pinctrl_functions structure. Remove the pointer to array of u16 type which consumes a lot of memory (64bits pointer to array + 16B for END_OF_GROUPS + almost useless 8bits on every entry which is the same for every group) and add two new members of type u16 and u8 with the name called group_base and group_size respectively.
The group_base member contains the base value of pinctrl group whereas the group_size member contains the total number of groups requested from the pinctrl function.
Overall, it saves around ~2KB of RAM and ~0.7KB of code memory.
Signed-off-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Ronak Jain <ronak.jain@xilinx.com> Change-Id: I79b761b45df350d390fa344d411b340d9b2f13ac
show more ...
|
| 1ac6af11 | 11-May-2022 |
Ronak Jain <ronak.jain@xilinx.com> |
fix(plat/zynqmp): fix coverity scan warnings
- Fix uninitialized variable use - Fix array overrun issue
Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com> Signed-off-by: Ronak Jain <ronak.jain@xil
fix(plat/zynqmp): fix coverity scan warnings
- Fix uninitialized variable use - Fix array overrun issue
Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com> Signed-off-by: Ronak Jain <ronak.jain@xilinx.com> Change-Id: I604416531122c9208793d66c26b1fa69c95f3165
show more ...
|
| 944e7ea9 | 16-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra 8.3 warnings
MISRA Violation: MISRA-C:2012 R.8.3 - Declaration uses a different parameter name than the one present in the definition.
Signed-off-by: Venkatesh Yadav Abba
fix(zynqmp): resolve misra 8.3 warnings
MISRA Violation: MISRA-C:2012 R.8.3 - Declaration uses a different parameter name than the one present in the definition.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Id0521afd7383df13870710b7dd2894e788896e5e
show more ...
|
| 610eeac8 | 16-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra R8.4 warnings
MISRA Violation: MISRA-C:2012 R.8.4 - Function definition does not have a visible prototype.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xil
fix(zynqmp): resolve misra R8.4 warnings
MISRA Violation: MISRA-C:2012 R.8.4 - Function definition does not have a visible prototype.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I50a2c1adf2e099217770ac665f135302f990b162
show more ...
|
| fcf6f469 | 14-Dec-2021 |
Tanmay Shah <tanmay.shah@xilinx.com> |
feat(versal): add SMCCC call TF_A_PM_REGISTER_SGI
This call is used to register and reset SGI interrupt. Before this functionality was performed using IOCTL_REGISTER_SGI pm_ioctl EEMI call. It's not
feat(versal): add SMCCC call TF_A_PM_REGISTER_SGI
This call is used to register and reset SGI interrupt. Before this functionality was performed using IOCTL_REGISTER_SGI pm_ioctl EEMI call. It's not correct use of PM_IOCTL as it is not EEMI functionality. Instead this new SMCCC call will be handled by TF-A specific handler.
Change-Id: If2408af38b889d29a5c584e8eec5f1672eab4fb5 Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
show more ...
|
| bf70449b | 19-Apr-2021 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
feat(versal): add support to reset SGI
Add "reset" parameter in pm_register_sgi() to reset SGI number. This will be required if OS wants to reset SGI number to default state. Caller can reset param
feat(versal): add support to reset SGI
Add "reset" parameter in pm_register_sgi() to reset SGI number. This will be required if OS wants to reset SGI number to default state. Caller can reset param to 1 to reset SGI in ATF.
Change-Id: If485ff275df884f74eb67671cac7fa953458afe9 Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
show more ...
|
| 1f0309d4 | 12-May-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "fix(zynqmp): define and enable ARM_XLAT_TABLES_LIB_V1" into integration |
| c884c9a5 | 06-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): define and enable ARM_XLAT_TABLES_LIB_V1
Enable ARM_XLAT_TABLES_LIB_V1 as ZynqMP is using v1 library of translation tables.
With upstream patch d323af9e3d903d981b42f954844a95a6bfef91ab
fix(zynqmp): define and enable ARM_XLAT_TABLES_LIB_V1
Enable ARM_XLAT_TABLES_LIB_V1 as ZynqMP is using v1 library of translation tables.
With upstream patch d323af9e3d903d981b42f954844a95a6bfef91ab, the usage of MAP_REGION_FLAT is referring to definition in file include/lib/xlat_tables/xlat_tables_v2.h but while preparing xlat tables in lib/xlat_tables/xlat_tables_common.c it is referring to include/lib/xlat_tables/xlat_tables.h which is v1 xlat tables. Also, ZynqMP was using v1 so defined ARM_XLAT_TABLES_LIB_V1 to use v1 xlat tables everywhere. This fixes the issue of xlat tables failures as it takes v2 library mmap_region structure in some files and v1 in other files.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Ibc0e1c536e19f4edd6a6315bf1b0dfcec33e2fdc
show more ...
|
| dd1fe717 | 04-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra R14.4 warnings
MISRA Violation: MISRA-C:2012 R.14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essen
fix(zynqmp): resolve misra R14.4 warnings
MISRA Violation: MISRA-C:2012 R.14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I8f3f6f956d1d58ca201fb5895f12bcaabf2afd3b
show more ...
|
| e7e5d303 | 29-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra R16.3 warnings
MISRA Violation: MISRA-C:2012 R.16.3 - An unconditional break statement shall terminate every switch-clause.
Signed-off-by: Venkatesh Yadav Abbarapu <venka
fix(zynqmp): resolve misra R16.3 warnings
MISRA Violation: MISRA-C:2012 R.16.3 - An unconditional break statement shall terminate every switch-clause.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I96a8b627c593ff1293b725d443531e42368923c5
show more ...
|
| 16de22d0 | 04-May-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra R15.7 warnings
MISRA Violation: MISRA-C:2012 R.15.7 - All if . . else if constructs shall be terminated with an else statement.
Signed-off-by: Venkatesh Yadav Abbarapu <v
fix(zynqmp): resolve misra R15.7 warnings
MISRA Violation: MISRA-C:2012 R.15.7 - All if . . else if constructs shall be terminated with an else statement.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: If921ca7c30b2feea6535791aa15f4de7101c3134
show more ...
|
| eb0d2b17 | 29-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra R15.6 warnings
MISRA Violation: MISRA-C:2012 R.15.6 - The body of an iteration-statement or a selection-statement shall be a compound statement.
Signed-off-by: Venkates
fix(zynqmp): resolve misra R15.6 warnings
MISRA Violation: MISRA-C:2012 R.15.6 - The body of an iteration-statement or a selection-statement shall be a compound statement.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I0fc8eeac0e592f00297a1ac42a1ba3df1144733b
show more ...
|
| 5bcbd2de | 29-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra 7.2 warnings
MISRA Violation: MISRA-C:2012 R.7.2 - A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type.
Signed-off-by:
fix(zynqmp): resolve misra 7.2 warnings
MISRA Violation: MISRA-C:2012 R.7.2 - A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Ieeff81ed42155c03aebca75b2f33f311279b9ed4
show more ...
|
| 2b57da6c | 28-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): resolve misra R10.3
MISRA Violation: MISRA-C:2012 R.10.3 - The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential typ
fix(zynqmp): resolve misra R10.3
MISRA Violation: MISRA-C:2012 R.10.3 - The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I5a60c66788d59e45f41ceb81758b42ef2df9f5f7
show more ...
|
| be73459a | 13-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
feat(xilinx): add SPP/EMU platform support for versal
This patch adds SPP/EMU platform support for Xilinx Versal and also updating the documentation.
Signed-off-by: Venkatesh Yadav Abbarapu <venkat
feat(xilinx): add SPP/EMU platform support for versal
This patch adds SPP/EMU platform support for Xilinx Versal and also updating the documentation.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Ibdadec4d00cd33ea32332299e7a00de31dc9d60b
show more ...
|
| 1277af9b | 12-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(zynqmp): update the log message to verbose
Changing the log message from notice to verbose, to save some space and that leads to successfull compilation.
Signed-off-by: Venkatesh Yadav Abbarapu
fix(zynqmp): update the log message to verbose
Changing the log message from notice to verbose, to save some space and that leads to successfull compilation.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: Iee5a808febf211464eb8ba6f0377f79378333f5d
show more ...
|
| 0b151872 | 23-Mar-2022 |
Tanmay Shah <tanmay.shah@xilinx.com> |
fix(versal): fix coverity scan warnings
- Fix memory overrun issue - include header file to fix Unknown macro warning
Change-Id: Ibe6fd206f44fbc22de746d255ff17c2b2325cd7b Signed-off-by: Tanmay Shah
fix(versal): fix coverity scan warnings
- Fix memory overrun issue - include header file to fix Unknown macro warning
Change-Id: Ibe6fd206f44fbc22de746d255ff17c2b2325cd7b Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
show more ...
|
| da6e654b | 04-Feb-2022 |
Ronak Jain <ronak.jain@xilinx.com> |
feat(versal): get version for ATF related EEMI APIs
The patch does below things.
1. As per current implementation, when Linux send a request to ATF to get the version of APIs which are implemented
feat(versal): get version for ATF related EEMI APIs
The patch does below things.
1. As per current implementation, when Linux send a request to ATF to get the version of APIs which are implemented in ATF then ATF wasn't returning any version because there is a check for LIBPM module id. The ATF is used to return version for the APIs which are implemented in the firmware only.
Hence moved this switch-case before checking module id to get ATF version.
Also, no need to pass Linux request to the firmware for the APIs which are implemented in ATF instead return success after updating version.
2. As per current implementation, higher 16-bit is used for ATF version and lower 16-bit is used for firmware version. Now, removed 16-bit shift operation and send complete word i.e. 32-bit to Linux user as there is no user who checks ATF version.
3. Add bit mask support in the feature check PM EEMI API for QUERY and IOCTL ids.
Change-Id: Icdca3de6659f3b673b81a423ed79a3c20b678768 Signed-off-by: Ronak Jain <ronak.jain@xilinx.com> Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
show more ...
|
| d34a5db8 | 21-Oct-2021 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
feat(versal): enhance PM_IOCTL EEMI API to support additional arg
Currently, SMC handler is limited to parsing 5 arguments (1 API ID + 4 32-bit command args). Extend this handling to support one mor
feat(versal): enhance PM_IOCTL EEMI API to support additional arg
Currently, SMC handler is limited to parsing 5 arguments (1 API ID + 4 32-bit command args). Extend this handling to support one more 32-bit command argument which is necessary to support new IOCTL IDs for secure read/write interface.
Note that, this change is completely transparent and does not affect existing functionality of any of the EEMI APIs.
Change-Id: I72016620eeeaf598f14853512120bfb30bb9a3e9 Signed-off-by: Izhar Ameer Shaikh <izhar.ameer.shaikh@xilinx.com> Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
show more ...
|
| 13979674 | 09-Aug-2021 |
Tanmay Shah <tanmay.shah@xilinx.com> |
feat(versal): add common interfaces to handle EEMI commands
This change adds common interfaces to handle commands from firmware driver to power management controller. It removes big chunk of source
feat(versal): add common interfaces to handle EEMI commands
This change adds common interfaces to handle commands from firmware driver to power management controller. It removes big chunk of source line of code that was handling each command separately and doing same repetitive work.
EEMI - Embedded Energy Management Interface is Xilinx proprietary protocol to allow communication between power management controller and different processing clusters.
As of now, Each EEMI command has its own implementation in TF-A. This is redundant. Essentially most EEMI command implementation in TF-A does same work. It prepares payload received from kernel, sends payload to firmware, receives response from firmware and send response back to kernel.
The same functionality can be achieved if common interface is used among multiple EEMI commands. This change divides platform management related SMCCC requests into 4 categories.
1) EEMI commands required for backward compatibility.
Some EEMI commands are still required for backward compatibility until removed completely or its use is changed to accommodate common interface
2) EEMI commands that require for PSCI interface and accessed from debugfs
For example EEMI calls related to CPU suspend/resume
3) TF-A specific requests
Functionality such as getting TF-A version and getting callback data for platform management is handled by this interface
4) Common interface for rest of EEMI commands
This handlers performs payload and firmware response transaction job for rest of EEMI commands. Also it parses module ID from SMC payload and inserts in IPI request. If not module ID is found, then default is LIBPM_MODULE_ID. This helps in making common path in TF-A for all the modules in PLM firmware
Change-Id: I57a2787c7fff9f2e1d1f9003b3daab092632d57e Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
show more ...
|
| 81333eac | 11-Apr-2022 |
Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> |
fix(xilinx): fix mismatching function prototype
The reported function raises a error when compilers assert the flag `-Warray-parameter=`, signaling that an array-type argument was promoted to a poin
fix(xilinx): fix mismatching function prototype
The reported function raises a error when compilers assert the flag `-Warray-parameter=`, signaling that an array-type argument was promoted to a pointer-type argument. We observed this behaviour with the gcc 11.2 version.
plat/xilinx/common/pm_service/pm_ipi.c:263:34: error: argument 1 of type 'uint32_t *' {aka 'unsigned int *'} declared as a pointer [-Werror=array-parameter=] 263 | uint32_t calculate_crc(uint32_t *payload, uint32_t bufsize) | ~~~~~~~~~~^~~~~~~ In file included from plat/xilinx/common/pm_service/pm_ipi.c:16: plat/xilinx/common/include/pm_ipi.h:30:33: note: previously declared as an array 'uint32_t[8]' {aka 'unsigned int[8]'} 30 | uint32_t calculate_crc(uint32_t payload[PAYLOAD_ARG_CNT], uint32_t buffersize); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ cc1.real: all warnings being treated as errors
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I7329f2e76ee0ca5faba71eb50babd20a796fee64
show more ...
|