diff options
author | Rob Herring <robh@kernel.org> | 2019-08-08 23:30:39 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-08-12 23:20:46 +0300 |
commit | 73e467f60acdabd480d1b377a623ba13db0e5dd2 (patch) | |
tree | c01cb5420cfd005f771a9ec940a23817ee334e7f /drivers/gpu/drm/panfrost/panfrost_mmu.h | |
parent | 203270c025be02d52feca729d9193860317c2e82 (diff) | |
download | linux-73e467f60acdabd480d1b377a623ba13db0e5dd2.tar.xz |
drm/panfrost: Consolidate reset handling
Runtime PM resume and job timeouts both call the same sequence of
functions, so consolidate them to a common function. This will make
changing the reset related code easier. The MMU also needs some
re-initialization on reset, so rework its call. In the process, we
hide the address space details within the MMU code in preparation to
support multiple address spaces.
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808222200.13176-7-robh@kernel.org
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_mmu.h')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_mmu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_mmu.h b/drivers/gpu/drm/panfrost/panfrost_mmu.h index f5878d86a5ce..d5f9b24537db 100644 --- a/drivers/gpu/drm/panfrost/panfrost_mmu.h +++ b/drivers/gpu/drm/panfrost/panfrost_mmu.h @@ -11,7 +11,6 @@ void panfrost_mmu_unmap(struct panfrost_gem_object *bo); int panfrost_mmu_init(struct panfrost_device *pfdev); void panfrost_mmu_fini(struct panfrost_device *pfdev); - -void panfrost_mmu_enable(struct panfrost_device *pfdev, u32 as_nr); +void panfrost_mmu_reset(struct panfrost_device *pfdev); #endif |