drm/i915/guc: Provide mmio list to be saved/restored on engine reset
Subsystems (2)
PATCH 1/2 drm/i915/guc: Provide mmio list to be saved/restored on engine reset
The driver must provide GuC with a list of mmio registers that should be saved/restored during a GuC-based engine reset. We provide a minimal set of registers that should get things working and extend as needed.
The mmio list is built using separate lists within the driver. It's possible that at some point we may attempt to add the same register more than once. Do not consider this an error; silently move on if the register is already in the list.
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 23 +++-- .../gpu/drm/i915/gt/intel_workarounds_types.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 90 ++++++++++++++++++- 3 files changed, 107 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/gt/intel_workarounds.c +17 -6
@@ -147,23 +147,31 @@ static void _wa_add(struct i915_wa_list *wal, const struct i915_wa *wa) }static void -wa_write_masked_or (struct i915_wa_list *wal,i915_reg_t reg,u32 mask, -u32 val) +__wa_write_masked_or (struct i915_wa_list *wal,i915_reg_t reg,u32 mask, +u32 val,bool masked_bits) {struct i915_wa wa = { .reg = reg, .mask = mask, .val = val, .read = mask, + .masked_bits = masked_bits, };_wa_add (wal, &wa); } +static void +wa_write_masked_or (struct i915_wa_list *wal,i915_reg_t reg,u32 mask, +u32 val) +{ +__wa_write_masked_or (wal, reg, mask, val, false); +} +static void wa_masked_en (struct i915_wa_list *wal,i915_reg_t reg,u32 val) { -wa_write_masked_or (wal, reg, val,_MASKED_BIT_ENABLE (val)); +__wa_write_masked_or (wal, reg, val,_MASKED_BIT_ENABLE (val), true); } static void
@@ -179,13 +187,16 @@ wa_write_or(struct i915_wa_list *wal, i915_reg_t reg, u32 val) }#define WA_SET_BIT_MASKED (addr, mask) \ - wa_write_masked_or(wal, (addr), (mask), _MASKED_BIT_ENABLE(mask)) + __wa_write_masked_or(wal, (addr), (mask), \ + _MASKED_BIT_ENABLE(mask), true)#define WA_CLR_BIT_MASKED (addr, mask) \ - wa_write_masked_or(wal, (addr), (mask), _MASKED_BIT_DISABLE(mask)) + __wa_write_masked_or(wal, (addr), (mask), \ + _MASKED_BIT_DISABLE(mask), true)#define WA_SET_FIELD_MASKED (addr, mask, value) \ - wa_write_masked_or(wal, (addr), (mask), _MASKED_FIELD((mask), (value))) + __wa_write_masked_or(wal, (addr), (mask), \ + _MASKED_FIELD((mask), (value)), true)static void gen8_ctx_workarounds_init (struct intel_engine_cs *engine,struct i915_wa_list *wal)
drivers/gpu/drm/i915/gt/intel_workarounds_types.h +1 -0
@@ -16,6 +16,7 @@ struct i915_wa {u32 mask;u32 val;u32 read; +bool masked_bits; };struct i915_wa_list {
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +89 -1
116 lines not on this page · raw message
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 HAX: force enable_guc=2
--- drivers/gpu/drm/i915/i915_params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_params.h +1 -1
@@ -54,7 +54,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, 2) \ param(int, guc_log_level, -1) \ param(char *, guc_firmware_path, NULL) \param (char *, huc_firmware_path, NULL) \
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/i915/guc: Provide mmio list to be saved/restored on engine reset
In reply to Fernando Pacheco== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/guc: Provide mmio list to be saved/restored on engine reset
URL : https://patchwork.freedesktop.org/series/69896/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 352b277f1520 drm/i915/guc: Provide mmio list to be saved/restored on engine reset 6e03c879c19a HAX: force enable_guc=2 -: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
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/guc: Provide mmio list to be saved/restored on engine reset
In reply to Fernando Pacheco== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/guc: Provide mmio list to be saved/restored on engine reset
URL : https://patchwork.freedesktop.org/series/69896/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7408 -> Patchwork_15398
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_15398 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_15398, 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_15398/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_15398:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_gt_pm:
- fi-icl-u2: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-icl-u2/igt@i915_selftest@live_gt_pm.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-icl-u2/igt@i915_selftest@live_gt_pm.html
- fi-icl-u3: [PASS][3] -> [DMESG-FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-icl-u3/igt@i915_selftest@live_gt_pm.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-icl-u3/igt@i915_selftest@live_gt_pm.html
- fi-icl-dsi: [PASS][5] -> [DMESG-FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-icl-dsi/igt@i915_selftest@live_gt_pm.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-icl-dsi/igt@i915_selftest@live_gt_pm.html
- fi-icl-y: [PASS][7] -> [DMESG-FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-icl-y/igt@i915_selftest@live_gt_pm.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-icl-y/igt@i915_selftest@live_gt_pm.html
Known issues
------------
Here are the changes found in Patchwork_15398 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@module-reload:
- fi-skl-6770hq: [PASS][9] -> [FAIL][10] ([fdo#108511])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-skl-6770hq/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-skl-6770hq/igt@[email protected]
#### Possible fixes ####
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][11] ([fdo#102614]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-hsw-peppy/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-hsw-peppy/igt@[email protected]
#### Warnings ####
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-kbl-x1275: [DMESG-WARN][13] ([fdo#103558] / [fdo#105602]) -> [DMESG-WARN][14] ([fdo#103558] / [fdo#105602] / [fdo#105763]) +5 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-kbl-x1275/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-kbl-x1275/igt@[email protected]
* igt@kms_flip@basic-flip-vs-modeset:
- fi-kbl-x1275: [DMESG-WARN][15] ([fdo#103558] / [fdo#105602] / [fdo#105763]) -> [DMESG-WARN][16] ([fdo#103558] / [fdo#105602]) +7 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#108511]: https://bugs.freedesktop.org/show_bug.cgi?id=108511
[fdo#109964]: https://bugs.freedesktop.org/show_bug.cgi?id=109964
[fdo#112298]: https://bugs.freedesktop.org/show_bug.cgi?id=112298
Participating hosts (51 -> 43)
------------------------------
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7408 -> Patchwork_15398
CI-20190529: 20190529
CI_DRM_7408: 9b7c88560d1559b244f65f4871d29cd9de1024ef @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5301: 3fa72891269b16943e6511166aeebee094206791 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15398: 6e03c879c19a6c4f875d830df209a2dbe08eaa75 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
6e03c879c19a HAX: force enable_guc=2352b277f1520 drm/i915/guc: Provide mmio list to be saved/restored on engine reset
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15398/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx