drm/i915/icl: Add configuring MOCS in new Icelake engines
Subsystems (2)
PATCH 1/1 drm/i915/icl: Add configuring MOCS in new Icelake engines
From: Tomasz Lis <[email protected]>
In Icelake, there are more engines on which Memory Object Control States need to be configured. Besides adding Icelake under Skylake config, the patch makes sure MOCS register addresses for the new engines are properly defined.
Additional patch might be need later, in case the specification will propose different MOCS config values for Icelake than in previous gens.
v2: Restricted comments to gen11, updated description, renamed defines.
v3: Used proper engine indexes for gen11.
v4: Ensure patch is Icelake only.
v5: Style fixes (proposed by mwajdeczko)
BSpec: 19405
BSpec: 21140
--- drivers/gpu/drm/i915/i915_reg.h | 2 ++ drivers/gpu/drm/i915/intel_mocs.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-)
This patch got a r-b tag on 13/02 but got lost in the cracks. Resubmit for CI so we can possibly merge it.
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -9864,6 +9864,8 @@ enum skl_power_gate {#define GEN9_MFX1_MOCS (i) _MMIO(0xca00 + (i) * 4)/* Media 1 MOCS registers */ #define GEN9_VEBOX_MOCS (i) _MMIO(0xcb00 + (i) * 4)/* Video MOCS registers */ #define GEN9_BLT_MOCS (i) _MMIO(0xcc00 + (i) * 4)/* Blitter MOCS registers */ +/* Media decoder 2 MOCS registers */ +#define GEN11_MFX2_MOCS (i) _MMIO(0x10000 + (i) * 4)/* gamt regs */ #define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)
drivers/gpu/drm/i915/intel_mocs.c +4 -1
@@ -178,7 +178,8 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv, {bool result = false; -if (IS_GEN9_BC (dev_priv) ||IS_CANNONLAKE (dev_priv)) { +if (IS_GEN9_BC (dev_priv) ||IS_CANNONLAKE (dev_priv) || +IS_ICELAKE (dev_priv)) { table->size =ARRAY_SIZE (skylake_mocs_table); table->table = skylake_mocs_table; result = true;
@@ -217,6 +218,8 @@ static i915_reg_t mocs_register(enum intel_engine_id engine_id, int index)return GEN9_VEBOX_MOCS (index);case VCS2 :return GEN9_MFX1_MOCS (index); +case VCS3 : +return GEN11_MFX2_MOCS (index);default :MISSING_CASE (engine_id);return INVALID_MMIO_REG ;
Signature · 6 lines
2.14.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Add configuring MOCS in new Icelake engines
== Series Details ==
== Series Details ==
Series: drm/i915/icl: Add configuring MOCS in new Icelake engines
URL : https://patchwork.freedesktop.org/series/42599/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip fc76506254fe drm/i915/icl: Add configuring MOCS in new Icelake engines -:6: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #6: In Icelake, there are more engines on which Memory Object Control States need
total: 0 errors, 1 warnings, 0 checks, 25 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/icl: Add configuring MOCS in new Icelake engines
In reply to Paulo Zanoni== Series Details ==
== Series Details ==
Series: drm/i915/icl: Add configuring MOCS in new Icelake engines
URL : https://patchwork.freedesktop.org/series/42599/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4125 -> Patchwork_8886 =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_8886 need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_8886, 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/42599/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_8886:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_gttfill@basic:
fi-pnv-d510: SKIP -> PASS== Known issues ==
Here are the changes found in Patchwork_8886 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_mmap_gtt@basic-small-bo-tiledx:
fi-gdg-551: PASS -> FAIL (fdo#102575)
==== Possible fixes ====
igt@kms_flip@basic-flip-vs-wf_vblank:
fi-hsw-4200u: FAIL (fdo#100368) -> PASS
igt@kms_frontbuffer_tracking@basic:
fi-hsw-4200u: DMESG-FAIL (fdo#106103, fdo#102614) -> PASS
igt@kms_pipe_crc_basic@hang-read-crc-pipe-b:
fi-skl-6700k2: FAIL (fdo#103191) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#106103 https://bugs.freedesktop.org/show_bug.cgi?id=106103
== Participating hosts (39 -> 36) ==
Missing (3): fi-ctg-p8600 fi-ilk-m540 fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4125 -> Patchwork_8886
CI_DRM_4125: c862a73270499cdd3d7c04c889e43303ae5f928e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4456: 43761534c6482dc67b9c3d8eeecd425ef40b3c4c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_8886: fc76506254fe4ba391de73f2ded25669b1e5bffd @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4456: 30b992bdc047073e1fe99b1ac622f026618a8081 @ git://anongit.freedesktop.org/piglit
== Linux commits ==
fc76506254fe drm/i915/icl: Add configuring MOCS in new Icelake engines
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8886/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915/icl: Add configuring MOCS in new Icelake engines
In reply to Paulo Zanoni== Series Details ==
== Series Details ==
Series: drm/i915/icl: Add configuring MOCS in new Icelake engines
URL : https://patchwork.freedesktop.org/series/42599/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4125_full -> Patchwork_8886_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_8886_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_8886_full, 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/42599/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_8886_full:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_schedule@deep-bsd1:
shard-kbl: PASS -> SKIP
igt@gem_exec_schedule@deep-bsd2:
shard-kbl: SKIP -> PASS
igt@kms_atomic@plane_invalid_params:
shard-snb: SKIP -> PASS
igt@pm_rc6_residency@rc6-accuracy:
shard-snb: PASS -> SKIP== Known issues ==
Here are the changes found in Patchwork_8886_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_cursor_crc@cursor-128x128-suspend:
shard-glk: PASS -> INCOMPLETE (k.org#198133, fdo#103359)
==== Possible fixes ====
igt@gem_eio@hibernate:
shard-kbl: DMESG-WARN (fdo#104238) -> PASS +1
igt@gem_exec_suspend@basic-s3:
shard-kbl: INCOMPLETE (fdo#103665) -> PASS
igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
shard-hsw: FAIL (fdo#104873) -> PASS
igt@kms_flip@2x-dpms-vs-vblank-race:
shard-hsw: FAIL (fdo#103060) -> PASS fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#104238 https://bugs.freedesktop.org/show_bug.cgi?id=104238
fdo#104873 https://bugs.freedesktop.org/show_bug.cgi?id=104873
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133
== Participating hosts (7 -> 7) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4125 -> Patchwork_8886
CI_DRM_4125: c862a73270499cdd3d7c04c889e43303ae5f928e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4456: 43761534c6482dc67b9c3d8eeecd425ef40b3c4c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_8886: fc76506254fe4ba391de73f2ded25669b1e5bffd @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4456: 30b992bdc047073e1fe99b1ac622f026618a8081 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8886/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx