drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits
Subsystems (2)
PATCH v3 1/1 drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits
On Gen8+ this register is not priviledged and we want to use it in Mesa to implement a feature required by GPA called Null Hardware. The idea is to have the command parser turn 3DPRIMITIVE/GPGPU_WALKER into NOOPs.
This patch just whitelists the bits that we need and that are currently not used by the kernel.
v2: Bump the command parser revision (Chris)
v3: Whitelist TEXTURE_PALETTE_LOAD_INSTRUCTION_DISABLE (Chris)
--- drivers/gpu/drm/i915/i915_cmd_parser.c | 13 ++++++++++++- drivers/gpu/drm/i915/i915_reg.h | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_cmd_parser.c +12 -1
@@ -534,6 +534,16 @@ struct drm_i915_reg_descriptor { { .addr = _reg ## _UDW(idx) }static const struct drm_i915_reg_descriptor gen7_render_regs[] = { + REG32(INSTPM, + .mask = ~((INSTPM_TEXTURE_PALETTE_LOAD_INSTRUCTION_DISABLE | +INSTPM_3D_STATE_INSTRUCTION_DISABLE | +INSTPM_3D_RENDERING_INSTRUCTION_DISABLE | +INSTPM_MEDIA_INSTRUCTION_DISABLE ) <<16 | + (INSTPM_TEXTURE_PALETTE_LOAD_INSTRUCTION_DISABLE | +INSTPM_3D_STATE_INSTRUCTION_DISABLE | +INSTPM_3D_RENDERING_INSTRUCTION_DISABLE | + INSTPM_MEDIA_INSTRUCTION_DISABLE)), + .value =0 ),REG64 (GPGPU_THREADS_DISPATCHED ),REG64 (HS_INVOCATION_COUNT ),REG64 (DS_INVOCATION_COUNT ),
@@ -1382,6 +1392,7 @@ int i915_cmd_parser_get_version(struct drm_i915_private *dev_priv)* the parser enabled. * 9. Don't whitelist or handle oacontrol specially, as ownership * for oacontrol state is moving to i915-perf. +* 10. Whitelist bits of INSTPM on Ivybridge & Haswell. */ -return 9 ; +return 10 ; }
drivers/gpu/drm/i915/i915_reg.h +5 -0
@@ -2530,7 +2530,12 @@ enum i915_power_well_id {be delivered when out of C3. */ #define INSTPM_FORCE_ORDERING (1<<7)/* GEN6+ */ #define INSTPM_TLB_INVALIDATE (1<<9) +#define INSTPM_CONSTANT_BUFFER_ADDRESS_OFFSET_DISABLE (1 << 6)/* GEN6+ */ #define INSTPM_SYNC_FLUSH (1<<5) +#define INSTPM_MEDIA_INSTRUCTION_DISABLE (1 << 3)/* GEN6+ */ +#define INSTPM_3D_RENDERING_INSTRUCTION_DISABLE (1 << 2)/* GEN6+ */ +#define INSTPM_3D_STATE_INSTRUCTION_DISABLE (1 << 1)/* GEN6+ */ +#define INSTPM_TEXTURE_PALETTE_LOAD_INSTRUCTION_DISABLE (1 << 0)/* GEN6+ */ #define ACTHD _MMIO(0x20c8)#define MEM_MODE _MMIO(0x20cc)#define MEM_DISPLAY_B_TRICKLE_FEED_DISABLE (1<<3)/* 830 only */
Signature · 6 lines
2.17.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)
== Series Details ==
== Series Details ==
Series: drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)
URL : https://patchwork.freedesktop.org/series/43420/
State : failure
== Summary ==
= CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9065 =
== Summary - FAILURE ==
Serious unknown changes coming with Patchwork_9065 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9065, 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/43420/revisions/3/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9065:
=== IGT changes ===
==== Possible regressions ====
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-kbl-7567u: SKIP -> DMESG-FAIL
==== Warnings ====
igt@kms_busy@basic-flip-a:
fi-kbl-7567u: SKIP -> PASS +30== Known issues ==
Here are the changes found in Patchwork_9065 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_flip@basic-flip-vs-modeset:
fi-hsw-4770r: PASS -> DMESG-WARN (fdo#105602)
igt@kms_frontbuffer_tracking@basic:
fi-hsw-peppy: NOTRUN -> DMESG-FAIL (fdo#106103, fdo#102614)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-snb-2520m: NOTRUN -> INCOMPLETE (fdo#103713)
fi-cnl-psr: PASS -> DMESG-WARN (fdo#104951)
==== Possible fixes ====
igt@debugfs_test@read_all_entries:
fi-snb-2520m: INCOMPLETE (fdo#103713) -> PASS
igt@gem_exec_suspend@basic-s3:
fi-kbl-7567u: DMESG-WARN (fdo#105602) -> PASS +1
igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
fi-skl-guc: FAIL (fdo#103191, fdo#104724) -> PASS fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#104951 https://bugs.freedesktop.org/show_bug.cgi?id=104951
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#106103 https://bugs.freedesktop.org/show_bug.cgi?id=106103
== Participating hosts (41 -> 39) ==
Additional (2): fi-byt-j1900 fi-hsw-peppy
Missing (4): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4212 -> Patchwork_9065
CI_DRM_4212: da383fb02111a4871806a3a31c4a5996243829a5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4488: 9367223d264bfba5b3aafc01d9b2b554d7d22f62 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9065: 5202392000386094a95062654e4d4d0deb7bb02a @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4488: 6ab75f7eb5e1dccbb773e1739beeb2d7cbd6ad0d @ git://anongit.freedesktop.org/piglit
== Linux commits ==
520239200038 drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9065/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)
URL : https://patchwork.freedesktop.org/series/43420/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4212 -> Patchwork_9069 =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9069 need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9069, 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/43420/revisions/3/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9069:
=== IGT changes ===
==== Warnings ====
igt@kms_busy@basic-flip-a:
fi-kbl-7567u: SKIP -> PASS +30== Known issues ==
Here are the changes found in Patchwork_9069 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_mmap_gtt@basic-small-bo-tiledx:
fi-gdg-551: PASS -> FAIL (fdo#102575)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-kbl-7567u: SKIP -> DMESG-FAIL (fdo#105079)
==== Possible fixes ====
igt@debugfs_test@read_all_entries:
fi-snb-2520m: INCOMPLETE (fdo#103713) -> PASS
igt@gem_exec_suspend@basic-s3:
fi-kbl-7567u: DMESG-WARN (fdo#105602) -> PASS +1
igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
fi-skl-guc: FAIL (fdo#104724, fdo#103191) -> PASS fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105079 https://bugs.freedesktop.org/show_bug.cgi?id=105079
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
== Participating hosts (41 -> 38) ==
Additional (1): fi-byt-j1900
Missing (4): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4212 -> Patchwork_9069
CI_DRM_4212: da383fb02111a4871806a3a31c4a5996243829a5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4488: 9367223d264bfba5b3aafc01d9b2b554d7d22f62 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9069: dc5d20d447738c3bddafb6c8098b84bddf008fe4 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4488: 6ab75f7eb5e1dccbb773e1739beeb2d7cbd6ad0d @ git://anongit.freedesktop.org/piglit
== Linux commits ==
dc5d20d44773 drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9069/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/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915/cmdparser: Whitelist INSTPM instruction parsing disable bits (rev3)
URL : https://patchwork.freedesktop.org/series/43420/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4212_full -> Patchwork_9069_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9069_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9069_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/43420/revisions/3/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9069_full:
=== IGT changes ===
==== Warnings ====
igt@gem_exec_schedule@deep-bsd2:
shard-kbl: PASS -> SKIP +2
igt@kms_vblank@pipe-a-ts-continuation-modeset-rpm:
shard-apl: SKIP -> PASS +29== Known issues ==
Here are the changes found in Patchwork_9069_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_flip@2x-wf_vblank-ts-check-interruptible:
shard-glk: PASS -> FAIL (fdo#100368)
igt@kms_flip_tiling@flip-to-y-tiled:
shard-glk: PASS -> FAIL (fdo#104724, fdo#103822) +2
==== Possible fixes ====
igt@kms_atomic_transition@1x-modeset-transitions-nonblocking:
shard-glk: FAIL (fdo#105703) -> PASS
igt@kms_flip_tiling@flip-x-tiled:
shard-glk: FAIL (fdo#104724) -> PASS
igt@kms_setmode@basic:
shard-apl: FAIL (fdo#99912) -> PASS
igt@kms_vblank@pipe-c-ts-continuation-suspend:
shard-apl: DMESG-WARN (fdo#103558, fdo#105602) -> PASS +3 fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103822 https://bugs.freedesktop.org/show_bug.cgi?id=103822
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105703 https://bugs.freedesktop.org/show_bug.cgi?id=105703
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (9 -> 9) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4212 -> Patchwork_9069
CI_DRM_4212: da383fb02111a4871806a3a31c4a5996243829a5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4488: 9367223d264bfba5b3aafc01d9b2b554d7d22f62 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9069: dc5d20d447738c3bddafb6c8098b84bddf008fe4 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4488: 6ab75f7eb5e1dccbb773e1739beeb2d7cbd6ad0d @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9069/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx