Re: [PATCH v3 01/10] tracing: Update cond flag when enabling or disabling a trigger

2015-06-15 Thread Daniel Wagner
On 06/13/2015 10:45 AM, Daniel Wagner wrote: > On 06/12/2015 06:01 PM, Steven Rostedt wrote: >>> Signed-off-by: Tom Zanussi >>> Signed-off-by: Daniel Wagner >> >> Why is Daniel signed off by here? > > I have reported the issue and send a fix for this patch > > https://lkml.org/lkml/2015/4/21/16

Re: [PATCH v2 2/3] IRQ/Gic-V3: Change arm-gic-its to support the Mbigen interrupt

2015-06-15 Thread majun (F)
在 2015/6/12 18:48, Thomas Gleixner 写道: > On Fri, 12 Jun 2015, Ma Jun wrote: > >> This patch is applied to support the mbigen interrupt. >> >> As a kind of MSI interrupt controller, the mbigen is used as a child >> domain of ITS domain just like PCI devices. >> So the arm-gic-v3-its and related

Re: [PATCH] m68k: Use vsprintf %pM extension

2015-06-15 Thread Geert Uytterhoeven
CC greg On Mon, Jun 15, 2015 at 4:01 AM, Joe Perches wrote: > Format mac addresses with the normal kernel extension. > > Signed-off-by: Joe Perches > --- > arch/m68k/68000/m68EZ328.c | 3 +-- > arch/m68k/68000/m68VZ328.c | 3 +-- > arch/m68k/68360/config.c | 3 +-- > 3 files changed, 3 insert

Re: [PATCH 1/4] x86: Add basic support for the Congatec CGEB BIOS interface

2015-06-15 Thread Christian Gmeiner
Hi Paul Thanks for looking over my patches! 2015-06-12 11:35 GMT+02:00 Paul Bolle : > A few nits. > > On Thu, 2015-06-11 at 22:48 +0200, Christian Gmeiner wrote: >> --- /dev/null >> +++ b/drivers/mfd/congatec-cgeb.c > >> + * This program is free software; you can redistribute it and/or modify >>

Re: [PATCH] cris: don't use module_init for non-modular core eeprom.c code

2015-06-15 Thread Jesper Nilsson
On Sun, Jun 14, 2015 at 05:05:21PM -0400, Paul Gortmaker wrote: > The eeprom.c code is compiled based on the Kconfig setting > ETRAX_I2C_EEPROM, which is bool. So the code is either built in > or absent. It will never be modular, so using module_init as an > alias for __initcall is rather mislead

Re: [PATCH v3 2/2] arm64: dts: mt8173: Add I2C device node

2015-06-15 Thread Eddie Huang
Hi Dan, On Fri, 2015-06-12 at 20:28 +0800, Daniel Kurtz wrote: > On Fri, Jun 12, 2015 at 5:27 PM, Eddie Huang wrote: > > > > Add MT8173 I2C device nodes, include I2C controllers and pins. > > MT8173 has six I2C controllers, from i2c0 to i2c6, exclude i2c5. > > The 6th I2C controller register base

Re: [PATCH v4 12/12] MIPS: Add basic support for the TL-WR1043ND version 1

2015-06-15 Thread Antony Pavlov
On Wed, 10 Jun 2015 23:58:11 +0200 Alban wrote: > On Mon, 8 Jun 2015 13:17:58 +0300 > Antony Pavlov wrote: > > > IMHO AR9132 SoC can't work without external oscilator. > > > > Can we just move basic extosc declaration to SoC dt file > > (ar9132.dtsi)? So board dt file ar9132_tl_wr1043nd_v1.dts

Re: [PATCH 3/5] soc: Mediatek: Add SCPSYS power domain driver

2015-06-15 Thread Sascha Hauer
Hi Ulf, On Wed, Jun 10, 2015 at 04:47:01PM +0200, Ulf Hansson wrote: > On 9 June 2015 at 10:47, Sascha Hauer wrote: > > This adds a power domain driver for the Mediatek SCPSYS unit. > > > > The System Control Processor System (SCPSYS) has several power > > management related tasks in the system.

