* [PATCH] powerpc: build time sort extable
@ 2016-10-07 11:29 Nicholas Piggin
2016-10-10 4:13 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Piggin @ 2016-10-07 11:29 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Nicholas Piggin
Can we just switch this on? Powerpc does not use relative extables
(that's a nice exercise left for the reader), so it should just use
the standard sort.
This patch seems to work, famous last words...
Sorting probably only takes a few ms on any real hardware, but on on
very large kernel configs, extable sorting can take several seconds in
simulators and be a noticable cost to booting.
---
arch/powerpc/Kconfig | 1 +
scripts/sortextable.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 927d2ab..2340483 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -85,6 +85,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK
config PPC
bool
default y
+ select BUILDTIME_EXTABLE_SORT
select ARCH_MIGHT_HAVE_PC_PARPORT
select ARCH_MIGHT_HAVE_PC_SERIO
select BINFMT_ELF
diff --git a/scripts/sortextable.c b/scripts/sortextable.c
index f453b7c..30337e1 100644
--- a/scripts/sortextable.c
+++ b/scripts/sortextable.c
@@ -324,6 +324,8 @@ do_file(char const *const fname)
case EM_MICROBLAZE:
case EM_MIPS:
case EM_XTENSA:
+ case EM_PPC:
+ case EM_PPC64:
break;
} /* end switch */
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc: build time sort extable
2016-10-07 11:29 [PATCH] powerpc: build time sort extable Nicholas Piggin
@ 2016-10-10 4:13 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2016-10-10 4:13 UTC (permalink / raw)
To: Nicholas Piggin, linuxppc-dev; +Cc: Nicholas Piggin
Nicholas Piggin <npiggin@gmail.com> writes:
> Can we just switch this on? Powerpc does not use relative extables
> (that's a nice exercise left for the reader), so it should just use
> the standard sort.
>
> This patch seems to work, famous last words...
Would be nice but ...
> Sorting probably only takes a few ms on any real hardware, but on on
> very large kernel configs, extable sorting can take several seconds in
> simulators and be a noticable cost to booting.
(We even carried a patch for years to speed it up.)
Blows up for me at boot:
[ OK ] Started LSB: Control pmcd (the collection daemon for PCP).
Unable to handle kernel paging request for data at address 0x00000000
Faulting instruction address: 0xc000000000062d60
cpu 0x1: Vector: 300 (Data Access) at [c0000001d6687aa0]
pc: c000000000062d60: __copy_tofrom_user_base+0x54/0x5b4
lr: c0000000000633d8: copy_from_user+0x78/0xe0
sp: c0000001d6687d20
msr: 8000000000009033
dar: 0
dsisr: 40000000
current = 0xc0000001d6601880
paca = 0xc000000007e00400 softe: 0 irq_happened: 0x01
pid = 7101, comm = docker
Linux version 4.8.0-compiler_gcc-6.2.0-11418-g4011878e4cd3 (michael@ka3.ozlabs.ibm.com) (gcc version 6.2.0 (GCC) ) #219 SMP Mon Oct 10 14:48:04 AEDT 2016
enter ? for help
[link register ] c0000000000633d8 copy_from_user+0x78/0xe0
[c0000001d6687d20] c0000001d6687d90 (unreliable)
[c0000001d6687d60] c0000000001c7358 do_seccomp+0x78/0x6d0
[c0000001d6687dd0] c0000000000dc08c SyS_prctl+0x27c/0x670
[c0000001d6687e30] c00000000000bde4 system_call+0x38/0xfc
--- Exception: c01 (System Call) at 000000001025634c
SP (c8208d6cd8) is in userspace
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-10 4:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-07 11:29 [PATCH] powerpc: build time sort extable Nicholas Piggin
2016-10-10 4:13 ` Michael Ellerman
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.