Commit 9b2bf150 authored by Madhukar Pappireddy's avatar Madhukar Pappireddy Committed by TrustedFirmware Code Review
Browse files

Merge changes from topic "tegra-downstream-08282020" into integration

* changes:
  Tegra: common: disable GICC after domain off
  cpus: denver: skip DCO enable/disable for recent SKUs
parents e98d934a c23f5e1c
...@@ -161,13 +161,19 @@ endfunc denver_disable_ext_debug ...@@ -161,13 +161,19 @@ endfunc denver_disable_ext_debug
* ---------------------------------------------------- * ----------------------------------------------------
*/ */
func denver_enable_dco func denver_enable_dco
/* DCO is not supported on PN5 and later */
mrs x1, midr_el1
mov_imm x2, DENVER_MIDR_PN4
cmp x1, x2
b.hi 1f
mov x18, x30 mov x18, x30
bl plat_my_core_pos bl plat_my_core_pos
mov x1, #1 mov x1, #1
lsl x1, x1, x0 lsl x1, x1, x0
msr s3_0_c15_c0_2, x1 msr s3_0_c15_c0_2, x1
mov x30, x18 mov x30, x18
ret 1: ret
endfunc denver_enable_dco endfunc denver_enable_dco
/* ---------------------------------------------------- /* ----------------------------------------------------
...@@ -175,10 +181,14 @@ endfunc denver_enable_dco ...@@ -175,10 +181,14 @@ endfunc denver_enable_dco
* ---------------------------------------------------- * ----------------------------------------------------
*/ */
func denver_disable_dco func denver_disable_dco
/* DCO is not supported on PN5 and later */
mov x18, x30 mrs x1, midr_el1
mov_imm x2, DENVER_MIDR_PN4
cmp x1, x2
b.hi 2f
/* turn off background work */ /* turn off background work */
mov x18, x30
bl plat_my_core_pos bl plat_my_core_pos
mov x1, #1 mov x1, #1
lsl x1, x1, x0 lsl x1, x1, x0
...@@ -194,7 +204,7 @@ func denver_disable_dco ...@@ -194,7 +204,7 @@ func denver_disable_dco
cbnz x2, 1b cbnz x2, 1b
mov x30, x18 mov x30, x18
ret 2: ret
endfunc denver_disable_dco endfunc denver_disable_dco
func check_errata_cve_2017_5715 func check_errata_cve_2017_5715
......
...@@ -96,6 +96,9 @@ static int32_t tegra_pwr_domain_on(u_register_t mpidr) ...@@ -96,6 +96,9 @@ static int32_t tegra_pwr_domain_on(u_register_t mpidr)
static void tegra_pwr_domain_off(const psci_power_state_t *target_state) static void tegra_pwr_domain_off(const psci_power_state_t *target_state)
{ {
(void)tegra_soc_pwr_domain_off(target_state); (void)tegra_soc_pwr_domain_off(target_state);
/* disable GICC */
tegra_gic_cpuif_deactivate();
} }
/******************************************************************************* /*******************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment