Skip to contentSkip to conversation

drm/i915/guc: init GuC descriptors after GuC load

PATCH In review Daniele Ceraolo Spurio 4 participants 11 messages Oct 2, 2018 – Oct 4, 2018

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

PATCH v2 1/3 drm/i915/guc: init GuC descriptors after GuC load

GuC stores some data in there, which might be stale after a reset. We already reset the WQ head and tail, but more things are being moved to the descriptor with the interface updates. Instead of trying to track them one by one, always memset and init the descriptors from scratch after GuC is loaded.
The code is also reorganized so that the above operations and the doorbell creation are grouped as "client enabling"

v2: add proc_desc_fini for symmetry (Daniele), remove unneeded var init, add guc_is_alive() (Michal)

---
 drivers/gpu/drm/i915/intel_guc.h            |   5 +
 drivers/gpu/drm/i915/intel_guc_submission.c | 140 +++++++++++---------
 drivers/gpu/drm/i915/intel_uc_fw.h          |   7 +-
 drivers/gpu/drm/i915/selftests/intel_guc.c  |  17 ++-
 4 files changed, 96 insertions(+), 73 deletions(-)
drivers/gpu/drm/i915/intel_guc.h +5 -0
index ad42faf48c46..0f1c4f9ebfd8 100644
@@ -95,6 +95,11 @@ struct intel_guc {
 	void (*notify)(struct intel_guc *guc);
 };
 
+static inline bool intel_guc_is_alive(struct intel_guc *guc)
+{
+	return intel_uc_fw_is_loaded(&guc->fw);
+}
+
 static
 inline int intel_guc_send(struct intel_guc *guc, const u32 *action, u32 len)
 {
drivers/gpu/drm/i915/intel_guc_submission.c +77 -63

211 lines not on this page · raw message

drivers/gpu/drm/i915/intel_uc_fw.h +6 -1
index 87910aa83267..0e3bd580e267 100644
@@ -115,9 +115,14 @@ static inline bool intel_uc_fw_is_selected(struct intel_uc_fw *uc_fw)
 	return uc_fw->path != NULL;
 }
 
+static inline bool intel_uc_fw_is_loaded(struct intel_uc_fw *uc_fw)
+{
+	return uc_fw->load_status == INTEL_UC_FIRMWARE_SUCCESS;
+}
+
 static inline void intel_uc_fw_sanitize(struct intel_uc_fw *uc_fw)
 {
-	if (uc_fw->load_status == INTEL_UC_FIRMWARE_SUCCESS)
+	if (intel_uc_fw_is_loaded(uc_fw))
 		uc_fw->load_status = INTEL_UC_FIRMWARE_PENDING;
 }
 
drivers/gpu/drm/i915/selftests/intel_guc.c +8 -9
index 0c0ab82b6228..bf27162fb327 100644
@@ -159,6 +159,7 @@ static int igt_guc_clients(void *args)
 	 * Get rid of clients created during driver load because the test will
 	 * recreate them.
 	 */
+	guc_clients_disable(guc);
 	guc_clients_destroy(guc);
 	if (guc->execbuf_client || guc->preempt_client) {
 		pr_err("guc_clients_destroy lied!\n");
@@ -197,8 +198,8 @@ static int igt_guc_clients(void *args)
 		goto out;
 	}
 
