]> git.baikalelectronics.ru Git - arm-tf.git/log
arm-tf.git
4 years agoAdd support for FEAT_MTPMU for Armv8.6
Javier Almansa Sobrino [Mon, 23 Nov 2020 18:38:15 +0000 (18:38 +0000)]
Add support for FEAT_MTPMU for Armv8.6

If FEAT_PMUv3 is implemented and PMEVTYPER<n>(_EL0).MT bit is implemented
as well, it is possible to control whether PMU counters take into account
events happening on other threads.

If FEAT_MTPMU is implemented, EL3 (or EL2) can override the MT bit
leaving it to effective state of 0 regardless of any write to it.

This patch introduces the DISABLE_MTPMU flag, which allows to diable
multithread event count from EL3 (or EL2). The flag is disabled
by default so the behavior is consistent with those architectures
that do not implement FEAT_MTPMU.

Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: Iee3a8470ae8ba13316af1bd40c8d4aa86e0cb85e

4 years agoMerge changes from topic "versal-bug-fixes-and-new-apis" into integration
Manish Pandey [Wed, 9 Dec 2020 22:44:44 +0000 (22:44 +0000)]
Merge changes from topic "versal-bug-fixes-and-new-apis" into integration

* changes:
  plat: xilinx: versal: Add support of register notifier
  plat: xilinx: versal: Add support to get clock rate value
  plat: xilinx: versal: Add support of set max latency for the device
  plat: versal: Add InitFinalize API call
  xilinx: versal: Updated Response of QueryData API call
  plat:xilinx:versal: Use defaults when PDI is without sw partitions
  plat: xilinx: Mask unnecessary bytes of return error code
  xilinx: versal: Skip store/restore of GIC during CPU idle
  plat: versal: Update API list in feature check
  xilinx: versal: Do not pass ACPU0 always in set_wakeup_source()

4 years agoMerge changes from topic "secure_no_primary" into integration
Olivier Deprez [Wed, 9 Dec 2020 15:08:27 +0000 (15:08 +0000)]
Merge changes from topic "secure_no_primary" into integration

* changes:
  spm: provide number of vCPUs and VM size for first SP
  spm: remove chosen node from SPMC manifests
  spm: move OP-TEE SP manifest DTS to FVP platform
  spm: update OP-TEE SP manifest with device-regions node
  spm: remove device-memory node from SPMC manifests

4 years agoMerge "docs: Update the FIP generation process using SP images" into integration
Olivier Deprez [Wed, 9 Dec 2020 14:08:06 +0000 (14:08 +0000)]
Merge "docs: Update the FIP generation process using SP images" into integration

4 years agodocs: Update the FIP generation process using SP images
Manish V Badarkhe [Wed, 25 Nov 2020 21:08:40 +0000 (21:08 +0000)]
docs: Update the FIP generation process using SP images

Updated the documentation for the FIP generation process using
SP images.

Change-Id: I4df7f379f08f33adba6f5c82904291576972e106
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
4 years agoMerge "rcar_gen3: drivers: console: Treat log as device memory" into integration
Manish Pandey [Tue, 8 Dec 2020 23:02:36 +0000 (23:02 +0000)]
Merge "rcar_gen3: drivers: console: Treat log as device memory" into integration

4 years agoMerge changes from topic "zynqmp-bug-fixes" into integration
Manish Pandey [Tue, 8 Dec 2020 22:53:13 +0000 (22:53 +0000)]
Merge changes from topic "zynqmp-bug-fixes" into integration

* changes:
  zynqmp: pm: Update flags in common clk divisor node
  zynqmp: pm_api_clock: Copy only the valid bytes

4 years agorcar_gen3: drivers: console: Treat log as device memory
Marek Vasut [Sun, 8 Nov 2020 18:13:32 +0000 (19:13 +0100)]
rcar_gen3: drivers: console: Treat log as device memory

The BL31 log driver is registered before the xlat tables are initialized,
at that point the log memory is configured as device memory and can only
be accessed with up-to-32bit aligned accesses. Adjust the driver to do
just that.

The memset() call has to be replaced by a loop of 32bit writes to the log,
the memcpy() is trivial to replace with a single 32bit write of the entire
TLOG word. In the end, this even simplifies the code.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: Ie9152e782e67d93e7236069a294df812e2b873bf

4 years agozynqmp: pm: Update flags in common clk divisor node
Ravi Patel [Tue, 18 Sep 2018 09:14:12 +0000 (02:14 -0700)]
zynqmp: pm: Update flags in common clk divisor node

Current implementation doesn't support change of div1 value if clk
has 2 divisor because div1 clk is the parent of the div2 clk and div2
clk does not have SET_RATE_PARENT flag.
This causes div1 value to be fixed and only value of div2 will be
adjusted according to required clock rate.

Example:
 Consider a case of nand_ref clock which has 2 divisor and 1 mux.
 The frequency of mux clock is 1500MHz and default value of div1 and
 div2 is 15 and 1 respectively. So the final clock will be of 100MHz.
 When driver requests 80MHz for nand_ref clock, clock framework will
 adjust the div2 value to 1 (setting div2 value 2 results final clock
 to 50MHz which is more inaccurate compare to 100Mhz) which results
 final clock to 100MHz.
 Ideally the value of div1 and div2 should be updated to 19 and 1
 respectively so that final clock goes to around 78MHz.

This patch fixes above problem by allowing change in div1 value.

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: Ibb98f6748d28653fdd1e59bf433b6a37ce9c1a58

4 years agozynqmp: pm_api_clock: Copy only the valid bytes
Siva Durga Prasad Paladugu [Mon, 23 Nov 2020 06:10:12 +0000 (22:10 -0800)]
zynqmp: pm_api_clock: Copy only the valid bytes

This patches copies only the valid part of string and
avoids filling junk at the end.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: If23772f31f9cf7f5042e8bfc474fbfe77dcd90e7

4 years agoMerge changes Ibbee37c8,Ic3a13c83,Ib7f2380a,I83b477fd,I284956d4, ... into integration
Manish Pandey [Tue, 8 Dec 2020 16:29:52 +0000 (16:29 +0000)]
Merge changes Ibbee37c8,Ic3a13c83,Ib7f2380a,I83b477fd,I284956d4, ... into integration

