]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(versal-net): use spin_lock instead of bakery_lock
authorJay Buddhabhatti <jay.buddhabhatti@amd.com>
Thu, 2 Mar 2023 10:47:36 +0000 (02:47 -0800)
committerJay Buddhabhatti <jay.buddhabhatti@amd.com>
Thu, 23 Mar 2023 13:14:24 +0000 (06:14 -0700)
commit0b3a2cf0226878ad7098cc6cd1a97ade74fd9c38
tree511cd3456fec24816913b67ddc5b6c8ef77f0883
parent6ada9dc325aaa29e2f4c87575093401197856639
fix(versal-net): use spin_lock instead of bakery_lock

In ARM v8.2 the cache will turn off automatically when cpu power down.
Therefore use the spin_lock instead of bakery_lock for the platform in
which HW_ASSISTED_COHERENCY is enabled.

In Versal NET platform HW_ASSISTED_COHERENCY is enabled so it will use
spin lock. In ZynqMP and Versal HW_ASSISTED_COHERENCY is not enabled so
it will use bakery_lock.

Also remove bakery_lock_init() because it is empty.

Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
Change-Id: I18ff939b51f16d7d3484d8564d6ee6c586f363d8
plat/xilinx/common/pm_service/pm_ipi.c
plat/xilinx/versal_net/pm_service/pm_client.c