Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
On 02/24/2014 09:32 AM, Vince Weaver wrote: >> >> Peter, does x32 have a slightly different ABI/calling convention that >> would make any of these patches just slightly 'off'? > > I do note that > perf_callchain_user(); > > Does > fp = (void __user *)regs->bp; > > ... >

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Paul E. McKenney
On Mon, Feb 24, 2014 at 02:55:07PM +0100, Michael Matz wrote: > Hi, > > On Fri, 21 Feb 2014, Paul E. McKenney wrote: > > > > And with conservative I mean "everything is a source of a dependency, and > > > hence can't be removed, reordered or otherwise fiddled with", and that > > > includes

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: > I do note that > perf_callchain_user(); > > Does > fp = (void __user *)regs->bp; > > ... > > bytes = copy_from_user_nmi(, fp, sizeof(frame)); > > > And in my particular executable RBP has nothing to do with a frame >

Re: [RFC PATCH] Fix: module signature vs tracepoints: add new TAINT_UNSIGNED_MODULE

2014-02-24 Thread Steven Rostedt
On Mon, 24 Feb 2014 16:55:36 + (UTC) Mathieu Desnoyers wrote: > - Original Message - > > From: "Steven Rostedt" > > To: "Mathieu Desnoyers" > > Cc: "Ingo Molnar" , linux-kernel@vger.kernel.org, "Ingo > > Molnar" , "Thomas > > Gleixner" , "Rusty Russell" , > > "David Howells" , >

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Linus Torvalds
On Mon, Feb 24, 2014 at 8:55 AM, Michael Matz wrote: > > So, let me try to poke holes into your definition or increase my > understanding :) . You said "chain of pointers"(dereferences I assume), > e.g. if p is result of consume load, then access to > p->here->there->next->prev->stuff is

Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of

2014-02-24 Thread Philipp Zabel
Am Dienstag, den 18.02.2014, 16:26 + schrieb Grant Likely: > On Tue, 18 Feb 2014 08:06:24 +0100, Sascha Hauer > wrote: > > Hi Grant, > > > > On Mon, Feb 17, 2014 at 06:14:51PM +, Grant Likely wrote: > > > On Tue, 11 Feb 2014 07:56:33 -0600, Rob Herring > > > wrote: > > > > On Tue, Feb

Re: [PATCH] [SCSI] lpfc 8.3.43: use NULL instead of 0 for pointer

2014-02-24 Thread James Smart
Acked-by: James Smart -- james s On 2/20/2014 8:10 PM, Daeseok Youn wrote: >From 9e7478f6e953fac5b2bef0f5abe76fe8dc9e59d1 Mon Sep 17 00:00:00 2001 From: Daeseok Youn Date: Fri, 21 Feb 2014 09:03:32 +0900 Subject: [PATCH] [SCSI] lpfc 8.3.43: use NULL instead of 0 for pointer sparse says:

Re: [perf tool] record failure with 3.14-rc4

2014-02-24 Thread Jiri Olsa
On Mon, Feb 24, 2014 at 05:24:41PM +, Will Deacon wrote: > Hi guys, > > If I try to run perf record as a non-root user, I end up with the following > (unhelpful) error: > > $ perf record -e cycles ls > [...] > Not enough memory for reading perf file header > > This is because the

Re: [GIT PULL] bcm pinctrl rename

2014-02-24 Thread Christian Daudt
On Fri, Feb 21, 2014 at 2:29 PM, Olof Johansson wrote: > On Wed, Feb 12, 2014 at 09:20:13AM -0800, Christian Daudt wrote: >> The following changes since commit b28a960c42fcd9cfc987441fa6d1c1a471f0f9ed: >> >> Linux 3.14-rc2 (2014-02-09 18:15:47 -0800) >> >> are available in the git repository

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Peter Zijlstra wrote: > On Mon, Feb 24, 2014 at 12:10:44PM -0500, Vince Weaver wrote: > > On Mon, 24 Feb 2014, H. Peter Anvin wrote: > > > > > On February 24, 2014 8:34:30 AM PST, Vince Weaver > > > wrote: > > > >On Mon, 24 Feb 2014, Vince Weaver wrote: > > > > > > > >>

[RFC PATCH 1/2] mtd: nand: add manufacturer specific init infrastructure

2014-02-24 Thread Boris BREZILLON
Add new fields in nand_manufacturers and nand_chip struct to provide manufacturer specific handling like read retries. Signed-off-by: Boris BREZILLON --- drivers/mtd/nand/nand_base.c |7 +++ include/linux/mtd/nand.h |4 2 files changed, 11 insertions(+) diff --git

[RFC PATCH 0/2] mtd: nand: add manafacturer specific handling

