Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Jeffrey Hugo
On 9/12/2018 4:49 AM, Sudeep Holla wrote: On 11/09/18 21:38, Jeffrey Hugo wrote: On 9/11/2018 2:16 PM, Jeremy Linton wrote: Hi Jeffrey, (+Sudeep) [..] If you look at the next line of code following this comment its going to update the cache type for fully populated PPTT nodes. Although

[PATCH V4 12/27] csky: ELF and module probe

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/elf.h | 149 arch/csky/kernel/module.c | 82 2 files changed, 231 insertions(+) create mode 100644 arch/csky/include/asm/elf.h create mode 100644 arch/csky/kernel/module.c

[PATCH V4 11/27] csky: Atomic operations

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/atomic.h | 215 + arch/csky/include/asm/cmpxchg.h| 70 arch/csky/include/asm/spinlock.h | 286 + arch/csky/include/asm/spinlock_types.h | 35 arch/csky/ke

[PATCH V4 16/27] csky: SMP support

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 26 + arch/csky/kernel/smp.c | 234 2 files changed, 260 insertions(+) create mode 100644 arch/csky/include/asm/smp.h create mode 100644 arch/csky/kernel/smp.c diff --git a/arch/csky

[PATCH V4 15/27] csky: Debug and Ptrace GDB

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 103 arch/csky/kernel/dumpstack.c| 64 arch/csky/kernel/ptrace.c | 317 4 files changed, 510 insertions(+)

[PATCH V4 13/27] csky: Library functions

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/abiv1/bswapdi.c| 18 ++ arch/csky/abiv1/bswapsi.c| 14 ++ arch/csky/abiv1/inc/abi/string.h | 13 ++ arch/csky/abiv1/memcpy.S | 344 +++ arch/csky/abiv1/memset.c | 37 + arch/csky/abiv1

[PATCH V4 17/27] csky: Misc headers

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/reg_ops.h | 26 +++ arch/csky/abiv1/inc/abi/regdef.h | 25 +++ arch/csky/abiv2/inc/abi/reg_ops.h | 17 ++ arch/csky/abiv2/inc/abi/regdef.h | 26 +++ arch/csky/boot/dts/qemu.dts| 77 + arch/csky/inclu

[PATCH V4 19/27] dt-bindings: timer: gx6605s SOC timer

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s-timer.

[PATCH V4 21/27] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../interrupt-controller/csky,apb-intc.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt-cont

[PATCH V4 14/27] csky: User access

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 398 arch/csky/lib/usercopy.c| 271 +++ 2 files changed, 669 insertions(+) create mode 100644 arch/csky/include/asm/uaccess.h create mode 100644 arch/csky/lib/us

[PATCH 0/2] sc16is7xx interrupt fixes

2018-09-12 Thread Phil Elwell
The interrupt handling of the sc16is7xx driver is broken in a number of ways, as observed by multiple Raspberry Pi users. The attached patches attempt to address its failings, with apparent success. The first is a workaround for a side-effect of the switch away from using a thread IRQ, a change wh

[PATCH V4 24/27] clocksource: add C-SKY SMP timer

2018-09-12 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back. Signed-off-by: Guo Ren --- drivers/clocksource/csky_mptime

[PATCH 1/2] sc16is7xx: Fix for multi-channel stall

2018-09-12 Thread Phil Elwell
The SC16IS752 is a dual-channel device. The two channels are largely independent, but the IRQ signals are wired together as an open-drain, active low signal which will be driven low while either of the channels requires attention, which can be for significant periods of time until operations comple

[PATCH V4 25/27] clocksource: add C-SKY timers' build infrastructure

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 15 +++ drivers/clocksource/Makefile | 2 ++ 2 files changed, 17 insertions(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index dec0dd8..6ff0a25 100644 --- a/drivers/clocksource/Kconfig +++ b/drive

Re: [PATCH RESEND] drivers: soc: Allow building the sunxi driver without ARCH_SUNXI

2018-09-12 Thread Chen-Yu Tsai
On Mon, Sep 10, 2018 at 7:43 PM Maxime Ripard wrote: > > On Sun, Sep 09, 2018 at 09:04:39PM +0200, Paul Kocialkowski wrote: > > This makes it possible to build the sunxi SRAM driver without building > > for the sunxi architecture. This allows selecting the driver when > > building the kernel in te

[PATCH V4 23/27] clocksource: add gx6605s SOC system timer

2018-09-12 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/timer-gx6605s.c | 150 1 file changed, 150 insertions(+) create mode 100644

[PATCH V4 27/27] dt-bindings: Add vendor prefix for csky

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 7cad066..335f9e0 100644 --- a/Documentation/dev

[PATCH 2/2] sc16is7xx: Fix for "Unexpected interrupt: 8"

2018-09-12 Thread Phil Elwell
The SC16IS752 has an Enhanced Feature Register which is aliased at the same address as the Interrupt Identification Register; accessing it requires that a magic value is written to the Line Configuration Register. If an interrupt is raised while the EFR is mapped in then the ISR won't be able to ac

[PATCH V4 22/27] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt diff --git a/Documentation/devicetree/bindings/interrupt-contro

Re: [PATCH v6 04/18] khwasan, arm64: adjust shadow size for CONFIG_KASAN_HW

2018-09-12 Thread Dmitry Vyukov
On Wed, Aug 29, 2018 at 1:35 PM, Andrey Konovalov wrote: > KWHASAN uses 1 shadow byte for 16 bytes of kernel memory, so it requires > 1/16th of the kernel virtual address space for the shadow memory. > > This commit sets KASAN_SHADOW_SCALE_SHIFT to 4 when KHWASAN is enabled. > > Signed-off-by: And

[PATCH V4 20/27] dt-bindings: timer: C-SKY Multi-processor timer

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,mptimer.txt b/Docume

[PATCH V4 26/27] irqchip: add C-SKY irqchip drivers

2018-09-12 Thread Guo Ren
This patch add C-SKY two interrupt conrollers. - irq-csky-apb-intc is a simple SOC interrupt controller which is used in a lot of C-SKY SOC products. - irq-csky-mpintc is C-SKY smp system interrupt controller and it could support 16 soft irqs, 16 private irqs, and 992 irqs. Changelog: -

[PATCH V4 18/27] dt-bindings: csky CPU Bindings

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- Documentation/devicetree/bindings/csky/cpus.txt | 70 + 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/csky/cpus.txt diff --git a/Documentation/devicetree/bindings/csky/cpus.txt b/Documentation/devicetree

Re: [PATCH v7 02/14] sched/cpufreq: Prepare schedutil for Energy Aware Scheduling

2018-09-12 Thread Vincent Guittot
Hi Quentin, On Wed, 12 Sep 2018 at 11:13, Quentin Perret wrote: > > Schedutil requests frequency by aggregating utilization signals from > the scheduler (CFS, RT, DL, IRQ) and applying and 25% margin on top of quite a minor thing but s/and 25%/a 25%/ > them. Since Energy Aware Scheduling (EAS)

[PATCH v2 01/17] compat_ioctl: add generic_compat_ioctl_ptrarg()

2018-09-12 Thread Arnd Bergmann
Many drivers have ioctl() handlers that are completely compatible between 32-bit and 64-bit architectures, except for the argument that is passed down from user space and may have to be passed through compat_ptr() in order to become a valid 64-bit pointer. Using ".compat_ptr=generic_compat_ioctl_p

[PATCH v2 04/17] ceph: fix compat_ioctl for ceph_dir_operations

2018-09-12 Thread Arnd Bergmann
The ceph_ioctl function is used both for files and directories, but only the files support doing that in 32-bit compat mode. For consistency, add the same compat handler to the dir operations as well. Cc: sta...@vger.kernel.org Signed-off-by: Arnd Bergmann --- fs/ceph/dir.c | 1 + 1 file change

Re: [PATCH 0/2] Use named address spaces for percpu data

2018-09-12 Thread Richard Henderson
On 09/12/2018 07:44 AM, Matthew Wilcox wrote: > rth wrote a patch back in 2016 that uses gcc's address space machinery > to improve code generation for percpu accesses. Ingo asked for some > minor changes to be made, but Richard didn't respond. While looking at > something related, I came across

[PATCH v2 06/17] compat_ioctl: move rtc handling into rtc-dev.c

2018-09-12 Thread Arnd Bergmann
We no longer need the rtc compat handling to be in common code, now that all drivers are either moved to the rtc-class framework, or (rarely) exist in drivers/char for architectures without compat mode (m68k, alpha and ia64, respectively). I checked the list of ioctl commands in drivers, and the o

[PATCH v2 08/17] compat_ioctl: remove keyboard ioctl translation

2018-09-12 Thread Arnd Bergmann
The KD* family of ioctls is implemented in two drivers: drivers/tty/vt and drivers/s390/char/tty3270.c. Both of them have compat handlers for all their ioctl commands, so translation in fs/compat_ioctl.c is never used. Commit fb07a5f857ac ("compat_ioctl: remove all VT ioctl handling") removed the

[PATCH v2 09/17] compat_ioctl: remove HIDIO translation

2018-09-12 Thread Arnd Bergmann
The two drivers implementing these both gained proper compat_ioctl() handlers a long time ago with commits bb6c8d8fa9b5 ("HID: hiddev: Add 32bit ioctl compatibilty") and ae5e49c79c05 ("HID: hidraw: add compatibility ioctl() for 32-bit applications."), so the lists in fs/compat_ioctl.c are no longer

[PATCH v2 07/17] compat_ioctl: move tape handling into drivers

2018-09-12 Thread Arnd Bergmann
MTIOCPOS and MTIOCGET are incompatible between 32-bit and 64-bit user space, and traditionally have been translated in fs/compat_ioctl.c. To get rid of that translation handler, move a corresponding implementation into each of the four drivers implementing those commands. The interesting part of

Re: [PATCH 4/5] lib/ioremap: Ensure phys_addr actually corresponds to a physical address

2018-09-12 Thread Sean Christopherson
On Wed, Sep 12, 2018 at 11:26:13AM +0100, Will Deacon wrote: > The current ioremap() code uses a phys_addr variable at each level of > page table, which is confusingly offset by subtracting the base virtual > address being mapped so that adding the current virtual address back on > when iterating t

[PATCH v2 12/17] compat_ioctl: remove IGNORE_IOCTL()

2018-09-12 Thread Arnd Bergmann
Since commit 07d106d0a33d ("vfs: fix up ENOIOCTLCMD error handling"), we don't warn about unhandled compat-ioctl command code any more, but just return the same error that a native file descriptor returns when there is no handler. This means the IGNORE_IOCTL() annotations are completely useless an

[PATCH v2 10/17] compat_ioctl: remove translation for sound ioctls

2018-09-12 Thread Arnd Bergmann
The SNDCTL_* and SOUND_* commands are the old OSS user interface. I checked all the sound ioctl commands listed in fs/compat_ioctl.c to see if we still need the translation handlers. Here is what I found: - sound/oss/ is (almost) gone from the kernel, this is what actually needed all the transl

[PATCH v2 14/17] compat_ioctl: remove joystick ioctl translation

2018-09-12 Thread Arnd Bergmann
The joystick driver already handles these just fine, so the entries in the table are not needed any more. Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 8 1 file changed, 8 deletions(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index d5b8380fb1b1..0e3a879339c2 100644 --

[PATCH v2 13/17] compat_ioctl: remove /dev/random commands

2018-09-12 Thread Arnd Bergmann
These are all handled by the random driver, so instead of listing each ioctl, we can just use the same function to deal with both native and compat commands. Signed-off-by: Arnd Bergmann --- drivers/char/random.c | 1 + fs/compat_ioctl.c | 7 --- 2 files changed, 1 insertion(+), 7 deleti

[PATCH v2 15/17] compat_ioctl: remove PCI ioctl translation

2018-09-12 Thread Arnd Bergmann
The /proc/pci/ implementation already handles these just fine, so the entries in the table are not needed any more. Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 0e3a879339c2..8510cd652bb0 10

[PATCH v2 17/17] compat_ioctl: remove last RAID handling code

2018-09-12 Thread Arnd Bergmann
Commit aa98aa31987a ("md: move compat_ioctl handling into md.c") already removed the COMPATIBLE_IOCTL() table entries and added a complete implementation, but a few lines got left behind and should also be removed here. Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 5 - 1 file changed

[PATCH v2 16/17] compat_ioctl: remove /dev/raw ioctl translation

2018-09-12 Thread Arnd Bergmann
The /dev/rawX implementation already handles these just fine, so the entries in the table are not needed any more. Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 8510cd652bb0..79ad7c3afd70 1006

Re: [PATCH 3/6] sched/numa: Avoid task migration for small numa improvement

2018-09-12 Thread Srikar Dronamraju
> > > > /* > > + * Maximum numa importance can be 1998 (2*999); > > + * SMALLIMP @ 30 would be close to 1998/64. > > + * Used to deter task migration. > > + */ > > +#define SMALLIMP 30 > > + > > +/* > > > > /* > > +* If the numa importance is less than SMALLIMP, > > +* task migra

Re: [PATCH 5/6] sched/numa: Reset scan rate whenever task moves across nodes

2018-09-12 Thread Srikar Dronamraju
> > +#ifdef CONFIG_NUMA_BALANCING > > + if (!p->mm || (p->flags & PF_EXITING)) > > + return; > > + > > + if (p->numa_faults) { > > + int src_nid = cpu_to_node(task_cpu(p)); > > + int dst_nid = cpu_to_node(new_cpu); > > + > > + if (src_nid != dst_nid) > >

Custom PMI Handler

2018-09-12 Thread Jack Henschel
Hi there, is it possible to register a custom interrupt handler for a NMI/PMI Interrupt? In particular, I want to catch the Intel PT interrupt (generated by the PMU and sent over the LAPIC) in a kernel module. Is such a thing possible? Regards, Jack signature.asc Description: OpenPGP digital

Re: [RFC PATCH 04/10] x86/fpu: eager switch PKRU state

2018-09-12 Thread Andy Lutomirski
> On Sep 12, 2018, at 6:33 AM, Sebastian Andrzej Siewior > wrote: > > From: Rik van Riel > > While most of a task's FPU state is only needed in user space, > the protection keys need to be in place immediately after a > context switch. > > The reason is that any accesses to userspace memor

Re: [RFC PATCH 04/10] x86/fpu: eager switch PKRU state

2018-09-12 Thread Andy Lutomirski
> On Sep 12, 2018, at 7:18 AM, Paolo Bonzini wrote: > >> On 12/09/2018 15:33, Sebastian Andrzej Siewior wrote: >> From: Rik van Riel >> >> While most of a task's FPU state is only needed in user space, >> the protection keys need to be in place immediately after a >> context switch. >> >>

Re: [PATCH] mm, thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings

2018-09-12 Thread Michal Hocko
On Wed 12-09-18 16:21:26, Michal Hocko wrote: > On Wed 12-09-18 09:54:17, Andrea Arcangeli wrote: [...] > > I wasn't particularly happy about your patch because it still swaps > > with certain defrag settings which is still allowing things that > > shouldn't happen without some kind of privileged c

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Sudeep Holla
On 12/09/18 15:41, Jeffrey Hugo wrote: > On 9/11/2018 3:25 PM, Jeremy Linton wrote: >> Hi, >> >> On 09/11/2018 03:38 PM, Jeffrey Hugo wrote: >>> On 9/11/2018 2:16 PM, Jeremy Linton wrote: Hi Jeffrey, (+Sudeep) On 09/11/2018 02:32 PM, Jeffrey Hugo wrote: > The type of

Re: [PATCH] proc: restrict kernel stack dumps to root

2018-09-12 Thread Jann Horn
+linux-api, I guess On Tue, Sep 11, 2018 at 8:39 PM Jann Horn wrote: > > Restrict the ability to inspect kernel stacks of arbitrary tasks to root > in order to prevent a local attacker from exploiting racy stack unwinding > to leak kernel task stack contents. > See the added comment for a longer

Re: [RFC PATCH 04/10] x86/fpu: eager switch PKRU state

2018-09-12 Thread Rik van Riel
On Wed, 2018-09-12 at 08:20 -0700, Andy Lutomirski wrote: > > > > --- a/arch/x86/mm/pkeys.c > > +++ b/arch/x86/mm/pkeys.c > > @@ -18,6 +18,20 @@ > > > > #include /* boot_cpu_has, > > ...*/ > > #include /* > > vma_pkey() */ > > +#include > >

Re: [RFC PATCH 04/10] x86/fpu: eager switch PKRU state

2018-09-12 Thread Paolo Bonzini
On 12/09/2018 17:24, Andy Lutomirski wrote: >> I think you can go a step further and exclude PKRU state from >> copy_kernel_to_fpregs altogether; you just use RDPKRU/WRPKRU. This also >> means you don't need to call __fpregs_* functions in write_pkru. >> >> > Except that the signal ABI has PKRU in

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Sudeep Holla
On 12/09/18 15:48, Jeffrey Hugo wrote: > On 9/12/2018 4:49 AM, Sudeep Holla wrote: >> >> >> On 11/09/18 21:38, Jeffrey Hugo wrote: >>> On 9/11/2018 2:16 PM, Jeremy Linton wrote: Hi Jeffrey, (+Sudeep) >> >> [..] >> If you look at the next line of code following this

[PATCH] WATCHDOG: uniphier_wdt.c: Fixed error do not initialise statics to 0

2018-09-12 Thread Jagdish Tirumala
Fixed error do not initialise statics to 0 in file drivers/watchdog/uniphier_wdt.c Signed-off-by: Jagdish Tirumala --- drivers/watchdog/uniphier_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/uniphier_wdt.c b/drivers/watchdog/uniphier_wdt.c index e20a7

[PATCH] clk: mvebu: ap806: Remove superfluous of_clk_add_provider

2018-09-12 Thread Gregory CLEMENT
While applying the commit a8309cedcdce ("clk: apn806: Add eMMC clock to system controller driver"), of_clk_add_provider was added wheres it was already present in the probe function. This extraneous call is harmless but not useful so remove it. Signed-off-by: Gregory CLEMENT --- drivers/clk/mve

Re: Redoing eXclusive Page Frame Ownership (XPFO) with isolated CPUs in mind (for KVM to isolate its guests per CPU)

2018-09-12 Thread Julian Stecklina
Julian Stecklina writes: > Linus Torvalds writes: > >> On Fri, Aug 31, 2018 at 12:45 AM Julian Stecklina wrote: >>> >>> I've been spending some cycles on the XPFO patch set this week. For the >>> patch set as it was posted for v4.13, the performance overhead of >>> compiling a Linux kernel is ~

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Sudeep Holla
On 12/09/18 16:27, Sudeep Holla wrote: > > > On 12/09/18 15:41, Jeffrey Hugo wrote: [...] >> >> Correct.  However, what if you have a NOCACHE (not architecturally >> specified), that is fully described in PPTT, as a non-unified cache >> (data only)?  Unlikely?  Maybe.  Still seem possible th

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Jeremy Linton
Hi, On 09/12/2018 09:41 AM, Jeffrey Hugo wrote: The HW designers have indicated that there is no sane way to provide sets/ways information to software, even on an informational basis (ie not for cache maintenance, but for performance optimizations). Therefore the firmware will not provide thi

Re: [RFC PATCH 10/10] x86/fpu: defer FPU state load until return to userspace

2018-09-12 Thread Andy Lutomirski
> On Sep 12, 2018, at 6:33 AM, Sebastian Andrzej Siewior > wrote: > > From: Rik van Riel > > Defer loading of FPU state until return to userspace. This gives > the kernel the potential to skip loading FPU state for tasks that > stay in kernel mode, or for tasks that end up with repeated > in

Re: [RFC PATCH 04/10] x86/fpu: eager switch PKRU state

2018-09-12 Thread Andy Lutomirski
> On Sep 12, 2018, at 8:30 AM, Rik van Riel wrote: > > On Wed, 2018-09-12 at 08:20 -0700, Andy Lutomirski wrote: >>> >>> --- a/arch/x86/mm/pkeys.c >>> +++ b/arch/x86/mm/pkeys.c >>> @@ -18,6 +18,20 @@ >>> >>> #include /* boot_cpu_has, >>> ...*/ >>> #include

Re: [PATCH] memory_hotplug: fix the panic when memory end is not on the section boundary

2018-09-12 Thread Gerald Schaefer
On Wed, 12 Sep 2018 14:40:18 + Pasha Tatashin wrote: > On 9/12/18 10:27 AM, Gerald Schaefer wrote: > > On Wed, 12 Sep 2018 15:39:33 +0200 > > Michal Hocko wrote: > > > >> On Wed 12-09-18 15:03:56, Gerald Schaefer wrote: > >> [...] > >>> BTW, those sysfs attributes are world-readable, so

BUG: spinlock bad magic in lockref_get

2018-09-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7c1b097f27bf Add linux-next specific files for 20180912 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1456052140 kernel config: https://syzkaller.appspot.com/x/.config?x=5980033172920ec0

Re: [PATCH v4 09/16] sched/core: uclamp: map TG's clamp values into CPU's clamp groups

2018-09-12 Thread Suren Baghdasaryan
On Wed, Sep 12, 2018 at 7:19 AM, Patrick Bellasi wrote: > On 09-Sep 11:52, Suren Baghdasaryan wrote: >> On Tue, Aug 28, 2018 at 6:53 AM, Patrick Bellasi >> wrote: > > [...] > >> > +/** >> > + * release_uclamp_sched_group: release utilization clamp references of a >> > TG >> >> free_uclamp_sched_

Re: [PATCH V3 11/27] csky: Atomic operations

2018-09-12 Thread Peter Zijlstra
On Wed, Sep 12, 2018 at 09:24:45PM +0800, Guo Ren wrote: > +#define ATOMIC_OP(op, c_op) \ > +static inline void atomic_##op(int i, atomic_t *v) \ > +{\ > + unsigned lo

Re: [PATCH] workqueue: combine judgments in the loop of maybe_create_worker

2018-09-12 Thread Tejun Heo
On Wed, Sep 12, 2018 at 09:58:29PM +0800, lius...@tom.com wrote: > From: Liu Song > > Although the 'need_to_create_worker' has been determined to be > true before entering the function. However, adjusting the order > of judgment can combine two judgments in the loop. Also improve > the matching b

Re: [PATCH v4 08/16] sched/core: uclamp: propagate parent clamps

2018-09-12 Thread Suren Baghdasaryan
On Wed, Sep 12, 2018 at 5:51 AM, Patrick Bellasi wrote: > On 08-Sep 20:02, Suren Baghdasaryan wrote: >> On Tue, Aug 28, 2018 at 6:53 AM, Patrick Bellasi >> wrote: > > [...] > >> > + cpu.util.min.effective >> > +A read-only single value file which exists on non-root cgroups and >> > +

Re: [PATCH v4 02/16] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-09-12 Thread Patrick Bellasi
On 12-Sep 15:49, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 02:53:10PM +0100, Patrick Bellasi wrote: > > +/** > > + * Utilization's clamp group > > + * > > + * A utilization clamp group maps a "clamp value" (value), i.e. > > + * util_{min,max}, to a "clamp group index" (group_id). > > + */ > >

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Jeffrey Hugo
On 9/12/2018 9:38 AM, Sudeep Holla wrote: On 12/09/18 16:27, Sudeep Holla wrote: On 12/09/18 15:41, Jeffrey Hugo wrote: [...] Correct.  However, what if you have a NOCACHE (not architecturally specified), that is fully described in PPTT, as a non-unified cache (data only)?  Unlikely?  M

[PATCH] WATCHDOG: DIAG288_WDT: Fixed error POINTER_LOCATION

2018-09-12 Thread Jagdish Tirumala
Fixed ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" in file drivers/watchdog/diag288_wdt.c Signed-off-by: Jagdish Tirumala --- drivers/watchdog/diag288_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/diag288_wdt.c b/drivers/watchdog/diag288_w

Re: [PATCH] WATCHDOG: uniphier_wdt.c: Fixed error do not initialise statics to 0

2018-09-12 Thread Guenter Roeck
On Wed, Sep 12, 2018 at 08:33:54AM -0700, Jagdish Tirumala wrote: > Fixed error do not initialise statics to 0 > in file drivers/watchdog/uniphier_wdt.c > I don't mind the patch, but I do mind both subject and description as misleading. This is not an error, except for checkpatch. A subject such

Re: [PATCH] printk: inject caller information into the body of message

2018-09-12 Thread Steven Rostedt
On Wed, 12 Sep 2018 15:53:07 +0900 Sergey Senozhatsky wrote: > I scanned some of Linus' emails, and skimmed through previous discussions > on this topic. Let me quote Linus: > > : > : My preference as a user is actually to just have a dynamically > : re-sizable buffer (that's pretty much what I

Re: [PATCH 1/2] platform/x86: dell-smbios-wmi: Correct a memory leak

2018-09-12 Thread Darren Hart
On Wed, Sep 12, 2018 at 12:14:34PM +, mario.limoncie...@dell.com wrote: > Darren, > > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Monday, September 10, 2018 3:52 PM > > To: Limonciello, Mario > > Cc: Andy Shevchenko; LKML; platform-driver-...@vger

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Jeffrey Hugo
On 9/12/2018 9:39 AM, Jeremy Linton wrote: Hi, On 09/12/2018 09:41 AM, Jeffrey Hugo wrote: The HW designers have indicated that there is no sane way to provide sets/ways information to software, even on an informational basis (ie not for cache maintenance, but for performance optimizations).

RE: [PATCH v2 04/17] ceph: fix compat_ioctl for ceph_dir_operations

2018-09-12 Thread David Laight
From: Arnd Bergmann > Sent: 12 September 2018 16:01 > > The ceph_ioctl function is used both for files and directories, but only > the files support doing that in 32-bit compat mode. > > For consistency, add the same compat handler to the dir operations > as well. Have you verified that all the

[PATCH RFC] kernel/hung_task.c: disable on suspend

2018-09-12 Thread Vitaly Kuznetsov
It is possible to observe hung_task complaints when system goes to suspend-to-idle state: PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.001 seconds) done. OOM killer disabled. Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. sd 0:0:0:0: [sd

[PATCH] hyper-v: Fix wakeup from suspend-to-idle

2018-09-12 Thread Vitaly Kuznetsov
It makes little sense but still possible to put Hyper-V guests into suspend-to-idle state. To wake them up two wakeup sources were registered in the past: hyperv-keyboard and hid-hyperv. However, since commit eed4d47efe95 ("ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle") pm_wakeup_

[PATCH v6 5/7] ARM: at91: Implement clocksource selection

2018-09-12 Thread Alexandre Belloni
Allow selecting and unselecting the PIT clocksource driver so it doesn't have to be compile when unused. Tested-by: Alexander Dahl Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/mach-at91/Kc

[BISECTED] Regression: Solidrun Clearfog Base won't boot since "PCI: mvebu: Only remap I/O space if configured"

2018-09-12 Thread Jan Kundrát
Hi, since commit ee1604381a371b3ea6aec7d5e43b6e3f5e153854 ("PCI: mvebu: Only remap I/O space if configured"), my board (Solidrun Clearfog Base) won't finish booting with 4.18-rc3 won't boot: [1.741458] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM [1.748182] CPU: 1 PID:

[PATCH v6 4/7] clocksource/drivers: atmel-pit: make option silent

2018-09-12 Thread Alexandre Belloni
To conform with the other option, make the ATMEL_PIT option silent so it can be selected from the platform Tested-by: Alexander Dahl Signed-off-by: Alexandre Belloni --- drivers/clocksource/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconf

[PATCH v6 7/7] ARM: configs: at91: unselect PIT

2018-09-12 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 + arch/arm/configs/sama5_defconfig

[PATCH v6 1/7] ARM: at91: add TCB registers definitions

2018-09-12 Thread Alexandre Belloni
Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. Tested-by: Alexander Dahl Tested-by: Andras Szemzo Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 183 +++ 1 file changed, 183 insertions(+) create mod

[PATCH v6 6/7] ARM: configs: at91: use new TCB timer driver

2018-09-12 Thread Alexandre Belloni
Unselecting ATMEL_TCLIB switches the TCB timer driver from tcb_clksrc to timer-atmel-tcb. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/sama5_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/a

[PATCH v6 2/7] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2018-09-12 Thread Alexandre Belloni
Add a driver for the Atmel Timer Counter Blocks. This driver provides a clocksource and two clockevent devices. One of the clockevent device is linked to the clocksource counter and so it will run at the same frequency. This will be used when there is only on TCB channel available for timers. The

[PATCH v6 0/7] clocksource: rework Atmel TCB timer driver

2018-09-12 Thread Alexandre Belloni
Hi, This series reworks the Atmel TCB drivers. It introduces a new driver to handle the clocksource and clockevent devices. As a reminder, this is necessary because: - the current tcb_clksrc driver is probed too late to be able to be used at boot and we now have SoCs that don't have a PIT. Th

Re: [PATCH v3 4/4] fs/dcache: Eliminate branches in nr_dentry_negative accounting

2018-09-12 Thread Waiman Long
On 09/12/2018 11:55 AM, Matthew Wilcox wrote: > On Wed, Sep 12, 2018 at 11:49:22AM -0400, Waiman Long wrote: >>> unless our macrology has got too clever for the compilre to see through >>> it. In which case, the right answer is to simplify the percpu code, >>> not to force the compiler to optimise

[PATCH v6 3/7] clocksource/drivers: timer-atmel-tcb: add clockevent device on separate channel

2018-09-12 Thread Alexandre Belloni
Add an other clockevent device that uses a separate TCB channel when available. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 217 +- 1 file changed, 212 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/timer-atmel-tcb.c b/dr

Re: [PATCH v4 02/16] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-09-12 Thread Peter Zijlstra
On Wed, Sep 12, 2018 at 04:56:19PM +0100, Patrick Bellasi wrote: > On 12-Sep 15:49, Peter Zijlstra wrote: > > On Tue, Aug 28, 2018 at 02:53:10PM +0100, Patrick Bellasi wrote: > > > +/** > > > + * uclamp_map: reference counts a utilization "clamp value" > > > + * @value:the utilization "clamp v

Re: [PATCH] WATCHDOG: DIAG288_WDT: Fixed error POINTER_LOCATION

2018-09-12 Thread Guenter Roeck
On Wed, Sep 12, 2018 at 08:56:32AM -0700, Jagdish Tirumala wrote: > Fixed ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" in > file drivers/watchdog/diag288_wdt.c > Same as before. Guenter > Signed-off-by: Jagdish Tirumala > --- > drivers/watchdog/diag288_wdt.c | 2 +- > 1 file chang

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Sudeep Holla
On Wed, Sep 12, 2018 at 09:57:14AM -0600, Jeffrey Hugo wrote: > On 9/12/2018 9:38 AM, Sudeep Holla wrote: > > > > > >On 12/09/18 16:27, Sudeep Holla wrote: > >> > >> > >>On 12/09/18 15:41, Jeffrey Hugo wrote: > > > >[...] > > > >>> > >>>Correct.  However, what if you have a NOCACHE (not architectur

Re: [RFC 0/4] perf: Per PMU access controls (paranoid setting)

2018-09-12 Thread Alexey Budankov
Hi, On 12.09.2018 11:41, Tvrtko Ursulin wrote: > > On 12/09/18 07:52, Alexey Budankov wrote: >> >> Hi, >> >> Is there any plans or may be even progress on that so far? > > It's hanging in the back of my mind. AFAIR after last round there was a build > failure or two to fix on more exotic (to me

[PATCH v4 0/2] phy: zynqmp: Add phy driver for xilinx zynqmp phy core

2018-09-12 Thread Anurag Kumar Vulisha
ZynqMP serial input output unit (SIOU) is a high-speed serial interface block that acts as a phy interface for the PCIe, USB 3.0, DisplayPort, SATA, and Ethernet controllers. These controllers use any one among the available four multigigabit transceivers for high-speed communication with their lin

[PATCH v4 1/2] phy: zynqmp: Add dt bindings for ZynqMP phy

2018-09-12 Thread Anurag Kumar Vulisha
This patch adds the document describing dt bindings for ZynqMP phy. ZynqMP SOC has a High Speed Processing System Gigabit Transceiver which provides PHY capabilties to USB, SATA, PCIE, Display Port and Ehernet SGMII controllers. Signed-off-by: Anurag Kumar Vulisha --- Changes in v4: 1. F

[PATCH v4 2/2] phy: zynqmp: Add phy driver for xilinx zynqmp phy core

2018-09-12 Thread Anurag Kumar Vulisha
ZynqMP SoC has a Gigabit Transceiver with four lanes. All the high speed peripherals such as USB, SATA, PCIE, Display Port and Ethernet SGMII can rely on any of the four GT lanes for PHY layer. This patch adds driver for that ZynqMP GT core. Signed-off-by: Anurag Kumar Vulisha --- Changes in v4:

Re: [PATCH v4 02/16] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-09-12 Thread Peter Zijlstra
On Tue, Aug 28, 2018 at 02:53:10PM +0100, Patrick Bellasi wrote: > static inline int __setscheduler_uclamp(struct task_struct *p, > const struct sched_attr *attr) But large for inline now. > { > + int group_id[UCLAMP_CNT] = { UCLAMP_NOT_VALID }; > +

Re: [PATCH 5/5] PM / hibernate: An option to request that snapshot image must be authenticated

2018-09-12 Thread Randy Dunlap
Hi, On 9/12/18 7:23 AM, Lee, Chun-Yi wrote: > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > index 7c5c30149dbc..3c998fd6dc4c 100644 > --- a/kernel/power/Kconfig > +++ b/kernel/power/Kconfig > @@ -90,6 +90,17 @@ config HIBERNATION_ENC_AUTH > master key of hibernation. The TPM t

Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types

2018-09-12 Thread Jeffrey Hugo
On 9/12/2018 10:15 AM, Sudeep Holla wrote: On Wed, Sep 12, 2018 at 09:57:14AM -0600, Jeffrey Hugo wrote: On 9/12/2018 9:38 AM, Sudeep Holla wrote: On 12/09/18 16:27, Sudeep Holla wrote: On 12/09/18 15:41, Jeffrey Hugo wrote: [...] Correct.  However, what if you have a NOCACHE (not arc

Re: [PATCH v2 04/17] ceph: fix compat_ioctl for ceph_dir_operations

2018-09-12 Thread Arnd Bergmann
On Wed, Sep 12, 2018 at 6:10 PM David Laight wrote: > > From: Arnd Bergmann > > Sent: 12 September 2018 16:01 > > > > The ceph_ioctl function is used both for files and directories, but only > > the files support doing that in 32-bit compat mode. > > > > For consistency, add the same compat handle

Re: [PATCH RFC] mm: don't raise MEMCG_OOM event due to failed high-order allocation

2018-09-12 Thread Roman Gushchin
On Wed, Sep 12, 2018 at 02:35:34PM +0200, Michal Hocko wrote: > On Tue 11-09-18 08:27:30, Roman Gushchin wrote: > > On Tue, Sep 11, 2018 at 02:11:41PM +0200, Michal Hocko wrote: > > > On Mon 10-09-18 14:56:22, Roman Gushchin wrote: > > > > The memcg OOM killer is never invoked due to a failed high-

[no subject]

2018-09-12 Thread cth163
hi https://goo.gl/djjKWM

Re: [PATCH 1/5] PM / hibernate: Create snapshot keys handler

2018-09-12 Thread Randy Dunlap
Hi, On 9/12/18 7:23 AM, Lee, Chun-Yi wrote: > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > index 3a6c2f87699e..7c5c30149dbc 100644 > --- a/kernel/power/Kconfig > +++ b/kernel/power/Kconfig > @@ -76,6 +76,20 @@ config HIBERNATION > > For more information take a look at > .

Re: [PATCH 4/5] lib/ioremap: Ensure phys_addr actually corresponds to a physical address

2018-09-12 Thread Will Deacon
Hi Sean, Thanks for looking at the patch. On Wed, Sep 12, 2018 at 08:09:39AM -0700, Sean Christopherson wrote: > On Wed, Sep 12, 2018 at 11:26:13AM +0100, Will Deacon wrote: > > The current ioremap() code uses a phys_addr variable at each level of > > page table, which is confusingly offset by su

[PATCH 1/2] introduce for_each_process_thread_break() and for_each_process_thread_continue()

2018-09-12 Thread Oleg Nesterov
Usage: rcu_read_lock(); for_each_process_thread(p, t) { do_something_slow(p, t); if (SPENT_TOO_MUCH_TIME) { for_each_process_thread_break(p, t); rcu_read_unlock(); schedule();

[PATCH 0/2] introduce for_each_process_thread_break() and for_each_process_thread_continue()

2018-09-12 Thread Oleg Nesterov
Resend. IMHO this makes sense anyway, but mostly this is preparation for other changes. show_state_filter() and other "slow" users of for_each_process() can livelock and even trigger hard lockups. Peter, you have already reviewed at least 1/2 (heh, two years ago) and iirc you were mostly agree bu

<    1   2   3   4   5   6   7   8   >