All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Don't fail on HuC early init errors
@ 2019-08-04 19:50 Michal Wajdeczko
  2019-08-04 19:50 ` [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported Michal Wajdeczko
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-04 19:50 UTC (permalink / raw)
  To: intel-gfx

Next step to ignore all HuC related errors

Michal Wajdeczko (4):
  drm/i915/guc: Prefer intel_guc_is_submission_supported
  drm/i915/huc: Prefer intel_huc_is_supported
  drm/i915/uc: Remove redundant GuC support checks
  drm/i915/uc: Don't fail on HuC early init errors

 drivers/gpu/drm/i915/gt/uc/intel_guc.c |  8 ++++----
 drivers/gpu/drm/i915/gt/uc/intel_huc.c |  9 +++++++--
 drivers/gpu/drm/i915/gt/uc/intel_uc.c  | 19 +++++--------------
 3 files changed, 16 insertions(+), 20 deletions(-)

-- 
2.19.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported
  2019-08-04 19:50 [PATCH 0/4] Don't fail on HuC early init errors Michal Wajdeczko
@ 2019-08-04 19:50 ` Michal Wajdeczko
  2019-08-05 17:18   ` Chris Wilson
  2019-08-04 19:50 ` [PATCH 2/4] drm/i915/huc: Prefer intel_huc_is_supported Michal Wajdeczko
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-04 19:50 UTC (permalink / raw)
  To: intel-gfx

