Re: [PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-06-27 Thread Yang, Fei
> On 27/06/2023 14:28, Jani Nikula wrote: >> On Tue, 09 May 2023, fei.y...@intel.com wrote: >>> From: Fei Yang >>> >>> This patch is a preparation for replacing enum i915_cache_level with >>> PAT index. Caching policy for buffer objects is set through the PAT >>> index in PTE, the old

Re: [PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-06-27 Thread Yang, Fei
> Hi Jani and Tvrtko, > This patch is a preparation for replacing enum i915_cache_level with PAT index. Caching policy for buffer objects is set through the PAT index in PTE, the old i915_cache_level is not sufficient to represent all caching modes supported by the hardware.

Re: [PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-06-27 Thread Jani Nikula
On Tue, 27 Jun 2023, Andi Shyti wrote: > Tvrtko wrote: >> I'd simply suggest having a local static const table for the mock device. It >> should be trivial once i915->__info becomes a pointer so in that series I >> guess. That's a great idea, thanks! > Fei... do you have bandwidth to look into

Re: [PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-06-27 Thread Andi Shyti
Hi Jani and Tvrtko, > > > This patch is a preparation for replacing enum i915_cache_level with PAT > > > index. Caching policy for buffer objects is set through the PAT index in > > > PTE, the old i915_cache_level is not sufficient to represent all caching > > > modes supported by the hardware. >

Re: [PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-06-27 Thread Tvrtko Ursulin
On 27/06/2023 14:28, Jani Nikula wrote: On Tue, 09 May 2023, fei.y...@intel.com wrote: From: Fei Yang This patch is a preparation for replacing enum i915_cache_level with PAT index. Caching policy for buffer objects is set through the PAT index in PTE, the old i915_cache_level is not

Re: [PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-06-27 Thread Jani Nikula
On Tue, 09 May 2023, fei.y...@intel.com wrote: > From: Fei Yang > > This patch is a preparation for replacing enum i915_cache_level with PAT > index. Caching policy for buffer objects is set through the PAT index in > PTE, the old i915_cache_level is not sufficient to represent all caching >

[PATCH v8 1/2] drm/i915: preparation for using PAT index

2023-05-09 Thread fei . yang
From: Fei Yang This patch is a preparation for replacing enum i915_cache_level with PAT index. Caching policy for buffer objects is set through the PAT index in PTE, the old i915_cache_level is not sufficient to represent all caching modes supported by the hardware. Preparing the transition by