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

2016-06-22 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig and x86_64 allmodconfig) produced this warning: drivers/base/node.c: In function 'node_read_meminfo': drivers/base/node.c:127:31: warning: passing argument 1 of 'node_page_state' makes pointer from

[patch] cpufreq/pcc-cpufreq: Fix doorbell.access_width

2016-06-22 Thread Mike Galbraith
Commit 920de6ebfab8 apparently exposed a latent bug, doorbell.access_width is initialized to 64, but per Lv Zheng, it should be 4, and indeed, making that change does bring pcc-cpufreq back to life. Suggested-by: Lv Zheng Signed-off-by: Mike Galbraith --- drivers/cpufreq/pcc-cpufreq.c |2 +-

Re: Doing crypto in small stack buffers (bluetooth vs vmalloc-stack crash, etc)

2016-06-22 Thread Herbert Xu
On Thu, Jun 23, 2016 at 11:48:25AM +0800, Herbert Xu wrote: > > No we never had such an API in the kernel. However, I see that > rxkad does some pretty silly things and we should be able to avoid > using the stack in pretty much all cases. Let me try to come up with > something. Here it is: --

Re: [PATCH v5 9/9] Input: sur40 - use new V4L2 touch input type

2016-06-22 Thread Florian Echtler
On 23.06.2016 00:08, Nick Dyer wrote: > diff --git a/drivers/input/touchscreen/sur40.c > b/drivers/input/touchscreen/sur40.c > index 880c40b..841e045 100644 > --- a/drivers/input/touchscreen/sur40.c > +++ b/drivers/input/touchscreen/sur40.c > @@ -599,7 +599,7 @@ static int sur40_probe(struct usb_i

Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity'

2016-06-22 Thread Jacek Anaszewski
On 06/22/2016 06:05 PM, Stephan Linz wrote: Hi Jacek, Am 22.06.2016 um 09:55 schrieb Jacek Anaszewski: On 06/21/2016 05:05 PM, Mark Rutland wrote: On Thu, Jun 09, 2016 at 12:29:37AM +0200, Stephan Linz wrote: Cc: Joseph Jezak Cc: Nico Macrionitis Cc: Jörg Sommer Signed-off-by: Stephan Linz

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-22 Thread Yury Norov
On Wed, Jun 22, 2016 at 04:49:52PM +0100, Catalin Marinas wrote: > On Tue, Jun 21, 2016 at 08:06:55AM +0300, Yury Norov wrote: > > This patch adds support for ILP32 syscalls, sign and zero extending > > where needed. Unlike LP64, pointers are 32bit and need to be zero > > extended rather than the

Re: [PATCH v2] byteswap: try to avoid __builtin_constant_p gcc bug

2016-06-22 Thread Tomas Winkler
On Wed, Jun 22, 2016 at 3:25 PM, Arnd Bergmann wrote: > On Wednesday, June 22, 2016 2:44:21 PM CEST Tomas Winkler wrote: >> > >> > There are more than 20 files that have the statement: case cpu_to_... >> > Sparse complains about: case __builtin_bswap, not about >> > __builtin_constant_p. >> >> Th

Re: [PATCH 2/8] ceph: don't use ->d_time

2016-06-22 Thread Yan, Zheng
> On Jun 22, 2016, at 22:35, Miklos Szeredi wrote: > > Pretty simple: just use ceph_dentry_info.time instead (which was already > there, unused). > > Signed-off-by: Miklos Szeredi > Cc: Yan, Zheng > --- > fs/ceph/dir.c| 6 +++--- > fs/ceph/inode.c | 4 ++-- > fs/ceph/mds_client.c |

Re: [PATCH v4 7/8] mmc: block: register RPMB partition with the RPMB subsystem

2016-06-22 Thread Adrian Hunter
On 02/06/16 00:41, Tomas Winkler wrote: > Register eMMC RPMB partition with the RPMB subsystem and provide > implementation for the RPMB access operations abstracting > actual multi step process. > > V2: resend > V3: commit message fix > V4: Kconfig: use select RPMB to ensure valid configuration >

[PATCH v2 2/3] ACPI / sys: Update /sys/firmware/acpi/interrupts/gpexx using new GPE masking mechanism

2016-06-22 Thread Lv Zheng
Now GPE can be masked via new acpi_mask_gpe() API, this patch modifies /sys/firmware/acpi/interrupts/gpexx to use this new facility. Writes "mask/unmask" to this file now invoke acpi_mask_gpe(). Reads from this file now returns new "EN/STS" when the corresponding GPE hardware register's EN/STS bi

[PATCH v2 3/3] ACPI / sysfs: Provide quirk mechanism to prevent GPE flooding

2016-06-22 Thread Lv Zheng
Sometimes, the users may require a quirk to be provided from ACPI subsystem core to prevent a GPE from flooding. Normally, if a GPE cannot be dispatched, ACPICA core automatically prevents the GPE from firing. But there are cases the GPE is dispatched by _Lxx/_Exx provided via AML table, and OSPM i

[PATCH v2 0/3] ACPI / gpe: Add GPE masking/unmasking mechanism

2016-06-22 Thread Lv Zheng
This patchset adds a new mechanism that can be used to mask/unmask GPEs. Lv Zheng (3): ACPICA: Events: Introduce acpi_mask_gpe()/acpi_unmask_gpe() to implement GPE masking mechanism ACPI / sys: Update /sys/firmware/acpi/interrupts/gpexx using new GPE masking mechanism ACPI / sysfs: P

[PATCH v2 1/3] ACPICA: Events: Introduce acpi_mask_gpe()/acpi_unmask_gpe() to implement GPE masking mechanism

2016-06-22 Thread Lv Zheng
There is a facility in Linux, developers can control the enabling/disabling of a GPE via /sys/firmware/acpi/interrupts/gpexx. This is mainly for debugging purposes. But many users expect to use this facility to implement quirks to mask a specific GPE when there is a gap in Linux causing this GPE t

Re: [PATCH 2/3 v2] KEYS: Insert incompressible bytes to vmlinux to reserve space in bzImage

2016-06-22 Thread kbuild test robot
Hi, [auto build test ERROR on v4.7-rc4] [also build test ERROR on next-20160622] [cannot apply to dhowells-fs/fscache tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mehmet-Kayaalp

Re: [PATCH] config: Add android config fragments

2016-06-22 Thread Amit Pundir
On 23 June 2016 at 08:50, Rob Herring wrote: > On Wed, Jun 22, 2016 at 2:53 AM, Amit Pundir wrote: >> On 8 June 2016 at 22:09, Rob Herring wrote: >>> Copy the config fragments from the AOSP common kernel tree. It is >>> becoming possible to run mainline kernels with Android, but the kernel >>> d

Re: [RFC PATCH v2 03/15] arm64: mm: change IOMMU notifier action to attach DMA ops

2016-06-22 Thread Marek Szyprowski
Hi Lorenzo, On 2016-06-21 18:06, Lorenzo Pieralisi wrote: Hi Marek, On Tue, Jun 21, 2016 at 09:53:20AM +0200, Marek Szyprowski wrote: Hi Robin, On 2016-06-17 11:27, Robin Murphy wrote: Hi Lorenzo, I think this patch makes sense even independent of the rest of the series, one nit inline no

[PATCH V2 2/3] vhost: convert pre sorted vhost memory array to interval tree

2016-06-22 Thread Jason Wang
Current pre-sorted memory region array has some limitations for future device IOTLB conversion: 1) need extra work for adding and removing a single region, and it's expected to be slow because of sorting or memory re-allocation. 2) need extra work of removing a large range which may intersect

[PATCH V2 1/3] vhost: introduce vhost memory accessors

2016-06-22 Thread Jason Wang
This patch introduces vhost memory accessors which were just wrappers for userspace address access helpers. This is a requirement for vhost device iotlb implementation which will add iotlb translations in those accessors. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 50 +

[PATCH V2 3/3] vhost: device IOTLB API

2016-06-22 Thread Jason Wang
This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace(qemu) implementation of DMA remapping. The idea is simple, cache the translation in a software device IOTLB (which was implemented as interval tree) in vhost and use vhost_net file desc

[PATCH V2 0/3] basic device IOTLB support for vhost_net

2016-06-22 Thread Jason Wang
This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace IOMMU implementation (qemu) for a secure DMA environment (DMAR) in guest. The idea is simple. When vhost meets an IOTLB miss, it will request the assistance of userspace to do the trans

Re: [PATCH v8 2/3] CMDQ: Mediatek CMDQ driver

2016-06-22 Thread CK Hu
Hi, HS: On Mon, 2016-05-30 at 11:19 +0800, HS Liao wrote: > This patch is first version of Mediatek Command Queue(CMDQ) driver. The > CMDQ is used to help read/write registers with critical time limitation, > such as updating display configuration during the vblank. It controls > Global Command En

[PATCH 1/6] phy: rcar-gen3-usb2: fix unexpected repeat interrupts of VBUS change

2016-06-22 Thread Kishon Vijay Abraham I
From: Yoshihiro Shimoda This patch fixes an issue that the driver is possible to cause unexpected repeat interrupts if a board condition is wrong (e.g. even if the ID pin is as function, a board supplies the VBUS.) The reason why unexpected repeat interrupts happen is: 1) The driver changed the

