[Intel-gfx] [PATCH 1/1] drm/i915: gracefully reject mmap of huge tiled objects

Chris Wilson chris at chris-wilson.co.uk
Fri Jul 1 07:25:00 UTC 2016


On Thu, Jun 30, 2016 at 05:04:42PM -0700, James Xiong wrote:
> From: "Xiong, James" <james.xiong at intel.com>
> 
> currently mmap of a tiled object that is larger than mappable
> aperture is rejected in fault handler, and causes sigbus error
> and application crash.

Please note that SIGBUS can be returned at any time. If your application
doesn't handle it, please fix that.

> This commit rejects it in mmap instead so that the client has
> chance to handle the failure.

Wrong. Please review the patches to fix this correctly.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list