Re: [Intel-gfx] [PATCH] drm/i915: Don't test plane stride with !INTEL_DISPLAY_ENABLED

2019-11-08 Thread Ville Syrjälä
On Thu, Nov 07, 2019 at 12:37:22PM -0800, Matt Roper wrote: > If INTEL_DISPLAY_ENABLED is false, then the modesetting resources were > never initialized. Userspace may still call DRM_IOCTL_MODE_CREATE_DUMB > which will eventually lead i915_gem_dumb_create() to try to dereference > a non-existent p

[Intel-gfx] [PATCH] drm/i915: Don't test plane stride with !INTEL_DISPLAY_ENABLED

2019-11-07 Thread Matt Roper
If INTEL_DISPLAY_ENABLED is false, then the modesetting resources were never initialized. Userspace may still call DRM_IOCTL_MODE_CREATE_DUMB which will eventually lead i915_gem_dumb_create() to try to dereference a non-existent pipe A primary plane while figuring out a proper pitch. We could for