Re: [Intel-gfx] [PATCH v5 2/5] drm/i915: use pat_index instead of cache_level

2023-05-06 Thread Yang, Fei
static u64 mtl_pte_encode(dma_addr_t addr, - enum i915_cache_level level, + unsigned int pat_index, u32 flags) >>> Prototype and implementation changed here for mtl_pte_encode. >>> >>> And we have: >>> >>

Re: [Intel-gfx] [PATCH v5 2/5] drm/i915: use pat_index instead of cache_level

2023-05-05 Thread Tvrtko Ursulin
On 04/05/2023 17:06, Yang, Fei wrote: > On 04/05/2023 00:02, fei.y...@intel.com wrote: >> From: Fei Yang >> >> Currently the KMD is using enum i915_cache_level to set caching policy for >> buffer objects. This is flaky because the PAT index which really controls >> the caching behavior

Re: [Intel-gfx] [PATCH v5 2/5] drm/i915: use pat_index instead of cache_level

2023-05-04 Thread Yang, Fei
> On 04/05/2023 00:02, fei.y...@intel.com wrote: >> From: Fei Yang >> >> Currently the KMD is using enum i915_cache_level to set caching policy for >> buffer objects. This is flaky because the PAT index which really controls >> the caching behavior in PTE has far more levels than what's defined in

Re: [Intel-gfx] [PATCH v5 2/5] drm/i915: use pat_index instead of cache_level

2023-05-04 Thread Tvrtko Ursulin
On 04/05/2023 00:02, fei.y...@intel.com wrote: From: Fei Yang Currently the KMD is using enum i915_cache_level to set caching policy for buffer objects. This is flaky because the PAT index which really controls the caching behavior in PTE has far more levels than what's defined in the enum. I

[Intel-gfx] [PATCH v5 2/5] drm/i915: use pat_index instead of cache_level

2023-05-03 Thread fei . yang
From: Fei Yang Currently the KMD is using enum i915_cache_level to set caching policy for buffer objects. This is flaky because the PAT index which really controls the caching behavior in PTE has far more levels than what's defined in the enum. In addition, the PAT index is platform dependent, ha