Skip to contentSkip to conversation

Perma-pin uC firmware and re-enable global reset

PATCH Superseded Fernando Pacheco 3 participants 14 messages Apr 18, 2019 – Apr 19, 2019

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Perma-pin uC firmware and re-enable global reset

The intent is to move the GuC and HuC firmware images to the top of the address space. This portion is inaccessible during normal GuC operations and should be relatively safe to house both firmware images. By making the move we can re-enable the full gpu reset with GuC enabled.

Placing the firmware images above GUC_GGTT_TOP was discussed previously here:

	https://patchwork.freedesktop.org/patch/273616/

v2:
The decision to rename both the uc_fw init and fini functions made it easier to pull the bind/unbind operations out of intel_guc_fw.* and intel_huc_fw.*. The bind/unbind will now take place within the newly repurposed intel_uc_fw_init/fini. All other changes should be called out in their respective patches and should be the direct result of a review comment.

Cc Chris Wilson <[email protected]>
Cc Daniele Ceraolo Spurio <[email protected]>

Fernando Pacheco (5):
drm/i915/uc: Rename uC firmware init/fini functions drm/i915/uc: Reserve upper range of GGTT
drm/i915/uc: Place uC firmware in upper range of GGTT Revert "drm/i915/guc: Disable global reset" drm/i915/selftests: Check that gpu reset is usable from atomic context

 drivers/gpu/drm/i915/i915_gem.c               |   2 +
 drivers/gpu/drm/i915/i915_gem_gtt.c           |  25 ++--
 drivers/gpu/drm/i915/i915_gem_gtt.h           |   1 +
 drivers/gpu/drm/i915/i915_reset.c             |   3 -
 drivers/gpu/drm/i915/intel_guc.c              |  58 ++++++++-
 drivers/gpu/drm/i915/intel_guc.h              |   2 +
 drivers/gpu/drm/i915/intel_guc_fw.c           |  20 +--
 drivers/gpu/drm/i915/intel_huc.c              |  74 ++++++++---
 drivers/gpu/drm/i915/intel_huc.h              |   6 +-
 drivers/gpu/drm/i915/intel_huc_fw.c           |  49 +++++--
 drivers/gpu/drm/i915/intel_uc.c               |  39 +++++-
 drivers/gpu/drm/i915/intel_uc.h               |   1 +
 drivers/gpu/drm/i915/intel_uc_fw.c            | 122 +++++++++++++-----
 drivers/gpu/drm/i915/intel_uc_fw.h            |  12 +-
 .../gpu/drm/i915/selftests/intel_hangcheck.c  |   6 +-
 15 files changed, 319 insertions(+), 101 deletions(-)
Signature · 6 lines
2.21.0

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

PATCH v2 1/5 drm/i915/uc: Rename uC firmware init/fini functions

The uC firmware init function is called during GuC/HuC init early phases. Rename to include "_early" and properly reflect which phase we are at.

The uC firmware fini function is cleaning up the state set/created on firmware fetch. Replace "_fini" with "_cleanup_fetch".

v2: also rename uC fw fini function

---
 drivers/gpu/drm/i915/intel_guc.c    | 6 +++---
 drivers/gpu/drm/i915/intel_guc_fw.c | 2 +-
 drivers/gpu/drm/i915/intel_huc.h    | 2 +-
 drivers/gpu/drm/i915/intel_huc_fw.c | 2 +-
 drivers/gpu/drm/i915/intel_uc_fw.c  | 4 ++--
 drivers/gpu/drm/i915/intel_uc_fw.h  | 5 +++--
 6 files changed, 11 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/intel_guc.c +3 -3
index 3aabfa2d9198..d81a02b0f525 100644
@@ -154,7 +154,7 @@ int intel_guc_init_misc(struct intel_guc *guc)
 
 void intel_guc_fini_misc(struct intel_guc *guc)
 {
-	intel_uc_fw_fini(&guc->fw);
+	intel_uc_fw_cleanup_fetch(&guc->fw);
 	guc_fini_wq(guc);
 }
 
@@ -221,7 +221,7 @@ int intel_guc_init(struct intel_guc *guc)
 err_shared:
 	guc_shared_data_destroy(guc);
 err_fetch:
-	intel_uc_fw_fini(&guc->fw);
+	intel_uc_fw_cleanup_fetch(&guc->fw);
 	return ret;
 }
 
@@ -237,7 +237,7 @@ void intel_guc_fini(struct intel_guc *guc)
 	intel_guc_ads_destroy(guc);
 	intel_guc_log_destroy(&guc->log);
 	guc_shared_data_destroy(guc);
-	intel_uc_fw_fini(&guc->fw);
+	intel_uc_fw_cleanup_fetch(&guc->fw);
 }
 
 static u32 guc_ctl_debug_flags(struct intel_guc *guc)
drivers/gpu/drm/i915/intel_guc_fw.c +1 -1
index 792a551450c7..4385d9ef02bb 100644
@@ -90,7 +90,7 @@ void intel_guc_fw_init_early(struct intel_guc *guc)
 {
 	struct intel_uc_fw *guc_fw = &guc->fw;
 
-	intel_uc_fw_init(guc_fw, INTEL_UC_FW_TYPE_GUC);
+	intel_uc_fw_init_early(guc_fw, INTEL_UC_FW_TYPE_GUC);
 	guc_fw_select(guc_fw);
 }
 
drivers/gpu/drm/i915/intel_huc.h +1 -1
index 7e41d870b509..ce129e301961 100644
@@ -42,7 +42,7 @@ int intel_huc_check_status(struct intel_huc *huc);
 
 static inline void intel_huc_fini_misc(struct intel_huc *huc)
 {
-	intel_uc_fw_fini(&huc->fw);
+	intel_uc_fw_cleanup_fetch(&huc->fw);
 }
 
 static inline int intel_huc_sanitize(struct intel_huc *huc)
drivers/gpu/drm/i915/intel_huc_fw.c +1 -1
index 68d47c105939..80a176d91edc 100644
@@ -89,7 +89,7 @@ void intel_huc_fw_init_early(struct intel_huc *huc)
 {
 	struct intel_uc_fw *huc_fw = &huc->fw;
 
-	intel_uc_fw_init(huc_fw, INTEL_UC_FW_TYPE_HUC);
+	intel_uc_fw_init_early(huc_fw, INTEL_UC_FW_TYPE_HUC);
 	huc_fw_select(huc_fw);
 }
 
drivers/gpu/drm/i915/intel_uc_fw.c +2 -2
index becf05ebae4d..e3e74207a102 100644
@@ -274,13 +274,13 @@ int intel_uc_fw_upload(struct intel_uc_fw *uc_fw,
 }
 
 /**
- * intel_uc_fw_fini - cleanup uC firmware
+ * intel_uc_fw_cleanup_fetch - cleanup uC firmware
  *
  * @uc_fw: uC firmware
  *
  * Cleans up uC firmware by releasing the firmware GEM obj.
  */
