Skip to contentSkip to conversation

drm/i915/huc: Fix HuC register used in debugfs

PATCH In review Michal Wajdeczko 3 participants 3 messages Mar 30, 2020

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

PATCH 1/1 drm/i915/huc: Fix HuC register used in debugfs

We report HuC status in debugfs using register read, but we missed that on Gen11+ HuC uses different register. Use correct one.

While here, correct placement of the colon.

Cc Daniele Ceraolo Spurio <[email protected]>
Cc Chris Wilson <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_huc.c +2 -2
index d6097b46600c..3fee65308474 100644
@@ -244,6 +244,6 @@ void intel_huc_load_status(struct intel_huc *huc, struct drm_printer *p)
 	intel_uc_fw_dump(&huc->fw, p);
 
 	with_intel_runtime_pm(gt->uncore->rpm, wakeref)
-		drm_printf(p, "\nHuC status 0x%08x:\n",
-			   intel_uncore_read(gt->uncore, HUC_STATUS2));
+		drm_printf(p, "HuC status: 0x%08x\n",
+			   intel_uncore_read(gt->uncore, huc->status.reg));
 }
Signature · 6 lines
2.19.2

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

Quoting Michal Wajdeczko (2020-03-30 12:33:38)

Quoted 18 lines

We report HuC status in debugfs using register read, but we missed that on Gen11+ HuC uses different register. Use correct one.

While here, correct placement of the colon.

Cc Daniele Ceraolo Spurio <[email protected]>
Cc Chris Wilson <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_huc.c +0 -0
index d6097b46600c..3fee65308474 100644

drivers/gpu/drm/i915/gt/uc/intel_huc.c void intel_huc_load_status(struct intel_huc *huc, struct drm_printer *p) · line 248

Quoted 7 lines
drivers/gpu/drm/i915/gt/uc/intel_huc.c +2 -2
@@ -244,6 +244,6 @@ void intel_huc_load_status(struct intel_huc *huc, struct drm_printer *p)
        intel_uc_fw_dump(&huc->fw, p);
 
        with_intel_runtime_pm(gt->uncore->rpm, wakeref)
-               drm_printf(p, "\nHuC status 0x%08x:\n",
-                          intel_uncore_read(gt->uncore, HUC_STATUS2));
+               drm_printf(p, "HuC status: 0x%08x\n",
+                          intel_uncore_read(gt->uncore, huc->status.reg));

drivers/gpu/drm/i915/gt/uc/intel_huc.c: huc->status.reg = GEN11_HUC_KERNEL_LOAD_INFO;
drivers/gpu/drm/i915/gt/uc/intel_huc.c: huc->status.reg = HUC_STATUS2;
drivers/gpu/drm/i915/gt/uc/intel_huc.c: huc->status.reg,
drivers/gpu/drm/i915/gt/uc/intel_huc.c: status = intel_uncore_read(gt->uncore, huc->status.reg);

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

#2 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/huc: Fix HuC register used in debugfs

In reply to Michal Wajdeczko
== Series Details ==

== Series Details ==

Series: drm/i915/huc: Fix HuC register used in debugfs
URL : https://patchwork.freedesktop.org/series/75231/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_8214 -> Patchwork_17128
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_17128, 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_17128/index.html

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-apl-guc: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8214/fi-apl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17128/fi-apl-guc/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live@execlists:
- fi-glk-dsi: [PASS][3] -> [INCOMPLETE][4] ([i915#58] / [i915#656] / [k.org#198133])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8214/fi-glk-dsi/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17128/fi-glk-dsi/igt@i915_selftest@[email protected]
- fi-bxt-dsi: [PASS][5] -> [INCOMPLETE][6] ([i915#656])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8214/fi-bxt-dsi/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17128/fi-bxt-dsi/igt@i915_selftest@[email protected]

[i915#58]: https://gitlab.freedesktop.org/drm/intel/issues/58
[i915#656]: https://gitlab.freedesktop.org/drm/intel/issues/656
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133

Participating hosts (45 -> 40)
------------------------------

Additional (6): fi-kbl-soraka fi-bsw-n3050 fi-bwr-2160 fi-snb-2520m fi-kbl-7560u fi-byt-n2820
Missing (11): fi-hsw-4770r fi-ilk-m540 fi-bdw-5557u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ilk-650 fi-ctg-p8600 fi-cfl-8109u fi-bsw-kefka fi-bdw-samus

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

* CI: CI-20190529 -> None
* Linux: CI_DRM_8214 -> Patchwork_17128

CI-20190529: 20190529
CI_DRM_8214: a2b99403233148c1940fc972caef2a5c456d11b2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5545: 9e5bfd10d56f81b98e0229c6bb14670221fd0b54 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17128: 61ec43b796ab8e05e27920bc8e5328727cf24098 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

61ec43b796ab drm/i915/huc: Fix HuC register used in debugfs

== Logs ==

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