[PATCHv11 37/37] thp: allow mlocked THP again

2015-09-18 Thread Kirill A. Shutemov
Before THP refcounting rework, THP was not allowed to cross VMA boundary. So, if we have THP and we split it, PG_mlocked can be safely transfered to small pages. With new THP refcounting and naive approach to mlocking we can end up with this scenario: 1. we have a mlocked THP, which belong to

[PATCHv11 18/37] arm, thp: remove infrastructure for handling splitting PMDs

2015-09-18 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov ---

[PATCHv11 36/37] thp: update documentation

2015-09-18 Thread Kirill A. Shutemov
The patch updates Documentation/vm/transhuge.txt to reflect changes in THP design. Signed-off-by: Kirill A. Shutemov Acked-by: Jerome Marchand --- Documentation/vm/transhuge.txt | 151 ++--- 1 file changed, 96 insertions(+), 55 deletions(-) diff --git

[PATCHv11 27/37] mm: differentiate page_mapped() from page_mapcount() for compound pages

2015-09-18 Thread Kirill A. Shutemov
Let's define page_mapped() to be true for compound pages if any sub-pages of the compound page is mapped (with PMD or PTE). On other hand page_mapcount() return mapcount for this particular small page. This will make cases like page_get_anon_vma() behave correctly once we allow huge pages to be

[PATCHv11 31/37] thp, mm: split_huge_page(): caller need to lock page

2015-09-18 Thread Kirill A. Shutemov
We're going to use migration entries instead of compound_lock() to stabilize page refcounts. Setup and remove migration entries require page to be locked. Some of split_huge_page() callers already have the page locked. Let's require everybody to lock the page before calling split_huge_page().

[PATCHv11 34/37] thp: introduce deferred_split_huge_page()

2015-09-18 Thread Kirill A. Shutemov
Currently we don't split huge page on partial unmap. It's not an ideal situation. It can lead to memory overhead. Furtunately, we can detect partial unmap on page_remove_rmap(). But we cannot call split_huge_page() from there due to locking context. It's also counterproductive to do directly

[PATCHv11 20/37] powerpc, thp: remove infrastructure for handling splitting PMDs

2015-09-18 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov Tested-by:

[PATCHv11 28/37] mm, numa: skip PTE-mapped THP on numa fault

2015-09-18 Thread Kirill A. Shutemov
We're going to have THP mapped with PTEs. It will confuse numabalancing. Let's skip them for now. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand --- mm/memory.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCHv11 14/37] futex, thp: remove special case for THP in get_futex_key

2015-09-18 Thread Kirill A. Shutemov
With new THP refcounting, we don't need tricks to stabilize huge page. If we've got reference to tail page, it can't split under us. This patch effectively reverts a5b338f2b0b1. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand ---

Re: [PATCH v2] arm64: Introduce IRQ stack

2015-09-18 Thread Catalin Marinas
On Fri, Sep 18, 2015 at 09:57:56PM +0900, Jungseok Lee wrote: > On Sep 18, 2015, at 1:21 AM, Catalin Marinas wrote: > > So, without any better suggestion for current_thread_info(), I'm giving > > up the idea of using SPSel == 0 in the kernel. I'll look at your patch > > in more detail. BTW, I

Re: Failover root devices

2015-09-18 Thread Ortwin Glück
If you have physical access then the machine is yours to do with as you please. Thinking of ATMs or voting machines that is a bold statement :-) Thinking of mobile phones it depends on your jurisdiction. Ortwin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCHv11 21/37] s390, thp: remove infrastructure for handling splitting PMDs

2015-09-18 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov ---

[PATCHv11 23/37] tile, thp: remove infrastructure for handling splitting PMDs

2015-09-18 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov --- arch/tile/include/asm/pgtable.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/tile/include/asm/pgtable.h b/arch/tile/include/asm/pgtable.h index

[PATCHv11 16/37] mm, thp: remove compound_lock

2015-09-18 Thread Kirill A. Shutemov
We are going to use migration entries to stabilize page counts. It means we don't need compound_lock() for that. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Vlastimil Babka Acked-by: Jerome Marchand --- include/linux/mm.h | 35

[PATCHv11 24/37] x86, thp: remove infrastructure for handling splitting PMDs

2015-09-18 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Acked-by: Jerome Marchand --- arch/x86/include/asm/pgtable.h | 9 - arch/x86/include/asm/pgtable_types.h | 2 --

Re: [PATCH] kernel: fix data race in put_pid

