Re: [PATCH v9 12/18] vfio: Register/unregister irq_bypass_producer

2015-09-21 Thread Paolo Bonzini
On 21/09/2015 14:53, Wu, Feng wrote: >>> > > I think the point is that we cannot trigger the build of irqbypass >>> > > manager inside KVM or VFIO, we need trigger the build at a high >>> > > level and it should be built before VFIO and KVM. Any ideas? >> > >> > We can add virt/Makefile and

Re: [alsa-devel] [PATCH RFC 1/7] ASoC: tlv320aic26: Add device tree binding

2015-09-21 Thread Jon Cormier
On Mon, Sep 21, 2015 at 4:38 AM, Peter Ujfalusi wrote: > On 09/18/2015 11:11 PM, Cormier, Jonathan wrote: > >> diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c >> index 620ab9ea1ef0..91fdd96648bd 100644 >> --- a/sound/soc/codecs/tlv320aic26.c >>

RE: setup() and odd Syscalls in Ancient History

2015-09-21 Thread Aleksa Sarai
Hi Linus, Sorry for emailing you directly, but since you were the original author and designer of this particular oddity, I though it would be unlikely that anyone else would know the answer. I was wondering if you could explain *why* setup() was a syscall in early Linux? I understand that it

Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-21 Thread Geert Uytterhoeven
Hi Pantelis, On Mon, Sep 21, 2015 at 2:49 PM, Pantelis Antoniou wrote: >> On Sep 21, 2015, at 15:47 , Geert Uytterhoeven wrote: >> On Mon, Sep 21, 2015 at 2:36 PM, Pantelis Antoniou >> wrote: On Sep 21,

[RFC v2 13/18] rcu: Finish folding ->fqs_state into ->gp_state

2015-09-21 Thread Petr Mladek
Commit commit 4cdfc175c25c89ee ("rcu: Move quiescent-state forcing into kthread") started the process of folding the old ->fqs_state into ->gp_state, but did not complete it. This situation does not cause any malfunction, but can result in extremely confusing trace output. This commit completes

[RFC v2 14/18] rcu: Store first_gp_fqs into struct rcu_state

2015-09-21 Thread Petr Mladek
We are going to try split the rcu kthread into few kthread works. We will not stay in the funciton all the time and "first_gp_fqs" variable will not preserve the state. Let's store it into struct rcu_state. Note that this change is needed only when the split into more kthread works is accepted.

[PATCH v3] tools lib traceevent: str addresses in heterogeneous arch environments

2015-09-21 Thread Kapileshwar Singh
When a trace recorded on a 32-bit device is processed with a 64-bit binary, the higher 32-bits of the address need to ignored The lack of this results in the output of the 64-bit pointer value to the trace as the 32-bit address lookup fails in find_printk. Before: burn-1778 [003] 548.600305:

Re: [PATCH] lib: fix data race in rhashtable_rehash_one

2015-09-21 Thread Eric Dumazet
On Mon, 2015-09-21 at 10:08 +0200, Dmitry Vyukov wrote: > rhashtable_rehash_one() uses plain writes to update entry->next, > while it is being concurrently accessed by readers. > Unfortunately, the compiler is within its rights to (for example) use > byte-at-a-time writes to update the pointer,

RE: [PATCH v2, 2/2] misc: hpilo: Change e-mail address from hp.com to hpe.com

2015-09-21 Thread Altobelli, David
-Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Sunday, September 20, 2015 9:29 PM To: Masanari Iida Cc: Altobelli, David; linux-kernel@vger.kernel.org; a...@arndb.de Subject: Re: [PATCH v2, 2/2] misc: hpilo: Change e-mail address from hp.com to hpe.com >On

Re: [PATCH 3.12 16/33] isdn/gigaset: reset tty->receive_room when attaching ser_gigaset

2015-09-21 Thread Tilman Schmidt
Am 21.09.2015 um 15:13 schrieb Peter Hurley: > On 09/18/2015 08:38 AM, Tilman Schmidt wrote: >> Am 17.09.2015 um 20:13 schrieb Peter Hurley: >>> On Wed, Sep 16, 2015 at 7:26 AM, Tilman Schmidt wrote: [...] - The requirement for line disciplines to set receive_room wasn't (and

[PATCH v3 0/4] platform/chrome: vboot context support

2015-09-21 Thread Emilio López
Hi everyone, This series adds support for reading and writing the verified boot context nvram space on the EC using the cros_ec sysfs interface. The first patch improves is_visible() functionality, making it work for binary attributes as well as normal ones. This is needed so the sysfs group can

[PATCH v3 2/4] Documentation: bindings: mfd: cros ec: document vbc EC property

2015-09-21 Thread Emilio López
Some EC implementations include a small nvram space used to store verified boot context data. This boolean property lets us indicate whether this space is available or not on a specific EC implementation. Signed-off-by: Emilio López --- Patch is new in v3, split

[PATCH v3 4/4] ARM: dts: Enable EC vboot context support on Peach boards

2015-09-21 Thread Emilio López
The Peach boards use the EC to store the vboot context information, so add the corresponding properties on the EC node to indicate so. Reviewed-by: Krzysztof Kozlowski Acked-by: Javier Martinez Canillas Signed-off-by: Emilio López

[PATCH 1/4] sysfs: Support is_visible() on binary attributes

2015-09-21 Thread Emilio López
According to the sysfs header file: "The returned value will replace static permissions defined in struct attribute or struct bin_attribute." but this isn't the case, as is_visible is only called on struct attribute only. This patch introduces a new is_bin_visible() function to

[PATCH 2/3] misc: sgi-gru: gruhandles.c: Remove unused function

2015-09-21 Thread Sudip Mukherjee
From: Rickard Strandqvist Remove the function tfh_restart() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist

[PATCH 0/3] drivers/misc/sgi-gru: unapplied patches and a new one

2015-09-21 Thread Sudip Mukherjee
Hi Dimitri, I have taken these patches which were having ACK from you. Apart from these I saw another series of 25 patches from Jack Steiner which will still apply almost cleanly but there was no ACK or review. Can you please have a look at: https://lkml.org/lkml/2010/7/19/289 or

Re: [PATCH] fs: fix data races on inode->i_flctx

2015-09-21 Thread Dmitry Vyukov
On Mon, Sep 21, 2015 at 12:56 PM, Jeff Layton wrote: > On Mon, 21 Sep 2015 12:53:40 +0200 > Dmitry Vyukov wrote: > >> On Mon, Sep 21, 2015 at 12:50 PM, Jeff Layton >> wrote: >> > On Mon, 21 Sep 2015 09:43:06 +0200 >> >

Re: [PATCH] [media] tvp5150: add support for asynchronous probing

2015-09-21 Thread Sakari Ailus
Javier Martinez Canillas wrote: > Allow the subdevice to be probed asynchronously. > > Signed-off-by: Javier Martinez Canillas Acked-by: Sakari Ailus -- Sakari Ailus sakari.ai...@linux.intel.com -- To unsubscribe from this list: send the

[PATCH v3 0/2] Add support for ASM9260 interrupt controller

2015-09-21 Thread Oleksij Rempel
v2: - move icoll_init_iobasea and icoll_add_domain to preparation patch - add enum icoll_type - make separate irq_chip for ICOLL and ASM9260 v3: - fix typo in subject: Alp_h_ascale - remove "intr_per_reg", it is not used any more. It will also save some CPU cycles - remove spin locks. It

[PATCH v3 2/2] ARM: irqchip: mxs: add Alphascale ASM9260 support

2015-09-21 Thread Oleksij Rempel
From: Oleksij Rempel Freescale iMX23/iMX28 and Alphascale ASM9260 have similar interrupt collectors. It makes easy to reuse irq-mxs code for ASM9260. Differences between this devices are fallowing: - different register offsets - different count of intterupt

Re: [PATCH 2/5] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-09-21 Thread Jisheng Zhang
Dear Sebastian, On Sun, 20 Sep 2015 21:32:37 +0200 Sebastian Hesselbarth wrote: > > + BERLIN_PINCTRL_GROUP("SM_TDO", 0x0, 0x3, 0x12, > > + BERLIN_PINCTRL_FUNCTION(0x0, "sm_tdo"), > > + BERLIN_PINCTRL_FUNCTION(0x1,

[RESEND PATCH] mfd: max77843: Fix max77843_chg_init() return on error

2015-09-21 Thread Javier Martinez Canillas
If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is returned which is 0. So the function was wrongly returning a success value instead of an error code. Cc: sta...@vger.kernel.org # 4.1 Fixes: c7f585fe46d8 ("mfd: max77843: Add max77843 MFD driver core driver") Signed-off-by:

[RESEND PATCH] media: vb2: Fix vb2_dc_prepare do not correct sync data to device

2015-09-21 Thread Tiffany Lin
vb2_dc_prepare use the number of SG entries dma_map_sg_attrs return. But in dma_sync_sg_for_device, it use lengths of each SG entries before dma_map_sg_attrs. dma_map_sg_attrs will concatenate SGs until dma length > dma seg bundary. sgt->nents will less than sgt->orig_nents. Using SG entries after

Re: [PATCH v2 2/2] of: changesets: Introduce changeset helper methods

2015-09-21 Thread Geert Uytterhoeven
Hi Pantelis, On Wed, Sep 16, 2015 at 6:11 PM, Pantelis Antoniou wrote: > Changesets are very powerful, but the lack of a helper API > makes using them cumbersome. Introduce a simple copy based > API that makes things considerably easier. > > To wit, adding a

RE: [PATCH v9 12/18] vfio: Register/unregister irq_bypass_producer

2015-09-21 Thread Wu, Feng
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Monday, September 21, 2015 5:32 PM > To: Wu, Feng; alex.william...@redhat.com; j...@8bytes.org; > mtosa...@redhat.com > Cc: eric.au...@linaro.org; k...@vger.kernel.org; > io...@lists.linux-foundation.org;

Re: [PATCH v3] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-21 Thread Andrzej Hajda
On 09/21/2015 03:02 PM, SF Markus Elfring wrote: >> v3: added bool type > I would appreciate a bit more feedback for my concerns around your > evolving approach. Ups, I have missed your email. > * Reuse of "long int"? If you mean adding int to 'unsigned long [long]' types, it does not work. For

[PATCH 29/38] Input: touchscreen: atmel: remove invalid check

2015-09-21 Thread Andrzej Hajda
byte_offset is unsigned. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH v3 2/2] airo: Implement netif_carrier_on/off

2015-09-21 Thread Ondrej Zary
Add calls to netif_carrier_on and netif_carrier_off Signed-off-by: Ondrej Zary --- drivers/net/wireless/airo.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 67001a8..8ae838d 100644 ---

[PATCH 26/38] staging: lustre: remove invalid check

2015-09-21 Thread Andrzej Hajda
Unsigned cannot be negative. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH v2] mfd: tps6105x: Fix NULL pointer access.

2015-09-21 Thread Grigoryev Denis
When tps6105x used in TPS6105X_MODE_SHUTDOWN mode the driver calls mfd_add_devices() with mfd_cell->name == NULL, that causes an ooops in platform_device_register() later. This patch adds an mfd_cell for each possible mode thereby excluding runtime .name assignment. Signed-off-by: Denis

[PATCH 23/38] rndis_wlan: fix checking for default value

2015-09-21 Thread Andrzej Hajda
Thresholds uses -1 to indicate that default value should be used. Since thresholds are unsigned sign checking makes no sense. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]:

[PATCH 13/38] ARM: shmobile: apmu: correct type of CPU id

2015-09-21 Thread Andrzej Hajda
CPU id can be negative, so it cannot be assigned to unsigned variable. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda

[PATCH 2/3] irqchip: atmel-aic5: fix variable naming

2015-09-21 Thread Ludovic Desroches
To avoid errors, use an explicit variable name when accessing the 'base' generic chip. Signed-off-by: Ludovic Desroches --- drivers/irqchip/irq-atmel-aic5.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff --git

[PATCH 14/38] clk: vt8500: fix sign of possible PLL values

2015-09-21 Thread Andrzej Hajda
With unsigned values underflow in loops can occur resulting in theoretically infinite loops. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by:

[PATCH 3/3] irqchip: atmel-aic5: simplify base chip selection

2015-09-21 Thread Ludovic Desroches
Use irq_get_domain_generic_chip() to select the base chip. Signed-off-by: Ludovic Desroches --- drivers/irqchip/irq-atmel-aic5.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/irqchip/irq-atmel-aic5.c

[PATCH 18/38] net/ibm/emac: fix type of phy_mode

2015-09-21 Thread Andrzej Hajda
phy_mode can be negative. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 02/38] bus: arm-ccn: fix handling cpumask_any_but return value

2015-09-21 Thread Andrzej Hajda
cpumask_any_but returns value >= nr_cpu_ids if there are no more CPUs. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda

[PATCH 04/38] IB/ehca: fix handling idr_alloc result

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 05/38] staging: lustre: fix handling lustre_posix_acl_xattr_filter result

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 11/38] HSI: omap_ssi: fix handling ida_simple_get result

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 10/38] hwrng: fix handling platform_get_irq

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 15/38] drm/layerscape: fix handling fsl_dcu_drm_plane_index result

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 09/38] selftests/timers: fix write return value handlng

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 01/38] arm-cci: fix handling cpumask_any_but return value

2015-09-21 Thread Andrzej Hajda
cpumask_any_but returns value >= nr_cpu_ids if there are no more CPUs. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda

[PATCH 24/38] rtc: opal: fix type of token

2015-09-21 Thread Andrzej Hajda
The variable can take signed values. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

Re: [PATCH v9 18/18] iommu/vt-d: Add a command line parameter for VT-d posted-interrupts

2015-09-21 Thread Joerg Roedel
On Fri, Sep 18, 2015 at 10:29:56PM +0800, Feng Wu wrote: > Enable VT-d Posted-Interrtups and add a command line > parameter for it. > > Signed-off-by: Feng Wu > Reviewed-by: Paolo Bonzini > --- > Documentation/kernel-parameters.txt | 1 + >

Re: linux-next: build failure after merge of the akpm-current tree

2015-09-21 Thread Stephen Rothwell
Hi Michal, Vladimir, On Mon, 21 Sep 2015 09:58:53 +0200 Michal Hocko wrote: > > AFAIU your fix is correct but using > cgroup_subsys_on_dfl(memory_cgrp_subsys) is more appropriate: > diff --git a/mm/vmscan.c b/mm/vmscan.c > index d62924ee8022..c3df03add73e 100644 > ---

[PATCH v2 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-09-21 Thread Jisheng Zhang
Add the pin-controller driver for Marvell Berlin BG4CT SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig | 5 + drivers/pinctrl/berlin/Makefile| 1 +

[PATCH v3 1/4] usb: dwc2: remove double call to dwc2_hsotg_of_probe

2015-09-21 Thread Marek Szyprowski
This patch removes doubled call to dwc2_hsotg_of_probe() function. Signed-off-by: Marek Szyprowski --- drivers/usb/dwc2/gadget.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index ddd14a7..410ea6e 100644 ---

[PATCH v3 4/4] iio: bmc150: Add SPI driver

2015-09-21 Thread Markus Pargmann
Add a simple SPI driver which initializes the spi regmap for the bmc150 core driver. Signed-off-by: Markus Pargmann --- drivers/iio/accel/Kconfig| 5 +++ drivers/iio/accel/Makefile | 1 + drivers/iio/accel/bmc150-accel-spi.c | 80

[PATCH v3 1/4] iio: bmc150: Use i2c regmap

2015-09-21 Thread Markus Pargmann
This replaces all usage of direct i2c accesses with regmap accesses. Signed-off-by: Markus Pargmann --- drivers/iio/accel/Kconfig| 2 + drivers/iio/accel/bmc150-accel.c | 225 +-- 2 files changed, 99 insertions(+), 128

Re: [PATCH] fs: fix data races on inode->i_flctx

2015-09-21 Thread Jeff Layton
On Mon, 21 Sep 2015 12:53:40 +0200 Dmitry Vyukov wrote: > On Mon, Sep 21, 2015 at 12:50 PM, Jeff Layton wrote: > > On Mon, 21 Sep 2015 09:43:06 +0200 > > Dmitry Vyukov wrote: > > > >> locks_get_lock_context() uses cmpxchg() to

Re: [PATCH 2/3] usb: gadget: at91_udc: mention proper dependency

2015-09-21 Thread Sudip Mukherjee
On Sun, Sep 20, 2015 at 11:15:28AM -0500, Felipe Balbi wrote: > On Sat, Sep 19, 2015 at 10:42:58PM +0530, Sudip Mukherjee wrote: > > While building allmodconfig on avr32 the build failed with the error: > > "at91_pmc_base" [drivers/usb/gadget/udc/atmel_usba_udc.ko] undefined! > > > > On checking

Re: [PATCH 2/5] hv: add helpers to handle hv_util device state

2015-09-21 Thread Vitaly Kuznetsov
Olaf Hering writes: > On Sun, Sep 20, Greg KH wrote: > >> Just use a lock, that's what it is there for. > > How would that help? It might help because it enforces ordering. But > that requires that all three utils get refactored to deal with the > introduced locking. I will let

Re: [PATCH] fs: fix data races on inode->i_flctx

2015-09-21 Thread Dmitry Vyukov
Yes. That processor is Alpha and that's documented in DATA DEPENDENCY BARRIERS section of Documentation/memory-barriers.txt. On Mon, Sep 21, 2015 at 1:17 PM, Jeff Layton wrote: > On Mon, 21 Sep 2015 13:00:04 +0200 > Dmitry Vyukov wrote: > >> On

[PATCH] IB/hfi1: use kvfree() in sdma.c

2015-09-21 Thread Geliang Tang
Use kvfree() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/staging/rdma/hfi1/sdma.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rdma/hfi1/sdma.c b/drivers/staging/rdma/hfi1/sdma.c index aecd1a7..9c02a3d 100644

Re: [PATCH] misc: sram: extend usage of reserved partitions

2015-09-21 Thread Vladimir Zapolskiy
Hi Greg, On 21.09.2015 08:30, Greg Kroah-Hartman wrote: > On Mon, Aug 10, 2015 at 12:40:02AM +0300, Vladimir Zapolskiy wrote: >> This change adds functionality to operate on reserved SRAM partitions >> described in device tree file. Two partition properties are added, >> "pool" and "export", the

Re: [PATCH v3] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-21 Thread SF Markus Elfring
> v3: added bool type I would appreciate a bit more feedback for my concerns around your evolving approach. * Reuse of "long int"? * Splitting of the suggested SmPL rule so that each source code check will be connected with appropriate warning messages. Will any more fine-tuning be useful?

Re: EXT4: new warnings from 4.3.0-rc2

2015-09-21 Thread Ortwin Glück
> [2.481399] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities > [2.482426] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities As the kernel doesn't know which FS your root is, it tries the whole list of filesystems (init/do_mounts.c

[PATCH 30/38] leds: flash: remove invalid check

2015-09-21 Thread Andrzej Hajda
Unsigned cannot be lesser than zero. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

[PATCH 21/38] mwifiex: fix comparison expression

2015-09-21 Thread Andrzej Hajda
To avoid underflows signed variables should be used in expression. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda

[PATCH v2 0/6] arm64: berlin: add pinctrl support

2015-09-21 Thread Jisheng Zhang
This series adds support for Marvell berlin4ct pin-controller, allowing to configure the pin muxing from the device tree. Since v1: - use generic name for pin functions - a new commit to add pinmux for uart0 - correct pinctrl usage in dts Jisheng Zhang (6): pinctrl: berlin: regmap as an

Re: [PATCH] fs: fix data races on inode->i_flctx

2015-09-21 Thread Jeff Layton
On Mon, 21 Sep 2015 13:00:04 +0200 Dmitry Vyukov wrote: > On Mon, Sep 21, 2015 at 12:56 PM, Jeff Layton wrote: > > On Mon, 21 Sep 2015 12:53:40 +0200 > > Dmitry Vyukov wrote: > > > >> On Mon, Sep 21, 2015 at 12:50 PM, Jeff Layton

[PATCH v3 1/2] ARM: irqchip: mxs: prepare driver for HW with different offsets

2015-09-21 Thread Oleksij Rempel
Some HW has similar functionality but different register offsets. Make sure we can change offsets dynamically. Signed-off-by: Oleksij Rempel --- drivers/irqchip/irq-mxs.c | 83 ++- 1 file changed, 67 insertions(+), 16

Re: [PATCH] fs: fix data races on inode->i_flctx

2015-09-21 Thread Dmitry Vyukov
No hurry on my side. Thanks On Mon, Sep 21, 2015 at 1:44 PM, Jeff Layton wrote: > On Mon, 21 Sep 2015 13:38:45 +0200 > Dmitry Vyukov wrote: > >> Yes. That processor is Alpha and that's documented in DATA DEPENDENCY >> BARRIERS section of

Re: [PATCH v9 12/18] vfio: Register/unregister irq_bypass_producer

2015-09-21 Thread Paolo Bonzini
On 21/09/2015 13:35, Wu, Feng wrote: >>> > > I think the point is that we cannot trigger the build of irqbypass >>> > > manager inside KVM or VFIO, we need trigger the build at a high >>> > > level and it should be built before VFIO and KVM. Any ideas? >> > >> > We can add virt/Makefile and

[PATCH] f2fs: fix to handle io error in ->direct_IO

2015-09-21 Thread Chao Yu
Here is a oops reported as following message when testing generic/019 of xfstest: [ cut here ] kernel BUG at /home/yuchao/git/f2fs-dev/segment.c:882! invalid opcode: [#1] SMP Modules linked in: zram lz4_compress lz4_decompress f2fs(O) ip6table_filter ip6_tables

Re: [RFC PATCH] PM / Runtime: runtime: Add sysfs option for forcing runtime suspend

2015-09-21 Thread Pavel Machek
On Wed 2015-09-09 11:20:25, Alan Stern wrote: > On Wed, 9 Sep 2015, Rafael J. Wysocki wrote: > > > > The best example and actually the very specific problem we want to > > > solve is handling touchscreens on a phone / tablet. When the screen is > > > turned off, it is ideal to suspend the

[RFC v2 01/18] kthread: Allow to call __kthread_create_on_node() with va_list args

2015-09-21 Thread Petr Mladek
kthread_create_on_node() implements a bunch of logic to create the kthread. It is already called by kthread_create_on_cpu(). We are going to add a new API that will allow to standardize kthreads and define safe points for termination, freezing, parking, and even signal handling. It will want to

[RFC v2 00/18] kthread: Use kthread worker API more widely

2015-09-21 Thread Petr Mladek
My intention is to make it easier to manipulate kthreads. This RFC tries to use the kthread worker API. It is based on comments from the first attempt. See https://lkml.org/lkml/2015/7/28/648 and the list of changes below. 1st..8th patches: improve the existing kthread worker API 9th, 12th, 17th

[RFC v2 03/18] kthread: Add drain_kthread_worker()

2015-09-21 Thread Petr Mladek
flush_kthread_worker() returns when the currently queued works are proceed. But some other works might have been queued in the meantime. This patch adds drain_kthread_work() that is inspired by drain_workqueue(). It returns when the queue is completely empty and warns when it takes too long. The

Re: [RFC][PATCH 0/9] use CRYPTO_ALG_TFM_MAY_SHARE cra flag (full patchset)

2015-09-21 Thread Sergey Senozhatsky
On (09/21/15 22:13), Sergey Senozhatsky wrote: > RFC > > resend reason: > git (2.6.0-rc2) has crashed and spme patches were not sent out. > > > Sorry for the noise. > > === what a day... really sorry. (release 2.5.3) git has crashed again [Net::SMTP::SSL] Connection closed

RE: [PATCH] IB/hfi1: use kvfree() in sdma.c

2015-09-21 Thread Marciniszyn, Mike
> Subject: [PATCH] IB/hfi1: use kvfree() in sdma.c > > Use kvfree() instead of open-coding it. > > Signed-off-by: Geliang Tang > --- > drivers/staging/rdma/hfi1/sdma.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) Thanks for the patch. Acked-by: Mike

netlink: Replace rhash_portid with bound

2015-09-21 Thread Herbert Xu
On Sun, Sep 20, 2015 at 11:11:04PM -0700, David Miller wrote: > > Yeah at this point incremental patches work the best. OK here is the patch: ---8<--- The commit 1f770c0a09da855a2b51af6d19de97fb955eca85 ("netlink: Fix autobind race condition that leads to zero port ID") created some new races

Re: [PATCH 00/38] Fixes related to incorrect usage of unsigned types

2015-09-21 Thread David Howells
Andrzej Hajda wrote: > Semantic patch finds comparisons of types: > unsigned < 0 > unsigned >= 0 > The former is always false, the latter is always true. > Such comparisons are useless, so theoretically they could be > safely removed, but their presence quite often

[PATCH 38/38] drm/radeon: simplify boot level calculation

2015-09-21 Thread Andrzej Hajda
The patch simplifies the code without changing behaviour, but most problably there is a bug somewhere else. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

[PATCH 33/38] mm/memblock.c: remove invalid check

2015-09-21 Thread Andrzej Hajda
Unsigned value cannot be lesser than zero. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda --- mm/memblock.c |

[RFC] Perf: Trigger and dump sample info to perf.data from user space ring buffer

2015-09-21 Thread Yunlong Song
[Problem Background] We want to run perf in daemon mode and collect the traces when the exception (e.g., machine crashes, app performance goes down) appears. Perf may run for a long time (from days to weeks or even months), since we do not know when the exception will appear at all, however it

[PATCH 03/38] drm/i915: fix handling gen8_emit_flush_coherentl3_wa result

2015-09-21 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

Re: [PATCH v3] tools lib traceevent: str addresses in heterogeneous arch environments

2015-09-21 Thread Steven Rostedt
On Mon, 21 Sep 2015 14:24:13 +0100 Kapileshwar Singh wrote: Thanks, this is better but one nit (below). > @@ -3754,13 +3754,31 @@ static void print_str_arg(struct trace_seq *s, void > *data, int size, >*/ > if (!(field->flags &

Re: [PATCH 3/5] 9p: Simplify the xattr handlers

2015-09-21 Thread Aneesh Kumar K.V
Andreas Gruenbacher writes: > The generic_{get,set,remove}xattr inode operations use the xattr name prefix > to > decide which of the defined xattr handlers to call, then call the appropriate > handler's get or set operation. The name suffix is passed to the get

[PATCH 2/2] mm/memcontrol: make mem_cgroup_inactive_anon_is_low return bool

2015-09-21 Thread Yaowei Bai
This patch makes mem_cgroup_inactive_anon_is_low return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/memcontrol.h | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [RFC v2] kdbus: use LSM hooks to restrict ability to send file descriptors

2015-09-21 Thread David Herrmann
Hi On Mon, Sep 21, 2015 at 11:54 AM, Paul Osmialowski wrote: > The goal of this patch is to reproduce on kdbus the same behavior > that is expressed by Unix Domain Sockets when it comes to restricting > ability to pass opened file descriptors. > > Signed-off-by: Paul

[PATCH 02/10] mm, page_alloc: Remove unnecessary recalculations for dirty zone balancing

2015-09-21 Thread Mel Gorman
File-backed pages that will be immediately written are balanced between zones. This heuristic tries to avoid having a single zone filled with recently dirtied pages but the checks are unnecessarily expensive. Move consider_zone_balanced into the alloc_context instead of checking bitmaps multiple

Re: [PATCH 12/12] mm, page_alloc: Only enforce watermarks for order-0 allocations

2015-09-21 Thread Mel Gorman
On Fri, Sep 18, 2015 at 03:56:21PM +0900, Joonsoo Kim wrote: > On Wed, Sep 09, 2015 at 01:39:01PM +0100, Mel Gorman wrote: > > On Tue, Sep 08, 2015 at 05:26:13PM +0900, Joonsoo Kim wrote: > > > 2015-08-24 21:30 GMT+09:00 Mel Gorman : > > > > The primary purpose of

Re: [PATCH 11/12] mm, page_alloc: Reserve pageblocks for high-order atomic allocations on demand

2015-09-21 Thread Mel Gorman
On Fri, Sep 18, 2015 at 03:38:35PM +0900, Joonsoo Kim wrote: > > > And, there is some mismatch that check atomic high-order allocation. > > > In some place, you checked __GFP_ATOMIC, but some other places, > > > you checked ALLOC_HARDER. It is better to use unified one. > > > Introducing helper

Re: [PATCH linux-next v9 2/3] mfd: devicetree: add bindings for Atmel Flexcom

2015-09-21 Thread Cyrille Pitchen
Hi Rob, Le 10/09/2015 02:06, Rob Herring a écrit : > On 09/09/2015 10:45 AM, Cyrille Pitchen wrote: >> Hi Rob, >> >> Le 09/09/2015 01:40, Rob Herring a écrit : >>> On 09/01/2015 09:46 AM, Cyrille Pitchen wrote: This patch documents the DT bindings for the Atmel Flexcom which will be

Re: [PATCH v2 1/2] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2015-09-21 Thread Paolo Bonzini
On 21/09/2015 10:46, Ingo Molnar wrote: > Or we could extend exception table entry encoding to include a 'warning bit', > to > not bloat the kernel. If the exception handler code encounters such an > exception > it would generate a one-time warning for that entry, but otherwise not crash >

[RFC][PATCH 6/9] zram: make stream find and release functions static

2015-09-21 Thread Sergey Senozhatsky
Hide (make static) zstrm find and release function and introduce zcomp_compress_begin()/zcomp_compress_end(). We will have begin and end functions around compression (this patch) and decompression (next patch). So the work flow is evolving to: zstrm = foo_begin(); foo(zstrm);

[RFC][PATCH 2/9] crypto/lzo: set CRYPTO_ALG_TFM_MAY_SHARE

2015-09-21 Thread Sergey Senozhatsky
Signed-off-by: Sergey Senozhatsky --- crypto/lzo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/lzo.c b/crypto/lzo.c index 4b3e925..994667e 100644 --- a/crypto/lzo.c +++ b/crypto/lzo.c @@ -82,7 +82,8 @@ static int

[RFC][PATCH 5/9] crypto/842: set CRYPTO_ALG_TFM_MAY_SHARE

2015-09-21 Thread Sergey Senozhatsky
Signed-off-by: Sergey Senozhatsky --- crypto/842.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/842.c b/crypto/842.c index 98e387e..579be68 100644 --- a/crypto/842.c +++ b/crypto/842.c @@ -56,7 +56,8 @@ static struct crypto_alg alg =

[RFC][PATCH 4/9] crypto/lz4hc: set CRYPTO_ALG_TFM_MAY_SHARE

2015-09-21 Thread Sergey Senozhatsky
Signed-off-by: Sergey Senozhatsky --- crypto/lz4hc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/lz4hc.c b/crypto/lz4hc.c index a1d3b5b..34ef3de 100644 --- a/crypto/lz4hc.c +++ b/crypto/lz4hc.c @@ -78,7 +78,8 @@ static int

[RFC][PATCH 7/9] zram: pass zstrm down to decompression path

2015-09-21 Thread Sergey Senozhatsky
Introduce zcomp_decompress_begin()/zcomp_decompress_end() as a preparation for crypto API-powered zcomp. Change zcomp_decompress() signature to require zstrm parameter. Unlike zcomp_compress_begin(), zcomp_decompress_begin() may return zstrm if currently selected compression backend require

[RFC][PATCH 1/9] crypto: introduce CRYPTO_ALG_TFM_MAY_SHARE flag

2015-09-21 Thread Sergey Senozhatsky
Set CRYPTO_ALG_TFM_MAY_SHARE ->cra_flags when algorithm support shared tfm. Signed-off-by: Sergey Senozhatsky --- include/linux/crypto.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index

[RFC][PATCH 3/9] crypto/lz4: set CRYPTO_ALG_TFM_MAY_SHARE

2015-09-21 Thread Sergey Senozhatsky
Signed-off-by: Sergey Senozhatsky --- crypto/lz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/lz4.c b/crypto/lz4.c index aefbcea..ca48de1 100644 --- a/crypto/lz4.c +++ b/crypto/lz4.c @@ -78,7 +78,8 @@ static int

[RFC][PATCH 0/9] use CRYPTO_ALG_TFM_MAY_SHARE cra flag (full patchset)

2015-09-21 Thread Sergey Senozhatsky
RFC resend reason: git (2.6.0-rc2) has crashed and spme patches were not sent out. Sorry for the noise. === This patch set implements a bit different approach to shared tfm. It defines a new CRYPTO_ALG_TFM_MAY_SHARE ->cra_flag which each algorithm setups in its `static struct

Re: [PATCH 2/5] hv: add helpers to handle hv_util device state

2015-09-21 Thread Vitaly Kuznetsov
Olaf Hering writes: > On Mon, Sep 21, Vitaly Kuznetsov wrote: > >> I'd like to see a trace from the hang, it is not obvious to me how it >> happened and what caused it. (or if you have such hang scenario in your >> head, can you please reveal it?) > > There is no trace. I think

[PATCH 34/38] perf: remove invalid check

2015-09-21 Thread Andrzej Hajda
Unsigned values cannot be lesser than zero. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

Re: [PATCH v3] arm64: Introduce IRQ stack

2015-09-21 Thread Jungseok Lee
On Sep 21, 2015, at 9:19 PM, Jungseok Lee wrote: Dear all, Please ignore this. It won't work. I've typed a wrong command line in a terminal. Sorry for confusion. Best Regards Jungseok Lee > Currently, kernel context and interrupts are handled using a single > kernel stack navigated by

[PATCH v3 3/4] platform/chrome: Support reading/writing the vboot context

2015-09-21 Thread Emilio López
Some EC implementations include a small nvram space used to store verified boot context data. This patch offers a way to expose this data to userspace. Reviewed-by: Javier Martinez Canillas Signed-off-by: Emilio López --- Changes from v1:

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