diff options
author | Kevin DuBois <kevindubois@google.com> | 2023-02-15 21:55:29 +0000 |
---|---|---|
committer | Sean Callanan <spyffe@google.com> | 2023-02-16 03:12:34 +0000 |
commit | 12a2a58e849d1ad4e3e24fb347ca3f3545ee2fe2 (patch) | |
tree | f6bba6083da14451d82f5ebe67a801439bb86279 /mali_kbase/mmu | |
parent | 50c0ac999bcc7f2cfd186e4249d0caec1383c3a7 (diff) | |
download | gpu-12a2a58e849d1ad4e3e24fb347ca3f3545ee2fe2.tar.gz |
Revert "mmu: Flush mmu updates regardless of coherency mode"
Revert submission 2365722-cherrypick-cherrypick-p22-io-coherency-0zswjzix3t-lh6lkvir9b
Reason for revert: b/252072919
Reverted changes: /q/submissionid:2365722-cherrypick-cherrypick-p22-io-coherency-0zswjzix3t-lh6lkvir9b
Bug: 252072919
Signed-Off-By: Andrew Chant <achant@google.com>
Change-Id: I2a41a20449731c20ec418b42e1e3dd8f41b0a30a
Diffstat (limited to 'mali_kbase/mmu')
-rw-r--r-- | mali_kbase/mmu/mali_kbase_mmu.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mali_kbase/mmu/mali_kbase_mmu.c b/mali_kbase/mmu/mali_kbase_mmu.c index 1b874a0..4828cdc 100644 --- a/mali_kbase/mmu/mali_kbase_mmu.c +++ b/mali_kbase/mmu/mali_kbase_mmu.c @@ -299,13 +299,12 @@ static void kbase_mmu_sync_pgd_gpu(struct kbase_device *kbdev, struct kbase_cont static void kbase_mmu_sync_pgd_cpu(struct kbase_device *kbdev, dma_addr_t handle, size_t size) { - /* Ensure that the GPU can read the pages from memory. - * - * pixel: b/200555454 requires this sync to happen even if the system - * is coherent. + /* In non-coherent system, ensure the GPU can read + * the pages from memory */ - dma_sync_single_for_device(kbdev->dev, handle, size, - DMA_TO_DEVICE); + if (kbdev->system_coherency == COHERENCY_NONE) + dma_sync_single_for_device(kbdev->dev, handle, size, + DMA_TO_DEVICE); } /** |