Re: [PATCH] crypto: caam: fix misspelled upper_32_bits

2016-06-20 Thread Herbert Xu
On Thu, Jun 16, 2016 at 11:05:46AM +0200, Arnd Bergmann wrote: > An endianess fix mistakenly used higher_32_bits() instead of > upper_32_bits(), and that doesn't exist: > > drivers/crypto/caam/desc_constr.h: In function 'append_ptr': > drivers/crypto/caam/desc_constr.h:84:75: error: implicit decla

Re: [PATCH v2 0/2] Add SHA-3 algorithm and test vectors.

2016-06-20 Thread Herbert Xu
On Fri, Jun 17, 2016 at 10:30:34AM +0530, Raveendra Padasalagi wrote: > This patchset adds the implementation of SHA-3 algorithm > in software and it's based on original implementation > pushed in patch https://lwn.net/Articles/518415/ with > additional changes to match the padding rules specified

Re: [PATCH V2 18/63] clocksource/drivers/arm_global_timer: Convert init function to return error

2016-06-20 Thread Maxime Coquelin
On 06/16/2016 11:26 PM, Daniel Lezcano wrote: The init functions do not return any error. They behave as the following: - panic, thus leading to a kernel crash while another timer may work and make the system boot up correctly or - print an error and let the caller unaware i

Re: [PATCH V2 47/63] clocksource/drivers/timer-stm32: Convert init function to return error

2016-06-20 Thread Maxime Coquelin
2016-06-16 23:27 GMT+02:00 Daniel Lezcano : > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error and let the caller unawar

[PATCH v4 1/5] ACPI: table upgrade: use cacheable map for tables

2016-06-20 Thread Aleksey Makarov
The new memory allocated in acpi_table_initrd_init() is used to copy the upgraded tables to it. So it should be mapped with early_memunmap() instead of early_ioremap(). This is critical for ARM. Signed-off-by: Aleksey Makarov Acked-by: Lv Zheng --- drivers/acpi/tables.c | 6 +++--- 1 file cha

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

2016-06-20 Thread Horng-Shyang Liao
On Mon, 2016-06-20 at 18:41 +0800, CK Hu wrote: > Hi, HS: > > One comment inline. > > 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

Re: [PATCH] crypto : async implementation for sha1-mb

2016-06-20 Thread Herbert Xu
On Fri, Jun 17, 2016 at 12:28:30PM -0700, Megha Dey wrote: > > -static void sha1_mb_async_exit_tfm(struct crypto_tfm *tfm) > -{ > - struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); > + ahash_request_set_tfm(areq, child); > + ahash_request_set_callback(areq, CRYPTO_TFM_REQ_MAY_SLEEP, NULL,

Re: [BUG] mpt2sas: driver init fails on kernel >=4.2 for 9211-8i IT

2016-06-20 Thread Matthias Prager
Still tracking - small update: So far with the most current esxi 6 (build 3825889 - 2016-05-12) the fix is not there yet. Sidenote: the mpt driver seems to have learned to work around the irq handling issues (I tested kernel 4.6.2) whereas the e1000e ethernet driver still has trouble initializing.

Re: Reported regressions for 4.7 as of Sunday, 2016-06-19

2016-06-20 Thread Christoph Hellwig
Another important one is the rename regression in XFS and ext4 that I suspect is due the VFS changes in 4.7: http://oss.sgi.com/pipermail/xfs/2016-June/049138.html http://oss.sgi.com/pipermail/xfs/2016-June/049309.html possibly related: http://marc.info/?l=linux-kernel&m=146605889024559&w=2

Re: [PATCH v2] firmware: qcom: scm: Expose PAS command 10 as reset-controller

2016-06-20 Thread Srinivas Kandagatla
On 17/06/16 18:40, Bjorn Andersson wrote: PAS command 10 is used to assert and deassert the MSS reset via TrustZone, expose this as a reset-controller to mimic the direct access case. Cc: Stephen Boyd Acked-by: Rob Herring Signed-off-by: Bjorn Andersson --- Good stuff! Acked-by: Srinivas

Re: [PATCHv9-rebased2 01/37] mm, thp: make swapin readahead under down_read of mmap_sem

2016-06-20 Thread Michal Hocko
On Sat 18-06-16 22:09:51, Ebru Akagunduz wrote: [...] > This changelog really seems poor. > Is there a way to update only changelog of the commit? git commit --amend would do that for the current commit. You can also tell git rebase -i to 'reword' a particular commits. > Could you please suggest m

Re: [PATCH v3 08/20] pwm: Add PWM Capture support

2016-06-20 Thread Lee Jones
On Fri, 10 Jun 2016, Thierry Reding wrote: > On Fri, Jun 10, 2016 at 03:38:54PM +0100, Lee Jones wrote: > > On Fri, 10 Jun 2016, Thierry Reding wrote: > > > > > On Wed, Jun 08, 2016 at 10:21:23AM +0100, Lee Jones wrote: > > > > Supply a PWM Capture call-back Op in order to pass back > > > > infor

Re: kernel, mm: NULL deref in copy_process while OOMing

2016-06-20 Thread Michal Hocko
On Sun 19-06-16 12:06:53, Tetsuo Handa wrote: > On 2016/06/16 18:39, Michal Hocko wrote: > > On Wed 15-06-16 12:50:43, Sasha Levin wrote: > >> Hi all, > >> > >> I'm seeing the following NULL ptr deref in copy_process right after a bunch > >> of OOM killing activity on -next kernels: > >> > >> Out o

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Pierre-Louis Bossart
Presentation time is either set by a) Local sound card performing capture (in which case it will be 'capture time') b) Local media application sending a stream accross the network (time when the sample should be played out remotely) c) Remote media application streaming data *to* host, in

