[PATCH v2] scripts/gdb: Fix loading of modules information

2016-03-28 Thread Daniel Wagner
From: Daniel Wagner The module_core symbols is not available due to 7523e4dc5057 ("module: use a structure to encapsulate layout.") The base address of the module is now stored inside struct module_layout. Signed-off-by: Daniel Wagner Cc: Jiri Kosina Cc: Rusty Russell --- Obviously, it's to

[PATCH 7/8] rtc: m41t80: add wakealarm functionality

2016-03-28 Thread Mylène Josserand
To enable the wakealarm, the device must be able to wakeup. This is done by setting the device wakeup capability to true with 'device_init_wakeup' function. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-m41t80.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-m41t80.c

[PATCH 1/8] rtc: m41t80: update sysfs entries export

2016-03-28 Thread Mylène Josserand
The driver used an old sysfs entry export. Update it to use the DEVICE_ATTR_XX macro and remove the unnecessary CONFIG_RTC_INTF_SYSFS macro. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-m41t80.c | 56 +++- 1 file changed, 32 insertions(+), 24 de

[PATCH 3/8] rtc: m41t80: replace i2c functions to smbus ones

2016-03-28 Thread Mylène Josserand
The driver used i2c_transfer methods to read and set date/time. The smbus methods should be used. This commit replaces i2c_transfer functions by i2c_smbus_XX_i2c_block_data for reading and setting the datetime. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-m41t80.c | 134 -

[PATCH 4/8] rtc: m41t80: add the use of 'BIT' macro

2016-03-28 Thread Mylène Josserand
Replace bit shifts by BIT macro. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-m41t80.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 1a76927..f991433 100644 --- a/drivers/rtc/r

Re: [PATCH 1/1] drm: fsl-dcu: Use flat cache

2016-03-28 Thread Alexander Stein
On Friday 25 March 2016 09:24:28, Stefan Agner wrote: > Hi Alexander, > > On 2016-03-24 06:33, Alexander Stein wrote: > > Using REGCACHE_RBTREE for MMIO regmap is not valid as spinlock's will be > > used during cache allocation. > > > > This fixes the following bug: > > BUG: sleeping function cal

[PATCH 8/8] rtc: m41t80: handle oscillator failure bit

2016-03-28 Thread Mylène Josserand
Handle the Oscillator Failure (OF) bit on each read of date-time. If the OF is set, an error is returned (-EINVAL) instead of the date-time. The OF bit is cleared each time the date is set. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-m41t80.c | 25 +++-- 1 file change

[PATCH 5/8] rtc: m41t80: remove warnings and replace obsolete function

2016-03-28 Thread Mylène Josserand
Replace the obsolete "simple_strtoul" function to "kstrtoul". Remove some checkpatch's errors, warnings and checks : - alignment with open parenthesis - spaces around '<' and '<<' - blank line after structure - quoted string split across lines Signed-off-by: Mylène Josserand --- driv

[PATCH 6/8] rtc: m41t80: add alarm functionality

2016-03-28 Thread Mylène Josserand
Previous 'commit c3b79770e51a ("Expire alarms after the time is set")' and 'commit 48e9766726eb ("remove disabled alarm functionality")' removed the alarm support because the alarm irq was not functional. Add the alarm IRQ functionality with newer functions than previous code. Tested with 'rtctest

[PATCH 2/8] rtc: m41t80: remove proc macro

2016-03-28 Thread Mylène Josserand
Remove the CONFIG_RTC_INTF_PROC and CONFIG_RTC_INTF_PROC_MODULE macro which is not necessary anymore. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-m41t80.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 2721789..cc8b93d 100

[PATCH 0/8] rtc: m41t80: update and add functionalities

2016-03-28 Thread Mylène Josserand
This patchset updates the m41t80 driver : - update the sysfs entries export to use DEVICE_ATTR_XX - remove some unnecessary macro - replace old i2c functions to smbus ones - use BIT macro - remove some warnings - replace obsolete functions It adds also some functionalities : - alarm

[PATCH 1/1] regcache: flat: Require max_registers to be set

2016-03-28 Thread Alexander Stein
If max_register is unset, regcache_flat_get_index will return 0 and only memory for 1 unsigned int will be allocated, resulting in writing out of bounds. Signed-off-by: Alexander Stein --- drivers/base/regmap/regcache-flat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

Re: [PATCH] HID: lenovo: Don't use stack variables for DMA buffers

2016-03-28 Thread Benjamin Tissoires
On Mar 28 2016 or thereabouts, Josh Boyer wrote: > The lenovo_send_cmd_cptkbd function uses a stack variable to submit > commands via hid_hw_raw_request. Eventually this gets to the > usb_hcd_map_urb_for_dma function, which causes a warning to be thrown > if the CONFIG_DMA_API_DEBUG option is enab

[PATCH 1/1] ipv4: fix NULL pointer dereference in __inet_put_port()

