[Intel-gfx] [PATCH 21/22] drm/i915: check for missing aperture in GTT pread/pwrite paths

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 27 17:57:18 UTC 2019


Quoting Matthew Auld (2019-09-27 18:34:08)
> From: CQ Tang <cq.tang at intel.com>
> 
> drm_mm_insert_node_in_range() treats range_start > range_end as a
> programmer error, such that we explode in insert_mappable_node. For now
> simply check for missing aperture on such paths.

range_start is 0.
range_end is 0.

drm_mm_insert_node_in_range():
	DRM_MM_BUG_ON(range_start > range_end);

	if (size == 0 || range_end - range_start < size)
		return -ENOSPC;

This patch is superfluous.
-Chris


More information about the Intel-gfx mailing list