Skip to contentSkip to conversation

uC code cleanups

PATCH In review Daniele Ceraolo Spurio 3 participants 10 messages Apr 9, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover uC code cleanups

Drop a couple of unused variables and move the wopcm code under gt/uc. The 3 patches are independent from each other, I'm sending them as a series just to avoid spamming CI.

Cc Michal Wajdeczko <[email protected]>
Cc John Harrison <[email protected]>
Cc Matthew Brost <[email protected]>

Daniele Ceraolo Spurio (4):
drm/i915/guc: drop guc parameter from guc_ggtt_offset drm/i915/guc: drop gt.pm_guc_events drm/i915: consolidate WOPCM management under gt/uc
HAX: drm/i915: default to enable_guc=2

 Documentation/gpu/i915.rst                    |   2 +-
 drivers/gpu/drm/i915/Makefile                 |   4 +-
 drivers/gpu/drm/i915/gt/intel_ggtt.c          |   2 +-
 drivers/gpu/drm/i915/gt/intel_gt_types.h      |   2 -
 drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  14 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc.h        |   4 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c    |   2 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c     |   5 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h    |   3 +
 .../gpu/drm/i915/gt/uc/intel_guc_submission.c |   4 +-
 drivers/gpu/drm/i915/gt/uc/intel_huc.c        |   3 +-
 drivers/gpu/drm/i915/gt/uc/intel_uc.c         |  67 +--------
 drivers/gpu/drm/i915/gt/uc/intel_uc.h         |  25 ++++
 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c      |  11 --
 .../{intel_wopcm.c => gt/uc/intel_uc_wopcm.c} | 141 ++++++++++++------
 drivers/gpu/drm/i915/i915_drv.c               |   2 -
 drivers/gpu/drm/i915/i915_drv.h               |   3 -
 drivers/gpu/drm/i915/i915_gem.c               |   2 +-
 drivers/gpu/drm/i915/i915_irq.c               |   4 -
 drivers/gpu/drm/i915/i915_params.h            |   2 +-
 drivers/gpu/drm/i915/intel_wopcm.h            |  60 --------
 21 files changed, 146 insertions(+), 216 deletions(-)
 rename drivers/gpu/drm/i915/{intel_wopcm.c => gt/uc/intel_uc_wopcm.c} (71%)
 delete mode 100644 drivers/gpu/drm/i915/intel_wopcm.h
Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 1/4 drm/i915/guc: drop guc parameter from guc_ggtt_offset

We stopped using the parameter in commit dd18cedfa36f ("drm/i915/guc: Move the pin bias value from GuC to GGTT"), so we can safely remove it.

Cc Matthew Brost <[email protected]>
Cc Michal Wajdeczko <[email protected]>
Cc John Harrison <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc.c            | 6 +++---
 drivers/gpu/drm/i915/gt/uc/intel_guc.h            | 4 +---
 drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c        | 2 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c         | 5 ++---
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 4 ++--
 drivers/gpu/drm/i915/gt/uc/intel_huc.c            | 3 +--
 6 files changed, 10 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +3 -3
index 861657897c0f..5134d544bf4c 100644
@@ -220,7 +220,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
 	if (intel_guc_submission_is_used(guc)) {
 		u32 ctxnum, base;
 
-		base = intel_guc_ggtt_offset(guc, guc->stage_desc_pool);
+		base = intel_guc_ggtt_offset(guc->stage_desc_pool);
 		ctxnum = GUC_MAX_STAGE_DESCRIPTORS / 16;
 
 		base >>= PAGE_SHIFT;
@@ -232,7 +232,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
 
 static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 {
-	u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
+	u32 offset = intel_guc_ggtt_offset(guc->log.vma) >> PAGE_SHIFT;
 	u32 flags;
 
 	#if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
@@ -273,7 +273,7 @@ static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 
 static u32 guc_ctl_ads_flags(struct intel_guc *guc)
 {
-	u32 ads = intel_guc_ggtt_offset(guc, guc->ads_vma) >> PAGE_SHIFT;
+	u32 ads = intel_guc_ggtt_offset(guc->ads_vma) >> PAGE_SHIFT;
 	u32 flags = ads << GUC_ADS_ADDR_SHIFT;
 
 	return flags;
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -3
index e84ab67b317d..366191204a7d 100644
@@ -103,7 +103,6 @@ static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
 
 /**
  * intel_guc_ggtt_offset() - Get and validate the GGTT offset of @vma
- * @guc: intel_guc structure.
  * @vma: i915 graphics virtual memory area.
  *
  * GuC does not allow any gfx GGTT address that falls into range
@@ -114,8 +113,7 @@ static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
  *
  * Return: GGTT offset of the @vma.
  */
-static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
-					struct i915_vma *vma)
+static inline u32 intel_guc_ggtt_offset(struct i915_vma *vma)
 {
 	u32 offset = i915_ggtt_offset(vma);
 
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +1 -1
index 101728006ae9..9237d798f7f4 100644
@@ -107,7 +107,7 @@ static void __guc_ads_init(struct intel_guc *guc)
 	blob->system_info.vebox_enable_mask = VEBOX_MASK(dev_priv);
 	blob->system_info.vdbox_sfc_support_mask = RUNTIME_INFO(dev_priv)->vdbox_sfc_access;
 
-	base = intel_guc_ggtt_offset(guc, guc->ads_vma);
+	base = intel_guc_ggtt_offset(guc->ads_vma);
 
 	/* Clients info  */
 	guc_ct_pool_entries_init(blob->ct_pool, ARRAY_SIZE(blob->ct_pool));
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +2 -3
index 11742fca0e9e..aad5ac54c1ba 100644
@@ -187,7 +187,7 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)
 		return err;
 	}
 
-	CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(guc, ct->vma));
+	CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(ct->vma));
 
 	/* store pointers to desc and cmds */
 	for (i = 0; i < ARRAY_SIZE(ct->ctbs); i++) {
@@ -220,7 +220,6 @@ void intel_guc_ct_fini(struct intel_guc_ct *ct)
  */
 int intel_guc_ct_enable(struct intel_guc_ct *ct)
 {
-	struct intel_guc *guc = ct_to_guc(ct);
 	u32 base, cmds, size;
 	int err;
 	int i;
@@ -229,7 +228,7 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)
 
 	/* vma should be already allocated and map'ed */
 	GEM_BUG_ON(!ct->vma);
-	base = intel_guc_ggtt_offset(guc, ct->vma);
+	base = intel_guc_ggtt_offset(ct->vma);
 
 	/* (re)initialize descriptors
 	 * cmds buffers are in the second half of the blob page
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2 -2
index fe7778c28d2d..7eaf173dd588 100644
@@ -153,8 +153,8 @@ static void guc_stage_desc_init(struct intel_guc *guc)
 	desc->stage_id = 0;
 	desc->priority = GUC_CLIENT_PRIORITY_KMD_NORMAL;
 
-	desc->process_desc = intel_guc_ggtt_offset(guc, guc->proc_desc);
-	desc->wq_addr = intel_guc_ggtt_offset(guc, guc->workqueue);
+	desc->process_desc = intel_guc_ggtt_offset(guc->proc_desc);
+	desc->wq_addr = intel_guc_ggtt_offset(guc->workqueue);
 	desc->wq_size = GUC_WQ_SIZE;
 }
 
drivers/gpu/drm/i915/gt/uc/intel_huc.c +1 -2
index 65eeb44b397d..534f4d9f6591 100644
@@ -166,8 +166,7 @@ int intel_huc_auth(struct intel_huc *huc)
 	if (ret)
 		goto fail;
 
-	ret = intel_guc_auth_huc(guc,
-				 intel_guc_ggtt_offset(guc, huc->rsa_data));
+	ret = intel_guc_auth_huc(guc, intel_guc_ggtt_offset(huc->rsa_data));
 	if (ret) {
 		DRM_ERROR("HuC: GuC did not ack Auth request %d\n", ret);
 		goto fail;
Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

Re: [Intel-gfx] [PATCH 1/4] drm/i915/guc: drop guc parameter from guc_ggtt_offset

Quoted 61 lines · Daniele Ceraolo Spurio

We stopped using the parameter in commit dd18cedfa36f ("drm/i915/guc: Move the pin bias value from GuC to GGTT"), so we can safely remove it.

Cc Matthew Brost <[email protected]>
Cc Michal Wajdeczko <[email protected]>
Cc John Harrison <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc.c            | 6 +++---
 drivers/gpu/drm/i915/gt/uc/intel_guc.h            | 4 +---
 drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c        | 2 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c         | 5 ++---
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 4 ++--
 drivers/gpu/drm/i915/gt/uc/intel_huc.c            | 3 +--
 6 files changed, 10 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +3 -3
index 861657897c0f..5134d544bf4c 100644
@@ -220,7 +220,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
 	if (intel_guc_submission_is_used(guc)) {
 		u32 ctxnum, base;
 
-		base = intel_guc_ggtt_offset(guc, guc->stage_desc_pool);
+		base = intel_guc_ggtt_offset(guc->stage_desc_pool);
 		ctxnum = GUC_MAX_STAGE_DESCRIPTORS / 16;
 
 		base >>= PAGE_SHIFT;
@@ -232,7 +232,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
 
 static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 {
-	u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
+	u32 offset = intel_guc_ggtt_offset(guc->log.vma) >> PAGE_SHIFT;
 	u32 flags;
 
 	#if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
@@ -273,7 +273,7 @@ static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 
 static u32 guc_ctl_ads_flags(struct intel_guc *guc)
 {
-	u32 ads = intel_guc_ggtt_offset(guc, guc->ads_vma) >> PAGE_SHIFT;
+	u32 ads = intel_guc_ggtt_offset(guc->ads_vma) >> PAGE_SHIFT;
 	u32 flags = ads << GUC_ADS_ADDR_SHIFT;
 
 	return flags;
drivers/gpu/drm/i915/gt/uc/intel_guc.h +0 -1
index e84ab67b317d..366191204a7d 100644
@@ -103,7 +103,6 @@ static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
 
 /**
  * intel_guc_ggtt_offset() - Get and validate the GGTT offset of @vma
- * @guc: intel_guc structure.
  * @vma: i915 graphics virtual memory area.
  *
  * GuC does not allow any gfx GGTT address that falls into range

drivers/gpu/drm/i915/gt/uc/intel_guc.h static inline void intel_guc_to_host_event_handler(struct intel_guc *guc) · line 116

Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -2
@@ -114,8 +113,7 @@ static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
  *
  * Return: GGTT offset of the @vma.
  */
-static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
-					struct i915_vma *vma)
+static inline u32 intel_guc_ggtt_offset(struct i915_vma *vma)

leaving this function with 'intel_guc' prefix without param guc would break our naming schema, maybe we should rename it to:

static inline u32 i915_ggtt_offset_guc(struct i915_vma *vma)

as code inside init_ggtt() already understands guc specifics ...

drivers/gpu/drm/i915/gt/uc/intel_guc.h static inline void intel_guc_to_host_event_handler(struct intel_guc *guc) · line 118

Quoted 2 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.h +0 -0
 {
 	u32 offset = i915_ggtt_offset(vma);

btw, we have here (not shown) in diff:

	GEM_BUG_ON(offset < i915_ggtt_pin_bias(vma));

that I would move to i915_ggtt_offset() as it quite generic and replace it with something more GuC specific, like:

GEM_BUG_ON(offset < intel_wopcm_guc_size(wopcm))

Michal

Quoted 65 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +1 -1
index 101728006ae9..9237d798f7f4 100644
@@ -107,7 +107,7 @@ static void __guc_ads_init(struct intel_guc *guc)
 	blob->system_info.vebox_enable_mask = VEBOX_MASK(dev_priv);
 	blob->system_info.vdbox_sfc_support_mask = RUNTIME_INFO(dev_priv)->vdbox_sfc_access;
 
-	base = intel_guc_ggtt_offset(guc, guc->ads_vma);
+	base = intel_guc_ggtt_offset(guc->ads_vma);
 
 	/* Clients info  */
 	guc_ct_pool_entries_init(blob->ct_pool, ARRAY_SIZE(blob->ct_pool));
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +2 -3
index 11742fca0e9e..aad5ac54c1ba 100644
@@ -187,7 +187,7 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)
 		return err;
 	}
 
-	CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(guc, ct->vma));
+	CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(ct->vma));
 
 	/* store pointers to desc and cmds */
 	for (i = 0; i < ARRAY_SIZE(ct->ctbs); i++) {
@@ -220,7 +220,6 @@ void intel_guc_ct_fini(struct intel_guc_ct *ct)
  */
 int intel_guc_ct_enable(struct intel_guc_ct *ct)
 {
-	struct intel_guc *guc = ct_to_guc(ct);
 	u32 base, cmds, size;
 	int err;
 	int i;
@@ -229,7 +228,7 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)
 
 	/* vma should be already allocated and map'ed */
 	GEM_BUG_ON(!ct->vma);
-	base = intel_guc_ggtt_offset(guc, ct->vma);
+	base = intel_guc_ggtt_offset(ct->vma);
 
 	/* (re)initialize descriptors
 	 * cmds buffers are in the second half of the blob page
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2 -2
index fe7778c28d2d..7eaf173dd588 100644
@@ -153,8 +153,8 @@ static void guc_stage_desc_init(struct intel_guc *guc)
 	desc->stage_id = 0;
 	desc->priority = GUC_CLIENT_PRIORITY_KMD_NORMAL;
 
-	desc->process_desc = intel_guc_ggtt_offset(guc, guc->proc_desc);
-	desc->wq_addr = intel_guc_ggtt_offset(guc, guc->workqueue);
+	desc->process_desc = intel_guc_ggtt_offset(guc->proc_desc);
+	desc->wq_addr = intel_guc_ggtt_offset(guc->workqueue);
 	desc->wq_size = GUC_WQ_SIZE;
 }
 
drivers/gpu/drm/i915/gt/uc/intel_huc.c +0 -0
index 65eeb44b397d..534f4d9f6591 100644

drivers/gpu/drm/i915/gt/uc/intel_huc.c int intel_huc_auth(struct intel_huc *huc) · line 172

Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_huc.c +1 -2
@@ -166,8 +166,7 @@ int intel_huc_auth(struct intel_huc *huc)
 	if (ret)
 		goto fail;
 
-	ret = intel_guc_auth_huc(guc,
-				 intel_guc_ggtt_offset(guc, huc->rsa_data));
+	ret = intel_guc_auth_huc(guc, intel_guc_ggtt_offset(huc->rsa_data));
 	if (ret) {
 		DRM_ERROR("HuC: GuC did not ack Auth request %d\n", ret);
 		goto fail;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: [Intel-gfx] [PATCH 1/4] drm/i915/guc: drop guc parameter from guc_ggtt_offset

Quoted 74 lines · Michal Wajdeczko
Quoted 61 lines · Daniele Ceraolo Spurio

We stopped using the parameter in commit dd18cedfa36f ("drm/i915/guc: Move the pin bias value from GuC to GGTT"), so we can safely remove it.

Cc Matthew Brost <[email protected]>
Cc Michal Wajdeczko <[email protected]>
Cc John Harrison <[email protected]>
---
  drivers/gpu/drm/i915/gt/uc/intel_guc.c            | 6 +++---
  drivers/gpu/drm/i915/gt/uc/intel_guc.h            | 4 +---
  drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c        | 2 +-
  drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c         | 5 ++---
  drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 4 ++--
  drivers/gpu/drm/i915/gt/uc/intel_huc.c            | 3 +--
  6 files changed, 10 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +3 -3
index 861657897c0f..5134d544bf4c 100644
@@ -220,7 +220,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
  	if (intel_guc_submission_is_used(guc)) {
  		u32 ctxnum, base;
 
-		base = intel_guc_ggtt_offset(guc, guc->stage_desc_pool);
+		base = intel_guc_ggtt_offset(guc->stage_desc_pool);
  		ctxnum = GUC_MAX_STAGE_DESCRIPTORS / 16;
 
  		base >>= PAGE_SHIFT;
@@ -232,7 +232,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
 
  static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
  {
-	u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
+	u32 offset = intel_guc_ggtt_offset(guc->log.vma) >> PAGE_SHIFT;
  	u32 flags;
 
  	#if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
@@ -273,7 +273,7 @@ static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 
  static u32 guc_ctl_ads_flags(struct intel_guc *guc)
  {
-	u32 ads = intel_guc_ggtt_offset(guc, guc->ads_vma) >> PAGE_SHIFT;
+	u32 ads = intel_guc_ggtt_offset(guc->ads_vma) >> PAGE_SHIFT;
  	u32 flags = ads << GUC_ADS_ADDR_SHIFT;
 
  	return flags;
drivers/gpu/drm/i915/gt/uc/intel_guc.h +0 -1
index e84ab67b317d..366191204a7d 100644
@@ -103,7 +103,6 @@ static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
 
  /**
   * intel_guc_ggtt_offset() - Get and validate the GGTT offset of @vma
- * @guc: intel_guc structure.
   * @vma: i915 graphics virtual memory area.
   *
   * GuC does not allow any gfx GGTT address that falls into range

drivers/gpu/drm/i915/gt/uc/intel_guc.h static inline void intel_guc_to_host_event_handler(struct intel_guc *guc) · line 116

Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -2
@@ -114,8 +113,7 @@ static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
   *
   * Return: GGTT offset of the @vma.
   */
-static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
-					struct i915_vma *vma)
+static inline u32 intel_guc_ggtt_offset(struct i915_vma *vma)

leaving this function with 'intel_guc' prefix without param guc would break our naming schema, maybe we should rename it to:

Quoted 2 lines

static inline u32 i915_ggtt_offset_guc(struct i915_vma *vma)

I'm not convinced this is a good idea, the guc code still owns this function, so IMO it should still be called intel_guc_* to make that clear. We do have plenty of examples where the prefix and the param don't match, e.g. i915_ggtt_pin_bias just below accepts a vma and not the GGTT structure. With this I don't want to say that we should not try to match the prefix and param as much as possible, just that we should avoid enforcing that rule too strictly.

Quoted 10 lines

as code inside init_ggtt() already understands guc specifics ...

drivers/gpu/drm/i915/gt/uc/intel_guc.h static inline void intel_guc_to_host_event_handler(struct intel_guc *guc) · line 118

Quoted 2 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.h +0 -0
  {
  	u32 offset = i915_ggtt_offset(vma);

btw, we have here (not shown) in diff:

	GEM_BUG_ON(offset < i915_ggtt_pin_bias(vma));

that I would move to i915_ggtt_offset() as it quite generic

Not all objects are pinned using the bias so can't do that.

Quoted 3 lines

and replace it with something more GuC specific, like:

GEM_BUG_ON(offset < intel_wopcm_guc_size(wopcm))

I have a patch later in the series to move the wopcm under uc, so getting it from the vma would be troublesome (vma->vm->gt.uc). Since we use this for HuC as well maybe we can change to:

intel_uc_ggtt_offset(struct intel_uc *uc, struct i915_vma *vma)

{
	GEM_BUG_ON(offset < intel_uc_wopcm_guc_size(uc));
	...
}

but not sure if passing in the uc just to get to the wopcm is overkill when we have the bias value easily accessible via i915_ggtt_pin_bias. Thoughts?

Daniele

Quoted 70 lines

Michal

Quoted 67 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +1 -1
index 101728006ae9..9237d798f7f4 100644
@@ -107,7 +107,7 @@ static void __guc_ads_init(struct intel_guc *guc)
  	blob->system_info.vebox_enable_mask = VEBOX_MASK(dev_priv);
  	blob->system_info.vdbox_sfc_support_mask = RUNTIME_INFO(dev_priv)->vdbox_sfc_access;
 
-	base = intel_guc_ggtt_offset(guc, guc->ads_vma);
+	base = intel_guc_ggtt_offset(guc->ads_vma);
 
  	/* Clients info  */
  	guc_ct_pool_entries_init(blob->ct_pool, ARRAY_SIZE(blob->ct_pool));
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +2 -3
index 11742fca0e9e..aad5ac54c1ba 100644
@@ -187,7 +187,7 @@ int intel_guc_ct_init(struct intel_guc_ct *ct)
  		return err;
  	}
 
