drm/i915/guc: Decouple GuC engine id from ring id
authorAlex Dai <yu.dai@intel.com>
Sat, 23 Jan 2016 19:58:14 +0000 (11:58 -0800)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 25 Jan 2016 10:56:30 +0000 (10:56 +0000)
commit397097b026190309f4eec630db0e2f5ba498542e
tree4788a6cc483679e7f71eb91951e2fe1a97038314
parent77b04a0428ea83d000634f06eb3b37ee92d9f866
drm/i915/guc: Decouple GuC engine id from ring id

Previously GuC uses ring id as engine id because of same definition.
But this is not true since this commit:

commit de1add360522c876c25ef2bbbbab1c94bdb509ab
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Jan 15 15:12:50 2016 +0000

    drm/i915: Decouple execbuf uAPI from internal implementation

Added GuC engine id into GuC interface to decouple it from ring id used
by driver.

v2: Keep ring name print out in debugfs; using for_each_ring() where
    possible to keep driver consistent. (Chris W.)

Signed-off-by: Alex Dai <yu.dai@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453579094-29860-1-git-send-email-yu.dai@intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc.h
drivers/gpu/drm/i915/intel_guc_fwif.h
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h