[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

[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 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 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

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 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 -

[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 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 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/

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 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

[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 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 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 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 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 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 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

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

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

[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: 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

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: [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 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 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] 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

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

2017-08-27 Thread Stephen Rothwell
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 comment formatting issues") from the staging tree and commit: 7bc4e528d9f6 ("scsi: vi

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? > > How about something like this, which needs further work to actually > compile, but should give you the idea. If that's acceptable, yes, I can do something similar. I d

Re: [PATCH] s390/zcrypt: make CPRBX const

2017-08-27 Thread Harald Freudenberger
On 08/25/2017 03:10 PM, Bhumika Goyal wrote: > Make this const as it is only used in a copy operation. > > Signed-off-by: Bhumika Goyal > --- > drivers/s390/crypto/zcrypt_msgtype6.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/s390/crypto/zcrypt_msgtype6.c > b

[PATCH v2 2/2] ARM: dts: sun7i: Add dts file for A20-OLinuXino-MICRO-eMMC

2017-08-27 Thread Stefan Mavrodiev
A20-OLinuXino-MICRO has option with onboard eMMC chip. For now it's only shipped with 4BG chip, but in the future this may change. Signed-off-by: Stefan Mavrodiev --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun7i-a20-olinuxino-micro-emmc.dts| 70 ++

[PATCH v2 1/2] ARM: dts: sun7i: Fix A20-OLinuXino-MICRO dts for LAN8710

2017-08-27 Thread Stefan Mavrodiev
>From revision J the board uses new phy chip LAN8710. Compared with RTL8201, RA17 pin is TXERR. It has pullup which causes phy not to work. To fix this PA17 is muxed with GMAC function. This makes the pin output-low. This patch is compatible with earlier board revisions, since this pin wasn't conn

[PATCH v2 0/2] Update board support for A20-OLinuXino-MICRO

2017-08-27 Thread Stefan Mavrodiev
>From rev.J of A20-OLinuXino-MICRO, the board has new PHY chip (LAN8710) which replace RTL8201. Also there is option for 4GB eMMC chip. Changes in v2: * Remove pinctrl request for eMMC reset pin * Dump the idea of renaming boards with emmc * Using txerr as gmac function St

Re: [PATCH 12/12] dma-mapping: turn dma_cache_sync into a dma_map_ops method

2017-08-27 Thread Geert Uytterhoeven
Hi Christoph, On Sun, Aug 27, 2017 at 6:10 PM, Christoph Hellwig wrote: > After we removed all the dead wood it turns out only two architectures > actually implement dma_cache_sync as a no-op: mips and parisc. Add s/no-op/real op/ > a cache_sync method to struct dma_map_ops and implement it fo

[PATCH net-next v3 1/3] net/ncsi: Fix several packet definitions

2017-08-27 Thread Samuel Mendoza-Jonas
Signed-off-by: Samuel Mendoza-Jonas --- v2: Rebased on latest net-next net/ncsi/ncsi-cmd.c | 10 +- net/ncsi/ncsi-pkt.h | 2 +- net/ncsi/ncsi-rsp.c | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/net/ncsi/ncsi-cmd.c b/net/ncsi/ncsi-cmd.c index 5e03ed190e18..7567

Re: [PATCH] staging: rtl8723bs: remove memset before memcpy

2017-08-27 Thread Dan Carpenter
On Mon, Aug 28, 2017 at 01:43:31AM +0530, Himanshu Jha wrote: > calling memcpy immediately after memset with the same region of memory > makes memset redundant. > > Build successfully. > Thanks for the patch, it looks good. You don't need to say that it builds successfully, because we already a

[PATCH net-next v3 3/3] ftgmac100: Support NCSI VLAN filtering when available

2017-08-27 Thread Samuel Mendoza-Jonas
Register the ndo_vlan_rx_{add,kill}_vid callbacks and set the NETIF_F_HW_VLAN_CTAG_FILTER if NCSI is available. This allows the VLAN core to notify the NCSI driver when changes occur so that the remote NCSI channel can be properly configured to filter on the set VLAN tags. Signed-off-by: Samuel Me

[PATCH net-next v3 2/3] net/ncsi: Configure VLAN tag filter

2017-08-27 Thread Samuel Mendoza-Jonas
Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI stack process new VLAN tags and configure the channel VLAN filter appropriately. Several VLAN tags can be set and a "Set VLAN Filter" packet must be sent for each one, meaning the ncsi_dev_state_config_svf state must be repeated.

[PATCH net-next v3 0/3] NCSI VLAN Filtering Support

2017-08-27 Thread Samuel Mendoza-Jonas
This series (mainly patch 2) adds VLAN filtering to the NCSI implementation. A fair amount of code already exists in the NCSI stack for VLAN filtering but none of it is actually hooked up. This goes the final mile and fixes a few bugs in the existing code found along the way (patch 1). Patch 3 add

[PATCH] [media] uvcvideo: zero seq number when disabling stream

2017-08-27 Thread Hans Yang
For bulk-based devices, when disabling the video stream, in addition to issue CLEAR_FEATURE(HALT), it is better to set alternate setting 0 as well or the sequnce number in host side will probably not reset to zero. Then in next time video stream start, the device will expect host starts packet fro

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

2017-08-27 Thread Mike Galbraith
On Sun, 2017-08-27 at 22:27 -0700, Joel Fernandes wrote: > Hi Mike, > > On Sun, Aug 27, 2017 at 11:07 AM, Mike Galbraith wrote: > > On Sat, 2017-08-26 at 23:39 -0700, Joel Fernandes wrote: > >> > >> Also about real world benchmarks, in Android we have usecases that > >> show that the graphics per

Re: Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-27 Thread Paul Mackerras
On Mon, Aug 28, 2017 at 06:28:08AM +0100, Al Viro wrote: > On Mon, Aug 28, 2017 at 02:38:37PM +1000, Paul Mackerras wrote: > > On Sun, Aug 27, 2017 at 10:02:20PM +0100, Al Viro wrote: > > > On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote: > > > > > > > It seems to me that it would b

Re: [PATCH] connector: Delete an error message for a failed memory allocation in cn_queue_alloc_callback_entry()

2017-08-27 Thread Dan Carpenter
On Sun, Aug 27, 2017 at 11:16:06PM +, Waskiewicz Jr, Peter wrote: > On 8/27/17 3:26 PM, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Sun, 27 Aug 2017 21:18:37 +0200 > > > > Omit an extra message for a memory allocation failure in this function. > > > > This issue was detected

[PATCH] powerpc/512x: clk: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. mpc512x_clk_divtable function working with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/powerpc/platforms/512x/clock-commonclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

Re: [LKP] [lkp-robot] [sched/cfs] 625ed2bf04: unixbench.score -7.4% regression

2017-08-27 Thread Huang, Ying
kernel test robot writes: > Greeting, > > FYI, we noticed a -7.4% regression of unixbench.score due to commit: > > > commit: 625ed2bf049d5a352c1bcca962d6e133454eaaff ("sched/cfs: Make > util/load_avg more stable") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > in t

[PATCH] net: stmmac: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. meson8b_dwmac structure is working with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-08-27 Thread Andrew Jeffery
The PCA9552 lines can be used either for driving LEDs or as GPIOs. The manual states that for LEDs, the operation is open-drain: The LSn LED select registers determine the source of the LED data. 00 = output is set LOW (LED on) 01 = output is set high-impedance (LED

Re: [PATCH v8 00/13] Unify the interrupt delivery mode and do its setup in advance

2017-08-27 Thread Dou Liyang
Hi, Follow Juergen's advice, +CC xen-devel and linux-acpi In case a single patch of a series isn't stand alone it would be nice to receive at least the cover letter of the series in order to know what its all about. Thanks, dou. At 08/28/2017 11:20 AM, Dou Liyang wrote: Changes V7 -->

[PATCH] remoteproc: Introduce rproc handle accessor for children

2017-08-27 Thread Bjorn Andersson
In certain circumstances rpmsg devices needs to acquire a handle to the ancestor remoteproc instance, e.g. to invoke rproc_report_crash() when a fatal error is detected. Introduce an interface that walks the device tree in search for a remoteproc instance and return this. Signed-off-by: Bjorn Ande

[PATCH] remoteproc: Stop subdevices in reverse order

2017-08-27 Thread Bjorn Andersson
Subdevices might depend on earlier registered subdevices for communication purposes, as such they should be stopped in reverse order so that said communication channel is removed after the dependent subdevice is stopped. Signed-off-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 2

[PATCH 2/2] clk: zte: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by work with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/clk/zte/clk-zx296718.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

[PATCH 1/2] clk: imx: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by work with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/clk/imx/clk-imx6sl.c | 6 +++--- drivers/clk/imx/clk-imx6sx.c | 6 +++--- driv

[PATCH 0/2] constify clk clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by work with const clk_div_table. So mark the non-const structs as const. Arvind Yadav (2): [PATCH 1/2] clk: imx: constify clk_div_table [PATCH 2/2] clk: zte: constify clk_div_table driver

Re: Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-27 Thread Al Viro
On Mon, Aug 28, 2017 at 02:38:37PM +1000, Paul Mackerras wrote: > On Sun, Aug 27, 2017 at 10:02:20PM +0100, Al Viro wrote: > > On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote: > > > > > It seems to me that it would be better to do the anon_inode_getfd() > > > call before the kvm_get

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

2017-08-27 Thread Joel Fernandes
Hi Mike, On Sun, Aug 27, 2017 at 11:07 AM, Mike Galbraith wrote: > On Sat, 2017-08-26 at 23:39 -0700, Joel Fernandes wrote: >> >> Also about real world benchmarks, in Android we have usecases that >> show that the graphics performance and we have risk of frame drops if >> we don't use the sync fl

Re: [PATCH net-next v7 05/10] landlock: Add LSM hooks related to filesystem

2017-08-27 Thread Alexei Starovoitov
On Sun, Aug 27, 2017 at 03:31:35PM +0200, Mickaël Salaün wrote: > > > How can you add 3rd argument? All FS events would have to get it, > > but in some LSM hooks such argument will be meaningless, whereas > > in other places it will carry useful info that rule can operate on. > > Would that mean t

Re: [PATCH v2 RESEND 1/2] dt-bindings: serial: 8250: Add MediaTek BTIF controller bindings

2017-08-27 Thread Matthias Brugger
On 08/27/2017 10:39 PM, Sean Wang wrote: On Sun, 2017-08-27 at 22:00 +0300, Matthias Brugger wrote: On 08/19/2017 09:06 PM, sean.w...@mediatek.com wrote: From: Sean Wang Document the devicetree bindings in 8250.txt for MediaTek BTIF controller which could be found on MT7622 and MT7623 SoC.

Re: [PATCH v7 12/12] powerpc/vas: Define copy/paste interfaces

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Hi Suka, > > A few more things ... > > Sukadev Bhattiprolu writes: > > > diff --git a/arch/powerpc/platforms/powernv/copy-paste.h > > b/arch/powerpc/platforms/powernv/copy-paste.h > > new file mode 100644 > > index 000..7783bb8 > > --- /dev/n

linux-next: manual merge of the xen-tip tree with the tip tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got conflicts in: arch/x86/xen/xen-asm.S arch/x86/xen/xen-asm_64.S between commit: edcb5cf84f05 ("x86/paravirt/xen: Remove xen_patch()") from the tip tree and commits: ad5b8c4ba323("xen: get rid of paravirt op adjust_exception_frame

Re: [PATCH 3/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-27 Thread Huang, Ying
"Huang, Ying" writes: > Hi, Peter, > > "Huang, Ying" writes: > >> Peter Zijlstra writes: >> >>> On Sat, Aug 05, 2017 at 08:47:02AM +0800, Huang, Ying wrote: Yes. That looks good. So you will prepare the final patch? Or you hope me to do that? >>> >>> I was hoping you'd do it ;-) >>

Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit

2017-08-27 Thread Linus Torvalds
On Sun, Aug 27, 2017 at 6:29 PM, Nicholas Piggin wrote: > > BTW. since you are looking at this stuff, one other small problem I remember > with exclusive waiters is that losing to a concurrent locker puts them to > the back of the queue. I think that could be fixed with some small change to > the

Re: [Xen-devel] [PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Dou Liyang
Hi Juergen, At 08/28/2017 12:32 PM, Juergen Gross wrote: On 28/08/17 06:25, Juergen Gross wrote: On 28/08/17 05:20, Dou Liyang wrote: XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() initializes interrupts in the XEN PV specific way and does not invoke native_smp_prepare_cpus().

Re: [PATCH v7 10/12] powerpc/vas: Define vas_win_close() interface

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Hi Suka, > > More comments :) Thanks! > > Sukadev Bhattiprolu writes: > > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > index 2dd4b63..24288dd 100644 > > --- a/arch/powerpc/plat

Re: [PATCH V1] thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

2017-08-27 Thread kgunda
On 2017-08-26 04:49, Stephen Boyd wrote: On 08/25, Zhang Rui wrote: On Thu, 2017-08-17 at 13:12 +0530, kgu...@codeaurora.org wrote: > On 2017-08-16 17:53, kgu...@codeaurora.org wrote: > > > > On 2017-08-08 13:42, Zhang Rui wrote: > > > > > > On Thu, 2017-07-13 at 17:39 +0530, Kiran Gunda wrote:

[PATCH] tracing: make dynamic types can use __TRACE_LAST_TYPE

2017-08-27 Thread Zhou Chengming
Obviously, trace_events that defined staticly in trace.h won't use __TRACE_LAST_TYPE, so make dynamic types can use it. And some minor changes to trace_search_list() to make code clearer. Signed-off-by: Zhou Chengming --- kernel/trace/trace_output.c | 12 ++-- 1 file changed, 6 insertion

Re: [PATCH v7 08/12] powerpc/vas: Define vas_win_id()

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > > Define an interface to return a system-wide unique id for a given VAS > > window. > > > > The vas_win_id() will be used in a follow-on patch to generate an unique > > handle for a user space receive window. Applicat

Re: [PATCH v7 06/12] powerpc/vas: Define helpers to alloc/free windows

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > + rc = ida_pre_get(ida, GFP_KERNEL); > > + if (!rc) > > + return -EAGAIN; > > + > > + spi

linux-next: manual merge of the kvm tree with the tip tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kvm/mmu.c between commit: ea2800ddb20d ("kvm/x86: Avoid clearing the C-bit in rsvd_bits()") from the tip tree and commit: d6321d493319 ("KVM: x86: generalize guest_cpuid_has_ helpers") from the kvm tree. I fi

Re: [PATCH v7 05/12] powerpc/vas: Define helpers to init window context

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > index a3a705a..3a50d6a 100644 > > --- a/arch/powerpc/platforms/powernv/vas-window.c > > +++ b/arch/powerpc

Re: Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-27 Thread Paul Mackerras
On Sun, Aug 27, 2017 at 10:02:20PM +0100, Al Viro wrote: > On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote: > > > It seems to me that it would be better to do the anon_inode_getfd() > > call before the kvm_get_kvm() call, and go to the fail label if it > > fails. > > And what happe

Re: [PATCH] Fix compat_sys_sigpending breakage introduced by v4.13-rc1~6^2~12

2017-08-27 Thread Al Viro
On Sun, Aug 06, 2017 at 07:22:03PM +0100, Al Viro wrote: > I would pick it through my tree, but the local network is half-disasembled > for move (containers arrive tomorrow, flight to Boston on 9th, stuff should > arrive there by the weekend, so I hope to be back to normal by the 14th > or so, ass

Re: [PATCH v7 04/12] powerpc/vas: Define helpers to access MMIO regions

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Hi Suka, > > Comments inline. > > Sukadev Bhattiprolu writes: > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > index 6156fbe..a3a705a 100644 > > --- a/arch/powerpc/platforms/powernv

Re: [Xen-devel] [PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Juergen Gross
On 28/08/17 06:25, Juergen Gross wrote: > On 28/08/17 05:20, Dou Liyang wrote: >> XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() >> initializes interrupts in the XEN PV specific way and does not invoke >> native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is >> n

[PATCH] IB/rxe: constify vm_operations_struct

2017-08-27 Thread Arvind Yadav
vm_operations_struct are not supposed to change at runtime. vm_area_struct structure working with const vm_operations_struct. So mark the non-const vm_operations_struct structs as const. Signed-off-by: Arvind Yadav --- drivers/infiniband/sw/rxe/rxe_mmap.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] IB/hfi1: constify vm_operations_struct

2017-08-27 Thread Arvind Yadav
vm_operations_struct are not supposed to change at runtime. vm_area_struct structure working with const vm_operations_struct. So mark the non-const vm_operations_struct structs as const. Signed-off-by: Arvind Yadav --- drivers/infiniband/hw/hfi1/file_ops.c | 2 +- 1 file changed, 1 insertion(+),

Re: [Xen-devel] [PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Juergen Gross
On 28/08/17 05:20, Dou Liyang wrote: > XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() > initializes interrupts in the XEN PV specific way and does not invoke > native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is > not invoked either. > > The invocation of x86_

linux-next: build failure after merge of the rcu tree

2017-08-27 Thread Stephen Rothwell
Hi Paul, After merging the rcu tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/kernel/asm-offsets.c:14:0: include/linux/sched.h: In function 'membarrier_sched_out': include/linux/sched.h:1680:3: error: implicit declaration of function 'syn

Re: [PATCH 3.18 00/10] 3.18.67-stable review

2017-08-27 Thread Greg Kroah-Hartman
On Sun, Aug 27, 2017 at 09:49:48AM -0700, Guenter Roeck wrote: > On Tue, Aug 22, 2017 at 12:09:32PM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.67 release. > > There are 10 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH net-next v7 04/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode()

2017-08-27 Thread James Morris
On Mon, 21 Aug 2017, Mickaël Salaün wrote: > @@ -85,6 +90,8 @@ enum bpf_arg_type { > > ARG_PTR_TO_CTX, /* pointer to context */ > ARG_ANYTHING, /* any (initialized) argument is ok */ > + > + ARG_CONST_PTR_TO_HANDLE_FS, /* pointer to an abstract FS struct */

linux-next: manual merge of the tip tree with the spi tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: tools/Makefile between commit: e9d4650dcc59 ("spi: tools: add install section") from the spi tree and commit: ecda85e70277 ("x86/lguest: Remove lguest support") from the tip tree. I fixed it up (see below) and can car

Re: [kernel-hardening] Re: [PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-27 Thread James Morris
On Wed, 23 Aug 2017, Mickaël Salaün wrote: > >> + struct { > >> + __u32 abi; /* minimal ABI version, cf. user doc */ > > > > the concept of abi (version) sounds a bit weird to me. > > Why bother with it at all? > > Once the first set of patches lands the kernel as whole will h

Re: [PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-27 Thread James Morris
On Tue, 22 Aug 2017, Alexei Starovoitov wrote: > more general question: what is the status of security/ bits? > I'm assuming they still need to be reviewed and explicitly acked by James, > right? Yep, along with other core security developers where possible. -- James Morris

Re: [kernel-hardening] [PATCH net-next v7 00/10] Landlock LSM: Toward unprivileged sandboxing

2017-08-27 Thread James Morris
On Mon, 21 Aug 2017, Mickaël Salaün wrote: > ## Why a new LSM? Are SELinux, AppArmor, Smack and Tomoyo not good enough? > > The current access control LSMs are fine for their purpose which is to give > the > *root* the ability to enforce a security policy for the *system*. What is > missing is a

[PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-08-27 Thread Dou Liyang
Now, there are many switches in kernel which are used to determine the final interrupt delivery mode, as shown below: 1) kconfig: CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC 2) kernel option: disable_apic; skip_ioapic_setup 3) CPU Capability: boot_cpu_has(X86_FEATURE_APIC) 4) MP ta

Re: [RESEND PATCH v4 2/2] i2c: Add Spreadtrum I2C controller driver

2017-08-27 Thread Baolin Wang
Hi Wolfram, On 27 August 2017 at 23:30, Wolfram Sang wrote: > Hi, > > thanks for your submission. > >> +static void sprd_i2c_dump_reg(struct sprd_i2c *i2c_dev) >> +{ >> + dev_err(&i2c_dev->adap.dev, ": ==dump i2c-%d reg===\n", >> + i2c_dev->adap.nr); >> + dev_err(&i2c_

[PATCH v8 04/13] x86/apic: Move logical APIC ID away from apic_bsp_setup()

2017-08-27 Thread Dou Liyang
apic_bsp_setup() sets and returns logical APIC ID for initializing cpu0_logical_apicid in SMP-capable system. The id has nothing to do with the initialization of local APIC and I/O APIC. And apic_bsp_setup() should be called for interrupt mode setup intently. Move the id setup into a separate hel

[PATCH v8 08/13] x86/ioapic: Refactor the delay logic in timer_irq_works()

2017-08-27 Thread Dou Liyang
Kernel use timer_irq_works() to detects the timer IRQs. It calls mdelay(10) to delay ten ticks and check whether the timer IRQ work or not. The mdelay() depends on the loops_per_jiffy which is set up in calibrate_delay(). Current kernel defaults the IRQ 0 is available when it calibrates delay. But

[PATCH v8 11/13] ACPI / init: Invoke early ACPI initialization earlier

2017-08-27 Thread Dou Liyang
Linux uses acpi_early_init() to put the ACPI table management into the late stage from the early stage.The two stages are different. the mapped ACPI tables in early stage is temporary and should be unmapped, but in late stage, it permanent and don't need to be unmapped. Originally, mapping and par

[PATCH v8 05/13] x86/apic: Unify interrupt mode setup for SMP-capable system

2017-08-27 Thread Dou Liyang
In the SMP-capable system, enable and setup the interrupt delivery mode in native_smp_prepare_cpus(). This design mixs the APIC and SMP together, it has highly coupling. Make the initialization of interrupt mode independent, Unify and refine it to apic_intr_mode_init() for SMP-capable system. Si

[PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Dou Liyang
XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() initializes interrupts in the XEN PV specific way and does not invoke native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is not invoked either. The invocation of x86_init.intr_mode_init() will be moved from native_s

[PATCH v8 12/13] x86/time: Initialize interrupt mode behind timer init

2017-08-27 Thread Dou Liyang
In start_kernel(), firstly, it works on the default interrupy mode, then switch to the final mode. Normally, Booting with BIOS reset is OK. But, At dump-capture kernel, it boot up without BIOS reset, default mode may not be compatible with the actual registers, that causes the delivery interrupt t

  1   2   3   4   >