[PATCH 02/27] mtd: nand: add an mtd_to_nand() helper

2015-11-16 Thread Boris Brezillon
Some drivers are retrieving the nand_chip pointer using the container_of macro on a struct wrapping both the nand_chip and the mtd_info struct while the standard way of retrieving this pointer is through mtd->priv. Provide an helper to do that. Signed-off-by: Boris Brezillon --- include/linux/mt

[PATCH 00/27] mtd: nand: refactor the NAND subsystem (part 1)

2015-11-16 Thread Boris Brezillon
Hello, This huge series aims at clarifying the relationship between the mtd and nand_chip structures and hiding NAND framework internals to NAND controller drivers. The first part of the series provide an mtd_to_nand() helper to hide the way mtd and nand_chip are linked together. The second part

[PATCH v4 28/32] scsi: hisi_sas: add scan finished and start

2015-11-16 Thread John Garry
Add functions for scsi host template scan_finished and scan_start methods Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 1 + drivers/scsi/hisi_sas/hisi_sas_main.c | 25 + 2 files changed, 26 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_s

[PATCH v4 18/32] scsi: hisi_sas: add v1 hardware register definitions

2015-11-16 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 389 + 1 file changed, 389 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c index e9aebce..9fe89bb 100644 --- a/drivers/scsi/hisi_sas/

Re: [Qemu-devel] [PATCH v4 4/4] devicetree: update documentation for fw_cfg ARM bindings

2015-11-16 Thread Gabriel L. Somlo
On Mon, Nov 16, 2015 at 09:38:18AM +0100, Paolo Bonzini wrote: > On 15/11/2015 03:07, Rob Herring wrote: > > We generally don't want DT docs to depend on other kernel documentation. > > DT docs do not contain a copy of the data sheets, either. There is no > reason to say how to use the device (an

Re: [PATCH] serial: imx: fix clk_prepare/unprepare usage

2015-11-16 Thread Marcus Folkesson
On Mon, Nov 16, 2015 at 01:16:25PM +0100, Uwe Kleine-König wrote: > On Thu, Nov 12, 2015 at 10:58:48AM +0100, Marcus Folkesson wrote: > > clk_prepare/unprapare APIs are not allowed in atomic context, so > > move prepare/unprepare to probe/remove and use clk_enable/disable > > instead. > > > > Sign

Re: spi: OF module autoloading is still broken (was: Re: m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading)

2015-11-16 Thread Mark Brown
On Fri, Nov 13, 2015 at 03:48:57PM -0800, Brian Norris wrote: > I suspect we'll have to fully support both spi_device_id tables (fully > supported already; if nothing else, to keep wildcard matching) and > of_match_tables (not fully supported for module loading), and in some > cases, the two will

[PATCH] staging: emxx_udc: use list_first_entry_or_null()

2015-11-16 Thread Geliang Tang
Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- drivers/staging/emxx_udc/emxx_udc.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c in

Re: [PATCH v4 02/32] devicetree: bindings: scsi: HiSi SAS

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 09:05:48PM +0800, John Garry wrote: > Add devicetree bindings for HiSilicon SAS driver. > > Signed-off-by: John Garry > Signed-off-by: Zhangfei Gao Acked-by: Rob Herring > --- > .../devicetree/bindings/scsi/hisilicon-sas.txt | 69 > ++ > 1 fil

Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-16 Thread Arnd Bergmann
On Monday 16 November 2015 14:34:50 Andreas Schwab wrote: > Arnd Bergmann writes: > > > ino_t seems to be the only other type in 'struct stat' that depends > > on _FILE_OFFSET_BITS in glibc. > > There is also blkcnt_t, and then there is fsblkcnt_t, fsfilcnt_t and > fsword_t in struct statfs. Ok

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-16 Thread Will Deacon
Hi Paul, On Thu, Nov 12, 2015 at 03:43:51PM -0800, Paul E. McKenney wrote: > On Thu, Nov 12, 2015 at 09:33:39PM +, Will Deacon wrote: > > I think we ended up concluding that smp_mb__after_unlock_lock is indeed > > required, but I don't think we should just resurrect the old definition, > > whi

Re: [PATCH v4 05/24] misc: max77693-haptic: use pwm_get_xxx() helpers where appropriate

2015-11-16 Thread Boris Brezillon
Hi Krzysztof, On Mon, 16 Nov 2015 22:10:40 +0900 Krzysztof Kozlowski wrote: > W dniu 16.11.2015 o 17:56, Boris Brezillon pisze: > > Use pwm_get_xxx() helpers instead of directly accessing the pwm->xxx field. > > Doing that will ease adaptation of the PWM framework to support atomic > > update. >

[PATCH 01/19] staging/wilc1000: remove unused functions

2015-11-16 Thread Arnd Bergmann
A number of symbols in the wilc1000 driver are completely unused and can be removed. This includes two variables that are only written but not read. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/host_interface.c | 295 -- drivers/staging/wilc1000/host_inte

Re: [PATCH] GPU-DRM: Delete unnecessary checks before drm_property_unreference_blob()

2015-11-16 Thread Daniel Vetter
On Fri, Nov 06, 2015 at 12:13:02PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 6 Nov 2015 12:03:46 +0100 > > The drm_property_unreference_blob() function tests whether its argument > is NULL and then returns immediately. > Thus the tests around the calls are not needed. >

[PATCH 05/19] staging/wilc1000: use NO_SECURITY instead of NO_ENCRYPT

2015-11-16 Thread Arnd Bergmann
The linux_wlan.c file uses a set of enums from wilc_wlan_if.h, with the exception of the NO_ENCRYPT that comes from wilc_wfi_cfgoperations.h. The two sets of enums clearly have the same intention but are defined a bit different. To prepare to clean up the ones in wilc_wfi_cfgoperations.h, this fir

[PATCH 14/19] staging/wilc1000: pass hif operations through initialization

2015-11-16 Thread Arnd Bergmann
The wilc_hif_spi and wilc_hif_sdio structures are part of the bus specific code, and the generic code should have no knowledge of their addresses. This changes the code to reference them only from the bus specific initialization code, which we can then use to split up the driver into separate modu

[PATCH 03/19] staging/wilc1000: use proper naming for global symbols

2015-11-16 Thread Arnd Bergmann
There are many global symbols in the wilc1000 driver, some of them with names like "DEBUG_LEVEL" or "probe" that are not acceptable for globals in the linux kernel as they may easily conflict with other (equally broken) drivers. This renames all the globals that do not already start with wilc or a

[PATCH 09/19] staging/wilc1000: move init/exit functions to driver files

2015-11-16 Thread Arnd Bergmann
The driver interfaces are in linux_wlan_sdio.c and linux_wlan_spi.c, so this is where the init and exit functions should be. Splitting this up enables further cleanups, including eventually allowing both modules to be built together. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linu

[PATCH 08/19] staging/wilc1000: move wilc_wlan_inp_t into struct wilc

2015-11-16 Thread Arnd Bergmann
wilc_wlan_inp_t is an unnecessary indirection and requires linux_wlan.c to have knowledge of the specific sdio and spi front-ends. This removes the structure and places io_type directly inside the struct wilc. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 21 ++

[PATCH 12/19] staging/wilc1000: use device pointer for phy creation

2015-11-16 Thread Arnd Bergmann
wilc_create_wiphy tries to get a pointer to a device from the global wilc_sdio_func variable. This is a layering violation and we can use the wilc_dev->dev pointer instead. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/linux_w

[PATCH 06/19] staging/wilc1000: avoid static definitions in header

2015-11-16 Thread Arnd Bergmann
The wilc_wfi_cfgoperations.h header defines the ieee80211_txrx_stypes and cipher_suites variables that are only used in wilc_wfi_cfgoperations.c and should not be shared in a header file. This moves over all that data into the .c file, and also moves all the macro definitions from the file that ar

[PATCH 04/19] staging/wilc1000: move extern declarations to headers

2015-11-16 Thread Arnd Bergmann
'extern' declarations belong into a header file rather than a .c file, to ensure that the definition matches the declaration. This moves all declarations into a header file that seems most appropriate for it. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/host_interface.c |

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-16 Thread Arnd Bergmann
On Monday 16 November 2015 10:36:47 glen lee wrote: > On 2015년 11월 13일 18:17, Arnd Bergmann wrote: > > On Friday 13 November 2015 16:49:22 glen lee wrote: > >> Hi arnd, > >> > >> I found this. These should be like this. It works fine. > >> + .hif_block_tx_ext = sdio_write, > >> + .hif_b

[PATCH 10/19] staging/wilc1000: unify device pointer

2015-11-16 Thread Arnd Bergmann
struct wilc has two pointers to store the device, one for sdio_func and one for spi_device. By changing the pointer to a 'struct device', we can simplify the logic and avoid a few #ifdefs. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 25 +++- d

[PATCH 19/19] staging/wilc1000: pass struct wilc to most linux_wlan.c functions

2015-11-16 Thread Arnd Bergmann
We want to get rid of all global variables in this driver, and instead pass device structures from one function to another. This changes the linux_wlan.c and wilc_wlan.c to do this for the most part. There are a few exceptions where these functions are themselves called from another part of the dri

Re: [PATCH v2] libata: add support for NCQ commands for SG interface

