Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-27 Thread Michal Hocko
On Sun 25-10-15 19:52:59, Tetsuo Handa wrote: [...] > Three approaches are proposed for fixing this silent livelock problem. > > (1) Use zone_page_state_snapshot() instead of zone_page_state() > when doing zone_reclaimable() checks. This approach is clear, > straightforward and easy to

Re: [PATCH V3 2/2] dmaengine: tegra-adma: Add support for Tegra210 ADMA

2015-10-27 Thread Jon Hunter
On 27/10/15 02:10, Vinod Koul wrote: > On Fri, Oct 16, 2015 at 08:35:19AM +0100, Jon Hunter wrote: >> +static inline void tdma_ch_write(struct tegra_adma_chan *tdc, >> +u32 reg, u32 val) > > Coding style issue here Yes will correct. >> +static int tegra_adma_alloc_chan_resources(str

Re: [PATCH] get_maintainer: Don't fallback to git by default

2015-10-27 Thread Wolfram Sang
> Anyone south of Wolfram and north of the I2C ML is unlikely to care. Actually, driver maintainers should care about their portion of it. Which leads me to the conclusion that driver maintainer entries in MAINTAINERS should have the relevant Kconfig symbol as a keyword match, probably. signat

Re: [PATCH v2] ASoC: wm9713: convert to regmap

2015-10-27 Thread Charles Keepax
On Mon, Oct 26, 2015 at 06:53:27PM +0100, Robert Jarzmik wrote: > Charles Keepax writes: > > > On Sat, Oct 24, 2015 at 11:37:07PM +0200, Robert Jarzmik wrote: > >> Convert the Wolfson WM9713 to regmap API. This will leverage all the > >> regmap functions (debug, registers update, etc ...). > >>

Re: [PATCH 1/3] dt-bindings: add document of mediatek efuse driver

2015-10-27 Thread andrew-ct chen
On Tue, 2015-10-27 at 13:32 +0800, andrew-ct chen wrote: > On Mon, 2015-10-26 at 10:55 +, Srinivas Kandagatla wrote: > > > > On 26/10/15 10:23, Sascha Hauer wrote: > > > On Mon, Oct 26, 2015 at 09:56:14AM +, Srinivas Kandagatla wrote: > > >> > > >> > > >> On 16/10/15 09:39, andrew-ct.c...@

Re: [PATCH 2/3] nvmem: mediatek: Add Mediatek EFUSE driver

2015-10-27 Thread andrew-ct chen
On Tue, 2015-10-27 at 13:32 +0800, andrew-ct chen wrote: > On Mon, 2015-10-26 at 09:56 +, Srinivas Kandagatla wrote: > > On 16/10/15 09:39, andrew-ct.c...@mediatek.com wrote: > > > From: Andrew-CT Chen > > > > > > Add Mediatek EFUSE driver to access hardware data like > > > thermal sensor cali

Re: [PATCH 2/3] usb: chipidea: udc: improve error handling on ep_queue

2015-10-27 Thread Felipe Ferreri Tonello
Hi Peter, Have you seen this patch? I saw that you didn't apply it to your tree, so I wonder if it is good or do I have to change anything. This patch is a bug fix for a memory leak, so it is quite important. -- Felipe On 18/09/15 18:30, e...@felipetonello.com wrote: > From: "Felipe F. Tonello

Re: [PATCH v2] iov: restore NumVFs register to 0 before return from virtfn_max_buses()

2015-10-27 Thread ethan zhao
Alexander, On 2015/10/27 13:48, Alexander Duyck wrote: On 10/15/2015 10:16 AM, Bjorn Helgaas wrote: Hi Ethan, On Wed, Sep 16, 2015 at 12:19:53PM +0900, Ethan Zhao wrote: After commit 4449f079722c ("PCI: Calculate maximum number of buses required for VFs"),the initial value of NumVFs register w

Re: [RFC PATCH] VFIO: Add a parameter to force nonthread IRQ

2015-10-27 Thread Paolo Bonzini
On 27/10/2015 07:35, Yunhong Jiang wrote: > On Mon, Oct 26, 2015 at 09:37:14PM -0600, Alex Williamson wrote: >> On Mon, 2015-10-26 at 18:20 -0700, Yunhong Jiang wrote: >>> An option to force VFIO PCI MSI/MSI-X handler as non-threaded IRQ, >>> even when CONFIG_IRQ_FORCED_THREADING=y. This is uself

RE: [PATCH 2/3] usb: chipidea: udc: improve error handling on ep_queue

2015-10-27 Thread Peter Chen
> Hi Peter, > > Have you seen this patch? I saw that you didn't apply it to your tree, so I > wonder if it is good or do I have to change anything. > > This patch is a bug fix for a memory leak, so it is quite important. > Would you please create it based on my tree, branch ci-for-usb-next? I

Re: [PATCHv12 26/37] mm: rework mapcount accounting to enable 4k mapping of THPs

2015-10-27 Thread Kirill A. Shutemov
On Tue, Oct 27, 2015 at 06:18:01AM +, Naoya Horiguchi wrote: > On Tue, Oct 06, 2015 at 06:23:53PM +0300, Kirill A. Shutemov wrote: > > We're going to allow mapping of individual 4k pages of THP compound. > > It means we need to track mapcount on per small page basis. > > > > Straight-forward ap

Re: [Intel-gfx] [Announcement] 2015-Q3 release of XenGT - a Mediated Graphics Passthrough Solution from Intel

2015-10-27 Thread Jike Song
Hi all, We are pleased to announce another update of Intel GVT-g for Xen. Intel GVT-g is a full GPU virtualization solution with mediated pass-through, starting from 4th generation Intel Core(TM) processors with Intel Graphics processors. A virtual GPU instance is maintained for each VM, with

Re: [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2015-10-27 Thread Jike Song
Hi all, We are pleased to announce another update of Intel GVT-g for KVM. Intel GVT-g is a full GPU virtualization solution with mediated pass-through, starting from 4th generation Intel Core(TM) processors with Intel Graphics processors. A virtual GPU instance is maintained for each VM, with

Re: [PATCH 2/3] lib/string_helpers.c: don't lose precision in string_get_size()

2015-10-27 Thread Andy Shevchenko
On Tue, 2015-10-27 at 09:36 +0100, Vitaly Kuznetsov wrote: > Andy Shevchenko writes: > > > On Mon, 2015-10-26 at 14:55 +0100, Vitaly Kuznetsov wrote: > > > string_get_size() loses precision when there is a remainder for > > > blk_size / divisor[units] and size is big enough. E.g > > > string_get_

[PATCH] vhost: fix performance on LE hosts

2015-10-27 Thread Michael S. Tsirkin
commit 2751c9882b947292fcfb084c4f604e01724af804 ("vhost: cross-endian support for legacy devices") introduced a minor regression: even with cross-endian disabled, and even on LE host, vhost_is_little_endian is checking is_le flag so there's always a branch. To fix, simply check virtio_legacy_is_li

[patch added to the 3.12 stable tree] x86/mm: Set NX on gap between __ex_table and rodata

2015-10-27 Thread Jiri Slaby
From: Stephen Smalley This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit ab76f7b4ab2397ffdd2f1eb07c55697d19991d10 upstream. Unused space between the end of __ex_table and the start of rodata can be left W+x in the kernel pa

[patch added to the 3.12 stable tree] sched/core: Fix TASK_DEAD race in finish_task_switch()

2015-10-27 Thread Jiri Slaby
From: Peter Zijlstra This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit 95913d97914f44db2b81271c2e2ebd4d2ac2df83 upstream. So the problem this patch is trying to address is as follows: CPU0

Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2015-10-27 Thread Roger Quadros
Hi Brian, On 26/10/15 23:23, Brian Norris wrote: > Hi Roger, > > I'm not too familiar with OMAP platforms, and I might have missed out on > prior discussions/context, so please forgive if I'm asking silly or old > questions here. No worries at all. > > On Fri, Sep 18, 2015 at 05:53:22PM +0300,

Re: [PATCH 05/11] dt-binding: Add ngpios property to GPIO controller node

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > Add ngpios property to the gpio controller's DT node so that controller > driver extracts total number of gpio lines present in controller > from DT and removes dependency on driver. > > Signed-off-by: Pramod Kumar > Reviewed-by: Ray Jui >

Re: [PATCH 01/11] dt-bindings: pinctrl: Optional DT property to support pin mappings

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > If GPIO controller's pins are muxed, pin-controller subsystem > need to be intimated by defining mapping between gpio and > pinmux controller. This patch adds required properties to > define this mapping via DT. > > Signed-off-by: Pramod Kuma

Re: [PATCH 02/11] pinctrl: Remove GPIO to Pinctrl pin mapping from driver

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > Remove gpio to pinctrl pin mapping code from driver and > address this through standard property "gpio-ranges". > > Signed-off-by: Pramod Kumar > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden Patch applied with a small subject tweak.

Re: [PATCH 1/4 v2] staging: ipath: ipath_driver: Use setup_timer

2015-10-27 Thread Leon Romanovsky
On Tue, Oct 27, 2015 at 11:19 AM, Dan Carpenter wrote: > On Sun, Oct 25, 2015 at 01:21:11PM +0200, Leon Romanovsky wrote: >> On Sun, Oct 25, 2015 at 12:17 PM, Muhammad Falak R Wani >> wrote: >> Please follow standard naming convention for the patches. >> It should be [PATCH v2 1/4] and not [PATCH

Re: [PATCH 03/11] dts: pinctrl: Add GPIO to Pinctrl pin mapping in DT

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > ASIU gpio controller's pins are muxed with pin-cntroller. > Add this mapping through property "gpio-ranges". > > Signed-off-by: Pramod Kumar > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden Reviewed-by: Linus Walleij Please funnel th

Re: [PATCH v4 3/7] usb: gadget: define free_ep_req as universal function

2015-10-27 Thread Robert Baldyga
On 10/27/2015 10:18 AM, Felipe Ferreri Tonello wrote: > Hi Robert, > > On 27/10/15 06:53, Robert Baldyga wrote: >> On 10/26/2015 05:55 PM, Felipe F. Tonello wrote: >>> This function is shared between gadget functions, so this avoid unnecessary >>> duplicated code and potentially avoid memory leaks

Re: [PATCH] btrfs: pass proper enum type to start_transaction()

2015-10-27 Thread David Sterba
On Sun, Oct 25, 2015 at 07:35:44PM +, Alexandru Moise wrote: > Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> Reviewed-by: David Sterba -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

[patch NOT added to the 3.12 stable tree] x86/efi: Fix boot crash by mapping EFI memmap entries bottom-up at runtime, instead of top-down

2015-10-27 Thread Jiri Slaby
From: Matt Fleming This patch does NOT apply to the 3.12 stable tree. If you still want it applied, please provide a backport. === commit a5caa209ba9c29c6421292e7879d2387a2ef39c9 upstream. Beginning with UEFI v2.5 EFI_PROPERTIES_TABLE was introduced that signals that the firmware P

Re: [PATCH 04/11] dt-binding: Add new compatible string for gpio controller driver

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > This new compatible string, "brcm,iproc-gpio", should be used for > all new iproc-based future SoCs. > > Signed-off-by: Pramod Kumar > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden Patch applied with subject tweak. Think about Rob's

[RESEND PATCH] scsi_sysfs: Fix queue_ramp_up_period return code

2015-10-27 Thread Peter Oberparleiter
Writing a number to /sys/bus/scsi/devices//queue_ramp_up_period returns the value of that number instead of the number of bytes written. This behavior can confuse programs expecting POSIX write() semantics. Fix this by returning the number of bytes written instead. Signed-off-by: Peter Oberparleit

Re: [PATCH 07/11] pinctrl: use ngpios propety from DT

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > Since identical hardware is used in several instances and all pins > are not routed to pinctrl hence getting total number of gpios from > DT make more sense hence stop using total number of gpios pins from > drivers and extract it from DT. >

[PATCH v2 2/2] hwmon: ina2xx: give precedence to DT over checking for platform data.

2015-10-27 Thread Marc Titinger
when checking for the value of the shunt resistor. Signed-off-by: Marc Titinger --- v2: - do part type init earlier to regroup rshunt value checking and assignement. drivers/hwmon/ina2xx.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) dif

[PATCH v2 1/2] hwmon: ina2xx: convert driver to using regmap

2015-10-27 Thread Marc Titinger
Any sysfs "show" read access from the client app will result in reading all registers (8 with ina226). Depending on the host this can limit the best achievable read rate. This changeset allows for individual register accesses through regmap. Tested with BeagleBone Black (Baylibre-ACME) and ina226

[PATCH V5 Base on RC7 2/3] Add reset controller for hi6220 SoC platform.

2015-10-27 Thread Chen Feng
reset: add driver for hi6220 reset controller Signed-off-by: Chen Feng --- drivers/reset/Kconfig | 1 + drivers/reset/Makefile | 1 + drivers/reset/hisilicon/Kconfig| 5 ++ drivers/reset/hisilicon/Makefile | 1

[PATCH V5 Base on RC7 3/3] Add reset controller for hi6220 SoC platform.

2015-10-27 Thread Chen Feng
reset: add driver for hi6220 reset controller Signed-off-by: Chen Feng --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 3f03380..3f055e2 100644 ---

[PATCH V5 Base on RC7 1/3] Add DT bindings documentation for hi6220 SoC reset controller.

2015-10-27 Thread Chen Feng
docs: dts: Added documentation for hi6220 Reset Controller Signed-off-by: Chen Feng --- .../bindings/reset/hisilicon,hi6220-reset.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt diff -

Re: [PATCH v3 00/10] Add tune support of Mediatek MMC driver

2015-10-27 Thread Ulf Hansson
On 27 October 2015 at 07:24, Chaotian Jing wrote: > Change in v3: > Fix checkpatch errors and warnings for patch 8 > Split patch 9, make DT parts enabling hw reset separately > > Change in v2: > Drop the 400mhz and use assigned-clock-parents to instead > Split the original tune patch to several in

Re: [PATCH 08/11] pinctrl: Add new compatible string to GPIO controller driver

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 7:43 AM, Pramod Kumar wrote: > This compatible string should be used for all new iproc based future > SoCs having the same GPIO controller hardware. > > Signed-off-by: Pramod Kumar > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden Stopped applying patches, this looks

Re: [PATCH v2 2/3] gpio: arizona: Support Cirrus Logic CS47L24 and WM1831

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 4:13 PM, Richard Fitzgerald wrote: > The CS47L24 and WM1831 codecs only have two GPIO lines, but are > otherwise similar to the WM8280. > > Signed-off-by: Richard Fitzgerald Acked-by: Linus Walleij Lee can merge this into the MFD tree with patch 1/3 if he likes, I gues

Re: [PATCH 08/10] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-10-27 Thread Dan Carpenter
On Mon, Oct 26, 2015 at 10:49:19AM -0500, J. German Rivera wrote: > -error_cleanup_open: > +dprc_scan_container_error: > (void)dprc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); The error label was better in the original code. A "goto error_cleanup_open", that tells you what the goto does. "

Re: [PATCH v10] gpio: Add GPIO support for the ACCES 104-IDIO-16

2015-10-27 Thread Linus Walleij
On Mon, Oct 19, 2015 at 6:59 PM, William Breathitt Gray wrote: > The ACCES 104-IDIO-16 family of PC/104 utility boards feature 16 > optically isolated inputs and 16 optically isolated FET solid state > outputs. This driver provides GPIO support for these 32 channels of > digital I/O. Change-of-St

Re: [PATCH] pinctrl: uniphier: set input-enable before pin-muxing

2015-10-27 Thread Linus Walleij
On Tue, Oct 20, 2015 at 10:25 AM, Masahiro Yamada wrote: > While IECTRL is disabled, input signals are pulled-down internally. > If pin-muxing is set up first, glitch signals (Low to High transition) > might be input to hardware blocks. > > Bad case scenario: > [1] The hardware block is already r

Re: [PATCH] mmc: pwrseq: Use highest priority for eMMC restart handler

2015-10-27 Thread Ulf Hansson
On 21 October 2015 at 17:15, Javier Martinez Canillas wrote: > The pwrseq_emmc driver does a eMMC card reset before a system reboot to > allow broken or limited ROM boot-loaders (that don't have an eMMC reset > logic) to be able to read the second stage from the eMMC. > > But this has to be called

Re: [PATCH] get_maintainer: Don't fallback to git by default

2015-10-27 Thread Lee Jones
On Tue, 27 Oct 2015, Wolfram Sang wrote: > > Anyone south of Wolfram and north of the I2C ML is unlikely to care. > > Actually, driver maintainers should care about their portion of it. > Which leads me to the conclusion that driver maintainer entries in > MAINTAINERS should have the relevant Kcon

Re: [PATCH v2 17/17] scsi: ufs-qcom: fix compilation warnings

2015-10-27 Thread ygardi
> On 10/26/2015 08:41 AM, Yaniv Gardi wrote: >> Tnis patch fixes the following compilation warnings: >> ...ufs-qcom.c:1201:40: >> warning: incorrect type in argument 1 (different address spaces) >> ...ufs-qcom.c:1201:40: >> expected void const *ptr >> ...ufs-qcom.c:1201:40: >> got vo

Re: [PATCH] clocksource/drivers/tegra: allow timer irq affinity change

2015-10-27 Thread Daniel Lezcano
On 10/25/2015 04:40 PM, Lucas Stach wrote: Allow the timer core to change the smp affinity of the broadcast timer irq by setting CLOCK_EVT_FEAT_DYNIRQ flag. This reduces interrupt pressure and wakeups on CPU0 as well as vastly reducing the number of timer broadcast IPIs. Did you test this patc

Re: [PATCH 3/3] megaraid_sas: return -ENOMEM when create DMA pool for cmd frames failed

2015-10-27 Thread Johannes Thumshirn
On Tue, 2015-10-27 at 16:26 +0800, Weidong Wang wrote: > when create DMA pool for cmd frames failed, we should return -ENOMEM, > instead of 0. > In some case in: > > megasas_init_adapter_fusion() > > -->megasas_alloc_cmds() >    -->megasas_create_frame_pool >   create DMA pool

Re: [PATCH v3 1/3] clocksource: mtk_timer: add pr_fmt define

2015-10-27 Thread Daniel Lezcano
On 10/26/2015 12:21 AM, Alexey Klimov wrote: It's a bit unclear what subsystem/driver emits some messages to dmesg in function mtk_init_timer(). Use pr_fmt to auto-prefix the messages appropriately. Acked-by: Matthias Brugger Signed-off-by: Alexey Klimov --- Patches applied for next release.

Re: [PATCH v3 13/15] scsi: ufs: add missing memory barriers

2015-10-27 Thread ygardi
>> 2015-10-25 23:40 GMT+09:00 : 2015-09-02 19:13 GMT+09:00 Yaniv Gardi : > Performing several writes to UFS host controller registers has > no gurrantee of ordering, so we must make sure register writes > to setup request list base address etc. are performed before the > run/s

Re: [PATCH 2/4] thermal: rockchip: ensure the otp state before resetting the controller

2015-10-27 Thread Linus Walleij
On Wed, Oct 21, 2015 at 3:41 AM, Caesar Wang wrote: >> On Tue, Oct 20, 2015 at 2:11 AM, Caesar Wang wrote: >> You'd still want to have a bindings change to describe "init", but at >> least you shouldn't need any code changes. > > Okay, https://patchwork.kernel.org/patch/5055741/ that's working f

Re: [PATCH 2/3] megaraid_sas: Convert printk to printk_

2015-10-27 Thread Johannes Thumshirn
On Tue, 2015-10-27 at 16:26 +0800, Weidong Wang wrote: > Reduce object size a little by using pr_ > calls instead of printk(KERN_. > > Signed-off-by: Weidong Wang > --- >  drivers/scsi/megaraid/megaraid_sas_base.c | 14 +++--- >  1 file changed, 7 insertions(+), 7 deletions(-) > > diff --

Re: [PATCH v3] drivers/pinctrl: Add the concept of an "init" state

2015-10-27 Thread Linus Walleij
On Wed, Oct 21, 2015 at 6:15 AM, Douglas Anderson wrote: > For pinctrl the "default" state is applied to pins before the driver's > probe function is called. This is normally a sensible thing to do, > but in some cases can cause problems. That's because the pins will > change state before the d

Re: [PATCH 1/3] megaraid_sas: Convert dev_printk to dev_

2015-10-27 Thread Johannes Thumshirn
On Tue, 2015-10-27 at 16:26 +0800, Weidong Wang wrote: > Reduce object size a little by using dev_ > calls instead of dev_printk(KERN_. > > Signed-off-by: Weidong Wang > --- >  drivers/scsi/megaraid/megaraid_sas_base.c | 68 +++ > >  1 file changed, 34 insertions(+), 3

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-27 Thread Jarkko Sakkinen
On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: > On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: > > Reference to the 'np' node is dropped before dereferencing the 'sizep' and > > 'basep' pointers, which could by then point to junk if the node has been > > free

Re: [PATCH -next] gpio: generic: Revert to old error handling in bgpio_map

2015-10-27 Thread Linus Walleij
On Wed, Oct 21, 2015 at 9:12 AM, Guenter Roeck wrote: > Returning an error instead of NULL in bgpio_map if > platform_get_resource_byname does not find a resource was introduced with > commit cf3f2a2c8bae ("gpio: generic: improve error handling in bgpio_map"). > This results in several qemu runti

[RFC v5 6/8] kmsg: add ioctl for adding and deleting kmsg* devices

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to add/delete kmsg* buffers from userspace. Adds following ioctl for main kmsg device adding and deleting additional kmsg devices: * KMSG_CMD_BUFFER_ADD * KMSG_CMD_BUFFER_DEL Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski

[RFC v5 2/8] printk: add one function for storing log in proper format

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski Preparation commit for future changes purpose. Separate code responsible for storing log message in proper format from operations on consoles by putting it in another function. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- kernel/printk/pr

[RFC v5 8/8] kmsg: selftests

2015-10-27 Thread Paul Osmialowski
This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski --- samples/kmsg/kmsg-api.h| 44 +++ tools/testing/selftests/Makefile

Re: [PATCH] get_maintainer: Don't fallback to git by default

2015-10-27 Thread Wolfram Sang
> act as reviewers, they should have a mention in MAINTAINERS for > get_maintiner.pl to pull information from: > > R: Designated reviewer: FullName >These reviewers should be CCed on patches. I think this should do. Interested parties should start by scanning the mailing list :) signatur

Re: [PATCH] vhost: fix performance on LE hosts

2015-10-27 Thread Greg Kurz
On Tue, 27 Oct 2015 11:37:39 +0200 "Michael S. Tsirkin" wrote: > commit 2751c9882b947292fcfb084c4f604e01724af804 ("vhost: cross-endian > support for legacy devices") introduced a minor regression: even with > cross-endian disabled, and even on LE host, vhost_is_little_endian is > checking is_le fl

[RFC v5 5/8] kmsg: add function for adding and deleting additional buffers

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski Additional kmsg buffers should be created and deleted dynamically. Adding two functions * kmsg_sys_buffer_add() creates additional kmsg buffer returning minor * kmsg_sys_buffer_del() deletes one based on provided minor Signed-off-by: Marcin Niesluchowski Signed-off-b

[RFC v5 4/8] kmsg: add additional buffers support to memory class

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski Memory class does not support additional kmsg buffers. Add additional kmsg buffers support to: * devnode() callback of "mem" class * file operations of major "mem" character device Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- drivers/char

[RFC v5 7/8] kmsg: add ioctl for kmsg* devices operating on buffers

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to clear additional kmsg buffers, get size of them or know what size should be passed to read file operation (too small size causes it to retrun -EINVAL). Add following ioctls which solve those issues: * KMSG_CMD_GET_BUF_SIZE * KMSG_CMD_GET_READ

[RFC v5 0/8] Additional kmsg devices

2015-10-27 Thread Paul Osmialowski
Dear All, This is the fifth iteration of Marcin Niesluchowski's serie of patches extending kmsg interface with ability to dynamically create (and destroy) kmsg-like devices which can be used by userspace for logging. This iteration introduces two changes: 1. selftests are rearranged to use kself

Re: [PATCH 4.2 25/54] memcg: convert threshold to bytes

2015-10-27 Thread Michal Hocko
On Sun 25-10-15 17:32:10, Michal Hocko wrote: > On Sat 24-10-15 14:46:58, Ben Hutchings wrote: > [...] > > > --- a/mm/memcontrol.c > > > +++ b/mm/memcontrol.c > > > @@ -3687,6 +3687,7 @@ static int __mem_cgroup_usage_register_e > > >  >> ret = page_counter_memparse(args, "-1", &threshold);

[RFC v5 3/8] kmsg: introduce additional kmsg devices support

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski kmsg device provides operations on cyclic logging buffer used mainly by kernel but also in userspace by privileged processes. Additional kmsg devices keep the same log format but may be added dynamically with custom size. Signed-off-by: Marcin Niesluchowski Signed-of

[RFC v5 1/8] printk: extract kmsg-related routines from printk.c to kmsg.c

2015-10-27 Thread Paul Osmialowski
Following suggestions regarding printk.c code bloat, I prepared this patch which moves kmsg-related routines to new file, kmsg.c This is premilinary step needed for an attempt to extent kmsg interface with ability to dynamically create (and destroy) kmsg-like devices. Signed-off-by: Paul Osmialow

RE: [PATCH 1/3] megaraid_sas: Convert dev_printk to dev_

2015-10-27 Thread Kashyap Desai
> > + dev_dbg(&instance->pdev->dev, "Error copying out > > cmd_status\n"); > > error = -EFAULT; > > } > > > > Reviewed-by: Johannes Thumshirn We will consider all three patches for future submission. As of now we have two patch set pending to be committed. We are working

[PATCH] usb: chipidea: udc: improve error handling on _hardware_enqueue

2015-10-27 Thread Felipe F. Tonello
_hardware_enqueue() didn't check for errors when using add_td_to_list() which can fail if dma_pool_alloc fails, thus causing a kernel panic when lastnode->ptr is NULL. Signed-off-by: Felipe F. Tonello --- drivers/usb/chipidea/udc.c | 19 ++- 1 file changed, 14 insertions(+), 5 de

[PATCH] memcg: Fix thresholds for 32b architectures.

2015-10-27 Thread mhocko
From: Michal Hocko 424cdc141380 ("memcg: convert threshold to bytes") has fixed a regression introduced by 3e32cb2e0a12 ("mm: memcontrol: lockless page counters") where thresholds were silently converted to use page units rather than bytes when interpreting the user input. The fix is not complet

Re: [PATCH] keys, trusted: select TPM2 hash algorithm

2015-10-27 Thread Jarkko Sakkinen
n Mon, Oct 26, 2015 at 07:44:39AM +0200, Jarkko Sakkinen wrote: > On Sun, Oct 25, 2015 at 03:21:31PM -0400, Mimi Zohar wrote: > > On Sat, 2015-10-24 at 15:42 +0300, Jarkko Sakkinen wrote: > > > Added 'hashalg=' option for selecting the hash algorithm. > > > > > > Currently available options are: >

[PATCH v5 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before new transfers

2015-10-27 Thread Yaniv Gardi
Clear the UFS data structures before sending new request. The SCSI command is sent to the device within the UFS UPIU request. As part of the transfer UPIU preparation, the SCSI command is copied to the UPIU structure according to the SCSI command size. As different SCSI commands differ in size fro

[PATCH v5 00/15] Big fixes, retries, handle a race condition

2015-10-27 Thread Yaniv Gardi
Important: This serie of 15 small patches should be pushed after the series of 8 patches "Fix error message and present UFS variant probe" V5: removed un-necessary wmb() V4: fixing a few comments from reviewers V3: removed specific calls to wmb() since they are redundant. V2: a few minor change

[PATCH v5 12/15] scsi: ufs: reduce the interrupts for power mode change requests

2015-10-27 Thread Yaniv Gardi
DME commands such as Hibern8 enter/exit and gear switch generate 2 completion interrupts, one for confirmation that command is received by local UniPro and 2nd one is the final confirmation after communication with remote UniPro. Currently both of these completions are registered as interrupt event

[PATCH v5 14/15] scsi: ufs: commit descriptors before setting the doorbell

2015-10-27 Thread Yaniv Gardi
Add a write memory barrier to make sure descriptors prepared are actually written to memory before ringing the doorbell. We have also added the write memory barrier after ringing the doorbell register so that controller sees the new request immediately. Signed-off-by: Gilad Broner Signed-off-by:

[PATCH v5 08/15] scsi: ufs: add retries to dme_peer get and set attribute

2015-10-27 Thread Yaniv Gardi
The dme_peer get/set attribute commands are prone to errors, therefore we add three retries for the UIC command sending. Error code returned from ufshcd_send_uic_cmd() is checked, and unless it was successful or the retries have finished, another command will be sent. Signed-off-by: Lee Susman Si

[PATCH v5 15/15] scsi: ufs: add wrapper for retrying sending query attribute

2015-10-27 Thread Yaniv Gardi
Sometimes queries from the device might return a failure so it is recommended to retry sending the query, before giving up. This change adds a wrapper to retry sending a query attribute, in cases where we need to wait longer, before we continue, or before reporting a failure. Signed-off-by: Yaniv

[PATCH v5 06/15] scsi: ufs: avoid exception event handler racing with PM callbacks

2015-10-27 Thread Yaniv Gardi
If device raises the exception event in the response to the commands sent during the runtime/system PM callbacks, exception event handler might run in parallel with PM callbacks and may see unclocked register accesses. This change fixes this issue by not scheduling the exception event handler while

[PATCH v5 09/15] scsi: ufs: add retries for hibern8 enter

2015-10-27 Thread Yaniv Gardi
If hibern8 enter command fails then UFS link state may be unknown which may result into timeout of all the commands issued after failure. This change does 2 things (for pre-defined number of retry counts) after hibern8 enter failure: 1. Recovers the UFS link to active state 2. If link is recovered

[PATCH v5 13/15] scsi: ufs: add missing memory barriers

2015-10-27 Thread Yaniv Gardi
Performing several writes to UFS host controller registers has no guarantee of ordering, so we must make sure register writes to setup request list base address etc. are performed before the run/stop register is enabled. In addition, when setting up a task request, we must make sure the updating of

[PATCH v5 10/15] scsi: ufs: fix error recovery after the hibern8 exit failure

2015-10-27 Thread Yaniv Gardi
Hibern8 exit can be called from 3 different context: - ufshcd_hibern8_exit_work - ufshcd_ungate_work - runtime/system resume If hibern8 exit fails for some reason then we try to bring the link to active state by link startup but this recovery mechanism results into deadlock or errors f

[PATCH v5 11/15] scsi: ufs: retry failed query flag requests

2015-10-27 Thread Yaniv Gardi
UFS flag query requests may fail sometimes due to timeouts etc. Add a wrapper function to retry up to 10 times in case of such failure, similar to retries being made for attribute queries. Signed-off-by: Gilad Broner Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufshcd.c | 63 +++

Re: [PATCH 8/9] parport: fix a trivial typo

2015-10-27 Thread Sudip Mukherjee
On Sun, Oct 18, 2015 at 11:31:14PM +0800, Geliang Tang wrote: > s/regsiter/register/ > > Signed-off-by: Geliang Tang > --- Hi Greg, I have applied it to my local tree as of now. Will forward you this one along with some other cheanup patches. regards sudip -- To unsubscribe from this list: send

[PATCH v5 07/15] scsi: ufs: set REQUEST_SENSE command size to 18 bytes

2015-10-27 Thread Yaniv Gardi
According to UFS device specification REQUEST_SENSE command can only report back up to 18 bytes of data. Signed-off-by: Gilad Broner Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufshcd.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd

Re: [PATCH] ahci: Add Marvell 88se91a2 device id

2015-10-27 Thread Johannes Thumshirn
On Tue, 2015-10-20 at 09:31 +0200, Johannes Thumshirn wrote: > Add device id for Marvell 88se91a2 Tejun, ping? -- 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-i

[PATCH v5 05/15] scsi: ufs: increase fDeviceInit query response timeout

2015-10-27 Thread Yaniv Gardi
fDeviceInit query response time for some devices is too long that default query request timeout of 100ms may not be enough. Experiments show that fDeviceInit response sometimes takes 500ms so to be on safer side this change sets the timeout to 600ms. Without this change, we might unnecessarily have

[PATCH v5 04/15] scsi: ufs: clear outstanding_request bit in case query timeout

2015-10-27 Thread Yaniv Gardi
When sending a query to the device returns with a timeout error, we clear the corresponding bit in the DOORBELL register but we don't clear the outstanding_request field as we should. This patch fixes this bug. Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufshcd.c | 22 --

[PATCH v5 02/15] scsi: ufs: clear fields UTRD, UPIU req and rsp before new transfers

2015-10-27 Thread Yaniv Gardi
Some of the data structures (like response UPIU) and/or its elements (unused fields) should be cleared before sending out the respective command to UFS device. This change clears the UPIU response data structure for query commands and NOP command before sending out the command. We also initialize

[PATCH v5 03/15] scsi: ufs: verify command tag validity

2015-10-27 Thread Yaniv Gardi
A race condition appear to exist between request completion when scsi_done() is called to end the request and set the tag back to -1 (at blk_queue_end_tag() scsi_end_request), and scsi layer error handling which aborts the command and reuses it to request sense data. Sending the request sense is do

Re: [PATCH v2 0/5] crypto: add algif_akcipher user space API

2015-10-27 Thread Stephan Mueller
Am Dienstag, 27. Oktober 2015, 18:19:01 schrieb David Woodhouse: Hi David, > >That's largely orthogonal to the point Marcel was making. > >The point is that akcipher is limited to using keys for which we have >the private key material available directly in software. We cannot Agreed. >expose tha

Re: [PATCH] arm64: dts: mediatek: mt8173 PSCI-1.0 support

2015-10-27 Thread Matthias Brugger
On 28/08/15 04:11, fan.c...@mediatek.com wrote: From: Fan Chen This patch adds psci comatible properties to support all mandatory functions of PSCI-1.0, PSCI-0.2 and PSCI-0.1, and system suspend can be supported in PSCI-1.0. Signed-off-by: Fan Chen --- Applied to v4.4-next/arm64 Thanks,

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-27 Thread Tejun Heo
Hello, Michal. On Tue, Oct 27, 2015 at 10:16:03AM +0100, Michal Hocko wrote: > > Seriously, nobody goes full-on RUNNING. > > Looping with cond_resched seems like general pattern in the kernel when > there is no clear source to wait for. We have io_schedule when we know > we should wait for IO (in

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-27 Thread Tejun Heo
On Tue, Oct 27, 2015 at 10:22:31AM +0100, Michal Hocko wrote: ... > stable kernels without causing any other regressions. 2) is the way > to move forward for next kernels and we should really think whether > WQ_MEM_RECLAIM should imply also WQ_HIGHPRI by default. If there is a > general consensus t

[PATCH RESEND v2 net-next] net: hisilicon: updates HNS config and documents

2015-10-27 Thread huangdaode
From: yankejian updates the bindings documents and dtsi file according to the review comments[https://lkml.org/lkml/2015/9/21/670] from Rob Herring Acked-by: Rob Herring Signed-off-by: yankejian Signed-off-by: huangdaode --- Documentation/devicetree/bindings/net/hisilicon-hns-mdio.txt | 2 +

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable()checks

2015-10-27 Thread Tetsuo Handa
Michal Hocko wrote: > > On Fri, Oct 23, 2015 at 01:11:45PM +0200, Michal Hocko wrote: > > > > The problem here is not lack > > > > of execution resource but concurrency management misunderstanding the > > > > situation. > > > > > > And this sounds like a bug to me. > > > > I don't know. I can b

[PATCH] drivers:staging:wlan_ng Fix Alignment should match open parenthesis

2015-10-27 Thread Bogicevic Sasa
This fixes " Alignment should match open parenthesis" messages from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/wlan-ng/prism2usb.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/sta

Re: [PATCH 1/4 v2] staging: ipath: ipath_driver: Use setup_timer

2015-10-27 Thread Dan Carpenter
On Tue, Oct 27, 2015 at 11:45:18AM +0200, Leon Romanovsky wrote: > On Tue, Oct 27, 2015 at 11:19 AM, Dan Carpenter > wrote: > > On Sun, Oct 25, 2015 at 01:21:11PM +0200, Leon Romanovsky wrote: > >> On Sun, Oct 25, 2015 at 12:17 PM, Muhammad Falak R Wani > >> wrote: > >> Please follow standard nam

Re: [PATCH V2] clockevents/drivers/mtk: Fix spurious interrupt leading to crash

2015-10-27 Thread Matthias Brugger
Hi Daniel, On 26/08/15 16:25, Daniel Lezcano wrote: On 08/25/2015 03:21 PM, Yingjoe Chen wrote: Tested-by: Yingjoe Chen Applied to my tree for 4.4. -- Daniel Kevin found a regression in v4.3 which will need this patch to fix it [1]. Can you apply it to your clockevents/4.3-fixes branc

Re: [PATCH] Staging:drivers:wlan_ng: code style issues

2015-10-27 Thread Bogicevic Sasa
Thanks, I get it now, Ill will group all changes and resend the patches On 10/27/2015, Greg KH wrote: On Mon, Oct 26, 2015 at 11:21:48PM +0100, Bogicevic Sasa wrote: On 10/26, Bogicevic Sasa wrote: >Thanks for the review just sent the new patch, >since change is very trivial I believe one liner

Re: [PATCH v10] gpio: Add GPIO support for the ACCES 104-IDIO-16

2015-10-27 Thread Simon Guinot
On Tue, Oct 27, 2015 at 11:06:58AM +0100, Linus Walleij wrote: > On Mon, Oct 19, 2015 at 6:59 PM, William Breathitt Gray > wrote: > > > The ACCES 104-IDIO-16 family of PC/104 utility boards feature 16 > > optically isolated inputs and 16 optically isolated FET solid state > > outputs. This driver

Re: [PATCH V2] clockevents/drivers/mtk: Fix spurious interrupt leading to crash

2015-10-27 Thread Daniel Lezcano
On 10/27/2015 12:11 PM, Matthias Brugger wrote: Hi Daniel, On 26/08/15 16:25, Daniel Lezcano wrote: On 08/25/2015 03:21 PM, Yingjoe Chen wrote: Tested-by: Yingjoe Chen Applied to my tree for 4.4. -- Daniel Kevin found a regression in v4.3 which will need this patch to fix it [1]. Can

[PATCH 2/2] drivers:staging:wlan_ng Fix no space is necessary after a cast

2015-10-27 Thread Bogicevic Sasa
This fixes "No space is necessary after a cast" messages from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/wlan-ng/prism2usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c

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