Commit 583f8e4e authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/mc: implement support for PTOP reset info

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 70b01f07
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "priv.h" #include "priv.h"
#include <core/option.h> #include <core/option.h>
#include <subdev/top.h>
void void
nvkm_mc_unk260(struct nvkm_mc *mc, u32 data) nvkm_mc_unk260(struct nvkm_mc *mc, u32 data)
...@@ -82,12 +83,14 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx) ...@@ -82,12 +83,14 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx)
{ {
struct nvkm_device *device = mc->subdev.device; struct nvkm_device *device = mc->subdev.device;
const struct nvkm_mc_map *map; const struct nvkm_mc_map *map;
u64 pmc_enable = 0; u64 pmc_enable;
for (map = mc->func->reset; map && map->stat; map++) { if (!(pmc_enable = nvkm_top_reset(device->top, devidx))) {
if (map->unit == devidx) { for (map = mc->func->reset; map && map->stat; map++) {
pmc_enable = map->stat; if (map->unit == devidx) {
break; pmc_enable = map->stat;
break;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment