[PATCH 02/11] x86: code shrink in paranoid_exit

2015-01-14 Thread Denys Vlasenko
RESTORE_EXTRA_REGS + RESTORE_C_REGS looks small, but it's a lot of instructions (fourteen). Let's reuse them. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Oleg Nesterov CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Frederic Weisbecker CC: X86 ML CC: Alexei

[PATCH 04/11] x86: rename some macros and labels, no code changes

2015-01-14 Thread Denys Vlasenko
Rename LOAD_ARGS32 to RESTORE_REGS32 to match other RESTORE_* macros. The "ARGS" part was misleading anyway - we are restoring registers, not arguments. Similarly, rename [retint_]restore_args to [retint_]restore_c_regs: at these labels, we restore registers clobbered by C ABI; rename

[PATCH 01/11] x86: entry_64.S: always allocate complete "struct pt_regs"

2015-01-14 Thread Denys Vlasenko
64-bit code was using six stack slots less by not saving/restoring registers which are callee-preserved according to C ABI, and not allocating space for them. Only when syscall needed a complete "struct pt_regs", the complete area was allocated and filled in. As an additional twist, on interrupt

Re: [PATCH] xen/xtime: remove incorrect preemption enabled assert

2015-01-14 Thread Boris Ostrovsky
On 01/14/2015 04:34 PM, Imre Deak wrote: Signed-off-by: Imre Deak --- arch/x86/xen/time.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index f473d26..23019b4 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -458,8 +458,6 @@ void

Re: [PATCH_V4] dm9000: Add regulator and reset support to dm9000