Re: [PATCH] x86/ptrace: Remove questionable TS_COMPAT usage in ptrace

2016-06-20 Thread Jan Kratochvil
On Mon, 20 Jun 2016 12:07:56 +0200, Pedro Alves wrote: > On 06/18/2016 06:02 PM, Andy Lutomirski wrote: > > Yuck. I should have dug in to the history. Why not just > > unconditionally sign-extend eax when set by a 32-bit tracer? > > No idea. Roland McGrath knows why he wrote it that way, Cced.

4.7-rc1: lockdep: inconsistent lock state kcompactd/aio_migratepage/mem_cgroup_migrate....

2016-06-20 Thread Christian Borntraeger
Has anyone seen this before? [ 335.384657] = [ 335.384659] [ INFO: inconsistent lock state ] [ 335.384663] 4.7.0-rc1+ #52 Tainted: GW [ 335.384666] - [ 335.384669] inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usag

Re: [PATCH v4 1/9] [media] Add signed 16-bit pixel format

2016-06-20 Thread Hans Verkuil
On 06/17/2016 04:16 PM, Nick Dyer wrote: > This will be used for output of raw touch delta data. This format is > used by Atmel maXTouch (atmel_mxt_ts) and also Synaptics RMI4. > > Signed-off-by: Nick Dyer > --- > Documentation/DocBook/media/v4l/pixfmt-ys16.xml | 79 > +

[PATCH] HID: alps: match alps devices in core

2016-06-20 Thread Jiri Kosina
From: Jiri Kosina All devices with ALPS_JP VID are handled by hid-alps driver, hence they require an entry in hid_have_special_driver[]. Signed-off-by: Jiri Kosina --- Queued in hid.git#for-4.8/alps drivers/hid/hid-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-c

[PATCH V7 8/8] irqchip/gicv3-its: Use MADT ITS subtable to do PCI/MSI domain initialization

2016-06-20 Thread Tomasz Nowicki
Let ACPI build ITS PCI MSI domain. ACPI code is responsible for retrieving inner domain token and passing it on to its_pci_msi_init_one generic init call. IORT maintains list of registered domain tokens and allows to find corresponding domain based on MADT ITS subtable ID info. Signed-off-by: Tom

[PATCH V7 6/8] irqchip/gicv3-its: Probe ITS in the ACPI way

2016-06-20 Thread Tomasz Nowicki
ITS is prepared for being initialized different than DT, therefore we can initialize it in ACPI way. We collect register base address from MADT table and pass mandatory info to firmware-agnostic ITS init call. Use here IORT lib to register ITS domain which then can be found and used on to build an

[PATCH V7 5/8] irqchip/gicv3-its: Refactor ITS DT init code to prepare for ACPI

2016-06-20 Thread Tomasz Nowicki
In order to add ACPI support we need to isolate ACPI&DT common code and move DT logic to corresponding functions. To achieve this we are using firmware agnostic handle which can be unpacked to either DT or ACPI node. No functional changes other than a very minor one: 1. Terminate its_init call wit

[PATCH V7 7/8] irqchip/gicv3-its: Factor out code that might be reused for ACPI

2016-06-20 Thread Tomasz Nowicki
Firmware agnostic code lands in common functions which do necessary domain initialization based on unique domain handler. DT specific code goes to DT specific init call. Signed-off-by: Tomasz Nowicki Acked-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 44 +-

[PATCH V7 4/8] irqchip/gicv3-its: Cleanup for ITS domain initialization

2016-06-20 Thread Tomasz Nowicki
There is no point to initialize ITS without having msi-controller property in corresponding DT node. However, its_probe is checking msi-controller presence at the end, so we can save our time and do that check prior to its_probe call. Also, for the code clarity purpose, we put domain initialization

[PATCH V7 2/8] ACPI: Add new IORT functions to support MSI domain handling

2016-06-20 Thread Tomasz Nowicki
For ITS, MSI functionality consists on building domain stack and during that process we need to reference to domain stack components e.g. before we create new DOMAIN_BUS_PCI_MSI domain we need to specify its DOMAIN_BUS_NEXUS parent domain. In order to manage that process properly, maintain list whi

[PATCH v4 2/5] ACPI: table upgrade: refactor function definitions

2016-06-20 Thread Aleksey Makarov
Refer initrd_start, initrd_end directly from drivers/acpi/tables.c. This allows to use the table upgrade feature in architectures other than x86. Also this simplifies header files. The patch renames acpi_table_initrd_init() to acpi_table_upgrade() (what reflects the purpose of the function) and r

[PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-06-20 Thread Tomasz Nowicki
IORT shows representation of IO topology for ARM based systems. It describes how various components are connected together on parent-child basis e.g. PCI RC -> SMMU -> ITS. Also see IORT spec. Initial support allows to detect IORT table presence and save its root pointer obtained through acpi_get_

[PATCH V7 3/8] PCI/MSI: Setup MSI domain on a per-device basis using IORT ACPI table

2016-06-20 Thread Tomasz Nowicki
It is possible to provide information about which MSI controller to use on a per-device basis for DT. This patch supply this with ACPI support. Currently, IORT is the only one ACPI table which can provide such mapping. In order to plug IORT into MSI infrastructure we are adding ACPI equivalents fo

[PATCH V7 0/8] Introduce ACPI world to ITS irqchip

2016-06-20 Thread Tomasz Nowicki
The series builds the PCI/MSI domain stack based on initial IORT driver which is added in first place. As a reference please see IORT spec: http://infocenter.arm.com/help/topic/com.arm.doc.den0049b/DEN0049B_IO_Remapping_Table.pdf Tested on Cavium ThunderX server. The patches can be found here: htt

[PATCH v4 0/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-20 Thread Aleksey Makarov
64 It was first sent by Jon Masters [3] to linaro-acpi in December 2015 Tested on QEMU (arm64 and x86) and ThunderX Should be applied to next-20160620 v4: - rebase to next-20160620 - add Acked-by: Will Deacon - add Acked-by: Lv Zheng for [2/5] v3: https://lkml.kernel.org/g/201606021749

Re: [PATCH v3 1/5] ACPICA: Namespace: Fix a regression that MLC support triggers dead lock in dynamic table loading

2016-06-20 Thread Mika Westerberg
On Mon, Jun 20, 2016 at 05:07:22PM +0800, Lv Zheng wrote: > The new MLC approach invokes MLC per-table basis. But the dynamic loading > support of this is incorrect because of the lock order: > acpi_ns_evaluate >acpi_ex_enter_intperter > acpi_ns_load_table (triggered by Load opcode) >

[PATCH v4 5/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-20 Thread Aleksey Makarov
From: Jon Masters This patch adds support for ACPI_TABLE_UPGRADE for ARM64 To access initrd image we need to move initialization of linear mapping a bit earlier. The implementation of the feature acpi_table_upgrade() (drivers/acpi/tables.c) works with initrd data represented as an array in virt

[PATCH] tty: 8250, remove shadow and unused variables

2016-06-20 Thread Jiri Slaby
The compiler complains about variables that are set, but never used: * intX variables in exar_handle_irq drivers/tty/serial/8250/8250_port.c:1864:34: warning: variable ‘int3’ set but not used [-Wunused-but-set-variable] * val variable in pci_quatech_wqopr drivers/tty/serial/8250/8250_pci.c:113

[PATCH v4 3/5] ACPI: table upgrade: move arch-specific symbol to asm/acpi.h

2016-06-20 Thread Aleksey Makarov
The constant that defines max phys address where the new upgraded ACPI table should be allocated is arch-specific. Move it to Signed-off-by: Aleksey Makarov --- arch/x86/include/asm/acpi.h | 2 ++ drivers/acpi/tables.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 4/5] ACPI: table upgrade: introduce ARCH_HAS_ACPI_TABLE_UPGRADE

2016-06-20 Thread Aleksey Makarov
We want to use the table upgrade feature in ARM64. Introduce a new configuration option that allows that. Signed-off-by: Aleksey Makarov --- arch/x86/Kconfig | 1 + drivers/acpi/Kconfig | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconf

[PATCH v8 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-20 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

[PATCH v8 0/8] perf tools: Support overwritable ring buffer

2016-06-20 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 v8 2/8] perf evlist: Introduce aux evlist

2016-06-20 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

[PATCH v8 3/8] perf tests: Add testcase for auxiliary evlist

2016-06-20 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 v8 5/8] perf record: Toggle overwrite ring buffer for reading

2016-06-20 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: RUNNING --(1)--> DATA_PENDING --(2)--> EMPTY ^ ^ | | |___(disallow)___/| ||

[PATCH v8 8/8] perf tools: Add --tail-synthesize option

2016-06-20 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 v8 6/8] perf tools: Enable overwrite settings