[PATCH 5/6] phy: bcm-ns-usb2: checking the wrong variable

2016-06-22 Thread Kishon Vijay Abraham I
From: Dan Carpenter We intended to test "usb2->phy" here instead of "dev". Fixes: d3feb4067335 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar') Signed-off-by: Dan Carpenter Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-bcm-ns-usb2.c |4 ++-- 1 file changed, 2 ins

[PATCH 3/6] phy: phy-sun4i-usb: Fix optional gpios failing probe

2016-06-22 Thread Kishon Vijay Abraham I
From: Quentin Schulz The interrupt 0 is not a valid interrupt number. In the event where the retrieval of the vbus-det gpio would return null, the gpiod_to_irq callback would return 0, while the current code makes the assumption that it is a valid interrupt, and would go on calling request_irq. O

[PATCH 2/6] phy: rockchip-dp: fix return value check in rockchip_dp_phy_probe()

2016-06-22 Thread Kishon Vijay Abraham I
From: Wei Yongjun In case of error, the function devm_kzalloc() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun Reviewed-by: Heiko Stuebner Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-

[GIT PULL] phy: for 4.7 -rc cycle

2016-06-22 Thread Kishon Vijay Abraham I
Hi Greg, Please find the 2nd pull request for the -rc cycle. This contains minor fixes in various phy drivers. I've listed the changes in the tag message. Consider merging it in this -rc cyle. Please let me know if I have to change something. Thanks Kishon The following changes since commit 31b