* changes:
  mediatek: mt8192: dcm: Add mcusys related dcm drivers
  mediatek: mt8192: add ptp3 driver
  mediatek: mt8192: Add SiP service
  mediatek: mt8192: add uart save and restore api
  mediatek: mt8192: modify sys_cirq driver
  mediatek: mt8192: add power-off support
  mediatek: mt8192: add pmic mt6359p driver
  mediatek: mt8192: Initialize delay_timer
  mediatek: mt8192: enable NS access for systimer
  mediatek: mt8192: Add CPU hotplug and MCDI support
  mediatek: mt8192: Add MCDI drivers
  mediatek: mt8192: Add SPMC driver

4 years agospm: provide number of vCPUs and VM size for first SP
Olivier Deprez [Wed, 25 Nov 2020 09:29:41 +0000 (10:29 +0100)]
spm: provide number of vCPUs and VM size for first SP

The primary VM concept is removed from the SPMC.
Update the SPMC manifests with number of Execution Contexts
and SP workspace size for the first Secure Partition (as it
is done for NWd secondary VMs and other SPs).

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I3b9c52666f7dfe74ab1f7d2148ad0070ee44b54e

4 years agospm: remove chosen node from SPMC manifests
Olivier Deprez [Tue, 24 Nov 2020 16:32:43 +0000 (17:32 +0100)]
spm: remove chosen node from SPMC manifests

The chosen node is no longer required as the SPMC implements
a specific boot flow which no longer requires this node.

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: Ib566b602a7f83003a1b2d0ba5f6ebf4d8b7a9156

4 years agospm: move OP-TEE SP manifest DTS to FVP platform
Olivier Deprez [Thu, 3 Dec 2020 14:13:49 +0000 (15:13 +0100)]
spm: move OP-TEE SP manifest DTS to FVP platform

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I0981c43e2ef8172138f65d95eac7b20f8969394e

4 years agospm: update OP-TEE SP manifest with device-regions node
Olivier Deprez [Thu, 12 Nov 2020 17:14:22 +0000 (18:14 +0100)]
spm: update OP-TEE SP manifest with device-regions node

Specify peripherals accessed by OP-TEE as a Secure Partition
running as a VM managed by the SPMC.

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: Icf9aae038e2b1b0ce4696f78ff964bfff8a1498c

4 years agospm: remove device-memory node from SPMC manifests
Olivier Deprez [Tue, 10 Nov 2020 16:50:43 +0000 (17:50 +0100)]
spm: remove device-memory node from SPMC manifests

The PVM concept is removed from the SPMC so the device-memory
node which is specifying the device memory range for the PVM
is no longer applicable.

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: If0cb956e0197028b24ecb78952c66ec454904516

4 years agomediatek: mt8192: dcm: Add mcusys related dcm drivers
Nina Wu [Tue, 8 Sep 2020 06:36:07 +0000 (14:36 +0800)]
mediatek: mt8192: dcm: Add mcusys related dcm drivers

1. Add mcusys related dcm drivers
2. Turn on mcusys-related dcm by default

Change-Id: Ibbee37c87cc38e7a6cd7c93c2fc0817aad6dbe95
Signed-off-by: Nina Wu <nina-cm.wu@mediatek.com>
4 years agomediatek: mt8192: add ptp3 driver
elly.chiang [Tue, 25 Aug 2020 14:31:14 +0000 (22:31 +0800)]
mediatek: mt8192: add ptp3 driver

enable PTP3 for protecting sysPi

Signed-off-by: elly.chiang <elly.chiang@mediatek.com>
Change-Id: Ic3a13c8314f829dca8547861b98639d1d9444eb2

4 years agomediatek: mt8192: Add SiP service
Nina Wu [Wed, 19 Aug 2020 09:20:15 +0000 (17:20 +0800)]
mediatek: mt8192: Add SiP service

Add the basic SiP service

Change-Id: Ib7f2380aab910adf8d33498a79ecd287273907c5
Signed-off-by: Nina Wu <nina-cm.wu@mediatek.com>
4 years agomediatek: mt8192: add uart save and restore api
Yuchen Huang [Sat, 1 Aug 2020 08:23:12 +0000 (16:23 +0800)]
mediatek: mt8192: add uart save and restore api

When system resume, we want to print log as soon as possible.
So we add uart save and restore api, and they will be called
when systtem suspend and resume.

Change-Id: I83b477fd2b39567c9c6b70534ef186993f7053ae
Signed-off-by: Yuchen Huang <yuchen.huang@mediatek.com>
Signed-off-by: Roger Lu <roger.lu@mediatek.com>
4 years agomediatek: mt8192: modify sys_cirq driver
G.Pangao [Fri, 6 Nov 2020 01:20:25 +0000 (09:20 +0800)]
mediatek: mt8192: modify sys_cirq driver

1.Modify this driver to make it more complete and more standard.
2.And makes this driver available for more IC services.
3.Solve some bugs in the software.

Signed-off-by: G.Pangao <gtk_pangao@mediatek.com>
Change-Id: I284956d47ebbbd550ec93767679181185e442348

4 years agomediatek: mt8192: add power-off support
Hsin-Hsiung Wang [Wed, 12 Aug 2020 08:32:10 +0000 (16:32 +0800)]
mediatek: mt8192: add power-off support

add power-off support

Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Change-Id: If19e99971515a8ae1ac9ae21046e4382adc18a69

4 years agomediatek: mt8192: add pmic mt6359p driver
Hsin-Hsiung Wang [Wed, 12 Aug 2020 08:31:06 +0000 (16:31 +0800)]
mediatek: mt8192: add pmic mt6359p driver

add pmic mt6359p driver

Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Change-Id: I20f2218f7d2087e8d2bf31258cf92a02e0dab77d

4 years agomediatek: mt8192: Initialize delay_timer
Nina Wu [Wed, 5 Aug 2020 05:53:59 +0000 (13:53 +0800)]
mediatek: mt8192: Initialize delay_timer

