[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9e008971-f26f-e0c5-4745-a5f4e019aea7@arm.com>
Date: Fri, 17 Sep 2021 17:57:58 +0100
From: James Morse <james.morse@....com>
To: Reinette Chatre <reinette.chatre@...el.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Cc: Fenghua Yu <fenghua.yu@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
H Peter Anvin <hpa@...or.com>,
Babu Moger <Babu.Moger@....com>,
shameerali.kolothum.thodi@...wei.com,
Jamie Iles <jamie@...iainc.com>,
D Scott Phillips OS <scott@...amperecomputing.com>,
lcherian@...vell.com, bobo.shaobowang@...wei.com
Subject: Re: [PATCH v1 03/20] x86/resctrl: Add domain online callback for
resctrl work
Hi Reinette,
On 01/09/2021 22:19, Reinette Chatre wrote:
> On 7/29/2021 3:35 PM, James Morse wrote:
>> +int resctrl_online_domain(struct rdt_resource *r, struct rdt_domain *d)
>> +{
>> +
>> + if (is_mbm_enabled()) {
>> + INIT_DELAYED_WORK(&d->mbm_over, mbm_handle_overflow);
>> + mbm_setup_overflow_handler(d, MBM_OVERFLOW_INTERVAL);
>> + }
>> +
>> + if (is_llc_occupancy_enabled())
>> + INIT_DELAYED_WORK(&d->cqm_limbo, cqm_handle_limbo);
>> +
>
> You also seem to address an issue where this work was not properly cleaned up on the error
> paths of the replaced domain_setup_mon_state(). Thank you.
Oops ... if I'd thought of it like that I'd have sent it as a fix!
(huh, it'll need a backport too, bother)
>> + /* If resctrl is mounted, add per domain monitor data directories. */
>> + if (static_branch_unlikely(&rdt_enable_key))
>
> Should this be rdt_mon_enable_key instead?
Yup, fixed.
Thanks,
James
Powered by blists - more mailing lists