Displaying 2 results from an estimated 2 matches for "nvkm_head_new_".
2017 Jul 03
2
[PATCH] disp/gf119-: avoid creating non-existent heads
...eau/nvkm/engine/disp/headgf119.c b/drm/nouveau/nvkm/engine/disp/headgf119.c
index b3355275..8d44bdf6 100644
--- a/drm/nouveau/nvkm/engine/disp/headgf119.c
+++ b/drm/nouveau/nvkm/engine/disp/headgf119.c
@@ -92,5 +92,7 @@ gf119_head = {
int
gf119_head_new(struct nvkm_disp *disp, int id)
{
- return nvkm_head_new_(&gf119_head, disp, id);
+ if (nvkm_rd32(disp->engine.subdev.device, 0x612004) & 0xf & (1 << id))
+ return nvkm_head_new_(&gf119_head, disp, id);
+ return 0;
}
--
2.13.0
2017 Jul 03
0
[PATCH] disp/gf119-: avoid creating non-existent heads
...ouveau/nvkm/engine/disp/headgf119.c
> index b3355275..8d44bdf6 100644
> --- a/drm/nouveau/nvkm/engine/disp/headgf119.c
> +++ b/drm/nouveau/nvkm/engine/disp/headgf119.c
> @@ -92,5 +92,7 @@ gf119_head = {
> int
> gf119_head_new(struct nvkm_disp *disp, int id)
> {
> - return nvkm_head_new_(&gf119_head, disp, id);
> + if (nvkm_rd32(disp->engine.subdev.device, 0x612004) & 0xf & (1 << id))
> + return nvkm_head_new_(&gf119_head, disp, id);
> + return 0;
> }
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: si...