2015-01-14 Thread David Miller
From: Zubair Lutfullah Kakakhel Date: Wed, 14 Jan 2015 10:36:17 + > + power = devm_regulator_get(dev, "vcc"); > + if (PTR_ERR(power) == -EPROBE_DEFER) > + return -EPROBE_DEFER; > + if (IS_ERR(power)) { > + dev_dbg(dev, "no regulator provided\n"); I know

Re: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Felipe Balbi
Hi, On Wed, Jan 14, 2015 at 04:41:23PM -0500, Alan Stern wrote: > > > > This is really, really odd. Register accesses are atomic, so the lock > > > > isn't really doing anything. Besides, you're calling > > > > dwc2_is_controller_alive() from within the IRQ handler, so IRQs are > > > > already

Re: net: prevent of emerging cross-namespace symlinks patches for 3.14

2015-01-14 Thread Miquel van Smoorenburg
On 14/01/15 22:07, Greg KH wrote: For networking patches, can you cc: netdev and get an ack from the networking maintainer for me to be able to apply them? Done, and sorry for the sta...@kernel.org bounce. Mike. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [RFC PATCH 5/5] audit: replace getname()/putname() hacks with reference counters

2015-01-14 Thread Paul Moore
On Wednesday, January 14, 2015 04:37:17 PM Richard Guy Briggs wrote: > On 15/01/08, Paul Moore wrote: > > In order to ensure that filenames are not released before the audit > > subsystem is done with the strings there are a number of hacks built > > into the fs and audit subsystems around

Re: [PATCH] drm/radeon/radeon_fb: Remove unused function

2015-01-14 Thread Alex Deucher
On Tue, Jan 13, 2015 at 2:02 PM, Rickard Strandqvist wrote: > Remove the function radeon_fbdev_total_size() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. thanks! Alex > --- >

Re: [PATCH] drm/radeon/rv515: Remove unused function

2015-01-14 Thread Alex Deucher
On Tue, Jan 13, 2015 at 1:55 PM, Rickard Strandqvist wrote: > Remove the function rv515_ring_start() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. thanks! Alex > --- >

Re: [PATCH] drm/radeon/radeon_i2c: Remove unused function

2015-01-14 Thread Alex Deucher
On Tue, Jan 13, 2015 at 2:09 PM, Rickard Strandqvist wrote: > Remove the function radeon_best_encoder() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. thanks! Alex > --- >

Re: [PATCH] gpu: drm: radeon: radeon_object: Remove unused function

2015-01-14 Thread Alex Deucher
On Sun, Jan 11, 2015 at 8:17 AM, Rickard Strandqvist wrote: > Remove the function radeon_bo_fbdev_mmap() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. thanks! Alex > --- >

[PATCH 0/4] toshiba_acpi: Add support for USB Sleep functions

2015-01-14 Thread Azael Avalos
The following patches add support to several USB Sleep functions found on newer Toshiba laptops, allowing to use th USB ports while the laptop is asleep or turned off. Azael Avalos (4): toshiba_acpi: Add support for USB Sleep and Charge function toshiba_acpi: Add support for USB Sleep

[PATCH] staging: davinci_vpfe: fix space prohibited before semicolon warning

2015-01-14 Thread Aya Mahfouz
This patch fixes the following checkpatch.pl warning: space prohibited before semicolon Signed-off-by: Aya Mahfouz --- v1: This patch applies to Greg's tree. drivers/staging/media/davinci_vpfe/dm365_ipipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/4] toshiba_acpi: Add support for USB Sleep functions under battery

2015-01-14 Thread Azael Avalos
Toshiba laptops supporting USB Sleep and Charge also come with a feature called "USB functions under battery", which what it does when enabled, is allows the USB Sleep functions when the computer is under battery power. This patch adds support to that function, creating a sysfs entry named

Re: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Alan Stern
On Wed, 14 Jan 2015, Felipe Balbi wrote: > > > This is really, really odd. Register accesses are atomic, so the lock > > > isn't really doing anything. Besides, you're calling > > > dwc2_is_controller_alive() from within the IRQ handler, so IRQs are > > > already disabled. > > > > Spinlocks

[PATCH 4/4] toshiba_acpi: Add support for USB Sleep and Music

2015-01-14 Thread Azael Avalos
Newer Toshiba laptops now come with a feature called USB Sleep and Charge, where the laptop speakers remain powered and the line-in jack is used to connect an external device to use the laptop speakers. This patchs adds support to such feature, by creating a sysfs entry named "usb_sleep_music",

[PATCH 1/4] toshiba_acpi: Add support for USB Sleep and Charge function

2015-01-14 Thread Azael Avalos
Newer Toshiba models now come with a feature called Sleep and Charge, where the computer USB ports remain powered when the computer is asleep or turned off. This patch adds support to such feature, creating a sysfs entry called "usb_sleep_charge" to set the desired charging mode or to disable it.

[PATCH 3/4] toshiba_acpi: Add support for USB Rapid Charge

2015-01-14 Thread Azael Avalos
Newer Toshiba laptops equipped with USB 3.0 ports now have the functionality of rapid charging devices connected to their USB hubs. This patch adds support to use such feature by creating a sysfs entry named "usb_rapid_charge", accepting only two values, 0 to disable and one to enable, however,

Re: [GIT PULL] please pull file-locking related bugfix for v3.19 (and v3.18 stable)

2015-01-14 Thread Linus Torvalds
On Thu, Jan 15, 2015 at 1:46 AM, Jeff Layton wrote: > > git://git.samba.org/jlayton/linux.git > 52d304eb4eaced9ad04b64ba7cd6ceb5153bbf18 Ugh. What are you doing? Don't send me raw hex numbers of the commit. There's a tag there, and it has the name tags/locks-3.19-1, and has your signature on

RE: [PATCH RESEND] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories

2015-01-14 Thread Peter Rosin
Nicolas Ferre wrote: > Le 14/01/2015 14:20, Peter Rosin a écrit : > > From: Peter Rosin > > > > The DDRSDR controller (on the ATSAMA5D31) fails miserably to put > > LPDDR1 memories in self-refresh. Force the controller to think it has > > DDR2 memories during the self-refresh period, as the DDR2

Re: [RFC PATCH 5/5] audit: replace getname()/putname() hacks with reference counters

2015-01-14 Thread Richard Guy Briggs
On 15/01/08, Paul Moore wrote: > In order to ensure that filenames are not released before the audit > subsystem is done with the strings there are a number of hacks built > into the fs and audit subsystems around getname() and putname(). To > say these hacks are "ugly" would be kind. > > This

Re: [PATCH] netdevice: Add missing parentheses in macro

2015-01-14 Thread David Miller
From: Benjamin Poirier Date: Wed, 14 Jan 2015 16:52:35 +0900 > For example, one could conceivably call > for_each_netdev_in_bond_rcu(condition ? bond1 : bond2, slave) > and get an unexpected result. > > Signed-off-by: Benjamin Poirier Applied. -- To unsubscribe from this list: send the

[PATCH] xen/xtime: remove incorrect preemption enabled assert

2015-01-14 Thread Imre Deak
Since commit 250a1ac685f147d4f4b2f132cfaffcce1a6792c1 Author: Thomas Gleixner Date: Fri Dec 5 08:48:29 2014 + x86, smpboot: Remove pointless preempt_disable() in native_smp_prepare_cpus() the assert in xen_setup_cpu_clockevents() is incorrect, causing the following BUG: [

[PATCH] kernel: avoid overflow in cmp_range

2015-01-14 Thread Louis Langholtz
Avoid overflow possibility. Signed-off-by: Louis Langholtz --- diff --git a/kernel/range.c b/kernel/range.c index 322ea8e..06d9ee7 100644 --- a/kernel/range.c +++ b/kernel/range.c @@ -113,12 +113,16 @@ static int cmp_range(const void *x1, const void *x2) { const struct range *r1 = x1;

Re: [RFC PATCH 4/5] audit: fix filename matching in __audit_inode() and __audit_inode_child()

2015-01-14 Thread Richard Guy Briggs
On 15/01/08, Paul Moore wrote: > In all likelihood there were some subtle, and perhaps not so subtle, > bugs with filename matching in audit_inode() and audit_inode_child() > for some time, however, recent changes to the audit filename code have > definitely broken the filename matching code. The

Re: [PATCH 1/2] fixup! net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread Xander Huff
On 1/14/2015 3:09 PM, David Miller wrote: As I mentioned, this won't do. I've already applied your original patches to net-next, therefore you will have to submit fixups relative to that. These fixup commits are relative to an updated net-next, specifically "237de6e Merge branch 'hip04'".

Re: [RFC][PATCH] procfs: Add /proc//mapped_files

2015-01-14 Thread Cyrill Gorcunov
On Wed, Jan 14, 2015 at 12:46:53PM -0800, Calvin Owens wrote: > > > > > > Restriction to CAP_SYSADMIN for follow_link is undertansble, but why do we > > > restrict readdir and readlink? > > > > We didn't think this functionality might be needed someone but us (criu > > camp), > > so that the

Re: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Felipe Balbi
Hi, On Wed, Jan 14, 2015 at 03:06:39PM -0500, Alan Stern wrote: > > > This patch fixes bug described here: > > > https://lkml.org/lkml/2014/12/22/185 > > > > > > Signed-off-by: Robert Baldyga > > > --- > > > > > > Changelog: > > > > > > v2: > > > - fixed comment from Paul Zimmerman > > > > >

Re: net: prevent of emerging cross-namespace symlinks patches for 3.14

2015-01-14 Thread Greg KH
On Wed, Jan 14, 2015 at 09:32:01PM +0100, Miquel van Smoorenburg wrote: > When running 'lxc' on the latest -stable kernel, 3.14.28, I'm seeing these > errors: > > Jan 14 17:47:16 lxc2 kernel: [ 10.704890] WARNING: CPU: 0 PID: 3209 at > fs/sys > fs/dir.c:52 sysfs_warn_dup+0x8c/0xb0() > Jan 14

Re: [PATCH 2/2] net/macb: improved ethtool statistics support

2015-01-14 Thread David Miller
From: Nicolas Ferre Date: Wed, 14 Jan 2015 16:53:25 +0100 > I see some issues with this patch: can you hold it a little bit please > (aka NAK)? I already applied these patches last night to my net-next tree, so relative fixups against that will need to be submitted. Submitting new versions of

Re: [PATCH 1/2] fixup! net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread David Miller
As I mentioned, this won't do. I've already applied your original patches to net-next, therefore you will have to submit fixups relative to that. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [RFC PATCH 3/5] audit: enable filename recording via getname_kernel()

2015-01-14 Thread Richard Guy Briggs
On 15/01/08, Paul Moore wrote: > Enable recording of filenames in getname_kernel() and remove the > kludgy workaround in __audit_inode() now that we have proper filename > logging for kernel users. > > Signed-off-by: Paul Moore Reviewed-by: Richard Guy Briggs > --- > fs/namei.c |1

[patch] mcb: request_mem_region() returns NULL on error

2015-01-14 Thread Dan Carpenter
The code here is checking for IS_ERR() when request_mem_region() only returns NULL on error and never an ERR_PTR. Signed-off-by: Dan Carpenter diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c index 5e1bd5d..2d6524a 100644 --- a/drivers/mcb/mcb-pci.c +++ b/drivers/mcb/mcb-pci.c @@

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Alexandre Belloni
Hi, (Adding Arnd in Cc) On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > >>> - /* AT91RM9200 SDRAM low-power mode cannot be used with self-refresh. */ > >>> - if (cpu_is_at91rm9200()) > >>> + at91_pm_data.memctrl = AT91_MEMCTRL_SDRAMC; > >>> + > >>> + if

Re: [PATCH v2 1/4] perf tools: Fix segfault for symbol annotation on TUI

2015-01-14 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 14, 2015 at 07:57:49AM -0700, David Ahern escreveu: > On 1/14/15 4:18 AM, Namhyung Kim wrote: > > >@@ -129,8 +124,7 @@ static inline struct sym_hist > >*annotation__histogram(struct annotation *notes, i > > > > static inline struct annotation *symbol__annotation(struct symbol *sym)

Re: [RFC][PATCH] procfs: Add /proc//mapped_files

2015-01-14 Thread Calvin Owens
On Wednesday 01/14 at 15:53 +0100, Rasmus Villemoes wrote: > On Wed, Jan 14 2015, Siddhesh Poyarekar wrote: > > > On 14 January 2015 at 19:43, Rasmus Villemoes > > wrote: > >> Just thinking out loud: Could one simply mark a VMA as being used for > >> stack during the clone call (is there room

Re: [RFC PATCH 2/5] fs: create proper filename objects using getname_kernel()

2015-01-14 Thread Richard Guy Briggs
On 15/01/08, Paul Moore wrote: > There are several areas in the kernel that create temporary filename > objects using the following pattern: > > int func(const char *name) > { > struct filename *file = { .name = name }; > ... > return 0; >

Re: [RFC PATCH 1/5] fs: rework getname_kernel to handle up to PATH_MAX sized filenames

2015-01-14 Thread Richard Guy Briggs
On 15/01/08, Paul Moore wrote: > In preparation for expanded use in the kernel, make getname_kernel() > more useful by allowing it to handle any legal filename length. > > Signed-off-by: Paul Moore Reviewed-by: Richard Guy Briggs > --- > fs/namei.c | 34 -- >

Re: [PATCH 1/2] net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread David Miller
HTML encoded emails will be rejected by the list server, and also completely not read by me. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

[PATCH] lib/string.c: Improve strrchr

2015-01-14 Thread Rasmus Villemoes
Instead of potentially passing over the string twice in case c is not found, just keep track of the last occurrence. According to bloat-o-meter, this also cuts the generated code by a third (54 vs 36 bytes). Oh, and we get rid of those 7-space indented lines. Signed-off-by: Rasmus Villemoes ---

[PATCH v7 2/4] Documentation: dt: add the omap hwspinlock bindings document

2015-01-14 Thread Suman Anna
HwSpinlock IP is present only on OMAP4 and other newer SoCs, which are all device-tree boot only. This patch adds the DT bindings information for OMAP hwspinlock module. Cc: Rob Herring Signed-off-by: Suman Anna --- v7: Added information about hwlock-base-id and updated example to use it

[PATCH v7 3/4] hwspinlock/core: add common OF helpers

2015-01-14 Thread Suman Anna
This patch adds two new OF helper functions for platform implementations and one new API to use/request locks from a hwspinlock device instantiated through a device-tree blob. 1. The of_hwspin_lock_get_num_locks() is a common OF helper function to read the 'hwlock-num-locks' property. 2. The

[PATCH v7 4/4] hwspinlock/omap: add support for dt nodes

2015-01-14 Thread Suman Anna
HwSpinlock IP is present only on OMAP4 and other newer SoCs, which are all device-tree boot only. This patch adds the base support for parsing the DT nodes, and removes the code dealing with the traditional platform device instantiation. Signed-off-by: Suman Anna [t...@atomide.com: ack for

[PATCH v7 0/4] hwspinlock core & omap dt support

2015-01-14 Thread Suman Anna
Hi Ohad, This is an updated version of the hwspinlock dt support series, rebased onto v3.19-rc3 and mainly addresses the continued discussion on the need to maintain a list of registered spinlock banks [1]. I have removed this patch as per your wish, and as a result the burden of the spinlock

[PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-14 Thread Suman Anna
This patch adds the generic common bindings used to represent a hwlock device and use/request locks in a device-tree build. All the platform-specific hwlock driver implementations need the number of locks and associated base id for registering the locks present within the device with the driver

Re: [PATCH 1/2] ARM: entry-common: fix forgotten set of thread_info->syscall

2015-01-14 Thread Kees Cook
On Tue, Jan 13, 2015 at 12:35 AM, Roman Peniaev wrote: > On Tue, Jan 13, 2015 at 3:39 AM, Will Deacon wrote: >> On Sun, Jan 11, 2015 at 02:32:30PM +, Roman Pen wrote: >>> thread_info->syscall is used only for ptrace, but syscall number >>> is also used by syscall_get_nr and returned to

Re: [RFC][PATCH] procfs: Add /proc//mapped_files

2015-01-14 Thread Calvin Owens
On Wednesday 01/14 at 18:33 +0300, Cyrill Gorcunov wrote: > On Wed, Jan 14, 2015 at 05:25:01PM +0200, Kirill A. Shutemov wrote: > ... > > > > > > This gives lsof and suchlike a way to determine the pathnames of files > > > mapped into a process without incurring the O(N^2) behavior of the > > >

Re: [PATCH] driver core: access dev->driver under dev->mutex in dev_uevent

2015-01-14 Thread Greg Kroah-Hartman
On Wed, Jan 14, 2015 at 11:40:54PM +0530, ashishsangw...@gmail.com wrote: > From: Ashish Sangwan > > We have hit a race condition while parallely accessing device's uevent > and rmmoding device's driver. How are you doing that? By reading the uevent file and removing the device? Removing a

Re: [PATCH] char: Added support for u-blox 6 i2c gps driver

2015-01-14 Thread Greg Kroah-Hartman
On Wed, Jan 14, 2015 at 10:39:04AM -0800, Felipe Tonello wrote: > The thing is that: I wrote this driver to work with only one gps > module, because that's my configuration here. I cannot really test > multiple i2c gps at the same time. If you guys really want a driver > that works for multiple

net: prevent of emerging cross-namespace symlinks patches for 3.14

2015-01-14 Thread Miquel van Smoorenburg
When running 'lxc' on the latest -stable kernel, 3.14.28, I'm seeing these errors: Jan 14 17:47:16 lxc2 kernel: [ 10.704890] WARNING: CPU: 0 PID: 3209 at fs/sys fs/dir.c:52 sysfs_warn_dup+0x8c/0xb0() Jan 14 17:47:16 lxc2 kernel: [ 10.704892] sysfs: cannot create duplicate filename

Re: [PATCH v3 3/5] iio: common: ssp_sensors: Add sensorhub iio commons

2015-01-14 Thread Jonathan Cameron
On 13/01/15 16:03, Karol Wrona wrote: > [...] >>> +EXPORT_SYMBOL(ssp_common_setup_buffer); >>> diff --git a/drivers/iio/common/ssp_sensors/ssp_iio_sensor.h >>> b/drivers/iio/common/ssp_sensors/ssp_iio_sensor.h >>> new file mode 100644 >>> index 000..4b79be0 >>> --- /dev/null >>> +++

Re: [PATCH 3.19 v2 2/3] x86, mpx: Short-circuit the instruction decoder for unexpected opcodes

2015-01-14 Thread Andy Lutomirski
On Wed, Jan 14, 2015 at 11:43 AM, Dave Hansen wrote: > On 01/12/2015 03:57 PM, Andy Lutomirski wrote: >> - /* >> - * We only _really_ need to decode bndcl/bndcn/bndcu >> - * Error out on anything else. >> - */ >> - if (insn->opcode.bytes[0] != 0x0f)

Re: [PATCH] block: pass correct prot_buf pointer to integrity metadata processing function

2015-01-14 Thread Martin K. Petersen
> "Sam" == Sam Bradshaw writes: Hey Sam, Sam> The prot_buf pointer passed to the generate/verify functions is Sam> incorrect for the second and subsequent range, making it impossible Sam> to verify the guard tag. The patch correctly increments the Sam> prot_buf pointer by the tuple size

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Boris Brezillon
Hi Jean-Christophe, On Wed, 14 Jan 2015 20:14:12 +0100 Jean-Christophe PLAGNIOL-VILLARD wrote: > On 22:23 Mon 12 Jan , Alexandre Belloni wrote: > > Store SoC differences in a struct to remove cpu_is_* usage. > > > > Signed-off-by: Alexandre Belloni > > --- > > arch/arm/mach-at91/pm.c |

[PATCH 2/2] fixup! net/macb: improved ethtool statistics support

2015-01-14 Thread Xander Huff
Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.c | 25 +++-- drivers/net/ethernet/cadence/macb.h | 203 +--- 2 files changed, 68 insertions(+), 160 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c

[PATCH 1/2] fixup! net/macb: Adding comments to various #defs to make interpretation easier

2015-01-14 Thread Xander Huff
Signed-off-by: Xander Huff --- drivers/net/ethernet/cadence/macb.h | 107 +--- 1 file changed, 26 insertions(+), 81 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 378b218..d7b93d0 100644 ---

Re: [PATCH v8 9/11] xfstests: generic/043: Test multiple fallocate insert/collapse range calls

2015-01-14 Thread Brian Foster
On Wed, Jan 14, 2015 at 01:05:24AM +0900, Namjae Jeon wrote: > From: Namjae Jeon > > This testcase(043) tries to test finsert range a single alternate block > mulitiple times and test merge code of collase range. > > Signed-off-by: Namjae Jeon > Signed-off-by: Ashish Sangwan > Cc: Brian

Re: [PATCH v8 11/11] xfstests: fsx: Add fallocate insert range operation

2015-01-14 Thread Brian Foster
On Wed, Jan 14, 2015 at 01:05:26AM +0900, Namjae Jeon wrote: > From: Namjae Jeon > > This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. > > Signed-off-by: Namjae Jeon > Signed-off-by: Ashish Sangwan > Cc: Brian Foster > --- > Changelog > v8: > - create TRIM_OFF() and

Re: [RFC][PATCH 6/9] gen_initramfs_list.sh: include xattrs

2015-01-14 Thread Paul Moore
On Tuesday, January 13, 2015 10:23:23 PM Mimi Zohar wrote: > I would assume only 'security.evm' is not portable as it attempts to > tightly bind the file metadata to the file data. Casey? Paul? [NOTE: Added the SELinux mailing list to the CC line.] The SELinux xattr should be portable assuming

Re: [PATCH net-next] r8152: replace tasklet with NAPI

2015-01-14 Thread David Miller
From: Hayes Wang Date: Mon, 12 Jan 2015 12:06:23 +0800 > Replace tasklet with NAPI. > > Add rx_queue to queue the remaining rx packets if the number of the > rx packets is more than the request from poll(). > > Signed-off-by: Hayes Wang Applied, thanks. -- To unsubscribe from this list: send

Re: [PATCHv2 2/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-14 Thread Mark Brown
On Mon, Jan 12, 2015 at 01:14:00PM +1000, Ken Wilson wrote: > +- num-cs : The total number of chip selects used by this platform. > + If unset, this defaults to 1. So, this is intended to be the number of hardware chip selects that can be configured but the first commit mentioned

Re: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Alan Stern
On Wed, 14 Jan 2015, Felipe Balbi wrote: > On Wed, Jan 14, 2015 at 07:45:31AM +0100, Robert Baldyga wrote: > > This patch fixes bug described here: > > https://lkml.org/lkml/2014/12/22/185 > > > > Signed-off-by: Robert Baldyga > > --- > > > > Changelog: > > > > v2: > > - fixed comment from

Re: [PATCH v3 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-14 Thread Ray Jui
On 1/13/2015 11:51 PM, Uwe Kleine-König wrote: > Hello, > > On Tue, Jan 13, 2015 at 06:14:17PM -0800, Ray Jui wrote: + irq = platform_get_irq(pdev, 0); + if (irq < 0) { >>> irq == 0 should be handled as error, too. >>> >> Ah. I thought zero is a valid global interrupt number, and I

Re: [PATCH 5/5] pstore: selinux: add security in-core xattr support for pstore and debugfs

2015-01-14 Thread Paul Moore
On Tuesday, January 13, 2015 02:33:18 PM Mark Salyzyn wrote: > - add "pstore" and "debugfs" to list of in-core exceptions > - change fstype checks to boolean equation > - change from strncmp to strcmp for checking > > Signed-off-by: Mark Salyzyn > --- > security/selinux/hooks.c | 25

[PATCH] arm: mm: remove unused ioremap_page()

2015-01-14 Thread Vitaly Andrianov
This patch removes unused ioremap_page(). Signed-off-by: Vitaly Andrianov --- arch/arm/include/asm/mach/map.h | 5 - arch/arm/mm/ioremap.c | 8 2 files changed, 13 deletions(-) diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h index

Re: [PATCH] next: drm/atomic: Use copy_from_user to copy 64 bit data from user space

2015-01-14 Thread Daniel Vetter
On Mon, Jan 12, 2015 at 09:12:17PM -0800, Guenter Roeck wrote: > Copying 64 bit data from user space using get_user is not supported > on all architectures, and may result in the following build error. > > ERROR: "__get_user_bad" [drivers/gpu/drm/drm.ko] undefined! > > Avoid the problem by using

[ANNOUNCE] util-linux v2.26-rc1

2015-01-14 Thread Karel Zak
The util-linux release v2.26-rc1 is available at ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/ Feedback and bug reports, as always, are welcomed. Karel Util-linux 2.26 Release Notes = This version provides completely new sfdisk(8) command,

[PATCH] block: pass correct prot_buf pointer to integrity metadata processing function

2015-01-14 Thread Sam Bradshaw
The prot_buf pointer passed to the generate/verify functions is incorrect for the second and subsequent range, making it impossible to verify the guard tag. The patch correctly increments the prot_buf pointer by the tuple size for each pass. Signed-off-by: Sam Bradshaw --- diff --git

Re: [PATCH] RTC: RK808: fix the rtc time reading issue

2015-01-14 Thread Sonny Rao
On Wed, Jan 14, 2015 at 10:36 AM, Doug Anderson wrote: > Sonny, > >> Chris, it looks like you swapped the set and the clear of this bit, >> and you're relying on the fact that the i2c transaction takes a >> certain amount of time after the RTC_GET_TIME BIT is set. I'm not >> sure how long it

Re: [PATCH 3.19 v2 2/3] x86, mpx: Short-circuit the instruction decoder for unexpected opcodes

2015-01-14 Thread Dave Hansen
On 01/12/2015 03:57 PM, Andy Lutomirski wrote: >>> >> - /* >>> >> - * We only _really_ need to decode bndcl/bndcn/bndcu >>> >> - * Error out on anything else. >>> >> - */ >>> >> - if (insn->opcode.bytes[0] != 0x0f) >>> >> - goto bad_opcode; >>> >> - if

Re: [PATCH v10] iopoll: Introduce memory-mapped IO polling macros

2015-01-14 Thread Mitchel Humpherys
On Tue, Dec 16 2014 at 01:45:27 AM, Will Deacon wrote: > On Mon, Dec 15, 2014 at 11:47:23PM +, Mitchel Humpherys wrote: >> From: Matt Wagantall >> >> It is sometimes necessary to poll a memory-mapped register until its value >> satisfies some condition. Introduce a family of convenience

Re: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Felipe Balbi
On Wed, Jan 14, 2015 at 07:45:31AM +0100, Robert Baldyga wrote: > This patch fixes bug described here: > https://lkml.org/lkml/2014/12/22/185 > > Signed-off-by: Robert Baldyga > --- > > Changelog: > > v2: > - fixed comment from Paul Zimmerman > > v1: https://lkml.org/lkml/2015/1/13/186 > >

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:23 Mon 12 Jan , Alexandre Belloni wrote: > Store SoC differences in a struct to remove cpu_is_* usage. > > Signed-off-by: Alexandre Belloni > --- > arch/arm/mach-at91/pm.c | 54 > ++--- > 1 file changed, 33 insertions(+), 21 deletions(-) >

[PATCH v3 0/2] x86/arm64: add xenconfig

2015-01-14 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This v3 addresses Stefano's feedback from the v2 series, namely moving PCI stuff to x86 as its all x86 specific and also just removing the CONFIG_TCG_XEN=m from the general config. To be clear the changes from the v2 series are below. Luis R. Rodriguez (2): x86,

[PATCH v3 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

2015-01-14 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This lets you build a kernel which can support xen dom0 or xen guests by just using: make xenconfig on both x86 and arm64 kernels. This also splits out the options which are available currently to be built with x86 and 'make ARCH=arm64' under a shared config.

[PATCH v3 1/2] x86, platform, xen, kconfig: clarify kvmconfig is for kvm

2015-01-14 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" We'll be adding options for xen as well. Cc: Josh Triplett Cc: Borislav Petkov Cc: Pekka Enberg Cc: David Rientjes Cc: Michal Marek Cc: Randy Dunlap Cc: penb...@kernel.org Cc: levinsasha...@gmail.com Cc: mtosa...@redhat.com Cc: fengguang...@intel.com Cc: David

Re: [PATCH v2 2/5] irqchip: Add DT binding doc for dumb demuxer chips

2015-01-14 Thread Jason Cooper
On Wed, Jan 14, 2015 at 08:08:09PM +0100, Boris Brezillon wrote: > Hi Jason, > > On Wed, 14 Jan 2015 13:56:19 -0500 > Jason Cooper wrote: > > > Hey Boris, > > > > On Tue, Jan 13, 2015 at 09:52:07PM +0100, Boris Brezillon wrote: > > > On Tue, 13 Jan 2015 14:00:50 -0500 Jason Cooper > > >

Re: [alsa-devel][PATCH v2 2/2] ASoC: wm8960: Let wm8960 driver configure its bit clock and frame clock

2015-01-14 Thread Mark Brown
On Wed, Jan 07, 2015 at 03:31:45PM +0800, Zidan Wang wrote: > + for (i = 0; i < ARRAY_SIZE(dac_divs); ++i) { > + if (wm8960->sysclk == lrclk * dac_divs[i]) { > + for (j = 0; j < ARRAY_SIZE(bclk_divs); ++j) { > + if (wm8960->sysclk ==

[tip:perf/core] perf: Avoid horrible stack usage

2015-01-14 Thread tip-bot for Peter Zijlstra (Intel)
Commit-ID: 86038c5ea81b519a8a1fcfcd5e4599aab0cdd119 Gitweb: http://git.kernel.org/tip/86038c5ea81b519a8a1fcfcd5e4599aab0cdd119 Author: Peter Zijlstra (Intel) AuthorDate: Tue, 16 Dec 2014 12:47:34 +0100 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:11:45 +0100 perf: Avoid

[tip:locking/core] softirq/preempt: Add missing current-> preempt_disable_ip update

2015-01-14 Thread tip-bot for Heiko Carstens
Commit-ID: 0f1ba9a2cea52896448ef4e14a4cb1880b8e5bee Gitweb: http://git.kernel.org/tip/0f1ba9a2cea52896448ef4e14a4cb1880b8e5bee Author: Heiko Carstens AuthorDate: Wed, 7 Jan 2015 10:04:41 +0100 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:16:21 +0100 softirq/preempt: Add

[tip:locking/core] locking/mcs: Better differentiate between MCS variants

2015-01-14 Thread tip-bot for Davidlohr Bueso
Commit-ID: d84b6728c54dcf73bcef3e3f7cf6767e2d224e39 Gitweb: http://git.kernel.org/tip/d84b6728c54dcf73bcef3e3f7cf6767e2d224e39 Author: Davidlohr Bueso AuthorDate: Tue, 6 Jan 2015 11:45:07 -0800 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:07:32 +0100 locking/mcs: Better

[tip:locking/core] locking/osq: No need for load/ acquire when acquire-polling

2015-01-14 Thread tip-bot for Davidlohr Bueso
Commit-ID: 036cc30c6b6af1cd42de6c34c4461f17da01cbf7 Gitweb: http://git.kernel.org/tip/036cc30c6b6af1cd42de6c34c4461f17da01cbf7 Author: Davidlohr Bueso AuthorDate: Tue, 6 Jan 2015 11:45:09 -0800 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:16:20 +0100 locking/osq: No need for

Re: [alsa-devel][PATCH v2 1/2] ASoC: wm8960: Let wm8960 codec driver manage its own MCLK

2015-01-14 Thread Mark Brown
On Wed, Jan 07, 2015 at 03:31:44PM +0800, Zidan Wang wrote: > From: Zidan Wang > > When we want to use wm8960 codec, we should enable its MCLK in machine driver. > It's reasonable for wm8960 codec driver to manage its own MCLK. Applied, thanks. signature.asc Description: Digital signature

[tip:locking/core] locking/mutex: Introduce ww_mutex_set_context_slowpath()

2015-01-14 Thread tip-bot for Davidlohr Bueso
Commit-ID: 4bd19084faa61a8c68586e74f03f5776179f65c2 Gitweb: http://git.kernel.org/tip/4bd19084faa61a8c68586e74f03f5776179f65c2 Author: Davidlohr Bueso AuthorDate: Tue, 6 Jan 2015 11:45:06 -0800 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:07:30 +0100 locking/mutex: Introduce

[tip:locking/core] locking/mutex: Checking the stamp is WW only

2015-01-14 Thread tip-bot for Davidlohr Bueso
Commit-ID: 63dc47e956b464e0ed3282f6e70974eebf850180 Gitweb: http://git.kernel.org/tip/63dc47e956b464e0ed3282f6e70974eebf850180 Author: Davidlohr Bueso AuthorDate: Tue, 6 Jan 2015 11:45:04 -0800 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:07:21 +0100 locking/mutex: Checking

[tip:locking/core] locking/mutex: Move MCS related comments to proper location

2015-01-14 Thread tip-bot for Davidlohr Bueso
Commit-ID: e42f678a0237f84f0004fbaf0fad0b844751eadd Gitweb: http://git.kernel.org/tip/e42f678a0237f84f0004fbaf0fad0b844751eadd Author: Davidlohr Bueso AuthorDate: Tue, 6 Jan 2015 11:45:05 -0800 Committer: Ingo Molnar CommitDate: Wed, 14 Jan 2015 15:07:22 +0100 locking/mutex: Move MCS

Re: [PATCH 02/10] PCI, x86: clip firmware assigned resource under parent bridge's

2015-01-14 Thread Yinghai Lu
On Wed, Jan 14, 2015 at 8:52 AM, Bjorn Helgaas wrote: > On Mon, Jan 12, 2015 at 11:23:12AM -0800, Yinghai Lu wrote: > There's a lot of duplicated code in these patches. Is it possible to > factor this out a bit, e.g., something like this? > > int pci_claim_bridge_resource(struct pci_dev *dev,

Re: [PATCH 0/5] MN10300: Remove dead code depending on DEPRECATED

2015-01-14 Thread Paul Bolle
el/gdb-io-ttysm-low.S > delete mode 100644 arch/mn10300/kernel/gdb-io-ttysm.c > delete mode 100644 arch/mn10300/kernel/gdb-low.S > delete mode 100644 arch/mn10300/kernel/gdb-stub.c This series still applies on top of next-20150114. Neither of you ever bothered to send even the briefe

Re: [PATCH] regulator: Update documentation after renaming function argument

2015-01-14 Thread Mark Brown
On Mon, Jan 12, 2015 at 09:01:39AM +0100, Krzysztof Kozlowski wrote: > Update documentation for regulator_register() function after renaming > its argument. Applied, thanks. signature.asc Description: Digital signature

[PATCH] VMCI: Fix two UVA mapping bugs

2015-01-14 Thread jhansen
From: Jorgen Hansen (this is a resend of this patch. Originally sent last year, but post appears to have been lost) This change fixes two bugs in the VMCI host driver related to mapping the notify boolean from user space into kernel space: - the actual UVA was rounded up to the next page

Re: [RFC PATCH 08/11] x86,fpu: restore user FPU state lazily after __kernel_fpu_end

2015-01-14 Thread Oleg Nesterov
On 01/14, Oleg Nesterov wrote: > > On 01/11, r...@redhat.com wrote: > > > > --- a/arch/x86/kernel/i387.c > > +++ b/arch/x86/kernel/i387.c > > @@ -89,13 +89,11 @@ void __kernel_fpu_end(void) > > if (use_eager_fpu()) { > > /* > > * For eager fpu, most the time,

Re: [PATCH v2 2/5] irqchip: Add DT binding doc for dumb demuxer chips

2015-01-14 Thread Boris Brezillon
Hi Jason, On Wed, 14 Jan 2015 13:56:19 -0500 Jason Cooper wrote: > Hey Boris, > > On Tue, Jan 13, 2015 at 09:52:07PM +0100, Boris Brezillon wrote: > > On Tue, 13 Jan 2015 14:00:50 -0500 Jason Cooper > > wrote: > > > On Tue, Jan 13, 2015 at 07:46:18PM +0100, Boris Brezillon wrote: > > > > Add

RE: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Paul Zimmerman
> From: Robert Baldyga [mailto:r.bald...@samsung.com] > Sent: Tuesday, January 13, 2015 10:46 PM > > This patch fixes bug described here: > https://lkml.org/lkml/2014/12/22/185 > > Signed-off-by: Robert Baldyga Although I don't understand *why* this fixes Robert's issue, it's certainly a

Re: [PATCH v3] ASoC: wm8904: fix runtime warning

2015-01-14 Thread Mark Brown
On Tue, Jan 13, 2015 at 06:05:31PM +0800, Bo Shen wrote: > Correct the path name for mux to get rid of the following warning: Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-14 Thread Pantelis Antoniou
Hi Jason, > On Jan 14, 2015, at 20:12 , Jason Gunthorpe > wrote: > > On Wed, Jan 14, 2015 at 04:06:17PM +, One Thousand Gnomes wrote: > >> and I think you effectively have the user usage covered here for such >> things. It much like GPIO pins - we can describe them but we can also >>

[PATCH] toshiba_acpi: Change sci_open function return value

2015-01-14 Thread Azael Avalos
Some Toshiba laptops have "poorly implemented" SCI calls on their BIOSes and are not checking for sci_{open, close} calls, therefore, the sci_open function is failing and making some of the supported features unavailable (kbd backlight, touchpad and illumination). This patch changes the default

Re: [PATCH] Asoc: sam9x5_wm8731: depend on ARCH_AT91 instead of SOC_AT91SAM9X5

2015-01-14 Thread Mark Brown
On Tue, Jan 13, 2015 at 01:27:26PM +0100, Alexandre Belloni wrote: > The SOC_AT91SAM9X5 option is going to be removed, only depend on ARCH_AT91 > like > for the other drivers. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH v2 2/5] irqchip: Add DT binding doc for dumb demuxer chips

2015-01-14 Thread Jason Cooper
Hey Boris, On Tue, Jan 13, 2015 at 09:52:07PM +0100, Boris Brezillon wrote: > On Tue, 13 Jan 2015 14:00:50 -0500 Jason Cooper wrote: > > On Tue, Jan 13, 2015 at 07:46:18PM +0100, Boris Brezillon wrote: > > > Add documentation for the dumb demuxer. > > > > > > Signed-off-by: Boris Brezillon > >

Re: EFI mixed mode + perf = rampant triple faults

2015-01-14 Thread Andy Lutomirski
On Wed, Jan 14, 2015 at 10:47 AM, Borislav Petkov wrote: > On Wed, Jan 14, 2015 at 10:38:25AM -0800, Andy Lutomirski wrote: >> That's not a real MCE, though -- it happens synchronously instead of > > MCE can be synchronous in a sense too, as a result of executing an insn, > for example, i.e.,

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