Bug 110470 - [drm/i915/icl]media driver see gpu hang issue caused by WaEnableStateCacheRedirectToCS context workaround configure for the L3 cache
Summary: [drm/i915/icl]media driver see gpu hang issue caused by WaEnableStateCacheRed...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged, ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-19 08:33 UTC by lvli
Modified: 2019-05-17 07:14 UTC (History)
1 user (show)

See Also:
i915 platform: ICL
i915 features: GPU hang


Attachments
attached finding root cause (30.02 KB, image/jpeg)
2019-04-19 08:33 UTC, lvli
no flags Details

Description lvli 2019-04-19 08:33:52 UTC
Created attachment 144044 [details]
attached finding root cause

Media driver see gpu hang randomly for VME cases.

The issue is root caused. The reason is conflicting Settings of L3 were used in UMD and KMD.
In picture 1 is the setting of KMD in function icl_ctx_workarounds_init, which enabled  State Cache redirect to CS Command buffer section(bit11 of MMIO 0x731C). However,  the L3 configuration of UMD(in Picture2) didn't assign any space for CS Command buffer.
I tried to remove the WaEnableStateCacheRedirectToCS in KMD, the issue is gone.
 


WaEnableStateCacheRedirectToCS context workaround configures the L3 cache to benefit 3d workloads but media has different requirements.
Comment 1 lvli 2019-04-19 08:45:08 UTC
Ursulin, Tvrtko filed related task in jira for this bug:
https://jira.devtools.intel.com/browse/VLK-2487
Comment 2 Chris Wilson 2019-04-19 08:50:15 UTC
Please review the fix https://patchwork.freedesktop.org/patch/300577/?series=59494&rev=2 and make sure it does the right thing for your workloads.
Comment 3 Tvrtko Ursulin 2019-04-30 12:40:19 UTC
Patch merged to drm-tip.
Comment 4 Jani Saarinen 2019-05-13 06:08:54 UTC
Trvtko, do we expect this already fixed and reporter to verify this. Did this solved issues and can be verified and closed?
Comment 5 lvli 2019-05-17 07:14:06 UTC
Test with ICL_Kernel_18.04_DIS465 and issue fixed. 
close it


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.