Quoting Matthew Auld (2021-01-18 14:17:31)
> From: CQ Tang <[email protected]>

First patch hasn't arrive, so excuse this misplaced reply.

-       if (GEM_WARN_ON(!r->sgt.pfn))
+       if (GEM_WARN_ON(!use_dma(r->iobase) && !r->sgt.pfn))
                return -EINVAL;

The better check would be if (GEM_WARN_ON(!r->sgt.sgp)) return -EINVAL;
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to