Commit a5176a4c authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Ben Skeggs
Browse files

drm/nouveau/falcon: avoid touching registers if engine is off

parent 11878006
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@
#include <engine/falcon.h>
#include <engine/falcon.h>


#include <core/gpuobj.h>
#include <core/gpuobj.h>
#include <subdev/mc.h>
#include <subdev/timer.h>
#include <subdev/timer.h>
#include <engine/fifo.h>
#include <engine/fifo.h>


@@ -107,8 +108,10 @@ nvkm_falcon_fini(struct nvkm_engine *engine, bool suspend)
		}
		}
	}
	}


	if (nvkm_mc_enabled(device, engine->subdev.index)) {
		nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
		nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
		nvkm_wr32(device, base + 0x014, 0xffffffff);
		nvkm_wr32(device, base + 0x014, 0xffffffff);
	}
	return 0;
	return 0;
}
}