Displaying 2 results from an estimated 2 matches for "d8765b57".
2017 Jul 03
2
[PATCH] disp/gf119-: avoid creating non-existent heads
...crtcs = 0x3;
- for (i = 0; i < crtcs; i++) {
+ for (i = 0; i < fls(crtcs); i++) {
+ if (!(crtcs & (1 << i)))
+ continue;
ret = nv50_head_create(dev, i);
if (ret)
goto out;
diff --git a/drm/nouveau/nvkm/engine/disp/gf119.c b/drm/nouveau/nvkm/engine/disp/gf119.c
index d8765b57..415987e9 100644
--- a/drm/nouveau/nvkm/engine/disp/gf119.c
+++ b/drm/nouveau/nvkm/engine/disp/gf119.c
@@ -168,7 +168,7 @@ int
gf119_disp_new_(const struct nv50_disp_func *func, struct nvkm_device *device,
int index, struct nvkm_disp **pdisp)
{
- u32 heads = nvkm_rd32(device, 0x022448);
+ u32...
2017 Jul 03
0
[PATCH] disp/gf119-: avoid creating non-existent heads
...tcs; i++) {
> + for (i = 0; i < fls(crtcs); i++) {
> + if (!(crtcs & (1 << i)))
> + continue;
> ret = nv50_head_create(dev, i);
> if (ret)
> goto out;
> diff --git a/drm/nouveau/nvkm/engine/disp/gf119.c b/drm/nouveau/nvkm/engine/disp/gf119.c
> index d8765b57..415987e9 100644
> --- a/drm/nouveau/nvkm/engine/disp/gf119.c
> +++ b/drm/nouveau/nvkm/engine/disp/gf119.c
> @@ -168,7 +168,7 @@ int
> gf119_disp_new_(const struct nv50_disp_func *func, struct nvkm_device *device,
> int index, struct nvkm_disp **pdisp)
> {
> - u32 heads =...