From: kernel test robot <lkp@intel.com>
To: Rik van Riel <riel@surriel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC v2 7/9] x86/mm: Introduce Remote Action Request
Date: Tue, 20 May 2025 22:58:47 +0800 [thread overview]
Message-ID: <202505202234.iwMSJRin-lkp@intel.com> (raw)
In-Reply-To: <20250520010350.1740223-8-riel@surriel.com>
Hi Rik,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on tip/master]
[also build test ERROR on linus/master v6.15-rc7 next-20250516]
[cannot apply to tip/x86/core tip/x86/mm tip/auto-latest]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Rik-van-Riel/x86-mm-Introduce-MSR_IA32_CORE_CAPABILITIES/20250520-090600
base: tip/master
patch link: https://lore.kernel.org/r/20250520010350.1740223-8-riel%40surriel.com
patch subject: [RFC v2 7/9] x86/mm: Introduce Remote Action Request
config: x86_64-buildonly-randconfig-001-20250520 (https://download.01.org/0day-ci/archive/20250520/202505202234.iwMSJRin-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250520/202505202234.iwMSJRin-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505202234.iwMSJRin-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/x86/mm/rar.c: In function 'smp_call_rar_many':
>> arch/x86/mm/rar.c:167:17: error: implicit declaration of function 'arch_send_rar_single_ipi' [-Werror=implicit-function-declaration]
167 | arch_send_rar_single_ipi(cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/mm/rar.c:188:9: error: implicit declaration of function 'arch_send_rar_ipi_mask' [-Werror=implicit-function-declaration]
188 | arch_send_rar_ipi_mask(dest_mask);
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/arch_send_rar_single_ipi +167 arch/x86/mm/rar.c
123
124 /*
125 * This is a modified version of smp_call_function_many() of kernel/smp.c,
126 * without a function pointer, because the RAR handler is the ucode.
127 */
128 void smp_call_rar_many(const struct cpumask *mask, u16 pcid,
129 unsigned long start, unsigned long end)
130 {
131 unsigned long pages = (end - start + PAGE_SIZE) / PAGE_SIZE;
132 int cpu, next_cpu, this_cpu = smp_processor_id();
133 cpumask_t *dest_mask;
134 unsigned long idx;
135
136 if (pages > RAR_INVLPG_MAX_PAGES || end == TLB_FLUSH_ALL)
137 pages = RAR_INVLPG_MAX_PAGES;
138
139 /*
140 * Can deadlock when called with interrupts disabled.
141 * We allow cpu's that are not yet online though, as no one else can
142 * send smp call function interrupt to this cpu and as such deadlocks
143 * can't happen.
144 */
145 WARN_ON_ONCE(cpu_online(this_cpu) && irqs_disabled()
146 && !oops_in_progress && !early_boot_irqs_disabled);
147
148 /* Try to fastpath. So, what's a CPU they want? Ignoring this one. */
149 cpu = cpumask_first_and(mask, cpu_online_mask);
150 if (cpu == this_cpu)
151 cpu = cpumask_next_and(cpu, mask, cpu_online_mask);
152
153 /* No online cpus? We're done. */
154 if (cpu >= nr_cpu_ids)
155 return;
156
157 /* Do we have another CPU which isn't us? */
158 next_cpu = cpumask_next_and(cpu, mask, cpu_online_mask);
159 if (next_cpu == this_cpu)
160 next_cpu = cpumask_next_and(next_cpu, mask, cpu_online_mask);
161
162 /* Fastpath: do that cpu by itself. */
163 if (next_cpu >= nr_cpu_ids) {
164 idx = get_payload();
165 set_payload(idx, pcid, start, pages);
166 set_action_entry(idx, cpu);
> 167 arch_send_rar_single_ipi(cpu);
168 wait_for_done(idx, cpu);
169 free_payload(idx);
170 return;
171 }
172
173 dest_mask = this_cpu_ptr(&rar_cpu_mask);
174 cpumask_and(dest_mask, mask, cpu_online_mask);
175 cpumask_clear_cpu(this_cpu, dest_mask);
176
177 /* Some callers race with other cpus changing the passed mask */
178 if (unlikely(!cpumask_weight(dest_mask)))
179 return;
180
181 idx = get_payload();
182 set_payload(idx, pcid, start, pages);
183
184 for_each_cpu(cpu, dest_mask)
185 set_action_entry(idx, cpu);
186
187 /* Send a message to all CPUs in the map */
> 188 arch_send_rar_ipi_mask(dest_mask);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-05-20 14:59 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 1:02 [RFC v2 PATCH 0/9] Intel RAR TLB invalidation Rik van Riel
2025-05-20 1:02 ` [RFC v2 1/9] x86/mm: Introduce MSR_IA32_CORE_CAPABILITIES Rik van Riel
2025-05-21 14:57 ` Dave Hansen
2025-05-22 15:10 ` Sean Christopherson
2025-05-20 1:02 ` [RFC v2 2/9] x86/mm: Introduce Remote Action Request MSRs Rik van Riel
2025-05-21 11:49 ` Borislav Petkov
2025-05-20 1:02 ` [RFC v2 3/9] x86/mm: enable BROADCAST_TLB_FLUSH on Intel, too Rik van Riel
2025-05-20 1:02 ` [RFC v2 4/9] x86/mm: Introduce X86_FEATURE_RAR Rik van Riel
2025-05-21 11:53 ` Borislav Petkov
2025-05-21 13:57 ` Rik van Riel
2025-05-21 14:53 ` Borislav Petkov
2025-05-21 16:06 ` Rik van Riel
2025-05-21 19:39 ` Borislav Petkov
2025-05-20 1:02 ` [RFC v2 5/9] x86/mm: Change cpa_flush() to call flush_kernel_range() directly Rik van Riel
2025-05-21 11:54 ` Borislav Petkov
2025-05-21 15:16 ` Dave Hansen
2025-05-20 1:02 ` [RFC v2 6/9] x86/apic: Introduce Remote Action Request Operations Rik van Riel
2025-05-20 9:16 ` Ingo Molnar
2025-06-04 0:11 ` Rik van Riel
2025-05-21 15:28 ` Dave Hansen
2025-05-21 15:59 ` Rik van Riel
2025-05-20 1:02 ` [RFC v2 7/9] x86/mm: Introduce Remote Action Request Rik van Riel
2025-05-20 9:28 ` Ingo Molnar
2025-05-20 12:57 ` Rik van Riel
2025-05-24 9:22 ` Ingo Molnar
2025-05-20 11:29 ` Nadav Amit
2025-05-20 13:00 ` Rik van Riel
2025-05-20 20:26 ` Nadav Amit
2025-05-20 20:31 ` Rik van Riel
2025-05-20 14:58 ` kernel test robot [this message]
2025-05-21 16:38 ` Dave Hansen
2025-05-21 19:06 ` Thomas Gleixner
2025-06-03 20:08 ` Rik van Riel
2025-05-20 1:02 ` [RFC v2 8/9] x86/mm: use RAR for kernel TLB flushes Rik van Riel
2025-05-20 1:02 ` [RFC v2 9/9] x86/mm: userspace & pageout flushing using Intel RAR Rik van Riel
2025-05-20 2:48 ` [RFC v2.1 " Rik van Riel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202505202234.iwMSJRin-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=riel@surriel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.