2016-03-28 Thread fanhui
There may be race condition when accessing inet_csk(sk)->icsk_bind_hash, which leads to a crash like this: Unable to handle kernel NULL pointer dereference at virtual address 0010 .. [] inet_put_port+0x80/0xb8 [] tcp_set_state+0xc4/0x110 [] tcp_done+0x60/0xb8 [] tcp_nuke_addr+0x22c/0x2a0 [

Re: Build regressions/improvements in v4.6-rc1

2016-03-28 Thread Geert Uytterhoeven
On Tue, Mar 29, 2016 at 12:47 AM, Darrick J. Wong wrote: > (No idea if it fixes fixes cris, but it passes the six arches that I can > actually test on (x86/power/arm)). The downside is that it does nothing about https://www.kernel.org/pub/tools/crosstool/ Gr{oetje,eeting}s,

Re: [PATCH v2 6/8] drm/fsl-dcu: add TCON driver

2016-03-28 Thread Alexander Stein
Hi, some comments below. On Monday 28 March 2016 19:00:00, Stefan Agner wrote: > Add driver for the TCON (timing controller) module. The TCON module > is a separate module attached after the DCU (display controller > unit). Each DCU instance has its own, directly connected TCON > instance. The DC

[PATCH net-next] net: hns: add support of pause frame ctrl for HNS V2

2016-03-28 Thread Yisen Zhuang
From: Lisheng The patch adds support of pause ctrl for HNS V2, and this feature is lost by HNS V1: 1) service ports can disable rx pause frame, 2) debug ports can open tx/rx pause frame. And this patch updates the REGs about the pause ctrl when updated status function called by upp

[PATCH] scripts/gdb: Fix loading of modules information

2016-03-28 Thread Daniel Wagner
From: Daniel Wagner The module_core symbols is not available due to 7523e4dc5057 ("module: use a structure to encapsulate layout.") The base address of the module is now stored inside struct module_layout. Signed-off-by: Daniel Wagner Cc: Jiri Kosina Cc: Rusty Russell --- scripts/gdb/linux

[PATCH V2 3/3] cpufreq: exynos: Use generic platdev driver

2016-03-28 Thread Viresh Kumar
The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform device now, reuse that and remove similar code from platform code. Signed-off-by: Viresh Kumar Reviewed-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/exynos.c| 29 - drivers/cpufreq/cpu

[PATCH V1 Resend 1/3] cpufreq: dt: Include types.h from cpufreq-dt.h

2016-03-28 Thread Viresh Kumar
cpufreq-dt.h uses 'bool' data type but doesn't include types.h. It works fine for now as the files that include cpufreq-dt.h, also include types.h directly or indirectly. But, when a file includes cpufreq-dt.h without including types.h, we get a build error. Avoid such errors by including types.h

[PATCH V1 Resend 2/3] cpufreq: dt: Add generic platform-device creation support

2016-03-28 Thread Viresh Kumar
Multiple platforms are using the generic cpufreq-dt driver now, and all of them are required to create a platform device with name "cpufreq-dt", in order to get the cpufreq-dt probed. Many of them do it from platform code, others have special drivers just to do that. It would be more sensible to

Re: [PATCH] fs/vfs: improve __mnt_is_readonly

2016-03-28 Thread Yaowei Bai
On Sat, Mar 26, 2016 at 12:43:32AM +, Al Viro wrote: > On Fri, Mar 25, 2016 at 10:01:26AM +0800, Yaowei Bai wrote: > > This patch refactors __mnt_is_readonly and makes it return bool to > > improve readability due to this particular function only using either > > one or zero as its return value

[PATCH] fsl/qe_ic: move qe_ic to drivers/irqchip

2016-03-28 Thread Zhao Qiang
qe_ic was put in drivers/soc/fsl/qe, but it should be in drivers/irqchip. Signed-off-by: Zhao Qiang --- drivers/irqchip/Makefile| 1 + drivers/{soc/fsl/qe => irqchip}/qe_ic.c | 0 drivers/{soc/fsl/qe => irqchip}/qe_ic.h | 0 drivers/soc/fsl/qe/Makefile | 2 +- 4 files

[PATCH] gpio: pca953x: Use correct u16 value for register word write

2016-03-28 Thread Yong Li
The current implementation only uses the first byte in *val, the second data is always 0. Change it to *(u16 *)val to write the two bytes into the register Signed-off-by: Yong Li --- drivers/gpio/gpio-pca953x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio

Re: [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core

2016-03-28 Thread Pan Xinhui
On 2016年03月24日 11:51, Li Zhang wrote: > From: Li Zhang > > __free_pages_boot_core has parameter pfn which is not used at all. > So this patch is to make it clean. > > Signed-off-by: Li Zhang Reviewed-by: Pan Xinhui

Re: Build regressions/improvements in v4.6-rc1

2016-03-28 Thread Mikael Starvik
I have not lookend at the structs but CRIS is a bit unusual since it does no alignment what so ever. If a short is followed by an int will be unaligned like in a packed struct. Jesper or someone else will take a look at this specific issue. /Mikael > 29 mars 2016 kl. 00:47 skrev Darrick J. Wong

Re: [PATCH 2/2] mmc: dw_mmc: add resets support to dw_mmc

2016-03-28 Thread Jaehoon Chung
On 03/29/2016 03:09 PM, Shawn Lin wrote: > 在 2016/3/29 13:56, Jaehoon Chung 写道: >> On 03/29/2016 11:22 AM, Shawn Lin wrote: >>> 在 2016/3/25 13:35, Guodong Xu 写道: Hi, Shawn Sorry I replied late. I added comments below. On 6 March 2016 at 22:16, Shawn Lin >>>

Re: [PATCH] regmap: mmio: Fix value endianness selection

2016-03-28 Thread Stefan Agner
On 2016-03-28 23:10, Alexander Stein wrote: > On Friday 25 March 2016 11:24:59, Mark Brown wrote: >> On Wed, Mar 23, 2016 at 03:20:46PM +0100, Alexander Stein wrote: >> > The difference in those drivers is that syscon manually sets >> > config.val_format_endian before calling regmap_init_mmio. >> >

[PATCH 03/16] wcn36xx: Add helper macros to cast vif to private vif and vice versa

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Makes the code a little easier to read. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/debug.c | 12 +++- drivers/net/wireless/ath/wcn36xx/main.c| 16 +++- drivers/net/wireless/ath/wcn36xx/pmc.c

[PATCH 01/16] wcn36xx: Clean up wcn36xx_smd_send_beacon

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Needed for coming improvements. No functional changes. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 7 +-- drivers/net/wireless/ath/wcn36xx/smd.c | 12 +--- 2 files changed, 10 insertions(+), 9 deletion

[PATCH 04/16] wcn36xx: Use consistent name for private vif

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Some code used priv_vif and some used vif_priv. Convert all to vif_priv for consistency. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-

Re: [PATCH 2/2] mmc: dw_mmc: add resets support to dw_mmc

2016-03-28 Thread Shawn Lin
在 2016/3/29 13:56, Jaehoon Chung 写道: On 03/29/2016 11:22 AM, Shawn Lin wrote: 在 2016/3/25 13:35, Guodong Xu 写道: Hi, Shawn Sorry I replied late. I added comments below. On 6 March 2016 at 22:16, Shawn Lin mailto:shawn@rock-chips.com>> wrote: On 2016/3/6 16:47, Guodong Xu wrote:

[PATCH 10/16] wcn36xx: Copy all members in config_sta v1 conversion

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs When converting to version 1 of the config_sta struct not all members where copied. This fixes the problem of multicast frames not being delivered on an encrypted network. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c

[PATCH 14/16] wcn36xx: Implement multicast filtering

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Pass the multicast list to FW. This patch also adds a way to build the smd command in place. This is needed because the MC list command is too big for the stack. Signed-off-by: Pontus Fuchs [bjorn: dropped FIF_PROMISC_IN_BSS usage] Signed-off-by: Bjorn Andersson Signed-off

Re: [PATCH] regmap: mmio: Fix value endianness selection

2016-03-28 Thread Alexander Stein
On Friday 25 March 2016 11:24:59, Mark Brown wrote: > On Wed, Mar 23, 2016 at 03:20:46PM +0100, Alexander Stein wrote: > > The difference in those drivers is that syscon manually sets > > config.val_format_endian before calling regmap_init_mmio. > > spi-fsl-dspi does not. I guess this driver relies

[PATCH 05/16] wcn36xx: Use define for invalid index and fix typo

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 2 +- drivers/net/wireless/ath/wcn36xx/main.c | 4 ++-- drivers/net/wireless/ath/wcn36xx/smd.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 06/16] wcn36xx: Fetch private sta data from sta entry instead of from vif

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs For consistency with other code. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wc

[PATCH 12/16] wcn36xx: Clear encrypt_type when deleting bss key

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs This fixes a problem connecting to an open network after being connected to an encrypted network. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireles

[PATCH 09/16] wcn36xx: Parse trigger_ba response properly

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs This message does not follow the canonical format and needs it's own parser. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH 07/16] wcn36xx: Add helper macros to cast sta to priv

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs While poking at this I also change two related things. I rename one variable to make the names consistent. I also move one assignment of priv_sta to the declaration to save a few lines. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/

[PATCH 11/16] wcn36xx: Use allocated self sta index instead of hard coded

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index ce764cce1a3e..8b30

[PATCH 13/16] wcn36xx: Track association state

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs Knowing the association state is needed for mc filtering. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c| 2 ++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drive