Re: [PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-15 Thread Javier Martinez Canillas
Hello Doug, Thanks a lot for your comments. On 06/12/2015 10:17 PM, Doug Anderson wrote: > Hi, > > On Fri, Jun 12, 2015 at 12:36 PM, Javier Martinez Canillas > wrote: registers are lost assuming the combiner was powered down, even the status register will be lost and you will not know

Re: [PATCH v3 2/2] arm64: dts: mt8173: Add I2C device node

2015-06-15 Thread Eddie Huang
Hi Sascha, On Mon, 2015-06-15 at 08:12 +0200, Sascha Hauer wrote: > On Fri, Jun 12, 2015 at 08:28:51PM +0800, Daniel Kurtz wrote: > > On Fri, Jun 12, 2015 at 5:27 PM, Eddie Huang > > wrote: > > > > > > Add MT8173 I2C device nodes, include I2C controllers and pins. > > > MT8173 has six I2C contro

Re: lockup when C1E and high-resolution timers enabled

2015-06-15 Thread Borislav Petkov
On Mon, Jun 15, 2015 at 01:05:07AM +0200, Christoph Fritz wrote: > > > already using latest microcode: > > > > > > [0.514490] microcode: CPU0: patch_level=0x06000822 > > > [0.514497] microcode: CPU1: patch_level=0x06000822 > > > [0.514508] microcode: CPU2: patch_level=0x06000822 > > >

[PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-15 Thread Alexey Kardashevskiy
The pnv_pci_ioda2_unset_window() function is used to do the final cleanup of a DMA window being released: - via VFIO ioctl by the guest request; - via unplugging a virtual PCI function. However the function was under #ifdef CONFIG_IOMMU_API and was missing. This moves the helper outside of IOMMU_A

Re: lockup when C1E and high-resolution timers enabled

2015-06-15 Thread Christoph Fritz
On Mon, 2015-06-15 at 09:54 +0200, Borislav Petkov wrote: > Just to rule out the aspect that your issue might be fixed by microcode > but that microcode needs to be loaded early, can you enable the early > microcode loader, put the microcode in initrd as described here: > > Documentation/x86/early

RE: [PATCH 2/3] sb_edac: virtualize several hard-coded functions

2015-06-15 Thread Anaczkowski, Lukasz
> From: Aristeu Rozanski [mailto:a...@redhat.com] > the only reason these exist is for when there's a difference between memory > controllers: > > pvt->info.get_memory_type = get_memory_type; > > pvt->info.get_memory_type = get_memory_type; > > pvt->info.get_m

Re: [PATCH net-next] Increase limit of macvtap queues

2015-06-15 Thread Jason Wang
On 06/14/2015 04:42 PM, Michael S. Tsirkin wrote: > On Fri, Jun 12, 2015 at 07:00:28PM +0530, Pankaj Gupta wrote: >> Macvtap should be compatible with tuntap for maximum number >> of queues. '1059590254fa9dce9cafc4f07d1103dbec415e76' removes >> the limitation and increases number of queues in tun

[PATCH] perf probe: Fix failure to probe events on arm

2015-06-15 Thread He Kuang
Fix failure to probe events on arm, problem is introduced by commit 5a51fcd1f30c ("perf probe: Skip kernel symbols which is out of .text"). For some architectures, label '_etext' is not in the .text section(in .notes section for arm/arm64). Label out of .text section is not loaded as symbols and we

Re: lockup when C1E and high-resolution timers enabled

2015-06-15 Thread Borislav Petkov
On Mon, Jun 15, 2015 at 10:01:41AM +0200, Christoph Fritz wrote: > I should have mentioned that, I already tested that, it doesn't fix > the described lockup :-( Hmm, can you boot with "log_buf_len=16M ignore_loglevel debug initcall_debug apic=debug" and send me full dmesg from that box? Priva

Re: [PATCH] regulator: Add docbook for soft start

2015-06-15 Thread Mark Brown
On Fri, Jun 12, 2015 at 03:48:06PM -0700, Stephen Boyd wrote: > The docbook for these members is missing. Add them. > > Warning(include/linux/regulator/machine.h:147): No description > found for parameter 'soft_start' > Warning(include/linux/regulator/driver.h:197): No description > found for para

linux-next: manual merge of the rdma tree with the net-next tree

2015-06-15 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c and drivers/net/ethernet/chelsio/cxgb4/sge.c between commit b26127227677 "cxgb4/cxgb4vf: function and argument name cleanup" from the net-next tree and commit 66cf188eba52 "cxgb4: S

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

2015-06-15 Thread Michael Ellerman
Hi Greg, Today's linux-next merge of the staging tree got a conflict in drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c between commit 8e37210b38fb "IB/core: Change ib_create_cq to use struct ib_cq_init_attr" from the rdma tree and commit ec3d17c0ed2e "staging: lustre: lnet: o2iblnd: code clea

linux-next: manual merge of the rdma tree with the net-next tree

2015-06-15 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in drivers/infiniband/hw/mlx5/main.c between commit 1b5daf11b015 "IB/mlx5: Avoid using the MAD_IFC command under ISSI > 0 mode" from the net-next tree and commit 2528e33e6809 "IB/core: Pass hardware specific data in query_device" fr

Re: [PATCH 03/25] mm, vmscan: Move LRU lists to node

2015-06-15 Thread Mel Gorman
On Thu, Jun 11, 2015 at 03:12:12PM +0800, Hillf Danton wrote: > > @@ -774,6 +764,21 @@ typedef struct pglist_data { > > ZONE_PADDING(_pad1_) > > spinlock_t lru_lock; > > > > + /* Fields commonly accessed by the page reclaim scanner */ > > + struct lruvec lruvec;

Re: [PATCH 04/25] mm, vmscan: Begin reclaiming pages on a per-node basis

2015-06-15 Thread Mel Gorman
On Thu, Jun 11, 2015 at 03:58:14PM +0800, Hillf Danton wrote: > > @@ -1319,6 +1322,7 @@ static unsigned long isolate_lru_pages(unsigned long > > nr_to_scan, > > struct list_head *src = &lruvec->lists[lru]; > > unsigned long nr_taken = 0; > > unsigned long scan; > > + LIST_HEAD(pages_

Re: [RFC v2 23/24] m68k/mac: Fix PRAM accessors

2015-06-15 Thread Geert Uytterhoeven
Hi Finn, On Sun, Jun 14, 2015 at 9:46 AM, Finn Thain wrote: > --- linux.orig/arch/m68k/mac/misc.c 2015-06-14 17:46:02.0 +1000 > +++ linux/arch/m68k/mac/misc.c 2015-06-14 17:46:03.0 +1000 > @@ -284,11 +287,31 @@ static void via_pram_command(int command > > static unsigned cha

Re: [Intel-gfx] [BUG, bisect] Re: drm/i915: WARN_ON(dev_priv->mm.busy)

2015-06-15 Thread Jeremiah Mahler
Daniel, On Mon, Jun 15, 2015 at 08:57:47AM +0200, Daniel Vetter wrote: > Can you please retest with > > commit 0aedb1626566efd72b369c01992ee7413c82a0c5 > Author: Ville Syrjälä > Date: Thu May 28 18:32:36 2015 +0300 > > drm/i915: Don't skip request retirement if the active list is empty >

[PATCH] dmaengine: pl330: Fix overflow when reporting residue in memcpy

2015-06-15 Thread Krzysztof Kozlowski
During memcpy operations the residue was always set to an u32 overflowed value. In pl330_tx_status() function number of currently transferred bytes was subtracted from internal "bytes_requested" field. However this "bytes_requested" was not initialized at start to length of memcpy buffer so transf

Re: [PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-15 Thread Mel Gorman
On Fri, Jun 12, 2015 at 03:05:00PM +0800, Hillf Danton wrote: > > - /* Reclaim above the high watermark. */ > > - sc->nr_to_reclaim = max(SWAP_CLUSTER_MAX, high_wmark_pages(zone)); > > + /* Aim to reclaim above all the zone high watermarks */ > > + for (z = 0; z <= end_zone; z++) { > > +

[PATCH 0/4] tip-queue 2015-06-15

2015-06-15 Thread Borislav Petkov
From: Borislav Petkov Hi, nothing much this time. Luis' stuff is ontop of the pat_enabled() cleanup in tip/x86/mm and apparently there's maintainer agreement for it to go through tip. It has ACKs and all. The amd.c change is exporting the number of logical nodes in a physical socket which will

[PATCH 2/4] drivers/media/ivtv: Use arch_phys_wc_add() and require PAT disabled

2015-06-15 Thread Borislav Petkov
From: "Luis R. Rodriguez" We are burrying direct access to MTRR code support on x86 in order to take advantage of PAT. In the future, we also want to make the default behavior of ioremap_nocache() to use strong UC, use of mtrr_add() on those systems would make write-combining void. In order to h

[PATCH 3/4] drivers/infiniband/ipath: Add counting for MTRR

2015-06-15 Thread Borislav Petkov
From: "Luis R. Rodriguez" There is no good reason not to, we eventually delete it as well. Signed-off-by: Luis R. Rodriguez Acked-by: Doug Ledford Cc: Andy Lutomirski Cc: Antonino Daplas Cc: bhelg...@google.com Cc: Daniel Vetter Cc: Dave Airlie Cc: Hal Rosenstock Cc: infinip...@intel.com

[PATCH 1/4] x86/cpu/amd: Give access to the number of nodes in a physical package

2015-06-15 Thread Borislav Petkov
From: Aravind Gopalakrishnan Stash the number of nodes in a physical processor package locally and add an accessor to be called by interested parties. The first user is the MCE injection module which uses it to find the node base core in a package for injecting a certain type of errors. Signed-o

[PATCH 4/4] drivers/infiniband/ipath: Use arch_phys_wc_add() and require PAT disabled

2015-06-15 Thread Borislav Petkov
From: "Luis R. Rodriguez" We are burrying direct access to MTRR code support on x86 in order to take advantage of PAT. In the future, we also want to make the default behaviour of ioremap_nocache() to use strong UC, use of mtrr_add() on those systems would make write-combining void. In order to

[Semaphore API] down_interruptible_timeout

2015-06-15 Thread Mason
Hello, The semaphore API provides several flavors of the down primitive: down, down_interruptible, down_killable, down_trylock, down_timeout As far as I can tell, they all call __down_common (except down_trylock, which returns 1 where the others would sleep). I was looking for a version 1) wi

Re: [RFC PATCH 10/12] mm: add the buddy system interface

2015-06-15 Thread Kamezawa Hiroyuki
On 2015/06/11 5:40, Luck, Tony wrote: I guess, mirrored memory should be allocated if !__GFP_HIGHMEM or !__GFP_MOVABLE HIGHMEM shouldn't matter - partial memory mirror only makes any sense on X86_64 systems ... 32-bit kernels don't even boot on systems with 64GB, and the minimum rational confi

Re: [Intel-gfx] [BUG, bisect] Re: drm/i915: WARN_ON(dev_priv->mm.busy)

2015-06-15 Thread Ville Syrjälä
On Mon, Jun 15, 2015 at 01:25:38AM -0700, Jeremiah Mahler wrote: > Daniel, > > On Mon, Jun 15, 2015 at 08:57:47AM +0200, Daniel Vetter wrote: > > Can you please retest with > > > > commit 0aedb1626566efd72b369c01992ee7413c82a0c5 > > Author: Ville Syrjälä > > Date: Thu May 28 18:32:36 2015 +030

Re: [PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-15 Thread Sudeep Holla
On 12/06/15 21:17, Doug Anderson wrote: Hi, On Fri, Jun 12, 2015 at 12:36 PM, Javier Martinez Canillas wrote: registers are lost assuming the combiner was powered down, even the status register will be lost and you will not know exactly the wakeup reason right ? Good question, I didn't fi

Re: [PATCHv6 2/4] ARM: dts: exynos5422-odroidxu3: Enable TMU at Exynos5422 base

2015-06-15 Thread Markus Reichl
Hi Anand, Krzysztof Am 15.06.2015 um 04:23 schrieb Anand Moon: > hi Krzysztof > > On 15 June 2015 at 05:41, Krzysztof Kozlowski wrote: >> On 14.06.2015 19:24, Anand Moon wrote: >>> This changes enables TMU IP block on the Exynos5422 Odroid-XU3 >>> device. >>> >>> Signed-off-by: Anand Moon >>> T

Re: [PATCH 00/21] On-demand device registration

2015-06-15 Thread Linus Walleij
On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler wrote: > And because you've said that "problem space is a bit convoluted" and I > disagree, here's a summary from my point of view: > > 1. All the necessary information (dependencies between drivers) already > exists at compile time. The set of de

Re: [PATCH 1/3] x86, acpi: Eliminate saved_eip

2015-06-15 Thread Borislav Petkov
On Sun, Jun 14, 2015 at 03:23:08PM +0200, Denys Vlasenko wrote: > It always contains the address of "ret_point" label This commit message is very laconic - I had to go look at the code just to see what you mean. I guess it should be something like: "Get rid of the global variable saved_eip as it

[PATCH v2 07/15] KVM: MTRR: do not split 64 bits MSR content

2015-06-15 Thread Xiao Guangrong
Variable MTRR MSRs are 64 bits which are directly accessed with full length, no reason to split them to two 32 bits Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 7 ++- arch/x86/kvm/mtrr.c | 32 ++-- 2 files changed, 16 insertion

[PATCH v2 15/15] KVM: MTRR: do not map huage page for non-consistent range

2015-06-15 Thread Xiao Guangrong
Based on Intel's SDM, mapping huge page which do not have consistent memory cache for each 4k page will cause undefined behavior In order to avoiding this kind of undefined behavior, we force to use 4k pages under this case Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 20

[PATCH v2 06/15] KVM: MTRR: clean up mtrr default type

2015-06-15 Thread Xiao Guangrong
Drop kvm_mtrr->enable, omit the decode/code workload and get rid of all the hard code Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 3 +-- arch/x86/kvm/mtrr.c | 40 2 files changed, 29 insertions(+), 14 deletions(-) dif

[PATCH v2 14/15] KVM: MTRR: simplify kvm_mtrr_get_guest_memory_type

2015-06-15 Thread Xiao Guangrong
mtrr_for_each_mem_type() is ready now, use it to simplify kvm_mtrr_get_guest_memory_type() Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mtrr.c | 64 ++--- 1 file changed, 16 insertions(+), 48 deletions(-) diff --git a/arch/x86/kvm/mtrr.c b/arch/

[PATCH v2 13/15] KVM: MTRR: introduce mtrr_for_each_mem_type

2015-06-15 Thread Xiao Guangrong
It walks all MTRRs and gets all the memory cache type setting for the specified range also it checks if the range is fully covered by MTRRs Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mtrr.c | 188 1 file changed, 188 insertions(+) diff --

[PATCH v2 01/15] KVM: x86: fix CR0.CD virtualization

2015-06-15 Thread Xiao Guangrong
Currently, CR0.CD is not checked when we virtualize memory cache type for noncoherent_dma guests, this patch fixes it by : - setting UC for all memory if CR0.CD = 1 - zapping all the last sptes in MMU if CR0.CD is changed Signed-off-by: Xiao Guangrong --- arch/x86/kvm/vmx.c | 32 +++

[PATCH v2 08/15] KVM: MTRR: improve kvm_mtrr_get_guest_memory_type

2015-06-15 Thread Xiao Guangrong
- kvm_mtrr_get_guest_memory_type() only checks one page in MTRRs so that it's unnecessary to check to see if the range is partially covered in MTRR - optimize the check of overlap memory type and add some comments to explain the precedence Signed-off-by: Xiao Guangrong --- arch/x86/k

[PATCH v2 10/15] KVM: MTRR: introduce var_mtrr_range

2015-06-15 Thread Xiao Guangrong
It gets the range for the specified variable MTRR Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mtrr.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/mtrr.c b/arch/x86/kvm/mtrr.c index df73149..cb9702d 100644 --- a/arch/x86/kvm/mtrr.c +++ b

[PATCH v2 11/15] KVM: MTRR: sort variable MTRRs

2015-06-15 Thread Xiao Guangrong
Sort all valid variable MTRRs based on its base address, it will help us to check a range to see if it's fully contained in variable MTRRs Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 3 ++ arch/x86/kvm/mtrr.c | 63 ++--- ar

Re: latency histogram with BPF

2015-06-15 Thread Daniel Wagner
On 06/12/2015 07:17 PM, Alexei Starovoitov wrote: > On 6/12/15 7:33 AM, Daniel Wagner wrote: >> On 06/12/2015 08:12 AM, Daniel Wagner wrote: >> Attaching kprobes to trace_preempt_[on|off] works fine. Empty BPF >> programs connected to the probes is no problem as well. So I changed the >> BPF progra

[PATCH v2 09/15] KVM: MTRR: introduce fixed_mtrr_segment table

2015-06-15 Thread Xiao Guangrong
This table summarizes the information of fixed MTRRs and introduce some APIs to abstract its operation which helps us to clean up the code and will be used in later patches Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mtrr.c | 200 ++-- 1 file ch

[PATCH v2 12/15] KVM: MTRR: introduce fixed_mtrr_addr_* functions

2015-06-15 Thread Xiao Guangrong
Two functions are introduced: - fixed_mtrr_addr_to_seg() translates the address to the fixed MTRR segment - fixed_mtrr_addr_seg_to_range_index() translates the address to the index of kvm_mtrr.fixed_ranges[] They will be used in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kv

Re: [PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-15 Thread Sudeep Holla
On 15/06/15 08:46, Javier Martinez Canillas wrote: [...] Sudeep, so we may need something like $subject after all from Doug's explanations since the combiner chip state is lost during a S2R. I know that it adds more duplicated code (others irqchip drivers do the same) and it may not scale wel

Re: [lkp] [drm/i915] 7f072451f2d: [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe B FIFO underrun

2015-06-15 Thread Maarten Lankhorst
Hey, Op 15-06-15 om 08:58 schreef Huang Ying: > FYI, we noticed the below changes on > > git://anongit.freedesktop.org/drm-intel drm-intel-next-queued > commit 7f072451f2d3d53e4f6939440e15ab36afed2051 ("drm/i915: Implement > intel_crtc_control using atomic state, v4") > > Test Environment check:

linux-next: Tree for Jun 15

2015-06-15 Thread Michael Ellerman
Hi all, Changes since 20150612: The arm-soc tree lost its build failure. The rdma tree gained two conflicts against the net-next tree. The tip tree lost its build failure. The staging tree gained a conflict against the rdma tree. Non-merge commits (relative to Linus' tree): 10544 9271 files

[PATCH v2 03/15] KVM: MTRR: handle MSR_MTRRcap in kvm_mtrr_get_msr

2015-06-15 Thread Xiao Guangrong
MSR_MTRRcap is a MTRR msr so move the handler to the common place, also add some comments to make the hard code more readable Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mtrr.c | 12 arch/x86/kvm/x86.c | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH v2 02/15] KVM: x86: move MTRR related code to a separate file

2015-06-15 Thread Xiao Guangrong
MTRR code locates in x86.c and mmu.c so that move them to a separate file to make the organization more clearer and it will be the place where we fully implement vMTRR Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 1 - arch/x86/kvm/Makefile | 2 +- arch/x86/kv

Re: [PATCH 07/12] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code

2015-06-15 Thread Ian Campbell
On Sat, 2015-06-13 at 11:49 +0200, Ingo Molnar wrote: > xen_mm_pin_all()/unpin_all() are used to implement full guest instance > suspend/restore. It's a stop-all method that needs to iterate through > all allocated pgds in the system to fix them up for Xen's use. > > This code uses pgd_list, proba

[PATCH v2 05/15] KVM: MTRR: exactly define the size of variable MTRRs

2015-06-15 Thread Xiao Guangrong
Only KVM_NR_VAR_MTRR variable MTRRs are available in KVM guest Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index cbf9f07..fe9cbe4 100644 ---

[PATCH v2 04/15] KVM: MTRR: remove mtrr_state.have_fixed

2015-06-15 Thread Xiao Guangrong
vMTRR does not depend on any host MTRR feature and fixed MTRRs have always been implemented, so drop this field Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_host.h | 9 - arch/x86/kvm/mtrr.c | 7 +++ arch/x86/kvm/x86.c | 1 - 3 files changed, 11

[PATCH v2 00/15] vMTRR bugfix and optimization

2015-06-15 Thread Xiao Guangrong
Changlog: - let's fix the bugs for noncoherent_dma guests first - these changes are from Paolo's review 1) use inline functions instead of union definition for 'struct kvm_mtrr' 2) improve code style 3) fix fixed_msr_to_range_index which does not return the actual value 4) introduce kvm_se

Re: [Intel-gfx] [BUG, bisect] Re: drm/i915: WARN_ON(dev_priv->mm.busy)

2015-06-15 Thread Jani Nikula
On Mon, 15 Jun 2015, Ville Syrjälä wrote: > On Mon, Jun 15, 2015 at 01:25:38AM -0700, Jeremiah Mahler wrote: >> Daniel, >> >> On Mon, Jun 15, 2015 at 08:57:47AM +0200, Daniel Vetter wrote: >> > Can you please retest with >> > >> > commit 0aedb1626566efd72b369c01992ee7413c82a0c5 >> > Author: Vill

[PATCH v1 0/7] instruction of cyapa gen6 and proximity patches

2015-06-15 Thread Dudley Du
V1 patches mainly have following updates compared with V0 patches: 1) This patch series is generated base on code base linux-next 20150612, so fix the patch v0 6/7 failed to apply on linux-next 20150611 issue. 1) Fix spelling errors, space and black line format errors in patch v1 1/7. 2) Add det

[PATCH v1 4/7] input: cyapa: fully support runtime suspend power management

2015-06-15 Thread Dudley Du
Fix the the runtime suspend power management not working issue when system starts up and before user touches the trackpad device. TEST=test on Chromebook. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 79 +++- drivers/input/mouse/cyapa.h

[PATCH v1 3/7] input: cyapa: add proximity function support for gen5 and gen6 modules

2015-06-15 Thread Dudley Du
Gen5 and Gen6 trackpad devices are able to detect and report object proximity data/events, add this function support in the cyapa driver through the MTB protocol ABS_MT_DISTANCE event. TEST=test on Chromebook. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 19 - driv

[PATCH v1 2/7] input: cyapa: add gen6 device module support in driver

2015-06-15 Thread Dudley Du
Based on the cyapa core, add the gen6 trackpad device's basic functions supported, so gen6 trackpad device can work with kernel input system. And also based on the state parse interface, the cyapa driver can automatically determine the attached is gen3, gen5 or gen6 protocol trackpad device, then s

[PATCH v1 5/7] input: cyapa: add proximity and interrupt sysfs interfaces support

2015-06-15 Thread Dudley Du
Add proximity and interrupt control interfaces in sysfs device node. The proximity interface is used to disable/enable proximity function in device. Through this interface, user can apply their own specific strategy to use the proximity function compared to the default strategy. For example, some p

[PATCH v1 7/7] input: cyapa: add CYAP0002 Gen6 device for ACPI configuration

2015-06-15 Thread Dudley Du
Add CYTP0002 name for Gen6 device for ACPI configuration TEST=test on Chromebook. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c index 7b6d6d4..7f674aa 100644 --- a/drivers/inp

[PATCH v1 6/7] input: cyapa: add of match device support and description document

2015-06-15 Thread Dudley Du
Add of_match_device mechanism support for Cypress trackpad device, and add the sample description document of adding the trackpad device node in device tree. TEST=test on Chromebook. Signed-off-by: Dudley Du --- .../devicetree/bindings/input/cypress,cyapa.txt| 44 ++ .../

[PATCH v4 0/4] VFIO platform reset

2015-06-15 Thread Eric Auger
In situations where the userspace driver is stopped abnormally and the VFIO platform device is released, the assigned HW device currently is left running. As a consequence the HW device might continue issuing IRQs and performing DMA accesses. On release, no physical IRQ handler is setup anymore. A

[PATCH v4 3/4] VFIO: platform: populate the reset function on probe

2015-06-15 Thread Eric Auger
The reset function lookup happens on vfio-platform probe. The reset module load is requested and a reference to the function symbol is hold. The reference is released on vfio-platform remove. Signed-off-by: Eric Auger --- v2 -> v3: - vfio_platform_get_reset becomes void - use ARRAY_SIZE - use

[PATCH v4 1/4] VFIO: platform: add reset struct and lookup table

2015-06-15 Thread Eric Auger
This patch introduces the vfio_platform_reset_combo struct that stores all the information useful to handle the reset modality: compat string, name of the reset function, name of the module that implements the reset function. A lookup table of such structures is added, currently void. Signed-off-b

[PATCH v4 2/4] VFIO: platform: add reset callback

2015-06-15 Thread Eric Auger
A new reset callback is introduced. If this callback is populated, the reset is invoked on device first open/last close or upon userspace ioctl. The modality is exposed on VFIO_DEVICE_GET_INFO. Signed-off-by: Eric Auger --- v1 -> v2: - reset now is also called on first open on top of last clos

[PATCH v4 4/4] VFIO: platform: Calxeda xgmac reset module

2015-06-15 Thread Eric Auger
This patch introduces a module that registers and implements a basic reset function for the Calxeda xgmac device. This latter basically disables interrupts and stops DMA transfers. The reset function code is inherited from the native calxeda xgmac driver. Signed-off-by: Eric Auger --- v2 -> v3

Re: [PATCH] gitignore: Add MIPS vmlinux.32 to the list

2015-06-15 Thread Michal Marek
On Sat, Jun 13, 2015 at 11:37:33AM -0700, Florian Fainelli wrote: > 2015-04-24 10:27 GMT-07:00 Florian Fainelli : > > MIPS64 kernels builds will produce a vmlinux.32 kernel image for > > compatibility, ignore them. > > Ralf, Michal, which one of you should take this patch? I just applied it to kb

[PATCH v1 1/7] input: cyapa: change strings of gen5 to pip in the name when they are shared

2015-06-15 Thread Dudley Du
Change strings 'gen5' to 'pip' for all macros, variables and functions when they are shared in gen5 and gen6 modules. The change of these strings is aimed to keep name definition much more clear and readable. Also the spelling errors are fix in this patch. TEST=test on Chromebook. Signed-off-by: D

[PATCH] VFIO: platform: enable ARM64 build

2015-06-15 Thread Eric Auger
This patch enables building VFIO platform and derivatives on ARM64. Signed-off-by: Eric Auger --- drivers/vfio/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig index 1df7477..bb30128 100644 --- a/dr

[PATCH] net: fix search limit handling in skb_find_text()

2015-06-15 Thread Roman I Khimov
Suppose that we're trying to use an xt_string netfilter module to match a string in a specially crafted packet that has "a nice string" starting at offset 28. It could be done in iptables like this: -A some_chain -m string --string "a nice string" --algo bm --from 28 --to 38 -j DROP And it woul

Re: [RFC PATCH 07/18] kthread: Make iterant kthreads freezable by default

2015-06-15 Thread Petr Mladek
On Sat 2015-06-13 18:22:22, Tejun Heo wrote: > > I try to better understand why freezer is considered to be a blunt > > tool. Is it because it is a generic API, try_to_freeze() is put on > > "random" locations, so that it does not define the safe point > > precisely enough? > > Not that. I don't k

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-06-15 Thread Dave Young
On 06/06/15 at 02:14pm, Minfei Huang wrote: > From: Minfei Huang > > Transforming PFN(Page Frame Number) to struct page is never failure, so > we can simplify the code logic to do the image->control_page assignment > directly in the loop, and remove the unnecessary conditional judgement. > > Sig

Re: [PATCH] i2c: designware: use enable on resume instead initialization

2015-06-15 Thread Mika Westerberg
On Fri, Jun 12, 2015 at 07:45:00PM -0300, Lucas De Marchi wrote: > Hi Mika, > > On Wed, Jun 10, 2015 at 4:55 AM, Mika Westerberg > wrote: > > On Mon, Jun 08, 2015 at 02:50:28PM -0300, lucas.de.mar...@gmail.com wrote: > >> @@ -320,7 +320,7 @@ static int dw_i2c_resume(struct device *dev) > >>

Re: [PATCH 1/1 linux-next] ceph: use standard Opt_err

2015-06-15 Thread Ilya Dryomov
On Sun, Jun 14, 2015 at 12:05 PM, Fabian Frederick wrote: > > >> On 08 June 2015 at 09:49 Ilya Dryomov wrote: >> >> >> On Fri, Jun 5, 2015 at 10:12 PM, Fabian Frederick wrote: >> > ceph used -1 for the last match_table_t option. >> > Use Opt_err enum like other FS >> > >> > match_token() is base

Re: [RESEND PATCH v4 04/14] crypto: add a new driver for Marvell's CESA

2015-06-15 Thread Herbert Xu
On Fri, Jun 12, 2015 at 09:15:56AM +0200, Boris Brezillon wrote: > > +static inline int mv_cesa_sg_count(struct scatterlist *sg, int nbytes) > +{ > + int nents = 0; > + > + while (nbytes > 0) { > + nents++; > + nbytes -= sg->length; > + sg = sg_next(sg);

Re: [PATCH 00/21] On-demand device registration

2015-06-15 Thread Alexander Holler
Am 15.06.2015 um 10:58 schrieb Linus Walleij: On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler wrote: And because you've said that "problem space is a bit convoluted" and I disagree, here's a summary from my point of view: 1. All the necessary information (dependencies between drivers) alrea

Re: [PATCH v5] seccomp: add ptrace options for suspend/resume

2015-06-15 Thread Pavel Emelyanov
On 06/13/2015 06:02 PM, Tycho Andersen wrote: > This patch is the first step in enabling checkpoint/restore of processes > with seccomp enabled. > > One of the things CRIU does while dumping tasks is inject code into them > via ptrace to collect information that is only available to the process >

[PATCH] x86/intel: Add comments about why we disabled HPET on Baytrail

2015-06-15 Thread Feng Tang
The question has been asked many times, and finally I found the official document which explains the problem of HPET on Baytrail that it will halt in deep idle states. Signed-off-by: Feng Tang --- arch/x86/kernel/early-quirks.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff -

Re: [PATCH 10/20] [SCSI] mpt3sas: Add branding string support for OEM's HBA

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:22PM +0530, Sreekanth Reddy wrote: > Added the following Dell branding to the mpt3sas driver. > > "VendorID" "DeviceID" "SubsystemVendor ID" "SubsystemDevice ID" Dell > Branding String > 0x10000x0097 0x1028 0x1F46DELL

[PATCH] ARM: EXYNOS: Remove duplicated define of SLEEP_MAGIC

2015-06-15 Thread Krzysztof Kozlowski
The magic cookie for entering sleep state was defined and used in two different places: firmware.c and suspend.c. Move it to one common place to reduce duplication. Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/common.h | 6 ++ arch/arm/mach-exynos/firmware.c | 2 -- arch/arm

Re: [RESEND PATCH v4 04/14] crypto: add a new driver for Marvell's CESA

2015-06-15 Thread Herbert Xu
On Fri, Jun 12, 2015 at 09:15:56AM +0200, Boris Brezillon wrote: > > +static void mv_cesa_dequeue_req_unlocked(struct mv_cesa_engine *engine) > +{ > + struct crypto_async_request *req; > + struct mv_cesa_ctx *ctx; > + > + spin_lock_bh(&cesa_dev->lock); > + req = crypto_dequeue_reque

Re: [BUG ?] regmap: debugfs: WARN_ON at regmap-debugfs.c:151

2015-06-15 Thread Mark Brown
On Sat, Jun 13, 2015 at 03:21:02PM +0200, Sergej Sawazki wrote: > when I try to read the register values of a i2c ASoC codec through > debugfs, (eg: cat /sys/kernel/debug/regmap/1-001a/registers) > I am getting an WARN_ON at drivers/base/regmap/regmap-debugfs.c:151. Please provide some plain text

Re: [PATCH] ASoC: Intel: mrfld: simplify sst_fill_widget_module_info

2015-06-15 Thread Mark Brown
On Thu, Jun 04, 2015 at 10:13:53AM +0200, Rasmus Villemoes wrote: > Some tiny improvements, cutting 180 bytes off the generated code. Applied, thanks signature.asc Description: Digital signature

Re: [PATCH 07/20] [SCSI] mpt3sas: Bump mpt3sas Driver version to v5.100.00.00

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:19PM +0530, Sreekanth Reddy wrote: > Bump mpt3sas Driver version to v5.100.00.00 > > Signed-off-by: Sreekanth Reddy > --- > drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/mpt3sas/mpt3sas

Re: [PATCH 05/20] [SCSI] mpt3sas: MPI 2.5 Rev I (2.5.4) specifications.

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:17PM +0530, Sreekanth Reddy wrote: > Update MPI 2.5 Release: MPI 2.5 Rev I (2.5.4) specification and 2.00.33 > header files > > Below is the change set from the MPI specification for I Rev > > 1) Added Base Enclosure Level bit to the Flags field of Manufacturing Pag

Re: [PATCH 09/20] [SCSI] mpt3sas: MPI 2.5 Rev J (2.5.5) specification and 2.00.34 header files

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:21PM +0530, Sreekanth Reddy wrote: > Following is the change set, > > 1. Added more defines for the BiosOptions field of MPI2_CONFIG_PAGE_BIOS_1. > 2. Added MPI2_TOOLBOX_CLEAN_BIT26_PRODUCT_SPECIFIC definition. > > Signed-off-by: Sreekanth Reddy > --- > drivers/scs

Re: [PATCH 08/20] [SCSI] mpt3sas: Update MPI2 strings to MPI2.5

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:20PM +0530, Sreekanth Reddy wrote: > Update MPI2 strings to MPI2.5. > > Signed-off-by: Sreekanth Reddy > --- > drivers/scsi/mpt3sas/mpt3sas_base.c | 3 +-- > drivers/scsi/mpt3sas/mpt3sas_base.h | 1 - > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git

Re: [PATCH 12/20] [SCSI] mpt3sas: Bump mpt3sas driver version to v6.100.00.00

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:24PM +0530, Sreekanth Reddy wrote: > Bump mpt3sas driver version to v6.100.00.00. > > Signed-off-by: Sreekanth Reddy > --- > drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/mpt3sas/mpt3sa

Re: [PATCH 13/20] [SCSI] mpt3sas: MPI 2.5 Rev K (2.5.6) specifications

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:25PM +0530, Sreekanth Reddy wrote: > Below are the new changes to MPI 2.5 Rev K(2.5.6) specification and 2.00.35 > header files > 1) Added a minimum size requirement for target mode command buffers. > 2) Added MinMSIxIndex and MaxMSIxIndex fields to CommandBufferPostB

Re: [PATCH 15/20] [SCSI] mpt3sas: Return host busy error status to SML when DMA mapping of scatter gather list fails for a SCSI command

2015-06-15 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:27PM +0530, Sreekanth Reddy wrote: > scsi_dma_map API will return a negative value (i.e. -ENOMEM) > if DMA mapping of sg lists fails and zero if the sg list in the > SCSI cmd is NULL. But drivers doesn't handled sg list DMA mapping > failure case properly. > > So, Upd

Re: [PATCH 1/1 linux-next] mmc: queue: use swap() in mmc_queue_thread()

2015-06-15 Thread Ulf Hansson
On 10 June 2015 at 18:30, Fabian Frederick wrote: > Use kernel.h macro definition. > > Thanks to Julia Lawall for Coccinelle scripting support. > > Signed-off-by: Fabian Frederick Thanks, applied. Kind regards Uffe > --- > drivers/mmc/card/queue.c | 5 + > 1 file changed, 1 insertion(+),

Re: [PATCH V2 1/3] pci_ids: Add AMD KERNCZ device ID support

2015-06-15 Thread Ulf Hansson
On 12 June 2015 at 22:34, Bjorn Helgaas wrote: > On Thu, Jun 11, 2015 at 08:11:45PM +0800, Wan ZongShun wrote: >> The KERNCZ is new AMD SB/FCH generation name, like HUDSON2. >> We will adopt 0x790b as device ID since from this gereration. > > s/We will adopt 0x790b as device ID since from/0x790b i

Re: [PATCH v2] mmc: card: Fixup request missing in mmc_blk_issue_rw_rq

2015-06-15 Thread Ulf Hansson
On 12 June 2015 at 14:38, Justin Wang (王丁) wrote: > From 0e01e7546745f39843d54810f74c198e01cb8226 Mon Sep 17 00:00:00 2001 > From: justin.wang > Date: Mon, 18 May 2015 20:14:15 +0800 > Subject: [PATCH v2] mmc: card: Fixup request missing in mmc_blk_issue_rw_rq > > The current handler of MMC_BLK_C

  1   2   3   4   5   6   7   >