Re: [PATCH v2 03/26] clk: Add regmap support

2016-01-27 Thread Stephen Boyd
On 01/14, Maxime Ripard wrote: > From: Matthias Brugger > > Some devices like SoCs from Mediatek need to use the clock > through a regmap interface. > This patch adds regmap support for the simple multiplexer clock, > the divider clock and the clock gate code. > > Signed-off-by: Matthias

Re: [PATCH v1 2/8] mm, kasan: SLAB support

2016-01-27 Thread Joonsoo Kim
On Wed, Jan 27, 2016 at 07:25:07PM +0100, Alexander Potapenko wrote: > This patch adds KASAN hooks to SLAB allocator. > > This patch is based on the "mm: kasan: unified support for SLUB and > SLAB allocators" patch originally prepared by Dmitry Chernenkov. > > Signed-off-by: Alexander Potapenko

Re: [PATCH v1 5/8] mm, kasan: Stackdepot implementation. Enable stackdepot for SLAB

2016-01-27 Thread Joonsoo Kim
Hello, On Wed, Jan 27, 2016 at 07:25:10PM +0100, Alexander Potapenko wrote: > Stack depot will allow KASAN store allocation/deallocation stack traces > for memory chunks. The stack traces are stored in a hash table and > referenced by handles which reside in the kasan_alloc_meta and >

[PATCH V8 1/1] usb:serial: Add Fintek F81532/534 driver

2016-01-27 Thread Peter Hung
This driver is for Fintek F81532/F81534 USB to Serial Ports IC. F81532 spec: https://drive.google.com/file/d/0B8vRwwYO7aMFOTRRMmhWQVNvajQ/view?usp=sharing F81534 spec: https://drive.google.com/file/d/0B8vRwwYO7aMFV29pQWJqbVBNc00/view?usp=sharing F81438 transceiver spec:

[PATCH v7 5/6] cpufreq: powernv: Replace pr_info with trace print for throttle event

2016-01-27 Thread Shilpasri G Bhat
Currently we use printk message to notify the throttle event. But this can flood the console if the cpu is throttled frequently. So replace the printk with the tracepoint to notify the throttle event. And also events like throttle below nominal frequency and OCC_RESET are reduced to

[PATCH v7 4/6] cpufreq: powernv/tracing: Add powernv_throttle tracepoint

2016-01-27 Thread Shilpasri G Bhat
This patch adds the powernv_throttle tracepoint to trace the CPU frequency throttling event, which is used by the powernv-cpufreq driver in POWER8. Signed-off-by: Shilpasri G Bhat Reviewed-by: Gautham R. Shenoy CC: Ingo Molnar CC: Steven Rostedt --- No changes since v2.

[PATCH v7 6/6] cpufreq: powernv: Add sysfs attributes to show throttle stats

2016-01-27 Thread Shilpasri G Bhat
Create sysfs attributes to export throttle information in /sys/devices/system/cpu/cpufreq/chipN. The newly added sysfs files are as follows: 1)/sys/devices/system/cpu/cpufreq/chip0/throttle_frequencies This gives the throttle stats for each of the available frequencies. The throttle stat of a

[PATCH v7 3/6] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-01-27 Thread Shilpasri G Bhat
cpu_to_chip_id() does a DT walk through to find out the chip id by taking a contended device tree lock. This adds an unnecessary overhead in a hot path. So instead of calling cpu_to_chip_id() everytime cache the chip ids for all cores in the array 'core_to_chip_map' and use it in the hotpath.

[PATCH v7 2/6] cpufreq: powernv: Hot-plug safe the kworker thread

2016-01-27 Thread Shilpasri G Bhat
In the kworker_thread powernv_cpufreq_work_fn(), we can end up sending an IPI to a cpu going offline. This is a rare corner case which is fixed using {get/put}_online_cpus(). Along with this fix, this patch adds changes to do oneshot cpumask_{clear/and} operation. Suggested-by: Shreyas B Prabhu

[PATCH v7 1/6] cpufreq: powernv: Free 'chips' on module exit

2016-01-27 Thread Shilpasri G Bhat
This will free the dynamically allocated memory of'chips' on module exit. Signed-off-by: Shilpasri G Bhat --- drivers/cpufreq/powernv-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index 547890f..53f980b

[PATCH v7 0/6] cpufreq: powernv: Redesign the presentation of throttle notification and solve bug-fixes in the driver

2016-01-27 Thread Shilpasri G Bhat
In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the CPU when the chip crosses its thermal and power limits. Currently, powernv-cpufreq driver detects and reports this event as a console message. Some machines may not sustain the max turbo frequency in all conditions and can be

Re: [PATCH] include/linux/list_bl.h: Use bool instead of int for boolean functions

2016-01-27 Thread Heiko Carstens
On Mon, Jan 25, 2016 at 04:58:18AM +0800, cheng...@emindsoft.com.cn wrote: > From: Chen Gang > > hlist_bl_unhashed() and hlist_bl_empty() are all boolean functions, so > return bool instead of int. > > Signed-off-by: Chen Gang > --- > include/linux/list_bl.h | 4 ++-- > 1 file changed, 2

