Re: [Intel-gfx] [PATCH 2/7] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-01-26 Thread kbuild test robot
Hi Daniele, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [cannot apply to drm-tip/drm-tip v5.5-rc7 next-20200124] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also

Re: [Intel-gfx] [PATCH 2/7] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-01-16 Thread Daniele Ceraolo Spurio
On 1/16/20 2:49 PM, Michal Wajdeczko wrote: -    if (USES_GUC_SUBMISSION(dev_priv)) { +    if (intel_uc_uses_guc_submission(_priv->gt.uc)) {  nit: that old macro was helpful exactly in cases where only dev_priv is known and component might have no idea where to find uc  maybe we should have

Re: [Intel-gfx] [PATCH 2/7] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-01-16 Thread Michal Wajdeczko
-if (USES_GUC_SUBMISSION(dev_priv)) { +if (intel_uc_uses_guc_submission(_priv->gt.uc)) { nit: that old macro was helpful exactly in cases where only dev_priv is known and component might have no idea where to find uc maybe we should have helper like: #define to_intel_uc(i915)

Re: [Intel-gfx] [PATCH 2/7] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-01-16 Thread Daniele Ceraolo Spurio
On 1/16/20 11:49 AM, Michal Wajdeczko wrote: On Wed, 15 Jan 2020 02:31:38 +0100, Daniele Ceraolo Spurio wrote: use intel_uc_uses_guc_submission() directly instead, to be consistent in the way we check what we want to do with the GuC. Signed-off-by: Daniele Ceraolo Spurio Cc: Michal

Re: [Intel-gfx] [PATCH 2/7] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-01-16 Thread Michal Wajdeczko
On Wed, 15 Jan 2020 02:31:38 +0100, Daniele Ceraolo Spurio wrote: use intel_uc_uses_guc_submission() directly instead, to be consistent in the way we check what we want to do with the GuC. Signed-off-by: Daniele Ceraolo Spurio Cc: Michal Wajdeczko Cc: John Harrison Cc: Matthew Brost

[Intel-gfx] [PATCH 2/7] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-01-14 Thread Daniele Ceraolo Spurio
use intel_uc_uses_guc_submission() directly instead, to be consistent in the way we check what we want to do with the GuC. Signed-off-by: Daniele Ceraolo Spurio Cc: Michal Wajdeczko Cc: John Harrison Cc: Matthew Brost --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +-