drm/nouveau/pmu/tu102-: prepare for GSP-RM
- disable PMU completely when GSP-RM detected Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-19-skeggsb@gmail.com
This commit is contained in:
parent
f5a533a81e
commit
ab724be7a3
@ -23,6 +23,8 @@
|
||||
*/
|
||||
#include "priv.h"
|
||||
|
||||
#include <subdev/gsp.h>
|
||||
|
||||
static const struct nvkm_falcon_func
|
||||
gp102_pmu_flcn = {
|
||||
.disable = gm200_flcn_disable,
|
||||
@ -54,5 +56,8 @@ int
|
||||
gp102_pmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
|
||||
struct nvkm_pmu **ppmu)
|
||||
{
|
||||
if (nvkm_gsp_rm(device->gsp))
|
||||
return -ENODEV;
|
||||
|
||||
return nvkm_pmu_new_(gp102_pmu_fwif, device, type, inst, ppmu);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user