mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
73e467f60a
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
17 lines
473 B
C
17 lines
473 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright 2019 Linaro, Ltd, Rob Herring <robh@kernel.org> */
|
|
|
|
#ifndef __PANFROST_MMU_H__
|
|
#define __PANFROST_MMU_H__
|
|
|
|
struct panfrost_gem_object;
|
|
|
|
int panfrost_mmu_map(struct panfrost_gem_object *bo);
|
|
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_reset(struct panfrost_device *pfdev);
|
|
|
|
#endif
|