[Intel-gfx] [PATCH] drm: Declare that create drm_mm nodes with size 0 is illegal

2016-08-04 Thread Daniel Vetter
On Wed, Aug 03, 2016 at 07:26:28PM +0100, Chris Wilson wrote: > At a higher level, all objects are created with definite size i.e. 0 is > illegal. In forthcoming patches, this assumption is dependent upon in > the drm_mm range manager, i.e. trying to create a drm_mm node with size > 0 will have und

[PATCH] drm: Declare that create drm_mm nodes with size 0 is illegal

2016-08-04 Thread David Herrmann
On Wed, Aug 3, 2016 at 8:26 PM, Chris Wilson wrote: > At a higher level, all objects are created with definite size i.e. 0 is > illegal. In forthcoming patches, this assumption is dependent upon in > the drm_mm range manager, i.e. trying to create a drm_mm node with size > 0 will have undefined b

[PATCH] drm: Declare that create drm_mm nodes with size 0 is illegal

2016-08-03 Thread Chris Wilson
At a higher level, all objects are created with definite size i.e. 0 is illegal. In forthcoming patches, this assumption is dependent upon in the drm_mm range manager, i.e. trying to create a drm_mm node with size 0 will have undefined behaviour. Add a couple of WARNs upon creating the drm_mm node