Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Nicholas Piggin
On Fri, 05 Aug 2016 21:16:00 +0200 Arnd Bergmann wrote: > On Saturday, August 6, 2016 2:16:42 AM CEST Nicholas Piggin wrote: > > > > > > diff --git a/include/asm-generic/vmlinux.lds.h > > > b/include/asm-generic/vmlinux.lds.h > > > index 0ec807d69f18..7a3ad269fa23 100644 > > > --- a/include/asm

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

2016-08-05 Thread kbuild test robot
Hi Stephen, [auto build test ERROR on kbuild/for-next] [also build test ERROR on v4.7] [cannot apply to linus/master linux/master next-20160805] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

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

2016-08-05 Thread Mahesh Jagannath Salgaonkar
On 08/06/2016 04:08 AM, Benjamin Herrenschmidt wrote: > On Fri, 2016-08-05 at 19:13 +0530, Mahesh J Salgaonkar wrote: >> 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

Re: Internal CompactFlash (CF) card device not recognised after the powerpc-4.8-1 merge

2016-08-05 Thread Darren Stevens
Hello Nicholas On 06/08/2016, Nicholas Piggin wrote: > On Fri, 5 Aug 2016 16:38:17 +0200 > Christian Zigotzky wrote: > >> Hi All, > > > Hi Christian, [...] > As for your driver support, it would indeed be a good idea to > get it supported in the upstream kernel. You should post a > new mail about

Re: [PATCH v3 2/2] powernv: Fix MCE handler to avoid trashing CR0/CR1 registers.

2016-08-05 Thread Benjamin Herrenschmidt
On Fri, 2016-08-05 at 17:34 +0530, Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > The current implementation of MCE early handling modifies CR0/1 > registers > without saving its old values. Fix this by moving early check for > powersaving mode to machine_check_handle_early(). CC stabl

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

2016-08-05 Thread Benjamin Herrenschmidt
On Fri, 2016-08-05 at 19:13 +0530, Mahesh J Salgaonkar wrote: > 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 les

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread Scott Wood
On Fri, 2016-08-05 at 21:20 +, york sun wrote: > On 08/05/2016 02:09 PM, Scott Wood wrote: > > > > On Fri, 2016-08-05 at 20:29 +, york sun wrote: > > > > > > On 08/04/2016 08:43 PM, Michael Ellerman wrote: > > > > > > > > > > > > Does the driver really need to use these routines? They'r

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/05/2016 02:09 PM, Scott Wood wrote: > On Fri, 2016-08-05 at 20:29 +, york sun wrote: >> On 08/04/2016 08:43 PM, Michael Ellerman wrote: >>> >>> Does the driver really need to use these routines? They're meant for use >>> early in boot, before PCI is setup. >>> >>> AFAICS this is just a re

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread Scott Wood
On Fri, 2016-08-05 at 20:29 +, york sun wrote: > On 08/04/2016 08:43 PM, Michael Ellerman wrote: > > > > Does the driver really need to use these routines? They're meant for use > > early in boot, before PCI is setup. > > > > AFAICS this is just a regular driver, so when it's probed the PCI >

Re: [PATCH v2 3/3] kexec: extend kexec_file_load system call

