drm/i915/gvt: remove skl_misc_ctl_write handler
PATCH 1/1 drm/i915/gvt: remove skl_misc_ctl_write handler
With different settings of compressed data hash mode between VMs and host may cause gpu issues.
Commit: 1999f108c ("drm/i915/gvt: Disable compression workaround for Gen9") disable compression workaround of guest in gvt host to align with host.
Commit: 93564044f ("drm/i915: Switch over to the LLC/eLLC hotspot avoidance hash mode for CCS") add compression workaround, then we can remove the skl_misc_ctl_write hanlder.
Better solution should be always keeping same settings as host, and bypass the write request from VMs, but it need to fetch data from host's "Context".
--- drivers/gpu/drm/i915/gvt/handlers.c | 45 +++++-------------------------------- 1 file changed, 5 insertions(+), 40 deletions(-)
drivers/gpu/drm/i915/gvt/handlers.c +5 -40
@@ -1420,40 +1420,6 @@ static int skl_power_well_ctl_write(struct intel_vgpu *vgpu,return intel_vgpu_default_mmio_write (vgpu, offset, &v, bytes); } -static int skl_misc_ctl_write (struct intel_vgpu *vgpu,unsigned int offset, -void *p_data,unsigned int bytes) -{ -struct drm_i915_private *dev_priv = vgpu->gvt->dev_priv; -u32 v = *(u32 *)p_data; - -if (!IS_SKYLAKE (dev_priv) && !IS_KABYLAKE (dev_priv)) -return intel_vgpu_default_mmio_write (vgpu, - offset, p_data, bytes); - -switch (offset) { -case 0x4ddc : -/* bypass WaCompressedResourceSamplerPbeMediaNewHashMode */ -vgpu_vreg (vgpu, offset) = v & ~(1 <<31 ); -break ; -case 0x42080 : -/* bypass WaCompressedResourceDisplayNewHashMode */ -vgpu_vreg (vgpu, offset) = v & ~(1 <<15 ); -break ; -case 0xe194 : -/* bypass WaCompressedResourceSamplerPbeMediaNewHashMode */ -vgpu_vreg (vgpu, offset) = v & ~(1 <<8 ); -break ; -case 0x7014 : -/* bypass WaCompressedResourceSamplerPbeMediaNewHashMode */ -vgpu_vreg (vgpu, offset) = v & ~(1 <<13 ); -break ; -default : -return -EINVAL ; - } - -return 0 ; -} -static int skl_lcpll_write (struct intel_vgpu *vgpu,unsigned int offset,void *p_data,unsigned int bytes) {
@@ -1740,8 +1706,8 @@ static int init_generic_mmio_info(struct intel_gvt *gvt)MMIO_DFH (GAM_ECOCHK ,D_ALL ,F_CMD_ACCESS ,NULL ,NULL );MMIO_DFH (GEN7_COMMON_SLICE_CHICKEN1 ,D_ALL ,F_MODE_MASK |F_CMD_ACCESS ,NULL ,NULL ); -MMIO_DFH (COMMON_SLICE_CHICKEN2 ,D_ALL ,F_MODE_MASK |F_CMD_ACCESS ,NULL , - skl_misc_ctl_write); +MMIO_DFH (COMMON_SLICE_CHICKEN2 ,D_ALL ,F_MODE_MASK |F_CMD_ACCESS , +NULL ,NULL );MMIO_DFH (0x9030 ,D_ALL ,F_CMD_ACCESS ,NULL ,NULL );MMIO_DFH (0x20a0 ,D_ALL ,F_CMD_ACCESS ,NULL ,NULL );MMIO_DFH (0x2420 ,D_ALL ,F_CMD_ACCESS ,NULL ,NULL );
@@ -2633,8 +2599,7 @@ static int init_broadwell_mmio_info(struct intel_gvt *gvt)MMIO_D (0x6e570 ,D_BDW_PLUS );MMIO_D (0x65f10 ,D_BDW_PLUS ); -MMIO_DFH (0xe194 ,D_BDW_PLUS ,F_MODE_MASK |F_CMD_ACCESS ,NULL , - skl_misc_ctl_write); +MMIO_DFH (0xe194 ,D_BDW_PLUS ,F_MODE_MASK |F_CMD_ACCESS ,NULL ,NULL );MMIO_DFH (0xe188 ,D_BDW_PLUS ,F_MODE_MASK |F_CMD_ACCESS ,NULL ,NULL );MMIO_DFH (HALF_SLICE_CHICKEN2 ,D_BDW_PLUS ,F_MODE_MASK |F_CMD_ACCESS ,NULL ,NULL );MMIO_DFH (0x2580 ,D_BDW_PLUS ,F_MODE_MASK |F_CMD_ACCESS ,NULL ,NULL );
@@ -2684,8 +2649,8 @@ static int init_skl_mmio_info(struct intel_gvt *gvt)MMIO_D (GEN9_MEDIA_PG_IDLE_HYSTERESIS ,D_SKL_PLUS );MMIO_D (GEN9_RENDER_PG_IDLE_HYSTERESIS ,D_SKL_PLUS );MMIO_DFH (GEN9_GAMT_ECO_REG_RW_IA ,D_SKL_PLUS ,F_CMD_ACCESS ,NULL ,NULL ); -MMIO_DH (0x4ddc ,D_SKL_PLUS ,NULL , skl_misc_ctl_write); -MMIO_DH (0x42080 ,D_SKL_PLUS ,NULL , skl_misc_ctl_write); +MMIO_DH (0x4ddc ,D_SKL_PLUS ,NULL ,NULL ); +MMIO_DH (0x42080 ,D_SKL_PLUS ,NULL ,NULL );MMIO_D (0x45504 ,D_SKL_PLUS );MMIO_D (0x45520 ,D_SKL_PLUS );MMIO_D (0x46000 ,D_SKL_PLUS );
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/gvt: remove skl_misc_ctl_write handler
== Series Details ==
== Series Details ==
Series: drm/i915/gvt: remove skl_misc_ctl_write handler
URL : https://patchwork.freedesktop.org/series/34076/
State : success
== Summary ==
Series 34076v1 drm/i915/gvt: remove skl_misc_ctl_write handler
https://patchwork.freedesktop.org/api/1.0/series/34076/revisions/1/mbox/
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
incomplete -> PASS (fi-snb-2520m) fdo#103713fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:442s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:452s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:382s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:543s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:277s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:507s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:510s fi-byt-j1900 total:289 pass:254 dwarn:0 dfail:0 fail:0 skip:35 time:490s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:266s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:537s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:426s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:437s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:429s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:488s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:459s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:485s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:532s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:478s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:533s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:579s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:455s fi-skl-6600u total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:544s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:565s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:513s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:496s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:459s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:569s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:428s Blacklisted hosts: fi-cfl-s2 total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:604s fi-glk-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:494s
fi-byt-n2820 failed to collect. IGT log at Patchwork_7195/fi-byt-n2820/igt.log
b4da24717364bc69bb981a1536be64413a582f3a drm-tip: 2017y-11m-17d-22h-46m-53s UTC integration manifest 1d53d6f53a95 drm/i915/gvt: remove skl_misc_ctl_write handler
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7195/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915/gvt: remove skl_misc_ctl_write handler
In reply to Weinan Li== Series Details ==
== Series Details ==
Series: drm/i915/gvt: remove skl_misc_ctl_write handler
URL : https://patchwork.freedesktop.org/series/34076/
State : success
== Summary ==
Test kms_flip:
Subgroup wf_vblank-vs-modeset-interruptible:
dmesg-warn -> PASS (shard-hsw) fdo#102614
Subgroup vblank-vs-suspend-interruptible:
pass -> SKIP (shard-hsw) fdo#100368
Test drv_selftest:
Subgroup mock_sanitycheck:
pass -> DMESG-WARN (shard-snb) fdo#103717
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-offscren-pri-shrfb-draw-render:
fail -> PASS (shard-snb) fdo#101623fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103717 https://bugs.freedesktop.org/show_bug.cgi?id=103717
fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623
shard-hsw total:2585 pass:1474 dwarn:1 dfail:1 fail:9 skip:1100 time:9429s shard-snb total:2585 pass:1260 dwarn:2 dfail:1 fail:11 skip:1311 time:8086s Blacklisted hosts: shard-apl total:2490 pass:1555 dwarn:2 dfail:0 fail:23 skip:909 time:12411s shard-kbl total:2493 pass:1651 dwarn:4 dfail:0 fail:21 skip:816 time:10180s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7195/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx