Quoting Matthew Auld (2021-01-18 14:17:31) > From: CQ Tang <cq.tang@xxxxxxxxx> 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 Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx