drm/nouveau/kms/nv50-: use NVIDIA's headers for core ntfy_wait_done()
[sfrench/cifs-2.6.git] / drivers / gpu / drm / nouveau / dispnv50 / core507d.c
index 626f8390443467bc1f3fca68dccf06de3a17161e..aa742bc71b848cd7dd5ca7a842945fb82e5e9e09 100644 (file)
@@ -53,7 +53,7 @@ core507d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset,
                        struct nvif_device *device)
 {
        s64 time = nvif_msec(device, 2000ULL,
-               if (nouveau_bo_rd32(bo, offset / 4))
+               if (NVBO_TD32(bo, offset, NV_DISP_CORE_NOTIFIER_1, COMPLETION_0, DONE, ==, TRUE))
                        break;
                usleep_range(1, 2);
        );