Re: [PATCH 0/5] Fix races & improve the radix tree iterator patterns

2016-01-27 Thread Konstantin Khlebnikov
On Thu, Jan 28, 2016 at 12:17 AM, Matthew Wilcox wrote: > From: Matthew Wilcox > > The first two patches here are bugfixes, and I would like to see them > make their way into stable ASAP since they can lead to data corruption > (very low probabilty). > > The last three patches do not qualify as

Re: [PATCH V4 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-27 Thread Henry Chen
Hi Mark, On Wed, 2016-01-27 at 14:41 +, Mark Brown wrote: > On Wed, Jan 27, 2016 at 01:00:59PM +0100, John Crispin wrote: > > > + /* Constrain board-specific capabilities according to what > > +* this driver and the chip itself can actually do. > > +*/ > > +

Re: [PATCH v5 00/12] MADV_FREE support

2016-01-27 Thread Michael Kerrisk (man-pages)
Hello Minchan, On 11/30/2015 07:39 AM, Minchan Kim wrote: > In v4, Andrew wanted to settle in old basic MADV_FREE and introduces > new stuffs(ie, lazyfree LRU, swapless support and lazyfreeness) later > so this version doesn't include them. > > I have been tested it on mmotm-2015-11-25-17-08

Re: [PATCH] epoll: add exclusive wakeups flag

2016-01-27 Thread Michael Kerrisk (man-pages)
Hi Jason, On 12/08/2015 04:23 AM, Jason Baron wrote: > Hi, > > Re-post of an old series addressing thundering herd issues when sharing > an event source fd amongst multiple epoll fds. Last posting was here > for reference: https://lkml.org/lkml/2015/2/25/56 > > The patch herein drops the core

Re: [PATCH v4] lib/spinlock_debug.c: prevent a recursive cycle in the debug code

2016-01-27 Thread Byungchul Park
On Wed, Jan 27, 2016 at 02:49:35PM -0800, Peter Hurley wrote: > And we already have lockdep turned off to avoid triggering a recursive > lockdep report (which I think is a mistake). Yes, we already have a way to turn off the lock debug so that we can avoid it. So I used it in v4. thanks,

Re: sound: heap out-of-bounds write in dummy_systimer_prepare

2016-01-27 Thread Takashi Iwai
On Thu, 28 Jan 2016 07:38:08 +0100, Takashi Iwai wrote: > > The easiest fix for this is obviously to disable the switch via > sysfs like below. Meanwhile we may copy the ops to the runtime > instance so that it won't affect the running stream. This can be done > for 4.6, while disabling sysfs

RE: [PATCH 00/10] KVM PCIe/MSI passthrough on ARM/ARM64

2016-01-27 Thread Pavel Fedin
Hello! > x86 isn't problem-free in this space. An x86 VM is going to know that > the 0xfee0 address range is special, it won't be backed by RAM and > won't be a DMA target, thus we'll never attempt to map it for an iova > address. However, if we run a non-x86 VM or a userspace driver, it >

Re: [PATCH v2] android: binder: Sanity check at binder ioctl

2016-01-27 Thread chenfeng
Hi, On 2016/1/20 6:40, David Rientjes wrote: > On Tue, 19 Jan 2016, Chen Feng wrote: > >> When a process fork a child process, we should not allow the >> child process use the binder which opened by parent process. >> >> But if the binder-object creater is a thread of one process who exit, >>

[PATCH] cputime: Fix timeval-->cputime conversion

2016-01-27 Thread zengtao
The structure: struct timeval { __kernel_time_t tv_sec; /* seconds */ __kernel_suseconds_ttv_usec;/* microseconds */ }; both __kernel_time_t and __kernel_suseconds_t are short than u64 when it is 32bit platform, so force u64 conversion here.

Re: [PATCH] storvsc: use small sg_tablesize on x86

2016-01-27 Thread Olaf Hering
On Wed, Jan 27, James Bottomley wrote: > It's not really architecture independent, is it? Just use the bit > width config. Again: which one? This driver is not for mips|powerpc|score|sh. Olaf

RE: [RFC 3/4] ARM: imx: add the platform related rpmsg implementation

2016-01-27 Thread Richard Zhu
Thanks a lot. Best Regards hongxing zhu Linux BSP team Office: 86-21-28937189 Email: hongxing@nxp.com -Original Message- From: Shawn Guo [mailto:shawn...@kernel.org] Sent: Thursday, January 28, 2016 1:50 PM To: Richard Zhu Cc: o...@wizery.com; Stefan Agner;

Re: [PATCH V5 5/5] regulator: max77620: add regulator driver for max77620/max20024

2016-01-27 Thread Krzysztof Kozlowski
On 28.01.2016 15:24, Laxman Dewangan wrote: > > On Thursday 28 January 2016 09:25 AM, Krzysztof Kozlowski wrote: >> On 27.01.2016 23:10, Laxman Dewangan wrote: >>> MAXIM Semiconductor's PMIC, MAX77620 and MAX20024 have the >>> multiple DCDC and LDOs. This supplies the power to different >>>

Re: [PATCH v8 0/5] mfd: tps65912: Driver rewrite with DT support

2016-01-27 Thread Lee Jones
Mark, Just need your stamp for this to go in. > In an effort to cleanup this driver and add Device Tree support > the driver has been rewritten based on new driver styles and > modern kernel driver helpers. This has nearly halved the lines > of code while keeping all previous functionality. > >

Re: [PATCH v5 04/21] usb: dwc2: host: Set host_perio_tx_fifo_size to 304 for rk3066

2016-01-27 Thread Kever Yang
Hi Doug, We are in HOST mode, we only need to receive data from USB camera with RX FIFO, and no need to use TX FIFO for USB webcam, right? :) Any way, I think we need to NAK this patch after look into the design of dwc2 controller. Because all the dwc2 controller inside the Rockchip chips don't

[mpt3sas driver 02/10] mpt3sas: Used IEEE SGL instead of MPI SGL while framing a SMP Passthrough request message.

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani As driver was using MPI SGL while framing the SMP Passthrough request message due to which firmware unable to post the Reply Data in the host memory and timeout is observed for this SMP Passthrough request message and so unable to perform phy disable operation.

[mpt3sas driver 04/10] mpt3sas: Never block the Enclosure device

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Never block the SEP device (i.e. Never invoke the scsi_internal_device_block() API for SEP device) even for the delay not responding events. Blocking the SEP device will create a deadlock while adding any device to the OS. Signed-off-by: Suganath prabu Subramani

[mpt3sas driver 07/10] mpt3sas: Add support for configurable Chain Frame Size

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Added support for configurable Chain Frame Size. Calculate the Chain Message Frame size from the IOCMaxChainSegementSize (iocfacts). Applicable only for mpt3sas/SAS3.0 HBA's. Signed-off-by: Suganath prabu Subramani Signed-off-by: Chaitra P B ---

[PATCH v4] perf/x86/amd/power: Add AMD accumulated power reporting mechanism

2016-01-27 Thread Huang Rui
Introduce an AMD accumlated power reporting mechanism for Carrizo (Family 15h, Model 60h) processor that should be used to calculate the average power consumed by a processor during a measurement interval. The feature of accumulated power mechanism is indicated by CPUID Fn8000_0007_EDX[12].

[mpt3sas driver 08/10] mpt3sas: Updated MPI Header to 2.00.42

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Updated MPI version and MPI header files. Signed-off-by: Suganath prabu Subramani Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpi/mpi2.h | 8 +--- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 7 +-- drivers/scsi/mpt3sas/mpi/mpi2_init.h | 3 ++-

[mpt3sas driver 05/10] mpt3sas: Make use of additional HighPriority credit message frames for sending SCSI IO's

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Driver assumes HighPriority credit as part of Global credit. But, Firmware treats HighPriority credit value and global cedits as two different values. Changed host queue algorithm to treat global credits and highPriority credits as two different values.

Re: sound: heap out-of-bounds write in dummy_systimer_prepare

2016-01-27 Thread Takashi Iwai
On Wed, 27 Jan 2016 10:55:45 +0100, Dmitry Vyukov wrote: > > Hello, > > I've got the following report while running syzkaller fuzzer: > > == > BUG: KASAN: slab-out-of-bounds in dummy_systimer_prepare+0x268/0x2a0 > at addr

[mpt3sas driver 09/10] mpt3sas: Fix for Asynchronous completion of timedout IO and task abort of timedout IO.

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Track msix of each IO and use the same msix for issuing abort to timed out IO. With this driver will process IO's reply first followed by TM. Signed-off-by: Suganath prabu Subramani Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.c | 20

[mpt3sas driver 10/10] mpt3sas: Updating mpt3sas driver version to 12.100.00.00

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Bump mpt3sas driver version from 09.102.00.00 to 12.100.00.00 Signed-off-by: Suganath prabu Subramani Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[mpt3sas driver 06/10] mpt3sas: Added smp_affinity_enable module parameter.

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Module parameter to enable/disable configuring affinity hint for msix vector. SMP affinity feature can be enabled/disabled by setting module parameter "smp_affinity_enable" to 1/0. By default this feature is enabled. (smp_affinity_enable = 1 enabled).

[mpt3sas driver 01/10] mpt3sas: Added support for high port count HBA variants.

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Updated hardware description headers with MPI v2.6 and mpt3sas_pci_table[] with vendor_ids,device_ids of Cutlass and Intruder HBA which has support for 4 ports Signed-off-by: Suganath prabu Subramani Signed-off-by: Chaitra P B ---

[mpt3sas driver 03/10] mpt3sas: Fix static analyzer(coverity) tool identified defects

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani 1.Wrong size of argument is being passed The size of struct being passed as an argument to memset func and area of memory being pointed by an instance of struct in memset func should be of same structure type. 2.Dereference null return value 3.Array compared

[mpt3sas driver patches 00/10] mpt3sas driver enhancements and

2016-01-27 Thread Suganath prabu Subaramani
From: Suganath prabu Subramani Here is the change list: Posting 10 patches for mpt3sas driver enhancements and few fixes. * Updated hardware description headers with MPI v2.6 and mpt3sas_pci_table[] with vendor_ids,device_ids of Cutlass and Intruder HBA which has support for 4 ports.

Re: [PATCH V5 5/5] regulator: max77620: add regulator driver for max77620/max20024

2016-01-27 Thread Laxman Dewangan
On Thursday 28 January 2016 09:25 AM, Krzysztof Kozlowski wrote: On 27.01.2016 23:10, Laxman Dewangan wrote: MAXIM Semiconductor's PMIC, MAX77620 and MAX20024 have the multiple DCDC and LDOs. This supplies the power to different components of the system. Also these rails has configuration for

[PATCH v11 1/4] perf,kvm/{x86,s390}: Remove dependency on uapi/kvm_perf.h

2016-01-27 Thread Hemant Kumar
Its better to remove the dependency on uapi/kvm_perf.h to allow dynamic discovery of kvm events (if its needed). To do this, some extern variables have been introduced with which we can keep the generic functions generic. Signed-off-by: Hemant Kumar Acked-by: Alexander Yarygin --- Changelog:

[PATCH v11 4/4] perf,kvm/powerpc: Add support for HCALL reasons

2016-01-27 Thread Hemant Kumar
Powerpc provides hcall events that also provides insights into guest behaviour. Enhance perf kvm stat to record and analyze hcall events. - To trace hcall events : perf kvm stat record - To show the results : perf kvm stat report --event=hcall The result shows the number of hypervisor

[PATCH v11 3/4] perf,kvm/powerpc: Port perf kvm stat to powerpc

2016-01-27 Thread Hemant Kumar
perf kvm can be used to analyze guest exit reasons. This support already exists in x86. Hence, porting it to powerpc. - To trace KVM events : perf kvm stat record If many guests are running, we can track for a specific guest by using --pid as in : perf kvm stat record --pid - To see the

[PATCH v11 2/4] perf,kvm/{x86,s390}: Remove const from kvm_events_tp

2016-01-27 Thread Hemant Kumar
This patch removes the "const" qualifier from kvm_events_tp declaration to account for the fact that some architectures may need to update this variable dynamically. For instance, powerpc will need to update this variable dynamically depending on the machine type. Signed-off-by: Hemant Kumar ---

Re: [PATCH 1/1] imx25: Fix LCD pixelclock configuration

2016-01-27 Thread Shawn Guo
On Wed, Dec 23, 2015 at 09:30:10PM +0100, Carlos Soto wrote: > Set LCDC base clock (per_7) parent clock to UPLL clock. > This is needed to allow finer resolution in pixelclock > > Signed-off-by: Carlos Soto > --- > drivers/clk/imx/clk-imx25.c |6 ++ > 1 file changed, 6 insertions(+) >

Re: [PULL] virtio: fixes, tests

2016-01-27 Thread Junio C Hamano
Linus Torvalds writes: > On Wed, Jan 27, 2016 at 2:15 PM, Michael S. Tsirkin wrote: >>> >>> Anyway, pulled. Just curious about how that thing happened. >> >> That's because apparently diffstat obeys orderfile rules: > > Ugh. I guess that makes sense, but it's still very annoying for > something

Re: [PATCH] crypto: af_alg - add async support to algif_aead

2016-01-27 Thread Stephan Mueller
Am Mittwoch, 27. Januar 2016, 14:10:31 schrieb Tadeusz Struk: Hi Tadeusz, > Following the async change for algif_skcipher > this patch adds similar async read to algif_aead. > > changes in v2: > - change internal data structures from fixed size arrays, limited to > RSGL_MAX_ENTRIES, to linked

Re: [PATCH] kexec: unmap reserved pages for each error-return way

2016-01-27 Thread Minfei Huang
On 01/27/16 at 02:48pm, Dmitry Safonov wrote: > For allocation of kimage failure or kexec_prepare or load segments > errors there is no need to keep crashkernel memory mapped. > It will affect only s390 as map/unmap hook defined only for it. > As on unmap s390 also changes os_info structure let's

Re: [PATCH] sound: fix SND_PCM_TIMER Kconfig text

2016-01-27 Thread Takashi Iwai
On Thu, 28 Jan 2016 03:04:10 +0100, Randy Dunlap wrote: > > From: Randy Dunlap > > Fix spelling and typos for SND_PCM_TIMER. > > Signed-off-by: Randy Dunlap > Cc: Jie Yang > Cc: Takashi Iwai Applied, thanks. Takashi > --- > sound/core/Kconfig |6 +++--- > 1 file changed, 3

[RFC PATCH] mm: CONFIG_NR_ZONES_EXTENDED

