[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87zfvwieli.ffs@tglx>
Date: Mon, 19 Feb 2024 17:49:29 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Borislav Petkov <bp@...en8.de>, James Morse <james.morse@....com>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org, Fenghua Yu
<fenghua.yu@...el.com>, Reinette Chatre <reinette.chatre@...el.com>, Ingo
Molnar <mingo@...hat.com>, H Peter Anvin <hpa@...or.com>, Babu Moger
<Babu.Moger@....com>, shameerali.kolothum.thodi@...wei.com, D Scott
Phillips OS <scott@...amperecomputing.com>, carl@...amperecomputing.com,
lcherian@...vell.com, bobo.shaobowang@...wei.com,
tan.shaopeng@...itsu.com, baolin.wang@...ux.alibaba.com, Jamie Iles
<quic_jiles@...cinc.com>, Xin Hao <xhao@...ux.alibaba.com>,
peternewman@...gle.com, dfustini@...libre.com, amitsinght@...vell.com,
David Hildenbrand <david@...hat.com>
Subject: Re: [PATCH v9 00/24] x86/resctrl: monitored closid+rmid together,
separate arch/fs locking
On Sat, Feb 17 2024 at 11:55, Borislav Petkov wrote:
> On Tue, Feb 13, 2024 at 06:44:14PM +0000, James Morse wrote:
>> Hello!
>>
>> It's been back and forth for whether this series should be rebased onto Tony's
>> SNC series. This version isn't, its based on tip/x86/cache.
>> (I have the rebased-and-tested versions if anyone needs them)
>
> The set applied ontop of tip:x86/cache gives:
>
> vmlinux.o: in function `get_domain_from_cpu':
> (.text+0x150f33): undefined reference to `lockdep_is_cpus_held'
> ld: vmlinux.o: in function `rdt_ctrl_update':
> (.text+0x150fbc): undefined reference to `lockdep_is_cpus_held'
Wants to be folded into patch 24.
Thanks,
tglx
---
--- a/arch/x86/kernel/cpu/resctrl/core.c
+++ b/arch/x86/kernel/cpu/resctrl/core.c
@@ -368,8 +368,8 @@ struct rdt_domain *get_domain_from_cpu(i
* about locks this thread holds will lead to false positives. Check
* someone is holding the CPUs lock.
*/
- if (IS_ENABLED(CONFIG_LOCKDEP))
- lockdep_is_cpus_held();
+ if (IS_ENABLED(CONFIG_HOTPLUG_CPU) && IS_ENABLED(CONFIG_LOCKDEP))
+ WARN_ON_ONCE(!lockdep_is_cpus_held());
list_for_each_entry(d, &r->domains, list) {
/* Find the domain that contains this CPU */
Powered by blists - more mailing lists