Init delay_timer for the use of delay functions

Change-Id: I35aefd7515bb9259634c8b6bc37d8c74da96e8f1
Signed-off-by: Nina Wu <nina-cm.wu@mediatek.com>
4 years agomediatek: mt8192: enable NS access for systimer
Dehui Sun [Mon, 6 Jul 2020 10:01:42 +0000 (18:01 +0800)]
mediatek: mt8192: enable NS access for systimer

Enable NS access for all systimers.

Signed-off-by: Dehui Sun <dehui.sun@mediatek.com>
Change-Id: I3693997082a1d6f09fef5a79b6cf5a91be46cb8a

4 years agomediatek: mt8192: Add CPU hotplug and MCDI support
James Liao [Tue, 16 Jun 2020 03:48:36 +0000 (11:48 +0800)]
mediatek: mt8192: Add CPU hotplug and MCDI support

Implement PSCI platform OPs to support CPU hotplug and MCDI.

Change-Id: I31abfc752b69ac40e70bc9e7a55163eb39776c44
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
4 years agomediatek: mt8192: Add MCDI drivers
James Liao [Mon, 15 Jun 2020 08:41:03 +0000 (16:41 +0800)]
mediatek: mt8192: Add MCDI drivers

Add MCDI related drivers to handle CPU powered on/off in CPU suspend.

Change-Id: I5110461e8eef86f8383b45f197ec5cb10dbfeb3e
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
4 years agomediatek: mt8192: Add SPMC driver
James Liao [Tue, 16 Jun 2020 05:28:28 +0000 (13:28 +0800)]
mediatek: mt8192: Add SPMC driver

Add SPMC driver for CPU power on/off.

Change-Id: I526b98d5885855efce019dd09cfd93b8816cbf19
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
4 years agoMerge changes from topic "zynqmp-misc-enhancement" into integration
Madhukar Pappireddy [Mon, 7 Dec 2020 18:13:50 +0000 (18:13 +0000)]
Merge changes from topic "zynqmp-misc-enhancement" into integration

* changes:
  plat: xilinx: zynqmp: Enable log messages for debug
  plat: zynqmp: Change macro name of PM_BOOT_HEALTH_STATUS_REG

4 years agoMerge changes from topic "marvell-a3k-makefile" into integration
Manish Pandey [Mon, 7 Dec 2020 11:29:46 +0000 (11:29 +0000)]
Merge changes from topic "marvell-a3k-makefile" into integration

* changes:
  plat: marvell: armada: a3k: Simplify check if WTP variable is defined
  plat: marvell: armada: a3k: Split building $(WTMI_MULTI_IMG) and $(TIMDDRTOOL)
  plat: marvell: armada: Maximal size of bl1 image in mrvl_bootimage is 128kB
  plat: marvell: armada: Add missing FORCE, .PHONY and clean targets
  plat: marvell: armada: a3k: Use make ifeq/endif syntax for $(MARVELL_SECURE_BOOT) code
  plat: marvell: armada: a3k: Build $(WTMI_ENC_IMG) in $(BUILD_PLAT) directory
  plat: marvell: armada: a3k: Do not remove external WTMI image files outside of TF-A repository
  plat: marvell: armada: a3k: Do not modify $(WTMI_MULTI_IMG)
  plat: marvell: armada: a3k: Do not modify $(WTMI_IMG)

4 years agoplat: xilinx: versal: Add support of register notifier
Tejas Patel [Wed, 25 Nov 2020 09:56:57 +0000 (01:56 -0800)]
plat: xilinx: versal: Add support of register notifier

Add support of register notifier.

Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I41ef4c63abcc9aee552790b843adb25a5fd0c23e

4 years agoplat: xilinx: versal: Add support to get clock rate value
Tejas Patel [Tue, 1 Sep 2020 11:43:53 +0000 (04:43 -0700)]
plat: xilinx: versal: Add support to get clock rate value

Add support to get clock's rate value.

Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I3ed881053ef323b2ca73e13edd0affda860d381d

4 years agoplat: xilinx: versal: Add support of set max latency for the device
Tejas Patel [Wed, 25 Nov 2020 09:53:12 +0000 (01:53 -0800)]
plat: xilinx: versal: Add support of set max latency for the device

Add support of set max latency, to change in the maximum powerup latency
requirements for a specific device currently used by Subsystem.

Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I8749886abb1a7884a42c4d156d89c9cd562a5b1a

4 years agoplat: versal: Add InitFinalize API call
Ravi Patel [Mon, 12 Aug 2019 10:10:10 +0000 (03:10 -0700)]
plat: versal: Add InitFinalize API call

Add support to call InitFinalize API in Versal which calls
corresponding LibPM API.

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I3428b7245b4db1ef6db8a90b7ad20b6e484ed3b2

4 years agoxilinx: versal: Updated Response of QueryData API call
Rajan Vaja [Mon, 23 Nov 2020 12:13:54 +0000 (04:13 -0800)]
xilinx: versal: Updated Response of QueryData API call

For the current XilPM calls, The handler of IPI returns information
with 16 Bytes data.
So during QueryData API call for the ClockName and PinFunctionName,
response data(name of clock or function) response[0..3] are used to
return name. And status is not being returned for such API.

Updated XilPM calls reply in a consistent way and The handler of IPI
return information with 32Bytes data. Where response[0] always set
to status.
For the version-2 of QueryData API, during call for the ClockName
and PinFunctionName, response data(name of clock or function) get as
response[1...4].

To support both the version of QueryData API, added version based
compatibility by the use of feature check.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Amit Sunil Dhamne <amit.sunil.dhamne@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I336128bff7bbe659903b0f8ce20ae6da7e3b51b4

4 years agoplat:xilinx:versal: Use defaults when PDI is without sw partitions
Venkatesh Yadav Abbarapu [Mon, 23 Nov 2020 11:29:51 +0000 (03:29 -0800)]
plat:xilinx:versal: Use defaults when PDI is without sw partitions

In JTAG mode check the ATF handoff structure, if the magic string
is not present then use bl32 and bl33 default values.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I1f2c4a2060d8a2e70d3b5fb2473124b685f257fc

4 years agoplat: xilinx: Mask unnecessary bytes of return error code
Ravi Patel [Mon, 23 Nov 2020 12:19:08 +0000 (04:19 -0800)]
plat: xilinx: Mask unnecessary bytes of return error code

Versal firmware adds extra error codes along with PM error codes
while sending response to driver. This makes incorrect error
identification at driver side.

To fix this, mask the unnecessary error bytes before sending the
error code to the driver.

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I18c2f3bd2d067e91344852c2f0c1bafea0e6eb23

4 years agoxilinx: versal: Skip store/restore of GIC during CPU idle
Ravi Patel [Fri, 21 Jun 2019 12:00:49 +0000 (05:00 -0700)]
xilinx: versal: Skip store/restore of GIC during CPU idle

GIC registers needs to be stored/restored during system
suspend/resume only and not during CPU idle.
During CPU idle, minimum 1 CPU is in ON state.

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I5de2ce3a61bf4260f9385349202b0f592a47aaba

4 years agoplat: versal: Update API list in feature check
Venkatesh Yadav Abbarapu [Wed, 11 Dec 2019 03:16:36 +0000 (22:16 -0500)]
plat: versal: Update API list in feature check

Add below API in feature check list which is actually present in
firmware:
- PM_GET_CHIPID

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I98b82da74164f065c8835861f74b0f2855e9bcbf

4 years agoxilinx: versal: Do not pass ACPU0 always in set_wakeup_source()
Ravi Patel [Tue, 30 Jul 2019 11:10:07 +0000 (04:10 -0700)]
xilinx: versal: Do not pass ACPU0 always in set_wakeup_source()

Existing code passes ACPU0 to LibPM as node_id in set_wakeup_source()
call because last suspending core will be ACPU0 in most of the case.

Now it may be possible that user may disable the ACPU0 using hot-plug
and after that it suspends Linux. So in that case ACPU0 will not be
last suspending core.

To overcome above scenario, pass the current running processor ID
while calling set_wakeup_source().

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: If15354c2150b5bb1305b5f93ca4e8c7a81d59f0a

4 years agoplat: marvell: armada: a3k: Simplify check if WTP variable is defined
Pali Rohár [Thu, 3 Dec 2020 11:00:47 +0000 (12:00 +0100)]
plat: marvell: armada: a3k: Simplify check if WTP variable is defined

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: Ieb352f0765882efdcb64ef54e6b2a39768590a06

4 years agoplat: marvell: armada: a3k: Split building $(WTMI_MULTI_IMG) and $(TIMDDRTOOL)
Pali Rohár [Mon, 23 Nov 2020 18:49:23 +0000 (19:49 +0100)]
plat: marvell: armada: a3k: Split building $(WTMI_MULTI_IMG) and $(TIMDDRTOOL)

These two targets are build by make subprocesses and are independent.
So splitting them into own targets allow make to build them in parallel.
$(TIMBUILD) script depends on $(TIMDDRTOOL) so specify it in Makefile.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I139fc7fe64d8de275b01a853e15bfb88c4ff840d

4 years agoplat: marvell: armada: Maximal size of bl1 image in mrvl_bootimage is 128kB
Pali Rohár [Thu, 3 Dec 2020 10:59:53 +0000 (11:59 +0100)]
plat: marvell: armada: Maximal size of bl1 image in mrvl_bootimage is 128kB

Add check when building mrvl_bootimage that size of bl1 image is not bigger
than maximal size.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: Ib873debd3cfdba9acd4c168ee37edab3032e9f25

4 years agoplat: marvell: armada: Add missing FORCE, .PHONY and clean targets
Pali Rohár [Mon, 23 Nov 2020 18:45:28 +0000 (19:45 +0100)]
plat: marvell: armada: Add missing FORCE, .PHONY and clean targets

FORCE target is used as a dependency for other file targets which needs to
be always rebuilt. .PHONY target is standard Makefile target which specify
non-file targets and therefore needs to be always rebuilt.

Targets clean, realclean and distclean are .PHONY targets used to remove
built files. Correctly set that mrvl_clean target is prerequisite for these
clean targets to ensure that built files are removed.

Finally this change with usage of FORCE target allows to remove mrvl_clean
hack from the prerequisites of a8k ${DOIMAGETOOL} target which was used
just to ensure that ${DOIMAGETOOL} is always rebuilt via make subprocess.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I2fa8971244b43f101d846fc433ef7b0b6f139c92