2016-01-27 Thread Dan Williams
ZONE_DEVICE (merged in 4.3) and ZONE_CMA (proposed) are examples of new mm zones that are bumping up against the current maximum limit of 4 zones, i.e. 2 bits in page->flags. When adding a zone this equation still needs to be satisified: SECTIONS_WIDTH + ZONES_WIDTH + NODES_SHIFT +

ANNOUNCE: mdadm 3.4 - A tool for managing md Soft RAID under Linux

2016-01-27 Thread NeilBrown
I am pleased to announce the availability of mdadm version 3.4 It is available at the usual places: http://www.kernel.org/pub/linux/utils/raid/mdadm/ and via git at git://github.com/neilbrown/mdadm git://neil.brown.name/mdadm http://git.neil.brown.name/git/mdadm The new

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
On Thu, Jan 28, 2016 at 01:02:15AM -0500, Jarod Wilson wrote: > On Wed, Jan 27, 2016 at 01:09:47PM -0800, Eric Dumazet wrote: > > On Wed, 2016-01-27 at 15:21 -0500, Jarod Wilson wrote: > > > > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > > > index 289c231..7973ab5 100644

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
On Thu, Jan 28, 2016 at 01:02:15AM -0500, Jarod Wilson wrote: > On Wed, Jan 27, 2016 at 01:09:47PM -0800, Eric Dumazet wrote: > > On Wed, 2016-01-27 at 15:21 -0500, Jarod Wilson wrote: > > > > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > > > index 289c231..7973ab5 100644

Re: [PATCH v4] lib/spinlock_debug.c: prevent a recursive cycle in the debug code

2016-01-27 Thread Sergey Senozhatsky
On (01/28/16 13:36), byungchul.park wrote: [..] > > the thing is, it's really-really hard to lockup in console_trylock()... > > > > int down_trylock(struct semaphore *sem) > > { > > unsigned long flags; > > int count; > > > > raw_spin_lock_irqsave(>lock, flags); <<

