• Matt Roper's avatar
    drm/i915/sseu: Don't overallocate subslice storage · 144ce0ac
    Matt Roper authored
    Xe_HP removed "slice" as a first-class unit in the hardware design.
    Instead we now have a single pool of subslices (which are now referred
    to as "DSS") that different hardware units have different ways of
    grouping ("compute slices," "geometry slices," etc.).  For the purposes
    of topology representation, we treat Xe_HP-based platforms as having a
    single slice that contains all of the platform's DSS.  There's no need
    to allocate storage space for (max legacy slices * max dss); let's
    update some of our macros to minimize the storage requirement for sseu
    topology.  We'll also document some of the constants to make it a little
    bit more clear what they represent.
    
    v2:
     - s/LEGACY/HSW/ in macro names.  (Lucas)
     - Rename MAX() to SSEU_MAX() to avoid any potential clashes with other
       definitions elsewhere.  Unfortunately max()/max_t() from
       linux/minmax.h cannot be used in this context.  (Lucas)
    Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
    Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220311225459.385515-1-matthew.d.roper@intel.com
    144ce0ac
intel_sseu.h 3.89 KB