2014-02-24 Thread Boris BREZILLON
Hello, This is a proposal to add support for manufacturer specific handling of NAND chips. Currently the only ones allowed to modify how NAND chips are accessed are NAND controllers (by modifying the nand_chip callbacks) and NAND core code (by setting default callbacks when these are not

[RFC PATCH 2/2] mtd: nand: add hynix specific initializer

2014-02-24 Thread Boris BREZILLON
Add an hynix initializer to manage read retries on h27uxgt8t2a chips. Signed-off-by: Boris BREZILLON --- drivers/mtd/nand/Makefile |2 +- drivers/mtd/nand/nand_hynix.c | 151 + drivers/mtd/nand/nand_ids.c |3 +- include/linux/mtd/nand.h

Re: your mail

2014-02-24 Thread Will Deacon
On Mon, Feb 24, 2014 at 03:12:21PM +, srikanth TS wrote: > Hi Will Deacon, Hello, > Currently SMMU driver expecting all stream ID used by respective master > should be defined in the DT. > > We want to know how to handle in the case of virtual functions dynamically > created and destroyed.

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Paul E. McKenney
On Mon, Feb 24, 2014 at 05:55:50PM +0100, Michael Matz wrote: > Hi, > > On Mon, 24 Feb 2014, Linus Torvalds wrote: > > > > To me that reads like > > > > > > int i; > > > int *q = > > > int **p = > > > > > > atomic_XXX (p, CONSUME); > > > > > > orders against accesses '*p', '**p', '*q'

Re: [PATCH v5 2/3] x86, mpx: hook #BR exception handler to allocate bound tables

2014-02-24 Thread Dave Hansen
On 02/23/2014 05:27 AM, Qiaowei Ren wrote: > +static bool allocate_bt(unsigned long bd_entry) > +{ > + unsigned long bt_size = 1UL << (MPX_L2_BITS+MPX_L2_SHIFT); > + unsigned long bt_addr, old_val = 0; > + > + bt_addr = sys_mmap_pgoff(0, bt_size, PROT_READ | PROT_WRITE, > +

[PATCH v6 0/2] Introduce AEMIF driver for Davinci/Keystone archs

2014-02-24 Thread Ivan Khoronzhuk
These patches introduce Async External Memory Interface (EMIF16/AEMIF) controller driver for Davinci/Keystone archs. For more informations see documentation: Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf OMAP-L138 - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf Kestone -

[PATCH v6 2/2] memory: ti-aemif: add bindings for AEMIF driver

2014-02-24 Thread Ivan Khoronzhuk
Add bindings for TI Async External Memory Interface (AEMIF) controller. The Async External Memory Interface (EMIF16/AEMIF) controller is intended to provide a glue-less interface to a variety of asynchronous memory devices like ASRA M, NOR and NAND memory. A total of 256M bytes of any of these

[PATCH v6 1/2] memory: ti-aemif: introduce AEMIF driver

2014-02-24 Thread Ivan Khoronzhuk
Add new AEMIF driver for EMIF16 Texas Instruments controller. The EMIF16 module is intended to provide a glue-less interface to a variety of asynchronous memory devices like ASRA M, NOR and NAND memory. A total of 256M bytes of any of these memories can be accessed at any given time via 4 chip

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 12:10:44PM -0500, Vince Weaver wrote: > On Mon, 24 Feb 2014, H. Peter Anvin wrote: > > > On February 24, 2014 8:34:30 AM PST, Vince Weaver > > wrote: > > >On Mon, 24 Feb 2014, Vince Weaver wrote: > > > > > >> Just touching the mmap page with a write of a single byte (it

[perf tool] record failure with 3.14-rc4

2014-02-24 Thread Will Deacon
Hi guys, If I try to run perf record as a non-root user, I end up with the following (unhelpful) error: $ perf record -e cycles ls [...] Not enough memory for reading perf file header This is because the addresses in /proc/kallsyms always read as 0x0 when viewed by a non-privileged user,

Re: [PATCH v3 0/2] regulator: core: Fix ops->enable/disable usage

2014-02-24 Thread Fabio Estevam
On Sun, Feb 23, 2014 at 2:12 AM, Mark Brown wrote: > On Thu, Feb 20, 2014 at 05:36:02PM +0100, Markus Pargmann wrote: >> Hi, >> >> These two patches replace all ops->enable/disable by >> _regulator_do_disable/enable function calls. These wrappers also handle gpio >> regulators. > > Applied both,

Re: [PATCH V2 4/5] idle: Move idle conditions in cpuidle_idle main function

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 06:03:10PM +0100, Daniel Lezcano wrote: > Well there is the polling idle state for the x86 and ppc cpuidle drivers. > Except that, I think we have something more or less clean. Yeah, they have to set it back to polling again :/ Ideally we'd sweep the entire tree and

Re: [PATCH 00/11] smp: Single IPI cleanups v2

2014-02-24 Thread Jens Axboe
On 2014-02-24 07:39, Frederic Weisbecker wrote: Hi, This version includes: * Rename __smp_call_function_single to smp_call_function_single() as suggested by Christoph. * Acks and reviewed-by added. * Rebase against -rc4 Thanks. I'd be happy to take this in, as it's mostly centered

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Paul E. McKenney
On Mon, Feb 24, 2014 at 07:57:24AM -0800, Linus Torvalds wrote: > On Sun, Feb 23, 2014 at 11:31 AM, Linus Torvalds > wrote: > > > > Let me think about it some more, but my gut feel is that just tweaking > > the definition of what "ordered" means is sufficient. > > > > So to go back to the

Re: [RFC] drivercore: deferral race condition fix

2014-02-24 Thread Greg Kroah-Hartman
On Mon, Feb 24, 2014 at 10:40:32AM +0900, Mark Brown wrote: > On Mon, Dec 23, 2013 at 02:41:31PM +0200, Peter Ujfalusi wrote: > > > The proposed solution is to try the deferred queue once more when the last > > driver is asking for deferring and we had drivers probed while this last > > driver

[PATCH v2 1/3] drivers: Introduce MEN Chameleon Bus

2014-02-24 Thread Johannes Thumshirn
The MCB (MEN Chameleon Bus) is a Bus specific to MEN Mikroelektronik FPGA based devices. It is used to identify MCB based IP-Cores within an FPGA and provide the necessary framework for instantiating drivers for these devices. Signed-off-by: Johannes Thumshirn --- MAINTAINERS

[PATCH 2/3] mcb: Add PCI carrier for MEN Chameleon Bus

2014-02-24 Thread Johannes Thumshirn
Add support for MCB over PCI devices. Both PCI attached on-board Chameleon FPGAs as well as CompactPCI based MCB carrier cards are supported with this driver. Signed-off-by: Johannes Thumshirn --- drivers/mcb/Kconfig| 14 ++ drivers/mcb/Makefile | 2 +

Re: [PATCH V5 0/7] cpufreq: suspend early/resume late: dpm_{suspend|resume}()

2014-02-24 Thread Stephen Warren
On 02/23/2014 11:43 PM, Viresh Kumar wrote: > On 20 February 2014 23:10, Stephen Warren wrote: >> Well, except that still leaves a bunch of errors in the kernel log, and >> I have to remember to ignore them:-/ > > Just for few releases, before this patchset goes in. > >> It'd be nice if the

[PATCH v2 3/3] iio: adc: Add MEN 16z188 ADC driver

2014-02-24 Thread Johannes Thumshirn
Add support for MEN 16z188 ADC IP Core on MCB FPGAs. Signed-off-by: Johannes Thumshirn --- drivers/iio/adc/Kconfig| 10 +++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/men_z188_adc.c | 170 + 3 files changed, 181 insertions(+) create

Re: [PATCH 0/9] block: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-24 Thread Jens Axboe
On 2014-02-22 01:38, Alexander Gordeev wrote: On Fri, Feb 21, 2014 at 03:46:13PM -0800, Jens Axboe wrote: On Wed, Feb 19 2014, Alexander Gordeev wrote: As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces

[PATCH 0/3] introduce assign_if() macros in attempt to reduce ifdeffery

2014-02-24 Thread Josh Cartwright
Based on the observation that given the following: static void my_callback(void) { } void (*callback)(void) = 0 ? my_callback : NULL; GCC will, 1.) Not emit 'defined but unused' warnings for 'my_callback' 2.) Typecheck my_callback against

[PATCH 1/3] typecheck: introduce assign_if() and assign_if_enabled()

2014-02-24 Thread Josh Cartwright
The assign_if() and assign_if_enable() macros are intended to be used in static initializers for function pointers, where the pointer is expected to be NULL when a compile-time condition does not hold. These macros allow for implementing this behavior, without requiring the functions be wrapped

Re: [PATCH 00/13] cross rename v4

2014-02-24 Thread Miklos Szeredi
On Thu, Feb 13, 2014 at 09:28:50PM +0100, Miklos Szeredi wrote: > On Thu, Feb 13, 2014 at 8:32 PM, Linus Torvalds > wrote: > > (I do think we should allow creation - but for root only - for > > management and testing purposes, but I really think it's a secondary > > issue, and I do think we

[PATCH 3/3] usb: phy: msm: use ASSIGN_*_PM_OPS variants

2014-02-24 Thread Josh Cartwright
Use ASSIGN_SYSTEM_SLEEP_PM_OPS and ASSIGN_RUNTIME_PM_OPS in the initializer for msm_otg_dev_pm_ops. Doing so allows us to eliminate preprocessor conditionals around the specified callbacks. Signed-off-by: Josh Cartwright --- drivers/usb/phy/phy-msm-usb.c | 13 +++-- 1 file changed, 3

[PATCH 2/3] PM: define new ASSIGN_*_PM_OPS macros based on assign_if

2014-02-24 Thread Josh Cartwright
Similar to the SET_*_PM_OPS(), these functions are to be used in initializers of struct dev_pm_ops, for example: static const struct dev_pm_ops foo_pm_ops = { ASSIGN_RUNTIME_PM_OPS(foo_rpm_suspend, foo_rpm_resume, NULL)

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, H. Peter Anvin wrote: > On February 24, 2014 8:34:30 AM PST, Vince Weaver > wrote: > >On Mon, 24 Feb 2014, Vince Weaver wrote: > > > >> Just touching the mmap page with a write of a single byte (it doesn't > > > >> matter where) is enough to trigger the bug. > > > >OK,

Re: [PATCH 2/3] ipmi: Turn off all activity on an idle ipmi interface

2014-02-24 Thread Corey Minyard
On 02/24/2014 10:57 AM, Dmitry Torokhov wrote: > On Sun, Feb 23, 2014 at 08:23:35PM -0600, miny...@acm.org wrote: >> @@ -1194,7 +1223,17 @@ int ipmi_set_gets_events(ipmi_user_t user, int val) >> INIT_LIST_HEAD(); >> >> spin_lock_irqsave(>events_lock, flags); >> -user->gets_events =

Re: [PATCH 6/7] Cpuidle: Deal with timer expiring in the past

2014-02-24 Thread Nicolas Pitre
On Mon, 24 Feb 2014, Tuukka Tikkanen wrote: > Sometimes (fairly often) when the cpuidle menu governor is making a decision > about idle state to enter the next timer for the cpu appears to expire in > the past. The menu governor expects the expiry to always be in the future > and in fact stores

Re: [PATCH V2 4/5] idle: Move idle conditions in cpuidle_idle main function

2014-02-24 Thread Daniel Lezcano
On 02/24/2014 05:05 PM, Peter Zijlstra wrote: On Mon, Feb 24, 2014 at 04:39:08PM +0100, Daniel Lezcano wrote: And when you do that; you can also push down the current_clr_polling_and_test() muck so it doesn't cover the actual cpuidle policy code. I am not getting it. Where do you suggest to

Re: [PATCHSET 0/8] perf tools: Update on filtered entries' percentage output (v5)

2014-02-24 Thread Jiri Olsa
On Mon, Feb 24, 2014 at 05:09:20PM +0900, Namhyung Kim wrote: > Hello, > > I added --percentage option to perf report to control display of > percentage of filtered entries. > > usage: perf report [] > > --percentage > how to display percentage of filtered

Re: [PATCH 2/3] ipmi: Turn off all activity on an idle ipmi interface

2014-02-24 Thread Dmitry Torokhov
On Sun, Feb 23, 2014 at 08:23:35PM -0600, miny...@acm.org wrote: > @@ -1194,7 +1223,17 @@ int ipmi_set_gets_events(ipmi_user_t user, int val) > INIT_LIST_HEAD(); > > spin_lock_irqsave(>events_lock, flags); > - user->gets_events = val; > + if (user->gets_events == !!val) > +

Re: [PATCH 1/3] ipmi: Turn off default probing of interfaces

2014-02-24 Thread Corey Minyard
On 02/24/2014 10:53 AM, Dmitry Torokhov wrote: > Hi Corey, > > On Sun, Feb 23, 2014 at 08:23:34PM -0600, miny...@acm.org wrote: > Would not > > static bool si_trydefaults = > IS_ENABLED(CONFIG_IPMI_SI_PROBE_DEFAULTS); > > work better here? > > Thanks. > Certainly. I will update it.

Re: [PATCH 3/7] Cpuidle: Ensure menu coefficients stay within domain

2014-02-24 Thread Nicolas Pitre
On Mon, 24 Feb 2014, Tuukka Tikkanen wrote: > The menu governor uses coefficients as one method of actual idle > period length estimation. The coefficients are, as detailed below, > multipliers giving expected idle period length from time until next > timer expiry. The multipliers are supposed to

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-24 Thread Zoltan Kiss
On 22/02/14 22:33, Zoltan Kiss wrote: On 18/02/14 17:40, Ian Campbell wrote: + */ +skb->pfmemalloc= false; } static int xenvif_get_extras(struct xenvif *vif, @@ -1372,7 +1341,7 @@ static bool tx_credit_exceeded(struct xenvif *vif, unsigned size) @@ -1581,7 +1535,11 @@

Re: [RFC PATCH] Fix: module signature vs tracepoints: add new TAINT_UNSIGNED_MODULE

2014-02-24 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: "Mathieu Desnoyers" > Cc: "Ingo Molnar" , linux-kernel@vger.kernel.org, "Ingo > Molnar" , "Thomas > Gleixner" , "Rusty Russell" , > "David Howells" , > "Greg Kroah-Hartman" > Sent: Monday, February 24, 2014 10:54:54 AM > Subject: Re:

Re: [PATCH 1/3] ipmi: Turn off default probing of interfaces

2014-02-24 Thread Matthew Garrett
On Mon, 2014-02-24 at 08:53 -0800, Dmitry Torokhov wrote: > Would not > > static bool si_trydefaults = > IS_ENABLED(CONFIG_IPMI_SI_PROBE_DEFAULTS); > > work better here? Yes, it would. Sorry, I should have thought of that. -- Matthew Garrett

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Michael Matz
Hi, On Mon, 24 Feb 2014, Linus Torvalds wrote: > > To me that reads like > > > > int i; > > int *q = > > int **p = > > > > atomic_XXX (p, CONSUME); > > > > orders against accesses '*p', '**p', '*q' and 'i'. Thus it seems they > > want to say that it orders against aliased storage -

Re: [BISECTED] ssh - Received disconnect from x.x.x.x: 2: Bad packet length 3149594624

2014-02-24 Thread Kalle Valo
Will Deacon writes: > Well, we probably need a bit more to go on, because I doubt that this code > is to blame. More likely, the issue is in the caller. > Looking at drivers/net/wireless/ti/wl1251/rx.c:182 > > /* The actual length doesn't include the target's alignment */ >

Re: [PATCH 1/3] ipmi: Turn off default probing of interfaces

2014-02-24 Thread Dmitry Torokhov
Hi Corey, On Sun, Feb 23, 2014 at 08:23:34PM -0600, miny...@acm.org wrote: Would not static bool si_trydefaults = IS_ENABLED(CONFIG_IPMI_SI_PROBE_DEFAULTS); work better here? Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH 1/7] Cpuidle: rename expected_us to next_timer_us in menu governor

2014-02-24 Thread Nicolas Pitre
On Mon, 24 Feb 2014, Tuukka Tikkanen wrote: > The field expected_us is used to store the time remaining until next > timer expiry. The name is inaccurate, as we really do not expect all > wakeups to be caused by timers. In addition, another field with a very > similar name (predicted_us) is used

[PATCH] Staging: comedi: Fix line length exceeding 80 characters

2014-02-24 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/staging/comedi/comedi_fops.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index ac1edd9..7da8566 100644 --- a/drivers/staging/comedi/comedi_fops.c +++

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread H. Peter Anvin
Ok, so the obvious question is what is at that kernel address? On February 24, 2014 8:34:30 AM PST, Vince Weaver wrote: >On Mon, 24 Feb 2014, Vince Weaver wrote: > >> Just touching the mmap page with a write of a single byte (it doesn't > >> matter where) is enough to trigger the bug. > >OK,

Re: [RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-24 Thread Dan Williams
On Mon, Feb 24, 2014 at 8:29 AM, Mathias Nyman wrote: > xHCI driver has its own pci probe function that will call usb_hcd_pci_probe > to register its usb-2 bus, and then continue to manually register the > usb-3 bus. usb_hcd_pci_probe does a pm_runtime_put_noidle at the end and > might thus

Re: [PATCH 2/3 v2] Staging: comedi: addi-data: cleanup conditional blocks in hwdrv_apci035.c

2014-02-24 Thread Ian Abbott
On 2014-02-24 16:34, Chase Southwood wrote: There were some conditional blocks that had an unnecessary level of indentation in them. We can remove this to improve code clarity. Signed-off-by: Chase Southwood --- 2: Moved "else if" up to the same line as closing brace of "if". Left braces on

Re: [PATCH 3/3 v2] Staging: comedi: addi-data: fix a couple of lines that are too long

2014-02-24 Thread Ian Abbott
On 2014-02-24 16:35, Chase Southwood wrote: There are a couple of cases where a comment being on the same line as a statement is causing the line to be over 80 characters long. This is an easy fix, move these comments to the previous line. Signed-off-by: Chase Southwood --- 2: Some changes to

Re: [PATCH v5 3/3] KVM: x86: Enable Intel MPX for guest

2014-02-24 Thread Paolo Bonzini
Il 24/02/2014 16:37, Liu, Jinsong ha scritto: So patch v5 would be applied except you will remove the incorrect hunk, and you will send a patch strengthenning guest_supported_xcr0? Yes. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Linus Torvalds
On Mon, Feb 24, 2014 at 8:37 AM, Linus Torvalds wrote: > > So yes, the atomic_read() would be ordered wrt '*ptr' (getting 'q') > _and_ '**ptr' (getting 'i'), but nothing else - including just the > aliasing access of dereferencing 'i' directly. Btw, what CPU architects and memory ordering guys

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Linus Torvalds
On Mon, Feb 24, 2014 at 8:27 AM, Richard Biener wrote: > > To me that reads like > > int i; > int *q = > int **p = > > atomic_XXX (p, CONSUME); > > orders against accesses '*p', '**p', '*q' and 'i'. Thus it seems they > want to say that it orders against aliased storage - but then go

[PATCH 3/3 v2] Staging: comedi: addi-data: fix a couple of lines that are too long

2014-02-24 Thread Chase Southwood
There are a couple of cases where a comment being on the same line as a statement is causing the line to be over 80 characters long. This is an easy fix, move these comments to the previous line. Signed-off-by: Chase Southwood --- 2: Some changes to PATCH 2/3 v2 occurred in the immediate

[PATCH 2/3 v2] Staging: comedi: addi-data: cleanup conditional blocks in hwdrv_apci035.c

2014-02-24 Thread Chase Southwood
There were some conditional blocks that had an unnecessary level of indentation in them. We can remove this to improve code clarity. Signed-off-by: Chase Southwood --- 2: Moved "else if" up to the same line as closing brace of "if". Left braces on single line "else if" matched to an "if"

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Austin, Brian
On Feb 24, 2014, at 10:06 AM, Nicolin Chen wrote: > On Mon, Feb 24, 2014 at 03:52:24PM +, Austin, Brian wrote: + if (!IS_ERR(cs42888->clk)) + clk_disable_unprepare(cs42888->clk); >>> >>> Does the device work without MCLK? >> Yes, MCLK is required. If you can’t get the

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-24 Thread Vince Weaver
On Mon, 24 Feb 2014, Vince Weaver wrote: > Just touching the mmap page with a write of a single byte (it doesn't > matter where) is enough to trigger the bug. OK, investigating this more. perf_fuzzer-2971 [000] 154.944114: page_fault_user: address=0xf7729000 ip=0x41efab

[PATCH 4/6] android: convert sync to fence api, v5

2014-02-24 Thread Maarten Lankhorst
Just to show it's easy. Android syncpoints can be mapped to a timeline. This removes the need to maintain a separate api for synchronization. I've left the android trace events in place, but the core fence events should already be sufficient for debugging. v2: - Call fence_remove_callback in

Re: [PATCH 1/5] clk: sun6i: Protect CPU clock

2014-02-24 Thread Russell King - ARM Linux
On Mon, Feb 24, 2014 at 05:22:43PM +0100, Maxime Ripard wrote: > Right now, AHB is an indirect child clock of the CPU clock. If that happens to > change, since the CPU clock has no other consumers declared in Linux, it would > be shut down, which is not really a good idea. > > Prevent this by

[PATCH 6/6] dma-buf: add poll support, v3

2014-02-24 Thread Maarten Lankhorst
Thanks to Fengguang Wu for spotting a missing static cast. v2: - Kill unused variable need_shared. v3: - Clarify the BUG() in dma_buf_release some more. (Rob Clark) Signed-off-by: Maarten Lankhorst --- drivers/base/dma-buf.c | 108 +++

[PATCH 5/6] reservation: add support for fences to enable cross-device synchronisation

2014-02-24 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst Reviewed-by: Rob Clark --- include/linux/reservation.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/include/linux/reservation.h b/include/linux/reservation.h index 813dae960ebd..f3f57460a205 100644 ---

[PATCH 3/6] dma-buf: use reservation objects

2014-02-24 Thread Maarten Lankhorst
This allows reservation objects to be used in dma-buf. it's required for implementing polling support on the fences that belong to a dma-buf. Signed-off-by: Maarten Lankhorst Acked-by: Mauro Carvalho Chehab #drivers/media/v4l2-core/ Acked-by: Thomas Hellstrom #drivers/gpu/drm/ttm ---

[PATCH 1/6] fence: dma-buf cross-device synchronization (v17)

2014-02-24 Thread Maarten Lankhorst
A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU is still rendering.

[PATCH 2/6] seqno-fence: Hardware dma-buf implementation of fencing (v5)

2014-02-24 Thread Maarten Lankhorst
This type of fence can be used with hardware synchronization for simple hardware that can block execution until the condition (dma_buf[offset] - value) >= 0 has been met when WAIT_GEQUAL is used, or (dma_buf[offset] != 0) has been met when WAIT_NONZERO is set. A software fallback still has to be

Re: [PATCH v2] timberdale: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-02-24 Thread Lee Jones
On Fri, 21 Feb 2014, Alexander Gordeev wrote: > As result of deprecation of MSI-X/MSI enablement functions > pci_enable_msix() and pci_enable_msi_block() all drivers > using these two interfaces need to be updated to use the > new pci_enable_msi_range() or pci_enable_msi_exact() > and

[PATCH 0/6] dma-buf synchronization patches (updated)

2014-02-24 Thread Maarten Lankhorst
The following series implements fence and converts dma-buf and android sync to use it. Patch 5 and 6 add support for polling to dma-buf, blocking until all fences are signaled. Patches that received some minor updates: - seqno fence (wait condition member added) - android (whitespace changes and

[PATCH 1/5] clk: sun6i: Protect CPU clock

2014-02-24 Thread Maxime Ripard
Right now, AHB is an indirect child clock of the CPU clock. If that happens to change, since the CPU clock has no other consumers declared in Linux, it would be shut down, which is not really a good idea. Prevent this by forcing it enabled. Signed-off-by: Maxime Ripard ---

[PATCH 2/5] clk: sun6i: Reparent AHB clock on PLL6

2014-02-24 Thread Maxime Ripard
In order for the DMA controller to work for SDRAM to devices transfers, the AHB clock should be reparented on the PLL6. Force that parenting in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 18 +- 1 file changed, 17 insertions(+), 1

Re: memory-barriers.txt again (was Re: [PATCH 4/9] firewire: don't use PREPARE_DELAYED_WORK)

2014-02-24 Thread Paul E. McKenney
On Mon, Feb 24, 2014 at 01:32:54AM +0100, Stefan Richter wrote: > On Feb 23 Paul E. McKenney wrote: > >>> Please see below for a patch against the current version of > >>> Documentation/memory-barriers.txt. Does this update help? > > Thank you, this clarifies it. > > [...] > A new nit: > > +The

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-24 Thread Richard Biener
On Mon, Feb 24, 2014 at 4:57 PM, Linus Torvalds wrote: > On Sun, Feb 23, 2014 at 11:31 AM, Linus Torvalds > wrote: >> >> Let me think about it some more, but my gut feel is that just tweaking >> the definition of what "ordered" means is sufficient. >> >> So to go back to the suggested ordering

[PATCH 5/5] ARM: sun6i: dt: Add A31 DMA controller to DTSI

2014-02-24 Thread Maxime Ripard
Now that we have a DMA driver, we can add the DMA bindings in the DTSI for the controller and the devices supported that can use DMA. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH 0/5] Add support for the Allwinner A31 DMA Controller

2014-02-24 Thread Maxime Ripard
Hi, This patchset adds support for the DMA controller found in the Allwinner A31 and A23 SoCs. This has been tested using the newly introduced SPI driver on an A31 EVK. Support for DMA-driven SPI transfers will be the subject of another patch serie. Thanks, Maxime Maxime Ripard (5): clk:

Re: [PATCH] mfd: syscon: Move diagnostic messages to dev_dbg()

2014-02-24 Thread Lee Jones
> This patch moves diagnostic messages used for debugging purposes > to dev_dbg(). > > Signed-off-by: Alexander Shiyan > --- > drivers/mfd/syscon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c > index 71841f9..2620056

Re: memory-barriers.txt again (was Re: [PATCH 4/9] firewire: don't use PREPARE_DELAYED_WORK)

2014-02-24 Thread Paul E. McKenney
On Sun, Feb 23, 2014 at 07:09:55PM -0500, Peter Hurley wrote: > On 02/23/2014 06:50 PM, Paul E. McKenney wrote: > >On Sun, Feb 23, 2014 at 03:35:31PM -0500, Peter Hurley wrote: > >>Hi Paul, > >> > >>On 02/23/2014 11:37 AM, Paul E. McKenney wrote: > >>>commit

[PATCH 3/5] clk: sun6i: Protect SDRAM gating bit

2014-02-24 Thread Maxime Ripard
Prevent the SDRAM controller from being gated by force-enabling it in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index 6cfcd23..d9b4a41

[PATCH 4/5] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-02-24 Thread Maxime Ripard
The Allwinner A31 has a 16 channels DMA controller that it shares with the newer A23. Although sharing some similarities with the DMA controller of the older Allwinner SoCs, it's significantly different, I don't expect it to be possible to share the driver for these two. The A31 Controller is

Re: [PATCH 0/3] HID: low level transport cleanup, series 3

2014-02-24 Thread Jiri Kosina
On Thu, 20 Feb 2014, Benjamin Tissoires wrote: > Hi guys, > > this is a new round in the low level HID transport cleanup. > These are the formely 7/14 an 12/14 only. > I add in between a patch which makes .raw_request mandatory, to cleanup > the old 12/14 (so 3/3 here). > > There is only two

Info: mapping multiple BARs. Your kernel is fine.

2014-02-24 Thread Borislav Petkov
This started happening this morning after booting -rc4+tip, let's add *everybody* to CC :-) We have intel_uncore_init, snb_uncore_imc_init_box, uncore_pci_probe and other goodies on the stack. ... [0.488998] software IO TLB [mem 0xcac3-0xcec3] (64MB) mapped at

Re: [PATCH] mm/zswap: support multiple swap devices

2014-02-24 Thread Seth Jennings
On Mon, Feb 24, 2014 at 02:13:25PM +0900, Minchan Kim wrote: > Cai Liu reporeted that now zbud pool pages counting has a problem > when multiple swap is used because it just counts only one swap > intead of all of swap so zswap cannot control writeback properly. > The result is unnecessary

Re: 3.13 i915 brightness settings broken when going from docked -> undocked

2014-02-24 Thread Jesse Barnes
On Sun, 23 Feb 2014 10:50:59 -0500 Josh Boyer wrote: > On Thu, Feb 20, 2014 at 07:31:41PM -0500, Josh Boyer wrote: > >On Wed, Feb 19, 2014 at 9:20 PM, Josh Boyer > >wrote: > >> Hi All, > >> > >> We've had a rather weird report[1] of the brightness adjustments being > >> broken in a specific

Re: [PATCH] ASoC: cs42888: Add codec driver support

2014-02-24 Thread Nicolin Chen
On Mon, Feb 24, 2014 at 03:52:24PM +, Austin, Brian wrote: > >> + if (!IS_ERR(cs42888->clk)) > >> + clk_disable_unprepare(cs42888->clk); > > > > Does the device work without MCLK? > Yes, MCLK is required. If you can’t get the clock you should error out. Wait...Regarding this clock

[RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-24 Thread Mathias Nyman
xHCI driver has its own pci probe function that will call usb_hcd_pci_probe to register its usb-2 bus, and then continue to manually register the usb-3 bus. usb_hcd_pci_probe does a pm_runtime_put_noidle at the end and might thus trigger a runtime suspend before the usb-3 bus is ready. Prevent

Is: 'mm: __set_page_dirty_nobuffers() uses spin_lock_irqsave() instead of spin_lock_irq()' fixed it.Was:Re: [BISECTED] Xen HVM guest hangs since 3.12-rc5

2014-02-24 Thread Konrad Rzeszutek Wilk
On Sat, Feb 22, 2014 at 11:53:31PM -0800, Steven Noonan wrote: > On Fri, Feb 21, 2014 at 12:07 PM, Konrad Rzeszutek Wilk > wrote: > > On Thu, Feb 20, 2014 at 12:44:15PM -0800, Steven Noonan wrote: > >> On Wed, Feb 19, 2014 at 1:01 PM, Steven Noonan > >> wrote: > >> > On Wed, Feb 19, 2014 at

[PATCH 3/3] ftrace/x86: BUG when ftrace recovery fails

2014-02-24 Thread Petr Mladek
Ftrace modifies function calls using Int3 breakpoints on x86. The breakpoints are handled only when the patching is in progress. If something goes wrong, there is a recovery code that removes the breakpoints. If this fails, the system might get silently rebooted when a remaining break is not

[PATCH 1/3] ftrace/x86: One more missing sync after fixup of function modification failure

2014-02-24 Thread Petr Mladek
If a failure occurs while modifying ftrace function, it bails out and will remove the tracepoints to be back to what the code originally was. There is missing the final sync run across the CPUs after the fix up is done and before the ftrace int3 handler flag is reset. Signed-off-by: Petr Mladek

[PATCH 2/3] ftrace: Warn on error when modifying ftrace function

2014-02-24 Thread Petr Mladek
We should print some warning and kill ftrace functionality when the ftrace function is not set correctly. Otherwise, ftrace might do crazy things without an explanation. The error value has been ignored so far. Note that an error that happens during updating all the traced calls is handled in

[PATCH v2 0/3] ftrace/x86: Recovery code fixes and improvements

2014-02-24 Thread Petr Mladek
This is folowup from the discussion (Re: [PATCH 0/4] x86: Fix ftrace recovery when code modification failed), see https://lkml.org/lkml/2014/2/21/748 I split the fixes into three patches: 1st patch adds the missing sync call. I guess that Steven would want to squash this into the commit

Re: [PATCH] zram: support REQ_DISCARD

2014-02-24 Thread Joonsoo Kim
2014-02-25 1:06 GMT+09:00 Jerome Marchand : > On 02/24/2014 04:56 PM, Joonsoo Kim wrote: >> 2014-02-25 0:15 GMT+09:00 Jerome Marchand : >>> On 02/24/2014 04:02 PM, Joonsoo Kim wrote: 2014-02-24 22:36 GMT+09:00 Jerome Marchand : > On 02/24/2014 06:51 AM, Joonsoo Kim wrote: >> zram is

Re: [PATCH 3/3] mfd: arizona: Use new regmap features for manual register patch

2014-02-24 Thread Lee Jones
> On the wm5102 the register patches are applied manually, rather than by > the regmap core. This application is wrapped in calls to > regcache_cache_bypass. However, this is dangerous as other threads may > be accessing the hardware at the same time as the pm_runtime operations > and if they do

Re: [PATCH] mfd: Add support for COMe-mBT10, COMe-cBT6 and COMe-cHL6 to Kontron PLD driver

2014-02-24 Thread Lee Jones
> This patch adds DMI system IDs for the Kontron modules COMe-mBT10, COMe-cBT6 > and COMe-cHL6 to the Kontron PLD driver. The list of supported products in > the module description is also updated. > > Signed-off-by: Michael Brunner > Acked-by: Christian Rauch > --- > drivers/mfd/Kconfig

Re: [PATCH] zram: support REQ_DISCARD

2014-02-24 Thread Jerome Marchand
On 02/24/2014 04:56 PM, Joonsoo Kim wrote: > 2014-02-25 0:15 GMT+09:00 Jerome Marchand : >> On 02/24/2014 04:02 PM, Joonsoo Kim wrote: >>> 2014-02-24 22:36 GMT+09:00 Jerome Marchand : On 02/24/2014 06:51 AM, Joonsoo Kim wrote: > zram is ram based block device and can be used by backend of

Re: [PATCH v2 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-02-24 Thread Ville Syrjälä
On Mon, Feb 24, 2014 at 09:11:43PM +0530, sagar.a.kam...@intel.com wrote: > From: Sagar Kamble > > With this patch we allow larger cursor planes of sizes 128x128 > and 256x256. > > v2: Added more precise check on size while setting cursor plane. > > Testcase: igt/kms_cursor_crc > Cc: Daniel

Re: [PATCH V2 4/5] idle: Move idle conditions in cpuidle_idle main function

2014-02-24 Thread Peter Zijlstra
On Mon, Feb 24, 2014 at 04:39:08PM +0100, Daniel Lezcano wrote: > >And when you do that; you can also push down the > >current_clr_polling_and_test() muck so it doesn't cover the actual > >cpuidle policy code. > > I am not getting it. Where do you suggest to move it ? A little something like so

Re: [RFCv1 4/4] mfd: twl4030-madc: Move driver to drivers/iio/adc

2014-02-24 Thread Lee Jones
> This is a driver for an A/D converter, which belongs into > drivers/iio/adc. > > Signed-off-by: Sebastian Reichel > --- > drivers/iio/adc/Kconfig| 10 + > drivers/iio/adc/Makefile | 1 + > drivers/iio/adc/twl4030-madc.c | 922 > + >

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