Re: [PATCH v5 4/7] kvm, mem-hotplug: Reload L1' apic access page on migration in vcpu_enter_guest().

2014-09-11 Thread Gleb Natapov
On Thu, Sep 11, 2014 at 11:21:49AM +0200, Paolo Bonzini wrote: > Il 11/09/2014 07:38, Tang Chen ha scritto: > > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > > index 63c4c3e..da6d55d 100644 > > --- a/arch/x86/kvm/vmx.c > > +++ b/arch/x86/kvm/vmx.c > > @@ -7093,6 +7093,11 @@ static void

[PATCH v2] zd1211rw: replace ZD_ASSERT with lockdep_assert_held()

2014-09-11 Thread Sanjeev Sharma
on some architecture spin_is_locked() always return false in uniprocessor configuration and therefore it would be advise to replace with lockdep_assert_held(). Signed-off-by: Sanjeev Sharma --- Changes in v2: - corrected the typo drivers/net/wireless/zd1211rw/zd_mac.c | 2 +- 1 file changed,

Re: [PATCH v5 08/12] sched: move cfs task on a CPU with higher capacity

2014-09-11 Thread Peter Zijlstra
On Tue, Aug 26, 2014 at 01:06:51PM +0200, Vincent Guittot wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 18db43e..60ae1ce 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -6049,6 +6049,14 @@ static bool update_sd_pick_busiest(struct lb_env *env, >

Re: [PATCH v3 0/8] rtc: at91sam9: add DT support

2014-09-11 Thread Boris BREZILLON
On Thu, 11 Sep 2014 11:39:42 +0200 Johan Hovold wrote: > On Thu, Sep 11, 2014 at 10:55:59AM +0200, Boris BREZILLON wrote: > > > Johan, let me know if this version addresses part of your concerns. > > Looks good to me. I just have a few minor comments on two of the patches. > > > I'm open to

Re: bit fields && data tearing

2014-09-11 Thread One Thousand Gnomes
> > Is *that* what we are talking about? I was added to this conversation > > in the middle where it had already generalized, so I had no idea. > > No, this is just what brought this craziness to my attention. None of it is craziness. It's the real world leaking into the crazy delusional world

Re: [PATCH V2] MIPS: bugfix of coherentio variable default setup

2014-09-11 Thread Markos Chandras
Hi Leonid, On 09/08/2014 08:10 PM, Leonid Yegoshin wrote: > Patch commit b6d92b4a6bdb880b39789c677b952c53a437028d > > MIPS: Add option to disable software I/O coherency. > > Some MIPS controllers have hardware I/O coherency. This patch > detects those and turns off software

Re: [RFC PATCH 1/6] mmu_notifier: add event information to address invalidation v4

2014-09-11 Thread Haggai Eran
On 29/08/2014 22:10, j.gli...@gmail.com wrote: > + * - MMU_MUNMAP: the range is being unmapped (outcome of a munmap syscall or > + * process destruction). However, access is still allowed, up until the > + * invalidate_range_free_pages callback. This also implies that secondary > + * page table

Re: [REGRESSION 3.17] scsi (uas) disks no longer using tagged command queuing

2014-09-11 Thread Hans de Goede
Hi, On 09/10/2014 05:45 PM, Christoph Hellwig wrote: > On Wed, Sep 10, 2014 at 09:21:24AM +0200, Hans de Goede wrote: >> I've applied the patch, this results in the following new dmesg output >> when using uas: >> >> [ 120.602632] initialized host-wide tag map! >> >> Thank you for looking into

Re: [PATCH] clocksource: arch_timer: Fix code to use physical timers when requested

2014-09-11 Thread Will Deacon
On Wed, Sep 10, 2014 at 08:50:16PM +0100, Doug Anderson wrote: > On Wed, Sep 10, 2014 at 11:46 AM, Will Deacon wrote: > > If `where we're at' is trying to boot an ARMv7 product, then you can boot in > > secure svc and lose virtualisation support. Looking forward to ARMv8, this > > isn't going to

[PATCH] net: axienet: remove unnecessary ether_setup after alloc_etherdev

2014-09-11 Thread Subbaraya Sundeep Bhatta
calling ether_setup is redundant since alloc_etherdev calls it. Signed-off-by: Subbaraya Sundeep Bhatta --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Re: [PATCH v3 8/8] rtc: at91sam9: add DT bindings documentation

2014-09-11 Thread Boris BREZILLON
On Thu, 11 Sep 2014 11:42:13 +0200 Johan Hovold wrote: > On Thu, Sep 11, 2014 at 10:56:07AM +0200, Boris BREZILLON wrote: > > Signed-off-by: Boris BREZILLON > > --- > > .../devicetree/bindings/rtc/atmel,at91sam9-rtc.txt | 24 > > ++ > > 1 file changed, 24 insertions(+) > >

Re: [PATCH v3 5/8] rtc: at91sam9: make use of syscon/regmap to access GPBR registers

2014-09-11 Thread Boris BREZILLON
On Thu, 11 Sep 2014 11:41:00 +0200 Johan Hovold wrote: > On Thu, Sep 11, 2014 at 10:56:04AM +0200, Boris BREZILLON wrote: > > The GPBR registers are not part of the RTT block and thus should not be > > defined in the reg property of the rtt node. > > > > Use syscon to provide a proper DT

Re: [PATCH] Input: atmel_mxt_ts: Add of node type to the i2c table

2014-09-11 Thread Javier Martinez Canillas
Hello Nick, On 09/11/2014 11:19 AM, Nick Dyer wrote: > > Thanks for the clear explanation. > > The i2c aliases are a bit confusing. The original device the driver was > written for was called qt602240, which was renamed by Atmel to mXT224 when > the chip series was called "maXTouch". The driver

IRQ problem with the AACRAID driver with debian wheezy kernel 3.2.60-1+deb7u3 x86_64

2014-09-11 Thread AndreaML
Hello I'm writing here after a very long time spent trying to debug a problem i have in an host i use for backup pourposes. My google-fu haven't helped in this case. This problem is there *at least* from the start of the year (i don't remember when it started) This is a pc I assembled in a 19"

[RESEND][PATCH] userns: use marco instead of magic number for max userns level

2014-09-11 Thread Chen Hanxiao
Use marco instead of magic number for max user namespace level. Signed-off-by: Chen Hanxiao --- kernel/user_namespace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index aa312b0..5435489 100644 ---

Re: [RFC] memory cgroup: my thoughts on memsw

2014-09-11 Thread Vladimir Davydov
On Thu, Sep 11, 2014 at 05:53:56PM +0900, Kamezawa Hiroyuki wrote: > (2014/09/11 17:23), Vladimir Davydov wrote: > >For example, there are two cgroups, one having a huge soft limit excess > >and full of anon memory and another not exceeding its soft limit but > >using primarily clean file caches.

[PATCH] KVM: x86: make apic_accept_irq tracepoint more generic

2014-09-11 Thread Paolo Bonzini
Initially the tracepoint was added only to the APIC_DM_FIXED case, also because it reported coalesced interrupts that only made sense for that case. However, the coalesced argument is not used anymore and tracing other delivery modes is useful, so hoist the call out of the switch statement.

RE: [RFC PATCH 2/3] procfs: show hierarchy of pid namespace

2014-09-11 Thread Chen, Hanxiao
> -Original Message- > From: Serge E. Hallyn [mailto:se...@hallyn.com] > Sent: Thursday, September 11, 2014 12:23 AM > To: Chen, Hanxiao/陈 晗霄 > Cc: contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > Richard Weinberger; Serge Hallyn; Oleg Nesterov; David Howells; Eric

[GIT PULL] dmaengine fixes

2014-09-11 Thread Vinod Koul
Hi Linus, Please pull to receive two minor fixes. First one from Kuninori clarifying dmas bindings and second from Lars for fixing dma descriptor completion in non cyclic case The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9: Linus Torvalds (1): Linux

Re: [PATCH v4 0002/0003] mmc: Replace "enhanced_area_en" attribute by "partition_setting_completed"

2014-09-11 Thread Ulf Hansson
On 11 September 2014 08:38, Grégory Soutadé wrote: > Replace ext_csd "enhanced_area_en" attribute by > "partition_setting_completed". It was used whether or > not enhanced user area is defined and without checks of > EXT_CSD_PARTITION_SETTING_COMPLETED bit. > > Signed-off-by: Grégory Soutadé

Re: [PATCH v4 1/3] ARM: dts: Add Peach Pit dts entry for Atmel touchpad

2014-09-11 Thread Javier Martinez Canillas
Hello Dmitry, On 09/11/2014 12:25 AM, Dmitry Torokhov wrote: >> >> +_8 { >> +status = "okay"; >> +clock-frequency = <333000>; >> + >> +/* Atmel mXT336S */ >> +trackpad@4b { >> +compatible = "atmel,maxtouch"; >> +reg = <0x4b>; >> +

Re: [PATCH v3 8/8] rtc: at91sam9: add DT bindings documentation

2014-09-11 Thread Johan Hovold
On Thu, Sep 11, 2014 at 10:56:07AM +0200, Boris BREZILLON wrote: > Signed-off-by: Boris BREZILLON > --- > .../devicetree/bindings/rtc/atmel,at91sam9-rtc.txt | 24 > ++ > 1 file changed, 24 insertions(+) > create mode 100644 >

Re: [PATCH v3 5/8] rtc: at91sam9: make use of syscon/regmap to access GPBR registers

2014-09-11 Thread Johan Hovold
On Thu, Sep 11, 2014 at 10:56:04AM +0200, Boris BREZILLON wrote: > The GPBR registers are not part of the RTT block and thus should not be > defined in the reg property of the rtt node. > > Use syscon to provide a proper DT representation and reference the GPBR > syscon device in a new

Re: [PATCH v3 0/8] rtc: at91sam9: add DT support

2014-09-11 Thread Johan Hovold
On Thu, Sep 11, 2014 at 10:55:59AM +0200, Boris BREZILLON wrote: > Johan, let me know if this version addresses part of your concerns. Looks good to me. I just have a few minor comments on two of the patches. > I'm open to any suggestion/rework to address other previously discussed > issues, as

Re: [PATCH v5 7/7] kvm, mem-hotplug: Unpin and remove nested_vmx->apic_access_page.

2014-09-11 Thread tangchen
On 09/11/2014 05:33 PM, Paolo Bonzini wrote: This patch is not against the latest KVM tree. The call to nested_get_page is now in nested_get_vmcs12_pages, and you have to handle virtual_apic_page in a similar manner. Hi Paolo, Thanks for the reviewing. This patch-set is against Linux

Re: [PATCH v2] arm: perf: Don't sleep while atomic when enabling per-cpu interrupts

2014-09-11 Thread Will Deacon
On Wed, Sep 10, 2014 at 08:13:46PM +0100, Stephen Boyd wrote: > Rob Clark reports a sleeping while atomic bug when using perf. > > BUG: sleeping function called from invalid context at > ../kernel/locking/mutex.c:583 > in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper/0 > [

Re: [PATCH V4] pwm: lpc32xx - Add a driver for the motor PWM

2014-09-11 Thread Arnd Bergmann
On Thursday 11 September 2014 10:36:21 Alban Bedel wrote: > On Wed, 10 Sep 2014 18:28:39 +0200 > Arnd Bergmann wrote: > > > On Wednesday 10 September 2014 17:59:41 Alban Bedel wrote: > > > On Wed, 10 Sep 2014 17:51:36 +0200 > > > Arnd Bergmann wrote: > > > > > > > On Wednesday 10 September

[PATCH arm64-next] net: bpf: arm64: fix module memory leak when JIT image build fails

2014-09-11 Thread Daniel Borkmann
On ARM64, when the BPF JIT compiler fills the JIT image body with opcodes during translation of eBPF into ARM64 opcodes, we may fail for several reasons during that phase: one being that we jump to the notyet label for not yet supported eBPF instructions such as BPF_ST. In that case we only free

Re: [PATCH] KVM: ioapic: add check for RTC_GSI

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 11:19, Jan Kiszka ha scritto: > On 2014-09-11 11:08, Paolo Bonzini wrote: >> Il 11/09/2014 08:01, Jan Kiszka ha scritto: >>> That issue is limited to the dead ia64 architecture, no other builds >>> ioapic.c (besides x86, of course). Maybe finally remove KVM support for >>> that arch

Re: [RFC v2 8/9] KVM: KVM-VFIO: generic KVM_DEV_VFIO_DEVICE command and IRQ forwarding control

2014-09-11 Thread Eric Auger
On 09/11/2014 05:10 AM, Christoffer Dall wrote: > On Mon, Sep 01, 2014 at 02:52:47PM +0200, Eric Auger wrote: >> This patch introduces a new KVM_DEV_VFIO_DEVICE attribute. >> >> This is a new control channel which enables KVM to cooperate with >> viable VFIO devices. >> >> The kvm-vfio device now

Re: [PATCH v5 6/7] kvm, mem-hotplug: Unpin and remove kvm_arch->apic_access_page.

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > + if (vm_need_virtualize_apic_accesses(vmx->vcpu.kvm)) { > + struct page *page = gfn_to_page(vmx->vcpu.kvm, > + APIC_DEFAULT_PHYS_BASE >> PAGE_SHIFT); > + vmcs_write64(APIC_ACCESS_ADDR,

Re: [PATCH v5 7/7] kvm, mem-hotplug: Unpin and remove nested_vmx->apic_access_page.

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > Just like we removed kvm_arch->apic_access_page, nested_vmx->apic_access_page > becomes useless for the same reason. This patch removes > nested_vmx->apic_access_page, > and use gfn_to_page() to pin it in memory when we need it, and unpin it after >

Re: [PATCH 1/4] kaslr: check user's config too when handle relocations

2014-09-11 Thread Baoquan He
On 09/10/14 at 07:41am, Kees Cook wrote: > On Wed, Sep 10, 2014 at 7:30 AM, Vivek Goyal wrote: > > So I would suggest that test and repost the other patch with proper > > changelog > > and that might be sufficient for now. Only other thing we will need is > > Kees's patch for avoiding setup data

Re: [PATCH v5 5/7] kvm, mem-hotplug: Reload L1's apic access page on migration when L2 is running.

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > This patch only handle "L1 and L2 vm share one apic access page" situation. > > When L1 vm is running, if the shared apic access page is migrated, > mmu_notifier will > request all vcpus to exit to L0, and reload apic access page physical address >

Re: [RFC Part1 v1 07/18] x86, irq: Introduce helpers to access struct irq_cfg

2014-09-11 Thread Thomas Gleixner
On Thu, 11 Sep 2014, Jiang Liu wrote: > Change irq_cfg() from static to extern, also introduce helper function > irqd_cfg(). Later we could rewrite these two helpers when enabling > hierarchy irqdomain. > > Signed-off-by: Jiang Liu > --- > arch/x86/include/asm/hw_irq.h |2 ++ >

Re: [PATCH v5 08/12] sched: move cfs task on a CPU with higher capacity

2014-09-11 Thread Peter Zijlstra
On Wed, Sep 03, 2014 at 05:56:04PM +0530, Preeti U Murthy wrote: > On 09/03/2014 05:14 PM, Vincent Guittot wrote: > > On 3 September 2014 11:11, Preeti U Murthy > > wrote: > >> On 09/01/2014 02:15 PM, Vincent Guittot wrote: > >>> On 30 August 2014 19:50, Preeti U Murthy > >>> wrote: > Hi

Re: [PATCH v2 5/8] of: Add of_graph_get_port_by_id function

2014-09-11 Thread Laurent Pinchart
Hi Philipp, Thank you for the patch. On Wednesday 10 September 2014 12:58:25 Philipp Zabel wrote: > This patch adds a function to get a port device tree node by port id, > or reg property value. > > Signed-off-by: Philipp Zabel > --- > Changes since v1: > - Fixed whitespace in comment > -

Re: [PATCH v2 4/8] of: Add for_each_endpoint_of_node helper macro

2014-09-11 Thread Laurent Pinchart
Hi Philipp, Thank you for the patch. On Wednesday 10 September 2014 12:58:24 Philipp Zabel wrote: > Note that while of_graph_get_next_endpoint decrements the reference count > of the child node passed to it, of_node_put(child) still has to be called > manually when breaking out of the loop. > >

Re: [PATCH v5 4/7] kvm, mem-hotplug: Reload L1' apic access page on migration in vcpu_enter_guest().

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > apic access page is pinned in memory. As a result, it cannot be > migrated/hot-removed. > Actually, it is not necessary to be pinned. > > The hpa of apic access page is stored in VMCS APIC_ACCESS_ADDR pointer. When > the page is migrated,

[PATCH v2] arm64: add guard macros of unistd.h to prevent double inclusion

2014-09-11 Thread Yang Yingliang
From: Yang Yingliang Add guard macros for uapi/asm/unistd.h, asm/unistd.h and asm/unistd32.h. Signed-off-by: Yang Yingliang --- arch/arm64/include/asm/unistd.h | 5 + arch/arm64/include/asm/unistd32.h| 4 arch/arm64/include/uapi/asm/unistd.h | 5 + 3 files changed, 14

Re: [PATCH] ARM: dts: Switch i2c0 to 400kHz on rk3288-evb-rk808

2014-09-11 Thread Heiko Stübner
Am Mittwoch, 10. September 2014, 21:30:15 schrieb Doug Anderson: > We should be able to talk to the PMIC at 400kHz. No need to talk at > the slow 100kHz. > > As measured by ftrace (with a bunch of extra patches, since cpufreq > for rk808 hasn't landed yet): > before this change:

Re: [PATCH v2 3/8] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-09-11 Thread Laurent Pinchart
Hi Philipp, Thank you for the patch. On Wednesday 10 September 2014 12:58:23 Philipp Zabel wrote: > Decrementing the reference count of the previous endpoint node allows to > use the of_graph_get_next_endpoint function in a for_each_... style macro. > Prior to this patch, all current users of

Re: [PATCH] Input: atmel_mxt_ts: Add of node type to the i2c table

2014-09-11 Thread Nick Dyer
On 11/09/14 09:38, Javier Martinez Canillas wrote: > To expand on what Sjoerd already said and just to be sure everyone is on the > same page. > > The problem is that right now the driver reports the following modalias: > > # cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias > i2c:maxtouch > >

Re: [PATCH] KVM: ioapic: add check for RTC_GSI

2014-09-11 Thread Jan Kiszka
On 2014-09-11 11:08, Paolo Bonzini wrote: > Il 11/09/2014 08:01, Jan Kiszka ha scritto: >> That issue is limited to the dead ia64 architecture, no other builds >> ioapic.c (besides x86, of course). Maybe finally remove KVM support for >> that arch instead of bloating otherwise correct code? > >

Re: [PATCH] ARM: dts: Switch i2c0 to 400kHz on rk3288-evb-rk808

2014-09-11 Thread Addy
On 11 Sep 2014 12:30, Doug Anderson writes: > We should be able to talk to the PMIC at 400kHz. No need to talk at > the slow 100kHz. > > As measured by ftrace (with a bunch of extra patches, since cpufreq > for rk808 hasn't landed yet): > before this change: cpu0_set_target() => ~500us >

Re: [PATCH v5 3/7] kvm: Make init_rmode_identity_map() return 0 on success.

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > In init_rmode_identity_map(), there two variables indicating the return > value, r and ret, and it return 0 on error, 1 on success. The function > is only called by vmx_create_vcpu(), and r is redundant. > > This patch removes the redundant variable r,

[PATCH] ARM:stacktrace: make stacktrace skip always right.

2014-09-11 Thread Wang Kai
This patch is for commit 3683f44c42e991d313dc301504ee0fca1aeb8580, that makes stacktrace NOT begin from stacktrace self function, which are: __save_stack_trace and save_stack_trace. But save_stack_trace will NOT have stacktrace information when build with '-O2', assemble code looks like below:

Re: [PATCH v5 2/7] kvm: Remove ept_identity_pagetable from struct kvm_arch.

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > kvm_arch->ept_identity_pagetable holds the ept identity pagetable page. But > it is never used to refer to the page at all. > > In vcpu initialization, it indicates two things: > 1. indicates if ept page is allocated > 2. indicates if a memory slot for

[PATCH] iio: adc: xilinx-xadc: assign auxiliary channels address correctly

2014-09-11 Thread Subbaraya Sundeep Bhatta
This patch fixes incorrect logic for assigning address to auxiliary channels of xilinx xadc. Signed-off-by: Subbaraya Sundeep Bhatta --- drivers/iio/adc/xilinx-xadc-core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/iio/adc/xilinx-xadc-core.c

Re: [PATCH v5 1/7] kvm: Use APIC_DEFAULT_PHYS_BASE macro as the apic access page address.

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 07:38, Tang Chen ha scritto: > We have APIC_DEFAULT_PHYS_BASE defined as 0xfee0, which is also the > address of > apic access page. So use this macro. > > Signed-off-by: Tang Chen > Reviewed-by: Gleb Natapov > --- > arch/x86/kvm/svm.c | 3 ++- > arch/x86/kvm/vmx.c | 6 +++---

Re: Ask help about pre_init_apic_IRQ0()

2014-09-11 Thread Andy Shevchenko
On Thu, 2014-09-11 at 11:53 +0300, Mika Westerberg wrote: > On Thu, Sep 11, 2014 at 04:44:54PM +0800, Jiang Liu wrote: > > Hi Thomas, > > > > When converting IOAPIC to hierarchy irqdomain, I ran into trouble when > > dealing with pre_init_apic_IRQ0(). Currently pre_init_apic_IRQ0() is > > only

Re: [PATCH] KVM: ioapic: add check for RTC_GSI

2014-09-11 Thread Paolo Bonzini
Il 11/09/2014 08:01, Jan Kiszka ha scritto: > That issue is limited to the dead ia64 architecture, no other builds > ioapic.c (besides x86, of course). Maybe finally remove KVM support for > that arch instead of bloating otherwise correct code? Yes, we should. I've just been too busy to do it.

[PATCH v8 00/10] Intel MPX support

2014-09-11 Thread Qiaowei Ren
This patchset adds support for the Memory Protection Extensions (MPX) feature found in future Intel processors. MPX can be used in conjunction with compiler changes to check memory references, for those references whose compile-time normal intentions are usurped at runtime due to buffer overflow

[PATCH v8 02/10] x86, mpx: add MPX specific mmap interface

2014-09-11 Thread Qiaowei Ren
This patch adds one MPX specific mmap interface, which only handles mpx related maps, including bounds table and bounds directory. In order to track MPX specific memory usage, this interface is added to stick new vm_flag VM_MPX in the vma_area_struct when create a bounds table or bounds

[PATCH v8 03/10] x86, mpx: add macro cpu_has_mpx

2014-09-11 Thread Qiaowei Ren
In order to do performance optimization, this patch adds macro cpu_has_mpx which will directly return 0 when MPX is not supported by kernel. Community gave a lot of comments on this macro cpu_has_mpx in previous version. Dave will introduce a patchset about disabled features to fix it later. In

[PATCH v8 05/10] x86, mpx: extend siginfo structure to include bound violation information

2014-09-11 Thread Qiaowei Ren
This patch adds new fields about bound violation into siginfo structure. si_lower and si_upper are respectively lower bound and upper bound when bound violation is caused. Signed-off-by: Qiaowei Ren --- include/uapi/asm-generic/siginfo.h |9 - kernel/signal.c|

[PATCH v8 01/10] x86, mpx: introduce VM_MPX to indicate that a VMA is MPX specific

2014-09-11 Thread Qiaowei Ren
MPX-enabled application will possibly create a lot of bounds tables in process address space to save bounds information. These tables can take up huge swaths of memory (as much as 80% of the memory on the system) even if we clean them up aggressively. Being this huge, we need a way to track their

[PATCH v8 06/10] mips: sync struct siginfo with general version

2014-09-11 Thread Qiaowei Ren
Due to new fields about bound violation added into struct siginfo, this patch syncs it with general version to avoid build issue. Signed-off-by: Qiaowei Ren --- arch/mips/include/uapi/asm/siginfo.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git

[PATCH v8 04/10] x86, mpx: hook #BR exception handler to allocate bound tables

2014-09-11 Thread Qiaowei Ren
This patch handles a #BR exception for non-existent tables by carving the space out of the normal processes address space (essentially calling mmap() from inside the kernel) and then pointing the bounds-directory over to it. The tables need to be accessed and controlled by userspace because the

[PATCH v3 5/8] rtc: at91sam9: make use of syscon/regmap to access GPBR registers

2014-09-11 Thread Boris BREZILLON
The GPBR registers are not part of the RTT block and thus should not be defined in the reg property of the rtt node. Use syscon to provide a proper DT representation and reference the GPBR syscon device in a new "atmel,time-reg" property which store both the syscon device phandle and the register

Re: [PATCH RFC 2/4] backlight: use spin-lock to protect device list

2014-09-11 Thread Jani Nikula
On Wed, 10 Sep 2014, David Herrmann wrote: > There is really no reason to use a mutex to protect a simple list. Convert > the list-lock to a simple spinlock instead. > > The spin-locks prepare for a backlight_find() helper, which should > preferably be usable from atomic context. A mutex would

[PATCH v3 6/8] ARM: at91: add clk_lookup entry for RTT devices

2014-09-11 Thread Boris BREZILLON
First export the clk32k clk. Then add clk_lookup entries for RTT devices so that rtc-at91sam9 driver can retrieve and manipulate the slow clk. Signed-off-by: Boris BREZILLON --- arch/arm/mach-at91/at91sam9260.c | 2 ++ arch/arm/mach-at91/at91sam9261.c | 2 ++ arch/arm/mach-at91/at91sam9263.c |

Re: [PATCH 6/8] arm64: Tell irq work about self IPI support

2014-09-11 Thread Catalin Marinas
On Wed, Sep 10, 2014 at 10:33:26PM +0100, Frederic Weisbecker wrote: > ARM64 irq work self-IPI support depends on __smp_cross_call to point to > some relevant IRQ controller operations. This information should be > available after the call to init_IRQ(). > > Lets implement

Re: [PATCH RFC 1/4] backlight: use static initializers

2014-09-11 Thread Jani Nikula
On Wed, 10 Sep 2014, David Herrmann wrote: > Use static initializers instead of setting up global variables during > runtime. This reduces code size and execution time. > > Signed-off-by: David Herrmann Reviewed-by: Jani Nikula > --- > drivers/video/backlight/backlight.c | 9 +++-- > 1

Re: [PATCH v3 02/17] ARM64 / ACPI: Get RSDP and ACPI boot-time tables

2014-09-11 Thread Grant Likely
On Wed, 10 Sep 2014 19:13:51 +0800, Hanjun Guo wrote: > On 2014/9/10 3:06, Jon Masters wrote: > > On 09/09/2014 02:05 PM, Sudeep Holla wrote: > >> > >> > >> On 09/09/14 18:50, Lorenzo Pieralisi wrote: > >>> On Tue, Sep 09, 2014 at 06:15:41PM +0100, Mark Rutland wrote: > On Tue, Sep 09, 2014

Re: [PATCH v3 04/17] ARM64 / ACPI: Introduce early_param for "acpi"

2014-09-11 Thread Grant Likely
On Wed, 10 Sep 2014 07:21:59 -0600, Bjorn Helgaas wrote: > On Wed, Sep 10, 2014 at 7:04 AM, Will Deacon wrote: > > > It's blindingly obvious that acpi=off is there to disable ACPI at boot. > > We either support that option or we don't -- none of this `oh, well you > > can use it in this

Re: [PATCH v3 02/17] ARM64 / ACPI: Get RSDP and ACPI boot-time tables

2014-09-11 Thread Grant Likely
On Wed, 10 Sep 2014 13:33:52 +0100, Catalin Marinas wrote: > On Wed, Sep 10, 2014 at 12:13:51PM +0100, Hanjun Guo wrote: > > On 2014/9/10 3:06, Jon Masters wrote: > > > On 09/09/2014 02:05 PM, Sudeep Holla wrote: > > >> On 09/09/14 18:50, Lorenzo Pieralisi wrote: > > >>> On Tue, Sep 09, 2014 at

[PATCH v3 7/8] rtc: at91sam9: use clk API instead of relying on AT91_SLOW_CLOCK

2014-09-11 Thread Boris BREZILLON
The RTT block is using the slow clock which is accessible through the clk API. Use the clk API to retrieve, enable and get the slow clk rate instead of the AT91_SLOW_CLOCK macro (which hardcodes the slow clk rate). Doing this allows us to reference the clk thus preventing the CCF from disabling it

[PATCH v3 8/8] rtc: at91sam9: add DT bindings documentation

2014-09-11 Thread Boris BREZILLON
Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/rtc/atmel,at91sam9-rtc.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt diff --git

Re: [PATCH v3 02/17] ARM64 / ACPI: Get RSDP and ACPI boot-time tables

2014-09-11 Thread Grant Likely
On Tue, 9 Sep 2014 17:26:49 +0100, Catalin Marinas wrote: > On Mon, Sep 01, 2014 at 03:57:40PM +0100, Hanjun Guo wrote: > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > > index c96172a..fb7cc0e 100644 > > --- a/arch/arm64/kernel/setup.c > > +++ b/arch/arm64/kernel/setup.c

[PATCH v3 2/8] rtc: at91sam9: use standard readl/writel functions instead of raw versions

2014-09-11 Thread Boris BREZILLON
Signed-off-by: Boris BREZILLON --- drivers/rtc/rtc-at91sam9.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index 51f0038..74a9ca0 100644 --- a/drivers/rtc/rtc-at91sam9.c +++ b/drivers/rtc/rtc-at91sam9.c @@

[PATCH v3 1/8] rtc: at91sam9: remove references to mach specific headers

2014-09-11 Thread Boris BREZILLON
In order to support multi platform kernel drivers should not include machine specific headers. Copy RTT macros in the driver code and remove any machine specific headers. Signed-off-by: Boris BREZILLON --- drivers/rtc/rtc-at91sam9.c | 22 ++ 1 file changed, 18 insertions(+),

[PATCH v3 0/8] rtc: at91sam9: add DT support

2014-09-11 Thread Boris BREZILLON
Hello, This patch series adds DT support to the atmel at91sam9 RTC driver. It also removes any machine specific inclusions to prepare the migration to multi platform kernel support, and retain the slow clock to prevent the CCF from disabling it at the end of boot. Johan, let me know if this

[PATCH v3 4/8] rtc: at91sam9: add DT support

2014-09-11 Thread Boris BREZILLON
Add of_match_table to the existing driver so that rtc nodes defined in at91 DTs can be attached to this driver. Signed-off-by: Boris BREZILLON --- drivers/rtc/rtc-at91sam9.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c

[PATCH v3 3/8] rtc: at91sam9: replace devm_ioremap by devm_ioremap_resource

2014-09-11 Thread Boris BREZILLON
Replace devm_ioremap calls by devm_ioremap_resource which already check resource consistency (resource != NULL) and print an error in case of failure. Signed-off-by: Boris BREZILLON --- drivers/rtc/rtc-at91sam9.c | 29 ++--- 1 file changed, 10 insertions(+), 19

[PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-11 Thread Qiaowei Ren
This patch adds the PR_MPX_REGISTER and PR_MPX_UNREGISTER prctl() commands. These commands can be used to register and unregister MPX related resource on the x86 platform. The base of the bounds directory is set into mm_struct during PR_MPX_REGISTER command execution. This member can be used to

[PATCH v8 10/10] x86, mpx: add documentation on Intel MPX

2014-09-11 Thread Qiaowei Ren
This patch adds the Documentation/x86/intel_mpx.txt file with some information about Intel MPX. Signed-off-by: Qiaowei Ren --- Documentation/x86/intel_mpx.txt | 127 +++ 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644

[PATCH v8 09/10] x86, mpx: cleanup unused bound tables

2014-09-11 Thread Qiaowei Ren
Since the kernel allocated those tables on-demand without userspace knowledge, it is also responsible for freeing them when the associated mappings go away. Here, the solution for this issue is to hook do_munmap() to check whether one process is MPX enabled. If yes, those bounds tables covered in

Re: [RFC] memory cgroup: my thoughts on memsw

2014-09-11 Thread Kamezawa Hiroyuki
(2014/09/11 17:23), Vladimir Davydov wrote: On Thu, Sep 11, 2014 at 11:04:41AM +0900, Kamezawa Hiroyuki wrote: (2014/09/09 19:39), Vladimir Davydov wrote: For your purpose, you need to implement your method in system-wide way. It seems crazy to set per-cgroup-anon-limit for avoding

[PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-11 Thread Qiaowei Ren
This patch sets bound violation fields of siginfo struct in #BR exception handler by decoding the user instruction and constructing the faulting pointer. This patch does't use the generic decoder, and implements a limited special-purpose decoder to decode MPX instructions, simply because the

Re: Ask help about pre_init_apic_IRQ0()

2014-09-11 Thread Mika Westerberg
On Thu, Sep 11, 2014 at 04:44:54PM +0800, Jiang Liu wrote: > Hi Thomas, > > When converting IOAPIC to hierarchy irqdomain, I ran into trouble when > dealing with pre_init_apic_IRQ0(). Currently pre_init_apic_IRQ0() is > only used by intel-mid platform and is called before initializing of > IOAPIC

Re: [RFC v2 7/9] KVM: KVM-VFIO: add new VFIO external API hooks

2014-09-11 Thread Eric Auger
On 09/11/2014 05:10 AM, Christoffer Dall wrote: > On Mon, Sep 01, 2014 at 02:52:46PM +0200, Eric Auger wrote: >> add functions that implement the gateway to the extended > > Capital letter when beginning a new sentence. Also the reference to > 'the extended VFIO API' feels a bit weird. Can't

Re: [PATCH V5 2/3] perf tools: parse the pmu event prefix and surfix

2014-09-11 Thread Jiri Olsa
On Wed, Sep 10, 2014 at 01:55:31PM -0400, kan.li...@intel.com wrote: SNIP > + struct perf_pmu_event_symbol *pmu2 = > + (struct perf_pmu_event_symbol *) p2; > + > + return strcmp(pmu1->symbol, pmu2->symbol); > +} > + > +/* > + * Read the pmu events list from sysfs > +

Re: [PATCH] PM / Domains: add debugfs listing of struct generic_pm_domain-s

2014-09-11 Thread Geert Uytterhoeven
Hi Maciej, On Wed, Sep 10, 2014 at 1:28 PM, Maciej Matraszek wrote: > Add /sys/kernel/debug/pm_genpd/pm_genpd_summary file, which > lists power domains in the system, their statuses and attached devices, > resembling /sys/kernel/debug/clk/clk_summary. > > Currently it is impossible to inspect

Re: [RFC v2 6/9] VFIO: Extend external user API

2014-09-11 Thread Eric Auger
On 09/11/2014 05:10 AM, Christoffer Dall wrote: > On Mon, Sep 01, 2014 at 02:52:45PM +0200, Eric Auger wrote: >> New functions are added to be called from ARM KVM-VFIO device. > > This commit message seems somewhat random. This patch doesn't deal with > anything ARM specific, it introduces some

Re: [RFC v2 5/9] KVM: KVM-VFIO: update user API to program forwarded IRQ

2014-09-11 Thread Eric Auger
On 09/11/2014 05:10 AM, Christoffer Dall wrote: > On Mon, Sep 01, 2014 at 02:52:44PM +0200, Eric Auger wrote: >> add new device group commands: >> - KVM_DEV_VFIO_DEVICE_FORWARD_IRQ and >> KVM_DEV_VFIO_DEVICE_UNFORWARD_IRQ >> >> which enable to turn forwarded IRQ mode on/off. >> >> the

Re: [PATCH 1/5] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-11 Thread Philipp Zabel
Am Mittwoch, den 10.09.2014, 16:46 +0300 schrieb Dmitry Lavnikevich: > Since pins and frequency are specific to module (pfla02), not base board > (pbab02), it is better to be initialized in corresponding dts file. > > Signed-off-by: Dmitry Lavnikevich I have seen boards use the GPIO_3/6 pads

[PATCH 10/10] MIPS: Kconfig option to better exercise/debug hybrid FPRs

2014-09-11 Thread Paul Burton
The hybrid FPR scheme exists to allow for compatibility between existing FP32 code and newly compiled FP64A code. Such code should hopefully be rare in the real world, and for the moment is difficult to come across. All code except that built for the FP64 ABI can correctly execute using the hybrid

Re: [PATCH V5 2/3] perf tools: parse the pmu event prefix and surfix

2014-09-11 Thread Jiri Olsa
On Wed, Sep 10, 2014 at 01:55:31PM -0400, kan.li...@intel.com wrote: > From: Kan Liang > SNIP > return 0; > } > > +static int > +comp_pmu(const void *p1, const void *p2) > +{ > + struct perf_pmu_event_symbol *pmu1 = > + (struct perf_pmu_event_symbol *) p1; > +

Ask help about pre_init_apic_IRQ0()

2014-09-11 Thread Jiang Liu
Hi Thomas, When converting IOAPIC to hierarchy irqdomain, I ran into trouble when dealing with pre_init_apic_IRQ0(). Currently pre_init_apic_IRQ0() is only used by intel-mid platform and is called before initializing of IOAPIC irqdomains. That really causes headache when converting to hierarchy

[PATCH 09/10] MIPS: ELF: set FP mode according to .MIPS.abiflags

2014-09-11 Thread Paul Burton
This patch reads the .MIPS.abiflags section when it is present, and sets the FP mode of the task accordingly. Any loaded ELF files which do not contain a .MIPS.abiflags section will continue to observe the previous behaviour, that is FR=1 if EF_MIPS_FP64 is set else FR=0. Signed-off-by: Paul

[PATCH 03/10] binfmt_elf: allow arch code to examine PT_LOPROC ... PT_HIPROC headers

2014-09-11 Thread Paul Burton
MIPS is introducing new variants of its O32 ABI which differ in their handling of floating point, in order to enable a gradual transition towards a world where mips32 binaries can take advantage of new hardware features only available when configured for certain FP modes. In order to do this ELF

Re: [PATCH] clk: add gpio gated clock

2014-09-11 Thread Jyri Sarha
On 09/10/2014 01:14 AM, Mike Turquette wrote: Quoting Jyri Sarha (2014-09-05 05:21:34) The added gpio-gate-clock is a basic clock that can be enabled and disabled trough a gpio output. The DT binding document for the clock is also added. For EPROBE_DEFER handling the registering of the clock

Re: [RFC v2 4/9] VFIO: platform: handler tests whether the IRQ is forwarded

2014-09-11 Thread Eric Auger
On 09/11/2014 05:10 AM, Christoffer Dall wrote: > On Mon, Sep 01, 2014 at 02:52:43PM +0200, Eric Auger wrote: >> In case the IRQ is forwarded, the VFIO platform IRQ handler does not >> need to disable the IRQ anymore. In that mode, when the handler completes > > add a comma after completes Hi

[PATCH 05/10] MIPS: detect presence of the FRE & UFR bits

2014-09-11 Thread Paul Burton
Detect the presence of the Config5 FRE & UFE bits, as indicated by the FREP bit in FPIR. Record this as a CPU option bit, and provide a cpu_has_fre macro to ease checking of that option bit. Signed-off-by: Paul Burton --- arch/mips/include/asm/cpu-features.h | 4

[PATCH 00/10] MIPS O32 new FP ABI support

2014-09-11 Thread Paul Burton
This series introduces support for reading the FP mode requirements of ELF binaries from their .MIPS.abiflags section when present, and configuring the system appropriately. The motivation for these new ABIs is to enable O32 binaries to operate with a 64b FPU (Status.FR=1) and therefore to run on

[PATCH 04/10] MIPS: define bits introduced for hybrid FPRs

2014-09-11 Thread Paul Burton
Add definitions for the FRE & UFE bits in Config5, and the FREP bit in FPIR. These bits are used to support a hybrid FPR scheme allowing a mixture of FP32 & FP64 code to execute within a task. Signed-off-by: Paul Burton --- arch/mips/include/asm/mipsregs.h | 3 +++ 1 file changed, 3

[PATCH 02/10] binfmt_elf: load interpreter program headers earlier

2014-09-11 Thread Paul Burton
Load the program headers of an ELF interpreter early enough in load_elf_binary that they can be examined before it's too late to return an error from an exec syscall. This patch does not perform any such checking, it merely lays the groundwork for a further patch to do so. No functional change is

[PATCH v2 3/4] net: stmmac: add support for Intel Quark X1000

2014-09-11 Thread Kweh Hock Leong
From: "Kweh, Hock Leong" The Intel Quark SoC X1000 provides two 10/100 Mbps Ethernet MAC controllers which may or may not be connected to PHY on board. This MAC controller only supports RMII PHY. Besides adding Quark PCI ID to this driver, this patch introduces run-time board detection through

[PATCH 08/10] MIPS: ELF: add definition for the .MIPS.abiflags section

2014-09-11 Thread Paul Burton
New toolchains will generate a .MIPS.abiflags section, referenced by a new PT_MIPS_ABIFLAGS program header. This section will provide information about the requirements of the ELF, including the ISA level the code is built for, the ASEs it requires, the size of various registers and its

<    5   6   7   8   9   10   11   12   13   14   >