]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Break out the GuC log extras into their own "runtime" struct
authorOscar Mateo <oscar.mateo@intel.com>
Wed, 22 Mar 2017 17:39:48 +0000 (10:39 -0700)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 23 Mar 2017 12:58:02 +0000 (14:58 +0200)
commit2cb76f238e5b2d202ec36f3c42d4f8bd52b18298
treecb2d1bb298c6a7f2a823112600a6522b9579d8a8
parent559e6411aef31431bccb15370c1f06512fc7e20f
drm/i915/guc: Break out the GuC log extras into their own "runtime" struct

When initializing the GuC log struct, there is an object we need to
allocate always, since the GuC needs its address at fw load time.
The rest is only needed during runtime, in the sense that we only
create if we actually enable GuC logging. Make that distinction
explicit by subdividing further the intel_guc_log struct.

v2: Call the new struct "runtime", instead of "extras" (Joonas)

v3: Check indent (Joonas)

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_guc_log.c
drivers/gpu/drm/i915/intel_uc.h