]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/topology: Simplify code for loading DSS mask
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 4 Jun 2025 20:29:06 +0000 (22:29 +0200)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 6 Jun 2025 18:47:05 +0000 (11:47 -0700)
commitf574855a4c57dbabbfa7675e0516203c51ed833b
tree69c777e2f82e0ac8e39004a9493f501fae22c82a
parent678bb4d6254895fbb1cb30d62871cb58c92dd95b
drm/xe/topology: Simplify code for loading DSS mask

Instead of passing registers using va_list we can keep them in
the static array and pass as such and also lower driver footprint:

  add/remove: 2/0 grow/shrink: 0/2 up/down: 24/-175 (-151)
  Function                                     old     new   delta
  geometry_regs                                  -      12     +12
  compute_regs                                   -      12     +12
  xe_gt_topology_init                          550     527     -23
  load_dss_mask                                449     297    -152

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20250604202908.769-2-michal.wajdeczko@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_gt_topology.c