[PATCH 16/16] wcn36xx: Use correct command struct for EXIT_BMPS_REQ

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs EXIT_BMPS_REQ was using the command struct for ENTER_BMPS_REQ. I spotted this when looking at command dumps. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 15/16] wcn36xx: don't pad beacons for mesh

2016-03-28 Thread Bjorn Andersson
From: Jason Mobarak Patch "wcn36xx: Pad TIM PVM if needed" has caused a regression in mesh beaconing. The field tim_off is always 0 for mesh mode, and thus pvm_len (referring to the TIM length field) and pad are both incorrectly calculated. Thus, msg_body.beacon_length is incorrectly calculated

[PATCH 08/16] wcn36xx: Remove sta pointer in private vif struct

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs This does not work with multiple sta's in a vif. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c| 3 --- drivers/net/wireless/ath/wcn36xx/smd.c | 28 +++- drivers/net/wireless/ath/wcn36x

[PATCH 02/16] wcn36xx: Pad TIM PVM if needed

2016-03-28 Thread Bjorn Andersson
From: Pontus Fuchs The wcn36xx FW expects a fixed size TIM PVM in the beacon template. If supplied with a shorter than expected PVM it will overwrite the IE following the TIM. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 3 +++ drive

[PATCH 00/16] Misc wcn36xx fixes

2016-03-28 Thread Bjorn Andersson
As I was debugging some issues with the wcn36xx driver I found a series of patches that exists in Eugene's github tree but not in mainline. Noteworthy is the long requested feature of having working ARP support. Please apply these rebased and relocated patches. Jason Mobarak (1): wcn36xx: don'

Re: [PATCH v2 5/9] ARM: dts: qcom: msm8974: Introduce the wcnss remoteproc node