2015-09-18 Thread Oleg Nesterov
On 09/18, Peter Zijlstra wrote: > > On Fri, Sep 18, 2015 at 03:28:44PM +0200, Oleg Nesterov wrote: > > On 09/18, Peter Zijlstra wrote: > > > > > > ns = pid->numbers[pid->level].ns; > > > if ((atomic_read(>count) == 1) || > > >atomic_dec_and_test(>count)) { > > > > > > +

[PATCHv11 03/37] memcg: adjust to support new THP refcounting

2015-09-18 Thread Kirill A. Shutemov
As with rmap, with new refcounting we cannot rely on PageTransHuge() to check if we need to charge size of huge page form the cgroup. We need to get information from caller to know whether it was mapped with PMD or PTE. We do uncharge when last reference on the page gone. At that point if we see

Re: [PATCH 0/7] Phy and mdiobus fixes

2015-09-18 Thread Sören Brinkmann
Hi Russell, On Fri, 2015-09-18 at 10:56AM +0100, Russell King - ARM Linux wrote: > Sorry guys, some of you will get the patches twice, as Sören's name > in the header caused vger to reject all the patches. That is the first time I hear about an issue like that. I've been receiving patches fine

[PATCH v3 14/27] memory: omap-gpmc: Move device tree binding to correct location

2015-09-18 Thread Roger Quadros
omap-gpmc.c is a memory controller so move the binding to the right place. Signed-off-by: Roger Quadros --- .../bindings/{bus/ti-gpmc.txt => memory-controllers/omap-gpmc.txt}| 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/{bus/ti-gpmc.txt

Re: Failover root devices

2015-09-18 Thread Drew DeVault
I personally think this is opening a can of worms. Now it's just a list of alternative root devices. But the kernel knows absolutely nothing about these. When is it fine to try an alternative? Why did the first one not work? Did we just not wait long enough? Or is it a failed RAID device? Or is

[PATCHv11 30/37] thp: add option to setup migration entries during PMD split

2015-09-18 Thread Kirill A. Shutemov
We are going to use migration PTE entries to stabilize page counts. If the page is mapped with PMDs we need to split the PMD and setup migration entries. It's reasonable to combine these operations to avoid double-scanning over the page table. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha

[PATCHv11 02/37] rmap: add argument to charge compound page

2015-09-18 Thread Kirill A. Shutemov
We're going to allow mapping of individual 4k pages of THP compound page. It means we cannot rely on PageTransHuge() check to decide if map/unmap small page or THP. The patch adds new argument to rmap functions to indicate whether we want to operate on whole compound page or only the small page.

[PATCHv11 32/37] thp: reintroduce split_huge_page()

2015-09-18 Thread Kirill A. Shutemov
This patch adds implementation of split_huge_page() for new refcountings. Unlike previous implementation, new split_huge_page() can fail if somebody holds GUP pin on the page. It also means that pin on page would prevent it from bening split under you. It makes situation in many places much

[PATCH v3 18/27] mtd: nand: omap2: Implement NAND ready using gpiolib

2015-09-18 Thread Roger Quadros
The GPMC WAIT pin status are now available over gpiolib. Update the omap_dev_ready() function to use gpio instead of directly accessing GPMC register space. Signed-off-by: Roger Quadros --- drivers/mtd/nand/omap2.c | 29 +---

[PATCH v3 17/27] memory: omap-gpmc: Add irqchip support to the gpiochip

2015-09-18 Thread Roger Quadros
The WAIT pins support either rising or falling edge interrupts so add irqchip support to the gpiochip model. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 132 + 1 file changed, 132 insertions(+) diff --git

Re: [PATCH] perf tools: session: avoid infinite loop

2015-09-18 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 18, 2015 at 02:37:09PM +0100, Mark Rutland escreveu: > > > So it looks like I shouldn't have any synthesized events. Have I missed > > > anything? > > > > Yes, you are right. But you are not getting the COMM and MMAP events from > > the exec which means you are killing perf before it

Re: [PATCH] usb: gadget: atmel_usba_udc: add ep capabilities support on device tree binding

2015-09-18 Thread Felipe Balbi
On Fri, Sep 18, 2015 at 04:58:28PM +0200, Nicolas Ferre wrote: > From: Sylvain Rochet > > The recently added endpoint capabilities flags verification breaks Atmel > USBA because the endpoint configuration was only added when the driver > is bound using the legacy pdata interface. > > Convert

[PATCH v3 20/27] ARM: dts: dra7: Fix NAND device nodes.

2015-09-18 Thread Roger Quadros
Add compatible id, GPMC register resource and interrupt resource to NAND controller nodes. The GPMC driver now implements gpiochip and irqchip so enable gpio-controller and interrupt-controller properties. With this the interrupt parent of NAND node changes so fix it accordingly. Signed-off-by:

[PATCH v3 23/27] ARM: dts: am437x-gp-evm: Provide NAND ready pin

2015-09-18 Thread Roger Quadros
On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin. For NAND we don't use GPMC wait pin monitoring but get the NAND Ready/Busy# status using GPIOlib. GPMC driver provides the WAIT0 pin status over GPIOlib. Read speed increases from 16516 KiB/ to 18813 KiB/s and write speed was

Re: Failover root devices

2015-09-18 Thread Ortwin Glück
On 17.09.2015 20:28, Drew DeVault wrote: I don't think this is a strong argument against this feature. The implementation of this feature will be pretty straightfoward - only a small part of the code has to actually change its behavior and it can do without changing the interfaces it already

[PATCH] usb: gadget: atmel_usba_udc: add ep capabilities support on device tree binding

2015-09-18 Thread Nicolas Ferre
From: Sylvain Rochet The recently added endpoint capabilities flags verification breaks Atmel USBA because the endpoint configuration was only added when the driver is bound using the legacy pdata interface. Convert endpoint configuration to new capabilities model when driver is bound to a

Re: [PATCH v9 00/18] Add VT-d Posted-Interrupts support - including prerequisite series

2015-09-18 Thread Paolo Bonzini
On 18/09/2015 16:29, Feng Wu wrote: > VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. > With VT-d Posted-Interrupts enabled, external interrupts from > direct-assigned devices can be delivered to guests without VMM > intervention when guest is running in non-root mode. >

[PATCH v3 21/27] ARM: dts: dra7x-evm: Provide NAND ready pin

2015-09-18 Thread Roger Quadros
On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin. Read speed increases from 13768 KiB/ to 17246 KiB/s. Write speed was unchanged at 7123 KiB/s. Measured using mtd_speedtest.ko. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7-evm.dts | 1 +

[PATCH v3 22/27] ARM: dts: am437x: Fix NAND device nodes

2015-09-18 Thread Roger Quadros
Add compatible id, GPMC register resource and interrupt resource to NAND controller nodes. The GPMC driver now implements gpiochip and irqchip so enable gpio-controller and interrupt-controller properties. With this the interrupt parent of NAND node changes so fix it accordingly. Signed-off-by:

[PATCH v3 24/27] ARM: dts: am335x: Fix NAND device nodes

2015-09-18 Thread Roger Quadros
Add compatible id, GPMC register resource and interrupt resource to NAND controller nodes. The GPMC driver now implements gpiochip and irqchip so enable gpio-controller and interrupt-controller properties. With this the interrupt parent of NAND node changes so fix it accordingly. Signed-off-by:

[PATCH v3 26/27] ARM: dts: dm816x: Fix gpmc and NAND node

2015-09-18 Thread Roger Quadros
Make gpmc node gpio+interrupt capable. Add compatible id, interrupt and wait pin to NAND node. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dm8168-evm.dts | 7 --- arch/arm/boot/dts/dm816x.dtsi| 4 2 files changed, 8 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v5 01/23] driver core: Add pre_probe callback to bus_type

2015-09-18 Thread Tomeu Vizoso
On 17 September 2015 at 17:52, Alan Stern wrote: > On Thu, 17 Sep 2015, Tomeu Vizoso wrote: > >> Some buses (eg. AMBA) need access to some HW resources (it may need a >> clock to be enabled so a device ID can be read) before a device can be >> matched to a driver. >> >> The pre_probe callback

[PATCH v3 19/27] memory: omap-gpmc: Prevent GPMC_STATUS from being accessed via gpmc_regs

2015-09-18 Thread Roger Quadros
GPMC_STATUS register is private to the GPMC module and must not be accessed directly by NAND driver through the gpmc_regs. They must use gpmc_omap_get_nand_ops() instead. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 2 +-

[PATCH v3 13/27] memory: omap-gpmc: Prevent mapping into 1st 16MB

2015-09-18 Thread Roger Quadros
We have been preventing mapping GPMC children in the first 1MB but really it has to be the first 16MB as the minimum GPMC partition size is 16MB. Also print an error message if CS mapping fails due to DT requesting address outside the GPMC map. Signed-off-by: Roger Quadros ---

[PATCH v3 27/27] ARM: dts: omap3: Fix gpmc and NAND nodes

2015-09-18 Thread Roger Quadros
Add compatible id, GPMC register resource and interrupt resource to NAND controller nodes. The GPMC driver now implements gpiochip and irqchip so enable gpio-controller and interrupt-controller properties. With this the interrupt parent of NAND node changes so fix it accordingly. Signed-off-by:

[PATCH v3 25/27] ARM: dts: am335x: Provide NAND ready pin

2015-09-18 Thread Roger Quadros
On these boards NAND ready pin status is avilable over GPMC_WAIT0 pin. For NAND we don't use GPMC wait pin monitoring but get the NAND Ready/Busy# status using GPIOlib. GPMC driver provides the WAIT0 pin status over GPIOlib. Read speed increases from 7869 KiB/ to 8875 KiB/s and write speed was

[PATCH v3 15/27] memory: omap-gpmc: Support general purpose input for WAITPINs

2015-09-18 Thread Roger Quadros
OMAPs can have 2 to 4 WAITPINs that can be used as general purpose input if not used for memory wait state insertion. The first user will be the OMAP NAND chip to get the NAND read/busy status using gpiolib. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 130

[PATCH v3 11/27] mtd: nand: omap: Clean up device tree support

2015-09-18 Thread Roger Quadros
Move NAND specific device tree parsing to NAND driver. The NAND controller node must have a compatible id, register space resource and interrupt resource. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/gpmc-nand.c | 5 +- drivers/memory/omap-gpmc.c | 135

[PATCH v3 10/27] mtd: nand: omap: Copy platform data parameters to omap_nand_info data

2015-09-18 Thread Roger Quadros
Copy all the platform data parameters to the driver's local data structure 'omap_nand_info' and use it in the entire driver. This will make it easer for device tree migration. Signed-off-by: Roger Quadros --- drivers/mtd/nand/omap2.c | 26 ++ 1 file changed, 18

[PATCH v3 05/27] memory: omap-gpmc: Add GPMC-NAND ops to get writebufferempty status

2015-09-18 Thread Roger Quadros
This is needed by OMAP NAND driver to poll the empty status of the writebuffer. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index

[PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2015-09-18 Thread Roger Quadros
Hi, We do a couple of things in this series which result in cleaner device tree implementation, faster perfomance and multi-platform support. As an added bonus we get new GPI/Interrupt pins for use in the system. - Establish a custom interface between NAND and GPMC driver. This is needed because

[PATCH 1/3] x86/math-emu: Remove define layer for undocumented opcodes

2015-09-18 Thread Denys Vlasenko
No code changes. Signed-off-by: Denys Vlasenko CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Kees Cook CC: x...@kernel.org CC: linux-kernel@vger.kernel.org --- arch/x86/math-emu/fpu_entry.c | 43 +-- 1 file changed,

[PATCH 2/3] x86/math-emu: Add support for F[U]COMI[P] insns

2015-09-18 Thread Denys Vlasenko
Run-tested by booting with "no387 nofxsr" and running test program: # ./test_FCOMI [RUN] Testing f[u]comi[p] instructions [OK]f[u]comi[p] Signed-off-by: Denys Vlasenko CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Kees Cook CC: x...@kernel.org CC:

Re: [PATCH v2 0/7] hwrng: Add support for STMicroelectronics' RNG IP

2015-09-18 Thread Lee Jones
On 18 September 2015 at 15:07, Herbert Xu wrote: > On Thu, Sep 17, 2015 at 02:45:50PM +0100, Lee Jones wrote: >> v1 => v2: >> - New patch: Also fixing /dev/hw_random => /dev/hwrng in Kconfig >> - Fix 2099 => 2009 typo in commit log >> - Fix 'number of random numbers sourced' return value >> -

Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns

2015-09-18 Thread Denys Vlasenko
On 09/18/2015 09:33 AM, Ingo Molnar wrote: > > * Denys Vlasenko wrote: > >> Run-tested by booting with "no387 nofxsr" and running test programs: >> >> # ./test_FCMOV >> [RUN]Testing fcmovCC instructions >> [OK] fcmovCC >> # ./test_FCOMI >> [RUN]Testing f[u]comi[p] instructions

[PATCH 3/3] x86/math-emu: Add support for FCMOVcc insns

2015-09-18 Thread Denys Vlasenko
Run-tested by booting with "no387 nofxsr" and running test program: # ./test_FCMOV [RUN] Testing fcmovCC instructions [OK]fcmovCC Signed-off-by: Denys Vlasenko CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Kees Cook CC: x...@kernel.org CC:

Re: crisv32 runtime failure in -next due to 'page-flags: define behavior SL*B-related flags on compound pages'

2015-09-18 Thread Jesper Nilsson
On Fri, Sep 18, 2015 at 05:25:07PM +0300, Kirill A. Shutemov wrote: > On Thu, Sep 17, 2015 at 09:29:27AM -0700, Guenter Roeck wrote: > > Hi, > > > > my crisv32 qemu test fails with next-20150917 as follows. > > > > NET: Registered protocol family 16 > > kernel BUG at mm/slab.c:1648! > > Linux

[PATCH v9 02/18] KVM: x86: select IRQ_BYPASS_MANAGER

2015-09-18 Thread Feng Wu
Select IRQ_BYPASS_MANAGER for x86 when CONFIG_KVM is set Signed-off-by: Feng Wu --- arch/x86/kvm/Kconfig | 2 ++ arch/x86/kvm/Makefile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index d8a1d56..c951d44 100644 --- a/arch/x86/kvm/Kconfig

[PATCH v9 04/18] KVM: create kvm_irqfd.h

2015-09-18 Thread Feng Wu
From: Eric Auger Move _irqfd_resampler and _irqfd struct declarations in a new public header: kvm_irqfd.h. They are respectively renamed into kvm_kernel_irqfd_resampler and kvm_kernel_irqfd. Those datatypes will be used by architecture specific code, in the context of IRQ bypass manager

Re: [PATCH] kvm:x86:Fix incorrect error paths in the function process_smi

2015-09-18 Thread Paolo Bonzini
On 18/09/2015 16:46, Nicholas Krause wrote: > This fixes the incorrect assumation that the function > kvm_vcpu_write_guest always runs successfully and > therefore checks if it fails by returning a error code > and if so return immediately to the caller of the function > process_smi as we cannot

Re: 4.3-rc1 dirty page count underflow (cgroup-related?)

2015-09-18 Thread Dave Hansen
On 09/17/2015 11:09 PM, Greg Thelen wrote: > I'm not denying the issue, bug the WARNING splat isn't necessarily > catching a problem. The corresponding code comes from your debug patch: > + > WARN_ONCE(__this_cpu_read(memcg->stat->count[MEM_CGROUP_STAT_DIRTY]) > > (1UL<<30),

[PATCH v9 05/18] KVM: introduce kvm_arch functions for IRQ bypass

2015-09-18 Thread Feng Wu
From: Eric Auger This patch introduces - kvm_arch_irq_bypass_add_producer - kvm_arch_irq_bypass_del_producer - kvm_arch_irq_bypass_stop - kvm_arch_irq_bypass_start They make possible to specialize the KVM IRQ bypass consumer in case CONFIG_KVM_HAVE_IRQ_BYPASS is set. Signed-off-by: Eric Auger

[PATCH] coresight: etm3x: breaking down sysFS status interface

2015-09-18 Thread Mathieu Poirier
SysFS rules stipulate that only one value can be conveyed per file. As such splitting the "status" interface in individual files. This is also be useful for user space application - that way they can probe each file individually rather than having to parse a list of entries. Signed-off-by:

Re: [PATCH] kvm: svm: reset mmu on VCPU reset

2015-09-18 Thread Paolo Bonzini
On 18/09/2015 15:39, Igor Mammedov wrote: > When INIT/SIPI sequence is sent to VCPU which before that > was in use by OS, VMRUN might fail with: > > KVM: entry failed, hardware error 0x > EAX= EBX= ECX= EDX=06d3 > ESI= EDI= EBP=

Re: [PATCH] ARM: at91: debug: use DEBUG_UART_PHYS

2015-09-18 Thread Nicolas Ferre
Le 08/08/2015 12:11, Alexandre Belloni a écrit : > Instead of having to add a new configuration option each time support for > new SoC is added, use CONFIG_DEBUG_UART_PHYS. For now, > CONFIG_DEBUG_UART_VIRT is automatically computed. > > Signed-off-by: Alexandre Belloni > --- >

Re: [PATCH] kernel: fix data race in put_pid

2015-09-18 Thread Oleg Nesterov
On 09/18, Dmitry Vyukov wrote: > > On Fri, Sep 18, 2015 at 3:44 PM, Oleg Nesterov wrote: > > So I assume that if we have > > > > int X = 0; > > atomic_t Y = ATOMIC_INIT(0); > > > > void w(void) > > { > > X = 1; > >

[PATCH v9 07/18] KVM: Extend struct pi_desc for VT-d Posted-Interrupts

2015-09-18 Thread Feng Wu
Extend struct pi_desc for VT-d Posted-Interrupts. Signed-off-by: Feng Wu --- arch/x86/kvm/vmx.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 83b7b5c..271dd70 100644 --- a/arch/x86/kvm/vmx.c +++

[PATCH v9 09/18] KVM: Define a new interface kvm_intr_is_single_vcpu()

2015-09-18 Thread Feng Wu
This patch defines a new interface kvm_intr_is_single_vcpu(), which can returns whether the interrupt is for single-CPU or not. It is used by VT-d PI, since now we only support single-CPU interrupts, For lowest-priority interrupts, if user configures it via /proc/irq or uses irqbalance to make it

[PATCH] coresight: etm3x: adding cpu affinity to sysFS interface

2015-09-18 Thread Mathieu Poirier
Without access to the device tree, it is impossible to know what CPU a tracer is affined to. As such adding a new sysFS interface to convey the information. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 13 + 1 file changed, 13 insertions(+)

[PATCH v9 14/18] KVM: Implement IRQ bypass consumer callbacks for x86

2015-09-18 Thread Feng Wu
Implement the following callbacks for x86: - kvm_arch_irq_bypass_add_producer - kvm_arch_irq_bypass_del_producer - kvm_arch_irq_bypass_stop: dummy callback - kvm_arch_irq_bypass_resume: dummy callback and set CONFIG_HAVE_KVM_IRQ_BYPASS for x86. Signed-off-by: Feng Wu --- v8: - Move the weak

[PATCH v9 13/18] KVM: x86: Update IRTE for posted-interrupts

2015-09-18 Thread Feng Wu
This patch adds the routine to update IRTE for posted-interrupts when guest changes the interrupt configuration. Signed-off-by: Feng Wu --- v9: - Check !kvm_arch_has_assigned_device(kvm) first then !irq_remapping_cap(IRQ_POSTING_CAP) v8: - Move 'kvm_arch_update_pi_irte' to vmx.c as a callback

Re: [PATCH] genirq: Fix bad IRQ_ONSHOT in forced IRQ setting

2015-09-18 Thread Thomas Gleixner
On Fri, 18 Sep 2015, Kohji Okuno wrote: > > irq thread(runs sdhci_thread_irq()) is waiting on > drivers/mmc/core/core.c:mmc_wait_for_req_done() in order to access > a SDIO register. And, this thread shoud be woken up from > sdhci_irq() after the completion of the register access. > But, since the

[PATCH v9 12/18] vfio: Register/unregister irq_bypass_producer

2015-09-18 Thread Feng Wu
This patch adds the registration/unregistration of an irq_bypass_producer for MSI/MSIx on vfio pci devices. Signed-off-by: Feng Wu --- v8: - Merge "[PATCH v7 08/17] vfio: Select IRQ_BYPASS_MANAGER for vfio PCI devices" into this patch. v6: - Make the add_consumer and del_consumer callbacks

[PATCH v9 15/18] KVM: Add an arch specific hooks in 'struct kvm_kernel_irqfd'

2015-09-18 Thread Feng Wu
This patch adds an arch specific hooks 'arch_update' in 'struct kvm_kernel_irqfd'. On Intel side, it is used to update the IRTE when VT-d posted-interrupts is used. Signed-off-by: Feng Wu --- v9: - Use 'if' instead of "? :" in kvm_arch_update_irqfd_routing() - coding style v8: - Remove callback

[PATCH v9 16/18] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2015-09-18 Thread Feng Wu
This patch updates the Posted-Interrupts Descriptor when vCPU is preempted. sched out: - Set 'SN' to suppress furture non-urgent interrupts posted for the vCPU. sched in: - Clear 'SN' - Change NDST if vCPU is scheduled to a different CPU - Set 'NV' to POSTED_INTR_VECTOR Signed-off-by: Feng Wu

[PATCH] staging: comedi: comedi_fops.c: remove bogus kernel-doc for runflags

2015-09-18 Thread Ian Abbott
The comment before the `COMEDI_SRF_...` macros starts with a kernel-doc mark but isn't valid kernel-doc. There isn't a kernel-doc template for a group of macro constants. These macros are all private anyway, so don't really need to be in kernel-doc. Just change it to a normal comment.

Re: [PATCH v2] USB: EHCI: fix dereference of ERR_PTR

2015-09-18 Thread Alan Stern
On Fri, 18 Sep 2015, Sudip Mukherjee wrote: > On Wed, Sep 16, 2015 at 12:54:03PM -0400, Alan Stern wrote: > > On Wed, 16 Sep 2015, Sudip Mukherjee wrote: > > > > > On error find_tt() returns either a NULL pointer or the error value in > > > ERR_PTR. But we were dereferencing it directly without

[PATCH v9 17/18] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

2015-09-18 Thread Feng Wu
This patch updates the Posted-Interrupts Descriptor when vCPU is blocked. pre-block: - Add the vCPU to the blocked per-CPU list - Set 'NV' to POSTED_INTR_WAKEUP_VECTOR post-block: - Remove the vCPU from the per-CPU list Signed-off-by: Feng Wu --- v9: - Add description for

[PATCH v9 18/18] iommu/vt-d: Add a command line parameter for VT-d posted-interrupts

2015-09-18 Thread Feng Wu
Enable VT-d Posted-Interrtups and add a command line parameter for it. Signed-off-by: Feng Wu Reviewed-by: Paolo Bonzini --- Documentation/kernel-parameters.txt | 1 + drivers/iommu/irq_remapping.c | 12 2 files changed, 9 insertions(+), 4 deletions(-) diff --git

[PATCH v9 11/18] KVM: make kvm_set_msi_irq() public

2015-09-18 Thread Feng Wu
Make kvm_set_msi_irq() public, we can use this function outside. Signed-off-by: Feng Wu Reviewed-by: Paolo Bonzini --- v8: - Export kvm_set_msi_irq() so we can use it in vmx code arch/x86/include/asm/kvm_host.h | 4 arch/x86/kvm/irq_comm.c | 5 +++-- 2 files changed, 7

[PATCH v9 06/18] KVM: eventfd: add irq bypass consumer management

2015-09-18 Thread Feng Wu
From: Eric Auger This patch adds the registration/unregistration of an irq_bypass_consumer on irqfd assignment/deassignment. Signed-off-by: Eric Auger Signed-off-by: Feng Wu --- v4 -> v5: - due to removal of static inline stubs, add #ifdef CONFIG_HAVE_KVM_IRQ_BYPASS around consumer

[PATCH v9 01/18] virt: IRQ bypass manager

2015-09-18 Thread Feng Wu
From: Alex Williamson When a physical I/O device is assigned to a virtual machine through facilities like VFIO and KVM, the interrupt for the device generally bounces through the host system before being injected into the VM. However, hardware technologies exist that often allow the host to be

[PATCH v9 10/18] KVM: Make struct kvm_irq_routing_table accessible

2015-09-18 Thread Feng Wu
Move struct kvm_irq_routing_table from irqchip.c to kvm_host.h, so we can use it outside of irqchip.c. Signed-off-by: Feng Wu Reviewed-by: Paolo Bonzini --- include/linux/kvm_host.h | 14 ++ virt/kvm/irqchip.c | 10 -- 2 files changed, 14 insertions(+), 10

[PATCH v9 03/18] KVM: arm/arm64: select IRQ_BYPASS_MANAGER

2015-09-18 Thread Feng Wu
From: Eric Auger Select IRQ_BYPASS_MANAGER when CONFIG_KVM is set Also add compilation of virt/lib. Signed-off-by: Eric Auger Signed-off-by: Feng Wu --- v3 -> v4: - add compilation of virt/lib in arm/arm64 KVM v2 -> v3: - [Feng Wu] Correct a typo in 'arch/arm64/kvm/Kconfig' v1 -> v2: - also

[PATCH v9 08/18] KVM: Add some helper functions for Posted-Interrupts

2015-09-18 Thread Feng Wu
This patch adds some helper functions to manipulate the Posted-Interrupts Descriptor. Signed-off-by: Feng Wu Reviewed-by: Paolo Bonzini --- arch/x86/kvm/vmx.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index

[PATCH v9 00/18] Add VT-d Posted-Interrupts support - including prerequisite series

2015-09-18 Thread Feng Wu
VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. With VT-d Posted-Interrupts enabled, external interrupts from direct-assigned devices can be delivered to guests without VMM intervention when guest is running in non-root mode. You can find the VT-d Posted-Interrtups Spec. in

Re: Failover root devices

2015-09-18 Thread Drew DeVault
Possibly 'multirootdelay'? I had the same thought, but wanted to avoid using any prefix other than root*= since it would break tradition for this part of the kernel. However, is there any case you can think of for wanting the values to be different between rootdelay and the per-device scan

Re: [PATCH] Staging: comedi: Fixed coding style issue in comedilib.h

2015-09-18 Thread Ian Abbott
On 18/09/15 15:34, Punit Vara wrote: This patch is to the comedilib.h file that fixes up coding style issues and following warning: - Block comments use * on subsequent lines Signed-off-by: Punit Vara --- drivers/staging/comedi/comedilib.h | 28 ++-- 1 file changed,

[GIT PULL] Kselftest fixes for 4.3-rc2

2015-09-18 Thread Shuah Khan
Hi Linus, Please pull the following fixes for 4.3-rc2. This update contains 7 fixes for problems ranging from build failures to incorrect error reporting. thanks, -- Shuah The following changes since commit 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f: Linux 4.3-rc1 (2015-09-12 16:35:56 -0700)

Re: [PATCH] usb: gadget: at91_udc: move at91_udc_data in at91_udc.h

2015-09-18 Thread Nicolas Ferre
Le 10/08/2015 16:46, Alexandre Belloni a écrit : > struct at91_udc_data is now only used inside the driver, move it to its > include. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre Thanks. > --- > drivers/usb/gadget/udc/at91_udc.h | 8 >

Re: [PATCH] doc: add information about max_ptes_swap

2015-09-18 Thread Rik van Riel
On 09/17/2015 05:34 PM, Ebru Akagunduz wrote: > max_ptes_swap specifies how many pages can be brought in from > swap when collapsing a group of pages into a transparent huge page. > > /sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_swap > > A higher value can cause excessive swap IO and

Re: Failover root devices

2015-09-18 Thread Austin S Hemmelgarn
On 2015-09-17 14:40, Richard Weinberger wrote: Am 17.09.2015 um 20:37 schrieb Austin S Hemmelgarn: On 2015-09-17 13:47, Richard Weinberger wrote: On Thu, Sep 17, 2015 at 1:49 PM, Drew DeVault wrote: On 2015-09-17 1:40 PM, Ortwin Glück wrote: You can do that completely in user space from an

Re: [PATCH] ARM: at91: remove useless includes in platform_data/atmel.h

2015-09-18 Thread Nicolas Ferre
Le 10/08/2015 16:41, Alexandre Belloni a écrit : > include/linux/platform_data/atmel.h has a lot of useless includes, remove > them. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre And I take it in at91-4.4-soc branch. Thanks, bye. > --- > include/linux/platform_data/atmel.h

RE: [PATCH v8 2/2] ARM: imx: support suspend states on imx7D

2015-09-18 Thread Shenwei Wang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: 2015年9月18日 9:15 > To: Wang Shenwei-B38339 > Cc: ja...@lakedaemon.net; Huang Yongcai-B20788; > linux-kernel@vger.kernel.org; ker...@pengutronix.de; Sudeep Holla; > t...@linutronix.de; shawn@linaro.org;

Re: [PATCH] usb: gadget: atmel: remove useless include

2015-09-18 Thread Nicolas Ferre
Le 10/08/2015 16:29, Alexandre Belloni a écrit : > Definitions from linux/platform_data/atmel.h are not used, remove the > include. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > drivers/usb/gadget/udc/atmel_usba_udc.c | 1 - > 1 file changed, 1 deletion(-) > > diff

error when make pdfdocs

2015-09-18 Thread 慕冬亮
I git clone and git pull the latest linux kernel. When I make pdfdocs, it reports the following error to me. But I checked the filesystems.xml:14946, no error found. --- PDF

[PATCH] Staging: comedi: Fixed coding style issue in comedilib.h

2015-09-18 Thread Punit Vara
This patch is to the comedilib.h file that fixes up coding style issues and following warning: - Block comments use * on subsequent lines Signed-off-by: Punit Vara --- drivers/staging/comedi/comedilib.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff

Re: [PATCH] spi: atmel: remove warning when !CONFIG_PM_SLEEP

2015-09-18 Thread Nicolas Ferre
Le 10/09/2015 10:19, Alexandre Belloni a écrit : > When CONFIG_PM is defined but not CONFIG_PM_SLEEP (this happens when > CONFIG_SUSPEND is not defined), there is the following warning: > > drivers/spi/spi-atmel.c:1723:12: warning: ‘atmel_spi_suspend’ defined but not > used [-Wunused-function] >

Re: [PATCH v2 5/8] lib: introduce sg_nents_len_chained

2015-09-18 Thread Tom Lendacky
On 09/18/2015 07:57 AM, LABBE Corentin wrote: Some driver use a modified version of sg_nents_for_len with an additional parameter bool *chained for knowing if the scatterlist is chained or not. So, for removing duplicate code, add sg_nents_len_chained in lib/scatterlist.c Signed-off-by: LABBE

Re: Failover root devices

2015-09-18 Thread Austin S Hemmelgarn
On 2015-09-17 13:30, Drew DeVault wrote: That said, using the term failover for this is probably not the best idea, many people associate it almost exclusively with online failover and high-availability setups, and trying to do something like that with the root file system is just asking for

Re: [PATCH] MAINTAINERS: explicitly add Atmel SAMA5

2015-09-18 Thread Nicolas Ferre
Le 02/09/2015 18:24, Alexandre Belloni a écrit : > Atmel SAMA5 SoCs are also supported through mach-at91. > > Signed-off-by: Alexandre Belloni Absolutely: Acked-by: Nicolas Ferre Thanks. > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH perf/core ] [BUGFIX] perf probe: Fix a segfault when removing uprobe events

2015-09-18 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 18, 2015 at 11:28:30AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Sep 18, 2015 at 11:26:22AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Sep 18, 2015 at 01:39:13AM +, 平松雅巳 / HIRAMATU,MASAMI escreveu: > > > Could you pull this bugfix as an urgent patch, since this

Re: [PATCH] arm64: dmi: initialize DMI earlier in boot

2015-09-18 Thread Mark Rutland
On Fri, Sep 18, 2015 at 03:14:26PM +0100, Mark Salter wrote: > Currently, DMI initialization takes place in a core initcall. This > limits how early in boot the kernel can make DMI-based decisions > about firmware/hardware quirks. This patch moves DMI initialization > to setup_arch() so that DMI

Re: [PATCH] fs-writeback: drop wb->list_lock during blk_finish_plug()

2015-09-18 Thread Jens Axboe
On 09/18/2015 12:06 AM, Linus Torvalds wrote: Gaah, my mailer autocompleted Jens' email with an old one.. Sorry for the repeat email with the correct address. On Thu, Sep 17, 2015 at 11:04 PM, Linus Torvalds wrote: On Thu, Sep 17, 2015 at 10:40 PM, Dave Chinner wrote: PS: just hit another

Re: [PATCH] tools lib traceevent: Mask higher bits of str addresses for 32-bit traces

2015-09-18 Thread Kapileshwar Singh
Hi Steve, On 18/09/15 14:45, Steven Rostedt wrote: > On Fri, 18 Sep 2015 11:55:47 +0100 > Kapileshwar Singh wrote: > > Perhaps we need to make addr into a unsigned long long, and then add: > > addr = (pevent->long_size == 8) ? > *(unsigned long long *)(data +

<    1   2   3   4   5   6   7   8   9   10   >