Re: [PATCH] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2017-08-27 Thread Vlastimil Babka
+CC linux-api On 08/28/2017 02:28 AM, Joonsoo Kim wrote: > On Fri, Aug 25, 2017 at 09:56:10AM +0200, Vlastimil Babka wrote: >> On 08/25/2017 02:20 AM, Joonsoo Kim wrote: >>> On Thu, Aug 24, 2017 at 11:41:58AM +0200, Vlastimil Babka wrote: >>> >>> Hmm, this is already pointed by Minchan and I have

Re: [PATCH v5] iio: accel: mma8452: improvements to handle multiple events

2017-08-27 Thread Martin Kepplinger
Am 28.08.2017 02:23 schrieb Harinath Nampally: This driver supports multiple devices like mma8653, mma8652, mma8452, mma8453 and fxls8471. Almost all these devices have more than one event. Current driver design hardcodes the event specific information, so only one event can be s

Re: [PATCH] Revert "pinctrl: sunxi: Don't enforce bias disable (for now)"

2017-08-27 Thread Maxime Ripard
1;4803;0c On Sun, Aug 27, 2017 at 03:55:23PM +0300, Priit Laes wrote: > This reverts commit 2154d94b40ea2a5de05245521371d0461bb0d669. > > The original patch was intented to avoid some issues with the sunxi > gpio rework and was supposed to be reverted after all the required > DT bits had been merg

Re: [PATCH v2 4/5] cramfs: add mmap support

