• Cristian Marussi's avatar
    firmware: arm_scmi: Add v3.2 perf level indexing mode support · 31c7c139
    Cristian Marussi authored
    SCMI v3.2 adds PERF protocol support to optionally define performance
    domains that cannot be represented on a linear scale; the platform firmware
    can declare the performance levels of a domain as being 'level indexed' and
    provide an indicative frequency associated to each of those levels, with
    such indexes not required anymore to be contiguous nor to satisfy any
    linear-scaling constraint: when level-indexing is available for a domain,
    the platform will expect to deal with SCMI requests using indexes instead
    of performance levels for that domain.
    
    Add level-indexing mode support to the PERF protocol implementation while
    maintaining unchanged the protocol operations interface exposed by PERF;
    all the required mapping from performamce levels/frequencies to the
    corresponding level indexes is carried out transparently by the core PERF
    protocol support: as a consequence no change is either required in any
    SCMI driver using the PERF protocol, even when using level indexing.
    Signed-off-by: default avatarCristian Marussi <cristian.marussi@arm.com>
    Link: https://lore.kernel.org/r/20230717161246.1761777-3-cristian.marussi@arm.comSigned-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    31c7c139
perf.c 26.4 KB