-	CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(guc, ct->vma));
+	CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(ct->vma));
 
  	/* store pointers to desc and cmds */
  	for (i = 0; i < ARRAY_SIZE(ct->ctbs); i++) {
@@ -220,7 +220,6 @@ void intel_guc_ct_fini(struct intel_guc_ct *ct)
   */
  int intel_guc_ct_enable(struct intel_guc_ct *ct)
  {
-	struct intel_guc *guc = ct_to_guc(ct);
  	u32 base, cmds, size;
  	int err;
  	int i;
@@ -229,7 +228,7 @@ int intel_guc_ct_enable(struct intel_guc_ct *ct)
 
  	/* vma should be already allocated and map'ed */
  	GEM_BUG_ON(!ct->vma);
-	base = intel_guc_ggtt_offset(guc, ct->vma);
+	base = intel_guc_ggtt_offset(ct->vma);
 
  	/* (re)initialize descriptors
  	 * cmds buffers are in the second half of the blob page
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2 -2
index fe7778c28d2d..7eaf173dd588 100644
@@ -153,8 +153,8 @@ static void guc_stage_desc_init(struct intel_guc *guc)
  	desc->stage_id = 0;
  	desc->priority = GUC_CLIENT_PRIORITY_KMD_NORMAL;
 
-	desc->process_desc = intel_guc_ggtt_offset(guc, guc->proc_desc);
-	desc->wq_addr = intel_guc_ggtt_offset(guc, guc->workqueue);
+	desc->process_desc = intel_guc_ggtt_offset(guc->proc_desc);
+	desc->wq_addr = intel_guc_ggtt_offset(guc->workqueue);
  	desc->wq_size = GUC_WQ_SIZE;
  }
 
drivers/gpu/drm/i915/gt/uc/intel_huc.c +0 -0
index 65eeb44b397d..534f4d9f6591 100644
@@ -166,8 +166,7 @@ int intel_huc_auth(struct intel_huc *huc)
  	if (ret)
  		goto fail;
 
Quoted 7 lines

drivers/gpu/drm/i915/gt/uc/intel_huc.c int intel_huc_auth(struct intel_huc *huc) · line 172

Quoted 7 lines
drivers/gpu/drm/i915/gt/uc/intel_huc.c +1 -2
-	ret = intel_guc_auth_huc(guc,
-				 intel_guc_ggtt_offset(guc, huc->rsa_data));
+	ret = intel_guc_auth_huc(guc, intel_guc_ggtt_offset(huc->rsa_data));
  	if (ret) {
  		DRM_ERROR("HuC: GuC did not ack Auth request %d\n", ret);
  		goto fail;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

PATCH 2/4 drm/i915/guc: drop gt.pm_guc_events

In reply to Daniele Ceraolo Spurio

We always set it to the same value, so there is no need to actually have a variable for it and we can just use the value directly.

Cc Michal Wajdeczko <[email protected]>
Cc John Harrison <[email protected]>
Cc Matthew Brost <[email protected]>
---
 drivers/gpu/drm/i915/gt/intel_gt_types.h   | 2 --
 drivers/gpu/drm/i915/gt/uc/intel_guc.c     | 8 ++++----
 drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h | 3 +++
 drivers/gpu/drm/i915/i915_irq.c            | 4 ----
 4 files changed, 7 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt_types.h +0 -2
index 96890dd12b5f..81691cf1d411 100644
@@ -85,8 +85,6 @@ struct intel_gt {
 	u32 pm_ier;
 	u32 pm_imr;
 
-	u32 pm_guc_events;
-
 	struct intel_engine_cs *engine[I915_NUM_ENGINES];
 	struct intel_engine_cs *engine_class[MAX_ENGINE_CLASS + 1]
 					    [MAX_ENGINE_INSTANCE + 1];
drivers/gpu/drm/i915/gt/uc/intel_guc.c +4 -4
index 5134d544bf4c..eadea9d47e31 100644
@@ -85,7 +85,7 @@ static void gen9_reset_guc_interrupts(struct intel_guc *guc)
 	assert_rpm_wakelock_held(&gt->i915->runtime_pm);
 
 	spin_lock_irq(&gt->irq_lock);
-	gen6_gt_pm_reset_iir(gt, gt->pm_guc_events);
+	gen6_gt_pm_reset_iir(gt, GEN9_GUC_INTR_BIT(GUC2HOST));
 	spin_unlock_irq(&gt->irq_lock);
 }
 
@@ -98,9 +98,9 @@ static void gen9_enable_guc_interrupts(struct intel_guc *guc)
 	spin_lock_irq(&gt->irq_lock);
 	if (!guc->interrupts.enabled) {
 		WARN_ON_ONCE(intel_uncore_read(gt->uncore, GEN8_GT_IIR(2)) &
-			     gt->pm_guc_events);
+			     GEN9_GUC_INTR_BIT(GUC2HOST));
 		guc->interrupts.enabled = true;
-		gen6_gt_pm_enable_irq(gt, gt->pm_guc_events);
+		gen6_gt_pm_enable_irq(gt, GEN9_GUC_INTR_BIT(GUC2HOST));
 	}
 	spin_unlock_irq(&gt->irq_lock);
 }
@@ -114,7 +114,7 @@ static void gen9_disable_guc_interrupts(struct intel_guc *guc)
 	spin_lock_irq(&gt->irq_lock);
 	guc->interrupts.enabled = false;
 
-	gen6_gt_pm_disable_irq(gt, gt->pm_guc_events);
+	gen6_gt_pm_disable_irq(gt, GEN9_GUC_INTR_BIT(GUC2HOST));
 
 	spin_unlock_irq(&gt->irq_lock);
 	intel_synchronize_irq(gt->i915);
drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h +3 -0
index 1949346e714e..ae785a757316 100644
@@ -143,4 +143,7 @@ struct guc_doorbell_info {
 #define GUC_INTR_SW_INT_1		BIT(1)
 #define GUC_INTR_SW_INT_0		BIT(0)
 
+/* pre-gen11 the guc irqs bits are in the upper 16 bits of the pm reg */
+#define GEN9_GUC_INTR_BIT(x) (GUC_INTR_##x << 16)
+
 #endif
drivers/gpu/drm/i915/i915_irq.c +0 -4
index 1502ab44f1a5..a224a05b0551 100644
@@ -3942,10 +3942,6 @@ void intel_irq_init(struct drm_i915_private *dev_priv)
 	for (i = 0; i < MAX_L3_SLICES; ++i)
 		dev_priv->l3_parity.remap_info[i] = NULL;
 
-	/* pre-gen11 the guc irqs bits are in the upper 16 bits of the pm reg */
-	if (HAS_GT_UC(dev_priv) && INTEL_GEN(dev_priv) < 11)
-		dev_priv->gt.pm_guc_events = GUC_INTR_GUC2HOST << 16;
-
 	dev->vblank_disable_immediate = true;
 
 	/* Most platforms treat the display irq block as an always-on
Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

PATCH 3/4 drm/i915: consolidate WOPCM management under gt/uc

In reply to Daniele Ceraolo Spurio

The WOPCM is not a uC-specific resource, but the only use-case we have for it on the SW side is the programming of the related registers for GuC/HuC DMA, everything else is HW-managed. Given that the wopcm init functions are already heavily uC focused (to the point that they skip on HW that doesn't have GuC/HuC), it makes sense to stop pretending we handle WOPCM as a global resource and just focus on the part we care about. Therefore, we can move the init functions inside gt/uc and consolidate all the uC WOPCM functions inside the same file.

As part of the move, the initialization has been slightly simplified, including dropping a check on FW fetch to verify that the FW blob is not bigger that the whole WOPCM. This means that in the extremely unlikely case we do have a FW that is too big (why would we ever ship a FW that can't be loaded?) we might underflow in our partitioning math, but we're still safe due to the check we perform when we verify the partitioning after we're done with the calculations. Note that this is not a regression given that even now we might underflow if the binary is close to the size of the WOPCM due to adding the reserved regions to the mix.

---
 Documentation/gpu/i915.rst                    |   2 +-
 drivers/gpu/drm/i915/Makefile                 |   4 +-
 drivers/gpu/drm/i915/gt/intel_ggtt.c          |   2 +-
 drivers/gpu/drm/i915/gt/uc/intel_uc.c         |  67 +--------
 drivers/gpu/drm/i915/gt/uc/intel_uc.h         |  25 ++++
 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c      |  11 --
 .../{intel_wopcm.c => gt/uc/intel_uc_wopcm.c} | 141 ++++++++++++------
 drivers/gpu/drm/i915/i915_drv.c               |   2 -
 drivers/gpu/drm/i915/i915_drv.h               |   3 -
 drivers/gpu/drm/i915/i915_gem.c               |   2 +-
 drivers/gpu/drm/i915/intel_wopcm.h            |  60 --------
 11 files changed, 128 insertions(+), 191 deletions(-)
 rename drivers/gpu/drm/i915/{intel_wopcm.c => gt/uc/intel_uc_wopcm.c} (71%)
 delete mode 100644 drivers/gpu/drm/i915/intel_wopcm.h
Documentation/gpu/i915.rst +1 -1
index 429b08aac797..28c396a18574 100644
@@ -430,7 +430,7 @@ WOPCM
 WOPCM Layout
 ~~~~~~~~~~~~
 
-.. kernel-doc:: drivers/gpu/drm/i915/intel_wopcm.c
+.. kernel-doc:: drivers/gpu/drm/i915/gt/uc/intel_uc_wopcm.c
    :doc: WOPCM Layout
 
 GuC
drivers/gpu/drm/i915/Makefile +2 -2
index 2fce8b0040f3..c35d5e827836 100644
@@ -162,13 +162,13 @@ i915-y += \
 	  i915_scheduler.o \
 	  i915_trace_points.o \
 	  i915_vma.o \
-	  intel_region_lmem.o \
-	  intel_wopcm.o
+	  intel_region_lmem.o
 
 # general-purpose microcontroller (GuC) support
 i915-y += gt/uc/intel_uc.o \
 	  gt/uc/intel_uc_debugfs.o \
 	  gt/uc/intel_uc_fw.o \
+	  gt/uc/intel_uc_wopcm.o \
 	  gt/uc/intel_guc.o \
 	  gt/uc/intel_guc_ads.o \
 	  gt/uc/intel_guc_ct.o \
drivers/gpu/drm/i915/gt/intel_ggtt.c +1 -1
index eebd1190506f..4a3b82dc2765 100644
@@ -506,7 +506,7 @@ static int init_ggtt(struct i915_ggtt *ggtt)
 	 * why.
 	 */
 	ggtt->pin_bias = max_t(u32, I915_GTT_PAGE_SIZE,
-			       intel_wopcm_guc_size(&ggtt->vm.i915->wopcm));
+			       intel_uc_wopcm_guc_size(&ggtt->vm.gt->uc));
 
 	ret = intel_vgt_balloon(ggtt);
 	if (ret)
drivers/gpu/drm/i915/gt/uc/intel_uc.c +2 -65

85 lines not on this page · raw message

drivers/gpu/drm/i915/gt/uc/intel_uc.h +25 -0
index 9c954c589edf..b89363608f9b 100644
@@ -28,6 +28,12 @@ struct intel_uc {
 	struct intel_guc guc;
 	struct intel_huc huc;
 
+	/* WOPCM partitioning for uc usage */
+	struct {
+		u32 guc_base;
+		u32 guc_size;
+	} wopcm;
+
 	/* Snapshot of GuC log from last failed load */
 	struct drm_i915_gem_object *load_err_log;
 };
@@ -42,6 +48,25 @@ void intel_uc_runtime_suspend(struct intel_uc *uc);
 int intel_uc_resume(struct intel_uc *uc);
 int intel_uc_runtime_resume(struct intel_uc *uc);
 
+void intel_uc_partition_wopcm(struct intel_uc *uc);
+int intel_uc_init_wopcm(struct intel_uc *uc);
+bool intel_uc_is_wopcm_locked(struct intel_uc *uc);
+
+/**
+ * intel_uc_wopcm_guc_size()
+ * @uc:	intel_uc structure
+ *
+ * Returns size of the WOPCM shadowed region.
+ *
+ * Returns:
+ * 0 if GuC is not present or not in use.
+ * Otherwise, the GuC WOPCM size.
+ */
+static inline u32 intel_uc_wopcm_guc_size(struct intel_uc *uc)
+{
+	return uc->wopcm.guc_size;
+}
+
 /*
  * We need to know as early as possible if we're going to use GuC or not to
  * take the correct setup paths. Additionally, once we've started loading the
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c +0 -11
index e1caae93996d..ff2130f8ee18 100644
@@ -280,7 +280,6 @@ int intel_uc_fw_fetch(struct intel_uc_fw *uc_fw)
 	size_t size;
 	int err;
 
-	GEM_BUG_ON(!i915->wopcm.size);
 	GEM_BUG_ON(!intel_uc_fw_is_enabled(uc_fw));
 
 	err = i915_inject_probe_error(i915, -ENXIO);
@@ -340,16 +339,6 @@ int intel_uc_fw_fetch(struct intel_uc_fw *uc_fw)
 		goto fail;
 	}
 
-	/* Sanity check whether this fw is not larger than whole WOPCM memory */
-	size = __intel_uc_fw_get_upload_size(uc_fw);
-	if (unlikely(size >= i915->wopcm.size)) {
-		drm_warn(&i915->drm, "%s firmware %s: invalid size: %zu > %zu\n",
-			 intel_uc_fw_type_repr(uc_fw->type), uc_fw->path,
-			 size, (size_t)i915->wopcm.size);
-		err = -E2BIG;
-		goto fail;
-	}
-
 	/* Get version numbers from the CSS header */
 	uc_fw->major_ver_found = FIELD_GET(CSS_SW_VERSION_UC_MAJOR,
 					   css->sw_version);
drivers/gpu/drm/i915/gt/uc/intel_uc_wopcm.c renamed from drivers/gpu/drm/i915/intel_wopcm.c +96 -45

189 lines not on this page · raw message

drivers/gpu/drm/i915/i915_drv.c +0 -2
index a7a3b4b98572..ab623fef3884 100644
@@ -451,8 +451,6 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv)
 	if (ret < 0)
 		goto err_workqueues;
 
