search for: nvkm_engine_unref

Displaying 2 results from an estimated 2 matches for "nvkm_engine_unref".

Did you mean: nvkm_engine_ref
2018 May 30
0
[PATCH] drm/nouveau/core: ERR_PTR vs NULL bug in nvkm_engine_info()
...e.c @@ -86,14 +86,17 @@ static int nvkm_engine_info(struct nvkm_subdev *subdev, u64 mthd, u64 *data) { struct nvkm_engine *engine = nvkm_engine(subdev); - if (engine->func->info) { - if ((engine = nvkm_engine_ref(engine))) { - int ret = engine->func->info(engine, mthd, data); - nvkm_engine_unref(&engine); - return ret; - } - } - return -ENOSYS; + int ret; + + if (!engine->func->info) + return -ENOSYS; + + engine = nvkm_engine_ref(engine); + if (IS_ERR(engine)) + return PTR_ERR(engine); + ret = engine->func->info(engine, mthd, data); + nvkm_engine_unref(&engine); +...
2019 Sep 23
8
[PATCH 0/8] Add workaround for fixing runpm
Changes since last sent: * add a patch to set the device into DRM_SWITCH_POWER_CHANGING state (can be dropped actually, I thought I was needing it, came up with a different approach and forgot to delete it, doesn't hurt though) * expose information about runtime suspending to nvkm so that we can run the pcie workaround only on runtime suspend Karol Herbst (8): pci: disable ASPM