drm/i915: Return error value when bo not in LMEM for discrete
authorMohammed Khajapasha <mohammed.khajapasha@intel.com>
Tue, 27 Apr 2021 08:54:17 +0000 (09:54 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 27 Apr 2021 15:21:47 +0000 (16:21 +0100)
commit229e22845e81c3d3b4b32bdd69c6a7f345fb0197
tree87f7379615c162274d41871f1636896d40a8a957
parent4bc91dbde0da2f88b1f3660e8d17dacd2e929a62
drm/i915: Return error value when bo not in LMEM for discrete

Return EREMOTE value when frame buffer object is not backed by LMEM
for discrete. If Local memory is supported by hardware the framebuffer
backing gem objects should be from local memory.

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210427085417.120246-7-matthew.auld@intel.com
drivers/gpu/drm/i915/display/intel_display.c