Home
last modified time | relevance | path

Searched hist:"8 cc972421faf02cfdd4fea1a21fabe6e9d96e2a3" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/arm/smmu/
H A Dsmmu_v3.c8cc972421faf02cfdd4fea1a21fabe6e9d96e2a3 Tue Jan 07 16:27:05 UTC 2025 Olivier Deprez <olivier.deprez@arm.com> fix(smmu): set root port CR0 GPCEN before ACCESSEN

In the SMMU root port programming model, changing both
SMMU_ROOT_CR0.GPCEN and ACCESSEN bits in the same MMIO write operation
is permitted by the architecture but left to the SMMU IP implementation
to determine the order of completing one or the other operation.

Enforce more determinism by setting CR0.GPCEN, wait for CR0ACK.GPCEN
completion, then setting CR0.ACCESSEN and wait for CR0ACK.ACCESSEN
completion.

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