[PATCH 6/6] phy-sun4i-usb: Fix irq free conditions to match request conditions

2016-06-22 Thread Kishon Vijay Abraham I
From: Hans de Goede commit 5cf700ac9d50 ("phy: phy-sun4i-usb: Fix optional gpios failing probe") changed the condition under which irqs are requested, but omitted matching changes to sun4i_usb_phy_remove(). This commit fixes this. Fixes: 5cf700ac9d50 ("phy: phy-sun4i-usb: Fix optional gpios fail

[PATCH 4/6] phy-sun4i-usb: fix missing __iomem *

2016-06-22 Thread Kishon Vijay Abraham I
From: Ben Dooks Fix the missing __iomem attribute in sun4i_usb_phy_write() function. This fixes the following sparse warnings: drivers/phy/phy-sun4i-usb.c:178:39: warning: incorrect type in initializer (different address spaces) drivers/phy/phy-sun4i-usb.c:178:39:expected void *phyctl drive

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-22 Thread Linus Torvalds
On Wed, Jun 22, 2016 at 6:22 PM, Andy Lutomirski wrote: > > I implemented a percpu cache, and it's useless. > > When a task goes away, one reference is held until the next RCU grace > period so that task_struct can be used under RCU (look for > delayed_put_task_struct). Yeah, that RCU batching wi

Re: linux-next: manual merge of the audit tree with the security tree

2016-06-22 Thread Heiko Carstens
On Thu, Jun 23, 2016 at 02:18:14PM +1000, Stephen Rothwell wrote: > Hi Paul, > > Today's linux-next merge of the audit tree got a conflict in: > > arch/s390/kernel/ptrace.c > > between commit: > > 0208b9445bc0 ("s390/ptrace: run seccomp after ptrace") > > from the security tree and commit:

Re: [RFC] capabilities: add capability cgroup controller

2016-06-22 Thread Kees Cook
On Wed, Jun 22, 2016 at 5:01 PM, Serge E. Hallyn wrote: > Quoting Kees Cook (keesc...@chromium.org): >> On Wed, Jun 22, 2016 at 11:17 AM, Serge E. Hallyn wrote: >> > Quoting Topi Miettinen (toiwo...@gmail.com): >> >> On 06/22/16 17:14, Serge E. Hallyn wrote: >> >> > Quoting Topi Miettinen (toiwo.

Re: [PATCH 21/27] [AARCH64] ILP32: introduce syscalls that pass off_t

2016-06-22 Thread Yury Norov
On Tue, Jun 21, 2016 at 10:35:27AM +, Joseph Myers wrote: > On Tue, 21 Jun 2016, Yury Norov wrote: > > > create mode 100644 sysdeps/unix/sysv/linux/aarch64/ilp32/fallocate.c > > create mode 100644 sysdeps/unix/sysv/linux/aarch64/ilp32/fallocate64.c > > create mode 100644 sysdeps/unix/sysv/l

[PATCH 1/2] net: thunderx: Fix link status reporting

2016-06-22 Thread sunil . kovvuri
From: Sunil Goutham Check for SMU RX local/remote faults along with SPU LINK status. Otherwise at times link is UP at our end but DOWN at link partner's side. Also due to an issue in BGX it's rarely seen that initialization doesn't happen properly and SMU RX reports faults with everything fine at

[PATCH 2/2] net: thunderx: Fix TL4 configuration for secondary Qsets

2016-06-22 Thread sunil . kovvuri
From: Sunil Goutham TL4 calculation for a given SQ of secondary Qsets is incorrect and goes out of bounds and also for some SQ's TL4 chosen will transmit data via a different BGX interface and not same as primary Qset's interface. This patch fixes this issue. Signed-off-by: Sunil Goutham ---

[PATCH 0/2] net: thunderx: Miscellaneous fixes

2016-06-22 Thread sunil . kovvuri
From: Sunil Goutham This 2 patch series fixes issues w.r.t physical link status reporting and transmit datapath configuration for secondary qsets. Sunil Goutham (2): net: thunderx: Fix link status reporting net: thunderx: Fix TL4 configuration for secondary Qsets drivers/net/ethernet/cav

[PATCH v5] tools/perf: Fix the mask in regs_dump__printf and print_sample_iregs

2016-06-22 Thread Madhavan Srinivasan
When decoding the perf_regs mask in regs_dump__printf(), we loop through the mask using find_first_bit and find_next_bit functions. "mask" is of type "u64", but sent as a "unsigned long *" to lib functions along with sizeof(). While the exisitng code works fine in most of the case, the logic is br

Re: [PATCH v3 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-06-22 Thread Dave Young
- Original Message - From: "Dave Young" To: "Thiago Jung Bauermann" Cc: linuxppc-...@lists.ozlabs.org, ke...@lists.infradead.org, linux-kernel@vger.kernel.org, "Eric Biederman" Sent: Thursday, June 23, 2016 10:30:52 AM Subject: Re: [PATCH v3 3/9] kexec_file: Factor out kexec_locate_me

Re: [PATCH net-next 10/19] net: hns: bugfix about pfc pause frame statistics

2016-06-22 Thread Yisen Zhuang
在 2016/6/22 17:41, Andy Shevchenko 写道: > On Wed, 2016-06-22 at 09:43 +0800, Yisen Zhuang wrote: >> >> 在 2016/6/21 18:32, Andy Shevchenko 写道: >>> On Tue, 2016-06-21 at 11:56 +0800, Yisen Zhuang wrote: From: Daode Huang For SoC hip06, PFC pause handled in dsaf, while hip05 in XGMAC,

Re: [PATCH v3 2/2] pci/aer: interrupt fixup in the quirk

2016-06-22 Thread Dongdong Liu
在 2016/6/14 16:24, Po Liu 写道: On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. When chip support the aer interrupt with none MSI/MSI-X/INTx mode, maybe there is interrupt line for aer pme etc. Search the interrupt number in the fdt file. Then fixup the dev->irq with it.

[PATCH v4 2/3] staging: wilc1000: Replace kthread with workqueue for host interface

2016-06-22 Thread Binoy Jayan
Deconstruct the kthread / message_queue logic, replacing it with create_singlethread_workqueue() / queue_work() setup, by adding a 'struct work_struct' to 'struct host_if_msg'. The current kthread hostIFthread() is converted to a work queue helper with the name 'host_if_work'. Signed-off-by: Binoy

[PATCH v4 3/3] staging: wilc1000: Change interface wilc_mq_send to wilc_enqueue_cmd

2016-06-22 Thread Binoy Jayan
Replace the interface 'wilc_mq_send' with 'wilc_enqueue_cmd' and remove the now unused structures 'message' and 'message_queue'. Restructure switch statement in the work queue helper function host_if_work and remove unwanted indentation. Signed-off-by: Binoy Jayan --- drivers/staging/wilc1000/ho

[PATCH v4 1/3] staging: wilc1000: message_queue: Move code to host interface

2016-06-22 Thread Binoy Jayan
Move the contents of wilc_msgqueue.c and wilc_msgqueue.h into host_interface.c, remove 'wilc_msgqueue.c' and 'wilc_msgqueue.h'. This is done so as to restructure the implementation of the kthread 'hostIFthread' using a work queue. Signed-off-by: Binoy Jayan --- drivers/staging/wilc1000/Makefile

[PATCH v4 0/3] *** staging: wilc1000: Replace semaphores ***

2016-06-22 Thread Binoy Jayan
Hi, Thank you Arnd for patiently reviewing this patch series multiple times and apologies to everyone for spamming you inboxes with a patch (v3) that does not even build. It was due to an uncommited change in my git repo before generating the patch. It is corrected in v4. This patchset [v4] is pa

Re: [PATCH v4] tools/perf: Fix the mask in regs_dump__printf and print_sample_iregs

2016-06-22 Thread Madhavan Srinivasan
On Thursday 23 June 2016 10:48 AM, Yury Norov wrote: > On Thu, Jun 23, 2016 at 10:31:16AM +0530, Madhavan Srinivasan wrote: >> When decoding the perf_regs mask in regs_dump__printf(), >> we loop through the mask using find_first_bit and find_next_bit functions. >> "mask" is of type "u64", but sen

[PATCH v10 03/10] perf record: Prepare picking perf_event_mmap_page from multiple evlists

2016-06-22 Thread Wang Nan
Following commits introduce new evlists to record. This patch adjusts record__pick_pc() and introduces perf_evlist__pick_pc() to read control page from one specific evlist. record__pick_pc() will be improved to search control page from multiple evlists. Signed-off-by: Wang Nan Cc: He Kuang Cc: A

[PATCH v10 01/10] perf record: Prepare mmap multiple evlists

2016-06-22 Thread Wang Nan
Following commits introduce multiple evlists to record. This patch extracts perf_evlist__mmap_ex() processing to a new function, creates record__mmap() and record__mmap_evlist() to wrap perf_evlist__mmap_ex() and its error processing. They will be improvemented to create mmap for all evlists. Sign

[PATCH v10 05/10] perf tests: Add testcase for auxiliary evlist

2016-06-22 Thread Wang Nan
Improve test backward-ring-buffer, trace both enter and exit event of prctl() syscall, utilize auxiliary evlist to mmap enter and exit event into separated mmaps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: He Kuan

[PATCH v10 06/10] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-22 Thread Wang Nan
Create an auxiliary evlist for overwritable events. Before mmap, build this evlist and set 'overwrite' and 'backward' attribute. Since perf_evlist__mmap_ex() only maps events when evsel->overwrite matches evlist's corresponding attributes, with these two evlists an event goes to either rec->evlist

Re: [PATCH 1/6] regulator: core: Allow simultaneous use of enable op and GPIO

2016-06-22 Thread Alexandre Courbot
On Thu, Jun 23, 2016 at 10:10 AM, Alexandre Courbot wrote: > On Wed, Jun 22, 2016 at 7:34 PM, Mark Brown wrote: >> On Wed, Jun 22, 2016 at 05:25:53PM +0900, Alexandre Courbot wrote: >>> The current regulator enable/disable mechanism does not call the driver >>> enable/disable op if an enable GPIO

[PATCH v10 02/10] perf record: Prepare reading from multiple evlists in record__mmap_read_all()

2016-06-22 Thread Wang Nan
Following commits introduce new evlists to record. This patch adjusts record__mmap_read_all() and record__mmap_read(): converting original record__mmap_read_all() to record__mmap_read_evlist(), read from one evlist; makes record__mmap_read() reading from specific evlist. record__mmap_read_all() wil

[PATCH v10 10/10] perf tools: Add --tail-synthesize option

2016-06-22 Thread Wang Nan
When working with overwritable ring buffer there's a inconvenience problem: if perf dumps data after a long period after it starts, non-sample events may lost, which makes following 'perf report' unable to identify proc name and mmap layout. For example: # perf record -m 4 -e raw_syscalls:* -g --

[PATCH v3] mwifiex: Reduce endian conversion for REG Host Commands

2016-06-22 Thread Prasun Maiti
For multiple REG Host Commands (e.g HostCmd_CMD_802_11_EEPROM_ACCESS, HostCmd_CMD_MAC_REG_ACCESS etc.) "cpu_to_leX"-converted values are saved to driver. So, "leX_to_cpu" conversion is required too many times afterwards in driver. This patch reduces the endian: conversion without saving "cpu_to_le

[PATCH v10 09/10] perf tools: Don't warn about out of order event if write_backward is used

2016-06-22 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

[PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-22 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: .(forbid)_. | | | V RUNNING --(1)--> DATA_PENDING --(2)--> EMPT

[PATCH v10 08/10] perf tools: Enable overwrite settings

2016-06-22 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v10 00/10] perf tools: Support overwritable ring buffer

2016-06-22 Thread Wang Nan
This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and sampl

[PATCH v10 04/10] perf evlist: Introduce aux evlist

2016-06-22 Thread Wang Nan
An auxiliary evlist is created by perf_evlist__new_aux() using an existing evlist as its parent. An auxiliary evlist can have its own 'struct perf_mmap', but can't have any other data. User should use its parent instead when accessing other data. Auxiliary evlists are containers of 'struct perf_mm

Re: [PATCH V4 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-22 Thread
From: Rui Wang On Wed, June 22, 2016 11:15 PM Bjorn Helgaas wrote: > [...] > > @@ -1779,8 +1780,12 @@ void __init > > pci_assign_unassigned_resources(void) > > { > > struct pci_bus *root_bus; > > > > - list_for_each_entry(root_bus, &pci_root_buses, node) > > + list_for_each_entry(root_bu

Re: [PATCH] mmc: core: add auto bkops support

2016-06-22 Thread Adrian Hunter
On 23/06/16 04:33, Shawn Lin wrote: > 在 2016/6/22 22:08, Alex Lemberg 写道: >> HI Shawn, >> >> On 6/21/16, 4:44 AM, "Shawn Lin" wrote: >> >>> On 2016/6/20 21:33, Alex Lemberg wrote: Hi Shawn, […] >>> + >>> +static int mmc_stop_auto_bkops(struct mmc_card *card) >>> +{

[PATCH v3] mwifiex: Reduce endian conversion for REG Host Commands

2016-06-22 Thread Prasun Maiti
For multiple REG Host Commands (e.g HostCmd_CMD_802_11_EEPROM_ACCESS, HostCmd_CMD_MAC_REG_ACCESS etc.) "cpu_to_leX"-converted values are saved to driver. So, "leX_to_cpu" conversion is required too many times afterwards in driver. This patch reduces the endian: conversion without saving "cpu_to_le

Re: [PATCH v4] tools/perf: Fix the mask in regs_dump__printf and print_sample_iregs

2016-06-22 Thread Yury Norov
On Thu, Jun 23, 2016 at 10:31:16AM +0530, Madhavan Srinivasan wrote: > When decoding the perf_regs mask in regs_dump__printf(), > we loop through the mask using find_first_bit and find_next_bit functions. > "mask" is of type "u64", but sent as a "unsigned long *" to > lib functions along with sizeo

Re: [PATCH v4 2/2] dt-bindings: analogix_dp: rockchip: correct the wrong compatible name

2016-06-22 Thread Doug Anderson
Hi, On Wed, Jun 22, 2016 at 6:47 PM, Yakir Yang wrote: > The document about rockchip platform make a mistaken in available > compatible name of "rk3288-edp", we should correct it to "rk3288-dp" > which correspond to the compatible name in driver. > > This mistaken was introduced in commit be91c36

Re: [PATCH v4.1 1/2] drm/rockchip: analogix_dp: introduce the pclk for grf

2016-06-22 Thread Doug Anderson
Yakir, On Wed, Jun 22, 2016 at 6:58 PM, Yakir Yang wrote: > For RK3399's GRF module, if we want to operate the graphic related grf > registers, we need to enable the pclk_vio_grf which supply power for VIO > GRF IOs, so it's better to introduce an optional grf clock in driver. > > Signed-off-by:

Re: [PATCH net-next V2] tun: introduce tx skb ring

2016-06-22 Thread Jason Wang
On 2016年06月23日 02:18, Michael S. Tsirkin wrote: On Fri, Jun 17, 2016 at 03:41:20AM +0300, Michael S. Tsirkin wrote: >Would it help to have ptr_ring_resize that gets an array of >rings and resizes them both to same length? OK, here it is. Untested so far, and no skb wrapper. Pls let me know wh

[PATCH] xen: fix upper bound of pmd loop in xen_cleanhighmap()

2016-06-22 Thread Juergen Gross
xen_cleanhighmap() is operating on level2_kernel_pgt only. The upper bound of the loop setting non-kernel-image entries to zero should not exceed the size of level2_kernel_pgt. Reported-by: Linus Torvalds Signed-off-by: Juergen Gross --- arch/x86/xen/mmu.c | 2 +- 1 file changed, 1 insertion(+)

Re: [PATCH v6 3/6] crypto: AF_ALG -- add asymmetric cipher interface

2016-06-22 Thread Stephan Mueller
Am Mittwoch, 22. Juni 2016, 15:45:38 schrieb Mat Martineau: Hi Mat, > > > > Ok, I'll update the patch. > > Thanks, that helps (especially with pkcs1pad). Tadeusz received the updated patch from me to integrate it into his patch set. > > This brings me to another proposal for read buffer sizin

Re: [PATCH 01/27] [AARCH64] Fix utmp struct for compatibility reasons.

2016-06-22 Thread Andrew Pinski
On Wed, Jun 22, 2016 at 9:35 PM, Yury Norov wrote: > On Tue, Jun 21, 2016 at 11:14:54AM +0100, Szabolcs Nagy wrote: >> On 21/06/16 06:06, Yury Norov wrote: >> > From: Andrew Pinski >> > >> > NOTE This is an ABI change for AARCH64. >> > If you have some AARCH32 and AARCH64 applications and they bo

Re: [PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake

2016-06-22 Thread Darren Hart
On Tue, Jun 21, 2016 at 11:01:01PM -0700, Guenter Roeck wrote: > On 06/21/2016 09:53 PM, Yong, Jonathan wrote: > > On 06/17/2016 08:36, Yong, Jonathan wrote: > > > These patches fix the iTCO watchdog for Apollo Lake. > > > I changed the watchdog memory io to only use 4 bytes rather > > > the whole

[PATCH v4] tools/perf: Fix the mask in regs_dump__printf and print_sample_iregs

2016-06-22 Thread Madhavan Srinivasan
When decoding the perf_regs mask in regs_dump__printf(), we loop through the mask using find_first_bit and find_next_bit functions. "mask" is of type "u64", but sent as a "unsigned long *" to lib functions along with sizeof(). While the exisitng code works fine in most of the case, the logic is br

[PATCH] i40e: Remove redundant memset

2016-06-22 Thread Amitoj Kaur Chawla
Remove redundant call to memset before a call to memcpy. The Coccinelle semantic patch used to make this change is as follows: @@ expression e1,e2,e3,e4; @@ - memset(e1,e2,e3); memcpy(e1,e4,e3); Signed-off-by: Amitoj Kaur Chawla --- drivers/net/ethernet/intel/i40e/i40e_main.c | 1 - 1 file c

[PATCH 1/2] Bluetooth: Add LED triggers for HCI frames tx and rx

2016-06-22 Thread Guodong Xu
Two LED triggers are defined: tx_led and rx_led. Upon frames available in HCI core layer, for tx or for rx, the combined LED can blink. Verified on HiKey, 96boards. It uses hi6220 SoC and TI WL1835 combo chip. Signed-off-by: Guodong Xu --- include/net/bluetooth/hci_core.h | 1 + net/bluetooth/

[PATCH 2/2] arm64: dts: hikey: set bluetooth led trigger

2016-06-22 Thread Guodong Xu
Set bluetooth led trigger to hci0-rx, and so LED blinks on hci frame receiving. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/h

Re: [PATCH 19/27] [AARCH64] Add typesizes.h for ILP32

2016-06-22 Thread Yury Norov
On Tue, Jun 21, 2016 at 07:59:27PM +0800, Zhangjian (Bamvor) wrote: > Hi, > > On 2016/6/21 15:58, Andreas Schwab wrote: > >Yury Norov writes: > > > >>diff --git a/sysdeps/unix/sysv/linux/sysdep-vdso.h > >>b/sysdeps/unix/sysv/linux/sysdep-vdso.h > >>index e8c4a7b..351d6bb 100644 > >>--- a/sysdeps

Re: [PATCH 3.14 00/29] 3.14.73-stable review -rc2

2016-06-22 Thread Greg Kroah-Hartman
-rc2! Please test this... This is the start of the stable review cycle for the 3.14.73 release. There are 35 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jun 25 04:50:

Re: [PATCH 4.4 00/75] 4.4.14-stable review -rc2

2016-06-22 Thread Greg Kroah-Hartman
-rc2! This is the start of the stable review cycle for the 4.4.14 release. There are 81 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jun 25 04:51:37 UTC 2016. Anything

[PATCH 4.6 00/87] 4.6.3-stable review -rc2

2016-06-22 Thread Greg Kroah-Hartman
Let's try a -rc2! This is the start of the stable review cycle for the 4.6.3 release. There are 87 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jun 25 04:47:50 UTC 2016

[PATCH] dlm: Use kmemdup instead of kmalloc and memcpy

2016-06-22 Thread Amitoj Kaur Chawla
Replace calls to kmalloc followed by a memcpy with a direct call to kmemdup. The Coccinelle semantic patch used to make this change is as follows: @@ expression from,to,size,flag; statement S; @@ - to = \(kmalloc\|kzalloc\)(size,flag); + to = kmemdup(from,size,flag); if (to==NULL || ...) S -

Re: [PATCHv4 1/1] thermal: core: call thermal_zone_device_update() after mode update

2016-06-22 Thread Darren Hart
On Wed, Jun 22, 2016 at 08:03:18AM -0700, Eduardo Valentin wrote: > Because several drivers do the following pattern: > .set_mode() >... >local_data->mode = new_mode; >thermal_zone_device_update(tz); > > makes sense to simply do the thermal_zone_device_update() > in thermal core, after

[PATCH] tipc: Use kmemdup instead of kmalloc and memcpy

2016-06-22 Thread Amitoj Kaur Chawla
Replace calls to kmalloc followed by a memcpy with a direct call to kmemdup. The Coccinelle semantic patch used to make this change is as follows: @@ expression from,to,size,flag; statement S; @@ - to = \(kmalloc\|kzalloc\)(size,flag); + to = kmemdup(from,size,flag); if (to==NULL || ...) S -

Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2016-06-22 Thread Darren Hart
On Mon, Jun 20, 2016 at 04:26:52PM +0200, Matthieu CASTET wrote: > Hi, > > the commit 337f13046ff03717a9e99675284a817527440a49 is saying that it > change to syscall to an equivalent to FUTEX_WAIT_BITSET | > FUTEX_CLOCK_REALTIME with a bitset of FUTEX_BITSET_MATCH_ANY. > > It seems wrong to me, be

Re: [RESEND PATCH v2 0/5] ir-rx51 driver fixes

2016-06-22 Thread Tony Lindgren
* Ivaylo Dimitrov [160622 12:25]: > ir-rx51 is a driver for Nokia N900 IR transmitter. The current series > fixes the remaining problems in the driver: Thanks for updating these. Trierry, care to ack the PWM patch? Mauro, do you want me to set up an immutable branch with all these against v4.7-

Re: [PATCHv4 1/1] thermal: core: call thermal_zone_device_update() after mode update

2016-06-22 Thread Keerthy
On Wednesday 22 June 2016 08:33 PM, Eduardo Valentin wrote: Because several drivers do the following pattern: .set_mode() ... local_data->mode = new_mode; thermal_zone_device_update(tz); makes sense to simply do the thermal_zone_device_update() in thermal core, after setting the ne

Re: [RFC PATCH 1/4] Documentation: mmc: add description for new caps

2016-06-22 Thread Doug Anderson
Hi, On Wed, Jun 22, 2016 at 6:29 PM, Shawn Lin wrote: > 在 2016/6/22 23:06, Doug Anderson 写道: >> >> Hi, >> >> On Wed, Jun 8, 2016 at 1:20 AM, Shawn Lin >> wrote: >>> >>> Let's add some basic description for cap-no-sdio, >>> cap-no-sd and cap-no-mmc. >>> >>> Signed-off-by: Shawn Lin >>> >>> --- >

Re: [PATCH 01/27] [AARCH64] Fix utmp struct for compatibility reasons.

2016-06-22 Thread Yury Norov
On Tue, Jun 21, 2016 at 11:14:54AM +0100, Szabolcs Nagy wrote: > On 21/06/16 06:06, Yury Norov wrote: > > From: Andrew Pinski > > > > NOTE This is an ABI change for AARCH64. > > If you have some AARCH32 and AARCH64 applications and they both use > > utmp, one of them will fail due to the use of t

Re: 4.7 regression - ACPICA: Hardware: Enhance acpi_hw_validate_register() with access_width/bit_offset awareness

2016-06-22 Thread Mike Galbraith
On Thu, 2016-06-23 at 00:32 +, Zheng, Lv wrote: > Could you try to boot it with one of the following parameters or both of the > parameters: > acpi=rsdt > Or > acpi_force_32bit_fadt_addr Box was unimpressed by either or both. > Please also send us the acpidump/dmidecode outputs for confir

linux-next: manual merge of the audit tree with the security tree

2016-06-22 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the audit tree got a conflict in: arch/s390/kernel/ptrace.c between commit: 0208b9445bc0 ("s390/ptrace: run seccomp after ptrace") from the security tree and commit: bba696c2c083 ("s390: ensure that syscall arguments are properly masked on s390") f

Re: [RFC PATCH 1/2] drm: bridge: anx7688: Add anx7688 bridge driver support.

2016-06-22 Thread Nicolas Boichat
Hi Philipp, On Wed, Jun 22, 2016 at 4:51 PM, Philipp Zabel wrote: > Hi Nicolas, > > Am Mittwoch, den 22.06.2016, 14:32 +0800 schrieb Nicolas Boichat: >> >> Actually, experimenting a bit more with the code, I realized that the >> >> connector is always attached to the encoder, not the bridge, so t

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-22 Thread okaya
On 2016-06-21 18:13, Wim Osterholt wrote: On Tue, Jun 21, 2016 at 09:40:10AM -0400, Sinan Kaya wrote: Thanks, It was a guess with no proof. Let's undo the change above and start adding some print statements to collect data from your system. Can you add this to the end of acpi_irq_get_penalt

Re: Doing crypto in small stack buffers (bluetooth vs vmalloc-stack crash, etc)

2016-06-22 Thread Herbert Xu
On Wed, Jun 22, 2016 at 04:45:46PM -0700, Andy Lutomirski wrote: > > *However*, the other offender I've found (net/rxrpc/rxkad.c) uses > "pcbc(fcrypt)", which doesn't appear to be usable with this API. Is > there no way to say "I want synchronous crypto on this VA range" using > the skcipher API?

Re: Doing crypto in small stack buffers (bluetooth vs vmalloc-stack crash, etc)

2016-06-22 Thread Herbert Xu
On Wed, Jun 22, 2016 at 02:48:24PM -0700, Andy Lutomirski wrote: > > Before I do this, can you explain what the difference is between > crypto_cipher and crypto_skcipher? net/bluetooth/smp.c currently uses > crypto_alloc_skcipher, which you added in: crypto_cipher operates on a single block. cry

Re: [PATCH 2/2] sparc64: Fix pagetable freeing for hugepage regions

2016-06-22 Thread kbuild test robot
Hi, [auto build test ERROR on sparc/master] [also build test ERROR on v4.7-rc4 next-20160622] [cannot apply to sparc-next/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nitin-Gupta

Re: [PATCH] Maxim/driver: Add driver for maxim ds26522

2016-06-22 Thread kbuild test robot
Hi, [auto build test ERROR on net-next/master] [also build test ERROR on next-20160622] [cannot apply to v4.7-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Zhao-Qiang/Maxim-driver-Add

Re: [PATCH 2/2] sparc64: Fix pagetable freeing for hugepage regions

2016-06-22 Thread kbuild test robot
Hi, [auto build test ERROR on sparc/master] [also build test ERROR on v4.7-rc4 next-20160622] [cannot apply to sparc-next/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nitin-Gupta

Re: [PATCH] config: Add android config fragments

2016-06-22 Thread Rob Herring
On Wed, Jun 22, 2016 at 2:53 AM, Amit Pundir wrote: > On 8 June 2016 at 22:09, Rob Herring wrote: >> Copy the config fragments from the AOSP common kernel tree. It is >> becoming possible to run mainline kernels with Android, but the kernel >> defconfigs don't work as-is and debugging missing con

Re: [PATCH 5/5] perf tools: Fix NULL pointer deference when vdso not found

2016-06-22 Thread Hekuang
在 2016/6/23 10:02, Wangnan (F) 写道: Hi, This patch fixes a real crash problem when we do 'perf report' on an arm64 platform with arm32 program. It is introduced by commit f9b2bdf228 ("perf tools: Find vdso with the consider of cross-platform"). From dmesg report, perf crashes in dso__type() bec

linux-next: manual merge of the sunxi tree with the drm-misc tree

2016-06-22 Thread Stephen Rothwell
Hi Maxime, Today's linux-next merge of the sunxi tree got a conflict in: drivers/gpu/drm/sun4i/sun4i_drv.c between commit: 366e292df678 ("drm/sun4i: Remove open-coded drm_connector_register_all()") from the drm-misc tree and commit: 7aa2e2b731b3 ("drm/sun4i: Convert to connector registe

Re: [PATCH v4] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-06-22 Thread Alex Williamson
On Thu, 23 Jun 2016 10:39:30 +0800 Yongji Xie wrote: > Hi, Alex > > On 2016/6/23 6:04, Alex Williamson wrote: > > > On Mon, 30 May 2016 21:06:37 +0800 > > Yongji Xie wrote: > > > >> Current vfio-pci implementation disallows to mmap > >> sub-page(size < PAGE_SIZE) MMIO BARs because these BARs

Re: Boot failure on emev2/kzm9d (was: Re: [PATCH v2 11/11] mm/slab: lockless decision to grow cache)

2016-06-22 Thread Paul E. McKenney
On Wed, Jun 22, 2016 at 07:47:42PM -0700, Paul E. McKenney wrote: > On Thu, Jun 23, 2016 at 11:37:56AM +0900, Joonsoo Kim wrote: > > On Wed, Jun 22, 2016 at 05:49:35PM -0700, Paul E. McKenney wrote: > > > On Wed, Jun 22, 2016 at 12:08:59PM -0700, Paul E. McKenney wrote: > > > > On Wed, Jun 22, 2016

Re: [PATCH v3 3/6] mm/cma: populate ZONE_CMA

2016-06-22 Thread Joonsoo Kim
On Wed, Jun 22, 2016 at 05:23:06PM +0800, Chen Feng wrote: > Hello, > > On 2016/5/26 14:22, js1...@gmail.com wrote: > > From: Joonsoo Kim > > > > Until now, reserved pages for CMA are managed in the ordinary zones > > where page's pfn are belong to. This approach has numorous problems > > and fi

Re: Boot failure on emev2/kzm9d (was: Re: [PATCH v2 11/11] mm/slab: lockless decision to grow cache)

2016-06-22 Thread Paul E. McKenney
On Thu, Jun 23, 2016 at 11:37:56AM +0900, Joonsoo Kim wrote: > On Wed, Jun 22, 2016 at 05:49:35PM -0700, Paul E. McKenney wrote: > > On Wed, Jun 22, 2016 at 12:08:59PM -0700, Paul E. McKenney wrote: > > > On Wed, Jun 22, 2016 at 05:01:35PM +0200, Geert Uytterhoeven wrote: > > > > On Wed, Jun 22, 20

  1   2   3   4   5   6   7   8   9   10   >