2016-06-20 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 v8 1/8] perf tools: Fix write_backwards fallback

2016-06-20 Thread Wang Nan
Commit b90dc17a5d14 "perf evsel: Add overwrite attribute and check write_backward" misunderstood the 'order' should be obeyed in __perf_evsel__open. Arnaldo in [1]: "But the way this was done for attr.write_backwards was buggy, as we need to check features in the inverse order of their introductio

[PATCH v8 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-06-20 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

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

2016-06-20 Thread CK Hu
Hi, HS: One comment inline. 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 control

Re: [PATCH] HID: i2c-hid: set power sleep before shutdown

2016-06-20 Thread Mika Westerberg
On Sat, Jun 18, 2016 at 06:50:30PM +0800, Guohua Zhong wrote: > Add i2c_hid_shutdown for i2c-hid driver to send suspend cmd & > disable irq before device shutdown. > > Some HW design is that the power to i2c hid device won't down > after device shutdown. Also the i2c-hid driver do not send suspend

[PATCH v3] ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

2016-06-20 Thread Stefan Mavrodiev
A33-OLinuXino is A33 development board designed by Olimex LTD. It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash. It has two 40-pin headers. One for LCD panel, and one for additional modules. Also t

RE: [PATCH 1/1] perf/x86/intel: Add extended event constraints for Knights Landing

2016-06-20 Thread Odzioba, Lukasz
On 08.06.2016 Peter Zijlstra wrote: > How does this work in the light of intel_alt_er() ? Hi Peter, If the constrained bit is valid on only one of the OCR MSRs (like in case of KNL), then OCR valid mask will forbid altering it by the other MSR in intel_alt_er. If constrained bit is valid on bo

Re: [PATCH] x86/ptrace: Remove questionable TS_COMPAT usage in ptrace

2016-06-20 Thread Pedro Alves
On 06/19/2016 11:09 PM, Andy Lutomirski wrote: > > The latter bit is a mess and is probably broken on current kernels for > 64-bit gdb attached to a 32-bit process. (Is it? All of this stuff > is a bit of a pain to test.) The testcase at: https://sourceware.org/ml/gdb/2014-05/msg4.html s

Re: [RFC PATCH 0/2] scpi: Add SCPI framework to handle vendors variants

2016-06-20 Thread Neil Armstrong
On 06/06/2016 07:10 PM, Sudeep Holla wrote: > > > On 30/05/16 09:30, Neil Armstrong wrote: >> On 05/27/2016 10:17 AM, Neil Armstrong wrote: > >> >> While looking for other ARMv8 based platform, I found that the RK3368 >> platform has the same SCPI implementation as Amlogic. >> >> They extended i

Re: Stable -rc git trees and email headers

2016-06-20 Thread Fengguang Wu
On Mon, Jun 20, 2016 at 11:52:14AM +0200, Jiri Slaby wrote: > On 06/20/2016, 11:39 AM, Fengguang Wu wrote: > >> git://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux-stable.git > > > > It looks already in the testing pipeline. :) > > Oh, and it's there for a quite long already :). But I h

[PATCH] kcm: fix /proc memory leak

2016-06-20 Thread Jiri Slaby
Every open of /proc/net/kcm leaks 16 bytes of memory as is reported by kmemleak: unreferenced object 0x88059c0e3458 (size 192): comm "cat", pid 1401, jiffies 4294935742 (age 310.720s) hex dump (first 32 bytes): 28 45 71 96 05 88 ff ff 00 10 00 00 00 00 00 00 (Eq. 00 00

Re: [PATCH] clk: samsung: exynos5433: use clock_ignore_unused flag for SPI3 related clocks

2016-06-20 Thread Andi Shyti
> Unfortunately I have to NAK this patch. Please add proper support for > them to the SPI driver. I agree, this is quite a lazy solution. But your comment is giving me more work than what I was willing to have, also because in this driver the SPI1 is aslo using CLK_IGNORE_UNUSED :) Thanks for yo

Re: Canonical has own Ubuntu driver for ALPS 73 03 28 devices

2016-06-20 Thread Pali Rohár
On Monday 20 June 2016 03:16:36 Christoph Hellwig wrote: > On Sun, Jun 19, 2016 at 01:43:46AM +0200, Pali Roh??r wrote: > > I do not understand it... Why Canonical is hidden and don't communicate > > with rest of world? Otherwise touchpads could work out-of-box on non > > Ubuntu systems too with ma

Re: [PATCH] vb2: V4L2_BUF_FLAG_DONE is set after DQBUF

2016-06-20 Thread Hans Verkuil
On 06/20/2016 12:12 PM, Ricardo Ribalda Delgado wrote: > Good catch :) > > I will prepare the new version. Btw, can I also merge > vb2_internal_dqbuf and vb2_dqbuf in one function? Seems a bit > overkilled that split. No, that's not possible. vb2_internal_dqbuf is used in the threading code to im