2017-08-27 Thread Al Viro
On Wed, Aug 16, 2017 at 01:35:35PM -0400, Nicolas Pitre wrote: > +static const struct vm_operations_struct cramfs_vmasplit_ops; > +static int cramfs_vmasplit_fault(struct vm_fault *vmf) > +{ > + struct mm_struct *mm = vmf->vma->vm_mm; > + struct vm_area_struct *vma, *new_vma; > + unsig

Re: [PATCH] DSA support for Micrel KSZ8895

2017-08-27 Thread Pavel Machek
Hi! > >No, tag_ksz part probably is not acceptable. Do you see solution > >better than just copying it into tag_ksz1 file? > > You could have all Micrel tag implementations live under net/dsa/tag_ksz.c > and have e.g: DSA_TAG_PROTO_KSZ for the current (newer) switches and > DSA_TAG_PROTO_KSZ_LE

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-27 Thread Mike Galbraith
On Mon, 2017-08-28 at 08:10 +0200, Mike Galbraith wrote: > Iff deeper cstate etc for > longer does make a big difference, I can imagine wakeup time migrate > leftward if capacity exists as an "on battery" tactic. (though that > thought also invokes some unpleasant bounce fest images) (consolidate

Re: linux-next: manual merge of the scsi tree with the staging tree

2017-08-27 Thread Greg KH
On Mon, Aug 28, 2017 at 04:41:27PM +1000, Stephen Rothwell wrote: > Hi James, > > Today's linux-next merge of the scsi tree got a conflict in: > > drivers/staging/unisys/visorhba/visorhba_main.c > > between commits: > > 781facd05eb9 ("staging: unisys: visorhba: visorhba_main.c: fixed commen

[PATCH v4] ACPI / PMIC: Add opregion driver for Intel Dollar Cove TI PMIC

2017-08-27 Thread Takashi Iwai
This patch adds the opregion driver for Dollar Cove TI PMIC on Intel Cherry Trail devices. The patch is based on the original work by Intel, found at: https://github.com/01org/ProductionKernelQuilts with many cleanups and rewrites. The driver is currently provided only as built-in to follow

Re: [PATCH net-next v2 09/14] net: mvpp2: dynamic reconfiguration of the PHY mode

2017-08-27 Thread Antoine Tenart
Hi Russell, On Fri, Aug 25, 2017 at 11:46:16PM +0100, Russell King - ARM Linux wrote: > On Fri, Aug 25, 2017 at 04:48:16PM +0200, Antoine Tenart wrote: > > This patch adds logic to reconfigure the comphy/gop when the link status > > change at runtime. This is very useful on boards such as the mcbi

Re: [PATCH] zram: add zstd to the supported algorithms list

2017-08-27 Thread Minchan Kim
Hi Nick, On Fri, Aug 25, 2017 at 07:31:14PM +, Nick Terrell wrote: > On 8/24/17, 10:19 PM, "Minchan Kim" wrote: > > On Fri, Aug 25, 2017 at 01:35:35AM +, Nick Terrell wrote: > [..] > > > I think using dictionaries in zram could be very interesting. We could for > > > example, take a rando

[patch V3 11/44] x86/apic: Remove the duplicated tracing versions of interrupts

2017-08-27 Thread Thomas Gleixner
The error and the spurious interrupt are really rare events and not at all so performance sensitive that two NOP5s can not be tolerated when tracing is disabled. Remove the nonsense. Signed-off-by: Thomas Gleixner Reviewed-by: Steven Rostedt (VMware) --- arch/x86/include/asm/hw_irq.h |4 +-

[patch V3 43/44] x86/idt: Simplify alloc_intr_gate

2017-08-27 Thread Thomas Gleixner
The only users of alloc_intr_gate() are hypervisors, which both check the used_vectors bitmap whether they have allocated the gate already. Move that check into alloc_intr_gate() and simplify the users. Signed-off-by: Thomas Gleixner Reviewed-by: Juergen Gross Cc: "K. Y. Srinivasan" Cc: Stephen

[patch V3 23/44] x86/percpu: Use static initializer for GDT entry

2017-08-27 Thread Thomas Gleixner
The IDT cleanup is about to remove pack_descriptor(). The GDT setup for the percpu storage can be achieved with the static initializer as well. Replace it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/setup_percpu.c |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) --- a/a

[patch V3 24/44] x86/fpu: Use bitfield accessors for desc_struct

2017-08-27 Thread Thomas Gleixner
desc_struct is a union of u32 fields and bitfields. The access to the u32 fields is done with magic macros. Convert it to use the bitfields and replace the macro magic with parseable inline functions. Signed-off-by: Thomas Gleixner --- arch/x86/math-emu/fpu_entry.c | 11 - arch/x86/

[patch V3 44/44] x86/idt: Hide set_intr_gate()

2017-08-27 Thread Thomas Gleixner
set_intr_gate() is an internal function of the IDT code. The only user left is the KVM code which replaces the pagefault handler eventually. Provide an explicit update_intr_gate() function and make set_intr_gate() static. While at it replace the magic number 14 in the KVM code with the proper trap

[patch V3 41/44] x86/idt: Remove unused functions/inlines

2017-08-27 Thread Thomas Gleixner
The IDT related inlines are not longer used. Remove them. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h | 36 1 file changed, 36 deletions(-) --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include/asm/desc.h @@ -390,16 +390,6 @@ static i

[patch V3 42/44] x86/idt: Deinline setup functions

2017-08-27 Thread Thomas Gleixner
Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h | 37 ++--- arch/x86/kernel/idt.c | 43 ++- 2 files changed, 36 insertions(+), 44 deletions(-) --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include

[patch V3 38/44] x86/idt: Move regular trap init to tables

2017-08-27 Thread Thomas Gleixner
Initialize the regular traps with a table. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h |1 arch/x86/kernel/idt.c | 51 arch/x86/kernel/traps.c | 41 --- 3 files changed, 53 insertio

[patch V3 27/44] x86/ldttss: Cleanup 32bit descriptors

2017-08-27 Thread Thomas Gleixner
Like the IDT descriptors the LDT/TSS descriptors are pointlessly different on 32 and 64 bit. Unify them and get rid of the duplicated code. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h | 26 +++--- arch/x86/include/asm/desc_defs.h | 27

[patch V3 40/44] x86/idt: Move interrupt gate initialization to IDT code

2017-08-27 Thread Thomas Gleixner
Move the gate intialization from interrupt init to the IDT code so all IDT related operations are at a single place. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/idt.c | 18 ++ arch/x86/kernel/irqinit.c | 18 -- 2 files changed, 18 insertions(+), 18

[patch V3 36/44] x86/idt: Move debug stack init to table based

2017-08-27 Thread Thomas Gleixner
Add the debug_idt init table and make use of it. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h |2 ++ arch/x86/kernel/idt.c | 23 +++ arch/x86/kernel/traps.c |6 +- 3 files changed, 26 insertions(+), 5 deletions(-) --- a/arch/x86/incl

Re: [PATCH net-next v2 05/14] net: mvpp2: do not force the link mode

2017-08-27 Thread Antoine Tenart
Hi Russell, On Fri, Aug 25, 2017 at 11:43:13PM +0100, Russell King - ARM Linux wrote: > On Fri, Aug 25, 2017 at 04:48:12PM +0200, Antoine Tenart wrote: > > The link mode (speed, duplex) was forced based on what the phylib > > returns. This should not be the case, and only forced by ethtool > > fun

[patch V3 39/44] x86/idt: Move APIC gate initialization to tables

2017-08-27 Thread Thomas Gleixner
Replace the APIC/SMP vector gate initialization with the table based mechanism. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h |1 arch/x86/kernel/idt.c | 48 ++ arch/x86/kernel/irqinit.c | 69 --

Re: [RFC] workqueue: remove manual lockdep uses to detect deadlocks

2017-08-27 Thread Peter Zijlstra
On Fri, Aug 25, 2017 at 05:41:03PM +0900, Byungchul Park wrote: > Hello all, > > This is _RFC_. > > I want to request for comments about if it's reasonable conceptually. If > yes, I want to resend after working it more carefully. > > Could you let me know your opinions about this? > > ->8--

[patch V3 37/44] x86/idt: Move ist stack based traps to table init

2017-08-27 Thread Thomas Gleixner
Initialize the IST based traps via a table Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h |2 ++ arch/x86/kernel/idt.c | 22 ++ arch/x86/kernel/traps.c |9 + 3 files changed, 25 insertions(+), 8 deletions(-) --- a/arch/x86/include/

[patch V3 26/44] x86/gdt: Use bitfields for initialization

2017-08-27 Thread Thomas Gleixner
The GDT entry related code uses partially bitfields and macros which initialize the two 16 bit parts of the entry by magic shift and mask operations. Clean it up and use the bitfields to initialize and access entries. Signed-off-by: Thomas Gleixner --- arch/x86/entry/vdso/vma.c|2 -

[patch V3 34/44] x86/idt: Prepare for table based init

2017-08-27 Thread Thomas Gleixner
The IDT setup code is handled in several places. All of them use variants of set_intr_gate() inlines. This can be done with a table based initialization, which allows to reduce the inline zoo and puts all IDT related code and information into a single place. Add the infrastructure. Signed-off-by:

[patch V3 35/44] x86/idt: Switch early trap init to IDT tables

2017-08-27 Thread Thomas Gleixner
Add the initialization table for the early trap setup and replace the early trap init code. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/idt.c | 53 arch/x86/kernel/setup.c |4 +-- arch/x86/kernel/traps.c | 27 -

Re: [PATCH] leds/trigger/activity: add a system activity LED trigger

2017-08-27 Thread Willy Tarreau
Hi Jacek, On Sun, Aug 27, 2017 at 06:44:05PM +0200, Jacek Anaszewski wrote: > Hi Willy, > > Thanks for the updated patch. > > One formal note: please send the patches with git send-email instead > of attaching them to the message. Yep, I hesitated and wanted to reply. Will do it the other way n

[patch V3 31/44] x86/idt: Consolidate IDT invalidation

2017-08-27 Thread Thomas Gleixner
kexec and reboot have both code to invalidate IDT. Create a common function and use it. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h|3 +++ arch/x86/kernel/idt.c | 11 +++ arch/x86/kernel/machine_kexec_32.c | 14 +- arch/x86/kern

[patch V3 32/44] x86/idt: Move early IDT handler setup to IDT code

2017-08-27 Thread Thomas Gleixner
The early IDT handler setup is done in C entry code for 64 bit and in ASM entry code for 32 bit. Move the 64bit variant to the IDT code so it can be shared with 32bit in the next step. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h |9 + arch/x86/kernel/head64.c|

[patch V3 33/44] x86/idt: Move early IDT setup out of 32bit asm

2017-08-27 Thread Thomas Gleixner
The early IDT setup can be done in C code like it's done on 64 bit. Reuse the 64 bit version. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/segment.h |1 + arch/x86/kernel/head32.c |4 arch/x86/kernel/head_32.S | 36 ++-- arch/x

[patch V3 25/44] x86: Replace access to desc_struct:a/b fields

2017-08-27 Thread Thomas Gleixner
The union inside of desc_struct which allows access to the raw u32 parts of the descriptors. This raw access part is about to go away. Replace the few code parts which access those fields. Signed-off-by: Thomas Gleixner Reviewed-by: Boris Ostrovsky Cc: Juergen Gross --- arch/x86/include/asm/x

[patch V3 30/44] x86/idt: Remove unused set_trap_gate()

2017-08-27 Thread Thomas Gleixner
This inline is not used at all. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h | 12 1 file changed, 12 deletions(-) --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include/asm/desc.h @@ -446,18 +446,6 @@ static inline void set_system_intr_gate( _set_gate

[patch V3 29/44] x86/idt: Move 32bit idt_descr to C code

2017-08-27 Thread Thomas Gleixner
32bit has the idt_descr sitting in the low level assembly entry code. There is no reason for that. Move it into the C file and use the 64bit version of it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/head_32.S |6 -- arch/x86/kernel/idt.c | 10 +- 2 files changed, 5

[patch V3 19/44] x86/ipi: Make platform IPI depend on APIC

2017-08-27 Thread Thomas Gleixner
The platform IPI vector is only installed when the local APIC is enabled. All users of it depend on the local APIC anyway. Make the related code conditional on CONFIG_X86_LOCAL_APIC. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/entry_arch.h |3 +-- arch/x86/kernel/irq.c

<    1   2   3   4