mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 10:32:25 -04:00
This is just refactoring to allow the lower layers to distinguish
between suspend and runtime suspend.
GSP 570 needs to set a flag with the GPU is going into GCOFF,
this flag taken from the opengpu driver is set whenever runtime
suspend is enterning GCOFF but not for normal suspend paths.
This just refactors the code, a subsequent patch use the information.
Fixes: 53dac06238 ("drm/nouveau/gsp: add support for 570.144")
Cc: <stable@vger.kernel.org>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Tested-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patch.msgid.link/20260203052431.2219998-3-airlied@gmail.com
22 lines
691 B
C
22 lines
691 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVKM_CE_PRIV_H__
|
|
#define __NVKM_CE_PRIV_H__
|
|
#include <engine/ce.h>
|
|
|
|
int r535_ce_new(const struct nvkm_engine_func *, struct nvkm_device *,
|
|
enum nvkm_subdev_type, int, struct nvkm_engine **);
|
|
|
|
void gt215_ce_intr(struct nvkm_falcon *, struct nvkm_chan *);
|
|
void gk104_ce_intr(struct nvkm_engine *);
|
|
void gp100_ce_intr(struct nvkm_engine *);
|
|
|
|
extern const struct nvkm_object_func gv100_ce_cclass;
|
|
|
|
int ga100_ce_oneinit(struct nvkm_engine *);
|
|
int ga100_ce_init(struct nvkm_engine *);
|
|
int ga100_ce_fini(struct nvkm_engine *, enum nvkm_suspend_state);
|
|
int ga100_ce_nonstall(struct nvkm_engine *);
|
|
|
|
u32 gb202_ce_grce_mask(struct nvkm_device *);
|
|
#endif
|