No need to use intel_uc_supports_guc_submission(uc) as we
can directly use intel_guc_is_submission_supported(guc)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc.c
index 0ee8139885a5..f9c33062249f 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_guc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc.c
@@ -145,7 +145,7 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc)
 {
 	u32 flags = 0;
 
-	if (!intel_uc_supports_guc_submission(&guc_to_gt(guc)->uc))
+	if (!intel_guc_is_submission_supported(guc))
 		flags |= GUC_CTL_DISABLE_SCHEDULER;
 
 	return flags;
@@ -155,7 +155,7 @@ static u32 guc_ctl_ctxinfo_flags(struct intel_guc *guc)
 {
 	u32 flags = 0;
 
-	if (intel_uc_supports_guc_submission(&guc_to_gt(guc)->uc)) {
+	if (intel_guc_is_submission_supported(guc)) {
 		u32 ctxnum, base;
 
 		base = intel_guc_ggtt_offset(guc, guc->stage_desc_pool);
@@ -291,7 +291,7 @@ int intel_guc_init(struct intel_guc *guc)
 	if (ret)
 		goto err_ads;
 
-	if (intel_uc_supports_guc_submission(&gt->uc)) {
+	if (intel_guc_is_submission_supported(guc)) {
 		/*
 		 * This is stuff we need to have available at fw load time
 		 * if we are planning to enable submission later
@@ -330,7 +330,7 @@ void intel_guc_fini(struct intel_guc *guc)
 
 	i915_ggtt_disable_guc(gt->ggtt);
 
-	if (intel_uc_supports_guc_submission(&gt->uc))
+	if (intel_guc_is_submission_supported(guc))
 		intel_guc_submission_fini(guc);
 
 	intel_guc_ct_fini(&guc->ct);
-- 
2.19.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/4] drm/i915/huc: Prefer intel_huc_is_supported
  2019-08-04 19:50 [PATCH 0/4] Don't fail on HuC early init errors Michal Wajdeczko
  2019-08-04 19:50 ` [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported Michal Wajdeczko
@ 2019-08-04 19:50 ` Michal Wajdeczko
  2019-08-05 17:19   ` Chris Wilson
  2019-08-04 19:50 ` [PATCH 3/4] drm/i915/uc: Remove redundant GuC support checks Michal Wajdeczko
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-04 19:50 UTC (permalink / raw)
  To: intel-gfx

No need to dance with intel_uc_supports_huc(uc) as we
can directly use intel_huc_is_supported(huc)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/gt/uc/intel_huc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_huc.c b/drivers/gpu/drm/i915/gt/uc/intel_huc.c
index ef54053c5ef9..66b2d5fdb317 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_huc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_huc.c
@@ -187,7 +187,7 @@ int intel_huc_check_status(struct intel_huc *huc)
 	intel_wakeref_t wakeref;
 	u32 status = 0;
 
-	if (!intel_uc_supports_huc(&gt->uc))
+	if (!intel_huc_is_supported(huc))
 		return -ENODEV;
 
 	with_intel_runtime_pm(&gt->i915->runtime_pm, wakeref)
-- 
2.19.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/4] drm/i915/uc: Remove redundant GuC support checks
  2019-08-04 19:50 [PATCH 0/4] Don't fail on HuC early init errors Michal Wajdeczko
  2019-08-04 19:50 ` [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported Michal Wajdeczko
  2019-08-04 19:50 ` [PATCH 2/4] drm/i915/huc: Prefer intel_huc_is_supported Michal Wajdeczko
@ 2019-08-04 19:50 ` Michal Wajdeczko
  2019-08-05 17:20   ` Chris Wilson
  2019-08-04 19:50 ` [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors Michal Wajdeczko
  2019-08-04 20:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
  4 siblings, 1 reply; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-04 19:50 UTC (permalink / raw)
  To: intel-gfx

Since commit db81bc6eb9c0 ("drm/i915/uc: Consider enable_guc
modparam during fw selection") we have started using firmware
status as main indicator of the GuC support. No need to use
same checks twice.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/gt/uc/intel_uc.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
index fe526698eee2..1ddd252419ec 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
@@ -306,9 +306,6 @@ int intel_uc_init(struct intel_uc *uc)
 	if (!intel_uc_supports_guc(uc))
 		return 0;
 
-	if (!intel_uc_fw_supported(&guc->fw))
-		return -ENODEV;
-
 	/* XXX: GuC submission is unavailable for now */
 	GEM_BUG_ON(intel_uc_supports_guc_submission(uc));
 
@@ -336,8 +333,6 @@ void intel_uc_fini(struct intel_uc *uc)
 	if (!intel_uc_supports_guc(uc))
 		return;
 
-	GEM_BUG_ON(!intel_uc_fw_supported(&guc->fw));
-
 	if (intel_uc_supports_huc(uc))
 		intel_huc_fini(&uc->huc);
 
@@ -351,7 +346,7 @@ static int __uc_sanitize(struct intel_uc *uc)
 	struct intel_guc *guc = &uc->guc;
 	struct intel_huc *huc = &uc->huc;
 
-	GEM_BUG_ON(!intel_uc_fw_supported(&guc->fw));
+	GEM_BUG_ON(!intel_uc_supports_guc(uc));
 
 	intel_huc_sanitize(huc);
 	intel_guc_sanitize(guc);
@@ -429,8 +424,6 @@ int intel_uc_init_hw(struct intel_uc *uc)
 	if (!intel_uc_supports_guc(uc))
 		return 0;
 
-	GEM_BUG_ON(!intel_uc_fw_supported(&guc->fw));
-
 	ret = uc_init_wopcm(uc);
 	if (ret)
 		goto err_out;
@@ -530,8 +523,6 @@ void intel_uc_fini_hw(struct intel_uc *uc)
 	if (!intel_guc_is_running(guc))
 		return;
 
-	GEM_BUG_ON(!intel_uc_fw_supported(&guc->fw));
-
 	if (intel_uc_supports_guc_submission(uc))
 		intel_guc_submission_disable(guc);
 
-- 
2.19.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors
  2019-08-04 19:50 [PATCH 0/4] Don't fail on HuC early init errors Michal Wajdeczko
                   ` (2 preceding siblings ...)
  2019-08-04 19:50 ` [PATCH 3/4] drm/i915/uc: Remove redundant GuC support checks Michal Wajdeczko
@ 2019-08-04 19:50 ` Michal Wajdeczko
  2019-08-05 17:24   ` Chris Wilson
  2019-08-04 20:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
  4 siblings, 1 reply; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-04 19:50 UTC (permalink / raw)
  To: intel-gfx

Since commit 301efe96f777 ("drm/i915/uc: Don't fail on HuC
firmware failure") we can continue driver load after error
during HuC firmware load or authentication, but we could
still fail on any error during early HuC initialization.
Change that by ignoring HuC related errors until hardware
initialization phase where we can decide about next steps.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/gt/uc/intel_huc.c | 7 ++++++-
 drivers/gpu/drm/i915/gt/uc/intel_uc.c  | 8 ++++----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_huc.c b/drivers/gpu/drm/i915/gt/uc/intel_huc.c
index 66b2d5fdb317..faaf8ad5ba89 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_huc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_huc.c
@@ -52,6 +52,11 @@ static int intel_huc_rsa_data_create(struct intel_huc *huc)
 	struct i915_vma *vma;
 	size_t copied;
 	void *vaddr;
+	int err;
+
+	err = i915_inject_load_error(gt->i915, -ENXIO);
+	if (err)
+		return err;
 
 	/*
 	 * HuC firmware will sit above GUC_GGTT_TOP and will not map
@@ -115,8 +120,8 @@ int intel_huc_init(struct intel_huc *huc)
 
 void intel_huc_fini(struct intel_huc *huc)
 {
-	intel_uc_fw_fini(&huc->fw);
 	intel_huc_rsa_data_destroy(huc);
+	intel_uc_fw_fini(&huc->fw);
 }
 
 /**
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
index 1ddd252419ec..e87b7904ab7a 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
@@ -316,14 +316,14 @@ int intel_uc_init(struct intel_uc *uc)
 	if (intel_uc_supports_huc(uc)) {
 		ret = intel_huc_init(huc);
 		if (ret)
-			goto err_guc;
+			goto out_huc;
 	}
 
 	return 0;
 
-err_guc:
-	intel_guc_fini(guc);
-	return ret;
+out_huc:
+	intel_uc_fw_cleanup_fetch(&huc->fw);
+	return 0;
 }
 
 void intel_uc_fini(struct intel_uc *uc)
-- 
2.19.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* ✗ Fi.CI.BAT: failure for Don't fail on HuC early init errors
  2019-08-04 19:50 [PATCH 0/4] Don't fail on HuC early init errors Michal Wajdeczko
                   ` (3 preceding siblings ...)
  2019-08-04 19:50 ` [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors Michal Wajdeczko
@ 2019-08-04 20:18 ` Patchwork
  2019-08-04 20:27   ` Michal Wajdeczko
  4 siblings, 1 reply; 13+ messages in thread
From: Patchwork @ 2019-08-04 20:18 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-gfx

== Series Details ==

Series: Don't fail on HuC early init errors
URL   : https://patchwork.freedesktop.org/series/64668/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_6624 -> Patchwork_13866
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with Patchwork_13866 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in Patchwork_13866, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/

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

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

### IGT changes ###

#### Possible regressions ####

  * igt@runner@aborted:
    - fi-cml-u2:          NOTRUN -> [FAIL][1]
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-cml-u2/igt@runner@aborted.html

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

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

### IGT changes ###

#### Issues hit ####

  * igt@i915_selftest@live_hangcheck:
    - fi-cml-u2:          [PASS][2] -> [INCOMPLETE][3] ([fdo#110566])
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6624/fi-cml-u2/igt@i915_selftest@live_hangcheck.html
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-cml-u2/igt@i915_selftest@live_hangcheck.html

  * igt@kms_chamelium@hdmi-hpd-fast:
    - fi-kbl-7500u:       [PASS][4] -> [FAIL][5] ([fdo#109485])
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6624/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html

  
#### Possible fixes ####

  * igt@i915_module_load@reload:
    - fi-blb-e6850:       [INCOMPLETE][6] ([fdo#107718]) -> [PASS][7]
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6624/fi-blb-e6850/igt@i915_module_load@reload.html
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-blb-e6850/igt@i915_module_load@reload.html

  * igt@i915_selftest@live_execlists:
    - fi-skl-gvtdvm:      [DMESG-FAIL][8] ([fdo#111108]) -> [PASS][9]
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6624/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html

  * igt@kms_chamelium@hdmi-hpd-fast:
    - fi-icl-u2:          [FAIL][10] ([fdo#109483]) -> [PASS][11]
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6624/fi-icl-u2/igt@kms_chamelium@hdmi-hpd-fast.html
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-icl-u2/igt@kms_chamelium@hdmi-hpd-fast.html

  * igt@kms_frontbuffer_tracking@basic:
    - fi-icl-u2:          [FAIL][12] ([fdo#103167]) -> [PASS][13]
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6624/fi-icl-u2/igt@kms_frontbuffer_tracking@basic.html
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-icl-u2/igt@kms_frontbuffer_tracking@basic.html

  
  [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
  [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
  [fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
  [fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
  [fdo#110566]: https://bugs.freedesktop.org/show_bug.cgi?id=110566
  [fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108


Participating hosts (55 -> 45)
------------------------------

  Missing    (10): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-hsw-peppy fi-byt-squawks fi-bsw-cyan fi-pnv-d510 fi-icl-y fi-byt-clapper fi-bdw-samus 


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

  * CI: CI-20190529 -> None
  * Linux: CI_DRM_6624 -> Patchwork_13866

  CI-20190529: 20190529
  CI_DRM_6624: 2bb7df95d4e058e61d9de39f1b97404592708d24 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_5120: b3138fbea79d5d7935e53530b90efe3e816236f4 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  Patchwork_13866: 24721ffd71eaf3bab0236318d53b49419bed5454 @ git://anongit.freedesktop.org/gfx-ci/linux


== Linux commits ==

24721ffd71ea drm/i915/uc: Don't fail on HuC early init errors
8ce238830fc6 drm/i915/uc: Remove redundant GuC support checks
7627d5a6eb80 drm/i915/huc: Prefer intel_huc_is_supported
326254b19fd1 drm/i915/guc: Prefer intel_guc_is_submission_supported

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: ✗ Fi.CI.BAT: failure for Don't fail on HuC early init errors
  2019-08-04 20:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2019-08-04 20:27   ` Michal Wajdeczko
  2019-08-05 18:15     ` Chris Wilson
  0 siblings, 1 reply; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-04 20:27 UTC (permalink / raw)
  To: Patchwork, intel-gfx

On Sun, 04 Aug 2019 22:18:51 +0200, Patchwork  
<patchwork@emeril.freedesktop.org> wrote:

> == Series Details ==
>
> Series: Don't fail on HuC early init errors
> URL   : https://patchwork.freedesktop.org/series/64668/
> State : failure
>
> == Summary ==
>
> CI Bug Log - changes from CI_DRM_6624 -> Patchwork_13866
> ====================================================
>
> Summary
> -------
>
>   **FAILURE**
>
>   Serious unknown changes coming with Patchwork_13866 absolutely need to  
> be
>   verified manually.
>  If you think the reported changes have nothing to do with the changes
>   introduced in Patchwork_13866, please notify your bug team to allow  
> them
>   to document this new failure mode, which will reduce false positives  
> in CI.
>
>   External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/
>
> Possible new issues
> -------------------
>
>   Here are the unknown changes that may have been introduced in  
> Patchwork_13866:
>
> ### IGT changes ###
>
> #### Possible regressions ####
>
>   * igt@runner@aborted:
>     - fi-cml-u2:          NOTRUN -> [FAIL][1]
>    [1]:  
> https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-cml-u2/igt@runner@aborted.html
>

hmm, looks unrelated (this CML is not using guc/huc at all)

<7>[    9.344398] [drm:intel_uc_init_early [i915]] enable_guc=0 (guc:no  
submission:no huc:no)
...
<4>[  486.270801] ------------[ cut here ]------------
<4>[  486.270843] list_add corruption. prev->next should be next  
(ffff8883c0fe17d8), but was ffff8883cb29c5a8. (prev=ffff8883cb29c5a8).
...
<4>[  486.270889] Call Trace:
<4>[  486.270945]  __i915_request_commit+0x35c/0x6a0 [i915]
<4>[  486.270991]  ? __i915_request_create+0x22c/0x4d0 [i915]
<4>[  486.271030]  __engine_park+0x64/0x200 [i915]
<4>[  486.271067]  __intel_wakeref_put_last+0x14/0x60 [i915]
<4>[  486.271104]  __igt_reset_engine+0x2be/0x490 [i915]
<4>[  486.271111]  ? __trace_bprintk+0x57/0x80
<4>[  486.271160]  __i915_subtests+0xb8/0x210 [i915]
<4>[  486.271205]  ? __i915_live_teardown+0x70/0x70 [i915]
<4>[  486.271248]  ? __intel_gt_live_setup+0x10/0x10 [i915]
<4>[  486.271287]  intel_hangcheck_live_selftests+0xa5/0x100 [i915]
<4>[  486.271332]  __run_selftests+0x112/0x170 [i915]
<4>[  486.271376]  i915_live_selftests+0x2c/0x60 [i915]
<4>[  486.271410]  i915_pci_probe+0x93/0x1b0 [i915]
<4>[  486.271414]  ? _raw_spin_unlock_irqrestore+0x39/0x60
<4>[  486.271419]  pci_device_probe+0x9e/0x120
<4>[  486.271423]  really_probe+0xea/0x3d0
<4>[  486.271426]  driver_probe_device+0x10b/0x120
<4>[  486.271429]  device_driver_attach+0x4a/0x50
<4>[  486.271431]  __driver_attach+0x97/0x130
<4>[  486.271434]  ? device_driver_attach+0x50/0x50
<4>[  486.271436]  bus_for_each_dev+0x74/0xc0
<4>[  486.271440]  bus_add_driver+0x13f/0x210
<4>[  486.271442]  ? 0xffffffffa0822000
<4>[  486.271444]  driver_register+0x56/0xe0
<4>[  486.271446]  ? 0xffffffffa0822000
<4>[  486.271449]  do_one_initcall+0x58/0x300
<4>[  486.271452]  ? do_init_module+0x1d/0x1f6
<4>[  486.271455]  ? rcu_read_lock_sched_held+0x6f/0x80
<4>[  486.271458]  ? kmem_cache_alloc_trace+0x2d1/0x300
<4>[  486.271462]  do_init_module+0x56/0x1f6
<4>[  486.271465]  load_module+0x25bd/0x2a40
<4>[  486.271477]  ? __se_sys_finit_module+0xd3/0xf0
<4>[  486.271479]  __se_sys_finit_module+0xd3/0xf0
<4>[  486.271487]  do_syscall_64+0x55/0x1c0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported
  2019-08-04 19:50 ` [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported Michal Wajdeczko
@ 2019-08-05 17:18   ` Chris Wilson
  0 siblings, 0 replies; 13+ messages in thread
From: Chris Wilson @ 2019-08-05 17:18 UTC (permalink / raw)
  To: Michal Wajdeczko, intel-gfx

Quoting Michal Wajdeczko (2019-08-04 20:50:49)
> No need to use intel_uc_supports_guc_submission(uc) as we
> can directly use intel_guc_is_submission_supported(guc)
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/4] drm/i915/huc: Prefer intel_huc_is_supported
  2019-08-04 19:50 ` [PATCH 2/4] drm/i915/huc: Prefer intel_huc_is_supported Michal Wajdeczko
@ 2019-08-05 17:19   ` Chris Wilson
  0 siblings, 0 replies; 13+ messages in thread
From: Chris Wilson @ 2019-08-05 17:19 UTC (permalink / raw)
  To: Michal Wajdeczko, intel-gfx

Quoting Michal Wajdeczko (2019-08-04 20:50:50)
> No need to dance with intel_uc_supports_huc(uc) as we
> can directly use intel_huc_is_supported(huc)
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 3/4] drm/i915/uc: Remove redundant GuC support checks
  2019-08-04 19:50 ` [PATCH 3/4] drm/i915/uc: Remove redundant GuC support checks Michal Wajdeczko
@ 2019-08-05 17:20   ` Chris Wilson
  0 siblings, 0 replies; 13+ messages in thread
From: Chris Wilson @ 2019-08-05 17:20 UTC (permalink / raw)
  To: Michal Wajdeczko, intel-gfx

Quoting Michal Wajdeczko (2019-08-04 20:50:51)
> Since commit db81bc6eb9c0 ("drm/i915/uc: Consider enable_guc
> modparam during fw selection") we have started using firmware
> status as main indicator of the GuC support. No need to use
> same checks twice.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors
  2019-08-04 19:50 ` [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors Michal Wajdeczko
@ 2019-08-05 17:24   ` Chris Wilson
  2019-08-05 17:53     ` Michal Wajdeczko
  0 siblings, 1 reply; 13+ messages in thread
From: Chris Wilson @ 2019-08-05 17:24 UTC (permalink / raw)
  To: Michal Wajdeczko, intel-gfx

Quoting Michal Wajdeczko (2019-08-04 20:50:52)
> Since commit 301efe96f777 ("drm/i915/uc: Don't fail on HuC
> firmware failure") we can continue driver load after error
> during HuC firmware load or authentication, but we could
> still fail on any error during early HuC initialization.
> Change that by ignoring HuC related errors until hardware
> initialization phase where we can decide about next steps.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>

So we just leave the HuC uninitialised and HUC_STATUS should then report
no authentication. (We do scrub that at some point just in case the
million resets did not?)

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors
  2019-08-05 17:24   ` Chris Wilson
@ 2019-08-05 17:53     ` Michal Wajdeczko
  0 siblings, 0 replies; 13+ messages in thread
From: Michal Wajdeczko @ 2019-08-05 17:53 UTC (permalink / raw)
  To: intel-gfx, Chris Wilson

On Mon, 05 Aug 2019 19:24:57 +0200, Chris Wilson  
<chris@chris-wilson.co.uk> wrote:

> So we just leave the HuC uninitialised and HUC_STATUS should then report
> no authentication. (We do scrub that at some point just in case the
> million resets did not?)

Bspec says that it's RO from the host and it will be 0 out of reset
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: ✗ Fi.CI.BAT: failure for Don't fail on HuC early init errors
  2019-08-04 20:27   ` Michal Wajdeczko
@ 2019-08-05 18:15     ` Chris Wilson
  0 siblings, 0 replies; 13+ messages in thread
From: Chris Wilson @ 2019-08-05 18:15 UTC (permalink / raw)
  To: Michal Wajdeczko, Patchwork, intel-gfx

Quoting Michal Wajdeczko (2019-08-04 21:27:38)
> On Sun, 04 Aug 2019 22:18:51 +0200, Patchwork  
> <patchwork@emeril.freedesktop.org> wrote:
> >   * igt@runner@aborted:
> >     - fi-cml-u2:          NOTRUN -> [FAIL][1]
> >    [1]:  
> > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13866/fi-cml-u2/igt@runner@aborted.html
> >
> 
> hmm, looks unrelated (this CML is not using guc/huc at all)
> 
> <7>[    9.344398] [drm:intel_uc_init_early [i915]] enable_guc=0 (guc:no  
> submission:no huc:no)
> ...
> <4>[  486.270801] ------------[ cut here ]------------
> <4>[  486.270843] list_add corruption. prev->next should be next  
> (ffff8883c0fe17d8), but was ffff8883cb29c5a8. (prev=ffff8883cb29c5a8).

That really needs the timeline patches, if only for the lockdep markup.
But I think it's
  drm/i915: Protect request retirement with timeline->mutex
judging from the probable race.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-08-05 18:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-04 19:50 [PATCH 0/4] Don't fail on HuC early init errors Michal Wajdeczko
2019-08-04 19:50 ` [PATCH 1/4] drm/i915/guc: Prefer intel_guc_is_submission_supported Michal Wajdeczko
2019-08-05 17:18   ` Chris Wilson
2019-08-04 19:50 ` [PATCH 2/4] drm/i915/huc: Prefer intel_huc_is_supported Michal Wajdeczko
2019-08-05 17:19   ` Chris Wilson
2019-08-04 19:50 ` [PATCH 3/4] drm/i915/uc: Remove redundant GuC support checks Michal Wajdeczko
2019-08-05 17:20   ` Chris Wilson
2019-08-04 19:50 ` [PATCH 4/4] drm/i915/uc: Don't fail on HuC early init errors Michal Wajdeczko
2019-08-05 17:24   ` Chris Wilson
2019-08-05 17:53     ` Michal Wajdeczko
2019-08-04 20:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
2019-08-04 20:27   ` Michal Wajdeczko
2019-08-05 18:15     ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.