-	intel_wopcm_init_early(&dev_priv->wopcm);
-
 	intel_gt_init_early(&dev_priv->gt, dev_priv);
 
 	i915_gem_init_early(dev_priv);
drivers/gpu/drm/i915/i915_drv.h +0 -3
index e9ee4daa9320..d346a20e8708 100644
@@ -89,7 +89,6 @@
 #include "intel_memory_region.h"
 #include "intel_uncore.h"
 #include "intel_wakeref.h"
-#include "intel_wopcm.h"
 
 #include "i915_gem.h"
 #include "i915_gem_gtt.h"
@@ -860,8 +859,6 @@ struct drm_i915_private {
 
 	struct intel_gvt *gvt;
 
-	struct intel_wopcm wopcm;
-
 	struct intel_csr csr;
 
 	struct intel_gmbus gmbus[GMBUS_NUM_PINS];
drivers/gpu/drm/i915/i915_gem.c +1 -1
index 0cbcb9f54e7d..eafd015a2dc5 100644
@@ -1105,7 +1105,7 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
 		return ret;
 
 	intel_uc_fetch_firmwares(&dev_priv->gt.uc);
-	intel_wopcm_init(&dev_priv->wopcm);
+	intel_uc_partition_wopcm(&dev_priv->gt.uc);
 
 	ret = i915_init_ggtt(dev_priv);
 	if (ret) {
drivers/gpu/drm/i915/intel_wopcm.h deleted +0 -60

60 lines not on this page · raw message

Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw

PATCH 4/4 HAX: drm/i915: default to enable_guc=2

In reply to Daniele Ceraolo Spurio

To enable GuC and HuC loading on all gen9+ CI machines.

---
 drivers/gpu/drm/i915/i915_params.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_params.h +1 -1
index 45323732f099..7b5d32c990bc 100644
@@ -56,7 +56,7 @@ struct drm_printer;
 	param(int, disable_power_well, -1, 0400) \
 	param(int, enable_ips, 1, 0600) \
 	param(int, invert_brightness, 0, 0600) \
-	param(int, enable_guc, 0, 0400) \
+	param(int, enable_guc, 2, 0400) \
 	param(int, guc_log_level, -1, 0400) \
 	param(char *, guc_firmware_path, NULL, 0400) \
 	param(char *, huc_firmware_path, NULL, 0400) \
Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for uC code cleanups

In reply to Daniele Ceraolo Spurio
== Series Details ==

== Series Details ==

Series: uC code cleanups
URL : https://patchwork.freedesktop.org/series/75719/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
8dddf55cb05f drm/i915/guc: drop guc parameter from guc_ggtt_offset
db5f8b4a0580 drm/i915/guc: drop gt.pm_guc_events
a473fe00b153 drm/i915: consolidate WOPCM management under gt/uc
-:240: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#240: 
rename from drivers/gpu/drm/i915/intel_wopcm.c

total: 0 errors, 1 warnings, 0 checks, 396 lines checked 8a3c5810fd98 HAX: drm/i915: default to enable_guc=2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for uC code cleanups

In reply to Daniele Ceraolo Spurio
== Series Details ==

== Series Details ==

Series: uC code cleanups
URL : https://patchwork.freedesktop.org/series/75719/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_8281 -> Patchwork_17262
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/index.html

Known issues
------------

Here are the changes found in Patchwork_17262 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s4-devices:
- fi-tgl-y: [PASS][1] -> [FAIL][2] ([i915#1158])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/fi-tgl-y/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/fi-tgl-y/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- fi-icl-y: [PASS][3] -> [INCOMPLETE][4] ([i915#1580])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/fi-icl-y/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/fi-icl-y/igt@i915_selftest@[email protected]

#### Possible fixes ####

* igt@i915_pm_rpm@module-reload:
- fi-icl-dsi: [INCOMPLETE][5] ([i915#189]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/fi-icl-dsi/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/fi-icl-dsi/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[i915#1158]: https://gitlab.freedesktop.org/drm/intel/issues/1158
[i915#1580]: https://gitlab.freedesktop.org/drm/intel/issues/1580
[i915#1604]: https://gitlab.freedesktop.org/drm/intel/issues/1604
[i915#189]: https://gitlab.freedesktop.org/drm/intel/issues/189

Participating hosts (51 -> 46)
------------------------------

Additional (1): fi-skl-6770hq
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_8281 -> Patchwork_17262

CI-20190529: 20190529
CI_DRM_8281: 4d6c69198d6840226f92f2c4645e2c8260ca3e83 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5581: ab0620e555119ec55f12ba9ab9e6e9246d407648 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17262: 8a3c5810fd98a7985a71613dbe8f488f9d5aa749 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

8a3c5810fd98 HAX: drm/i915: default to enable_guc=2 a473fe00b153 drm/i915: consolidate WOPCM management under gt/uc db5f8b4a0580 drm/i915/guc: drop gt.pm_guc_events 8dddf55cb05f drm/i915/guc: drop guc parameter from guc_ggtt_offset

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#9 lore raw

[Intel-gfx] ✓ Fi.CI.IGT: success for uC code cleanups

In reply to Daniele Ceraolo Spurio
== Series Details ==

== Series Details ==

Series: uC code cleanups
URL : https://patchwork.freedesktop.org/series/75719/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_8281_full -> Patchwork_17262_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

New tests
---------

New tests have been introduced between CI_DRM_8281_full and Patchwork_17262_full:

### New IGT tests (2) ###

* igt@gem_exec_store@cachelines:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_store@pages:
- Statuses :
- Exec time: [None] s

Known issues
------------

Here are the changes found in Patchwork_17262_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gen9_exec_parse@allowed-all:
- shard-glk: [PASS][1] -> [DMESG-WARN][2] ([i915#716])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-glk8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-glk2/igt@[email protected]
- shard-kbl: [PASS][3] -> [DMESG-WARN][4] ([i915#716])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-kbl7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-kbl1/igt@[email protected]

* igt@i915_module_load@reload-with-fault-injection:
- shard-skl: [PASS][5] -> [TIMEOUT][6] ([i915#1418])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl4/igt@[email protected]

* igt@i915_selftest@live@requests:
- shard-tglb: [PASS][7] -> [INCOMPLETE][8] ([i915#1531] / [i915#1658])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-tglb2/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-tglb2/igt@i915_selftest@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-64x64-sliding:
- shard-apl: [PASS][9] -> [FAIL][10] ([i915#54] / [i915#95])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-apl1/igt@[email protected]

* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [PASS][11] -> [SKIP][12] ([fdo#109349])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-iclb4/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [PASS][13] -> [FAIL][14] ([i915#79])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl1/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl4/igt@[email protected]
- shard-apl: [PASS][15] -> [FAIL][16] ([i915#79])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl8/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-apl8/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [PASS][17] -> [FAIL][18] ([i915#46])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl9/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl1/igt@[email protected]

* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][19] -> [FAIL][20] ([i915#1188]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl4/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl6/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][21] -> [FAIL][22] ([fdo#108145] / [i915#265])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl9/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl10/igt@[email protected]

* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][23] -> [SKIP][24] ([fdo#109441])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-iclb1/igt@kms_psr@psr2_cursor_render.html

#### Possible fixes ####

* igt@gem_ctx_persistence@engines-mixed-process@vcs0:
- shard-skl: [FAIL][25] ([i915#1528]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl1/igt@gem_ctx_persistence@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl5/igt@gem_ctx_persistence@[email protected]

* igt@gem_exec_params@invalid-bsd-ring:
- shard-iclb: [SKIP][27] ([fdo#109276]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb3/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-iclb4/igt@[email protected]

* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][29] ([i915#454]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-iclb3/igt@[email protected]

* igt@i915_suspend@forcewake:
- shard-apl: [DMESG-WARN][31] ([i915#180]) -> [PASS][32] +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-apl1/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-64x21-onscreen:
- shard-skl: [FAIL][33] ([i915#54]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl9/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [FAIL][35] ([fdo#108145] / [i915#265]) -> [PASS][36] +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-skl9/igt@[email protected]

* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][37] ([fdo#109441]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb5/igt@kms_psr@psr2_cursor_mmap_cpu.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [DMESG-WARN][39] ([i915#180]) -> [PASS][40] +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-kbl4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-kbl4/igt@[email protected]

#### Warnings ####

* igt@i915_pm_rpm@fences:
- shard-snb: [SKIP][41] ([fdo#109271]) -> [INCOMPLETE][42] ([i915#82])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-snb4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-snb1/igt@[email protected]

* igt@runner@aborted:
- shard-kbl: [FAIL][43] ([i915#1423] / [i915#92]) -> ([FAIL][44], [FAIL][45]) ([i915#1423] / [i915#716] / [i915#92])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-kbl2/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-kbl6/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/shard-kbl1/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1418]: https://gitlab.freedesktop.org/drm/intel/issues/1418
[i915#1423]: https://gitlab.freedesktop.org/drm/intel/issues/1423
[i915#1528]: https://gitlab.freedesktop.org/drm/intel/issues/1528
[i915#1531]: https://gitlab.freedesktop.org/drm/intel/issues/1531
[i915#1532]: https://gitlab.freedesktop.org/drm/intel/issues/1532
[i915#1658]: https://gitlab.freedesktop.org/drm/intel/issues/1658
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#46]: https://gitlab.freedesktop.org/drm/intel/issues/46
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95

Participating hosts (10 -> 10)
------------------------------

No changes in participating hosts

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_8281 -> Patchwork_17262

CI-20190529: 20190529
CI_DRM_8281: 4d6c69198d6840226f92f2c4645e2c8260ca3e83 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5581: ab0620e555119ec55f12ba9ab9e6e9246d407648 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17262: 8a3c5810fd98a7985a71613dbe8f488f9d5aa749 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17262/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx