Re: [Intel-gfx] [PATCH v3 4/4] drm/i915/dmc: allocate dmc structure dynamically

2023-03-01 Thread Jani Nikula
On Wed, 01 Mar 2023, Imre Deak wrote: > On Mon, Feb 27, 2023 at 07:25:21PM +0200, Jani Nikula wrote: >> sizeof(struct intel_dmc) > 1024 bytes, allocated on all platforms as >> part of struct drm_i915_private, whether they have DMC or not. >> >> Allocate struct intel_dmc dynamically, and hide all

Re: [Intel-gfx] [PATCH v3 4/4] drm/i915/dmc: allocate dmc structure dynamically

2023-03-01 Thread Imre Deak
On Mon, Feb 27, 2023 at 07:25:21PM +0200, Jani Nikula wrote: > sizeof(struct intel_dmc) > 1024 bytes, allocated on all platforms as > part of struct drm_i915_private, whether they have DMC or not. > > Allocate struct intel_dmc dynamically, and hide all the dmc details > behind an opaque pointer in

[Intel-gfx] [PATCH v3 4/4] drm/i915/dmc: allocate dmc structure dynamically

2023-02-27 Thread Jani Nikula
sizeof(struct intel_dmc) > 1024 bytes, allocated on all platforms as part of struct drm_i915_private, whether they have DMC or not. Allocate struct intel_dmc dynamically, and hide all the dmc details behind an opaque pointer in intel_dmc.c. Care must be taken to take into account all cases: DMC n