[Intel-gfx] [PATCH 2/3] drm/i915: prefer FORCE_WC for the blitter routines

Chris Wilson chris at chris-wilson.co.uk
Mon Jan 18 14:44:38 UTC 2021


Quoting Matthew Auld (2021-01-18 14:17:31)
> From: CQ Tang <cq.tang at intel.com>

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


More information about the Intel-gfx mailing list