Re: Canonical has own Ubuntu driver for ALPS 73 03 28 devices

2016-06-20 Thread Christoph Hellwig
On Sun, Jun 19, 2016 at 01:43:46AM +0200, Pali Roh??r wrote: > I do not understand it... Why Canonical is hidden and don't communicate > with rest of world? Otherwise touchpads could work out-of-box on non > Ubuntu systems too with mainline kernel. Because Canonical doesn't collaborate with the up

Re: [RESEND PATCH v2 1/1] mmc: dw_mmc: Wait for data transfer after response errors.

2016-06-20 Thread Jaehoon Chung
Hi Enric, On 04/26/2016 05:03 PM, Enric Balletbo i Serra wrote: > From: Doug Anderson > > According to the DesignWare state machine description, after we get a > "response error" or "response CRC error" we move into data transfer > mode. That means that we don't necessarily need to special case

Re: [PATCH v8 3/5] perf config: Reimplement perf_config() using perf_config_set__it to

2016-06-20 Thread Taeung Song
Hi, Arnaldo :-D I also discussed this patchset with Namhyung at offline gathering. I sent v9 patchset that contains what Namhyung and you advice me to do. If having your spare time, please review the v9 patchset. If you do, I'd appreciate it :-) Thanks, Taeung On 06/12/2016 05:57 PM, Taeung Son

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-20 Thread Roger Quadros
Hi, On 20/06/16 10:45, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >> It provides APIs for the following tasks >> >> - Registering an OTG/dual-role capable controller >> - Registering Host and Gadget controllers to OTG core >> - Providing inputs to and kicking the OTG state machine >

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

2016-06-20 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

Re: [PATCH] vb2: V4L2_BUF_FLAG_DONE is set after DQBUF

2016-06-20 Thread Ricardo Ribalda Delgado
Good catch :) I will prepare the new version. Btw, can I also merge vb2_internal_dqbuf and vb2_dqbuf in one function? Seems a bit overkilled that split. Regarding v42l_compliance... I can take care of that if you dare :) Best regards! On Mon, Jun 20, 2016 at 11:53 AM, Hans Verkuil wrote: > On

[PATCH v2 1/2] staging: wilc1000: message_queue: Move code to host interface

2016-06-20 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 Reviewed-by: Arnd Bergmann --- driver

[PATCH v2 0/2] *** staging: wilc1000: Replace semaphores ***

2016-06-20 Thread Binoy Jayan
This is the second patch series for 'wilc1000'. The original patch series consisted 7 patches of which only the first 5 are good. The patch 6 and 7 are being worked on in this series in a different way. This patch series removes the semaphore 'sem' in 'wilc1000' and also restructures the implement

Re: [PATCH] x86/ptrace: Remove questionable TS_COMPAT usage in ptrace

2016-06-20 Thread Pedro Alves
On 06/18/2016 06:02 PM, Andy Lutomirski wrote: > Yuck. I should have dug in to the history. Why not just > unconditionally sign-extend eax when set by a 32-bit tracer? No idea. > > Do you know how to acquire a copy of erestartsys-trap.c? The old > links appear to be broken. That's part of t

Re: [PATCH 4/4] sched,fair: Fix PELT integrity for new tasks

2016-06-20 Thread Vincent Guittot
On 20 June 2016 at 11:52, Peter Zijlstra wrote: > On Mon, Jun 20, 2016 at 11:23:39AM +0200, Vincent Guittot wrote: > >> > @@ -738,7 +739,20 @@ void post_init_entity_util_avg(struct sc >> > sa->util_sum = sa->util_avg * LOAD_AVG_MAX; >> > } >> > >> > - update_cfs_rq_load_avg(cfs_r

Re: [PATCH 4/4] ARM: dts: meson8b: Add Meson8b PWM Controller nodes

2016-06-20 Thread Neil Armstrong
On 06/17/2016 08:21 PM, kbuild test robot wrote: > Hi, > > [auto build test ERROR on next-20160617] > [cannot apply to pwm/for-next robh/for-next v4.7-rc3 v4.7-rc2 v4.7-rc1 > v4.7-rc3] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url

[PATCH v2] gpio: sx150x: Update OF configuration

2016-06-20 Thread Neil Armstrong
In case of OF probing, the driver fails to initialize : - gpio_chip.base must be -1 - irq_summary must be either -1 or valid - There is no way to use the other configurations Add OF parsing function to complete the HW configuration, make OF configuration dynamic instead of static with #defines and

Re: [PATCH] mfd: twl6040: Handle mclk used for HPPLL and optional internal clock source

2016-06-20 Thread Lee Jones
On Mon, 20 Jun 2016, Peter Ujfalusi wrote: > On 06/16/2016 06:16 PM, Lee Jones wrote: > > On Wed, 11 May 2016, Peter Ujfalusi wrote: > > > >> On some boards, like omap5-uevm the MCLK is gated by default and in order > >> to be able to use the High performance modes of twl6040 it need to be > >> e

Re: [PATCH] vb2: V4L2_BUF_FLAG_DONE is set after DQBUF

2016-06-20 Thread Hans Verkuil
On 06/20/2016 11:01 AM, Ricardo Ribalda Delgado wrote: > According to the doc, V4L2_BUF_FLAG_DONE is cleared after DQBUF: > > V4L2_BUF_FLAG_DONE 0x0004 ... After calling the VIDIOC_QBUF or > VIDIOC_DQBUF it is always cleared ... > > Unfortunately, it seems that videobuf2 keeps it set after D

Re: [PATCH 4/4] sched,fair: Fix PELT integrity for new tasks

2016-06-20 Thread Peter Zijlstra
On Mon, Jun 20, 2016 at 11:23:39AM +0200, Vincent Guittot wrote: > > @@ -738,7 +739,20 @@ void post_init_entity_util_avg(struct sc > > sa->util_sum = sa->util_avg * LOAD_AVG_MAX; > > } > > > > - update_cfs_rq_load_avg(cfs_rq_clock_task(cfs_rq), cfs_rq, false); > > + if (entit

Re: Stable -rc git trees and email headers

2016-06-20 Thread Jiri Slaby
On 06/20/2016, 11:39 AM, Fengguang Wu wrote: >> git://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux-stable.git > > It looks already in the testing pipeline. :) Oh, and it's there for a quite long already :). But I have never seen an e-mail from the robot, I think. I hope it only means t

Re: [RFC PATCH 2/2] xfs: map KM_MAYFAIL to __GFP_RETRY_HARD

2016-06-20 Thread Michal Hocko
On Fri 17-06-16 17:39:31, Johannes Weiner wrote: > On Fri, Jun 17, 2016 at 10:30:06PM +0200, Vlastimil Babka wrote: > > On 17.6.2016 20:22, Johannes Weiner wrote: [...] > > > - it allows !costly orders to fail > > > > > > While 1. is obvious from the name, 2. is not. Even if we don't want > > > fu

Re: [PATCH v10 06/14] usb: gadget.h: Add OTG to gadget interface

2016-06-20 Thread Roger Quadros
On 20/06/16 12:24, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: > Roger Quadros writes: >> The OTG core will use struct otg_gadget_ops to >> start/stop the gadget controller. >> >> The main purpose of this interface is to avoid directly >> calling usb_gadget_sta

Re: [RFC v3 3/5] drm/mediatek: add shadow register support

2016-06-20 Thread YT Shen
Hi CK, On Mon, 2016-06-13 at 14:43 +0800, CK Hu wrote: > Hi, YT: > > One comment inline. > > On Thu, 2016-06-09 at 00:03 +0800, YT Shen wrote: > > We need to acquire mutex before using the resources, > > and need to release it after finished. > > So we don't need to write registers in the blanki

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Wei Hu (Xavier)
On 2016/6/20 17:27, Leon Romanovsky wrote: On Mon, Jun 20, 2016 at 03:49:24PM +0800, Wei Hu (Xavier) wrote: On 2016/6/20 14:06, Leon Romanovsky wrote: On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier) wrote: On 2016/6/17 17:58, Leon Romanovsky wrote: On Thu, Jun 16, 2016 at 10:35:1

Re: [PATCH v2 08/24] fs: btrfs: Use ktime_get_real_ts for root ctime

2016-06-20 Thread David Sterba
On Sun, Jun 19, 2016 at 05:27:07PM -0700, Deepa Dinamani wrote: > btrfs_root_item maintains the ctime for root updates. > This is not part of vfs_inode. > > Since current_time() uses struct inode* as an argument > as Linus suggested, this cannot be used to update root > times unless, we modify the

Re: [PATCH v2] mfd: stmpe: move platform data into mfd driver

2016-06-20 Thread Lee Jones
On Wed, 25 May 2016, Linus Walleij wrote: > The STMPE platform data is only populated from the device tree > in all existing users, so push the struct and make the OF case > the norm. > > Cc: Patrice Chotard > Signed-off-by: Linus Walleij > --- > ChangeLog v1->v2: > - Drop check for (!np) NULL

[PATCH v4 0/3] cpuacct: Introduce cpuacct.usage_all to show all cpu stats together(was: [PATCH v2 0/3] cpuacct: Show all detail stats in one file)

2016-06-20 Thread Zhao Lei
In current code, we can get cpuacct data from several files, but each file have its limit. For example: we can get cpu usage in user and kernel mode by cpuacct.stat, but we can't get detail data of each cpu in above file. we can get each cpu's kernel mode usage in cpuacct.usage_percpu_sys, but we

Re: [PATCH V3] clocksource/drivers/mps2-timer: Convert init function to return error

2016-06-20 Thread liviu . dudau
On Mon, Jun 20, 2016 at 11:26:59AM +0200, Daniel Lezcano wrote: > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error an

[PATCH v4 2/3] cpuacct: Use loop to avoid copies of the similar code in cpuacct_stats_show()

2016-06-20 Thread Zhao Lei
Currently we have copies of the similar code for each cpustat(system/user) in cpuacct_stats_show(), this patch use loop instead. Only a little cleanup. Signed-off-by: Zhao Lei --- kernel/sched/cpuacct.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff -

[PATCH v4 1/3] cpuacct: Merge cpuacct_usage_index and cpuacct_stat_index

2016-06-20 Thread Zhao Lei
These two types have similar function. No need to separate them. Signed-off-by: Zhao Lei --- kernel/sched/cpuacct.c | 47 --- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c index 41f85c4.

Re: [RFC PATCH v3 2/2] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller

2016-06-20 Thread Lorenzo Pieralisi
On Fri, Jun 17, 2016 at 02:37:02PM -0700, Duc Dang wrote: > On Thu, Jun 16, 2016 at 10:48 AM, Lorenzo Pieralisi > wrote: > > On Wed, Jun 15, 2016 at 11:34:11AM -0400, Christopher Covington wrote: > >> From: Tomasz Nowicki > >> > >> pci_generic_ecam_ops is used by default. Since there are platform

[PATCH v4 3/3] cpuacct: Introduce cpuacct.usage_all to show all cpu stats together

2016-06-20 Thread Zhao Lei
In current code, we can get cpuacct data from several files, but each file have its limit. For example: we can get cpu usage in user and kernel mode by cpuacct.stat, but we can't get detail data of each cpu in above file. we can get each cpu's kernel mode usage in cpuacct.usage_percpu_sys, but we

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Henrik Austad
On Sun, Jun 19, 2016 at 11:46:29AM +0200, Richard Cochran wrote: > On Sun, Jun 19, 2016 at 12:45:50AM +0200, Henrik Austad wrote: > > edit: this turned out to be a somewhat lengthy answer. I have tried to > > shorten it down somewhere. it is getting late and I'm getting increasingly > > incoheren

[PATCH v3 06/16] mtd: nand: add manufacturer specific initialization/detection steps

2016-06-20 Thread Boris Brezillon
A lot of NANDs are implementing generic features in a non-generic way, or are providing advanced auto-detection logic where the NAND ID bytes meaning changes with the NAND generation. Providing this vendor specific initialization step will allow us to get rid of the full ids in the nand_ids table

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

2016-06-20 Thread Jiri Olsa
On Mon, Jun 20, 2016 at 05:27:25PM +0800, Wangnan (F) wrote: > > > On 2016/6/20 17:18, Jiri Olsa wrote: > > On Mon, Jun 20, 2016 at 02:14:01PM +0530, Madhavan Srinivasan wrote: > > > When decoding the perf_regs mask in regs_dump__printf(), > > > we loop through the mask using find_first_bit and f

Re: Stable -rc git trees and email headers

2016-06-20 Thread Fengguang Wu
Hi Jiri, On Mon, Jun 20, 2016 at 10:39:37AM +0200, Jiri Slaby wrote: > On 06/18/2016, 07:22 AM, Fengguang Wu wrote: > > Hi Greg, > > > > On Fri, Jun 17, 2016 at 08:16:20PM -0700, Greg KH wrote: > >> Hi, > >> > >> I've finally gotten off my butt and made my quilt trees of patches into > >> a "semi

[PATCH v3 05/16] mtd: nand: rename nand_get_flash_type() into nand_detect()

2016-06-20 Thread Boris Brezillon
The only caller of nand_get_flash_type() (nand_scan_ident()) actually don't use the returned nand_flash_dev pointer except for converting it to to an error code. Rename this function nand_detect() and make it return an integer. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 19

Re: [PATCH v1 1/2] mm: thp: move pmd check inside ptl for freeze_page()

2016-06-20 Thread Kirill A. Shutemov
On Mon, Jun 20, 2016 at 08:55:03AM +, Naoya Horiguchi wrote: > On Fri, Jun 17, 2016 at 11:40:41AM +0300, Kirill A. Shutemov wrote: > > On Fri, Jun 17, 2016 at 11:30:03AM +0900, Naoya Horiguchi wrote: > > > I found a race condition triggering VM_BUG_ON() in freeze_page(), when > > > running > >

[PATCH v3 02/16] mtd: nand: get rid of the mtd parameter in all auto-detection functions

2016-06-20 Thread Boris Brezillon
Now that struct nand_chip embeds an mtd_info object we can get rid of the mtd parameter and extract it from the chip parameter with the nand_to_mtd() helper. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 56 1 file changed, 30 inse

[PATCH v3 04/16] mtd: nand: get rid of busw parameter

2016-06-20 Thread Boris Brezillon
Auto-detection functions are passed a busw parameter to retrieve the actual NAND bus width and eventually set the correct value in chip->options. Rework the nand_get_flash_type() function to get rid of this extra parameter and let detection code directly set the NAND_BUSWIDTH_16 flag in chip->optio

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Leon Romanovsky
On Mon, Jun 20, 2016 at 03:49:24PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/20 14:06, Leon Romanovsky wrote: > >On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier) wrote: > >> > >>On 2016/6/17 17:58, Leon Romanovsky wrote: > >>>On Thu, Jun 16, 2016 at 10:35:16PM +0800, Lijun Ou wrote:

