diff options
author | Josie Nordrum <JosieNordrum@google.com> | 2021-02-18 15:11:21 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-11 16:53:41 +0000 |
commit | 232ac543514b7c84d3f2651b6528ba5ece4ea2f7 (patch) | |
tree | 9d79ae1e55c5f340861fd207ee5dac0de788aad0 /chip | |
parent | c6ccbd49512ddf897ac76d9e92556754d3c3ba2a (diff) | |
download | chrome-ec-232ac543514b7c84d3f2651b6528ba5ece4ea2f7.tar.gz |
panic.c: force sync before reenabling bus faults
Force a sync between data and instruction pipelines before allowing bus
faults. Remove sync from flash-stm32h7.c
BRANCH=None
BUG=b:157692395
TEST=tested with crrev.com/c/2576799
Signed-off-by: Josie Nordrum <JosieNordrum@google.com>
Change-Id: Id67324191b4447d9be10c0b5aecc87620aa69d1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706039
Tested-by: Josie Nordrum <josienordrum@google.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
Commit-Queue: Josie Nordrum <josienordrum@google.com>
Auto-Submit: Josie Nordrum <josienordrum@google.com>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/flash-stm32h7.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chip/stm32/flash-stm32h7.c b/chip/stm32/flash-stm32h7.c index 2797720b8f..b539717158 100644 --- a/chip/stm32/flash-stm32h7.c +++ b/chip/stm32/flash-stm32h7.c @@ -90,7 +90,6 @@ static int unlock(int bank) STM32_FLASH_KEYR(bank) = FLASH_KEYR_KEY1; STM32_FLASH_KEYR(bank) = FLASH_KEYR_KEY2; - asm volatile("dsb; isb"); ignore_bus_fault(0); } @@ -125,7 +124,6 @@ static int unlock_optb(void) STM32_FLASH_OPTKEYR(0) = FLASH_OPTKEYR_KEY1; STM32_FLASH_OPTKEYR(0) = FLASH_OPTKEYR_KEY2; - asm volatile("dsb; isb"); ignore_bus_fault(0); } @@ -422,7 +420,6 @@ int flash_physical_protect_now(int all) /* cannot modify the WP bits in the option bytes until reboot */ STM32_FLASH_OPTKEYR(0) = 0xffffffff; option_disabled = 1; - asm volatile("dsb; isb"); ignore_bus_fault(0); return EC_SUCCESS; |