All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: export cpu_smallcore_map for modules
@ 2022-08-19 21:01 ` Randy Dunlap
  0 siblings, 0 replies; 21+ messages in thread
From: Randy Dunlap @ 2022-08-19 21:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: Gautham R . Shenoy, amd-gfx, Michael Ellerman, Felix Kuehling,
	Randy Dunlap, Pan, Xinhui, Christophe Leroy, Nicholas Piggin,
	Alex Deucher, linuxppc-dev, Christian König

Fix build error when CONFIG_DRM_AMDGPU=m:

ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

by exporting 'cpu_smallcore_map' just as other per_cpu
symbols are exported.

drivers/gpu/drm/amd/amdkfd/kfd_device.c calls cpu_smt_mask().
This is an inline function on powerpc which references
cpu_smallcore_map.

Fixes: 425752c63b6f ("powerpc: Detect the presence of big-cores via "ibm, thread-groups"")
Fixes: 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: amd-gfx@lists.freedesktop.org
Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
---
 arch/powerpc/kernel/smp.c |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m
 static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map);
 
 EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);
+EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map);
 EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map);
 EXPORT_PER_CPU_SYMBOL(cpu_core_map);
 EXPORT_SYMBOL_GPL(has_big_cores);

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-08-22 13:32 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-19 21:01 [PATCH] powerpc: export cpu_smallcore_map for modules Randy Dunlap
2022-08-19 21:01 ` Randy Dunlap
2022-08-19 21:01 ` Randy Dunlap
2022-08-19 22:14 ` Felix Kuehling
2022-08-19 22:14   ` Felix Kuehling
2022-08-19 22:14   ` Felix Kuehling
2022-08-19 22:18 ` Alex Deucher
2022-08-19 22:18   ` Alex Deucher
2022-08-19 22:18   ` Alex Deucher
2022-08-22  3:40 ` Michael Ellerman
2022-08-22  3:40   ` Michael Ellerman
2022-08-22  3:40   ` Michael Ellerman
2022-08-22  3:53   ` Randy Dunlap
2022-08-22  3:53     ` Randy Dunlap
2022-08-22  3:53     ` Randy Dunlap
2022-08-22 11:30   ` Christoph Hellwig
2022-08-22 11:30     ` Christoph Hellwig
2022-08-22 11:30     ` Christoph Hellwig
2022-08-22 13:31     ` Alex Deucher
2022-08-22 13:31       ` Alex Deucher
2022-08-22 13:31       ` Alex Deucher

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.