[PATCH v3 03/16] mtd: nand: store nand ID in struct nand_chip

2016-06-20 Thread Boris Brezillon
Store the NAND ID in struct nand_chip to avoid passing id_data and id_len as function parameters. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 55 include/linux/mtd/nand.h | 13 +++ 2 files changed, 43 insertions(+), 2

Re: [PATCH V6 1/7] ACPI: I/O Remapping Table (IORT) initial support

2016-06-20 Thread Tomasz Nowicki
On 06/15/2016 01:04 PM, Lorenzo Pieralisi wrote: On Mon, Jun 13, 2016 at 04:41:07PM +0200, Tomasz Nowicki wrote: IORT shows representation of IO topology for ARM based systems. It describes how various components are connected together on parent-child basis e.g. PCI RC -> SMMU -> ITS. Also see I

[REFACTORING][PATCH v9 1/3] perf config: Bring declarations about config from util/cache.h to util/config.h

2016-06-20 Thread Taeung Song
Lately util/config.h has been added but util/cache.h has declarations of functions and a global variable for config features. To manage codes about configuration at one spot, move them to util/config.h and let source files that need config features include config.h And if the source files that inc

[PATCH v9 3/3] perf config: Reimplement show_config() using config_set__for_each

2016-06-20 Thread Taeung Song
Lately config_set__for_each is added. In order to let show_config() be short and clear, remake this function using config_set__for_each macro Cc: Namhyung Kim Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Alexander Shishkin Cc: Wang Nan Signed-off-by: Taeung Song --- tools/perf/builtin-config.c |