Re: [PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

2016-01-27 Thread James Bottomley
On Wed, 2016-01-27 at 23:29 -0800, K. Y. Srinivasan wrote: > tree: https://na01.safelinks.protection.outlook.com/?url=https%3a%2 > f%2fgit.kernel.org%2fpub%2fscm%2flinux%2fkernel%2fgit%2ftorvalds%2fli > nux.git=01%7c01%7ckys%40microsoft.com%7ce2e0622715844b79ad7108d3 >

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
On Wed, Jan 27, 2016 at 01:09:47PM -0800, Eric Dumazet wrote: > On Wed, 2016-01-27 at 15:21 -0500, Jarod Wilson wrote: > > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > > index 289c231..7973ab5 100644 > > --- a/include/linux/netdevice.h > > +++ b/include/linux/netdevice.h

Re: [PATCH] storvsc: use small sg_tablesize on x86

2016-01-27 Thread James Bottomley
On Wed, 2016-01-27 at 23:09 +, KY Srinivasan wrote: > > > -Original Message- > > From: Olaf Hering [mailto:o...@aepfle.de] > > Sent: Monday, January 25, 2016 12:35 AM > > To: James Bottomley > > Cc: KY Srinivasan ; Haiyang Zhang > > ; linux-kernel@vger.kernel.org; linux- > >

Re: PROBLEM: Intel HDMI output busticated on 4.4 (regression)

2016-01-27 Thread Nick Bowler
On 2016-01-21, Nick Bowler wrote: > On 2016-01-21, Jindal, Sonika wrote: >> On 1/21/2016 8:59 AM, Nick Bowler wrote: >>> On 1/20/16, Nick Bowler wrote: On 2016-01-20, Jindal, Sonika wrote: > [...] > Does the same system works with any other monitor? I'll see if I can find another

[PATCH 2/8] mtd: spi-nor: guard against underflows in stm_is_locked_sr

2016-01-27 Thread Brian Norris
Users of stm_is_locked_sr() might do arithmetic that could result in a negative offset. For example, when stm_unlock() tries to check the status of the eraseblock below the range, it doesn't check for: ofs - mtd->erasesize < 0 Instead of forcing callers to be extra careful, let's just make

[PATCH 3/8] mtd: spi-nor: silently drop lock/unlock for already locked/unlocked region

2016-01-27 Thread Brian Norris
If, for instance, the entire flash is already unlocked and I try to mtd_unlock() the entire device, I don't expect to see an EINVAL error. It should just silently succeed. Ditto for mtd_lock(). Signed-off-by: Brian Norris --- drivers/mtd/spi-nor/spi-nor.c | 12 ++-- 1 file changed, 10

Re: [PATCH v1] mm/madvise: update comment on sys_madvise()

2016-01-27 Thread Naoya Horiguchi
On Wed, Jan 27, 2016 at 04:28:35PM +0100, Michal Hocko wrote: > On Wed 27-01-16 10:24:25, Naoya Horiguchi wrote: > > Some new MADV_* advices are not documented in sys_madvise() comment. > > So let's update it. > > > > Signed-off-by: Naoya Horiguchi > > Other than few suggestions below >

[PATCH 5/8] mtd: spi-nor: use BIT() for flash_info flags

2016-01-27 Thread Brian Norris
It's a little easier to read and make sure there are no collisions (IMO). Signed-off-by: Brian Norris --- drivers/mtd/spi-nor/spi-nor.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index

[PATCH 4/8] mtd: spi-nor: disallow further writes to SR if WP# is low

2016-01-27 Thread Brian Norris
Locking the flash is most useful if it provides real hardware security. Otherwise, it's little more than a software permission bit. A reasonable use case that provides real HW security might be like follows: (1) hardware WP# is deasserted (2) program flash (3) flash range is protected via status

[PATCH 6/8] mtd: spi-nor: add SPI_NOR_HAS_LOCK flag

2016-01-27 Thread Brian Norris
We can't determine this purely by manufacturer type (see commit 67b9bcd36906 ("mtd: spi-nor: fix Spansion regressions (aliased with Winbond)")), and it's not autodetectable by anything like SFDP. So make a new flag for it. Signed-off-by: Brian Norris --- drivers/mtd/spi-nor/spi-nor.c |7

[PATCH 8/8] mtd: spi-nor: support lock/unlock for a few Winbond chips

2016-01-27 Thread Brian Norris
These are recent Winbond models that are known to have lock/unlock support via writing the Status Register, and that also support the TB (Top/Bottom) protection bit. Tested on w25q32dw. [Note on style: these entries are getting pretty long lines, so I picked a style that seems reasonable for

[PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

2016-01-27 Thread K. Y. Srinivasan
tree:

[PATCH 0/8] mtd: spi-nor: locking fixes and updates

2016-01-27 Thread Brian Norris
Hi, These are an assortment of fixes and updates to the SPI NOR lock/unlock feature. The biggest new features are: (a) Status Register protection; I don't see why this shouldn't be enabled by default. See patch 4's description. (b) Bottom-block protection support (via TB status bit) (c)

[PATCH 1/8] mtd: spi-nor: wait for SR_WIP to clear on initial unlock

2016-01-27 Thread Brian Norris
Fixup a piece leftover by commit 32321e950d8a ("mtd: spi-nor: wait until lock/unlock operations are ready"). That commit made us wait for the WIP bit to settle after lock/unlock operations, but it missed the open-coded "unlock" that happens at probe() time. We should probably have this code

[RFC PATCH 7/8] mtd: spi-nor: add TB (Top/Bottom) protect support

2016-01-27 Thread Brian Norris
Some flash support a bit in the status register that inverts protection so that it applies to the bottom of the flash, not the top. This yields additions to the protection range table, as noted in the comments. Because this feature is not universal to all flash that support lock/unlock, control

Re: [PATCH v1] mm/madvise: pass return code of memory_failure() to userspace

2016-01-27 Thread Naoya Horiguchi
On Wed, Jan 27, 2016 at 02:59:11PM +0100, Vlastimil Babka wrote: > [CC += linux-api, linux-man] > > On 01/22/2016 09:27 AM, Naoya Horiguchi wrote: > > Currently the return value of memory_failure() is not passed to userspace, > > which > > is inconvenient for test programs that want to know the

Re: [RFC 3/4] ARM: imx: add the platform related rpmsg implementation

2016-01-27 Thread Shawn Guo
On Thu, Jan 28, 2016 at 02:17:21AM +, Richard Zhu wrote: > > arch/arm/mach-imx/Kconfig | 12 ++ > > arch/arm/mach-imx/Makefile| 2 + > > arch/arm/mach-imx/imx_rpmsg.c | 364 > > ++ > > arch/arm/mach-imx/mu.c| 217

RE: [PATCH V7 0/6] i2c: qup: Add support for v2 tags and bam dma

2016-01-27 Thread Sricharan
Hi Wolfram, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Wolfram Sang > Sent: Sunday, January 24, 2016 5:03 PM > To: Sricharan > Cc: devicet...@vger.kernel.org; arch...@codeaurora.org; linux-arm- >

Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value

2016-01-27 Thread Joonsoo Kim
On Wed, Jan 27, 2016 at 03:13:12PM -0800, David Rientjes wrote: > On Thu, 26 Nov 2015, Joonsoo Kim wrote: > > > I understand design decision, but, it is better to get value as much > > as accurate if there is no performance problem. My patch would not > > cause much performance degradation

RE: [PATCH V7 3/6] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2016-01-27 Thread Sricharan
Hi Wolfram, > -Original Message- > From: Wolfram Sang [mailto:w...@the-dreams.de] > Sent: Sunday, January 24, 2016 4:59 PM > To: Sricharan R > Cc: devicet...@vger.kernel.org; linux-arm-...@vger.kernel.org; > agr...@codeaurora.org; linux-kernel@vger.kernel.org; linux- >

[PATCH V2 12/13] Drivers: hv: vmbus: Eliminate the spin lock on the read path

2016-01-27 Thread K. Y. Srinivasan
The function hv_ringbuffer_read() is called always on a pre-assigned CPU. Each chnnel is bound to a specific CPU and this function is always called on the CPU the channel is bound. There is no need to acquire the spin lock; get rid of this overhead. Signed-off-by: K. Y. Srinivasan ---

[PATCH V2 08/13] Drivers: hv: vmbus: define a new VMBus message type for hvsock

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui A function to send the type of message is also added. The coming net/hvsock driver will use this function to proactively request the host to offer a VMBus channel for a new hvsock connection. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c

[PATCH V2 11/13] Drivers: hv: vmbus: add an API vmbus_hvsock_device_unregister()

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui The hvsock driver needs this API to release all the resources related to the channel. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 33 - drivers/hv/connection.c |4 ++--

[PATCH V2 10/13] Drivers: hv: vmbus: add a per-channel rescind callback

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui This will be used by the coming hv_sock driver. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 11 +++ include/linux/hyperv.h|9 + 2 files changed, 20 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 01/13] MAINTAINERS: Adding Maintainers for AMD Seattle Device Tree

2016-01-27 Thread Martin Michlmayr
* Suravee Suthikulpanit [2016-01-27 15:11]: > +AMD SEATTLE DEVICE TREE SUPPORT > +M: Brijesh Singh > +M: Suravee Suthikulpanit > +S: Supported > +M: Tom Lendacky > +S: Supported Just a minor comment, but you have a duplicate "S: Supported" line. -- Martin Michlmayr

[PATCH V2 06/13] Drivers: hv: vmbus: define the new offer type for Hyper-V socket (hvsock)

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui A helper function is also added. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 4af51a3..79c4aa7 100644

[PATCH V2 13/13] Drivers: hv: vmbus: Give control over how the ring access is serialized

2016-01-27 Thread K. Y. Srinivasan
On the channel send side, many of the VMBUS device drivers explicity serialize access to the outgoing ring buffer. Give more control to the VMBUS device drivers in terms how to serialize accesss to the outgoing ring buffer. The default behavior will be to aquire the ring lock to preserve the

[PATCH V2 04/13] Drivers: hv: vmbus: don't manipulate with clocksources on crash

2016-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov clocksource_change_rating() involves mutex usage and can't be called in interrupt context. It also makes sense to avoid doing redundant work on crash. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 10 -- 1 files

[PATCH V2 07/13] Drivers: hv: vmbus: vmbus_sendpacket_ctl: hvsock: avoid unnecessary signaling

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui When the hvsock channel's outbound ringbuffer is full (i.e., hv_ringbuffer_write() returns -EAGAIN), we should avoid the unnecessary signaling the host. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |6 +- 1 files changed, 5

[PATCH V2 05/13] Drivers: hv: vmbus: add a helper function to set a channel's pending send size

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui This will be used by the coming net/hvsock driver. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index

[PATCH V2 09/13] Drivers: hv: vmbus: add a hvsock flag in struct hv_driver

2016-01-27 Thread K. Y. Srinivasan
From: Dexuan Cui Only the coming hv_sock driver has a "true" value for this flag. We treat the hvsock offers/channels as special VMBus devices. Since the hv_sock driver handles all the hvsock offers/channels, we need to tweak vmbus_match() for hv_sock driver, so we introduce this flag.

[PATCH V2 02/13] Drivers: hv: vmbus: avoid infinite loop in init_vp_index()

2016-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When we pick a CPU to use for a new subchannel we try find a non-used one on the appropriate NUMA node, we keep track of them with the primary->alloced_cpus_in_node mask. Under normal circumstances we don't run out of available CPUs but it is possible when we we don't

[PATCH V2 01/13] tools/hv: Use include/uapi with __EXPORTED_HEADERS__

2016-01-27 Thread K. Y. Srinivasan
From: Kamal Mostafa Use the local uapi headers to keep in sync with "recently" added #define's (e.g. VSS_OP_REGISTER1). Fixes: 3eb2094c59e8 ("Adding makefile for tools/hv") Cc: Signed-off-by: Kamal Mostafa Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |2 ++ 1 files changed, 2

[PATCH V2 00/13] Drivers: hv: vmbus: Miscellaneous fixes and enhancements

2016-01-27 Thread K. Y. Srinivasan
Miscellaneous fixes and enhancements. V2: Fixed a merge error in Drivers: hv: vmbus: add an API vmbus_hvsock_device_unregister() Dexuan Cui (7): Drivers: hv: vmbus: add a helper function to set a channel's pending send size Drivers: hv: vmbus: define the new offer type for Hyper-V

[PATCH V2 03/13] Drivers: hv: vmbus: avoid scheduling in interrupt context in vmbus_initiate_unload()

2016-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov We have to call vmbus_initiate_unload() on crash to make kdump work but the crash can also be happening in interrupt (e.g. Sysrq + c results in such) where we can't schedule or the following will happen: [ 314.905786] bad: scheduling from the idle thread! Just skipping

RE: [PATCH v4] lib/spinlock_debug.c: prevent a recursive cycle in the debug code

2016-01-27 Thread byungchul.park
> From: Sergey Senozhatsky [mailto:sergey.senozhatsky.w...@gmail.com] > Sent: Thursday, January 28, 2016 11:38 AM > To: Byungchul Park > Cc: a...@linux-foundation.org; mi...@kernel.org; linux- > ker...@vger.kernel.org; akinobu.m...@gmail.com; j...@suse.cz; > torva...@linux-foundation.org;

Re: [PATCH 16/16] mm/slab: introduce new slab management type, OBJFREELIST_SLAB

2016-01-27 Thread Joonsoo Kim
On Wed, Jan 27, 2016 at 02:35:04PM +0100, Vlastimil Babka wrote: > On 01/14/2016 06:24 AM, Joonsoo Kim wrote: > > In fact, I tested another idea implementing OBJFREELIST_SLAB with > > extendable linked array through another freed object. It can remove > > memory waste completely but it causes more

Re: [RFC 3/3] CMDQ: Mediatek CMDQ driver

2016-01-27 Thread Daniel Kurtz
Hi HS, Sorry for the delay. It is hard to find time to review a >3700 line driver :-o in detail Some review comments inline, although I still do not completely understand how all that this driver does and how it works. I'll try to find time to go through this driver in detail again next

Re: [PATCH v7 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-01-27 Thread kbuild test robot
Hi Gabriel, [auto build test WARNING on driver-core/driver-core-testing] [also build test WARNING on v4.5-rc1 next-20160127] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Gabriel-L-Somlo

PM domain change on unbound devices warning on ipmi_si unload

2016-01-27 Thread Joe Lawrence
Starting in 4.5-rc1, I noticed this warning on ipmi_si driver removal: % modprobe ipmi_si % rmmod ipmi_si bus: 'platform': driver_probe_device: matched device IPI0001:00 with driver ipmi_si bus: 'platform': really_probe: probing driver ipmi_si with device IPI0001:00 ipmi_si IPI0001:00: ipmi_si:

Re: [PATCH/RFC 3/3] s390: query dynamic DEBUG_PAGEALLOC setting

2016-01-27 Thread Joonsoo Kim
On Wed, Jan 27, 2016 at 02:03:36PM +0100, Vlastimil Babka wrote: > On 01/27/2016 01:47 PM, Christian Borntraeger wrote: > > On 01/27/2016 01:41 PM, Vlastimil Babka wrote: > >> On 01/27/2016 01:59 AM, Joonsoo Kim wrote: > >> > >> I think it might be worth also to convert debug_pagealloc_enabled()

Re: [PATCH v6 1/9] ppc64 (le): prepare for -mprofile-kernel

2016-01-27 Thread Michael Ellerman
On Wed, 2016-01-27 at 11:44 +0100, Torsten Duwe wrote: > On Wed, Jan 27, 2016 at 09:19:27PM +1100, Michael Ellerman wrote: > > Hi Torsten, > > > > > +++ b/arch/powerpc/kernel/entry_64.S > > > @@ -1206,7 +1206,12 @@ _GLOBAL(enter_prom) > > > #ifdef CONFIG_DYNAMIC_FTRACE > > > _GLOBAL(mcount) > >

linux-next: Tree for Jan 28

2016-01-27 Thread Stephen Rothwell
Hi all, Changes since 20160127: The aio tree still had a build failure so I used the version from next-20160111. Non-merge commits (relative to Linus' tree): 1465 1366 files changed, 48045 insertions(+), 18337 deletions

Re: [PATCH 1/4] mailbox: mailbox-test: Use more consistent format for calling copy_from_user()

2016-01-27 Thread Jassi Brar
On Thu, Jan 14, 2016 at 12:41 PM, Lee Jones wrote: > While we're at it, ensure copy-to location is NULL'ed in the error path. > > Suggested-by: Dan Carpenter > Signed-off-by: Lee Jones > --- > drivers/mailbox/mailbox-test.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

Re: [PATCH] pinctrl: mediatek: guard sub-directory with CONFIG_PINCTRL_MTK

2016-01-27 Thread Masahiro Yamada
Hi Linus 2016-01-27 23:11 GMT+09:00 Linus Walleij : > On Sat, Jan 23, 2016 at 4:33 PM, Masahiro Yamada > wrote: > >> CONFIG_PINCTRL_MTK is more suitable than CONFIG_ARCH_MEDIATEK >> to guard the drivers/pinctrl/mediatek/ directory. >> (I renamed CONFIG_PINCTRL_MTK_COMMON to CONFIG_PINCTRL_MTK.)

[PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-01-27 Thread Kefeng Wang
Insmod locktorture with torture_type=mutex will lead to crash, Unable to handle kernel NULL pointer dereference at virtual address 0008 pgd = ffc0f6c1 [0008] *pgd=00013b221003, *pud=00013b221003, *pmd=a Internal error: Oops: 9406 [#1] PREEMPT SMP

  1   2   3   4   5   6   7   8   9   10   >