2016-08-05 Thread Thiago Jung Bauermann
Hi, Am Dienstag, 26 Juli 2016, 21:24:29 schrieb Thiago Jung Bauermann: > Notes: > This is a new version of the last patch in this series which adds > a function where each architecture can verify if the DTB is safe > to load: > > int __weak arch_kexec_verify_buffer(enum kexec_file

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/04/2016 08:43 PM, Michael Ellerman wrote: > York Sun writes: > >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun >> >> --- >> Change log >> v3: Change subject tag >> v2: no change >> >> arch/powerpc/kernel/pci-common.c | 2 ++ >> 1 f

Re: [patch] powerpc/fsl_rio: fix a missing error code

2016-08-05 Thread Dan Carpenter
On Thu, Aug 04, 2016 at 01:16:00PM -0700, Andrew Morton wrote: > On Thu, 4 Aug 2016 08:35:25 +0300 Dan Carpenter > wrote: > > > We should set the error code here. Otherwise static checkers complain. > > > > hm. > > > --- a/arch/powerpc/sysdev/fsl_rio.c > > +++ b/arch/powerpc/sysdev/fsl_rio.c

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Arnd Bergmann
On Saturday, August 6, 2016 2:16:42 AM CEST Nicholas Piggin wrote: > > > > diff --git a/include/asm-generic/vmlinux.lds.h > > b/include/asm-generic/vmlinux.lds.h > > index 0ec807d69f18..7a3ad269fa23 100644 > > --- a/include/asm-generic/vmlinux.lds.h > > +++ b/include/asm-generic/vmlinux.lds.h > >

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/04/2016 04:36 PM, Andrew Donnellan wrote: > On 05/08/16 08:58, York Sun wrote: >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun > > Good catch! One comment below. > > Reviewed-by: Andrew Donnellan > >> /* >> * Reads the interrupt pin

Re: [PATCH 2/2] powerpc/pseries: Dynamically increase RMA size

2016-08-05 Thread Paul Clarke
Only nits from me...(see below) On 08/05/2016 01:30 PM, Sukadev Bhattiprolu wrote: Here is an updated patch to fix the build when CONFIG_PPC_PSERIES=n. --- From d4f77a6ca7b6ea83f6588e7d541cc70bf001ae85 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Aug 2016 23:13:37 -0400 Subject: [PATCH 2/2]

RE: [PATCH V2 7/7] thermal: qoriq: Add thermal management support

2016-08-05 Thread Hongtao Jia
Hi Eduardo, If you have any comments please let me know. Thanks. -Hongtao. > -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+b38951=freescale@lists.ozlabs.org] On Behalf Of Hongtao Jia > Sent: Tuesday, July 19, 2016 2:54 PM > To: edubez...@gmail.com; rui.zh.

Re: [PATCH 2/2] powerpc/pseries: Dynamically increase RMA size

2016-08-05 Thread Sukadev Bhattiprolu
Here is an updated patch to fix the build when CONFIG_PPC_PSERIES=n. --- >From d4f77a6ca7b6ea83f6588e7d541cc70bf001ae85 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Aug 2016 23:13:37 -0400 Subject: [PATCH 2/2] powerpc/pseries: Dynamically grow RMA size When booting a very large system with a

Re: [PATCH v13 3/6] CPM/QE: use genalloc to manage CPM/QE muram

2016-08-05 Thread Christophe Leroy
Le 30/11/2015 à 03:48, Zhao Qiang a écrit : Use genalloc to manage CPM/QE muram instead of rheap. Signed-off-by: Zhao Qiang --- Changes for v9: - splitted from patch 3/5, modify cpm muram management functions. Changes for v10: - modify cpm muram first, then move to qe_common

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Nicholas Piggin
On Fri, 05 Aug 2016 18:01:13 +0200 Arnd Bergmann wrote: > On Friday, August 5, 2016 10:26:25 PM CEST Nicholas Piggin wrote: > > On Fri, 05 Aug 2016 12:17:27 +0200 > > Arnd Bergmann wrote: > > > > and I also get link errors for the .text.fixup section > > > for any users of __put_user() in rea

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Arnd Bergmann
On Friday, August 5, 2016 10:26:25 PM CEST Nicholas Piggin wrote: > On Fri, 05 Aug 2016 12:17:27 +0200 > Arnd Bergmann wrote: > > and I also get link errors for the .text.fixup section > > for any users of __put_user() in really large kernels: > > net/batman-adv/batman-adv.o:(.text.fixup+0x4): re

Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-05 Thread Petko Manolov
On 16-08-05 09:34:38, Mimi Zohar wrote: > Hi Petko, > > Thank you for review! > > On Fri, 2016-08-05 at 11:44 +0300, Petko Manolov wrote: > > On 16-08-04 08:24:29, Mimi Zohar wrote: > > > The TPM PCRs are only reset on a hard reboot. In order to validate a > > > TPM's quote after a soft reboot (

Re: [pasemi] Internal CompactFlash (CF) card device not recognised after the powerpc-4.8-1 merge

2016-08-05 Thread Nicholas Piggin
On Fri, 5 Aug 2016 16:38:17 +0200 Christian Zigotzky wrote: > Hi All, Hi Christian, Firstly, thanks for the report. As a suggestion, it can be better to reduce the CC list unless you have found a specific commit that causes the problem. powerpc developers read this list so you can send initial

[pasemi] Problem with the PA Semi PWRficient Gigabit Ethernet

2016-08-05 Thread Christian Zigotzky
Hi All, It seems there is a problem with the PA Semi PWRficient Gigabit Ethernet. It tries very often to connect to the network but there isn't a network cable plugged in. There are two new commits about the PA Semi PWRficient Gigabit Ethernet in the Git source code. - https://git.kernel.or

[pasemi] Internal CompactFlash (CF) card device not recognised after the powerpc-4.8-1 merge

2016-08-05 Thread Christian Zigotzky
Hi All, I have found some information about the electra IDE CF card device: http://linuxppc-dev.ozlabs.narkive.com/kxQRFqGe/patch-pasemi-electra-ide-pata-platform-glue I checked the kernel config and the merge but without any success. Cheers, Christian On 05 August 2016 at 1:41 PM, Christia

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

2016-08-05 Thread Nicholas Piggin
On Fri, 5 Aug 2016 22:12:01 +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. For that matter, now I think about it, I'd like to have this generic postmod pass f

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

2016-08-05 Thread Mahesh J Salgaonkar
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 to get stuck forever. login: [ 471.830433] Proce

Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-05 Thread Mimi Zohar
Hi Petko, Thank you for review! On Fri, 2016-08-05 at 11:44 +0300, Petko Manolov wrote: > On 16-08-04 08:24:29, Mimi Zohar wrote: > > The TPM PCRs are only reset on a hard reboot. In order to validate a > > TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list > > of the runni

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

2016-08-05 Thread Nicholas Piggin
On Fri, 5 Aug 2016 22:11:58 +1000 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 with th

Re: [PATCH 2/2] powerpc/pseries: Dynamically increase RMA size

2016-08-05 Thread kbuild test robot
Hi Sukadev, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.7 next-20160805] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sukadev-Bhattiprolu/powerpc-pseries-Use-a-helper

[pasemi] Radeon HD graphics card not recognised after the powerpc-4.8-1 commit

2016-08-05 Thread Christian Zigotzky
Michael, Thanks a lot for the hints! I will use your commands. I am still learning Linux. :-) Cheers, Christian On 05 August 2016 at 12:59 PM, Michael Ellerman wrote: Christian Zigotzky writes: Hi Michael, Thanks a million for your patch! :-) No worries :) @All Keep your fingers cros

RE: [v5.1] ucc_fast: Fix to avoid IS_ERR_VALUE abuses and dead code on 64bit systems.

2016-08-05 Thread David Laight
From: Arvind Yadav > Sent: 04 August 2016 17:53 > IS_ERR_VALUE() assumes that parameter is an unsigned long. > It can not be used to check if 'unsigned int' is passed insted. > Which tends to reflect an error. > In 64bit architectures sizeof (int) == 4 && sizeof (long) == 8. > IS_ERR_VALUE(x) is ((

Re: [PATCH 10/11] soc: ti: knav_qmss_queue: use of_property_read_bool

2016-08-05 Thread Julia Lawall
On Fri, 5 Aug 2016, Robin Murphy wrote: > Hi Julia, > > On 05/08/16 09:56, Julia Lawall wrote: > > Use of_property_read_bool to check for the existence of a property. > > This caught my eye since Rob told me off for doing the same recently[1]. > > > The semantic patch that makes this change is a

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Nicholas Piggin
On Fri, 05 Aug 2016 12:17:27 +0200 Arnd Bergmann wrote: > On Friday, August 5, 2016 6:41:08 PM CEST Nicholas Piggin wrote: > > On Thu, 4 Aug 2016 12:06:41 -0500 > > Segher Boessenkool wrote: > > > > > On Thu, Aug 04, 2016 at 06:10:57PM +0200, Arnd Bergmann wrote: > > > > On Thursday, August

[PATCH 5/5] powerpc/64: use linker dce

2016-08-05 Thread Nicholas Piggin
--- arch/powerpc/kernel/Makefile | 3 +++ arch/powerpc/kernel/vmlinux.lds.S | 2 +- arch/powerpc/platforms/Kconfig.cputype | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 2da380f..b356e59 100644 -

[PATCH 4/5] powerpc: switch to using thin archives

2016-08-05 Thread Nicholas Piggin
From: Stephen Rothwell Some change to the way we invoke ar is required so it can be used by scripts/link-vmlinux.sh Signed-off-by: Stephen Rothwell Signed-off-by: Nicholas Piggin --- arch/powerpc/Makefile | 6 -- arch/powerpc/platforms/Kconfig.cputype | 1 + 2 files chang

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

2016-08-05 Thread Nicholas Piggin
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-off-by: Nicholas Piggin --- Documentation/kbuild/makefiles.txt | 6 ++ Makefile | 1 + scripts/Makefile.modpos

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

2016-08-05 Thread Nicholas Piggin
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 (documented) to ensure all unreferenced entrypoints are live, and requires toolchain and build verification, so it is made a pe

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

2016-08-05 Thread Nicholas Piggin
From: Stephen Rothwell ld -r is an incremental link used to create built-in.o files in build subdirectories. It produces relocatable object files containing all its input files, and these are are then pulled together and relocated in the final link. Aside from the bloat, this constrains the final

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

2016-08-05 Thread Nicholas Piggin
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 with the powerpc kernel. * First, building kernel using thin archives rather t

[PATCH v3 2/2] powernv: Fix MCE handler to avoid trashing CR0/CR1 registers.

2016-08-05 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar The current implementation of MCE early handling modifies CR0/1 registers without saving its old values. Fix this by moving early check for powersaving mode to machine_check_handle_early(). The power architecture 2.06 or later allows the possibility of getting machine che

[PATCH v3 1/2] powernv: Move IDLE_STATE_ENTER_SEQ macro to cpuidle.h

2016-08-05 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Move IDLE_STATE_ENTER_SEQ macro to cpuidle.h so that MCE handler changes in subsequent patch can use it. No functionality change. Signed-off-by: Mahesh Salgaonkar --- Change in v3: - Rebase to Linus' master. --- arch/powerpc/include/asm/cpuidle.h | 13 +

[PATCH v2] cxl: Use fixed width predefined types in data structure.

2016-08-05 Thread Philippe Bergheaud
This patch fixes a regression introduced by commit b810253. It substitutes the type __u8 to u8 in the uapi header cxl.h, because the latter is not always defined in userland build environments, in particular when cross-compiling libcxl on x86_64 linux machines (RHEL6.7 and Ubuntu 16.04). This pat

Re: [PATCH] powerpc: Align hot loops of memset() and backwards_memcpy()

2016-08-05 Thread Anton Blanchard
Hi Nick, > Hmm. If we execute this loop once, we'll only fetch additional nops. > Twice, and we make up for them by not fetching unused instructions. > More than twice and we may start winning. > > For large sizes it probably helps, but I'd like to see what sizes > memset sees. I found this in a

[v5.2] ucc_slow: Fix to avoid IS_ERR_VALUE abuses and dead code on 64bit systems.

2016-08-05 Thread Arvind Yadav
IS_ERR_VALUE() assumes that parameter is an unsigned long. It can not be used to check if 'unsigned int' is passed insted. Which tends to reflect an error. In 64bit architectures sizeof (int) == 4 && sizeof (long) == 8. IS_ERR_VALUE(x) is ((x) >= (unsigned long)-4095). IS_ERR_VALUE() of 'unsigned i

[pasemi] Internal CompactFlash (CF) card device not recognised after the powerpc-4.8-1 merge

2016-08-05 Thread Christian Zigotzky
Hi All, The internal PASEMI CompactFlash (CF) card device doesn't work anymore after the powerpc-4.8-1 merge. That means the code for the internal CF card device in the Nemo patch doesn't work after the first PowerPC merge. The CompactFlash (CF) card slot is wired to the CPU local bus. It is

Re: Problems with Kernels 3.17-rc1 and onwards on Acube Sam460 AMCC 460ex board

2016-08-05 Thread Julian Margetson
On 2/18/2015 10:56 PM, Michael Ellerman wrote: On Wed, 2015-02-18 at 21:36 -0400, Julian Margetson wrote: On 2/18/2015 8:13 PM, Michael Ellerman wrote: On Wed, 2015-02-18 at 15:45 -0400, Julian Margetson wrote: On 2/15/2015 8:18 PM, Michael Ellerman wrote: On Sun, 2015-02-15 at 08:16 -0400,

[PATCH] powerpc/40x: Clear MSR_DR in one insn instead of two

2016-08-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index d9c912b..e025230 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/mis

[PATCH] powerpc/32: Remove CLR_TOP32

2016-08-05 Thread Christophe Leroy
CLR_TOP32() is defined as blank. Last useful instance of CLR_TOP32() was removed by commit 40ef8cbc6d360 ("powerpc: Get 64-bit configs to compile with ARCH=powerpc") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 1 - arch/powerpc/kernel/entry_32.S | 1 - arch/power

[PATCH] powerpc/32: Remove one insn in __bswapdi2

2016-08-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index e025230..e18055c 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/misc_32

Re: [PATCH] powerpc: Align hot loops of memset() and backwards_memcpy()

2016-08-05 Thread Nicholas Piggin
On Thu, 4 Aug 2016 16:53:22 +1000 Anton Blanchard wrote: > From: Anton Blanchard > > Align the hot loops in our assembly implementation of memset() > and backwards_memcpy(). > > backwards_memcpy() is called from tcp_v4_rcv(), so we might > want to optimise this a little more. > > Signed-off-

Re: [pasemi] Radeon HD graphics card not recognised after the powerpc-4.8-1 commit

2016-08-05 Thread Michael Ellerman
Christian Zigotzky writes: > Hi Michael, > > Thanks a million for your patch! :-) No worries :) > @All > Keep your fingers crossed! > > 1. git clone > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a Normally that would be: $ git clone git://git.kernel.org/pub/scm/linux/ker

[GIT PULL] Please pull powerpc/linux.git powerpc-4.8-2 tag

2016-08-05 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc updates for 4.8. These were delayed for various reasons, so I let them sit in next a bit longer, rather than including them in my first pull request. There's one conflict in kernel/jump_label.c, the resolution is simply to take both sides changes. The fol

[pasemi] Radeon HD graphics card not recognised after the powerpc-4.8-1 commit

2016-08-05 Thread Christian Zigotzky
Hi Michael, Xorg works!!! :-) Next step: make modules :-) Cheers, Christian On 05 August 2016 at 11:13 AM, Christian Zigotzky wrote: Hi Michael, Thanks a million for your patch! :-) @All Keep your fingers crossed! 1. git clone git://git.kernel.org/pub/scm/linux/kernel

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Arnd Bergmann
On Friday, August 5, 2016 6:41:08 PM CEST Nicholas Piggin wrote: > On Thu, 4 Aug 2016 12:06:41 -0500 > Segher Boessenkool wrote: > > > On Thu, Aug 04, 2016 at 06:10:57PM +0200, Arnd Bergmann wrote: > > > On Thursday, August 4, 2016 9:47:13 PM CEST Nicholas Piggin wrote: > > > > > > > + _

Re: [PATCH] fadump: Register the memory reserved by fadump

2016-08-05 Thread Mel Gorman
On Fri, Aug 05, 2016 at 07:25:03PM +1000, Michael Ellerman wrote: > > One way to do that would be to walk through the different memory > > reserved blocks and calculate the size. But Mel feels thats an > > overhead (from his reply to the other thread) esp for just one use > > case. > > OK. I think

Re: [PATCH v2] powerpc/32: fix csum_partial_copy_generic()

2016-08-05 Thread Michael Ellerman
Christophe Leroy writes: > Le 05/08/2016 à 08:57, Michael Ellerman a écrit : >> Alessio Igor Bogani writes: >>> On 4 August 2016 at 05:53, Scott Wood wrote: On Tue, 2016-08-02 at 10:07 +0200, Christophe Leroy wrote: > commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic(

Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-05 Thread Petko Manolov
On 16-08-04 08:24:29, Mimi Zohar wrote: > The TPM PCRs are only reset on a hard reboot. In order to validate a > TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list > of the running kernel must be saved and restored on boot. This patch > restores the measurement list. > > Ch

Re: [PATCH] fadump: Register the memory reserved by fadump

2016-08-05 Thread Michael Ellerman
Srikar Dronamraju writes: > * Michael Ellerman [2016-08-05 17:07:01]: > >> Srikar Dronamraju writes: >> >> > Fadump kernel reserves large chunks of memory even before the pages are >> > initialized. This could mean memory that corresponds to several nodes might >> > fall in memblock reserved r

[pasemi] Radeon HD graphics card not recognised after the powerpc-4.8-1 commit

2016-08-05 Thread Christian Zigotzky
Hi Michael, Thanks a million for your patch! :-) @All Keep your fingers crossed! 1. git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a 2. patch -p0 < powerpc-pci-Only-do-fixed-PHB-numbering-on-powernv.patch 3. patch -p0 < nemo_4.8-3.patch 4. yes "" | make oldconfi

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

2016-08-05 Thread Julia Lawall
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 (of_property_read_bool(e1,e2)) S1 else

[PATCH 01/11] fsl/qe: use of_property_read_bool

2016-08-05 Thread Julia Lawall
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 (of_property_read_bool(e1,e2)) S1 else

[PATCH 00/11] use of_property_read_bool

2016-08-05 Thread Julia Lawall
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 (of_property_read_bool(e1,e2)) S1 else

Re: [PATCH V2 1/2] mm/page_alloc: Replace set_dma_reserve to set_memory_reserve

2016-08-05 Thread Vlastimil Babka
On 08/05/2016 09:24 AM, Srikar Dronamraju wrote: * Vlastimil Babka [2016-08-05 08:45:03]: @@ -5493,10 +5493,10 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat) } /* Account for reserved pages */ - if (j == 0 && freesize

Re: [v5.1] ucc_fast: Fix to avoid IS_ERR_VALUE abuses and dead code on 64bit systems.

2016-08-05 Thread arvind Yadav
On Friday 05 August 2016 02:01 AM, Arnd Bergmann wrote: On Thursday, August 4, 2016 10:22:43 PM CEST Arvind Yadav wrote: index df8ea79..ada9070 100644 --- a/include/soc/fsl/qe/ucc_fast.h +++ b/include/soc/fsl/qe/ucc_fast.h @@ -165,10 +165,12 @@ struct ucc_fast_private { int stopped_tx

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Nicholas Piggin
On Thu, 4 Aug 2016 12:06:41 -0500 Segher Boessenkool wrote: > On Thu, Aug 04, 2016 at 06:10:57PM +0200, Arnd Bergmann wrote: > > On Thursday, August 4, 2016 9:47:13 PM CEST Nicholas Piggin wrote: > > > > > + __used \ > > > + __attribute__((secti

Re: Suspected regression?

2016-08-05 Thread Christophe Leroy
Le 19/07/2016 à 23:52, Scott Wood a écrit : On Tue, 2016-07-19 at 12:00 +0200, Alessio Igor Bogani wrote: Hi all, I have got two boards MVME5100 (MPC7410 cpu) and MVME7100 (MPC8641D cpu) for which I use the same cross-compiler (ppc7400). I tested these against kernel HEAD to found that these

Re: [PATCH] cpufreq: powernv: Fix crash in gpstate_timer_handler

2016-08-05 Thread Andrew Donnellan
On 05/08/16 01:29, Akshay Adiga wrote: 'commit 09ca4c9b5958 ("cpufreq: powernv: Replacing pstate_id with frequency table index")' changes calc_global_pstate() to use cpufreq_table index instead of pstate_id. But in gpstate_timer_handler() pstate_id was being passed instead of cpufreq_table index

Re: [PATCH V2 1/2] mm/page_alloc: Replace set_dma_reserve to set_memory_reserve

2016-08-05 Thread Srikar Dronamraju
* Mel Gorman [2016-08-05 07:47:47]: > On Thu, Aug 04, 2016 at 10:42:08PM +0530, Srikar Dronamraju wrote: > > Expand the scope of the existing dma_reserve to accommodate other memory > > reserves too. Accordingly rename variable dma_reserve to > > nr_memory_reserve. > > > > set_memory_reserve als

Re: [PATCH] fadump: Register the memory reserved by fadump

2016-08-05 Thread Srikar Dronamraju
* Michael Ellerman [2016-08-05 17:07:01]: > Srikar Dronamraju writes: > > > Fadump kernel reserves large chunks of memory even before the pages are > > initialized. This could mean memory that corresponds to several nodes might > > fall in memblock reserved regions. > > > ... > > Register the m

Re: [PATCH v2] powerpc/32: fix csum_partial_copy_generic()

2016-08-05 Thread Christophe Leroy
Le 05/08/2016 à 08:57, Michael Ellerman a écrit : Alessio Igor Bogani writes: On 4 August 2016 at 05:53, Scott Wood wrote: On Tue, 2016-08-02 at 10:07 +0200, Christophe Leroy wrote: commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom_user()") introduc

Re: [PATCH V2 1/2] mm/page_alloc: Replace set_dma_reserve to set_memory_reserve

2016-08-05 Thread Srikar Dronamraju
* Vlastimil Babka [2016-08-05 08:45:03]: > >@@ -5493,10 +5493,10 @@ static void __paginginit free_area_init_core(struct > >pglist_data *pgdat) > > } > > > > /* Account for reserved pages */ > >-if (j == 0 && freesize > dma_reserve) { > >-fr

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread Johannes Thumshirn
On Fri, Aug 05, 2016 at 09:01:26AM +0200, Borislav Petkov wrote: > On Fri, Aug 05, 2016 at 04:26:26AM +, york sun wrote: > > I don't have deep knowledge of this driver. What I am trying is to > > separate the common DDR part and share it with ARM platforms. Along the > > way, I found the comp

RE: [PATCH] cxl: Use fixed width predefined types in data structure.

2016-08-05 Thread Michael Ellerman
David Laight writes: > From: Philippe Bergheaud >> Sent: 04 August 2016 14:56 >> This patch fixes a regression introduced by commit b810253. >> It substitutes the type __u8 to u8 in the uapi header cxl.h, >> because the latter is not always defined in userland build >> environments, in particular

Re: [PATCH] fadump: Register the memory reserved by fadump

2016-08-05 Thread Michael Ellerman
Srikar Dronamraju writes: > Fadump kernel reserves large chunks of memory even before the pages are > initialized. This could mean memory that corresponds to several nodes might > fall in memblock reserved regions. > ... > Register the memory reserved by fadump, so that the cache sizes are > calc

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread Borislav Petkov
On Fri, Aug 05, 2016 at 04:26:26AM +, york sun wrote: > I don't have deep knowledge of this driver. What I am trying is to > separate the common DDR part and share it with ARM platforms. Along the > way, I found the compiling error if build a module. If exposing these > functions becomes a c

Re: [PATCH kernel 05/15] powerpc/iommu: Stop using @current in mm_iommu_xxx

2016-08-05 Thread Michael Ellerman
Alexey Kardashevskiy writes: > In some situations the userspace memory context may live longer than > the userspace process itself so if we need to do proper memory context > cleanup, we better cache @mm and use it later when the process is gone > (@current or @current->mm are NULL). > > This cha

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread Borislav Petkov
On Thu, Aug 04, 2016 at 11:39:14PM +, york sun wrote: > I will rename it if I respin this patch for any reason. Otherwise, I > will send out another patch to rename it after merging. Feel free to send an updated one as a reply to this thread. -- Regards/Gruss, Boris. ECO tip #101: Trim