Re: [Intel-gfx] [PATCH 1/3] drm/i915/mocs: use to_gt() instead of direct >gt

2023-10-03 Thread Andi Shyti
Hi Jani, On Mon, Oct 02, 2023 at 11:47:02AM +0300, Jani Nikula wrote: > Have to give up the const on i915 pointer, but it's not big of a deal > considering non-const i915 gets passed all over the place. > > Signed-off-by: Jani Nikula Reviewed-by: Andi Shyti Thanks, Andi

Re: [Intel-gfx] [PATCH 1/3] drm/i915/mocs: use to_gt() instead of direct >gt

2023-10-02 Thread Gustavo Sousa
Quoting Jani Nikula (2023-10-02 05:47:02-03:00) >Have to give up the const on i915 pointer, but it's not big of a deal What if patch #2 ("drm/i915: allocate i915->gt0 dynamically") was the first in the series? I see it changes to_gt() to receive a const struct drm_i915_private *i915. Either way,

[Intel-gfx] [PATCH 1/3] drm/i915/mocs: use to_gt() instead of direct >gt

2023-10-02 Thread Jani Nikula
Have to give up the const on i915 pointer, but it's not big of a deal considering non-const i915 gets passed all over the place. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_mocs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git