-	/* Now create the doorbells */
-	guc_clients_doorbell_init(guc);
+	/* Now enable the clients */
+	guc_clients_enable(guc);
 
 	/* each client should now have received a doorbell */
 	if (!client_doorbell_in_sync(guc->execbuf_client) ||
@@ -212,7 +213,7 @@ static int igt_guc_clients(void *args)
 	 * Basic test - an attempt to reallocate a valid doorbell to the
 	 * client it is currently assigned should not cause a failure.
 	 */
-	err = guc_clients_doorbell_init(guc);
+	err = create_doorbell(guc->execbuf_client);
 	if (err)
 		goto out;
 
@@ -263,12 +264,10 @@ static int igt_guc_clients(void *args)
 	 * Leave clean state for other test, plus the driver always destroy the
 	 * clients during unload.
 	 */
-	destroy_doorbell(guc->execbuf_client);
-	if (guc->preempt_client)
-		destroy_doorbell(guc->preempt_client);
+	guc_clients_disable(guc);
 	guc_clients_destroy(guc);
 	guc_clients_create(guc);
-	guc_clients_doorbell_init(guc);
+	guc_clients_enable(guc);
 unlock:
 	intel_runtime_pm_put(dev_priv);
 	mutex_unlock(&dev_priv->drm.struct_mutex);
@@ -352,7 +351,7 @@ static int igt_guc_doorbells(void *arg)
 
 		db_id = clients[i]->doorbell_id;
 
-		err = create_doorbell(clients[i]);
+		err = __guc_client_enable(clients[i]);
 		if (err) {
 			pr_err("[%d] Failed to create a doorbell\n", i);
 			goto out;
@@ -378,7 +377,7 @@ static int igt_guc_doorbells(void *arg)
 out:
 	for (i = 0; i < ATTEMPTS; i++)
 		if (!IS_ERR_OR_NULL(clients[i])) {
-			destroy_doorbell(clients[i]);
+			__guc_client_disable(clients[i]);
 			guc_client_free(clients[i]);
 		}
 unlock:
Signature · 6 lines
2.19.0

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

PATCH v2 2/3 drm/i915/guc: Don't clear the cookie on doorbell destroy

If the HW has not processed the db invalidation request yet, clearing the cookie can generate a db ring. We clear the cookie when we (re-)allocate the doorbell so no need to do it on destroy as well as no one is going to look at it while the doorbell is inactive

v2: fix typo in patch title (Michal)

---
 drivers/gpu/drm/i915/intel_guc_submission.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/intel_guc_submission.c +0 -1
index aa4d6bbdd1e9..eae668442ebe 100644
@@ -209,7 +209,6 @@ static void __destroy_doorbell(struct intel_guc_client *client)
 
 	doorbell = __get_doorbell(client);
 	doorbell->db_status = GUC_DOORBELL_DISABLED;
-	doorbell->cookie = 0;
 
 	/* Doorbell release flow requires that we wait for GEN8_DRB_VALID bit
 	 * to go to zero after updating db_status before we call the GuC to
Signature · 6 lines
2.19.0

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

PATCH v2 3/3 HAX enable GuC for CI

In reply to Daniele Ceraolo Spurio

From: Michal Wajdeczko <[email protected]>

---
 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 7e56c516c815..c681537bcb92 100644
@@ -45,7 +45,7 @@ struct drm_printer;
 	param(int, disable_power_well, -1) \
 	param(int, enable_ips, 1) \
 	param(int, invert_brightness, 0) \
-	param(int, enable_guc, 0) \
+	param(int, enable_guc, -1) \
 	param(int, guc_log_level, -1) \
 	param(char *, guc_firmware_path, NULL) \
 	param(char *, huc_firmware_path, NULL) \
Signature · 6 lines
2.19.0

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

✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

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

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
9830698b9d34 drm/i915/guc: init GuC descriptors after GuC load
82f033d0174e drm/i915/guc: Don't clear the cookie on doorbell destroy
5007c8c7c5a8 HAX enable GuC for CI
-:7: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one

total: 0 errors, 1 warnings, 0 checks, 8 lines checked

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

#4 lore raw

✗ Fi.CI.BAT: failure for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

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

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4915 -> Patchwork_10331 =

== Summary - FAILURE ==

Serious unknown changes coming with Patchwork_10331 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_10331, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/50464/revisions/1/mbox/

== Possible new issues ==

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

=== IGT changes ===

    ==== Possible regressions ====

    igt@drv_selftest@live_gem:
      fi-whl-u:           PASS -> INCOMPLETE
      fi-skl-6600u:       PASS -> INCOMPLETE
      fi-kbl-7560u:       PASS -> INCOMPLETE
      fi-cfl-s3:          PASS -> INCOMPLETE
      fi-skl-iommu:       PASS -> INCOMPLETE
      fi-skl-6700k2:      PASS -> INCOMPLETE
      fi-skl-6700hq:      PASS -> INCOMPLETE
      fi-cfl-8109u:       PASS -> INCOMPLETE
      fi-kbl-7500u:       PASS -> INCOMPLETE
      fi-cfl-8700k:       PASS -> INCOMPLETE
      fi-skl-6770hq:      PASS -> INCOMPLETE
      fi-kbl-7567u:       PASS -> INCOMPLETE
      fi-kbl-x1275:       PASS -> INCOMPLETE
      fi-kbl-8809g:       PASS -> INCOMPLETE
      fi-kbl-r:           PASS -> INCOMPLETE

    
    ==== Warnings ====

    igt@drv_selftest@live_guc:
      fi-glk-j4005:       SKIP -> PASS

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_module_reload@basic-reload:
      fi-glk-j4005:       PASS -> DMESG-WARN (fdo#106248, fdo#106725)

    igt@drv_selftest@live_gem:
      fi-bxt-dsi:         PASS -> INCOMPLETE (fdo#103927)
      fi-skl-gvtdvm:      PASS -> INCOMPLETE (fdo#105600)
      fi-bxt-j4205:       PASS -> INCOMPLETE (fdo#103927)

    igt@kms_flip@basic-flip-vs-wf_vblank:
      fi-glk-j4005:       PASS -> FAIL (fdo#103928)

    
    ==== Possible fixes ====

    igt@drv_selftest@live_coherency:
      fi-gdg-551:         DMESG-FAIL (fdo#107164) -> PASS

    igt@drv_selftest@live_execlists:
      fi-glk-j4005:       INCOMPLETE (k.org#198133, fdo#103359) -> PASS

    igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
      fi-byt-clapper:     FAIL (fdo#107362, fdo#103191) -> PASS

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
      fi-skl-guc:         FAIL (fdo#103191) -> PASS

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#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
fdo#105600 https://bugs.freedesktop.org/show_bug.cgi?id=105600
fdo#106248 https://bugs.freedesktop.org/show_bug.cgi?id=106248
fdo#106725 https://bugs.freedesktop.org/show_bug.cgi?id=106725
fdo#107164 https://bugs.freedesktop.org/show_bug.cgi?id=107164
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133

== Participating hosts (46 -> 42) ==

Missing (4): fi-bsw-cyan fi-byt-squawks fi-icl-u2 fi-skl-6260u

== Build changes ==

* Linux: CI_DRM_4915 -> Patchwork_10331

CI_DRM_4915: 26e7a7d954a9c28b97af8ca7813f430fd9117232 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4660: d0975646c50568e66e65b44b81d28232d059b94e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10331: 5007c8c7c5a8b91022f2bf31c3ae02d941d40e04 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

5007c8c7c5a8 HAX enable GuC for CI
82f033d0174e drm/i915/guc: Don't clear the cookie on doorbell destroy 9830698b9d34 drm/i915/guc: init GuC descriptors after GuC load

== Logs ==

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

#5 lore raw

Re: ✗ Fi.CI.BAT: failure for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

Quoted 37 lines · Patchwork

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4915 -> Patchwork_10331 =

== Summary - FAILURE ==

Serious unknown changes coming with Patchwork_10331 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_10331, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

   External URL: https://patchwork.freedesktop.org/api/1.0/series/50464/revisions/1/mbox/

== Possible new issues ==

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

   === IGT changes ===

     ==== Possible regressions ====

     igt@drv_selftest@live_gem:
       fi-whl-u:           PASS -> INCOMPLETE
       fi-skl-6600u:       PASS -> INCOMPLETE
       fi-kbl-7560u:       PASS -> INCOMPLETE
       fi-cfl-s3:          PASS -> INCOMPLETE
       fi-skl-iommu:       PASS -> INCOMPLETE
       fi-skl-6700k2:      PASS -> INCOMPLETE
       fi-skl-6700hq:      PASS -> INCOMPLETE
Quoted 9 lines
       fi-cfl-8109u:       PASS -> INCOMPLETE
       fi-kbl-7500u:       PASS -> INCOMPLETE
       fi-cfl-8700k:       PASS -> INCOMPLETE
       fi-skl-6770hq:      PASS -> INCOMPLETE
       fi-kbl-7567u:       PASS -> INCOMPLETE
       fi-kbl-x1275:       PASS -> INCOMPLETE
       fi-kbl-8809g:       PASS -> INCOMPLETE
       fi-kbl-r:           PASS -> INCOMPLETE

Those failures are there even without my patches (see https://patchwork.freedesktop.org/series/40112/). Is there an existing bugzilla? In the meantime, I'll have a look to see if I can find what's causing this.

Daniele

Quoted 70 lines
     
     ==== Warnings ====

     igt@drv_selftest@live_guc:
       fi-glk-j4005:       SKIP -> PASS

== Known issues ==

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

   === IGT changes ===

     ==== Issues hit ====

     igt@drv_module_reload@basic-reload:
       fi-glk-j4005:       PASS -> DMESG-WARN (fdo#106248, fdo#106725)

     igt@drv_selftest@live_gem:
       fi-bxt-dsi:         PASS -> INCOMPLETE (fdo#103927)
       fi-skl-gvtdvm:      PASS -> INCOMPLETE (fdo#105600)
       fi-bxt-j4205:       PASS -> INCOMPLETE (fdo#103927)

     igt@kms_flip@basic-flip-vs-wf_vblank:
       fi-glk-j4005:       PASS -> FAIL (fdo#103928)

     
     ==== Possible fixes ====

     igt@drv_selftest@live_coherency:
       fi-gdg-551:         DMESG-FAIL (fdo#107164) -> PASS

     igt@drv_selftest@live_execlists:
       fi-glk-j4005:       INCOMPLETE (k.org#198133, fdo#103359) -> PASS

     igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
       fi-byt-clapper:     FAIL (fdo#107362, fdo#103191) -> PASS

     igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
       fi-skl-guc:         FAIL (fdo#103191) -> PASS

     
   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#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
   fdo#105600 https://bugs.freedesktop.org/show_bug.cgi?id=105600
   fdo#106248 https://bugs.freedesktop.org/show_bug.cgi?id=106248
   fdo#106725 https://bugs.freedesktop.org/show_bug.cgi?id=106725
   fdo#107164 https://bugs.freedesktop.org/show_bug.cgi?id=107164
   fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
   k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133

== Participating hosts (46 -> 42) ==

   Missing    (4): fi-bsw-cyan fi-byt-squawks fi-icl-u2 fi-skl-6260u

== Build changes ==

* Linux: CI_DRM_4915 -> Patchwork_10331

   CI_DRM_4915: 26e7a7d954a9c28b97af8ca7813f430fd9117232 @ git://anongit.freedesktop.org/gfx-ci/linux
   IGT_4660: d0975646c50568e66e65b44b81d28232d059b94e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
   Patchwork_10331: 5007c8c7c5a8b91022f2bf31c3ae02d941d40e04 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

Quoted 8 lines

5007c8c7c5a8 HAX enable GuC for CI
82f033d0174e drm/i915/guc: Don't clear the cookie on doorbell destroy 9830698b9d34 drm/i915/guc: init GuC descriptors after GuC load

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10331/issues.html

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

#6 lore raw

Re: ✗ Fi.CI.BAT: failure for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

Quoting Daniele Ceraolo Spurio (2018-10-03 01:12:57)

Quoted 50 lines · Patchwork
Quoted 37 lines

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4915 -> Patchwork_10331 =

== Summary - FAILURE ==

Serious unknown changes coming with Patchwork_10331 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_10331, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

   External URL: https://patchwork.freedesktop.org/api/1.0/series/50464/revisions/1/mbox/

== Possible new issues ==

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

   === IGT changes ===

     ==== Possible regressions ====

     igt@drv_selftest@live_gem:
       fi-whl-u:           PASS -> INCOMPLETE
       fi-skl-6600u:       PASS -> INCOMPLETE
       fi-kbl-7560u:       PASS -> INCOMPLETE
       fi-cfl-s3:          PASS -> INCOMPLETE
       fi-skl-iommu:       PASS -> INCOMPLETE
       fi-skl-6700k2:      PASS -> INCOMPLETE
       fi-skl-6700hq:      PASS -> INCOMPLETE
Quoted 9 lines
       fi-cfl-8109u:       PASS -> INCOMPLETE
       fi-kbl-7500u:       PASS -> INCOMPLETE
       fi-cfl-8700k:       PASS -> INCOMPLETE
       fi-skl-6770hq:      PASS -> INCOMPLETE
       fi-kbl-7567u:       PASS -> INCOMPLETE
       fi-kbl-x1275:       PASS -> INCOMPLETE
       fi-kbl-8809g:       PASS -> INCOMPLETE
       fi-kbl-r:           PASS -> INCOMPLETE
Quoted 4 lines

Those failures are there even without my patches (see
https://patchwork.freedesktop.org/series/40112/). Is there an existing bugzilla? In the meantime, I'll have a look to see if I can find what's causing this.

inject_preempt_context() fails when talking to the guc, catastrophe ensues. As shown above it's quite reliable after a fake suspend/resume, but it also happens during normal preemption (the preemption smoketest was added to exercise this issue).
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#7 lore raw

Re: ✗ Fi.CI.BAT: failure for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

Quoted 56 lines · Chris Wilson

Quoting Daniele Ceraolo Spurio (2018-10-03 01:12:57)

Quoted 50 lines · Patchwork
Quoted 37 lines

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4915 -> Patchwork_10331 =

== Summary - FAILURE ==

Serious unknown changes coming with Patchwork_10331 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_10331, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/50464/revisions/1/mbox/

== Possible new issues ==

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

    === IGT changes ===

      ==== Possible regressions ====

      igt@drv_selftest@live_gem:
        fi-whl-u:           PASS -> INCOMPLETE
        fi-skl-6600u:       PASS -> INCOMPLETE
        fi-kbl-7560u:       PASS -> INCOMPLETE
        fi-cfl-s3:          PASS -> INCOMPLETE
        fi-skl-iommu:       PASS -> INCOMPLETE
        fi-skl-6700k2:      PASS -> INCOMPLETE
        fi-skl-6700hq:      PASS -> INCOMPLETE
Quoted 9 lines
        fi-cfl-8109u:       PASS -> INCOMPLETE
        fi-kbl-7500u:       PASS -> INCOMPLETE
        fi-cfl-8700k:       PASS -> INCOMPLETE
        fi-skl-6770hq:      PASS -> INCOMPLETE
        fi-kbl-7567u:       PASS -> INCOMPLETE
        fi-kbl-x1275:       PASS -> INCOMPLETE
        fi-kbl-8809g:       PASS -> INCOMPLETE
        fi-kbl-r:           PASS -> INCOMPLETE
Quoted 4 lines

Those failures are there even without my patches (see
https://patchwork.freedesktop.org/series/40112/). Is there an existing bugzilla? In the meantime, I'll have a look to see if I can find what's causing this.

Quoted 6 lines

inject_preempt_context() fails when talking to the guc, catastrophe ensues. As shown above it's quite reliable after a fake suspend/resume, but it also happens during normal preemption (the preemption smoketest was added to exercise this issue).
-Chris

Do you consider this a blocker to getting the patches merged?

BTW, on my SKL even with the preemption smoketest I didn't see any issue on the tree I based the patches on (from Monday) and I only see issues after:

b16c765122f987056e1dc9ef6c214571bb5bd694 is the first bad commit commit b16c765122f987056e1dc9ef6c214571bb5bd694

Author: Chris Wilson <[email protected]>
Date:   Mon Oct 1 15:47:53 2018 +0100

drm/i915: Priority boost for new clients

However I don't get any error logs out (the machine just dies) so not sure if it is the same issue or not. with that patch and the 2 following related ones reverted I've been running the live selftests in a loop without issues. Is this the bug you mentioned or are those possibly 2 different issues?

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

#8 lore raw

Re: ✗ Fi.CI.BAT: failure for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

Quoting Daniele Ceraolo Spurio (2018-10-03 23:45:02)

Quoted 77 lines · Chris Wilson
Quoted 56 lines

Quoting Daniele Ceraolo Spurio (2018-10-03 01:12:57)

Quoted 50 lines · Patchwork
Quoted 37 lines

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4915 -> Patchwork_10331 =

== Summary - FAILURE ==

Serious unknown changes coming with Patchwork_10331 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_10331, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/50464/revisions/1/mbox/

== Possible new issues ==

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

    === IGT changes ===

      ==== Possible regressions ====

      igt@drv_selftest@live_gem:
        fi-whl-u:           PASS -> INCOMPLETE
        fi-skl-6600u:       PASS -> INCOMPLETE
        fi-kbl-7560u:       PASS -> INCOMPLETE
        fi-cfl-s3:          PASS -> INCOMPLETE
        fi-skl-iommu:       PASS -> INCOMPLETE
        fi-skl-6700k2:      PASS -> INCOMPLETE
        fi-skl-6700hq:      PASS -> INCOMPLETE
Quoted 9 lines
        fi-cfl-8109u:       PASS -> INCOMPLETE
        fi-kbl-7500u:       PASS -> INCOMPLETE
        fi-cfl-8700k:       PASS -> INCOMPLETE
        fi-skl-6770hq:      PASS -> INCOMPLETE
        fi-kbl-7567u:       PASS -> INCOMPLETE
        fi-kbl-x1275:       PASS -> INCOMPLETE
        fi-kbl-8809g:       PASS -> INCOMPLETE
        fi-kbl-r:           PASS -> INCOMPLETE
Quoted 4 lines

Those failures are there even without my patches (see
https://patchwork.freedesktop.org/series/40112/). Is there an existing bugzilla? In the meantime, I'll have a look to see if I can find what's causing this.

Quoted 6 lines

inject_preempt_context() fails when talking to the guc, catastrophe ensues. As shown above it's quite reliable after a fake suspend/resume, but it also happens during normal preemption (the preemption smoketest was added to exercise this issue).
-Chris

Do you consider this a blocker to getting the patches merged?

BTW, on my SKL even with the preemption smoketest I didn't see any issue on the tree I based the patches on (from Monday) and I only see issues after:

b16c765122f987056e1dc9ef6c214571bb5bd694 is the first bad commit commit b16c765122f987056e1dc9ef6c214571bb5bd694

Author: Chris Wilson <[email protected]>
Date:   Mon Oct 1 15:47:53 2018 +0100
Quoted 7 lines

drm/i915: Priority boost for new clients

However I don't get any error logs out (the machine just dies) so not sure if it is the same issue or not. with that patch and the 2 following related ones reverted I've been running the live selftests in a loop without issues. Is this the bug you mentioned or are those possibly 2 different issues?

Possibly different, but unlikely since it's still the preemption that is at the root cause. smoketest fails for me on bxt/kbl, either starting at a timeout waiting for the preemption report, or the failure to send the guc command. The difference with live_gem + preemption I think is all in the timing, in that it tries to do a very early preemption, shortly after the fw is loaded.

If you are confident that these are the patches you want, done. -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#9 lore raw

Re: ✗ Fi.CI.BAT: failure for series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load

Quoted 93 lines · Chris Wilson

Quoting Daniele Ceraolo Spurio (2018-10-03 23:45:02)

Quoted 77 lines · Chris Wilson
Quoted 56 lines

Quoting Daniele Ceraolo Spurio (2018-10-03 01:12:57)

Quoted 50 lines · Patchwork
Quoted 37 lines

== Series Details ==

Series: series starting with [v2,1/3] drm/i915/guc: init GuC descriptors after GuC load
URL : https://patchwork.freedesktop.org/series/50464/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4915 -> Patchwork_10331 =

== Summary - FAILURE ==

Serious unknown changes coming with Patchwork_10331 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_10331, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/50464/revisions/1/mbox/

== Possible new issues ==

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

     === IGT changes ===

       ==== Possible regressions ====

       igt@drv_selftest@live_gem:
         fi-whl-u:           PASS -> INCOMPLETE
         fi-skl-6600u:       PASS -> INCOMPLETE
         fi-kbl-7560u:       PASS -> INCOMPLETE
         fi-cfl-s3:          PASS -> INCOMPLETE
         fi-skl-iommu:       PASS -> INCOMPLETE
         fi-skl-6700k2:      PASS -> INCOMPLETE
         fi-skl-6700hq:      PASS -> INCOMPLETE
Quoted 9 lines
         fi-cfl-8109u:       PASS -> INCOMPLETE
         fi-kbl-7500u:       PASS -> INCOMPLETE
         fi-cfl-8700k:       PASS -> INCOMPLETE
         fi-skl-6770hq:      PASS -> INCOMPLETE
         fi-kbl-7567u:       PASS -> INCOMPLETE
         fi-kbl-x1275:       PASS -> INCOMPLETE
         fi-kbl-8809g:       PASS -> INCOMPLETE
         fi-kbl-r:           PASS -> INCOMPLETE
Quoted 4 lines

Those failures are there even without my patches (see
https://patchwork.freedesktop.org/series/40112/). Is there an existing bugzilla? In the meantime, I'll have a look to see if I can find what's causing this.

Quoted 6 lines

inject_preempt_context() fails when talking to the guc, catastrophe ensues. As shown above it's quite reliable after a fake suspend/resume, but it also happens during normal preemption (the preemption smoketest was added to exercise this issue).
-Chris

Do you consider this a blocker to getting the patches merged?

BTW, on my SKL even with the preemption smoketest I didn't see any issue on the tree I based the patches on (from Monday) and I only see issues after:

b16c765122f987056e1dc9ef6c214571bb5bd694 is the first bad commit commit b16c765122f987056e1dc9ef6c214571bb5bd694

Author: Chris Wilson <[email protected]>
Date:   Mon Oct 1 15:47:53 2018 +0100
Quoted 7 lines

drm/i915: Priority boost for new clients

However I don't get any error logs out (the machine just dies) so not sure if it is the same issue or not. with that patch and the 2 following related ones reverted I've been running the live selftests in a loop without issues. Is this the bug you mentioned or are those possibly 2 different issues?

Possibly different, but unlikely since it's still the preemption that is at the root cause. smoketest fails for me on bxt/kbl, either starting at a timeout waiting for the preemption report, or the failure to send the guc command. The difference with live_gem + preemption I think is all in the timing, in that it tries to do a very early preemption, shortly after the fw is loaded.

Quoted 3 lines

If you are confident that these are the patches you want, done. -Chris

Thanks!

I'll try to get my hands on another platform to see if I can pull out the guc logs in this scenario to see what the GuC perspective. Upcoming FW has also changes in the area that should help.

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

Reviewed-by on v2 1/3
#10 lore raw
In reply to Daniele Ceraolo Spurio
Quoted 8 lines · Daniele Ceraolo Spurio

GuC stores some data in there, which might be stale after a reset. We already reset the WQ head and tail, but more things are being moved to the descriptor with the interface updates. Instead of trying to track them one by one, always memset and init the descriptors from scratch after GuC is loaded.
The code is also reorganized so that the above operations and the doorbell creation are grouped as "client enabling"

Quoted 6 lines

v2: add proc_desc_fini for symmetry (Daniele), remove unneeded var init, add guc_is_alive() (Michal)

---

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