2015-11-16 Thread Mark Lord
On 15-10-27 01:49 AM, vinayak.k...@gmail.com wrote: From: Vinayak Kale This patch is needed to make NCQ commands with FPDMA protocol value (eg READ/WRITE FPDMA) work over SCSI Generic (SG) interface. .. + /* For NCQ commands with FPDMA protocol, copy the tag value */ + if (tf->pro

[PATCH 16/19] staging/wilc1000: remove WILC_SDIO/WILC_SPI macros

2015-11-16 Thread Arnd Bergmann
The last remaining user of WILC_SDIO macro checks for the correct time to wait in an interrupt for the PLL to settle. We can replace this with a runtime check and remove both WILC_SDIO and WILC_SPI, as we no longer need conditional compilation based on the hardware type. Signed-off-by: Arnd Bergma

[PATCH 11/19] staging/wilc1000: pass io_type to wilc_netdev_init

2015-11-16 Thread Arnd Bergmann
In order to avoid some of the #ifdefs, this passes the io_type and device pointer as an argument to wilc_netdev_init. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 18 -- drivers/staging/wilc1000/linux_wlan_sdio.c| 4 ++-- drivers/staging/w

[PATCH 18/19] staging/wilc1000: use more regular probing

2015-11-16 Thread Arnd Bergmann
So far, my patches tried to do equivalent conversions of the existing code. This one goes beyond that by restructuring how the devices get probed. In particular, the spi driver no longer creates the netdev until the device is probed, and I've removed the global wilc_sdio_func and wilc_spi_dev vari

Re: [PATCH] leds: ktd2692: Add missing of_node_put

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 4:00 AM, Jacek Anaszewski wrote: > Hi Ingi, Rob, > > With this patch we will be leaking of_node when parsing succeeds. > I think that "return 0" should be removed. I can remove it and apply, > provided that Rob's ack is still in force with this. Rob? Okay. Rob > > Best R

[PATCH 02/19] staging/wilc1000: make symbols static if possible

2015-11-16 Thread Arnd Bergmann
All symbols that are only referenced in the file that defines them can be declared 'static' to avoid namespace pollution, to produce better object code, and to make the source more readable. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/Makefile | 3 +- drivers/stagi

[PATCH 00/19 v5] staging/wilc1000 cleanups

2015-11-16 Thread Arnd Bergmann
As suggested by Glen Lee, I'm sending the patches once more with the two one-line fixes in "staging/wilc1000: pass hif operations through initialization". I have rebased on top of today's staging-testing, but no other changes were necessary, so this is otherwise identical to the version that Glen

Re: [PATCH] serial: imx: fix clk_prepare/unprepare usage

2015-11-16 Thread Marcus Folkesson
On Mon, Nov 16, 2015 at 10:49:01AM -0200, Fabio Estevam wrote: > On Thu, Nov 12, 2015 at 7:58 AM, Marcus Folkesson > wrote: > > clk_prepare/unprapare APIs are not allowed in atomic context, so > > move prepare/unprepare to probe/remove and use clk_enable/disable > > instead. > > > > Signed-off-by:

[PATCH 07/19] staging/wilc1000: remove linux_wlan_{device_power,device_detection}

2015-11-16 Thread Arnd Bergmann
The driver provides an interface for custom power management and detection that is meant to be filled by people customizing the driver. The default implementation of this is empty, and we don't actually want people to have to modify the source code. If anybody needs this, they need to describe the

[PATCH] mm/vmalloc: use list_{next,first}_entry

2015-11-16 Thread Geliang Tang
To make the intention clearer, use list_{next,first}_entry instead of list_entry. Signed-off-by: Geliang Tang --- mm/vmalloc.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d045634..c89ce9d 100644 --- a/mm/vmalloc.c +++ b/mm/vmallo

[PATCH 17/19] staging/wilc1000: split out bus specific modules

2015-11-16 Thread Arnd Bergmann
The SPI and SDIO specific code is now separate enough that we just need to restructure the Makefile and Kconfig logic a bit and export a couple of symbols from the common module to have separate bus glue drivers. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/Kconfig| 66 +

[PATCH 13/19] staging/wilc1000: get rid of WILC_SDIO_IRQ_GPIO

2015-11-16 Thread Arnd Bergmann
Whether the SDIO function uses an internal or external interrupt should not be a compiletime decision but be determined at runtime. This changes the code to pass a GPIO number from the init code as early as possible, and leaves just one #ifdef WILC_SDIO_IRQ_GPIO to preserve the previous behavior.

Re: [PATCH] arm, am335x: add support for the bosch shc board

2015-11-16 Thread Heiko Schocher
Hello Robert, Am 16.11.2015 um 14:23 schrieb Robert Nelson: + + cpsw_default: cpsw_default { + pinctrl-single,pins = < + /* Slave 1 */ + 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE0) + 0x114 (PIN_OUTPUT_PULLDOWN | MUX

Re: [PATCH] serial: imx: fix clk_prepare/unprepare usage

2015-11-16 Thread Fabio Estevam
On Mon, Nov 16, 2015 at 11:52 AM, Marcus Folkesson wrote: > Sorry, seems like the cover-letter was never sent. > The patch solves this issue: > > > [6.374678] [ cut here ] > [6.374716] WARNING: CPU: 0 PID: 113 at kernel/locking/mutex.c:868 > mutex_trylock+0x234/0x

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Jan Kara
On Mon 16-11-15 14:37:14, Jan Kara wrote: > On Fri 13-11-15 18:32:40, Dan Williams wrote: > > On Fri, Nov 13, 2015 at 4:43 PM, Andreas Dilger wrote: > > > On Nov 13, 2015, at 5:20 PM, Dan Williams > > > wrote: > > >> > > >> On Fri, Nov 13, 2015 at 4:06 PM, Ross Zwisler > > >> wrote: > > >>> Cur

Re: [PATCH 00/13] perf tools: bpf: Improve BPF program ability

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:02PM +, Wang Nan escreveu: > Resend patch set in [1] with sereval improvements based on Arnaldo's > suggestions. This patch set is based on Arnaldo's perf/core. > > Patch 1/13 - 2/13 should have already been collected by Arnaldo but > I can't find them in his repo

[PATCH 15/19] staging/wilc1000: turn enable_irq/disable_irq into callbacks

2015-11-16 Thread Arnd Bergmann
As a preparation for turning the SDIO side of wilc1000 into a separate module, this removes the last direct caller from the core module into the sdio specific portion. All calls to wilc_sdio_enable_interrupt() and wilc_sdio_disable_interrupt() now go through a function pointer in wilc_hif_func. We

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-16 Thread Charles Keepax
On Mon, Nov 16, 2015 at 01:29:47PM +0100, Pavel Machek wrote: > Hi! > > > > > Every single sound driver gets this right, none of them assume the name > > > > is global. What makes you say that they assume names are global? > > > > > Ok, so you are saying that if I fix mfd initialization, sound w

Re: [PATCH 03/13] perf tools: Allow BPF program attach to uprobe events

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:05PM +, Wang Nan escreveu: > This patch appends new syntax to BPF object section name to support > probing at uprobe event. Now we can use BPF program like this: > > SEC( > "exec=/lib64/libc.so.6\n" Do we really need this \n there? Is it really the separator? W

[PATCH] s390: Delete unnecessary checks before the function call "debug_unregister"

2015-11-16 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 16 Nov 2015 14:45:40 +0100 The debug_unregister() function performs also input parameter validation. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/s390/cio/chsc_

Re: [PATCH 05/13] perf tools: Introduce strtobool() to string.c

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:07PM +, Wang Nan escreveu: > This patch clones strtobool() from kernel's string.c to perf's string.c, > then add the function entry to tools/perf/util/include/linux/string.h. > > string.h in perf utils doesn't have #ifdef guard. This patch fixes it. > > This is p

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-16 Thread Charles Keepax
On Sat, Nov 14, 2015 at 06:59:16PM +0100, Pavel Machek wrote: > Hi! > > > If you're asking about the regulator API or embedded ALSA both of those > > are me but there are other things in here - the driver you're working > > with and the MFD core at least. At the minute I'm not convinced that > >

[PATCH] fsnotify: use list_next_entry in fsnotify_unmount_inodes

2015-11-16 Thread Geliang Tang
To make the intention clearer, use list_next_entry instead of list_entry. Signed-off-by: Geliang Tang --- fs/notify/inode_mark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index e785fd9..741077d 100644 --- a/fs/notify/ino

Re: [PATCH V4] mm: fix kernel crash in khugepaged thread

2015-11-16 Thread Steven Rostedt
On Mon, 16 Nov 2015 09:35:53 +0800 yalin wang wrote: > > On Nov 13, 2015, at 22:01, Steven Rostedt wrote: > > > > On Fri, 13 Nov 2015 19:54:11 +0800 > > yalin wang wrote: > > > > TP_fast_assign( > > __entry->mm = mm; > > - __entry->pfn = pfn

Re: [PATCH V4] mm: fix kernel crash in khugepaged thread

2015-11-16 Thread Steven Rostedt
On Mon, 16 Nov 2015 11:16:22 +0100 Vlastimil Babka wrote: > > >> -- Steve > > it is not easy to print for perf tools in userspace , > > if you use this format , > > for user space perf tool, it print the entry by look up the member in entry > > struct by offset , > > you print a dynamic string

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-16 Thread Charles Keepax
On Sat, Nov 14, 2015 at 10:16:33PM +0100, Pavel Machek wrote: > HiOn Sat 2015-11-14 18:49:40, Mark Brown wrote: > > On Sat, Nov 14, 2015 at 06:59:16PM +0100, Pavel Machek wrote: > > > > > Well, mfd_core.c seems to call regulator_bulk_register_supply_alias() > > > with device that does not have dev

Re: [PATCH] leds: ktd2692: Add missing of_node_put

2015-11-16 Thread Jacek Anaszewski
On 11/16/2015 03:09 PM, Rob Herring wrote: On Mon, Nov 16, 2015 at 4:00 AM, Jacek Anaszewski wrote: Hi Ingi, Rob, With this patch we will be leaking of_node when parsing succeeds. I think that "return 0" should be removed. I can remove it and apply, provided that Rob's ack is still in force wi

Re: [PATCH] comedi: ni_6527: Fix coding style - use BIT macro

2015-11-16 Thread Dan Carpenter
On Sat, Nov 14, 2015 at 06:43:23PM +0530, Ranjith Thangavel wrote: > @@ -221,11 +223,11 @@ static int ni6527_intr_cmdtest(struct comedi_device > *dev, > > /* Step 1 : check if triggers are trivially valid */ > > - err |= comedi_check_trigger_src(&cmd->start_src, TRIG_NOW); > - er

[PATCH 07/13] lightnvm: check for NAND flash and its type

2015-11-16 Thread Matias Bjørling
Only NAND flash with SLC and MLC is supported. Make sure to not try to initialize TLC memory or other non-volatile memory types. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/c

[PATCH 2/2] crypto: mcryptd - use list_first_entry_or_null()

2015-11-16 Thread Geliang Tang
Simplify mcryptd_opportunistic_flush() with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- crypto/mcryptd.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crypto/mcryptd.c b/crypto/mcryptd.c index fe5b495a..f78d4fc 100644 --- a/crypto/mcryptd.c +++ b/cry

[PATCH 11/13] nvme: missing ppaf copy

2015-11-16 Thread Matias Bjørling
The ppa format was not copied from the NVMe specific ppa format to the lightnvm specific ppa format. This led to the ppa format not being communicated to the layers above. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver

[PATCH 13/13] lightnvm: cleanup queue before target removal

2015-11-16 Thread Matias Bjørling
From: Javier González This prevents outstanding IOs to be sent for completion to target after the target has been removed. The flow is now: stop new IOs > cleanup queue > remove target. Signed-off-by: Javier Gonzalez Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 4 ++-- 1 file

[PATCH 10/13] lightnvm: remove linear and device addr modes

2015-11-16 Thread Matias Bjørling
The linear and device specific address modes can be replaced with a simple offset and bit length conversion that is generic across all devices. This both simplifies the specification and removes the special case for qemu nvme, that previously relied on the linear address mapping. Signed-off-by: M

[RFC PATCH 0/4] MIPS: IEEE Std 754 NaN interlinking support

2015-11-16 Thread Maciej W. Rozycki
Hi, This implements the kernel part of IEEE Std 754 NaN interlinking support, as per "MIPS ABI Extension for IEEE Std 754 Non-Compliant Interlinking" . Four patches are included: a pair of preparatory changes, a generic one to all

[PATCH 09/13] lightnvm: prevent double free on init error

2015-11-16 Thread Matias Bjørling
Both the nvm_register and nvm_init does a kfree(dev) on error. Make sure to only free it once. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index 40e6c

[RFC PATCH 2/4] MIPS: Factor out FP context preemption

2015-11-16 Thread Maciej W. Rozycki
Signed-off-by: Maciej W. Rozycki --- Following the discussion around commit 9791554b [MIPS,prctl: add PR_[GS]ET_FP_MODE prctl options for MIPS] or and Leonid's observation

[PATCH 12/13] nvme: remove reserved double word

2015-11-16 Thread Matias Bjørling
The specification was updated the remove the double word just after number of configuration groups and capabilities. Update the identify structure to reflect it. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 06/13] lightnvm: remove unused attrs in nvm_id structs

2015-11-16 Thread Matias Bjørling
The nvm_id, nvm_id_group and nvm_addr_format data structures contain reserved attributes. They are unused by media managers and targets. Remove them. Signed-off-by: Matias Bjørling --- include/linux/lightnvm.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/linu

[PATCH 1/2] crypto: api - use list_first_entry_or_null and list_next_entry

2015-11-16 Thread Geliang Tang
Simplify crypto_more_spawns() with list_first_entry_or_null() and list_next_entry(). Signed-off-by: Geliang Tang --- crypto/algapi.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crypto/algapi.c b/crypto/algapi.c index 59bf491..7be76aa 100644 --- a/crypto/algapi.c

Re: [PATCH 1/2] leds-bcm6328: Reuse bcm6328_led_set() instead of copying its functionality

2015-11-16 Thread Jacek Anaszewski
Hi Simon, On 11/15/2015 02:32 PM, Simon Arlott wrote: When ensuring a consistent initial LED state in bcm6328_led (as they may be blinking instead of on/off), the LED register is set using an inverted copy of bcm6328_led_set(). To avoid further errors relating to active low handling, call this f

[PATCH 01/13] MAINTAINERS: Add linux-block list to LightNVM for patches

2015-11-16 Thread Matias Bjørling
Signed-off-by: Matias Bjørling --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index f56a10a..2c4ec7a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6337,6 +6337,7 @@ F:arch/*/include/asm/pmem.h LIGHTNVM PLATFORM SUPPORT M: Matias Bjorli

[PATCH 04/13] lightnvm: update alignments for identify command

2015-11-16 Thread Matias Bjørling
A single 8 bit and 16 bit reserve field were inserted in the specification to align fields appropriately. Reflect this in the identify group structure. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/n

Re: [PATCH RFC] ioctl based CAT interface

2015-11-16 Thread Marcelo Tosatti
On Mon, Nov 16, 2015 at 09:59:26AM +0100, Peter Zijlstra wrote: > On Fri, Nov 13, 2015 at 03:43:02PM -0200, Marcelo Tosatti wrote: > > Subject: cat cgroup interface proposal (non hierarchical) was Re: [PATCH > > V15 00/11] x86: Intel Cache > > Allocation Technology Support > > > > > >

[PATCH 05/13] lightnvm: expose mccap in identify command

2015-11-16 Thread Matias Bjørling
The mccap field is required for I/O command option support. It defines the following flash access modes: * SLC mode * Erase/Program Suspension * Scramble On/Off * Encryption It is slotted in between mpos and cpar, changing the offset for cpar as well. Signed-off-by: Matias Bjørling --- dri

Re: [PATCH RFC] ioctl based CAT interface

2015-11-16 Thread Marcelo Tosatti
On Mon, Nov 16, 2015 at 10:07:56AM +0100, Peter Zijlstra wrote: > On Fri, Nov 13, 2015 at 03:33:04PM -0200, Marcelo Tosatti wrote: > > On Fri, Nov 13, 2015 at 05:51:00PM +0100, Peter Zijlstra wrote: > > > On Fri, Nov 13, 2015 at 02:39:33PM -0200, Marcelo Tosatti wrote: > > > > + * * one tcrid e

[PATCH 03/13] lightnvm: update bad block table format

2015-11-16 Thread Matias Bjørling
The specification was changed to reflect a multi-value bad block table. Instead of bit-based bad block table, the bad block table now allows eight bad block categories. Currently four are defined: * Factory bad blocks * Grown bad blocks * Device-side reserved blocks * Host-side reserved blocks

Re: [PATCH] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-16 Thread Dan Carpenter
This one is buggy. For example: > -#define DMM32AT_FIFO_STATUS_PAGE_MASK(3 << 0) > +#define DMM32AT_FIFO_STATUS_PAGE_MASK0 There are other bugs as well. Please, be more careful. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-16 Thread Charles Keepax
On Mon, Nov 16, 2015 at 01:29:47PM +0100, Pavel Machek wrote: > Hi! > > > > > Every single sound driver gets this right, none of them assume the name > > > > is global. What makes you say that they assume names are global? > > > > > Ok, so you are saying that if I fix mfd initialization, sound w

[RFC PATCH 3/4] MIPS: Implement IEEE Std 754 NaN interlinking support

2015-11-16 Thread Maciej W. Rozycki
Implement the kernel part of IEEE Std 754 NaN interlinking support, as per "MIPS ABI Extension for IEEE Std 754 Non-Compliant Interlinking" : * interpret the MIPS_AFL_FLAGS1_IEEE and MIPS_AFL_FLAGS2_RELAXED flags in PT_MIPS_ABIFLAG

[RFC PATCH 1/4] ELF: Add platform-specific AT_FLAGS initialisation support

2015-11-16 Thread Maciej W. Rozycki
Signed-off-by: Maciej W. Rozycki --- linux-elf-at-flags.diff Index: linux-sfr-test/fs/binfmt_elf.c === --- linux-sfr-test.orig/fs/binfmt_elf.c 2015-09-08 15:24:00.927208000 +0100 +++ linux-sfr-test/fs/binfmt_elf.c 2015-09-08 15:2

[PATCH] GPU-DRM-TTM: Delete an unnecessary check before the function call "ttm_tt_destroy"

2015-11-16 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 16 Nov 2015 15:40:58 +0100 The ttm_tt_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- dr

[PATCH 1/2] drm: Improve drm_of_component_probe() to correctly handle ports and remote ports.

2015-11-16 Thread Liviu Dudau
Rockchip DRM driver cannot use the same compare_of() function to match ports and remote ports (aka encoders) as their OF sub-trees look different. Add a second compare function to be used when encoders are added to the component framework and patch the existing users of the function accordingly. S

[PATCH 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-11-16 Thread Liviu Dudau
Hello, When I have introduced the drm_of_component_probe() function I have managed to break rockchip's DRM driver as the compare_of() function had to match both local crtc ports and remote encoder ones. As suggested by Russell King, I have now enhanced the drm_of_component_probe() function to take

[PATCH 08/13] lightnvm: prematurely activate nvm_dev

2015-11-16 Thread Matias Bjørling
We register with nvm_devices when there registration can still fail. Move the final registration at the end of the nvm_register function to make sure we are fully registered when added to the nvm_devices list. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 8 1 file change

[PATCH 00/13] lightnvm updates for 4.4-rc2

2015-11-16 Thread Matias Bjørling
Hi Jens, This is the patches targeted for -rc2 of 4.4. Ten of the patches fix bugs and small specification updates. While the last two are larger patches. They are necessary because of specification changes. The updates are applied now before it is set in stone for 4.4 (or at least makes it a lot

Re: [PATCH v2 8/8] DT:omap3+ads7846: use new common touchscreen bindings

2015-11-16 Thread Grazvydas Ignotas
Hi, On Fri, Nov 13, 2015 at 10:35 PM, H. Nikolaus Schaller wrote: > The standard touch screen bindings [1] replace the private ti,swap-xy > with touchscreen-swaped-x-y. And for the Openpandora we use > touchscreen-size etc. to match the LCD screen size. > > [1]: Documentation/devicetree/bindings/

Re: [PATCH v4 00/24] pwm: add support for atomic update

2015-11-16 Thread Heiko Stübner
Hi Boris, Am Montag, 16. November 2015, 09:56:23 schrieb Boris Brezillon: > Hello, > > This series adds support for atomic PWM update, or IOW, the capability > to update all the parameters of a PWM device (enabled/disabled, period, > duty and polarity) in one go. you already include my tested-by

[PATCH 2/2] staging: unisys: return error value directly

2015-11-16 Thread Sudip Mukherjee
In case of error we are jumping to err_del_scsipending_ent and always returning SCSI_MLQUEUE_DEVICE_BUSY from error path. We donot need a variable to return a fixed error value, it can be returned directly. Signed-off-by: Sudip Mukherjee --- drivers/staging/unisys/visorhba/visorhba_main.c | 12 +

[PATCH 2/2] drm/rockchip: Convert the probe function to the generic drm_of_component_probe()

2015-11-16 Thread Liviu Dudau
Take two: Initial attempt to convert rockchip to drm_of_component_probe() missed the difference between ports and encoders when using the compare_of() function. Now that drm_of_component_probe() has been enhanced, let's try again the conversion. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/roc

[PATCH 1/2] staging: unisys: remove unused variable

2015-11-16 Thread Sudip Mukherjee
The variables op, sd and zmotion were never being used. Signed-off-by: Sudip Mukherjee --- drivers/staging/unisys/visorhba/visorhba_main.c | 4 drivers/staging/unisys/visorinput/visorinput.c | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/unisys/viso

Re: [PATCH RFC] ioctl based CAT interface

2015-11-16 Thread Thomas Gleixner
On Mon, 16 Nov 2015, Marcelo Tosatti wrote: > You need a task to be part of two cgroups at one time, > to support the following configuration: > > Task-A: 70% of cache reserved exclusively (reservation-0). > 20% of cache reserved (reservation-1). > > Task-B: 20% of cache reserved (reserv

[PATCH 02/13] lightnvm: change max_phys_sect to uint

2015-11-16 Thread Matias Bjørling
The max_phys_sect variable is defined as a char. We do a boundary check to maximally allow 256 physical page descriptors per command. As we are not indexing from zero. This expression is always false. Bump the max_phys_sect to an unsigned int to support the range check. Signed-off-by: Matias Bjørl

Re: [PATCH v2 00/11] DAX fsynx/msync support

2015-11-16 Thread Jan Kara
On Fri 13-11-15 17:06:39, Ross Zwisler wrote: > This patch series adds support for fsync/msync to DAX. > > Patches 1 through 7 add various utilities that the DAX code will eventually > need, and the DAX code itself is added by patch 8. Patches 9-11 update the > three filesystems that currently su

Re: [PATCH 05/13] perf tools: Introduce strtobool() to string.c

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 11:17:18AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Nov 16, 2015 at 12:10:07PM +, Wang Nan escreveu: > > This patch clones strtobool() from kernel's string.c to perf's string.c, > > then add the function entry to tools/perf/util/include/linux/string.h. > > >

[RFC PATCH 4/4] prctl: Add MIPS IEEE Std 754 compliance mode switching

2015-11-16 Thread Maciej W. Rozycki
Implement the prctl(2) interface for IEEE Std 754 NaN interlinking, as per "MIPS ABI Extension for IEEE Std 754 Non-Compliant Interlinking" : * interpret the PR_SET_IEEE754_MODE request, * accept or reject the new mode requested acco

[PATCH] vhost: relax log address alignment

2015-11-16 Thread Michael S. Tsirkin
commit 5d9a07b0de512b77bf28d2401e5fe3351f00a240 ("vhost: relax used address alignment") fixed the alignment for the used virtual address, but not for the physical address used for logging. That's a mistake: alignment should clearly be the same for virtual and physical addresses, Signed-off-by: Mi

Re: leds-bcm6328: add more init configuration options

2015-11-16 Thread Jacek Anaszewski
Hi Simon, On 11/15/2015 06:27 PM, Simon Arlott wrote: commit 1d3ff22d633d35048c35c3deeead7ab116cebc32 Author: Álvaro Fernández Rojas Date: Thu Oct 8 12:35:55 2015 +0200 Documentation: leds: update DT bindings for leds-bcm6328 This patch adds latest DT bindings for leds-bcm6328 ini

Re: [PATCH] [media] lirc_imon: do not leave imon_probe() with mutex held

2015-11-16 Thread Dan Carpenter
On Sat, Nov 14, 2015 at 09:17:56PM +0300, Alexey Khoroshilov wrote: > Commit af8a819a2513 ("[media] lirc_imon: simplify error handling code") > lost mutex_unlock(&context->ctx_lock), so imon_probe() exits with > the context->ctx_lock mutex acquired. > > The patch adds mutex_unlock(&context->ctx_lo

Re: [PATCH 08/19] drm: Add Allwinner A10 Display Engine support

2015-11-16 Thread Daniel Vetter
On Wed, Nov 11, 2015 at 02:14:12PM -0800, Maxime Ripard wrote: > Hi Daniel, > > Thanks for your review! Back from vacation, sorry for the delay. > > On Fri, Oct 30, 2015 at 03:44:09PM +0100, Daniel Vetter wrote: > > > +static void sun4i_crtc_disable(struct drm_crtc *crtc) > > > +{ > > > + struc

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Thomas Gleixner
On Fri, 13 Nov 2015, Jacob Pan wrote: > -0 [000]30.093473: bprint: > __tick_nohz_idle_enter: JPAN: __tick_nohz_idle_enter 803 > -0 [000]30.093473: bprint: > __tick_nohz_idle_enter: JPAN: can_stop_idle_tick 743 > [JP] can_stop_idle_ti

Re: Kernel 4.1 hang, apparently in __inet_lookup_established

2015-11-16 Thread Eric Dumazet
On Sun, 2015-11-15 at 16:58 -0800, Grant Zhang wrote: > Hi Patrick, > > Have you tried the two patches Eric mentioned? One of my 4.1.11 server > just hanged with very similar stack trace and I am wondering whether the > aforementioned patches would help. > > Thanks, linux-4.1.12 definitely con

Re: [PATCH RFC] ioctl based CAT interface

2015-11-16 Thread Peter Zijlstra
On Mon, Nov 16, 2015 at 11:03:57AM -0200, Marcelo Tosatti wrote: > cgroup CAT interface (non hierarchical): That's a fail right there. Cgroup thingies must be hierarchical. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.

Re: [PATCH 07/14] genirq: Add a new generic IPI reservation code to irq core

2015-11-16 Thread Thomas Gleixner
On Mon, 9 Nov 2015, Qais Yousef wrote: > On 11/07/2015 01:31 PM, Thomas Gleixner wrote: > > On Tue, 3 Nov 2015, Qais Yousef wrote: > > > + > > > + /* always allocate a virq per cpu */ > > > + nr_irqs = ipi_mask_weight(dest); > > That's not really a good assumption. Not all architectures need > > se

CFQ timer precision

2015-11-16 Thread Jan Kara
Hello, lately I was looking into a big performance hit we take when blkio controller is enabled and jbd2 thread ends up in a different cgroup than user process. E.g. dbench4 throughput drops from ~140 MB/s to ~20 MB/s. However artificial dbench4 is, this kind of drop will likely be clearly visible

Re: [PATCH v8] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-11-16 Thread Marc Zyngier
On 11/11/15 06:33, Bharat Kumar Gogada wrote: > Adding PCIe Root Port driver for Xilinx PCIe NWL bridge IP. > > Signed-off-by: Bharat Kumar Gogada > Signed-off-by: Ravi Kiran Gummaluri > --- > Added logic to allocate contiguous hwirq in nwl_irq_domain_alloc function. > Moved MSI functionality to

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