Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/icl: move has_resource_streamer to GEN11_FEATURES

Resource streamer has been removed on GEN11 so move it to the FEATURES
macro.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180719170557.10729-1-lucas.demarchi@intel.com

authored by

Lucas De Marchi and committed by
Chris Wilson
48928d4b c444ad79

+2 -2
+1 -1
drivers/gpu/drm/i915/i915_gem_execbuffer.c
··· 2223 2223 2224 2224 if (args->flags & I915_EXEC_RESOURCE_STREAMER) { 2225 2225 if (!HAS_RESOURCE_STREAMER(eb.i915)) { 2226 - DRM_DEBUG("RS is only allowed for Haswell, Gen8 and above\n"); 2226 + DRM_DEBUG("RS is only allowed for Haswell and Gen8 - Gen10\n"); 2227 2227 return -EINVAL; 2228 2228 } 2229 2229 if (eb.engine->id != RCS) {
+1 -1
drivers/gpu/drm/i915/i915_pci.c
··· 604 604 GEN(11), \ 605 605 .ddb_size = 2048, \ 606 606 .has_csr = 0, \ 607 + .has_resource_streamer = 0, \ 607 608 .has_logical_ring_elsq = 1 608 609 609 610 static const struct intel_device_info intel_icelake_11_info = { 610 611 GEN11_FEATURES, 611 612 PLATFORM(INTEL_ICELAKE), 612 613 .is_alpha_support = 1, 613 - .has_resource_streamer = 0, 614 614 .ring_mask = RENDER_RING | BLT_RING | VEBOX_RING | BSD_RING | BSD3_RING, 615 615 }; 616 616