[RFC][PATCH v9 0/3] perf config: Reimplement perf_config() adding perf_config_init() and perf_config_finish()

2016-06-20 Thread Taeung Song
Hello, :) This patchset is to reimplement perf_config() for efficient config management. Everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But we need to use 'struct perf_config_set config_se

[RFC][PATCH v9 2/3] perf config: Reimplement perf_config() adding perf_config_init() and perf_config_finish()

2016-06-20 Thread Taeung Song
Many sub-commands use perf_config() so everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But we need to use the config set that already contains all config key-value pairs to avoid this repetit

Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost

2016-06-20 Thread Michal Hocko
On Sun 19-06-16 23:35:43, Michal Hocko wrote: > On Sat 18-06-16 03:09:02, Michael S. Tsirkin wrote: > > On Fri, Jun 17, 2016 at 11:00:17AM +0200, Michal Hocko wrote: [...] > > > diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h > > > index 349557825428..b1f314fca3c8 100644 > > > --- a/

Re: [PATCH] HID: i2c-hid: set power sleep before shutdown

2016-06-20 Thread Benjamin Tissoires
On Jun 18 2016 or thereabouts, Guohua Zhong wrote: > Add i2c_hid_shutdown for i2c-hid driver to send suspend cmd & > disable irq before device shutdown. > > Some HW design is that the power to i2c hid device won't down > after device shutdown. Also the i2c-hid driver do not send suspend > cmd to t

Re: [PATCH v2 1/1] mm/swap.c: flush lru pvecs on compound page arrival

2016-06-20 Thread Michal Hocko
On Fri 17-06-16 18:16:38, Lukasz Odzioba wrote: > Currently we can have compound pages held on per cpu pagevecs, which > leads to a lot of memory unavailable for reclaim when needed. > In the systems with hundreads of processors it can be GBs of memory. > > On of the way of reproducing the problem

<    5   6   7   8   9   10   11   12   >