Loading drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c +9 −6 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ #include "priv.h" #include <core/option.h> #include <subdev/top.h> void nvkm_mc_unk260(struct nvkm_mc *mc, u32 data) Loading Loading @@ -82,14 +83,16 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx) { struct nvkm_device *device = mc->subdev.device; const struct nvkm_mc_map *map; u64 pmc_enable = 0; u64 pmc_enable; if (!(pmc_enable = nvkm_top_reset(device->top, devidx))) { for (map = mc->func->reset; map && map->stat; map++) { if (map->unit == devidx) { pmc_enable = map->stat; break; } } } if (!pmc_enable) { struct nvkm_subdev *subdev = nvkm_device_subdev(device, devidx); Loading Loading
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c +9 −6 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ #include "priv.h" #include <core/option.h> #include <subdev/top.h> void nvkm_mc_unk260(struct nvkm_mc *mc, u32 data) Loading Loading @@ -82,14 +83,16 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx) { struct nvkm_device *device = mc->subdev.device; const struct nvkm_mc_map *map; u64 pmc_enable = 0; u64 pmc_enable; if (!(pmc_enable = nvkm_top_reset(device->top, devidx))) { for (map = mc->func->reset; map && map->stat; map++) { if (map->unit == devidx) { pmc_enable = map->stat; break; } } } if (!pmc_enable) { struct nvkm_subdev *subdev = nvkm_device_subdev(device, devidx); Loading