2016-03-28 Thread kbuild test robot
Hi Bjorn, [auto build test ERROR on v4.6-rc1] [also build test ERROR on next-20160329] [cannot apply to robh/for-next] [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/Bjorn-Andersson/Qualcomm-W

Re: fallocate INSERT_RANGE/COLLAPSE_RANGE is completely broken [PATCH]

2016-03-28 Thread Kent Overstreet
On Tue, Mar 29, 2016 at 04:15:58PM +1100, Dave Chinner wrote: > On Mon, Mar 28, 2016 at 08:25:46PM -0800, Kent Overstreet wrote: > > Bit of previous discussion: > > http://thread.gmane.org/gmane.linux.file-systems/101201/ > > > > The underlying issue is that we have no mechanism for invalidating a

Re: [PATCH 4/4] perf core: Add backward attribute to perf event

2016-03-28 Thread Wangnan (F)
On 2016/3/29 12:59, Alexei Starovoitov wrote: On Tue, Mar 29, 2016 at 10:01:24AM +0800, Wangnan (F) wrote: On 2016/3/28 14:41, Wang Nan wrote: [SNIP] To prevent this problem, we need to find a way to ensure the ring buffer is stable during reading. ioctl(PERF_EVENT_IOC_PAUSE_OUTPUT) is sug

Re: [PATCH 2/2] mmc: dw_mmc: add resets support to dw_mmc

2016-03-28 Thread Jaehoon Chung
On 03/29/2016 11:22 AM, Shawn Lin wrote: > 在 2016/3/25 13:35, Guodong Xu 写道: >> Hi, Shawn >> >> Sorry I replied late. I added comments below. >> >> On 6 March 2016 at 22:16, Shawn Lin > > wrote: >> >> On 2016/3/6 16:47, Guodong Xu wrote: >> >> mmc regist

Re: [LKP] [lkp] [futex] 65d8fc777f: +25.6% will-it-scale.per_process_ops

2016-03-28 Thread Huang, Ying
Darren Hart writes: > On Tue, Mar 29, 2016 at 09:12:56AM +0800, Huang, Ying wrote: >> Darren Hart writes: >> >> > On Mon, Mar 21, 2016 at 04:42:47PM +0800, Huang, Ying wrote: >> >> Thomas Gleixner writes: >> >> >> >> > On Mon, 21 Mar 2016, Huang, Ying wrote: >> >> >> > FYI, we noticed 25.6%

Re: [PATCH 01/30] ACPICA: Linuxize: reduce divergences for 20160212 release

2016-03-28 Thread Joe Perches
On Tue, 2016-03-29 at 05:37 +, Zheng, Lv wrote: > Hi, Hi again. > > No, I disagree.  _I_ don't need to.  You need to. > [Lv Zheng]  > Then you don't have to provide the solution as you are not the one executing > the process. > I can fix it myself: > https://github.com/acpica/acpica/pull/129 

RE: [PATCH v2 3/6] Documentation: DT: vdma: update binding doc for AXI DMA

2016-03-28 Thread Appana Durga Kedareswara Rao
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Tuesday, March 29, 2016 2:23 AM > To: Appana Durga Kedareswara Rao > Cc: pawel.m...@arm.com; mark.rutl...@arm.com; > ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; Michal Simek; Soren > Brinkmann; vinod

RE: [PATCH v2 5/6] Documentation: DT: vdma: update binding doc for AXI CDMA

2016-03-28 Thread Appana Durga Kedareswara Rao
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Tuesday, March 29, 2016 2:26 AM > To: Appana Durga Kedareswara Rao > Cc: Soren Brinkmann; pawel.m...@arm.com; mark.rutl...@arm.com; > ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; Michal Simek; > vinod

[RESEND][PATCH] mtd: devices: m25p80: add support for mmap read request

2016-03-28 Thread Vignesh R
Certain SPI controllers may provide accelerated hardware interface to read from m25p80 type flash devices in order to provide better read performance. SPI core supports such devices with spi_flash_read() API. Call spi_flash_read(), if supported, to make use of such interface. Signed-off-by: Vignes

Re: [PATCH 5/6] powerpc/livepatch: Add livepatch stack to struct thread_info

2016-03-28 Thread Balbir Singh
>> At this point ti->livepatch_sp points to the next CPUs thread_info for >> softirq_ctx? > Sorry I'm not sure what you mean. > > None of this relates to the current CPUs thread info. Oh! I meant that klp_init_thread_info points to the end of (struct thread_info {} + 1) in the stack of the threa

Re: [PATCH] i.MX6 PCIe: Fix imx6_pcie_deassert_core_reset() polarity

2016-03-28 Thread Krzysztof Hałasa
> OTOH, we should fix it some day, making sure the DTS files are fixed > first: > > imx6qdl-apf6dev.dtsi: reset-gpio = <&gpio6 2 GPIO_ACTIVE_HIGH>; > imx6qdl-aristainetos2.dtsi: reset-gpio = <&gpio2 16 GPIO_ACTIVE_HIGH>; > imx6qdl-hummingboard.dtsi: reset-gpio = <&gpio3 4 0>; (I think RMK al

Re: [PATCH] i.MX6 PCIe: Fix imx6_pcie_deassert_core_reset() polarity

2016-03-28 Thread Krzysztof Hałasa
Fabio Estevam writes: > In order to keep old dtb's working we should simply ignore the GPIO > flags passed in the 'reset-gpio' property. > > That's why we need a revert. Just sent a v2, BTW. OTOH, we should fix it some day, making sure the DTS files are fixed first: imx6qdl-apf6dev.dtsi:

Re: [PATCH] mwifiex: add __GFP_REPEAT to skb allocation call

2016-03-28 Thread James Cameron
On Tue, Mar 29, 2016 at 12:47:20PM +0800, Wei-Ning Huang wrote: > "single skb allocation failure" happens when system is under heavy > memory pressure. Add __GFP_REPEAT to skb allocation call so kernel > attempts to reclaim pages and retry the allocation. Oh, that's interesting, we're back to thi

RE: [PATCH 01/30] ACPICA: Linuxize: reduce divergences for 20160212 release

2016-03-28 Thread Zheng, Lv
Hi, > From: Joe Perches [mailto:j...@perches.com] > Subject: Re: [PATCH 01/30] ACPICA: Linuxize: reduce divergences for 20160212 > release > > On Mon, 2016-03-28 at 03:02 +, Zheng, Lv wrote: > > Hi, > > Hello. > > > > So why not fix the process script first? > > > Maybe add something like:

Re: [PATCH] i.MX6 PCIe: Fix imx6_pcie_deassert_core_reset() polarity

2016-03-28 Thread Krzysztof Hałasa
Tim Harvey writes: > It's not too easy to tell how many IMX6 boards incorrectly specify > their reset-gpio polarity. I don't know what the best way to determine > what boards use the IMX6 pcie host controller. Is there a dtc usage > that will display the compiled dtb's then we grep out 'compatibl

Re: [PATCH 6/6] powerpc/livepatch: Add live patching support on ppc64le

2016-03-28 Thread Michael Ellerman
On Thu, 2016-03-24 at 14:42 +0100, Torsten Duwe wrote: > On Thu, Mar 24, 2016 at 10:04:05PM +1100, Michael Ellerman wrote: > > +livepatch_handler: > > + CURRENT_THREAD_INFO(r12, r1) > [...] > > + /* Put ctr in r12 for global entry and branch there */ > > + mfctr r12 > > + bctrl >

Re: [PART1 RFC v3 02/12] KVM: x86: Introducing kvm_x86_ops VM init/uninit hooks

2016-03-28 Thread Suravee Suthikulpanit
Hi Paolo, On 3/18/16 17:11, Paolo Bonzini wrote: On 18/03/2016 07:09, Suravee Suthikulpanit wrote: >Adding function pointers in struct kvm_x86_ops for processor-specific >layer to provide hooks for when KVM initialize and un-initialize VM. This is not the only thing your patch is doing, and t

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-28 Thread Darren Hart
On Mon, Mar 28, 2016 at 09:41:09PM +0200, Gabriele Mazzotta wrote: > 2016-03-28 20:56 GMT+02:00 Darren Hart : > > On Mon, Mar 28, 2016 at 07:58:09PM +0200, Gabriele Mazzotta wrote: > >> 2016-03-28 19:33 GMT+02:00 Darren Hart : > >> > On Thu, Mar 24, 2016 at 12:24:56PM +0100, Gabriele Mazzotta wrote

Re: [PATCH] i.MX6 PCIe: Fix imx6_pcie_deassert_core_reset() polarity

2016-03-28 Thread Krzysztof Hałasa
Tim Harvey writes: > ok - I'll respond there as I agree with the patch but not the wording > of the commit (It's Gateworks 'Ventana' using IMX6 not Laguna and we > do define the polarity properly as active-low in Ventana dt's). Right, it's Ventana of course (I had been working with Laguna boards

Re: [PATCH 5/6] powerpc/livepatch: Add livepatch stack to struct thread_info

2016-03-28 Thread Michael Ellerman
On Tue, 2016-03-29 at 10:58 +1100, Balbir Singh wrote: > On 24/03/16 22:04, Michael Ellerman wrote: > > diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c > > index 290559df1e8b..3cb46a3b1de7 100644 > > --- a/arch/powerpc/kernel/irq.c > > +++ b/arch/powerpc/kernel/irq.c > > @@ -66,6

Re: [LKP] [lkp] [futex] 65d8fc777f: +25.6% will-it-scale.per_process_ops

2016-03-28 Thread Darren Hart
On Tue, Mar 29, 2016 at 09:12:56AM +0800, Huang, Ying wrote: > Darren Hart writes: > > > On Mon, Mar 21, 2016 at 04:42:47PM +0800, Huang, Ying wrote: > >> Thomas Gleixner writes: > >> > >> > On Mon, 21 Mar 2016, Huang, Ying wrote: > >> >> > FYI, we noticed 25.6% performance improvement due to

Re: fallocate INSERT_RANGE/COLLAPSE_RANGE is completely broken [PATCH]

2016-03-28 Thread Dave Chinner
On Mon, Mar 28, 2016 at 08:25:46PM -0800, Kent Overstreet wrote: > Bit of previous discussion: > http://thread.gmane.org/gmane.linux.file-systems/101201/ > > The underlying issue is that we have no mechanism for invalidating a range of > the pagecache and then _keeping it invalidated_ while we Do

[PATCH] thermal: fix thermal_power_allocator trace event

2016-03-28 Thread Ricky Liang
Fix the dynamic array length in printing the thermal_power_allocator trace event. CC: Javi Merino CC: Daniel Kurtz Signed-off-by: Ricky Liang --- include/trace/events/thermal_power_allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/thermal_

Re: [PATCH 4/4] perf core: Add backward attribute to perf event

2016-03-28 Thread Alexei Starovoitov
On Tue, Mar 29, 2016 at 10:01:24AM +0800, Wangnan (F) wrote: > > > On 2016/3/28 14:41, Wang Nan wrote: > > [SNIP] > > > > >To prevent this problem, we need to find a way to ensure the ring buffer > >is stable during reading. ioctl(PERF_EVENT_IOC_PAUSE_OUTPUT) is > >suggested because its overhea

Re: [PATCH V8 00/14] Add T210 support in Tegra soctherm

2016-03-28 Thread Wei Ni
On 2016年03月29日 11:04, Eduardo Valentin wrote: > On Fri, Mar 25, 2016 at 01:37:17PM +0800, Wei Ni wrote: >> Hi, Eduardo >> Will you take this series, it seems no more comments. > > Yeah, I am taking a look at it. Something is fishy about it. Patch 04 > does not apply cleanly. Also, why did you sp

[PATCH 3/3] staging: dgnc: fix Logical continuations.

2016-03-28 Thread Daeseok Youn
fix checkpatch.pl warning about 'Logical continuations should be on the previous line' Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index

[PATCH 2/3] staging: dgnc: fix 'line over 80 characters'

2016-03-28 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters'. I just moved all line comment to above if statement. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drive

[PATCH 1/3] staging: dgnc: remove parenthesis around the CONST |

2016-03-28 Thread Daeseok Youn
remove parenthesis around the CONST | CONST. It will be also fixed checkpatch.pl warning about "Alignment should match open parenthesis" becasue parenthesis were removed by this patch. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 26 +- 1 file changed

[PATCH] mwifiex: add __GFP_REPEAT to skb allocation call

2016-03-28 Thread Wei-Ning Huang
"single skb allocation failure" happens when system is under heavy memory pressure. Add __GFP_REPEAT to skb allocation call so kernel attempts to reclaim pages and retry the allocation. Signed-off-by: Wei-Ning Huang --- drivers/net/wireless/marvell/mwifiex/sdio.c | 12 1 file chang

Re: [PATCH 3/3] cpufreq: exynos: Use generic platdev driver

2016-03-28 Thread Krzysztof Kozlowski
On 29.03.2016 13:19, Viresh Kumar wrote: > On 29-03-16, 09:48, Viresh Kumar wrote: >> On 29-03-16, 13:10, Krzysztof Kozlowski wrote: >>> On 24.03.2016 15:40, Viresh Kumar wrote: The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform device now, reuse that and remove simila

Re: [PATCH 1/4 fix] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-03-28 Thread Alexei Starovoitov
On Tue, Mar 29, 2016 at 02:05:07AM +, Wang Nan wrote: > Add new ioctl() to pause/resume ring-buffer output. > > In some situations we want to read from ring buffer only when we > ensure nothing can write to the ring buffer during reading. Without > this patch we have to turn off all events att

Re: [PATCH 3/4] wcn36xx: Transition driver to SMD client

2016-03-28 Thread Bjorn Andersson
On Mon, Jan 11, 2016 at 1:02 AM, Eugene Krasnikov wrote: > Better late than never! Looks good to me. > Unfortunately I ran into an issue with ordering of operations between the WiFi driver and the wcnss_ctrl driver. So an updated series is on the way, but this depends on changes to the wcnss_ctrl

[PATCH 3/5] dt-binding: Add Qualcomm WCNSS control binding

2016-03-28 Thread Bjorn Andersson
This binding describes the control interface for the Qualcomm WCNSS. Signed-off-by: Bjorn Andersson --- Got a reviewed-by from Andy and acked-by from Rob on the WiFi part of this binding. But during futher testing I spotted a timing issue, where the wcnss_ctrl driver must finish the uploading of

[PATCH 4/5] soc: qcom: wcnss_ctrl: Make wcnss_ctrl parent the other components

2016-03-28 Thread Bjorn Andersson
We need the signal from wcnss_ctrl indicating that the firmware is up and running before we can communicate with the other components of the chip. So make these other components children of the wcnss_ctrl device, so they can be probed in order. The process seems to take between 1/2-5 seconds, so t

[PATCH 1/5] soc: qcom: smd: Make callback pass channel reference

2016-03-28 Thread Bjorn Andersson
By passing the smd channel reference to the callback, rather than the smd device, we can open additional smd channels from sub-devices of smd devices. Also updates the two smd clients today found in mainline. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/smd-rpm.c| 9 ++--- drive

[PATCH 5/5] ARM: dts: qcom: msm8974: Introduce pronto node

2016-03-28 Thread Bjorn Andersson
From: Bjorn Andersson Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom-msm8974-sony-xperia-honami.dts | 4 +++ arch/arm/boot/dts/qcom-msm8974.dtsi| 29 ++ 2 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 2/5] soc: qcom: smem: Use write-combine remap for SMEM

2016-03-28 Thread Bjorn Andersson
Mapping the SMEM region as write combine makes the contiguous writes in SMD perform better and also allows us to do unaligned read and writes on ARM64. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/smem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/qco

Re: [PATCH V8 00/14] Add T210 support in Tegra soctherm

2016-03-28 Thread Wei Ni
On 2016年03月29日 11:29, Eduardo Valentin wrote: > On Mon, Mar 28, 2016 at 08:04:41PM -0700, Eduardo Valentin wrote: >> On Fri, Mar 25, 2016 at 01:37:17PM +0800, Wei Ni wrote: >>> Hi, Eduardo >>> Will you take this series, it seems no more comments. >> >> Yeah, I am taking a look at it. Something is

fallocate INSERT_RANGE/COLLAPSE_RANGE is completely broken [PATCH]

2016-03-28 Thread Kent Overstreet
Bit of previous discussion: http://thread.gmane.org/gmane.linux.file-systems/101201/ The underlying issue is that we have no mechanism for invalidating a range of the pagecache and then _keeping it invalidated_ while we Do Stuff. The fallocate INSERT_RANGE/COLLAPSE_RANGE situation seems likely t

Re: [PATCH 0/3] drm/exynos: Kconfig dependency fixes

2016-03-28 Thread Seung-Woo Kim
Hello Javier, On 2016년 03월 29일 11:41, Javier Martinez Canillas wrote: > Hello Seung-Woo, > > Thanks a lot for your feedback. > > On 03/28/2016 09:46 PM, Seung-Woo Kim wrote: >> Hi Javier, >> >> On 2016년 03월 29일 10:28, Javier Martinez Canillas wrote: >>> Hello Inki, >>> >>> This patch series cont

[PATCH] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2016-03-28 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Signed-off-by: Suravee Suthikulpanit Signed-off-by: Fu Wei Reviewed-by: Guenter Roeck --- Changelog: v1 :Re-upstream it

Re: [PATCH 3/3] cpufreq: exynos: Use generic platdev driver

2016-03-28 Thread Viresh Kumar
On 29-03-16, 09:48, Viresh Kumar wrote: > On 29-03-16, 13:10, Krzysztof Kozlowski wrote: > > On 24.03.2016 15:40, Viresh Kumar wrote: > > > The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform > > > device now, reuse that and remove similar code from platform code. > > > > > > Si

Re: [PATCH 3/3] cpufreq: exynos: Use generic platdev driver

2016-03-28 Thread Viresh Kumar
On 29-03-16, 13:10, Krzysztof Kozlowski wrote: > On 24.03.2016 15:40, Viresh Kumar wrote: > > The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform > > device now, reuse that and remove similar code from platform code. > > > > Signed-off-by: Viresh Kumar > > --- > > arch/arm/mac

Re: [PATCH 3/3] cpufreq: exynos: Use generic platdev driver

2016-03-28 Thread Krzysztof Kozlowski
On 24.03.2016 15:40, Viresh Kumar wrote: > The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform > device now, reuse that and remove similar code from platform code. > > Signed-off-by: Viresh Kumar > --- > arch/arm/mach-exynos/exynos.c| 25 - > dr

Re: [PATCH RT 4/6] rt/locking: Reenable migration accross schedule

2016-03-28 Thread Mike Galbraith
On Fri, 2016-03-25 at 17:24 +0100, Mike Galbraith wrote: > On Fri, 2016-03-25 at 10:13 +0100, Mike Galbraith wrote: > > On Fri, 2016-03-25 at 09:52 +0100, Thomas Gleixner wrote: > > > On Fri, 25 Mar 2016, Mike Galbraith wrote: > > > > On Thu, 2016-03-24 at 12:06 +0100, Mike Galbraith wrote: > > > >

Re: [PATCH 2/3] cpufreq: dt: Add generic platform-device creation support

2016-03-28 Thread Krzysztof Kozlowski
On 24.03.2016 15:40, Viresh Kumar wrote: > Multiple platforms are using the generic cpufreq-dt driver now, and all > of them are required to create a platform device with name "cpufreq-dt", > in order to get the cpufreq-dt probed. > > Many of them do it from platform code, others have special driv

Re: [RFC PATCH 1/2] mm/hugetlbfs: Attempt PUD_SIZE mapping alignment if PMD sharing enabled

2016-03-28 Thread Hillf Danton
> > When creating a hugetlb mapping, attempt PUD_SIZE alignment if the > following conditions are met: > - Address passed to mmap or shmat is NULL > - The mapping is flaged as shared > - The mapping is at least PUD_SIZE in length > If a PUD_SIZE aligned mapping can not be created, then fall back t

Re: [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes

2016-03-28 Thread kbuild test robot
Hi Bjorn, [auto build test ERROR on v4.6-rc1] [also build test ERROR on next-20160329] [cannot apply to robh/for-next] [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/Bjorn-Andersson/ARM-dts-qc

[PATCH v2 2/9] remoteproc: core: Make the loaded resource table optional

2016-03-28 Thread Bjorn Andersson
From: Bjorn Andersson Remote processors like the ones found in the Qualcomm SoCs does not have a resource table passed to them, so make it optional by only populating it if it does exist. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- Changes since v1: - None drivers/remo

[PATCH v2 8/9] ARM: dts: qcom: apq8064: Add smd node and all edges

2016-03-28 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- Andy, this is only here for context, please apply separately. Changes since v1: - Added dts patches arch/arm/boot/dts/qcom-apq8064.dtsi | 40 + 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.d

[PATCH v2 3/9] remoteproc: Add additional crash reasons

2016-03-28 Thread Bjorn Andersson
From: Bjorn Andersson The Qualcomm WCNSS can crash by watchdog or a fatal software error. Add these types to the list of remoteproc crash reasons. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- Changes since v1: - None drivers/remoteproc/remoteproc_core.c | 2 ++ include/

[PATCH v2 0/9] Qualcomm WCNSS remoteproc

2016-03-28 Thread Bjorn Andersson
This series introduces the remoteproc driver for controlling the Qualcomm Wireless Connectivity Subsystem (WCNSS). The WCNSS is a builtin ARM9 inside the Qualcomm SoC with an externally connected RF module (iris). Supports booting and shutting down wcnss on 8064, 8974 and 8016. The driver will cal

[PATCH v2 4/9] remoteproc: Introduce Qualcomm WCNSS firmware loader

2016-03-28 Thread Bjorn Andersson
From: Bjorn Andersson This introduces the peripheral image loader, for loading WCNSS firmware and boot the core on e.g. MSM8974. The firmware is verified and booted with the help of the Peripheral Authentication System (PAS) in TrustZone. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Ande

  1   2   3   4   5   6   >