Re: [PATCH v3 00/12] macintosh: Resolve various PMU driver problems

2018-06-26 Thread Michael Schmitz
Ben, Am 27.06.2018 um 15:27 schrieb Benjamin Herrenschmidt: On Wed, 2018-06-27 at 13:08 +1000, Michael Ellerman wrote: I will rewrite patch 10/12 after Arnd's fixes and this series have all made their way through both powerpc and m68k trees, and submit it separately. drivers/macintosh is supp

Re: [PATCH v9 0/6] add support for relative references in special sections

2018-06-26 Thread Michael Ellerman
Ard Biesheuvel writes: > This adds support for emitting special sections such as initcall arrays, > PCI fixups and tracepoints as relative references rather than absolute > references. This reduces the size by 50% on 64-bit architectures, but > more importantly, it removes the need for carrying re

Re: [PATCH 1/3] [v2] powerpc: mac: fix rtc read/write functions

2018-06-26 Thread Michael Ellerman
Arnd Bergmann writes: > As Mathieu pointed out, my conversion to time64_t was incorrect and resulted > in negative times to be read from the RTC. The problem is that during the > conversion from a byte array to a time64_t, the 'unsigned char' variable > holding the top byte gets turned into a neg

Re: [PATCH v3] powerpc/32: Remove left over function prototypes

2018-06-26 Thread Michael Ellerman
Mathieu Malaterre writes: > On Thu, Jun 21, 2018 at 1:27 PM Michael Ellerman wrote: >> Mathieu Malaterre writes: >> >> > In commit 4aea909eeba3 ("powerpc: Add missing prototypes in setup_32.c") >> >> I don't have that commit ^ ? >> >> That might be because I squashed some of your fixes together

Re: [PATCH v3 00/12] macintosh: Resolve various PMU driver problems

2018-06-26 Thread Benjamin Herrenschmidt
On Wed, 2018-06-27 at 13:08 +1000, Michael Ellerman wrote: > > I will rewrite patch 10/12 after Arnd's fixes and this series have all > > made their way through both powerpc and m68k trees, and submit it > > separately. > > drivers/macintosh is supposedly maintained by Ben, but I'm not sure this

Re: [PATCH v3 00/12] macintosh: Resolve various PMU driver problems

2018-06-26 Thread Michael Ellerman
Hi Finn, Geert, Finn Thain writes: > On Wed, 13 Jun 2018, I wrote: > >> Finn Thain (12): >> macintosh/via-pmu: Fix section mismatch warning >> macintosh/via-pmu: Add missing mmio accessors >> macintosh/via-pmu: Don't clear shift register interrupt flag twice >> macintosh/via-pmu: Enhance

Re: [PATCH 2/3] drivers/base: reorder consumer and its children behind suppliers

