lkml.org 
[lkml]   [2023]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v6 04/24] x86/resctrl: Move rmid allocation out of mkdir_rdt_prepare()
    From
    Hi James,

    On 9/14/2023 10:21 AM, James Morse wrote:
    > RMID are allocated for each monitor or control group directory, because
    > each of these needs its own RMID. For control groups,
    > rdtgroup_mkdir_ctrl_mon() later goes on to allocate the CLOSID.
    >
    > MPAM's equivalent of RMID is not an independent number, so can't be
    > allocated until the CLOSID is known. An RMID allocation for one CLOSID
    > may fail, whereas another may succeed depending on how many monitor
    > groups a control group has.
    >
    > The RMID allocation needs to move to be after the CLOSID has been
    > allocated.
    >
    > Move the RMID allocation out of mkdir_rdt_prepare() to occur in its caller,
    > after the mkdir_rdt_prepare() call. This allows the RMID allocator to
    > know the CLOSID.
    >
    > Reviewed-by: Shaopeng Tan <tan.shaopeng@fujitsu.com>
    > Tested-by: Shaopeng Tan <tan.shaopeng@fujitsu.com>
    > Tested-By: Peter Newman <peternewman@google.com>
    > Signed-off-by: James Morse <james.morse@arm.com>
    > ---

    Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>

    Reinette

    \
     
     \ /
      Last update: 2023-10-03 23:10    [W:4.360 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site