Re: [PATCH] net: phy: micrel: disable NAND-tree for KSZ8021,KSZ8031,KSZ8051,KSZ8081

2015-02-14 Thread David Miller
From: Sylvain Rochet sylvain.roc...@finsecur.com Date: Fri, 13 Feb 2015 21:35:33 +0100 NAND-tree is used to check wiring between MAC and PHY using NAND gates on the PHY side, hence the name. NAND-tree initial status is latched at reset by probing the IRQ pin. However some devices are

Re: [PATCH V4] x86 spinlock: Fix memory corruption on completing completions

2015-02-14 Thread Raghavendra K T
On 02/13/2015 09:02 PM, Oleg Nesterov wrote: On 02/13, Raghavendra K T wrote: @@ -164,7 +161,7 @@ static inline int arch_spin_is_locked(arch_spinlock_t *lock) { struct __raw_tickets tmp = READ_ONCE(lock-tickets); - return tmp.tail != tmp.head; + return tmp.tail !=

Re: how to optimize virtio-vhost in 10G net

2015-02-14 Thread Jason Wang
On Sun, Feb 15, 2015 at 3:30 PM, Ding Xiao ssdxiaod...@gmail.com wrote: I am test virtio-vhost in 10G environment host info cpu E2680@2.7GHz memory 16G network intel 82599BE os centos 7 VM info cpu 4 memory 4G network using virtio vhost os centos 7 I using pktgen to send udp package, the

[PATCH 1/2] virtio_pci_modern: type-safe io accessors

2015-02-14 Thread Michael S. Tsirkin
The spec is very clear on this: 4.1.3.1 Driver Requirements: PCI Device Layout The driver MUST access each field using the “natural” access method, i.e. 32-bit accesses for 32-bit fields, 16-bit accesses for 16-bit fields and 8-bit accesses for 8-bit fields. Add type-safe wrappers to prevent

[PATCH 2/2] virtio_pci_modern: switch to type-safe io accessors

2015-02-14 Thread Michael S. Tsirkin
As Rusty noted, we were accessing queue_enable with an incorrect width. Switch to type-safe accessors so we don't make this mistake again in the future. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/virtio/virtio_pci_modern.c | 83 +++--- 1 file

Re: [PATCH RFC v3 4/7] epoll: Add implementation for epoll_ctl_batch

2015-02-14 Thread Fam Zheng
On Fri, 02/13 19:06, Dan Rosenberg wrote: + if (ncmds = 0 || !cmds) + return -EINVAL; + cmd_size = sizeof(struct epoll_ctl_cmd) * ncmds; + kcmds = kmalloc(cmd_size, GFP_KERNEL); You should probably fix the integer overflow in the calculation of the cmd_size variable,

Re: [PATCH V5] x86 spinlock: Fix memory corruption on completing completions

2015-02-14 Thread Raghavendra K T
On 02/15/2015 11:25 AM, Raghavendra K T wrote: Paravirt spinlock clears slowpath flag after doing unlock. As explained by Linus currently it does: prev = *lock; add_smp(lock-tickets.head, TICKET_LOCK_INC); /* add_smp() is a full mb() */

how to optimize virtio-vhost in 10G net

2015-02-14 Thread Ding Xiao
I am test virtio-vhost in 10G environment host info cpu E2680@2.7GHz memory 16G network intel 82599BE os centos 7 VM info cpu 4 memory 4G network using virtio vhost os centos 7 I using pktgen to send udp package, the result like follow 64b 230Mb/s 1400b 5.9Gb/s I test the speed in VMware too,

[PATCH v3 00/15] Revert h8300 archtecture

2015-02-14 Thread Yoshinori Sato
Changes for v3 - Fix clone - Add dma functions - Add missing library - Fix various errors Changes for v2 - Use Common Clock Framework - Use common unistd.h - Use common ptrace function - clocksource driver move to drivers/clocksource - some cleanup Changes for latest relase (v3.12) - standard

Re: [PATCH] net/core: Fix warning while make xmldocs caused by dev.c

2015-02-14 Thread David Miller
From: Masanari Iida standby2...@gmail.com Date: Sat, 14 Feb 2015 22:26:34 +0900 This patch fix following warning wile make xmldocs. Warning(.//net/core/dev.c:5345): No description found for parameter 'bonding_info' Warning(.//net/core/dev.c:5345): Excess function parameter

[PATCH V5] x86 spinlock: Fix memory corruption on completing completions

2015-02-14 Thread Raghavendra K T
Paravirt spinlock clears slowpath flag after doing unlock. As explained by Linus currently it does: prev = *lock; add_smp(lock-tickets.head, TICKET_LOCK_INC); /* add_smp() is a full mb() */ if (unlikely(lock-tickets.tail

[LKP] [mutex] 871a6bb4916: -1.8% will-it-scale.per_process_ops, -98.3% will-it-scale.time.voluntary_context_switches, +209.6% will-it-scale.time.involuntary_context_switches

2015-02-14 Thread Huang Ying
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core commit 871a6bb4916fef3123b6ff749b0dc82680fb0d2a (mutex: In mutex_spin_on_owner(), return true when owner changes) testbox/testcase/testparams:

[PATCH] ASoC: Add support for NAU8824 codec to ASoC

2015-02-14 Thread Wan Zongshun
Signed-off-by: Wan Zongshun mcuos@gmail.com Signed-off-by: Chih-Chiang Chang ccchan...@nuvoton.com --- sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/nau8824.c | 770 + sound/soc/codecs/nau8824.h | 379

Re: [PATCH net] r8152: restore hw settings

2015-02-14 Thread David Miller
From: Hayes Wang hayesw...@realtek.com Date: Thu, 12 Feb 2015 16:20:46 +0800 There is a capability which let the hw could change the settings automatically when the power change to ON. However, the USB reset would reset the settings to the hw default, so the driver has to restore the relative

Re: [PATCH RFC v3 0/7] epoll: Introduce new syscalls, epoll_ctl_batch and epoll_pwait1

2015-02-14 Thread Fam Zheng
On Fri, 02/13 01:53, Omar Sandoval wrote: snip Discussion == [Note: This is the question part regarding the interface contract of epoll_ctl_batch. If you don't have the context of what is epoll_ctl_batch yet, please skip this part and probably start with the man page style

Re: Revert e0922e5e3ccb78aa0152e93dfbd1755ac39c8582

2015-02-14 Thread Jonathan Cameron
On 12/02/15 20:23, Andrey Smirnov wrote: Hi Jonathan, Please revert patch e0922e5e3ccb78aa0152e93dfbd1755ac39c8582: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/iio/humidity/si7020.c?id=e0922e5e3ccb78aa0152e93dfbd1755ac39c8582 It incorrectly assumes that

Re: [PATCH] IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc

2015-02-14 Thread Jonathan Cameron
On 13/02/15 07:58, Andrey Smirnov wrote: Since only a pointer to struct i2c_client is stored in a private area of IIO device created by the driver there's no need to allocate sizeof(struct i2c_client) worth of storage. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com Applied to the

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-14 Thread Baoquan He
On 02/13/15 at 11:28pm, Joerg Roedel wrote: Hi Baoquan, On Fri, Feb 13, 2015 at 11:34:38PM +0800, Baoquan He wrote: Conclusively, I like 256M since the testing data showed it's sufficient now and should be save for a long time. Thanks, I am fine with 256MB too, so can I have your

Re: [PATCH v2] iio: Export userspace IIO headers

2015-02-14 Thread Jonathan Cameron
On 10/02/15 16:33, Daniel Baluta wrote: After UAPI header file split [1] all user-kernel interfaces were placed under include/uapi/. This patch moves IIO user specific API from: * include/linux/iio/events.h = include/uapi/linux/iio/events.h * include/linux/types.h =

Re: [PATCH V4 1/1] iio: Updated Capella cm3232 ambient light sensor driver.

2015-02-14 Thread Jonathan Cameron
On 13/02/15 00:35, Kevin Tsai wrote: Added ACPI and Power Management support. Signed-off-by: Kevin Tsai kt...@capellamicro.com Hi Kevin, Please treat this as a new series, adding functionality to the driver that has already been merged. As such we are back to v1. Also make it clear what you

Re: [PATCH] iio: gp2ap020a00f: Use put_unaligned_le32

2015-02-14 Thread Jonathan Cameron
On 11/02/15 09:17, Vaishali Thakkar wrote: This patch introduces the use of function put_unaligned_le32. This is done using Coccinelle and semantic patch used is as follows: @@ identifier tmp; expression ptr; expression y,e; type T; @@ - tmp = cpu_to_le32(y); +... when != tmp -

[PATCH 1/1 linux-next] btrfs: fix sizeof format specifier in btrfs_check_super_valid()

2015-02-14 Thread Fabian Frederick
This patch fixes mips compilation warning: fs/btrfs/disk-io.c: In function 'btrfs_check_super_valid': fs/btrfs/disk-io.c:3927:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat] Signed-off-by: Fabian Frederick f...@skynet.be

Crypto Update for 3.20

2015-02-14 Thread Herbert Xu
Hi Linus: Here is the crypto update for 3.20: * Added 192/256-bit key support to aesni GCM. * Added MIPS OCTEON MD5 support. * Fixed hwrng starvation and race conditions. * Added note that memzero_explicit is not a subsitute for memset. * Added user-space interface for crypto_rng. * Misc fixes.

Re: [PATCH 0/3 v2] Fix kdump failures with crashkernel=high

2015-02-14 Thread Baoquan He
This patch is very helpful and necessary since several users complained about the failure caused by not enough low mem. And the default value 256M is suitable since the testing data showed it's sufficient now and should be save for a long time. And it also makes sense to supress the warning from

Re: [PATCH] compat: Fix endian issue in union sigval

2015-02-14 Thread Catalin Marinas
On Fri, Feb 13, 2015 at 04:56:29PM -0500, Chris Metcalf wrote: On 2/13/2015 5:44 AM, Catalin Marinas wrote: On Fri, Feb 13, 2015 at 04:00:43PM +0800, Bamvor Jian Zhang wrote: diff --git a/arch/arm64/kernel/signal32.c b/arch/arm64/kernel/signal32.c index e299de396e9b..32601939a3c8 100644 ---

Re: [RFC PATCH 6/9] livepatch: create per-task consistency model

2015-02-14 Thread Jiri Slaby
On 02/09/2015, 06:31 PM, Josh Poimboeuf wrote: Add a basic per-task consistency model. This is the foundation which will eventually enable us to patch those ~10% of security patches which change function prototypes and/or data semantics. When a patch is enabled, livepatch enters into a

Re: [PATCH 2/2]Trivial patch: to solve indentation warnings in amba-clcd.c driver

2015-02-14 Thread Sudip Mukherjee
On Fri, Feb 13, 2015 at 01:36:18PM +, Russell King - ARM Linux wrote: On Fri, Feb 13, 2015 at 08:28:10AM -0500, Parmeshwr Prasad wrote: This is second patch in series. In driver in_atomic we should not use to check if code is unning in IRQ. clcdfb_sleep() function is used to give

Re: [Nbd] [PATCH 3/9] nbd: Remove kernel internal header

2015-02-14 Thread Wouter Verhelst
On Thu, Feb 12, 2015 at 09:57:31PM +0100, Markus Pargmann wrote: The header is not included anywhere. Remove it and include the private nbd_device struct in nbd.c. It exists mostly for the benefit of userspace trying to speak the NBD protocol. I've stopped trying to depend on it (since

Re: [Nbd] [PATCH 2/9] Documentation: nbd: Add list of module parameters

2015-02-14 Thread Wouter Verhelst
On Thu, Feb 12, 2015 at 09:57:30PM +0100, Markus Pargmann wrote: +max_part + Number of partitions per device (default: 0). About that. Wouldn't it be better to change that default? Something like 16 makes more sense to me. -- It is easy to love a country that is famous for chocolate and

Re: [PATCH] ARM: shmobile: Remove redundant cpu_disable implementation

2015-02-14 Thread Magnus Damm
Hi Stephen, On Sat, Feb 14, 2015 at 12:41 AM, Stephen Boyd sb...@codeaurora.org wrote: By default only the non-boot CPUs can be hotplugged if the smp_operations structure doesn't have the cpu_disable function pointer set. r8a7779_cpu_disable() implements the same logic, only non-boot CPUs can

Re: [PATCH v2] ARM: smp: Only expose /sys/.../cpuX/online if hotpluggable

2015-02-14 Thread Magnus Damm
Hi Russell, On Fri, Feb 13, 2015 at 11:01 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Feb 13, 2015 at 09:44:50PM +, Magnus Damm wrote: Also, based on the comment in mcpm_cpu_can_disable() it looks like the PSCI hook may be executed once only with your change in

RE: [PATCH v4] dma: Add Xilinx AXI Direct Memory Access Engine driver support

2015-02-14 Thread Appana Durga Kedareswara Rao
Hi Vinod, -Original Message- From: Vinod Koul [mailto:vinod.k...@intel.com] Sent: Thursday, February 12, 2015 3:05 PM To: Appana Durga Kedareswara Rao Cc: Arnd Bergmann; linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; Srikanth Vemula; linux-

Re: [PATCH 0/3 v2] Fix kdump failures with crashkernel=high

2015-02-14 Thread Joerg Roedel
Hi Baoquan, On Sat, Feb 14, 2015 at 06:58:34PM +0800, Baoquan He wrote: This patch is very helpful and necessary since several users complained about the failure caused by not enough low mem. And the default value 256M is suitable since the testing data showed it's sufficient now and should

Re: [PATCH 2/8] fbdev: ssd1307fb: Unify init code and make controller configurable from device tree

2015-02-14 Thread Thomas Niederprüm
Am Thu, 12 Feb 2015 17:41:47 +0100 schrieb Maxime Ripard maxime.rip...@free-electrons.com: On Sat, Feb 07, 2015 at 03:59:33PM +0100, Thomas Niederprüm wrote: Am Sat, 7 Feb 2015 11:42:25 +0100 schrieb Maxime Ripard maxime.rip...@free-electrons.com: Hi, On Fri, Feb 06, 2015 at

Re: [PATCH 4/8] fbdev: ssd1307fb: Use vmalloc to allocate video memory.

2015-02-14 Thread Thomas Niederprüm
Am Thu, 12 Feb 2015 16:11:21 +0100 schrieb Maxime Ripard maxime.rip...@free-electrons.com: On Sat, Feb 07, 2015 at 04:35:41PM +0100, Thomas Niederprüm wrote: Am Sat, 7 Feb 2015 12:18:21 +0100 schrieb Maxime Ripard maxime.rip...@free-electrons.com: Hi, On Fri, Feb 06, 2015 at

Re: BUG: spinlock bad magic on CPU#0, migration/0/9

2015-02-14 Thread Oleg Nesterov
On 02/14, Nicholas Mc Guire wrote: Basically if you call wait_for_completion_timeout and the timeout condition occures you always need some way of notifying the completing end that it should no longer call complete()/complete_all(). Sure. struct completion doesn't differ from any other object

Re: [PATCH v4 1/5] ARM: dts: pxa: add pwri2c to pxa device-tree

2015-02-14 Thread Robert Jarzmik
Robert Jarzmik robert.jarz...@free.fr writes: pxa27x variant has 2 I2C busses on the SoC : - the casual I2C - the power I2C, normally driving power regulators, and capable of receiving orders on core frequency modifications Add the missing pwri2c to pxa27x description. Signed-off-by:

[PATCH] net/core: Fix warning while make xmldocs caused by dev.c

2015-02-14 Thread Masanari Iida
This patch fix following warning wile make xmldocs. Warning(.//net/core/dev.c:5345): No description found for parameter 'bonding_info' Warning(.//net/core/dev.c:5345): Excess function parameter 'netdev_bonding_info' description in 'netdev_bonding_info_change' This warning starts to

Re: scsi: Implement per-cpu logging buffer

2015-02-14 Thread Hannes Reinecke
On 02/13/2015 04:45 PM, Josh Triplett wrote: On Fri, Feb 13, 2015 at 09:48:36AM +0100, Hannes Reinecke wrote: On 02/12/2015 06:18 PM, Josh Triplett wrote: On Thu, Feb 12, 2015 at 02:29:35PM +0100, Hannes Reinecke wrote: On 02/12/2015 01:36 PM, Geert Uytterhoeven wrote: On Wed, Feb 11, 2015 at

[PATCH] clk: pxa: pxa3xx: add missing os timer clock

2015-02-14 Thread Robert Jarzmik
The pxa3xx scheduler relies on the pxa-timer, which requires a clock for its rate. As the clock handling will be taken over by the clock framework, add this missing clock. The miss was discovered by attempting to run a zylonite platform in a device-tree configuration, with the future patch to

Re: [PATCH 4/8] fbdev: ssd1307fb: Use vmalloc to allocate video memory.

2015-02-14 Thread Maxime Ripard
On Sat, Feb 14, 2015 at 03:22:12PM +0100, Thomas Niederprüm wrote: Am Thu, 12 Feb 2015 16:11:21 +0100 schrieb Maxime Ripard maxime.rip...@free-electrons.com: On Sat, Feb 07, 2015 at 04:35:41PM +0100, Thomas Niederprüm wrote: Am Sat, 7 Feb 2015 12:18:21 +0100 schrieb Maxime Ripard

Re: [PATCH 5/8] fbdev: ssd1307fb: Add module parameter bitsperpixel.

2015-02-14 Thread Maxime Ripard
On Sat, Feb 07, 2015 at 05:05:03PM +0100, Thomas Niederprüm wrote: Am Sat, 7 Feb 2015 12:20:43 +0100 schrieb Maxime Ripard maxime.rip...@free-electrons.com: On Fri, Feb 06, 2015 at 11:28:11PM +0100, nied...@physik.uni-kl.de wrote: From: Thomas Niederprüm nied...@physik.uni-kl.de

Re: scsi: Implement per-cpu logging buffer

2015-02-14 Thread Geert Uytterhoeven
Hi Hannes, On Sat, Feb 14, 2015 at 3:29 PM, Hannes Reinecke h...@suse.de wrote: @jejb, hch: should I do a new patch or update the existing one? As the existing one is already upstream, you should send a new patch. Thanks! Gr{oetje,eeting}s, Geert -- Geert

Re: divide by zero oops in kernel 3.17.7

2015-02-14 Thread william
fyi, crashed again today with 3.18.5 vanilla : still crashing on 3.18.5 vanilla : Feb 13 04:06:41 gemelos kernel: divide error: [#1] SMP DEBUG_PAGEALLOC Feb 13 04:06:41 gemelos kernel: CPU: 2 PID: 24892 Comm: mysqld Not tainted 3.18.5ww7_vanilla1_debug #1 Feb 13 04:06:41 gemelos kernel:

Re: [PATCH 1/2] Input: bcm-keypad: add device tree bindings

2015-02-14 Thread Scott Branden
Hi Dmitry, Comments inline. I still have an issue with vendor prefix as there are not documented guidelines I can find in this area? On 15-02-09 04:51 PM, Dmitry Torokhov wrote: Hi Scott, On Mon, Feb 09, 2015 at 04:07:40PM -0800, Scott Branden wrote: Documents the Broadcom keypad

Re: [PATCH 1/2] hwrng: iproc-rng200 - Add Broadcom IPROC RNG driver

2015-02-14 Thread Scott Branden
Hi Joe, I really don't see the missing terminating newlines in the patch or source code. The lines look the same as every other line??? Regards, Scott On 15-02-09 04:27 PM, Joe Perches wrote: On Mon, 2015-02-09 at 16:07 -0800, Scott Branden wrote: This adds a driver for random number

Re: [PATCH 3/6] timekeeping: Make it safe to use the fast timekeeper while suspended

2015-02-14 Thread John Stultz
On Fri, Feb 13, 2015 at 10:32 PM, Rafael J. Wysocki r...@rjwysocki.net wrote: On Friday, February 13, 2015 05:03:51 PM John Stultz wrote: On Fri, Feb 13, 2015 at 10:03 AM, Rafael J. Wysocki r...@rjwysocki.net wrote: On Friday, February 13, 2015 08:53:38 AM John Stultz wrote: On Wed, Feb

Re: [PATCH 1/1] futex: check PF_KTHREAD rather than !p-mm to filter out kthreads

2015-02-14 Thread Davidlohr Bueso
On Mon, 2015-02-02 at 15:05 +0100, Oleg Nesterov wrote: attach_to_pi_owner() checks p-mm to prevent attaching to kthreads and this looks doubly wrong: 1. It should actually check PF_KTHREAD, kthread can do use_mm(). 2. If this task is not kthread and it is actually the lock owner we can

MIPS: FP32XX_HYBRID_FPRS

2015-02-14 Thread Paul Bolle
Your d8fb6537f1d4 (MIPS: kernel: elf: Improve the overall ABI and FPU mode checks) is included in yesterday's linux-next (ie, next-20150213). I noticed because a script I use to check linux-next spotted a minor problem with it. That commit removed the only user of Kconfig symbol

Re: [PATCH 1/2] hwrng: iproc-rng200 - Add Broadcom IPROC RNG driver

2015-02-14 Thread Scott Branden
I didn't read this properly. Will add \n in the dev_err messages. Thanks, Scott On 15-02-14 08:36 AM, Scott Branden wrote: Hi Joe, I really don't see the missing terminating newlines in the patch or source code. The lines look the same as every other line??? Regards, Scott On 15-02-09

MIPS: CONFIG_CPU_MIPS_R6?

2015-02-14 Thread Paul Bolle
Your commit 33d73a3d4159 (MIPS: lib: memset: Add MIPS R6 support) is included in yesterday's linux next (ie, next-20150213). I noticed because a script I use to check linux-next spotted a trivial problem with it. It added a reference to CONFIG_CPU_MIPS_R6 in comment. Should I submit the trivial

Re: [PATCH] ARM: shmobile: Remove redundant cpu_disable implementation

2015-02-14 Thread Simon Horman
On Sat, Feb 14, 2015 at 09:58:42AM +, Magnus Damm wrote: Hi Stephen, On Sat, Feb 14, 2015 at 12:41 AM, Stephen Boyd sb...@codeaurora.org wrote: By default only the non-boot CPUs can be hotplugged if the smp_operations structure doesn't have the cpu_disable function pointer set.

[PATCH] fs: record task name which froze superblock

2015-02-14 Thread Alexey Dobriyan
Freezing and thawing are separate system calls, task which is supposed to thaw filesystem/superblock can disappear due to crash or not thaw due to a bug. Record at least task name (we can't take task_struct reference) to make support engineer's life easier. Hopefully 16 bytes per superblock isn't

Re: [PATCH 2/2] Input: bcm-keypad: Add Broadcom keypad controller

2015-02-14 Thread Scott Branden
Hi Dmitry, Good review. Thanks. Commented inline. On 15-02-09 05:02 PM, Dmitry Torokhov wrote: Hi Scott, On Mon, Feb 09, 2015 at 04:07:41PM -0800, Scott Branden wrote: Add driver for Broadcom's keypad controller. Broadcom Keypad controller is used to interface a SoC with a matrix-type

Re: scsi: Implement per-cpu logging buffer

2015-02-14 Thread James Bottomley
On Sat, 2015-02-14 at 15:29 +0100, Hannes Reinecke wrote: On 02/13/2015 04:45 PM, Josh Triplett wrote: On Fri, Feb 13, 2015 at 09:48:36AM +0100, Hannes Reinecke wrote: On 02/12/2015 06:18 PM, Josh Triplett wrote: On Thu, Feb 12, 2015 at 02:29:35PM +0100, Hannes Reinecke wrote: On

MIPS: CONFIG_MIPS_R6?

2015-02-14 Thread Paul Bolle
Your commits 430857eae56c (MIPS: mm: Add MIPS R6 instruction encodings) and 90163242784b (MIPS: kernel: unaligned: Add support for the MIPS R6) are included in yesterday's linux-next (ie, next-20150213). I noticed because a script I use to check linux-next spotted a problem with it. These commits

Re: [PATCH] iio: gp2ap020a00f: Use put_unaligned_le32

2015-02-14 Thread Jonathan Cameron
On 14/02/15 11:59, Jonathan Cameron wrote: On 11/02/15 09:17, Vaishali Thakkar wrote: This patch introduces the use of function put_unaligned_le32. This is done using Coccinelle and semantic patch used is as follows: @@ identifier tmp; expression ptr; expression y,e; type T; @@ - tmp =

Re: MIPS: FP32XX_HYBRID_FPRS

2015-02-14 Thread Paul Bolle
On Sat, 2015-02-14 at 17:57 +0100, Paul Bolle wrote: Your d8fb6537f1d4 (MIPS: kernel: elf: Improve the overall ABI and FPU mode checks) is included in yesterday's linux-next (ie, next-20150213). I noticed because a script I use to check linux-next spotted a minor problem with it. That

[PATCH] ASLR: fix stack randomization on 64-bit systems

2015-02-14 Thread Kees Cook
From: Hector Marco-Gisbert hecma...@upv.es The issue is that the stack for processes is not properly randomized on 64 bit architectures due to an integer overflow. The affected function is randomize_stack_top() in file fs/binfmt_elf.c: static unsigned long randomize_stack_top(unsigned long

Re: [PATCH v2 00/30] Refine PCI scan interfaces and make generic pci host bridge

2015-02-14 Thread Lorenzo Pieralisi
Hi Yijing, On Wed, Jan 21, 2015 at 12:29:55AM +, Yijing Wang wrote: v1-v2: Split pci_host_bridge_list into a new patch, remove .phb_probe_mode and rework powerpc .phb_of_scan_bus() for simpilicty suggested by Arnd. Refresh some patch description log, and add a new patch

[RFC][PATCH v4] procfs: Always expose /proc/pid/map_files/ and make it readable

2015-02-14 Thread Calvin Owens
Currently, /proc/pid/map_files/ is restricted to CAP_SYS_ADMIN, and is only exposed if CONFIG_CHECKPOINT_RESTORE is set. This interface is very useful for enumerating the files mapped into a process when the more verbose information in /proc/pid/maps is not needed. It also allows access to file

[PATCH v3] ARM: pxa: fix pxa interrupts handling in DT

2015-02-14 Thread Robert Jarzmik
The commit ARM: pxa: arbitrarily set first interrupt number changed the first pxa interrupt to 16. As a consequence, device-tree builds got broken, because : - pxa_mask_irq() and pxa_unmask_irq() are using IRQ_BIT() - IRQ_BIT(x) calculates the interrupts as : x - PXA_IRQ(0) Before the commit,

[PATCH] procfs: Return -ESRCH on /proc/N/fd/* when PID N doesn't exist

2015-02-14 Thread Calvin Owens
Currently, readlink() and follow_link() for the symbolic links in /proc/pid/fd/* will return -EACCES in the case where looking up the task finds that it does not exist. This patch inlines the logic from proc_fd_access_allowed() into these two functions such that they will return -ESRCH if the

Re: [PATCH 1/1] futex: check PF_KTHREAD rather than !p-mm to filter out kthreads

2015-02-14 Thread Oleg Nesterov
On 02/14, Davidlohr Bueso wrote: On Mon, 2015-02-02 at 15:05 +0100, Oleg Nesterov wrote: --- a/kernel/futex.c +++ b/kernel/futex.c @@ -900,7 +900,7 @@ static int attach_to_pi_owner(u32 uval, union futex_key *key, if (!p) return -ESRCH; - if (!p-mm) { + if

Re: [PATCH 1/1] futex: check PF_KTHREAD rather than !p-mm to filter out kthreads

2015-02-14 Thread Davidlohr Bueso
On Sat, 2015-02-14 at 21:57 +0100, Oleg Nesterov wrote: Perhaps... but PF_KTHREAD looks self-documented too ;) Well the idea was to standardize how we check for a kthreads, as opposed to improving readability or such. Just a suggestion. Thanks. -- To unsubscribe from this list: send the line

Re: [PATCH] at86rf230: assign wait_for_completion_timeout to appropriately typed var

2015-02-14 Thread Alexander Aring
On Sun, Feb 08, 2015 at 10:34:34AM +0100, Alexander Aring wrote: On Sun, Feb 08, 2015 at 03:55:00AM -0500, Nicholas Mc Guire wrote: return type of wait_for_completion_timeout is unsigned long not int. As rc is used here only for wait_for_completion_timeout the type is simply changed to

Re: [PATCH] at86rf230: assign wait_for_completion_timeout to appropriately typed var

2015-02-14 Thread Marcel Holtmann
Hi Alex, return type of wait_for_completion_timeout is unsigned long not int. As rc is used here only for wait_for_completion_timeout the type is simply changed to unsigned long. Signed-off-by: Nicholas Mc Guire hof...@osadl.org Acked-by: Alexander Aring alex.ar...@gmail.com Marcel,

Re: [PATCH 3/5] virtio: Don't expose legacy net features when VIRTIO_NET_NO_LEGACY defined.

2015-02-14 Thread Michael S. Tsirkin
On Sun, Feb 08, 2015 at 11:59:08AM +0100, Michael S. Tsirkin wrote: On Fri, Feb 06, 2015 at 03:36:54PM +1030, Rusty Russell wrote: In particular, the virtio header always has the u16 num_buffers field. We define a new 'struct virtio_net_modern_hdr' for this (rather than simply calling it

Re: [PATCH 01/11] ARM: vexpress: use ARM_CPU_SUSPEND if needed

2015-02-14 Thread Lorenzo Pieralisi
On Sat, Feb 14, 2015 at 01:34:34AM +, Liviu Dudau wrote: On Sat, Feb 14, 2015 at 06:55:05AM +0800, Nicolas Pitre wrote: On Fri, 13 Feb 2015, Liviu Dudau wrote: On Thu, Feb 12, 2015 at 07:42:33PM +, Arnd Bergmann wrote: The vexpress tc2 power management code calls

Re: [PATCH] ARM: pxa: pxa27x skip default device initialization with DT

2015-02-14 Thread Robert Jarzmik
Daniel Mack dan...@zonque.org writes: On 02/07/2015 10:18 PM, Robert Jarzmik wrote: When booting via DT, the default PXA devices must not have been probed before, otherwise the augmented information from the device tree is ignored. This is the twin commit of commit 82ce44d104dc (ARM:

Re: [PATCH] mtd: pxa3xx_nand: fix driver when num_cs is 0

2015-02-14 Thread Robert Jarzmik
Ezequiel Garcia ezequiel.gar...@free-electrons.com writes: On 02/08/2015 05:02 PM, Robert Jarzmik wrote: As the devicetree binding doesn't require num_cs to exist or be strictly positive, and neither does the platform data case, a bug appear when num_cs is set to 0 and panics the kernel. ...

Re: [PATCH 1/1] futex: check PF_KTHREAD rather than !p-mm to filter out kthreads

2015-02-14 Thread Oleg Nesterov
On 02/14, Davidlohr Bueso wrote: On Sat, 2015-02-14 at 21:57 +0100, Oleg Nesterov wrote: Perhaps... but PF_KTHREAD looks self-documented too ;) Well the idea was to standardize how we check for a kthreads, as opposed to improving readability or such. Just a suggestion. I understand, and of

[PATCH RFC 0/2] Prepare smooth PXA transition to dmaengine

2015-02-14 Thread Robert Jarzmik
This is the best I could think of to smoothly transition the PXA drivers to dmaengine, driver by driver. The goal is to : - be able to port several drivers, but not _all_ of them at the same time - have both dmaengine and legacy dma code working in the same kernel - have dma chanels correctly

[PATCH RFC 1/2] dma: mmp_dma: add support for legacy transition

2015-02-14 Thread Robert Jarzmik
In order to achieve smooth transition of pxa drivers from old legacy dma handling to new dmaengine, introduce a function to hide dma physical channels from dmaengine. This is temporary situation where pxa dma will be handled in 2 places : - arch/arm/plat-pxa/dma.c - drivers/dma/mmp_pdma.c The

Re: [PATCH v3 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-02-14 Thread Alexei Starovoitov
On Wed, Feb 11, 2015 at 11:58 PM, Hekuang heku...@huawei.com wrote: eBPF is very flexible, which means it is bound to have someone use it in a way you never dreamed of, and that will be what bites you in the end (pun intended). understood :) let's start slow then with bpf+syscall and

[PATCH] gxt4500: fix 16bpp 565 mode

2015-02-14 Thread Ondrej Zary
Fix wrong colors in 16bpp 565 mode. Not sure if this is OK for big-endian systems or it breaks them. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/video/fbdev/gxt4500.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/gxt4500.c

Re: [PATCH v2] Bluetooth: ath3k: Add support for 04f2:aff1 (Atheros AR5B195 combo Mini PCIe card)

2015-02-14 Thread Marcel Holtmann
Hi Alexander, Add 04f2:aff1 to ath3k.c supported devices list and btusb.c blacklist, so that the device can load the ath3k firmware and re-enumerate itself as an AR3011 device. T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01

[PATCH] gxt4500: enable on non-PPC architectures

2015-02-14 Thread Ondrej Zary
These chips can be present at least on x86 too - Fire GL2 AGP has GXT6000P but this driver is currently limited to PPC. Enable it for all architectures and add chip configuration for little-endian. Tested on x86 with Fire GL2 AGP. Signed-off-by: Ondrej Zary li...@rainbow-software.org ---

[PATCH v2] mm: slub: Add SLAB_DEBUG_CRASH option

2015-02-14 Thread Chris J Arges
This option crashes the kernel whenever corruption is initially detected. This is useful when trying to use crash dump analysis to determine where memory was initially corrupted. To enable this option use slub_debug=C. [v2] Panic in slab_err and object_err instead of BUG_ON. Signed-off-by:

[PATCH RFC 2/2] ARM: pxa: transition to dmaengine phase 1

2015-02-14 Thread Robert Jarzmik
In order to slowly transition pxa to dmaengine, the legacy code will now rely on dmaengine to request a channel. This implies that PXA architecture selects DMADEVICES and MMP_PDMA, which is not pretty. Yet it enables PXA drivers to be ported one by one, with part of them using dmaengine, and the

Re: [PATCH v3 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-02-14 Thread Alexei Starovoitov
On Wed, Feb 11, 2015 at 5:28 AM, Peter Zijlstra pet...@infradead.org wrote: We're compiling the BPF stuff against the 'current' kernel headers right? the tracex1 example is pulling kernel headers to demonstrate how bpf_fetch*() helpers can be used to walk kernel structures without debug info.

Re: [PATCH v3 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-02-14 Thread Alexei Starovoitov
On Wed, Feb 11, 2015 at 7:51 AM, Steven Rostedt rost...@goodmis.org wrote: On Tue, 10 Feb 2015 22:33:05 -0800 Alexei Starovoitov a...@plumgrid.com wrote: fair enough. Something like TRACE_MARKER(arg1, arg2) that prints it was hit without accessing the args would be enough. Without any args

[LSM] Kernel panic - not syncing: Could not register security module

2015-02-14 Thread Fengguang Wu
Hi Kees, 0day kernel testing robot got the below dmesg and the first bad commit is git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git revert-2228b30d2010404a0eb4a1e8e57fe04550dd9708-2228b30d2010404a0eb4a1e8e57fe04550dd9708 commit 2228b30d2010404a0eb4a1e8e57fe04550dd9708 Author:

Re: [PATCHv3 0/8] devfreq: Add generic exynos memory-bus frequency driver

2015-02-14 Thread Tobias Jakobi
Hello, I've tested the series on my Odroid-X2 (by adapting the TRATS2 changes), and so far I haven't seen any issues. With the system being idle one can see that the 'simple_ondemand' devfreq governor clocks down both memory busses to the lowest state. With best wishes, Tobias -- To unsubscribe

Re: [PATCH v2] Bluetooth: ath3k: Add support for 04f2:aff1 (Atheros AR5B195 combo Mini PCIe card)

2015-02-14 Thread Alexander Ploumistos
Hello Marcel, Thank you for accepting my patch and sorry I put you through so much trouble for just two variables. Until Dmitry chimed in, I was pretty sure I had followed everything in Documentation/SubmittingPatches to the letter. I also had some trouble using my fedoraproject.org alias with

Re: [PATCH v2 00/30] Refine PCI scan interfaces and make generic pci host bridge

2015-02-14 Thread Yijing Wang
Also we could eliminate all arch specific pci_domain_nr() after applied this series. I tested this series on x86 (with or without ACPI). Comments and tests are warmly welcome! Can you push a public branch out rebased against mainline for us to pull and test please ? OK, I will rebase it

[PATCH 2/2] ASoC: fsl-asoc-card: Add snd_soc_of_parse_audio_routing()

2015-02-14 Thread Nicolin Chen
This patch adds snd_soc_of_parse_audio_routing() to get dapm routes configurations via Device Tree. Signed-off-by: Nicolin Chen nicoleots...@gmail.com --- sound/soc/fsl/fsl-asoc-card.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c

[PATCH 1/2] ASoC: core: Add extra dapm properties for Device Tree

2015-02-14 Thread Nicolin Chen
The current helper functions, snd_soc_of_parse_audio_simple_widgets() and snd_soc_of_parse_audio_routing(), set dapm_widgets and dapm_routes without caring if they are already set by using build-in widgets and routes in the card driver. So there could be one of them, build-in one or Device Tree

Re: MIPS: CONFIG_MIPS_R6?

2015-02-14 Thread Leonid Yegoshin
On 02/14/2015 09:21 AM, Paul Bolle wrote: Your commits 430857eae56c (MIPS: mm: Add MIPS R6 instruction encodings) and 90163242784b (MIPS: kernel: unaligned: Add support for the MIPS R6) are included in yesterday's linux-next (ie, next-20150213). I noticed because a script I use to check

Re: MIPS: CONFIG_CPU_MIPS_R6?

2015-02-14 Thread Leonid Yegoshin
On 02/14/2015 09:26 AM, Paul Bolle wrote: Your commit 33d73a3d4159 (MIPS: lib: memset: Add MIPS R6 support) is included in yesterday's linux next (ie, next-20150213). I noticed because a script I use to check linux-next spotted a trivial problem with it. It added a reference to

[PATCH v2 1/4] HID: hid-lg4ff: Identify Logitech gaming wheels in compatibility modes accordingly to Logitech specifications

2015-02-14 Thread Michal Malý
Logitech specification contains a general method of identifying various models of their gaming wheels while they are in compatibility mode. This patch implements the method instead of checking against known values of bcdDevice. Handling of the mode switch upon initialization is also adjusted so

[PATCH v2 4/4] HID: hid-lg4ff: Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels.

2015-02-14 Thread Michal Malý
Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels. Signed-off-by: Michal Malý madcatxs...@devoid-pointer.net --- v2: Fix a misleading error message regarding unsupported wheel mode

[PATCH v2 2/4] HID: hid-lg4ff: Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels.

2015-02-14 Thread Michal Malý
Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels. Signed-off-by: Michal Malý madcatxs...@devoid-pointer.net --- v2: Document the sysfs interface .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 20 ++ drivers/hid/hid-lg4ff.c

[PATCH v2 0/4] HID: hid-lg4ff: Improve handling of Logitech multimode gaming wheels

2015-02-14 Thread Michal Malý
This patch series improves handling of various Logitech gaming wheels and allows switching between various compatibility modes which might be useful to improve compatibility with very old games and testing purposes. Signed-off-by: Michal Malý madcatxs...@devoid-pointer.net v2: - Rebased against

[PATCH v2 3/4] HID: hid-lg4ff: Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels.

2015-02-14 Thread Michal Malý
Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels. Signed-off-by: Michal Malý madcatxs...@devoid-pointer.net --- drivers/hid/hid-lg.c| 6 ++ drivers/hid/hid-lg4ff.c | 4 +++- 2 files

[PATCH v2] PM-Trace: add pm-trace support for suspending phase

2015-02-14 Thread Fu, Zhonghui
Occasionally, the system can't come back up after suspend/resume due to problems of device suspending phase. This patch make PM_TRACE infrastructure cover device suspending phase of suspend/resume process, and the information in RTC can tell developers which device suspending function make system

Re: [PATCH] PM-Trace: add pm-trace support for suspending phase

2015-02-14 Thread Fu, Zhonghui
On 2015/2/12 9:23, Greg Kroah-Hartman wrote: On Wed, Feb 11, 2015 at 10:43:13PM +0800, Fu, Zhonghui wrote: From 2626594c03ca3b9884dd44073385c36f99a3651d Mon Sep 17 00:00:00 2001 From: Zhonghui Fu zhonghui...@linux.intel.com Date: Wed, 11 Feb 2015 16:20:21 +0800 Subject: [PATCH] PM-Trace: add

Re: [PATCH] PM-Trace: add pm-trace support for suspending phase

2015-02-14 Thread Fu, Zhonghui
On 2015/2/13 6:24, Rafael J. Wysocki wrote: On Thursday, February 12, 2015 12:48:06 PM Fu, Zhonghui wrote: On 2015/2/11 23:25, Rafael J. Wysocki wrote: On Wednesday, February 11, 2015 10:43:13 PM Fu, Zhonghui wrote: From 2626594c03ca3b9884dd44073385c36f99a3651d Mon Sep 17 00:00:00 2001 From:

[PATCH] perf report: Fix branch stack mode cannot be set

2015-02-14 Thread He Kuang
When perf.data file be abtained by using 'perf record -b', perf report should use branch stack mode to generate output. But this function is broken by improper comparison between boolean and constant -1. before this patch: $perf report -b -i perf.data Samples: 16 of event 'cycles', Event count

Re: [PATCH v3] brcmfmac: avoid duplicated suspend/resume operation

2015-02-14 Thread Fu, Zhonghui
Any comments to this patch? Can it be accepted? Thanks, Zhonghui On 2015/2/12 11:26, Fu, Zhonghui wrote: From a05d35ab334c20970c236fb971dae88810078c88 Mon Sep 17 00:00:00 2001 From: Fu Zhonghui zhonghui...@linux.intel.com Date: Thu, 12 Feb 2015 10:49:35 +0800 Subject: [PATCH v3] brcmfmac:

  1   2   3   >