2018-06-26 Thread Pingfan Liu
Hi Dan, Thanks for your hints, see the comment in lines. On Tue, Jun 26, 2018 at 3:44 PM Dan Carpenter wrote: > > [ There is a bug with kbuild where it's not showing the Smatch warnings > but I can probably guess... - dan ] > > Hi Pingfan, > > Thank you for the patch! Perhaps something to imp

[PATCH 0/9] Fix references for some missing documentation files

2018-06-26 Thread Mauro Carvalho Chehab
Having nothing to do while waiting for my plane to arrive while returning back from Japan, I ended by writing a small series of patches meant to reduce the number of bad Documentation/* links that are detected by: ./scripts/documentation-file-ref-check I ended by rebasing this patch seri

Re: [PATCH v9 4/6] init: allow initcall tables to be emitted using relative references

2018-06-26 Thread James Morris
On Tue, 26 Jun 2018, Ard Biesheuvel wrote: > Allow the initcall tables to be emitted using relative references that > are only half the size on 64-bit architectures and don't require fixups > at runtime on relocatable kernels. > > Cc: Petr Mladek > Cc: Sergey Senozhatsky > Cc: Steven Rostedt >

[PATCH v9 6/6] kernel: tracepoints: add support for relative references

2018-06-26 Thread Ard Biesheuvel
To avoid the need for relocating absolute references to tracepoint structures at boot time when running relocatable kernels (which may take a disproportionate amount of space), add the option to emit these tables as relative references instead. Cc: Ingo Molnar Acked-by: Steven Rostedt (VMware) S

[PATCH v9 5/6] PCI: Add support for relative addressing in quirk tables

2018-06-26 Thread Ard Biesheuvel
Allow the PCI quirk tables to be emitted in a way that avoids absolute references to the hook functions. This reduces the size of the entries, and, more importantly, makes them invariant under runtime relocation (e.g., for KASLR) Acked-by: Bjorn Helgaas Signed-off-by: Ard Biesheuvel --- drivers

[PATCH v9 4/6] init: allow initcall tables to be emitted using relative references

2018-06-26 Thread Ard Biesheuvel
Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: James Morris Cc: "Serge E. Hallyn" Signed-off-by: Ard

[PATCH v9 3/6] module: use relative references for __ksymtab entries

2018-06-26 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

[PATCH v9 2/6] module: allow symbol exports to be disabled

2018-06-26 Thread Ard Biesheuvel
To allow existing C code to be incorporated into the decompressor or the UEFI stub, introduce a CPP macro that turns all EXPORT_SYMBOL_xxx declarations into nops, and #define it in places where such exports are undesirable. Note that this gets rid of a rather dodgy redefine of linux/export.h's head

[PATCH v9 1/6] arch: enable relative relocations for arm64, power and x86

2018-06-26 Thread Ard Biesheuvel
Before updating certain subsystems to use place relative 32-bit relocations in special sections, to save space and reduce the number of absolute relocations that need to be processed at runtime by relocatable kernels, introduce the Kconfig symbol and define it for some architectures that should be

[PATCH v9 0/6] add support for relative references in special sections

2018-06-26 Thread Ard Biesheuvel
This adds support for emitting special sections such as initcall arrays, PCI fixups and tracepoints as relative references rather than absolute references. This reduces the size by 50% on 64-bit architectures, but more importantly, it removes the need for carrying relocation metadata for these sect

Re: [powerpc/powervm]kernel BUG at mm/memory_hotplug.c:1864!

2018-06-26 Thread Nathan Fontenot
On 06/12/2018 05:28 AM, Balbir Singh wrote: > > > On 11/06/18 17:41, vrbagal1 wrote: >> On 2018-06-08 17:45, Oscar Salvador wrote: >>> On Fri, Jun 08, 2018 at 05:11:24PM +0530, vrbagal1 wrote: On 2018-06-08 16:58, Oscar Salvador wrote: > On Fri, Jun 08, 2018 at 04:44:24PM +0530, vrbagal1

Re: [PATCH] QE GPIO: Add qe_gpio_set_multiple

2018-06-26 Thread Michael Ellerman
Joakim Tjernlund writes: > On Thu, 2018-06-21 at 02:38 +, Qiang Zhao wrote: >> On 06/19/2018 09:22 AM, Joakim Tjernlund wrote: >> -Original Message- >> From: Linuxppc-dev >> [mailto:linuxppc-dev-bounces+qiang.zhao=nxp@lists.ozlabs.org] On Behalf >> Of Joakim Tjernlund >> Sent: 20

Re: [next-20180601][nvme][ppc] Kernel Oops is triggered when creating lvm snapshots on nvme disks

2018-06-26 Thread Michael Ellerman
Abdul Haleem writes: > Greeting's > > Kernel Oops is seen on 4.17.0-rc7-next-20180601 kernel on a bare-metal > machine when running lvm snapshot tests on nvme disks. > > Machine Type: Power 8 bare-metal > kernel : 4.17.0-rc7-next-20180601 > test: > $ pvcreate -y /dev/nvme0n1 > $ vgcreate avocad

Re: [v4, 00/10] Support DPAA PTP clock and timestamping

2018-06-26 Thread David Miller
From: Yangbo Lu Date: Mon, 25 Jun 2018 20:37:06 +0800 > This patchset is to support DPAA FMAN PTP clock and HW timestamping. > It had been verified on both ARM platform and PPC platform. > - The patch #1 to patch #5 are to support DPAA FMAN 1588 timer in > ptp_qoriq driver. > - The patch #6 to

[PATCH v3 2/2] selftests/powerpc: Fix typos

2018-06-26 Thread Breno Leitao
Fix two typos in the file header. Replacing the word 'priviledged' by 'privileged' and 'exuecuted' by 'executed'. Signed-off-by: Breno Leitao Signed-off-by: Gustavo Romero --- tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v3 1/2] selftests/powerpc: Fix strncpy usage

2018-06-26 Thread Breno Leitao
There is a buffer overflow in dscr_inherit_test.c test. In main(), strncpy()'s third argument is the length of the source, not the size of the destination buffer, which makes strncpy() behaves like strcpy(), causing a buffer overflow if argv[0] is bigger than LEN_MAX (100). This patch maps 'prog'

Re: [PATCH v2] selftests/powerpc: Fix strncpy usage

2018-06-26 Thread Breno Leitao
On 06/26/2018 02:24 AM, Michael Ellerman wrote: > Breno Leitao writes: > >> There is a buffer overflow in dscr_inherit_test.c test. In main(), >> strncpy()'s >> third argument is the length of the source, not the size of the destination >> buffer, which makes strncpy() behaves like strcpy(),

Re: [PATCHv2 2/2] drivers/base: reorder consumer and its children behind suppliers

2018-06-26 Thread Greg Kroah-Hartman
On Tue, Jun 26, 2018 at 11:29:48AM +0800, Pingfan Liu wrote: > On Mon, Jun 25, 2018 at 6:45 PM Greg Kroah-Hartman > wrote: > > > > On Mon, Jun 25, 2018 at 03:47:39PM +0800, Pingfan Liu wrote: > > > commit 52cdbdd49853 ("driver core: correct device's shutdown order") > > > introduces supplier<-cons

Re: [PATCH 2/3] drivers/base: reorder consumer and its children behind suppliers

2018-06-26 Thread Dan Carpenter
[ There is a bug with kbuild where it's not showing the Smatch warnings but I can probably guess... - dan ] Hi Pingfan, Thank you for the patch! Perhaps something to improve: url: https://github.com/0day-ci/linux/commits/Pingfan-Liu/drivers-base-bugfix-for-supplier-consumer-ordering-in-de

[next-20180601][nvme][ppc] Kernel Oops is triggered when creating lvm snapshots on nvme disks

2018-06-26 Thread Abdul Haleem
Greeting's Kernel Oops is seen on 4.17.0-rc7-next-20180601 kernel on a bare-metal machine when running lvm snapshot tests on nvme disks. Machine Type: Power 8 bare-metal kernel : 4.17.0-rc7-next-20180601 test: $ pvcreate -y /dev/nvme0n1 $ vgcreate avocado_vg /dev/nvme0n1 $ lvcreate --size 1.4T