4 years agoplat: marvell: armada: a3k: Use make ifeq/endif syntax for $(MARVELL_SECURE_BOOT...
Pali Rohár [Mon, 23 Nov 2020 18:37:28 +0000 (19:37 +0100)]
plat: marvell: armada: a3k: Use make ifeq/endif syntax for $(MARVELL_SECURE_BOOT) code

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: Id766db4a900a56c795fe5ffdd8a2b80b1aaa2132

4 years agoplat: marvell: armada: a3k: Build $(WTMI_ENC_IMG) in $(BUILD_PLAT) directory
Pali Rohár [Mon, 23 Nov 2020 18:34:43 +0000 (19:34 +0100)]
plat: marvell: armada: a3k: Build $(WTMI_ENC_IMG) in $(BUILD_PLAT) directory

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: Iaecd6c24bf334a959ac2bf395c3ee49c810b01a7

4 years agoplat: marvell: armada: a3k: Do not remove external WTMI image files outside of TF...
Pali Rohár [Mon, 23 Nov 2020 18:22:37 +0000 (19:22 +0100)]
plat: marvell: armada: a3k: Do not remove external WTMI image files outside of TF-A repository

Create copy of WTMI images instead of moving them into TF-A build directory.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I2dc24c33b9ce540e4acde51fc1a5c946ae66a5d7

4 years agoplat: marvell: armada: a3k: Do not modify $(WTMI_MULTI_IMG)
Pali Rohár [Mon, 23 Nov 2020 18:19:04 +0000 (19:19 +0100)]
plat: marvell: armada: a3k: Do not modify $(WTMI_MULTI_IMG)

Rather create a temporary copy in $(BUILD_PLAT) and modify only copy.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I256c029106ea6f69faa086fc4e5bee9f68cd257f

4 years agoplat: marvell: armada: a3k: Do not modify $(WTMI_IMG)
Pali Rohár [Mon, 23 Nov 2020 18:14:40 +0000 (19:14 +0100)]
plat: marvell: armada: a3k: Do not modify $(WTMI_IMG)

$(WTMI_IMG) is used only by $(MAKE) subprocess in $(DOIMAGEPATH) directory.
So calling truncate on $(WTMI_IMG) after $(MAKE) in $(DOIMAGEPATH) has no
effect and can just damage input file for future usage. Therefore remove
this truncate call.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I9925c54c5d3d10eadc19825c5565ad4598a739a7

4 years agoplat: xilinx: zynqmp: Enable log messages for debug
Venkatesh Yadav Abbarapu [Fri, 10 Jan 2020 10:01:35 +0000 (03:01 -0700)]
plat: xilinx: zynqmp: Enable log messages for debug

Save some space by enabling the log messages like bl33 address
only for debug builds. Also check the bl33 and bl32 address and
print only if this is not NULL.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I58d846bf69a75e839eb49abcbb9920af13296886

4 years agoplat: zynqmp: Change macro name of PM_BOOT_HEALTH_STATUS_REG
Tejas Patel [Mon, 23 Nov 2020 07:37:55 +0000 (23:37 -0800)]
plat: zynqmp: Change macro name of PM_BOOT_HEALTH_STATUS_REG

For boot health status PMU Global General Storage Register 4 is
used. GGS4 can be used for other purpose along with boot health
status. So, change its name from PM_BOOT_HEALTH_STATUS_REG
to PMU_GLOBAL_GEN_STORAGE4.

Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I2f5c4c6a161121e7cdb4b9f0f8711d0dad16c372

4 years agoMerge "qemu/qemu_sbsa: increase SHARED_RAM_SIZE" into integration
Madhukar Pappireddy [Mon, 7 Dec 2020 03:40:39 +0000 (03:40 +0000)]
Merge "qemu/qemu_sbsa: increase SHARED_RAM_SIZE" into integration

4 years agoMerge "plat: xilinx: zynqmp: Include GICv2 makefile" into integration
Madhukar Pappireddy [Sat, 5 Dec 2020 23:28:25 +0000 (23:28 +0000)]
Merge "plat: xilinx: zynqmp: Include GICv2 makefile" into integration

4 years agoplat: xilinx: zynqmp: Include GICv2 makefile
Venkatesh Yadav Abbarapu [Fri, 4 Dec 2020 03:27:18 +0000 (20:27 -0700)]
plat: xilinx: zynqmp: Include GICv2 makefile

Update the xilinx platform makefile to include GICv2 makefile
instead of adding the individual files. Updating this change
as per the latest changes done in the commit #1322dc94f7.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Change-Id: I79d8374c47a7f42761d121522b32ac7a5021ede8

4 years agoMerge "plat: xilinx: Use fno-jump-tables flag in CPPFLAGS" into integration
Madhukar Pappireddy [Thu, 3 Dec 2020 16:58:59 +0000 (16:58 +0000)]
Merge "plat: xilinx: Use fno-jump-tables flag in CPPFLAGS" into integration

4 years agoMerge ".editorconfig: set max line length to 100" into integration
Manish Pandey [Thu, 3 Dec 2020 16:14:40 +0000 (16:14 +0000)]
Merge ".editorconfig: set max line length to 100" into integration

4 years agoMerge "plat: marvell: Update SUBVERSION to match Marvell's forked version" into integ...
Madhukar Pappireddy [Thu, 3 Dec 2020 15:51:50 +0000 (15:51 +0000)]
Merge "plat: marvell: Update SUBVERSION to match Marvell's forked version" into integration

4 years ago.editorconfig: set max line length to 100
Yann Gautier [Wed, 19 Aug 2020 17:07:26 +0000 (19:07 +0200)]
.editorconfig: set max line length to 100

Relax the 80 character line length, as done in checkpatch,
since Linux 5.7.

Change-Id: I093a2e6a45336339193173f7ff6a461279cf411d
Signed-off-by: Yann Gautier <yann.gautier@st.com>
4 years agoMerge "Aarch64: Add support for FEAT_PANx extensions" into integration
Manish Pandey [Thu, 3 Dec 2020 13:08:02 +0000 (13:08 +0000)]
Merge "Aarch64: Add support for FEAT_PANx extensions" into integration

4 years agoMerge "Aarch64: Add support for FEAT_MTE3" into integration
Olivier Deprez [Thu, 3 Dec 2020 11:02:26 +0000 (11:02 +0000)]
Merge "Aarch64: Add support for FEAT_MTE3" into integration

4 years agoMerge "rockchip: Add support for the stack protector" into integration
Madhukar Pappireddy [Wed, 2 Dec 2020 18:26:47 +0000 (18:26 +0000)]
Merge "rockchip: Add support for the stack protector" into integration

4 years agoAarch64: Add support for FEAT_MTE3
Alexei Fedorov [Tue, 1 Dec 2020 13:22:25 +0000 (13:22 +0000)]
Aarch64: Add support for FEAT_MTE3

This patch provides the following changes:
- Adds definition for FEAT_MTE3 value in ID_AA64PFR1_EL1 register
- Enables Memory Tagging Extension for FEAT_MTE3.

Change-Id: I735988575466fdc083892ec12c1aee89b5faa472
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
4 years agoMerge "Add myself and Venkatesh Yadav Abbarapu as code owners for Xilinx platforms...
Manish Pandey [Wed, 2 Dec 2020 12:18:02 +0000 (12:18 +0000)]
Merge "Add myself and Venkatesh Yadav Abbarapu as code owners for Xilinx platforms" into integration

4 years agoMerge "Add support for Neoverse-N2 CPUs." into integration
Lauren Wehrmeister [Tue, 1 Dec 2020 17:06:46 +0000 (17:06 +0000)]
Merge "Add support for Neoverse-N2 CPUs." into integration

4 years agoqemu/qemu_sbsa: increase SHARED_RAM_SIZE
Masato Fukumori [Tue, 1 Dec 2020 13:17:27 +0000 (22:17 +0900)]
qemu/qemu_sbsa: increase SHARED_RAM_SIZE

Increase SHARED_RAM_SIZE in sbsa_qemu platform from 4KB to 8KB.

sbsa_qemu uses SHARED_RAM for mail box and hold state of each cpus. If
qemu is configured with 512 cpus, region size used by qemu is greater
than 4KB.

Signed-off-by: Masato Fukumori <masato.fukumori@linaro.org>
Change-Id: I639e44e89335249d385cdc339350f509e9bd5e36

4 years agorockchip: Add support for the stack protector
Christoph Müllner [Fri, 20 Nov 2020 21:06:16 +0000 (22:06 +0100)]
rockchip: Add support for the stack protector

It uses the system timer as "entropy" source in the same
way as QEMU, layerscape and others.

Change-Id: Icda17b78e85255bea96109ca2ee0e091187d62ac
Signed-off-by: Christoph Müllner <christophm30@gmail.com>
4 years agoAdd support for Neoverse-N2 CPUs.
Javier Almansa Sobrino [Fri, 23 Oct 2020 12:22:07 +0000 (13:22 +0100)]
Add support for Neoverse-N2 CPUs.

Enable basic support for Neoverse-N2 CPUs.

Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I498adc2d9fc61ac6e1af8ece131039410872e8ad

4 years agoAarch64: Add support for FEAT_PANx extensions
Alexei Fedorov [Wed, 25 Nov 2020 14:07:05 +0000 (14:07 +0000)]
Aarch64: Add support for FEAT_PANx extensions

This patch provides the changes listed below:
- Adds new bit fields definitions for SCTLR_EL1/2 registers
- Corrects the name of SCTLR_EL1/2.[20] bit field from
SCTLR_UWXN_BIT to SCTLR_TSCXT_BIT
- Adds FEAT_PANx bit field definitions and their possible
values for ID_AA64MMFR1_EL1 register.
- Adds setting of SCTLR_EL1.SPAN bit to preserve PSTATE.PAN
on taking an exception to EL1 in spm_sp_setup() function
(services\std_svc\spm_mm\spm_mm_setup.c)

Change-Id: If51f20e7995c649126a7728a4d0867041fdade19
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
4 years agoMerge changes from topic "xilinx-pm-mainline-linux" into integration
Manish Pandey [Mon, 30 Nov 2020 12:05:11 +0000 (12:05 +0000)]
Merge changes from topic "xilinx-pm-mainline-linux" into integration

* changes:
  zynqmp: pm: update error codes to match Linux and PMU Firmware
  zynqmp: pm: Filter errors related to clock gate permissions

4 years agoMerge "mediatek: mt8183: add timer V20 compensation" into integration
Manish Pandey [Fri, 27 Nov 2020 11:11:39 +0000 (11:11 +0000)]
Merge "mediatek: mt8183: add timer V20 compensation" into integration

4 years agoMerge changes I5ad52909,Iea3214a2 into integration
Manish Pandey [Tue, 24 Nov 2020 12:04:42 +0000 (12:04 +0000)]
Merge changes I5ad52909,Iea3214a2 into integration

* changes:
  fdts: Add VirtIO network device to Morello FVP
  fdts: Remove "virtio-rng" from Morello FVP

4 years agoMerge "plat:qti Mandate SMC implementaion" into integration
Manish Pandey [Mon, 23 Nov 2020 10:29:48 +0000 (10:29 +0000)]
Merge "plat:qti Mandate SMC implementaion" into integration

4 years agofdts: Add VirtIO network device to Morello FVP
Jessica Clarke [Sun, 25 Oct 2020 18:18:47 +0000 (18:18 +0000)]
fdts: Add VirtIO network device to Morello FVP

Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Change-Id: I5ad5290925f637b94168b507b3dcbdd5e1b82e5a

4 years agofdts: Remove "virtio-rng" from Morello FVP
Jessica Clarke [Sun, 25 Oct 2020 18:10:24 +0000 (18:10 +0000)]
fdts: Remove "virtio-rng" from Morello FVP

This is not a standard string that any kernel recognises, nor do any of
the FDTs embedded in kernels specify this, nor does QEMU's virt machine.
Whilst its presence does no harm, it's not a thing code should consult
as a result, and so drop it in order to not cause confusion and risk
incorrect code being written to search for it.

Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Change-Id: Iea3214a23181c54e600cf8f4f12dfc822140c23d

4 years agoMerge "plat/nvidia: tegra: Rename SMC API" into integration
Madhukar Pappireddy [Fri, 20 Nov 2020 15:36:37 +0000 (15:36 +0000)]
Merge "plat/nvidia: tegra: Rename SMC API" into integration

4 years agoMerge "plat/qemu_sbsa: Include libraries for Cortex-A72" into integration
Manish Pandey [Fri, 20 Nov 2020 12:30:10 +0000 (12:30 +0000)]
Merge "plat/qemu_sbsa: Include libraries for Cortex-A72" into integration

4 years agoplat/qemu_sbsa: Include libraries for Cortex-A72
Tanmay Jagdale [Fri, 20 Nov 2020 11:06:50 +0000 (16:36 +0530)]
plat/qemu_sbsa: Include libraries for Cortex-A72

Include libraries needed to emulate Cortex-A72 on
sbsa-ref target of QEMU.

Signed-off-by: Tanmay Jagdale <tanmay.jagdale@linaro.org>
Change-Id: I98cf17b1662c70898977a841af07e07b5cfca8ba

4 years agoplat/nvidia: tegra: Rename SMC API
Manish V Badarkhe [Thu, 19 Nov 2020 19:52:41 +0000 (19:52 +0000)]
plat/nvidia: tegra: Rename SMC API

Renamed SMC API from "plat_smccc_feature_available" to
"plat_is_smccc_feature_available" as per the current implementation.

Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: Ib0fa400816fba61039c2029a9e127501a6a36811

4 years agoplat:qti Mandate SMC implementaion
Saurabh Gorecha [Thu, 19 Nov 2020 19:35:47 +0000 (01:05 +0530)]
plat:qti Mandate SMC implementaion

renamed smcc api with correct name  plat_is_smccc_feature_available

Change-Id: I277ece02bffc2caa065256576c1a047dfcde1c92
Signed-off-by: Saurabh Gorecha <sgorecha@codeaurora.org>
4 years agoMerge changes from topic "mrvl_bootimage" into integration
Manish Pandey [Thu, 19 Nov 2020 11:18:26 +0000 (11:18 +0000)]
Merge changes from topic "mrvl_bootimage" into integration

* changes:
  docs: marvell: Update build documentation to reflect mrvl_bootimage and mrvl_flash changes
  plat: marvell: armada: Add new target mrvl_bootimage
  plat: marvell: armada: a3k: Add support for building $(DOIMAGETOOL)

4 years agoplat: marvell: Update SUBVERSION to match Marvell's forked version
Pali Rohár [Tue, 10 Nov 2020 15:34:48 +0000 (16:34 +0100)]
plat: marvell: Update SUBVERSION to match Marvell's forked version

Marvell's TF-A fork has SUBVERSION set to devel-18.12.2.

The only differences between Marvell's devel-18.12.0 and devel-18.12.2
versions are documentation updates and cherry-picked patches from TF-A
upstream repository.

So upstream TF-A has already all changes from Marvell's TF-A devel-18.12.2
fork and therefore update SUBVERSION to reflect this state.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I5ce946a5176a5cbf124acd8037392463d586b072

4 years agodocs: marvell: Update build documentation to reflect mrvl_bootimage and mrvl_flash...
Pali Rohár [Thu, 29 Oct 2020 16:44:27 +0000 (17:44 +0100)]
docs: marvell: Update build documentation to reflect mrvl_bootimage and mrvl_flash changes

Also add example how to build TF-A for A3720 Turris MOX board and also fix
style/indentation issues and information about default values.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I2dc957307b1b627b403a8d960e85f5ac9e15aee5

4 years agoplat: marvell: armada: Add new target mrvl_bootimage
Pali Rohár [Thu, 29 Oct 2020 15:50:19 +0000 (16:50 +0100)]
plat: marvell: armada: Add new target mrvl_bootimage

This new target builds boot-image.bin binary as described in documentation.
This image does not contain WTMI image and therefore WTP repository is not
required for building.

Having ability to build just this boot-image.bin binary without full
flash-image.bin is useful for A3720 Turris MOX board which does not use
Marvell's WTP and a3700_utils.

To reduce duplicity between a8k and a3k code, define this new target and
also definitions for $(BUILD_PLAT)/$(BOOT_IMAGE) in common include file
marvell_common.mk.

For this purpose it is needed to include plat/marvell/marvell.mk file from
a3700_common.mk unconditionally (and not only when WTP is defined). Now
when common file plat/marvell/marvell.mk does not contain definition for
building $(DOIMAGETOOL), it is possible to move its inclusion at the top of
the a3700_common.mk file.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: Ic58303b37a1601be9a06ff83b7a279cb7cfc8280

4 years agoplat: marvell: armada: a3k: Add support for building $(DOIMAGETOOL)
Pali Rohár [Thu, 29 Oct 2020 15:44:45 +0000 (16:44 +0100)]
plat: marvell: armada: a3k: Add support for building $(DOIMAGETOOL)

Current binary wtptp/linux/tbb_linux which is specified in $(DOIMAGETOOL)
variable points to external pre-compiled Marvell x86_64 ELF linux binary
from A3700-utils-marvell WTP repository.

It means that currently it is not possible to compile TF-A for A3720 on
other host platform then linux x86_64.

Part of the A3700-utils-marvell WTP repository is also source code of
$(DOIMAGETOOL) TBB_Linux tool.

This change adds support for building $(DOIMAGETOOL) also for a3k platform.

After running $(MAKE) at appropriate subdirectory of A3700-utils-marvell
WTP repository, compiled TBB_linux tool will appear in WTP subdirectory
wtptp/src/TBB_Linux/release/. So update also $(DOIMAGETOOL) variable to
point to the correct location where TBB_linux was built.

To build TBB_linux it is required to compile external Crypto++ library
which is available at: https://github.com/weidai11/cryptopp.git

User needs to set CRYPTOPP_PATH option to specify path to that library.

After this change it is now possible to build whole firmware for A3720
platform without requirement to use pre-compiled/proprietary x86_64
executable binaries from Marvell.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I6f26bd4356778a2f8f730a223067a2e550e6c8e0

4 years agoMerge "Revert workaround for A77 erratum 1800714" into integration
Madhukar Pappireddy [Thu, 19 Nov 2020 01:30:49 +0000 (01:30 +0000)]
Merge "Revert workaround for A77 erratum 1800714" into integration

4 years agoMerge "Revert workaround for A76 erratum 1800710" into integration
Madhukar Pappireddy [Thu, 19 Nov 2020 01:30:42 +0000 (01:30 +0000)]
Merge "Revert workaround for A76 erratum 1800710" into integration

4 years agoMerge "Fix typos and misspellings" into integration
Madhukar Pappireddy [Thu, 19 Nov 2020 00:31:29 +0000 (00:31 +0000)]
Merge "Fix typos and misspellings" into integration

4 years agoMerge "TSP: Fix GCC 11.0.0 compilation error." into integration
Madhukar Pappireddy [Wed, 18 Nov 2020 18:14:14 +0000 (18:14 +0000)]
Merge "TSP: Fix GCC 11.0.0 compilation error." into integration

4 years agoMerge "Makefile: Update the minor version to indicate 2.4 release" into integration
Manish Pandey [Tue, 17 Nov 2020 16:43:51 +0000 (16:43 +0000)]
Merge "Makefile: Update the minor version to indicate 2.4 release" into integration

4 years agoMakefile: Update the minor version to indicate 2.4 release
Manish V Badarkhe [Thu, 8 Oct 2020 01:33:17 +0000 (02:33 +0100)]
Makefile: Update the minor version to indicate 2.4 release

Updated the minor version to '4' to indicate 2.4 release

Change-Id: Ib142fa15baeb43025fae371c7649199b8121c18f
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
4 years agoMerge "docs: Update changelog for v2.4 release" into integration
Joanna Farley [Tue, 17 Nov 2020 14:32:01 +0000 (14:32 +0000)]
Merge "docs: Update changelog for v2.4 release" into integration

4 years agodocs: Update changelog for v2.4 release
Chris Kay [Thu, 29 Oct 2020 14:28:59 +0000 (14:28 +0000)]
docs: Update changelog for v2.4 release

Change-Id: I67c9db2fc6d4b83fec2d001745b9305102d4a2ae
Signed-off-by: Chris Kay <chris.kay@arm.com>
4 years agoTSP: Fix GCC 11.0.0 compilation error.
Alexei Fedorov [Fri, 13 Nov 2020 12:36:49 +0000 (12:36 +0000)]
TSP: Fix GCC 11.0.0 compilation error.

This patch fixes the following compilation error
reported by aarch64-none-elf-gcc 11.0.0:

bl32/tsp/tsp_main.c: In function 'tsp_smc_handler':
bl32/tsp/tsp_main.c:393:9: error: 'tsp_get_magic'
 accessing 32 bytes in a region of size 16
 [-Werror=stringop-overflow=]
  393 |         tsp_get_magic(service_args);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
bl32/tsp/tsp_main.c:393:9: note: referencing argument 1
 of type 'uint64_t *' {aka 'long long unsigned int *'}
In file included from bl32/tsp/tsp_main.c:19:
bl32/tsp/tsp_private.h:64:6: note: in a call to function 'tsp_get_magic'
   64 | void tsp_get_magic(uint64_t args[4]);
      |      ^~~~~~~~~~~~~

by changing declaration of tsp_get_magic function from
void tsp_get_magic(uint64_t args[4]);
to
uint128_t tsp_get_magic(void);
which returns arguments directly in x0 and x1 registers.

In bl32\tsp\tsp_main.c the current tsp_smc_handler()
implementation calls tsp_get_magic(service_args);
, where service_args array is declared as
uint64_t service_args[2];
and tsp_get_magic() in bl32\tsp\aarch64\tsp_request.S
copies only 2 registers in output buffer:
/* Store returned arguments to the array */
stp x0, x1, [x4, #0]

Change-Id: Ib34759fc5d7bb803e6c734540d91ea278270b330
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
4 years agoRevert workaround for A77 erratum 1800714
johpow01 [Thu, 12 Nov 2020 20:15:41 +0000 (14:15 -0600)]
Revert workaround for A77 erratum 1800714

This errata workaround did not work as intended and was revised in
subsequent SDEN releases so we are reverting this change.

This is the patch being reverted:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/4686

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I8554c75d7217331c7effd781b5f7f49b781bbebe

4 years agoRevert workaround for A76 erratum 1800710
johpow01 [Thu, 12 Nov 2020 19:32:00 +0000 (13:32 -0600)]
Revert workaround for A76 erratum 1800710

This errata workaround did not work as intended and was revised in
subsequent SDEN releases so we are reverting this change.

This is the patch being reverted:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/4684

Signed-off-by: John Powell <john.powell@arm.com>
Change-Id: I560749a5b55e22fbe49d3f428a8b9545d6bdaaf0

4 years agoFix typos and misspellings
David Horstmann [Thu, 12 Nov 2020 15:19:04 +0000 (15:19 +0000)]
Fix typos and misspellings

Fix a number of typos and misspellings in TF-A
documentation and comments.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
Change-Id: I34c5a28c3af15f28d1ccada4d9866aee6af136ee

4 years agoAdd myself and Venkatesh Yadav Abbarapu as code owners for Xilinx platforms
Michal Simek [Thu, 12 Nov 2020 10:19:48 +0000 (11:19 +0100)]
Add myself and Venkatesh Yadav Abbarapu as code owners for Xilinx platforms

Jolly left the company and Siva (DP) has moved to different possition
that's why it is necessary to change code ownership.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Change-Id: I546d9a0f7a2abd0c7a65be807725bc609160f3b2

4 years agoplat: xilinx: Use fno-jump-tables flag in CPPFLAGS
Venkatesh Yadav Abbarapu [Tue, 14 Jul 2020 03:18:01 +0000 (21:18 -0600)]
plat: xilinx: Use fno-jump-tables flag in CPPFLAGS

From GCC-9 implementation of switch case was generated through jump tables,
because of which we are seeing 1MB increase in rodata section. To reduce
the size we are recommending to use fno-jump-tables.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Change-Id: I069733610809b8299fbf641f0ae35b359a8afd69

4 years agozynqmp: pm: update error codes to match Linux and PMU Firmware
Davorin Mista [Fri, 24 Aug 2018 15:09:06 +0000 (17:09 +0200)]
zynqmp: pm: update error codes to match Linux and PMU Firmware

All EEMI error codes start with value 2000.

Note: Legacy error codes ARGS (=1) and NOTSUPPORTED (=4) returned by
current ATF code have been left in place.

Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Acked-by: Will Wong <WILLW@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Change-Id: I939afa85957cac88025d82a80f9f6dd49be993b6

4 years agozynqmp: pm: Filter errors related to clock gate permissions
Mirela Simonovic [Fri, 24 Aug 2018 15:09:07 +0000 (17:09 +0200)]
zynqmp: pm: Filter errors related to clock gate permissions

Linux clock framework cannot properly deal with these errors. When the
error is related to the lack of permissions to control the clock we
filter the error and report the success to linux. Before recent changes
in clock framework across the stack, this was done in the PMU-FW as a
workaround. Since the PMU-FW now handles clocks and the permissions to
control them using general principles rather than workarounds, it can
no longer distinguish such exceptions and it has to return no-access
error.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Will Wong <WILLW@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Change-Id: I1491a80e472f44e322a542b29a20eb1cb3319802