-void intel_uc_fw_fini(struct intel_uc_fw *uc_fw)
+void intel_uc_fw_cleanup_fetch(struct intel_uc_fw *uc_fw)
 {
 	struct drm_i915_gem_object *obj;
 
drivers/gpu/drm/i915/intel_uc_fw.h +3 -2
index 0e3bd580e267..e6fa8599757c 100644
@@ -102,7 +102,8 @@ static inline const char *intel_uc_fw_type_repr(enum intel_uc_fw_type type)
 }
 
 static inline
-void intel_uc_fw_init(struct intel_uc_fw *uc_fw, enum intel_uc_fw_type type)
+void intel_uc_fw_init_early(struct intel_uc_fw *uc_fw,
+			    enum intel_uc_fw_type type)
 {
 	uc_fw->path = NULL;
 	uc_fw->fetch_status = INTEL_UC_FIRMWARE_NONE;
@@ -144,10 +145,10 @@ static inline u32 intel_uc_fw_get_upload_size(struct intel_uc_fw *uc_fw)
 
 void intel_uc_fw_fetch(struct drm_i915_private *dev_priv,
 		       struct intel_uc_fw *uc_fw);
+void intel_uc_fw_cleanup_fetch(struct intel_uc_fw *uc_fw);
 int intel_uc_fw_upload(struct intel_uc_fw *uc_fw,
 		       int (*xfer)(struct intel_uc_fw *uc_fw,
 				   struct i915_vma *vma));
-void intel_uc_fw_fini(struct intel_uc_fw *uc_fw);
 void intel_uc_fw_dump(const struct intel_uc_fw *uc_fw, struct drm_printer *p);
 
 #endif
Signature · 6 lines
2.21.0

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

PATCH v2 2/5 drm/i915/uc: Reserve upper range of GGTT

In reply to Fernando Pacheco

GuC and HuC depend on struct_mutex for device reinitialization. Moving away from this dependency requires perma-pinning the firmware images in GGTT. The upper portion of the GuC address space has a sizeable hole (several MB) that is inaccessible by GuC. Reserve this range within GGTT as it can comfortably hold GuC/HuC firmware images.

v2: Reserve node rather than insert (Chris)
Simpler determination of node start/size (Daniele) Move reserve/release out to intel_guc.* files

---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 25 ++++++++--------
 drivers/gpu/drm/i915/i915_gem_gtt.h |  1 +
 drivers/gpu/drm/i915/intel_guc.c    | 45 +++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_guc.h    |  2 ++
 4 files changed, 60 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +12 -13
index 8f460cc4cc1f..0b4c22e68574 100644
@@ -2752,6 +2752,12 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
 	if (ret)
 		return ret;
 
+	if (USES_GUC(dev_priv)) {
+		ret = intel_guc_reserve_ggtt_top(&dev_priv->guc);
+		if (ret)
+			goto err_reserve;
+	}
+
 	/* Clear any non-preallocated blocks */
 	drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) {
 		DRM_DEBUG_KMS("clearing unused GTT space: [%lx, %lx]\n",
@@ -2766,12 +2772,14 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
 	if (INTEL_PPGTT(dev_priv) == INTEL_PPGTT_ALIASING) {
 		ret = i915_gem_init_aliasing_ppgtt(dev_priv);
 		if (ret)
-			goto err;
+			goto err_appgtt;
 	}
 
 	return 0;
 
-err:
+err_appgtt:
+	intel_guc_release_ggtt_top(&dev_priv->guc);
+err_reserve:
 	drm_mm_remove_node(&ggtt->error_capture);
 	return ret;
 }
@@ -2797,6 +2805,8 @@ void i915_ggtt_cleanup_hw(struct drm_i915_private *dev_priv)
 	if (drm_mm_node_allocated(&ggtt->error_capture))
 		drm_mm_remove_node(&ggtt->error_capture);
 
+	intel_guc_release_ggtt_top(&dev_priv->guc);
+
 	if (drm_mm_initialized(&ggtt->vm.mm)) {
 		intel_vgt_deballoon(dev_priv);
 		i915_address_space_fini(&ggtt->vm);
@@ -3369,17 +3379,6 @@ int i915_ggtt_probe_hw(struct drm_i915_private *dev_priv)
 	if (ret)
 		return ret;
 
-	/* Trim the GGTT to fit the GuC mappable upper range (when enabled).
-	 * This is easier than doing range restriction on the fly, as we
-	 * currently don't have any bits spare to pass in this upper
-	 * restriction!
-	 */
-	if (USES_GUC(dev_priv)) {
-		ggtt->vm.total = min_t(u64, ggtt->vm.total, GUC_GGTT_TOP);
-		ggtt->mappable_end =
-			min_t(u64, ggtt->mappable_end, ggtt->vm.total);
-	}
-
 	if ((ggtt->vm.total - 1) >> 32) {
 		DRM_ERROR("We never expected a Global GTT with more than 32bits"
 			  " of address space! Found %lldM!\n",
drivers/gpu/drm/i915/i915_gem_gtt.h +1 -0
index f597f35b109b..b51e779732c3 100644
@@ -384,6 +384,7 @@ struct i915_ggtt {
 	u32 pin_bias;
 
 	struct drm_mm_node error_capture;
+	struct drm_mm_node uc_fw;
 };
 
 struct i915_hw_ppgtt {
drivers/gpu/drm/i915/intel_guc.c +45 -0

48 lines not on this page · raw message

drivers/gpu/drm/i915/intel_guc.h +2 -0
index 2c59ff8d9f39..2494e84831a2 100644
@@ -173,6 +173,8 @@ int intel_guc_suspend(struct intel_guc *guc);
 int intel_guc_resume(struct intel_guc *guc);
 struct i915_vma *intel_guc_allocate_vma(struct intel_guc *guc, u32 size);
 u32 intel_guc_reserved_gtt_size(struct intel_guc *guc);
+int intel_guc_reserve_ggtt_top(struct intel_guc *guc);
+void intel_guc_release_ggtt_top(struct intel_guc *guc);
 
 static inline int intel_guc_sanitize(struct intel_guc *guc)
 {
Signature · 6 lines
2.21.0

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

Re: [PATCH v2 2/5] drm/i915/uc: Reserve upper range of GGTT

Quoting Fernando Pacheco (2019-04-19 00:31:48)

Quoted 104 lines

GuC and HuC depend on struct_mutex for device reinitialization. Moving away from this dependency requires perma-pinning the firmware images in GGTT. The upper portion of the GuC address space has a sizeable hole (several MB) that is inaccessible by GuC. Reserve this range within GGTT as it can comfortably hold GuC/HuC firmware images.

v2: Reserve node rather than insert (Chris)
Simpler determination of node start/size (Daniele) Move reserve/release out to intel_guc.* files

---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 25 ++++++++--------
 drivers/gpu/drm/i915/i915_gem_gtt.h |  1 +
 drivers/gpu/drm/i915/intel_guc.c    | 45 +++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_guc.h    |  2 ++
 4 files changed, 60 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +12 -13
index 8f460cc4cc1f..0b4c22e68574 100644
@@ -2752,6 +2752,12 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
        if (ret)
                return ret;
 
+       if (USES_GUC(dev_priv)) {
+               ret = intel_guc_reserve_ggtt_top(&dev_priv->guc);
+               if (ret)
+                       goto err_reserve;
+       }
+
        /* Clear any non-preallocated blocks */
        drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) {
                DRM_DEBUG_KMS("clearing unused GTT space: [%lx, %lx]\n",
@@ -2766,12 +2772,14 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
        if (INTEL_PPGTT(dev_priv) == INTEL_PPGTT_ALIASING) {
                ret = i915_gem_init_aliasing_ppgtt(dev_priv);
                if (ret)
-                       goto err;
+                       goto err_appgtt;
        }
 
        return 0;
 
-err:
+err_appgtt:
+       intel_guc_release_ggtt_top(&dev_priv->guc);
+err_reserve:
        drm_mm_remove_node(&ggtt->error_capture);
        return ret;
 }
@@ -2797,6 +2805,8 @@ void i915_ggtt_cleanup_hw(struct drm_i915_private *dev_priv)
        if (drm_mm_node_allocated(&ggtt->error_capture))
                drm_mm_remove_node(&ggtt->error_capture);
 
+       intel_guc_release_ggtt_top(&dev_priv->guc);
+
        if (drm_mm_initialized(&ggtt->vm.mm)) {
                intel_vgt_deballoon(dev_priv);
                i915_address_space_fini(&ggtt->vm);
@@ -3369,17 +3379,6 @@ int i915_ggtt_probe_hw(struct drm_i915_private *dev_priv)
        if (ret)
                return ret;
 
-       /* Trim the GGTT to fit the GuC mappable upper range (when enabled).
-        * This is easier than doing range restriction on the fly, as we
-        * currently don't have any bits spare to pass in this upper
-        * restriction!
-        */
-       if (USES_GUC(dev_priv)) {
-               ggtt->vm.total = min_t(u64, ggtt->vm.total, GUC_GGTT_TOP);
-               ggtt->mappable_end =
-                       min_t(u64, ggtt->mappable_end, ggtt->vm.total);
-       }
-
        if ((ggtt->vm.total - 1) >> 32) {
                DRM_ERROR("We never expected a Global GTT with more than 32bits"
                          " of address space! Found %lldM!\n",
drivers/gpu/drm/i915/i915_gem_gtt.h +1 -0
index f597f35b109b..b51e779732c3 100644
@@ -384,6 +384,7 @@ struct i915_ggtt {
        u32 pin_bias;
 
        struct drm_mm_node error_capture;
+       struct drm_mm_node uc_fw;
 };
 
 struct i915_hw_ppgtt {
drivers/gpu/drm/i915/intel_guc.c +3 -0
index d81a02b0f525..ddd246dc3f14 100644
@@ -721,3 +721,48 @@ u32 intel_guc_reserved_gtt_size(struct intel_guc *guc)
 {
        return guc_to_i915(guc)->wopcm.guc.size;
 }
+
+static u32 __intel_guc_ggtt_top_offset(struct intel_guc *guc)
+{

drivers/gpu/drm/i915/intel_guc.c u32 intel_guc_reserved_gtt_size(struct intel_guc *guc) · line 736

Quoted 10 lines
drivers/gpu/drm/i915/intel_guc.c +10 -0
+       struct drm_i915_private *i915 = guc_to_i915(guc);
+       struct i915_ggtt *ggtt = &i915->ggtt;
+       struct intel_huc *huc = &i915->huc;
+       u32 guc_fw_size, huc_fw_size;
+       u32 min_reserved_size;
+
+       guc_fw_size = round_up(guc->fw.size, I915_GTT_PAGE_SIZE);
+       huc_fw_size = round_up(huc->fw.size, I915_GTT_PAGE_SIZE);
+
+       min_reserved_size = guc_fw_size + huc_fw_size;

In this patch, you should only be using GUC_GGTT_TOP so that the only change is from excluding the zone to using a reserved node.

So why reserve room for both fw? You should only be binding them for the xfer (so that you do not have to insert extraneous code outside of reset).
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

Re: [PATCH v2 2/5] drm/i915/uc: Reserve upper range of GGTT

Quoted 119 lines · Chris Wilson

Quoting Fernando Pacheco (2019-04-19 00:31:48)

Quoted 104 lines

GuC and HuC depend on struct_mutex for device reinitialization. Moving away from this dependency requires perma-pinning the firmware images in GGTT. The upper portion of the GuC address space has a sizeable hole (several MB) that is inaccessible by GuC. Reserve this range within GGTT as it can comfortably hold GuC/HuC firmware images.

v2: Reserve node rather than insert (Chris)
Simpler determination of node start/size (Daniele) Move reserve/release out to intel_guc.* files

---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 25 ++++++++--------
 drivers/gpu/drm/i915/i915_gem_gtt.h |  1 +
 drivers/gpu/drm/i915/intel_guc.c    | 45 +++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_guc.h    |  2 ++
 4 files changed, 60 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +12 -13
index 8f460cc4cc1f..0b4c22e68574 100644
@@ -2752,6 +2752,12 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
        if (ret)
                return ret;
 
+       if (USES_GUC(dev_priv)) {
+               ret = intel_guc_reserve_ggtt_top(&dev_priv->guc);
+               if (ret)
+                       goto err_reserve;
+       }
+
        /* Clear any non-preallocated blocks */
        drm_mm_for_each_hole(entry, &ggtt->vm.mm, hole_start, hole_end) {
                DRM_DEBUG_KMS("clearing unused GTT space: [%lx, %lx]\n",
@@ -2766,12 +2772,14 @@ int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
        if (INTEL_PPGTT(dev_priv) == INTEL_PPGTT_ALIASING) {
                ret = i915_gem_init_aliasing_ppgtt(dev_priv);
                if (ret)
-                       goto err;
+                       goto err_appgtt;
        }
 
        return 0;
 
-err:
+err_appgtt:
+       intel_guc_release_ggtt_top(&dev_priv->guc);
+err_reserve:
        drm_mm_remove_node(&ggtt->error_capture);
        return ret;
 }
@@ -2797,6 +2805,8 @@ void i915_ggtt_cleanup_hw(struct drm_i915_private *dev_priv)
        if (drm_mm_node_allocated(&ggtt->error_capture))
                drm_mm_remove_node(&ggtt->error_capture);
 
+       intel_guc_release_ggtt_top(&dev_priv->guc);
+
        if (drm_mm_initialized(&ggtt->vm.mm)) {
                intel_vgt_deballoon(dev_priv);
                i915_address_space_fini(&ggtt->vm);
@@ -3369,17 +3379,6 @@ int i915_ggtt_probe_hw(struct drm_i915_private *dev_priv)
        if (ret)
                return ret;
 
-       /* Trim the GGTT to fit the GuC mappable upper range (when enabled).
-        * This is easier than doing range restriction on the fly, as we
-        * currently don't have any bits spare to pass in this upper
-        * restriction!
-        */
-       if (USES_GUC(dev_priv)) {
-               ggtt->vm.total = min_t(u64, ggtt->vm.total, GUC_GGTT_TOP);
-               ggtt->mappable_end =
-                       min_t(u64, ggtt->mappable_end, ggtt->vm.total);
-       }
-
        if ((ggtt->vm.total - 1) >> 32) {
                DRM_ERROR("We never expected a Global GTT with more than 32bits"
                          " of address space! Found %lldM!\n",
drivers/gpu/drm/i915/i915_gem_gtt.h +1 -0
index f597f35b109b..b51e779732c3 100644
@@ -384,6 +384,7 @@ struct i915_ggtt {
        u32 pin_bias;
 
        struct drm_mm_node error_capture;
+       struct drm_mm_node uc_fw;
 };
 
 struct i915_hw_ppgtt {
drivers/gpu/drm/i915/intel_guc.c +3 -0
index d81a02b0f525..ddd246dc3f14 100644
@@ -721,3 +721,48 @@ u32 intel_guc_reserved_gtt_size(struct intel_guc *guc)
 {
        return guc_to_i915(guc)->wopcm.guc.size;
 }
+
+static u32 __intel_guc_ggtt_top_offset(struct intel_guc *guc)
+{

drivers/gpu/drm/i915/intel_guc.c u32 intel_guc_reserved_gtt_size(struct intel_guc *guc) · line 736

Quoted 10 lines
drivers/gpu/drm/i915/intel_guc.c +10 -0
+       struct drm_i915_private *i915 = guc_to_i915(guc);
+       struct i915_ggtt *ggtt = &i915->ggtt;
+       struct intel_huc *huc = &i915->huc;
+       u32 guc_fw_size, huc_fw_size;
+       u32 min_reserved_size;
+
+       guc_fw_size = round_up(guc->fw.size, I915_GTT_PAGE_SIZE);
+       huc_fw_size = round_up(huc->fw.size, I915_GTT_PAGE_SIZE);
+
+       min_reserved_size = guc_fw_size + huc_fw_size;

In this patch, you should only be using GUC_GGTT_TOP so that the only change is from excluding the zone to using a reserved node.

Quoted 3 lines

So why reserve room for both fw? You should only be binding them for the xfer (so that you do not have to insert extraneous code outside of reset).

Sorry. It took a while to understand the larger point you were making in the first version of these patches. You're right. If I only bind them for the transfer then there is no need to reserve room for both.

It is unlikely, but should there be a check in case GUC_GGTT_TOP exceeds vm.total and adjust the start accordingly? Or should we let this bail? GEM_BUG_ON?

Thanks,
Fernando

Quoted 1 line

-Chris

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

#5 lore raw

Re: [PATCH v2 2/5] drm/i915/uc: Reserve upper range of GGTT

Quoting Fernando Pacheco (2019-04-19 18:14:21)

Quoted 13 lines · Chris Wilson
Quoted 11 lines

Quoting Fernando Pacheco (2019-04-19 00:31:48)

Quoted 10 lines
drivers/gpu/drm/i915/i915_gem_gtt.c +0 -10
-       /* Trim the GGTT to fit the GuC mappable upper range (when enabled).
-        * This is easier than doing range restriction on the fly, as we
-        * currently don't have any bits spare to pass in this upper
-        * restriction!
-        */
-       if (USES_GUC(dev_priv)) {
-               ggtt->vm.total = min_t(u64, ggtt->vm.total, GUC_GGTT_TOP);
-               ggtt->mappable_end =
-                       min_t(u64, ggtt->mappable_end, ggtt->vm.total);
-       }

[snip

Quoted 2 lines

It is unlikely, but should there be a check in case GUC_GGTT_TOP exceeds vm.total and adjust the start accordingly? Or should we let this bail? GEM_BUG_ON?

If GUC_GGTT_TOP is outside the range of vm.total, that should give us a bogus address for the drm_mm_reserve_node, and that should fail. That seems reasonable, if we can't support the guc with the current GGTT setup we probably do want to bail and get it fixed (as something would be very wrong with the GGTT probe, one presumes).
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#6 lore raw

PATCH v2 3/5 drm/i915/uc: Place uC firmware in upper range of GGTT

In reply to Fernando Pacheco

Currently we pin the GuC or HuC firmware image just before uploading. Perma-pin during uC initialization instead and use the range reserved at the top of the address space.

Moving the firmware resulted in needing to:
- restore the ggtt mapping during the suspend/resume path.
- use an additional pinning for the rsa signature which will be used during HuC auth as addresses above GUC_GGTT_TOP do not map through GTT.

v2: Remove call to set to gtt domain
Do not restore fw gtt mapping unconditionally Separate out pin/unpin functions and drop usage of pin/unpin Use uc_fw init/fini functions to bind/unbind fw object

---
 drivers/gpu/drm/i915/i915_gem.c     |   2 +
 drivers/gpu/drm/i915/intel_guc.c    |   9 ++-
 drivers/gpu/drm/i915/intel_guc_fw.c |  18 +++--
 drivers/gpu/drm/i915/intel_huc.c    |  74 +++++++++++++----
 drivers/gpu/drm/i915/intel_huc.h    |   4 +
 drivers/gpu/drm/i915/intel_huc_fw.c |  47 ++++++++---
 drivers/gpu/drm/i915/intel_uc.c     |  39 ++++++++-
 drivers/gpu/drm/i915/intel_uc.h     |   1 +
 drivers/gpu/drm/i915/intel_uc_fw.c  | 118 +++++++++++++++++++++-------
 drivers/gpu/drm/i915/intel_uc_fw.h  |   9 ++-
 10 files changed, 247 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -0
index e5462639de0b..0e06a2c7d65f 100644
@@ -4508,6 +4508,8 @@ void i915_gem_resume(struct drm_i915_private *i915)
 	i915_gem_restore_gtt_mappings(i915);
 	i915_gem_restore_fences(i915);
 
+	intel_uc_restore_ggtt_mapping(i915);
+
 	/*
 	 * As we didn't flush the kernel context before suspend, we cannot
 	 * guarantee that the context image is complete. So let's just reset
drivers/gpu/drm/i915/intel_guc.c +8 -1
index ddd246dc3f14..5f3db102c914 100644
@@ -189,9 +189,13 @@ int intel_guc_init(struct intel_guc *guc)
 	struct drm_i915_private *dev_priv = guc_to_i915(guc);
 	int ret;
 
-	ret = guc_shared_data_create(guc);
+	ret = intel_uc_fw_init(&guc->fw);
 	if (ret)
 		goto err_fetch;
+
+	ret = guc_shared_data_create(guc);
+	if (ret)
+		goto err_fw;
 	GEM_BUG_ON(!guc->shared_data);
 
 	ret = intel_guc_log_create(&guc->log);
@@ -220,6 +224,8 @@ int intel_guc_init(struct intel_guc *guc)
 	intel_guc_log_destroy(&guc->log);
 err_shared:
 	guc_shared_data_destroy(guc);
+err_fw:
+	intel_uc_fw_fini(&guc->fw);
 err_fetch:
 	intel_uc_fw_cleanup_fetch(&guc->fw);
 	return ret;
@@ -237,6 +243,7 @@ void intel_guc_fini(struct intel_guc *guc)
 	intel_guc_ads_destroy(guc);
 	intel_guc_log_destroy(&guc->log);
 	guc_shared_data_destroy(guc);
+	intel_uc_fw_fini(&guc->fw);
 	intel_uc_fw_cleanup_fetch(&guc->fw);
 }
 
drivers/gpu/drm/i915/intel_guc_fw.c +10 -8
index 4385d9ef02bb..8b2dcc70b956 100644
@@ -122,14 +122,16 @@ static void guc_prepare_xfer(struct intel_guc *guc)
 }
 
 /* Copy RSA signature from the fw image to HW for verification */
-static void guc_xfer_rsa(struct intel_guc *guc, struct i915_vma *vma)
+static void guc_xfer_rsa(struct intel_guc *guc)
 {
 	struct drm_i915_private *dev_priv = guc_to_i915(guc);
+	struct intel_uc_fw *fw = &guc->fw;
+	struct sg_table *pages = fw->obj->mm.pages;
 	u32 rsa[UOS_RSA_SCRATCH_COUNT];
 	int i;
 
-	sg_pcopy_to_buffer(vma->pages->sgl, vma->pages->nents,
-			   rsa, sizeof(rsa), guc->fw.rsa_offset);
+	sg_pcopy_to_buffer(pages->sgl, pages->nents,
+			   rsa, sizeof(rsa), fw->rsa_offset);
 
 	for (i = 0; i < UOS_RSA_SCRATCH_COUNT; i++)
 		I915_WRITE(UOS_RSA_SCRATCH(i), rsa[i]);
@@ -201,7 +203,7 @@ static int guc_wait_ucode(struct intel_guc *guc)
  * transfer between GTT locations. This functionality is left out of the API
  * for now as there is no need for it.
  */
-static int guc_xfer_ucode(struct intel_guc *guc, struct i915_vma *vma)
+static int guc_xfer_ucode(struct intel_guc *guc)
 {
 	struct drm_i915_private *dev_priv = guc_to_i915(guc);
 	struct intel_uc_fw *guc_fw = &guc->fw;
@@ -214,7 +216,7 @@ static int guc_xfer_ucode(struct intel_guc *guc, struct i915_vma *vma)
 	I915_WRITE(DMA_COPY_SIZE, guc_fw->header_size + guc_fw->ucode_size);
 
 	/* Set the source address for the new blob */
-	offset = intel_guc_ggtt_offset(guc, vma) + guc_fw->header_offset;
+	offset = intel_uc_fw_ggtt_offset(guc_fw) + guc_fw->header_offset;
 	I915_WRITE(DMA_ADDR_0_LOW, lower_32_bits(offset));
 	I915_WRITE(DMA_ADDR_0_HIGH, upper_32_bits(offset) & 0xFFFF);
 
@@ -233,7 +235,7 @@ static int guc_xfer_ucode(struct intel_guc *guc, struct i915_vma *vma)
 /*
  * Load the GuC firmware blob into the MinuteIA.
  */
-static int guc_fw_xfer(struct intel_uc_fw *guc_fw, struct i915_vma *vma)
+static int guc_fw_xfer(struct intel_uc_fw *guc_fw)
 {
 	struct intel_guc *guc = container_of(guc_fw, struct intel_guc, fw);
 	struct drm_i915_private *dev_priv = guc_to_i915(guc);
@@ -250,9 +252,9 @@ static int guc_fw_xfer(struct intel_uc_fw *guc_fw, struct i915_vma *vma)
 	 * by the DMA engine in one operation, whereas the RSA signature is
 	 * loaded via MMIO.
 	 */
-	guc_xfer_rsa(guc, vma);
+	guc_xfer_rsa(guc);
 
-	ret = guc_xfer_ucode(guc, vma);
+	ret = guc_xfer_ucode(guc);
 
 	intel_uncore_forcewake_put(&dev_priv->uncore, FORCEWAKE_ALL);
 
drivers/gpu/drm/i915/intel_huc.c +58 -16

105 lines not on this page · raw message

drivers/gpu/drm/i915/intel_huc.h +4 -0
index ce129e301961..a0c21ae02a99 100644
@@ -33,10 +33,14 @@ struct intel_huc {
 	struct intel_uc_fw fw;
 
 	/* HuC-specific additions */
+	struct i915_vma *rsa_data;
+	void *rsa_data_vaddr;
 };
 
 void intel_huc_init_early(struct intel_huc *huc);
 int intel_huc_init_misc(struct intel_huc *huc);
+int intel_huc_init(struct intel_huc *huc);
+void intel_huc_fini(struct intel_huc *huc);
 int intel_huc_auth(struct intel_huc *huc);
 int intel_huc_check_status(struct intel_huc *huc);
 
drivers/gpu/drm/i915/intel_huc_fw.c +35 -12

66 lines not on this page · raw message

drivers/gpu/drm/i915/intel_uc.c +35 -4
index 25b80ffe71ad..ff4452ded41e 100644
@@ -280,6 +280,7 @@ void intel_uc_fini_misc(struct drm_i915_private *i915)
 int intel_uc_init(struct drm_i915_private *i915)
 {
 	struct intel_guc *guc = &i915->guc;
+	struct intel_huc *huc = &i915->huc;
 	int ret;
 
 	if (!USES_GUC(i915))
@@ -292,19 +293,30 @@ int intel_uc_init(struct drm_i915_private *i915)
 	if (ret)
 		return ret;
 
+	if (USES_HUC(i915)) {
+		ret = intel_huc_init(huc);
+		if (ret)
+			goto err_guc;
+	}
+
 	if (USES_GUC_SUBMISSION(i915)) {
 		/*
 		 * This is stuff we need to have available at fw load time
 		 * if we are planning to enable submission later
 		 */
 		ret = intel_guc_submission_init(guc);
-		if (ret) {
-			intel_guc_fini(guc);
-			return ret;
-		}
+		if (ret)
+			goto err_huc;
 	}
 
 	return 0;
+
+err_huc:
+	if (USES_HUC(i915))
+		intel_huc_fini(huc);
+err_guc:
+	intel_guc_fini(guc);
+	return ret;
 }
 
 void intel_uc_fini(struct drm_i915_private *i915)
@@ -319,6 +331,9 @@ void intel_uc_fini(struct drm_i915_private *i915)
 	if (USES_GUC_SUBMISSION(i915))
 		intel_guc_submission_fini(guc);
 
+	if (USES_HUC(i915))
+		intel_huc_fini(&i915->huc);
+
 	intel_guc_fini(guc);
 }
 
@@ -488,6 +503,22 @@ int intel_uc_suspend(struct drm_i915_private *i915)
 	return 0;
 }
 
+void intel_uc_restore_ggtt_mapping(struct drm_i915_private *i915)
+{
+	struct intel_guc *guc = &i915->guc;
+
+	if (!USES_GUC(i915))
+		return;
+
+	intel_uc_fw_ggtt_bind(&guc->fw);
+
+	if (USES_HUC(i915)) {
+		struct intel_huc *huc = &i915->huc;
+
+		intel_uc_fw_ggtt_bind(&huc->fw);
+	}
+}
+
 int intel_uc_resume(struct drm_i915_private *i915)
 {
 	struct intel_guc *guc = &i915->guc;
drivers/gpu/drm/i915/intel_uc.h +1 -0
index c14729786652..e7e2e871700e 100644
@@ -40,6 +40,7 @@ int intel_uc_init(struct drm_i915_private *dev_priv);
 void intel_uc_fini(struct drm_i915_private *dev_priv);
 void intel_uc_reset_prepare(struct drm_i915_private *i915);
 int intel_uc_suspend(struct drm_i915_private *dev_priv);
+void intel_uc_restore_ggtt_mapping(struct drm_i915_private *i915);
 int intel_uc_resume(struct drm_i915_private *dev_priv);
 
 static inline bool intel_uc_is_using_guc(struct drm_i915_private *i915)
drivers/gpu/drm/i915/intel_uc_fw.c +88 -30

138 lines not on this page · raw message

drivers/gpu/drm/i915/intel_uc_fw.h +6 -3
index e6fa8599757c..8678c33ec8cd 100644
@@ -27,7 +27,6 @@
 
 struct drm_printer;
 struct drm_i915_private;
-struct i915_vma;
 
 /* Home of GuC, HuC and DMC firmwares */
 #define INTEL_UC_FIRMWARE_URL "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915"
@@ -147,8 +146,12 @@ void intel_uc_fw_fetch(struct drm_i915_private *dev_priv,
 		       struct intel_uc_fw *uc_fw);
 void intel_uc_fw_cleanup_fetch(struct intel_uc_fw *uc_fw);
 int intel_uc_fw_upload(struct intel_uc_fw *uc_fw,
-		       int (*xfer)(struct intel_uc_fw *uc_fw,
-				   struct i915_vma *vma));
+		       int (*xfer)(struct intel_uc_fw *uc_fw));
+int intel_uc_fw_init(struct intel_uc_fw *uc_fw);
+void intel_uc_fw_fini(struct intel_uc_fw *uc_fw);
+u32 intel_uc_fw_ggtt_offset(struct intel_uc_fw *uc_fw);
+void intel_uc_fw_ggtt_bind(struct intel_uc_fw *uc_fw);
+void intel_uc_fw_ggtt_unbind(struct intel_uc_fw *uc_fw);
 void intel_uc_fw_dump(const struct intel_uc_fw *uc_fw, struct drm_printer *p);
 
 #endif
Signature · 6 lines
2.21.0

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

Re: [PATCH v2 3/5] drm/i915/uc: Place uC firmware in upper range of GGTT

Quoting Fernando Pacheco (2019-04-19 00:31:49)

Quoted 35 lines

Currently we pin the GuC or HuC firmware image just before uploading. Perma-pin during uC initialization instead and use the range reserved at the top of the address space.

Moving the firmware resulted in needing to:
- restore the ggtt mapping during the suspend/resume path.
- use an additional pinning for the rsa signature which will be used during HuC auth as addresses above GUC_GGTT_TOP do not map through GTT.

v2: Remove call to set to gtt domain
Do not restore fw gtt mapping unconditionally Separate out pin/unpin functions and drop usage of pin/unpin Use uc_fw init/fini functions to bind/unbind fw object

---
 drivers/gpu/drm/i915/i915_gem.c     |   2 +
 drivers/gpu/drm/i915/intel_guc.c    |   9 ++-
 drivers/gpu/drm/i915/intel_guc_fw.c |  18 +++--
 drivers/gpu/drm/i915/intel_huc.c    |  74 +++++++++++++----
 drivers/gpu/drm/i915/intel_huc.h    |   4 +
 drivers/gpu/drm/i915/intel_huc_fw.c |  47 ++++++++---
 drivers/gpu/drm/i915/intel_uc.c     |  39 ++++++++-
 drivers/gpu/drm/i915/intel_uc.h     |   1 +
 drivers/gpu/drm/i915/intel_uc_fw.c  | 118 +++++++++++++++++++++-------
 drivers/gpu/drm/i915/intel_uc_fw.h  |   9 ++-
 10 files changed, 247 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +0 -0
index e5462639de0b..0e06a2c7d65f 100644

drivers/gpu/drm/i915/i915_gem.c void i915_gem_resume(struct drm_i915_private *i915) · line 4511

Quoted 4 lines
drivers/gpu/drm/i915/i915_gem.c +1 -0
@@ -4508,6 +4508,8 @@ void i915_gem_resume(struct drm_i915_private *i915)
        i915_gem_restore_gtt_mappings(i915);
        i915_gem_restore_fences(i915);
 
+       intel_uc_restore_ggtt_mapping(i915);

Nope. They do not need to be restored as the bindings are only required for the xfer.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw

PATCH v2 4/5 Revert "drm/i915/guc: Disable global reset"

In reply to Fernando Pacheco

This reverts commit fe62365f9f80a1c1d438c54fba21f5108a182de8.

---
 drivers/gpu/drm/i915/i915_reset.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/i915/i915_reset.c +0 -3
index 677d59304e78..1092d16c289c 100644
@@ -641,9 +641,6 @@ int intel_gpu_reset(struct drm_i915_private *i915,
 
 bool intel_has_gpu_reset(struct drm_i915_private *i915)
 {
-	if (USES_GUC(i915))
-		return false;
-
 	if (!i915_modparams.reset)
 		return NULL;
 
Signature · 6 lines
2.21.0

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

PATCH v2 5/5 drm/i915/selftests: Check that gpu reset is usable from atomic context

In reply to Fernando Pacheco

GPU reset is now available with GuC enabled,
so re-enable our check that this reset is usable
from atomic context.

---
 drivers/gpu/drm/i915/selftests/intel_hangcheck.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/selftests/intel_hangcheck.c +3 -3
index 050bd1e19e02..2fd33aad8683 100644
@@ -1814,9 +1814,6 @@ static int igt_atomic_reset(void *arg)
 
 	/* Check that the resets are usable from atomic context */
 
-	if (USES_GUC_SUBMISSION(i915))
-		return 0; /* guc is dead; long live the guc */
-
 	igt_global_reset_lock(i915);
 	mutex_lock(&i915->drm.struct_mutex);
 	wakeref = intel_runtime_pm_get(i915);
@@ -1846,6 +1843,9 @@ static int igt_atomic_reset(void *arg)
 		force_reset(i915);
 	}
 
+	if (USES_GUC_SUBMISSION(i915))
+		goto unlock;
+
 	if (intel_has_reset_engine(i915)) {
 		struct intel_engine_cs *engine;
 		enum intel_engine_id id;
Signature · 6 lines
2.21.0

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

✗ Fi.CI.SPARSE: warning for Perma-pin uC firmware and re-enable global reset (rev2)

In reply to Fernando Pacheco
== Series Details ==

== Series Details ==

Series: Perma-pin uC firmware and re-enable global reset (rev2)
URL : https://patchwork.freedesktop.org/series/59255/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Sparse version: v0.5.2
Commit: drm/i915/uc: Rename uC firmware init/fini functions
Okay!

Commit: drm/i915/uc: Reserve upper range of GGTT -O:drivers/gpu/drm/i915/i915_gem_gtt.c:3378:34: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/i915_gem_gtt.c:3380:25: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/i915_gem_gtt.c:3380:25: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_guc.c:738:16: warning: expression using sizeof(void)

Commit: drm/i915/uc: Place uC firmware in upper range of GGTT Okay!

Commit: Revert "drm/i915/guc: Disable global reset" Okay!

Commit: drm/i915/selftests: Check that gpu reset is usable from atomic context Okay!

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

#11 lore raw
In reply to Fernando Pacheco
Quoted 10 lines · Fernando Pacheco

The intent is to move the GuC and HuC firmware images to the top of the address space. This portion is inaccessible during normal GuC operations and should be relatively safe to house both firmware images. By making the move we can re-enable the full gpu reset with GuC enabled.

Placing the firmware images above GUC_GGTT_TOP was discussed previously here:

	https://patchwork.freedesktop.org/patch/273616/
Quoted 7 lines

v2:
The decision to rename both the uc_fw init and fini functions made it easier to pull the bind/unbind operations out of intel_guc_fw.* and intel_huc_fw.*. The bind/unbind will now take place within the newly repurposed intel_uc_fw_init/fini. All other changes should be called out in their respective patches and should be the direct result of a review comment.

Chris, I didn't address two of your earlier review comments, so I'll try to do so here:

1. You are correct about the inline function in the first patch, but I felt that could be fixed separate from this series.
2. Your comment on not needing to pin the fw pages made sense to me, but I found that the explicit pin/unpin was necessary for the binding. Please let me know if I'm missing something here!

Thanks,
Fernando

Quoted 11 lines
Cc Chris Wilson <[email protected]>
Cc Daniele Ceraolo Spurio <[email protected]>

Fernando Pacheco (5):
drm/i915/uc: Rename uC firmware init/fini functions drm/i915/uc: Reserve upper range of GGTT
drm/i915/uc: Place uC firmware in upper range of GGTT Revert "drm/i915/guc: Disable global reset" drm/i915/selftests: Check that gpu reset is usable from atomic context

Quoted 17 lines
 drivers/gpu/drm/i915/i915_gem.c               |   2 +
 drivers/gpu/drm/i915/i915_gem_gtt.c           |  25 ++--
 drivers/gpu/drm/i915/i915_gem_gtt.h           |   1 +
 drivers/gpu/drm/i915/i915_reset.c             |   3 -
 drivers/gpu/drm/i915/intel_guc.c              |  58 ++++++++-
 drivers/gpu/drm/i915/intel_guc.h              |   2 +
 drivers/gpu/drm/i915/intel_guc_fw.c           |  20 +--
 drivers/gpu/drm/i915/intel_huc.c              |  74 ++++++++---
 drivers/gpu/drm/i915/intel_huc.h              |   6 +-
 drivers/gpu/drm/i915/intel_huc_fw.c           |  49 +++++--
 drivers/gpu/drm/i915/intel_uc.c               |  39 +++++-
 drivers/gpu/drm/i915/intel_uc.h               |   1 +
 drivers/gpu/drm/i915/intel_uc_fw.c            | 122 +++++++++++++-----
 drivers/gpu/drm/i915/intel_uc_fw.h            |  12 +-
 .../gpu/drm/i915/selftests/intel_hangcheck.c  |   6 +-
 15 files changed, 319 insertions(+), 101 deletions(-)

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

#12 lore raw

✓ Fi.CI.BAT: success for Perma-pin uC firmware and re-enable global reset (rev2)

In reply to Fernando Pacheco
== Series Details ==

== Series Details ==

Series: Perma-pin uC firmware and re-enable global reset (rev2)
URL : https://patchwork.freedesktop.org/series/59255/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5954 -> Patchwork_12838
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/59255/revisions/2/mbox/

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

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

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109315] +17

* igt@gem_exec_basic@readonly-bsd1:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109276] +3

* igt@gem_exec_parse@basic-allowed:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109289] +1

* igt@i915_module_load@reload:
- fi-blb-e6850: PASS -> INCOMPLETE [fdo#107718]

* igt@i915_selftest@live_execlists:
- fi-apl-guc: PASS -> INCOMPLETE [fdo#103927] / [fdo#109720]

* igt@kms_chamelium@dp-edid-read:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109316] +2

* igt@kms_chamelium@vga-hpd-fast:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109309] +1

* igt@kms_force_connector_basic@force-edid:
- fi-glk-dsi: NOTRUN -> SKIP [fdo#109271] +26

* igt@kms_force_connector_basic@force-load-detect:
- fi-bxt-j4205: NOTRUN -> SKIP [fdo#109271] +47

* igt@kms_force_connector_basic@prune-stale-modes:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109285] +3

* igt@kms_frontbuffer_tracking@basic:
- fi-glk-dsi: NOTRUN -> FAIL [fdo#103167]

* igt@runner@aborted:
- fi-apl-guc: NOTRUN -> FAIL [fdo#108622] / [fdo#109720]

#### Possible fixes ####

* igt@gem_exec_basic@readonly-bsd:
- fi-icl-u2: INCOMPLETE [fdo#107713] -> PASS

* igt@i915_hangman@error-state-basic:

    - fi-kbl-guc:         SKIP [fdo#109271] -> PASS
    - fi-apl-guc:         SKIP [fdo#109271] -> PASS +1
    - fi-cfl-guc:         SKIP [fdo#109271] -> PASS +1

* igt@kms_cursor_legacy@basic-flip-after-cursor-varying-size:
- fi-glk-dsi: INCOMPLETE [fdo#103359] / [k.org#198133] -> PASS

* igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
- fi-skl-guc: SKIP [fdo#109271] -> PASS +1

* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a:
- fi-byt-clapper: FAIL [fdo#103191] -> PASS

[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109316]: https://bugs.freedesktop.org/show_bug.cgi?id=109316
[fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133

Participating hosts (48 -> 41)
------------------------------

Additional (1): fi-bxt-j4205
Missing (8): fi-ilk-m540 fi-bsw-cyan fi-ctg-p8600 fi-gdg-551 fi-pnv-d510 fi-icl-y fi-bsw-kefka fi-bdw-samus

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

* Linux: CI_DRM_5954 -> Patchwork_12838

CI_DRM_5954: a77e0dc060fcd1a2a09412067097685c5101589c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4957: a765aa108105804c19096554447ad0cb71f64fc3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12838: d6ac18531d37086d90ca6f5e66810fdc81b7983a @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

d6ac18531d37 drm/i915/selftests: Check that gpu reset is usable from atomic context c564598dff9e Revert "drm/i915/guc: Disable global reset"
274d7b6582e5 drm/i915/uc: Place uC firmware in upper range of GGTT 895570b36948 drm/i915/uc: Reserve upper range of GGTT
298a5ae553fb drm/i915/uc: Rename uC firmware init/fini functions

== Logs ==

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

#13 lore raw

✓ Fi.CI.IGT: success for Perma-pin uC firmware and re-enable global reset (rev2)

In reply to Fernando Pacheco
== Series Details ==

== Series Details ==

Series: Perma-pin uC firmware and re-enable global reset (rev2)
URL : https://patchwork.freedesktop.org/series/59255/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5954_full -> Patchwork_12838_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_12838_full:

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* {igt@audio@hdmi-integrity}:
- shard-skl: NOTRUN -> FAIL
- shard-apl: NOTRUN -> FAIL

* {igt@audio@hdmi-integrity-after-suspend}:
- shard-glk: TIMEOUT -> FAIL

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_pm_rpm@gem-execbuf-stress:
- shard-skl: PASS -> INCOMPLETE [fdo#107803] / [fdo#107807]

* igt@i915_pm_rpm@i2c:
- shard-iclb: PASS -> DMESG-WARN [fdo#109982]

* igt@kms_atomic_transition@5x-modeset-transitions:
- shard-skl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +10

* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-e:
- shard-apl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2

* igt@kms_chamelium@dp-crc-fast:
- shard-apl: NOTRUN -> SKIP [fdo#109271] +28

* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: PASS -> SKIP [fdo#109349]

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: PASS -> FAIL [fdo#105363]

* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: PASS -> DMESG-WARN [fdo#108566] +3

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-render:
- shard-iclb: PASS -> FAIL [fdo#103167] +3

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +120

* igt@kms_lease@atomic_implicit_crtc:
- shard-snb: NOTRUN -> FAIL [fdo#110279]

* igt@kms_lease@setcrtc_implicit_plane:
- shard-snb: NOTRUN -> FAIL [fdo#110281]

* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-e:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +10

* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-glk: PASS -> SKIP [fdo#109271]

* igt@kms_plane_alpha_blend@pipe-a-alpha-7efc:
- shard-skl: NOTRUN -> FAIL [fdo#108145] +3

* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: NOTRUN -> FAIL [fdo#108145] / [fdo#110403]

* igt@kms_plane_scaling@pipe-b-scaler-with-pixel-format:
- shard-glk: PASS -> SKIP [fdo#109271] / [fdo#109278]

* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: PASS -> SKIP [fdo#109441] +2

* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: PASS -> FAIL [fdo#109016]

* igt@kms_setmode@basic:
- shard-apl: PASS -> FAIL [fdo#99912]

* igt@kms_vrr@flip-suspend:
- shard-skl: NOTRUN -> SKIP [fdo#109271] +123

#### Possible fixes ####

* igt@i915_suspend@fence-restore-untiled:
- shard-apl: DMESG-WARN [fdo#108566] -> PASS +5

* igt@kms_cursor_crc@cursor-256x256-suspend:
- shard-skl: INCOMPLETE [fdo#104108] -> PASS

* igt@kms_cursor_crc@cursor-64x64-suspend:
- shard-kbl: DMESG-WARN [fdo#108566] -> PASS

* igt@kms_flip@plain-flip-fb-recreate:
- shard-skl: FAIL [fdo#100368] -> PASS

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-move:
- shard-iclb: FAIL [fdo#103167] -> PASS +8

* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: FAIL [fdo#108145] -> PASS

* igt@kms_psr2_su@page_flip:
- shard-iclb: SKIP [fdo#109642] -> PASS

* igt@kms_psr@psr2_sprite_render:
- shard-iclb: SKIP [fdo#109441] -> PASS +2

* igt@kms_rotation_crc@multiplane-rotation-cropping-bottom:
- shard-kbl: DMESG-FAIL [fdo#105763] -> PASS

* igt@kms_sysfs_edid_timing:
- shard-iclb: FAIL [fdo#100047] -> PASS

#### Warnings ####

* igt@i915_pm_rpm@modeset-pc8-residency-stress:
- shard-skl: SKIP [fdo#109271] -> INCOMPLETE [fdo#107807]

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

[fdo#100047]: https://bugs.freedesktop.org/show_bug.cgi?id=100047
[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#107803]: https://bugs.freedesktop.org/show_bug.cgi?id=107803
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#109982]: https://bugs.freedesktop.org/show_bug.cgi?id=109982
[fdo#110279]: https://bugs.freedesktop.org/show_bug.cgi?id=110279
[fdo#110281]: https://bugs.freedesktop.org/show_bug.cgi?id=110281
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

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

Missing (1): shard-hsw

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

* Linux: CI_DRM_5954 -> Patchwork_12838

CI_DRM_5954: a77e0dc060fcd1a2a09412067097685c5101589c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4957: a765aa108105804c19096554447ad0cb71f64fc3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12838: d6ac18531d37086d90ca6f5e66810fdc81b7983a @ 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_12838/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx