Re: [PATCH] powernv: Load correct TOC pointer while waking up from winkle.

2016-08-07 Thread Vaidyanathan Srinivasan
* Mahesh J Salgaonkar [2016-08-05 19:13:12]: > From: Mahesh Salgaonkar > > The function pnv_restore_hyp_resource() loads the TOC into r2 from > the invalid PACA pointer before fixing r13 value. This do not affect > POWER ISA 3.0 but it does have an impact on POWER ISA 2.07 or less > leading CPU

Re: [PATCH 09/11] powerpc/mpic: use of_property_read_bool

2016-08-07 Thread Michael Ellerman
Julia Lawall writes: > Use of_property_read_bool to check for the existence of a property. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression e1,e2; > statement S2,S1; > @@ > - if (of_get_property(e1,e2,NULL)) > + if (

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Sam Ravnborg
On Mon, Aug 08, 2016 at 01:29:03PM +1000, Nicholas Piggin wrote: > On Sat, 6 Aug 2016 22:14:23 +0200 > Sam Ravnborg wrote: > > > On Fri, Aug 05, 2016 at 10:12:00PM +1000, Nicholas Piggin wrote: > > > Introduce LINKER_DCE option for architectures to select if they want > > > to build with -ffuncti

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Sam Ravnborg
On Mon, Aug 08, 2016 at 01:19:41PM +1000, Nicholas Piggin wrote: > On Sun, 7 Aug 2016 16:40:54 +0200 > Sam Ravnborg wrote: > > > On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > > > Hi Sam, > > > > > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > > > > > >

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Nicholas Piggin
On Mon, 8 Aug 2016 00:12:37 -0400 (EDT) Nicolas Pitre wrote: > On Mon, 8 Aug 2016, Nicholas Piggin wrote: > > > On Sun, 7 Aug 2016 01:33:45 -0400 (EDT) > > Nicolas Pitre wrote: > > > > > On Fri, 5 Aug 2016, Nicholas Piggin wrote: > > > > > > > Introduce LINKER_DCE option for architectures

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Nicolas Pitre
On Mon, 8 Aug 2016, Nicholas Piggin wrote: > On Sun, 7 Aug 2016 01:33:45 -0400 (EDT) > Nicolas Pitre wrote: > > > On Fri, 5 Aug 2016, Nicholas Piggin wrote: > > > > > Introduce LINKER_DCE option for architectures to select if they want > > > to build with -ffunction-sections, -fdata-sections, a

Re: [RFC][PATCH 0/5] kbuild changes, thin archives, --gc-sections

2016-08-07 Thread Nicholas Piggin
On Sun, 07 Aug 2016 22:23:02 +0200 Arnd Bergmann wrote: > On Friday, August 5, 2016 10:11:58 PM CEST Nicholas Piggin wrote: > > Hello, > > > > I have 3 different things in this patchset. All arch specific, but all > > involve kbuild changes, so I'd like to discuss them with kbuild > > maintainer

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Nicholas Piggin
On Sun, 7 Aug 2016 01:33:45 -0400 (EDT) Nicolas Pitre wrote: > On Fri, 5 Aug 2016, Nicholas Piggin wrote: > > > Introduce LINKER_DCE option for architectures to select if they want > > to build with -ffunction-sections, -fdata-sections, and link with > > --gc-sections. It requires some work (doc

Re: [PATCH 3/5] kbuild: add arch specific post-module-link pass

2016-08-07 Thread Nicholas Piggin
On Sat, 6 Aug 2016 22:16:29 +0200 Sam Ravnborg wrote: > On Fri, Aug 05, 2016 at 10:12:01PM +1000, Nicholas Piggin wrote: > > Add an option for architectures to pass over modules after they are > > linked. powerpc will use this to fix up alternate instruction patch > > relocations. > > > > Signed

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Nicholas Piggin
On Sat, 6 Aug 2016 22:14:23 +0200 Sam Ravnborg wrote: > On Fri, Aug 05, 2016 at 10:12:00PM +1000, Nicholas Piggin wrote: > > Introduce LINKER_DCE option for architectures to select if they want > > to build with -ffunction-sections, -fdata-sections, and link with > > --gc-sections. > > Can you

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Nicholas Piggin
On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > Hi Nicholas. > > On Fri, Aug 05, 2016 at 10:11:59PM +1000, Nicholas Piggin wrote: > > From: Stephen Rothwell > > > > ld -r is an incremental link used to create built-in.o files in build > > subdirectories. It produces relocatable object

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Nicholas Piggin
On Sun, 7 Aug 2016 16:40:54 +0200 Sam Ravnborg wrote: > On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > > Hi Sam, > > > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > > > Did you by any chance evalue the use of INPUT in linker files. > > > Stephen back the

Re: [PATCH v3 19/21] powerpc: Add option to use jump label for mmu_has_feature()

2016-08-07 Thread Anton Blanchard
Hi, > From: Kevin Hao > > As we just did for CPU features. This patch causes an oops when building with the gold linker: Unable to handle kernel paging request for data at address 0xf000 Faulting instruction address: 0xc0971544 Oops: Kernel access of bad area, sig: 11 [#1]

Re: [PATCH] powerpc/eeh: Fix slot locations on NPU and legacy platforms

2016-08-07 Thread Gavin Shan
On Thu, Aug 04, 2016 at 03:01:15PM +1000, Russell Currey wrote: >The slot location code as part of EEH has never functioned perfectly on >every powerpc system. The device node properties "ibm,slot-loc", >"ibm,slot-location-code" and "ibm,io-base-loc-code" have all been >presented in different case

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Alan Modra
On Sun, Aug 07, 2016 at 10:26:19PM +0200, Arnd Bergmann wrote: > On Sunday, August 7, 2016 7:27:39 PM CEST Alan Modra wrote: > > > > If it can, then Nicholas' patch should be: > > > > *(.text.hot .text.hot.*) *(.text.unlikely .text.unlikely.*) *(.text > > .text.*) > > > > If you can't p

Re: [PATCH] powerpc/pci: Only do fixed PHB numbering on powernv

2016-08-07 Thread Gavin Shan
On Fri, Aug 05, 2016 at 04:40:56PM +1000, Michael Ellerman wrote: >The recent commit 63a72284b159 ("powerpc/pci: Assign fixed PHB number >based on device-tree properties"), added code to read a 64-bit property >from the device tree, and if not found read a 32-bit property (reg). > >There was a bug

Re: Linux 4.7: Reported regressions as of Sunday, 2016-08-07

2016-08-07 Thread Jörg-Volker Peetz
Hi Thorsten, the ext4 problem reported here https://lkml.org/lkml/2016/8/5/150 an here https://lkml.org/lkml/2016/8/3/262 seems to me to be a regression, partly, because my laptop with 4.7.0 was also hit by it but I didn't dug into it. There seems to be a remedy https://lkml.org/lkml/2016/8/5/367

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Arnd Bergmann
On Sunday, August 7, 2016 7:27:39 PM CEST Alan Modra wrote: > > If it can, then Nicholas' patch should be: > > *(.text.hot .text.hot.*) *(.text.unlikely .text.unlikely.*) *(.text > .text.*) > > If you can't put .text.fixup too far away then you may as well just use > > *(.text

Re: [RFC][PATCH 0/5] kbuild changes, thin archives, --gc-sections

2016-08-07 Thread Arnd Bergmann
On Friday, August 5, 2016 10:11:58 PM CEST Nicholas Piggin wrote: > Hello, > > I have 3 different things in this patchset. All arch specific, but all > involve kbuild changes, so I'd like to discuss them with kbuild > maintainers. The goal has been to improve long standing linking > difficulties w

Re: [PATCH 1/5] kbuild: allow architectures to use thin archives instead of ld -r

2016-08-07 Thread Sam Ravnborg
On Sun, Aug 07, 2016 at 11:49:46AM +1000, Stephen Rothwell wrote: > Hi Sam, > > On Sat, 6 Aug 2016 22:10:45 +0200 Sam Ravnborg wrote: > > > > Did you by any chance evalue the use of INPUT in linker files. > > Stephen back then (again based on proposal from Alan Modra), > > also made an implementa

Linux 4.7: Reported regressions as of Sunday, 2016-08-07

2016-08-07 Thread Thorsten Leemhuis
Hi! Here is my seventh regression report for Linux 4.7. It lists 9 regressions I'm currently aware of. 4 of them are new; 2 are stalled until the reporter provides more feedback. The report also mentions 3 regressions that were fixed since the last report. There is also 1 I plan to remove because

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Andreas Schwab
On So, Aug 07 2016, Alan Modra wrote: > At the risk of being told you (kernel people) have already considerd > this I thought I should mention that the above isn't ideal. (Nor is > gcc's choice of .text.hot for hot sections, which clashes with > --function-sections for a function called "hot" bu

Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

2016-08-07 Thread Alan Modra
On Fri, Aug 05, 2016 at 10:12:00PM +1000, Nicholas Piggin wrote: > #define TEXT_TEXT\ > ALIGN_FUNCTION(); \ > - *(.text.hot .text .text.fixup .text.unlikely) \ > +