Re: [PATCH v2 0/2] Fix y2038 issues for security/keys subsystem

2017-09-28 Thread James Morris
On Thu, 21 Sep 2017, Baolin Wang wrote: > Since 'time_t', 'timeval' and 'timespec' types are not year 2038 safe on > 32 bits system, this patchset tries to fix this issues for security/keys > subsystem. > > Changes since v1: > - Add reviewed tag from Arnd. > - Drop Patch 3 which had been merged

Re: [PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-28 Thread Leon Romanovsky
On Thu, Sep 28, 2017 at 12:57:28PM +0800, Wei Hu (Xavier) wrote: > From: Lijun Ou > > When lp_qp_work is NULL, it should be returned ENOMEM. This patch > mainly fixes it. > > Ihis patch fixes the smatch error as below: > drivers/infiniband/hw/hns/hns_roce_hw_v1.c:918 hns_roce_v1_recreate_lp_qp() >

Re: [PATCH 3/4] sched: WARN when migrating to an offline CPU

2017-09-28 Thread Sasha Levin
On Thu, Sep 7, 2017 at 8:03 AM, Peter Zijlstra wrote: > Migrating tasks to offline CPUs is a pretty big fail, warn about it. Hey Peter, This seems to get hit on the latest -next: [2035565360.446794] Unregister pv shared memory for cpu 2 [2035565360.467930] numa_remove_cpu cpu 2 node 2: mask now

Re: [PATCH 2/3] KVM: LAPIC: Keep timer running when switching between one-shot and periodic mode

2017-09-28 Thread Wanpeng Li
2017-09-26 18:20 GMT+08:00 Wanpeng Li : > From: Wanpeng Li > > If we take TSC-deadline mode timer out of the picture, the Intel SDM > does not say that the timer is disable when the timer mode is change, > either from one-shot to periodic or vice versa. > > After this patch, the timer is no longer

Re: [PATCHv7 02/19] mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS

2017-09-28 Thread Kirill A. Shutemov
On Thu, Sep 28, 2017 at 10:10:34AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > With boot-time switching between paging mode we will have variable > > MAX_PHYSMEM_BITS. > > > > Let's use the maximum variable possible for CONFIG_X86_5LEVEL=y > > configuration to define zsmallo

sched: serial port lockdep warning when offlining CPUs

2017-09-28 Thread Sasha Levin
Hi all, I seem to be hitting the following warning when offlining CPUs on the latest -next kernel: [289683102.607076] Unregister pv shared memory for cpu 8 [289683102.622922] select_fallback_rq: 3 callbacks suppressed [289683102.625834] process 8583 (trinity-c78) no longer affine to cpu8 [2896831

Re: alpha runtime warnings due to commit 0e4c2eeb758 ("alpha/PCI: Replace pci_fixup_irqs() call with host ...")

2017-09-28 Thread Lorenzo Pieralisi
On Wed, Sep 27, 2017 at 02:55:02PM -0500, Bjorn Helgaas wrote: > [+cc linux-pci, linux-ide, DaveM] > > On Wed, Sep 27, 2017 at 11:30:34AM +0100, Lorenzo Pieralisi wrote: > > Bjorn, Guenter, > > > > On Wed, Sep 20, 2017 at 12:31:04PM +0100, Lorenzo Pieralisi wrote: > > > On Tue, Sep 19, 2017 at 11

[PATCH v2] HID: hid-multitouch: support fine-grain orientation reporting

2017-09-28 Thread Wei-Ning Huang
The current hid-multitouch driver only allow the report of two orientations, vertical and horizontal. We use the Azimuth orientation usage 0x5b under the Digitizer usage page to report orientation if the device supports it. Changelog: v1 -> v2: - Fix commit message. - Remove resolution rep

Re: [PATCH] HID: hid-multitouch: support fine-grain orientation reporting

2017-09-28 Thread Wei-Ning Huang
Hi Dmitry, I sent v2 to fix the commit message and orientation. Thanks. https://patchwork.kernel.org/patch/9975565/ Wei-Ning On Wed, Sep 27, 2017 at 1:55 PM, Dmitry Torokhov wrote: > Hi Wei-Ning, > > On Tue, Sep 26, 2017 at 8:03 PM, Wei-Ning Huang wrote: >> >> The current hid-multitouch driver

Re: [PATCH v1 0/5] NVIDIA Tegra AHB DMA controller driver

2017-09-28 Thread Vinod Koul
On Tue, Sep 26, 2017 at 02:22:01AM +0300, Dmitry Osipenko wrote: > NVIDIA Tegra20/30 SoC's have AHB DMA controller. It has 4 DMA channels, > supports AHB <-> Memory and Memory <-> Memory transfers, slave / master > modes. This driver is primarily supposed to be used by gpu/host1x in a > master mode

[PATCH v2 1/3] ARM: dts: sun8i: Add basic dtsi file for Allwinner R40

2017-09-28 Thread Icenowy Zheng
From: Chen-Yu Tsai The Allwinner R40 SoC is marketed as the successor to the A20 SoC. The R40 is a smaller chip than the A20, but features the same set of programmable pins, with a couple extra pins and some new pin functions. The chip features 4 Cortex-A7 cores and a Mali-400 MP2 GPU. It retains

[PATCH v2 0/3] Basical device tree parts for Allwinner R40 SoC

2017-09-28 Thread Icenowy Zheng
This patchset adds basical device tree parts for the Allwinner R40 SoC and two boards feature this SoC -- Banana Pi M2 Ultra and Berry (The BPi M2 Berry board uses V40 SoC, which is just a renamed R40). Chen-Yu Tsai (2): ARM: dts: sun8i: Add basic dtsi file for Allwinner R40 ARM: dts: sun8i: A

Re: [PATCH 4/4] lockdep: make MAX_LOCK_DEPTH configurable from Kconfig

2017-09-28 Thread Peter Zijlstra
On Wed, Sep 27, 2017 at 02:42:20PM -0700, Govindarajulu Varadarajan wrote: > Make MAX_LOCK_DEPTH configurable. It is set to 48 right now. Number of > VFs under a PCI pf bus can exceed 48 and this disables lockdep. > > lockdep currently allows max of 63 held_locks. But why a config knob? Why not j

[PATCH v2 2/3] ARM: dts: sun8i: Add board dts file for Banana Pi M2 Ultra

2017-09-28 Thread Icenowy Zheng
From: Chen-Yu Tsai The Banana Pi M2 Ultra is an SBC based on the Allwinner R40 SoC. The form factor and position of various connectors, leds and buttons is similar to the Banana Pi M1+, Banana Pi M3, and is exactly the same as the latest Banana Pi M64. It features: - X-Powers AXP221s PMIC con

[PATCH v2 3/3] ARM: dts: sun8i: Add board dts file for Banana Pi M2 Berry

2017-09-28 Thread Icenowy Zheng
The Banana Pi M2 Ultra is an SBC based on the Allwinner V40 SoC (same as the R40 SoC). The form factor is similar to the Raspberry Pi series. It features: - X-Powers AXP221s PMIC connected to i2c0 - 1GiB DDR3 DRAM - microSD slot - MicroUSB Type-B port for power and connected to usb0 - HDMI output

Re: [PATCH v2 0/2] Fix y2038 issues for security/keys subsystem

2017-09-28 Thread David Howells
James Morris wrote: > David, have you taken these into your tree? I can apply them to mine if > needed. I was intending to add them to my next tree for security/next. David

Re: [PATCH v1 4/5] dmaengine: Add driver for NVIDIA Tegra AHB DMA controller

2017-09-28 Thread Vinod Koul
On Tue, Sep 26, 2017 at 02:22:05AM +0300, Dmitry Osipenko wrote: > +config TEGRA20_AHB_DMA > + tristate "NVIDIA Tegra20 AHB DMA support" > + depends on ARCH_TEGRA Can we add COMPILE_TEST, helps me compile drivers > +#include > +#include > +#include > +#include > +#include > +#includ

[PATCH v3] tun: bail out from tun_get_user() if the skb is empty

2017-09-28 Thread Alexander Potapenko
KMSAN (https://github.com/google/kmsan) reported accessing uninitialized skb->data[0] in the case the skb is empty (i.e. skb->len is 0): BUG: KMSAN: use of uninitialized memory in tun_get_user+0x19ba/0x3770 CPU: 0 PID: 3051 Comm: probe Not tainted 4

Re: [PATCH v8 12/28] x86/insn-eval: Add utility functions to get segment selector

2017-09-28 Thread Borislav Petkov
On Wed, Sep 27, 2017 at 03:32:26PM -0700, Ricardo Neri wrote: > The idea is that get_overridden_seg_reg() would implement the logic you > just described. It would return return INAT_SEG_REG_DEFAULT/IGNORE when > segment override prefixes are not allowed (i.e., valid insn with > operand rDI and stri

Re: [PATCH v2 16/31] usb/phy-isp1301-omap: Remove .data assignment

2017-09-28 Thread Felipe Balbi
Hi, Kees Cook writes: > The .data assignment appears to be redundant to the WORK_STOP bit for > stopping the timer. Also, it appears this timer is entirely unused > as it is only ever started under #define VERBOSE, which is explicitly > undefined. > > Cc: Felipe Balbi > Cc: Greg Kroah-Hartman

Re: [PATCH v2 27/31] usb/gadget/snps_udc_core: Remove struct timer_list.data use

2017-09-28 Thread Felipe Balbi
Kees Cook writes: > If the probe fails, udc_remove() will not be called, so there is no > reason to make del_timer_sync() calls conditional. As a result, use of > the .data field can be dropped, in support of making removing this field > entirely from struct timer_list. > > Cc: Felipe Balbi > Cc

Re: [PATCH v3 tip/core/rcu 40/40] rcu: Make non-preemptive schedule be Tasks RCU quiescent state

2017-09-28 Thread Sasha Levin
On Wed, Apr 19, 2017 at 9:58 AM, Paul E. McKenney wrote: > Currently, a call to schedule() acts as a Tasks RCU quiescent state > only if a context switch actually takes place. However, just the > call to schedule() guarantees that the calling task has moved off of > whatever tracing trampoline th

Re: sched: serial port lockdep warning when offlining CPUs

2017-09-28 Thread Peter Zijlstra
On Thu, Sep 28, 2017 at 02:19:46AM -0700, Sasha Levin wrote: > Hi all, > > I seem to be hitting the following warning when offlining CPUs on the > latest -next kernel: > > [289683102.607076] Unregister pv shared memory for cpu 8 > [289683102.622922] select_fallback_rq: 3 callbacks suppressed Thi

Re: [PATCH v2 07/22] fpga: intel: pcie: parse feature list and create platform device for features.

2017-09-28 Thread Wu Hao
On Wed, Sep 27, 2017 at 03:27:01PM -0500, Alan Tull wrote: > On Fri, Sep 22, 2017 at 2:28 AM, Wu Hao wrote: > > On Wed, Sep 20, 2017 at 04:24:10PM -0500, Alan Tull wrote: > > HI Hao, Hi Alan Thanks for your comments. :) > > >> a (wh., *()On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao > >> wrote:

Re: [PATCHv7 01/19] mm/sparsemem: Allocate mem_section at runtime for SPARSEMEM_EXTREME

2017-09-28 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Sep 28, 2017 at 10:07:11AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > Size of mem_section array depends on size of physical address space. > > > > > > In preparation for boot-time switching between paging modes on x86-64 > >

[PATCH v3] HID: hid-multitouch: support fine-grain orientation reporting

2017-09-28 Thread Wei-Ning Huang
The current hid-multitouch driver only allow the report of two orientations, vertical and horizontal. We use the Azimuth orientation usage 0x3F under the Digitizer usage page to report orientation if the device supports it. Changelog: v1 -> v2: - Fix commit message. - Remove resolution rep

Re: [PATCHv7 02/19] mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS

2017-09-28 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Sep 28, 2017 at 10:10:34AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > With boot-time switching between paging mode we will have variable > > > MAX_PHYSMEM_BITS. > > > > > > Let's use the maximum variable possible for CONFIG_X

[PATCH] m68k: pull mach_beep in setup.c

2017-09-28 Thread Alexandre Belloni
It is possible to select INPUT_M68K_BEEP in a nommu configuration. This results in the following link error: drivers/input/misc/m68kspkr.o: In function `m68kspkr_event': m68kspkr.c:(.text+0x3a): undefined reference to `mach_beep' m68kspkr.c:(.text+0x5e): undefined reference to `mach_beep' m68kspkr

Re: [PATCH] mtd: nand: atmel: fix buffer overflow in atmel_pmecc_user

2017-09-28 Thread Boris Brezillon
On Wed, 27 Sep 2017 14:49:17 +0200 Richard Genoud wrote: > When calculating the size needed by struct atmel_pmecc_user *user, > the dmu and delta buffer sizes were forgotten. > This lead to a memory corruption (especially with a large ecc_strength). > > Link: http://lkml.kernel.org/r/1506503157.

[PATCH v4 6/8] pwm: atmel-tcb: Support backup mode

2017-09-28 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/pwm/pwm-atmel-tcb.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(

[PATCH v4 7/8] atmel_flexcom: Support backup mode

2017-09-28 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre Tested-by: Nicolas Ferre --- drivers/mfd/atmel-f

[PATCH v4 5/8] ehci-atmel: Power down during suspend is normal

2017-09-28 Thread Romain Izard
When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 ins

Re: [PATCH v2 0/2] Fix y2038 issues for security/keys subsystem

2017-09-28 Thread James Morris
On Thu, 28 Sep 2017, David Howells wrote: > James Morris wrote: > > > David, have you taken these into your tree? I can apply them to mine if > > needed. > > I was intending to add them to my next tree for security/next. Ok, please add Reviewed-by: James Morris to these. Also, please use

[PATCH v4 3/8] clk: at91: pmc: Support backup for programmable clocks

2017-09-28 Thread Romain Izard
From: Romain Izard When an AT91 programmable clock is declared in the device tree, register it into the Power Management Controller driver. On entering suspend mode, the driver saves and restores the Programmable Clock registers to support the backup mode for these clocks. Signed-off-by: Romain

[PATCH v4 4/8] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-28 Thread Romain Izard
During backup mode, the contents of all registers will be cleared as the SoC will be completely powered down. For a product that boots on NAND Flash memory, the bootloader will obviously use the related controller to read the Flash and correct any detected error in the memory, before handling back

[PATCH v4 1/8] clk: at91: pmc: Wait for clocks when resuming

2017-09-28 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre --- drivers/clk/at

[PATCH v4 8/8] tty/serial: atmel: Prevent a warning on suspend

2017-09-28 Thread Romain Izard
The atmel serial port driver reported the following warning on suspend: atmel_usart f802.serial: ttyS1: Unable to drain transmitter As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared when the transmitter is disabled, we need to know the transmitter's state to return the real

[PATCH v4 0/8] Various patches for SAMA5D2 backup mode

2017-09-28 Thread Romain Izard
While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code f

[PATCH v4 2/8] clk: at91: pmc: Save SCSR during suspend

2017-09-28 Thread Romain Izard
The contents of the System Clock Status Register (SCSR) needs to be restored into the System Clock Enable Register (SCER). As the bootloader will restore some clocks by itself, the issue can be missed as only the USB controller, the LCD controller, the Image Sensor controller and the programmable

Re: [PATCH] PM: ARM: sa1111: Drop suspend and resume bus type callbacks

2017-09-28 Thread Russell King - ARM Linux
On Tue, Sep 26, 2017 at 11:37:40PM +0200, Rafael J. Wysocki wrote: > On Tue, Sep 26, 2017 at 11:28 PM, Russell King - ARM Linux > wrote: > > On Tue, Sep 26, 2017 at 10:47:10PM +0200, Rafael J. Wysocki wrote: > >> From: Rafael J. Wysocki > >> > >> None of the sa drivers in the tree implements

[RFC PATCH 4/9] [media] v4l2-ctrls: add support for jobs API

2017-09-28 Thread Alexandre Courbot
Add generic support for jobs in the control framework by handling the new V4L2_CTRL_WHICH_*JOB_VAL which values. This calls the state handler callbacks in such a case and takes care of control management for drivers with jobs API support. Note: this is a very simple and naive way to manage control

[RFC PATCH 1/9] [media] v4l2-core: add v4l2_is_v4l2_file function

2017-09-28 Thread Alexandre Courbot
Add a function that checks whether a given open file is a v4l2 device instance. This will be useful for job queue creation as we are passed a set of FDs and we need to make this check. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-dev.c | 6 ++ include/media/v4l2-dev.h

[RFC PATCH 6/9] [media] m2m: add generic support for jobs API

2017-09-28 Thread Alexandre Courbot
Add a v4l2_mem_ctx_job_init() function that drivers using m2m can call at init time in order to set the state handler. Also make sure to call v4l2_jobqueue_job_finish() when the jobs API is used and all buffers for the current job have been processed. Signed-off-by: Alexandre Courbot --- driver

[RFC PATCH 0/9] V4L2 Jobs API WIP

2017-09-28 Thread Alexandre Courbot
Hi everyone, Here is a new attempt at the "request" (which I propose to rename "jobs") API for V4L2, hopefully in a manner that can converge to something that will be merged. The core ideas should be easy to grasp for those familiar with the previous attemps, yet there are a few important differen

[RFC PATCH 8/9] [media] vivid: add jobs API support for capture device

2017-09-28 Thread Alexandre Courbot
Add support for jobs in the vivid capture device, using the generic state handler. Signed-off-by: Alexandre Courbot --- drivers/media/platform/vivid/vivid-core.c| 16 drivers/media/platform/vivid/vivid-core.h| 2 ++ drivers/media/platform/vivid/vivid-kthread-cap

[RFC PATCH 9/9] [media] document jobs API

2017-09-28 Thread Alexandre Courbot
Still a work-in-progress, but hopefully conveys the general idea. Signed-off-by: Alexandre Courbot --- Documentation/media/intro.rst | 2 + Documentation/media/media_uapi.rst | 1 + Documentation/media/uapi/jobs/jobs-api.rst | 23 +++ Documentati

[RFC PATCH 7/9] [media] vim2m: add jobs API support

2017-09-28 Thread Alexandre Courbot
Add support for jobs in vim2m, using the generic state handler. Signed-off-by: Alexandre Courbot --- drivers/media/platform/vim2m.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c index 970b9b6dab25..af

[PATCH] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Martyn Welch
The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe the length of the buffer when initialising the scatter gather list. In order to ensure that this stays consistent, use RX_BUF_SIZE in both locations. --- dr

[RFC PATCH 5/9] [media] v4l2-job: add generic jobs ops

2017-09-28 Thread Alexandre Courbot
Add a generic state handler that records controls to be set for a given job and applies them once the job is scheduled, while also allowing said controls to be read back once the job is dequeued. This implementation can be used as-is for most drivers, with only drivers with specific needs needing

Re: [GIT PULL] Introduce housekeeping subsystem v4

2017-09-28 Thread Ingo Molnar
* Frederic Weisbecker wrote: > Ingo, > > Please pull the core/isolation-v4 branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > core/isolation-v4 > > HEAD: cf4c55aad44251369c8507c3823f9f9c51d4dc77 > > Summary of changes: > > * Mo

[RFC PATCH 2/9] [media] v4l2-core: add core jobs API support

2017-09-28 Thread Alexandre Courbot
Add core support code for jobs API. This manages the life cycle of jobs and creation of a jobs queue, as well as the interface for job states. It also exposes the user-space jobs API. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/Makefile| 3 +- drivers/media/v4l2-c

[RFC PATCH 3/9] [media] videobuf2: add support for jobs API

2017-09-28 Thread Alexandre Courbot
Add generic support for jobs in videobuf2. When the jobs API is active, the passing of buffers to the driver is delayed until their job is submitted. Drivers need to call the vb2_queue_active_job_buffers() function in order to receive the buffers corresponding to the active job. Signed-off-by: Ale

[PATCH v2 01/16] gpio: Implement tighter IRQ chip integration

2017-09-28 Thread Thierry Reding
From: Thierry Reding Currently GPIO drivers are required to a GPIO chip and the corresponding IRQ chip separately, which can result in a lot of boilerplate. Introduce a new struct gpio_irq_chip, embedded in a struct gpio_chip, that drivers can fill in if they want the GPIO core to automatically r

[PATCH v2 09/16] gpio: Move irq_valid_mask into struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- Documentation/gpio/driver.txt | 4 ++-- drivers/gpio/gpio-aspeed.c | 4

[PATCH v2 11/16] gpio: Add Tegra186 support

2017-09-28 Thread Thierry Reding
From: Thierry Reding Tegra186 has two GPIO controllers that are largely register compatible between one another but are completely different from the controller found on earlier generations. Signed-off-by: Thierry Reding --- Changes in v4: - use platform_irq_count() instead of of_irq_count() C

[PATCH v2 16/16] gpio: tegra186: Use banked GPIO infrastructure

2017-09-28 Thread Thierry Reding
From: Thierry Reding Convert the Tegra186 GPIO driver to use the banked GPIO infrastructure, which simplifies some parts of the driver. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-tegra186.c | 211 --- 1 file changed, 79 insertions(+), 132 deleti

[PATCH v2 14/16] gpio: Add support for banked GPIO controllers

2017-09-28 Thread Thierry Reding
From: Thierry Reding Some GPIO controllers are subdivided into multiple logical blocks called banks (or ports). This is often caused by the design assigning separate resources, such as register regions or interrupts, to each bank, or some set of banks. This commit adds support for describing con

[PATCH v2 13/16] gpio: omap: Rename struct gpio_bank to struct omap_gpio_bank

2017-09-28 Thread Thierry Reding
From: Thierry Reding Subsequent patches will want to introduce a struct gpio_bank in core code, so rename this to something driver-specific in order to avoid the names from clashing. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-omap.c | 131 --

[PATCH v2 15/16] gpio: tegra: Use banked GPIO infrastructure

2017-09-28 Thread Thierry Reding
From: Thierry Reding Convert the Tegra GPIO driver to use the banked GPIO infrastructure, which simplifies some parts of the driver. Signed-off-by: Thierry Reding --- drivers/gpio/Kconfig | 1 + drivers/gpio/gpio-tegra.c | 203 ++ 2 files chan

[PATCH v2 10/16] gpio: Move lock_key into struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 4 ++-- include/linux/gpio/driver.h | 9 +++-- 2 files changed, 9 in

[PATCH v2 12/16] gpio: omap: Fix checkpatch warnings

2017-09-28 Thread Thierry Reding
From: Thierry Reding Use unsigned int rather than unsigned, wrap lines longer than 80 characters and other minor coding style cleanups. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-omap.c | 113 ++- 1 file changed, 63 insertions(+), 50 deletio

[PATCH v2 08/16] gpio: Move irq_nested into struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 12 ++-- include/linux/gpio/driver.h | 9 +++-- 2 files cha

[PATCH v2 05/16] gpio: Move irq_handler to struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 4 ++-- include/linux/gpio/driver.h | 11 --- 2 files changed,

[PATCH v2 03/16] gpio: Move irqdomain into struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- Documentation/gpio/driver.txt | 2 +- drivers/bcma/driver_gpio.c | 2

[PATCH v2 07/16] gpio: Move irq_chained_parent to struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 8 ++-- include/linux/gpio/driver.h | 4 2 files changed, 2 ins

[PATCH v2 06/16] gpio: Move irq_default_type to struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 10 +- include/linux/gpio/driver.h | 11 --- 2 files cha

Re: [PATCH] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Uwe Kleine-König
On Thu, Sep 28, 2017 at 10:52:15AM +0100, Martyn Welch wrote: > The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then > uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe > the length of the buffer when initialising the scatter gather list. > > In order to ensur

[PATCH v2 02/16] gpio: Move irqchip into struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 18 +- include/linux/gpio/driver.h | 14 --

[PATCH v2 04/16] gpio: Move irq_base to struct gpio_irq_chip

2017-09-28 Thread Thierry Reding
From: Thierry Reding In order to consolidate the multiple ways to associate an IRQ chip with a GPIO chip, move more fields into the new struct gpio_irq_chip. Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib.c | 2 +- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 2

[PATCH v2 00/16] gpio: Tight IRQ chip integration and banked infrastructure

2017-09-28 Thread Thierry Reding
From: Thierry Reding Hi Linus, here's the latest series of patches that implement the tighter IRQ chip integration as well as the banked GPIO infrastructure that we had discussed a couple of weeks/months back. The first couple of patches are mostly preparatory work in order to consolidate all I

Re: [PATCH -v2 02/18] sched/fair: Add comment to calc_cfs_shares()

2017-09-28 Thread Morten Rasmussen
On Fri, Sep 01, 2017 at 03:21:01PM +0200, Peter Zijlstra wrote: > Explain the magic equation in calc_cfs_shares() a bit better. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/sched/fair.c | 61 > > 1 file changed, 61 insertions(+)

Re: [PATCH v6 1/4] sched/clock: interface to allow timestamps early in boot

2017-09-28 Thread Dou Liyang
Hi Peter, At 09/28/2017 02:09 AM, Peter Zijlstra wrote: On Wed, Sep 27, 2017 at 08:05:48PM +0200, Peter Zijlstra wrote: On Wed, Sep 27, 2017 at 09:52:36PM +0800, Dou Liyang wrote: We do not want to do that. Because, we use "notsc" to support Dynamic Reconfiguration[1]. AFAIK, this feature en

Re: [PATCH v4 0/8] Various patches for SAMA5D2 backup mode

2017-09-28 Thread Alexandre Belloni
Hi, On 28/09/2017 at 11:46:19 +0200, Romain Izard wrote: > While the core of the backup mode for SAMA5D2 has been integrated in > v4.13, it is far from complete. Individual controllers in the chip have > drivers that do not support the reset of the registers during suspend, > and they need to be a

[PATCH] serial: imx: only set dma_is_rxing when DMA starts

2017-09-28 Thread Martyn Welch
From: Romain Perier The variable dma_is_rxing is currently set to 1 in imx_disable_rx_int(). This is problematic as: - whilst imx_disable_rx_int() is currently always called before start_rx_dma() this dependency isn't obvious. - start_rx_dma() does error checking and might exit without enabl

Re: [PATCH] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Martyn Welch
On Thu, Sep 28, 2017 at 12:00:19PM +0200, Uwe Kleine-König wrote: > On Thu, Sep 28, 2017 at 10:52:15AM +0100, Martyn Welch wrote: > > The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then > > uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe > > the length of th

[PATCH v2] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Martyn Welch
The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe the length of the buffer when initialising the scatter gather list. In order to ensure that this stays consistent, use RX_BUF_SIZE in both locations. Signed

Re: [RFC] A multithread lockless deduplication engine

2017-09-28 Thread Andrea Arcangeli
Hello XaviLi, On Tue, Sep 26, 2017 at 01:47:47PM +0200, Michal Hocko wrote: > [Let's add some more people and linux-mm to the CC list] > > On Wed 20-09-17 11:23:50, XaviLi wrote: > > PageONE (Page Object Non-duplicate Engine) is a multithread kernel page > > deduplication engine. It is based on

Re: [PATCH 1/2 v2] fdmap(2)

2017-09-28 Thread Alexey Dobriyan
On 9/27/17, Andy Lutomirski wrote: > On Tue, Sep 26, 2017 at 12:00 PM, Alexey Dobriyan > wrote: >> On Mon, Sep 25, 2017 at 09:42:58AM +0200, Michael Kerrisk (man-pages) >> wrote: >>> [Not sure why original author is not in CC; added] >>> >>> Hello Alexey, >>> >>> On 09/24/2017 10:06 PM, Alexey Do

[PATCH v2] HID: usbhid: fix out-of-bounds bug

2017-09-28 Thread Jaejoong Kim
The hid descriptor identifies the length and type of subordinate descriptors for a device. If the received hid descriptor is smaller than the size of the struct hid_descriptor, it is possible to cause out-of-bounds. In addition, if bNumDescriptors of the hid descriptor have an incorrect value, thi

Re: [PATCHv7 09/19] x86/mm: Make MAX_PHYSADDR_BITS and MAX_PHYSMEM_BITS dynamic

2017-09-28 Thread Kirill A. Shutemov
On Thu, Sep 28, 2017 at 10:25:14AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > For boot-time switching between paging modes, we need to be able to > > adjust size of physical address space at runtime. > > > > As part of making physical address space size variable, we have to

Re: [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-28 Thread Joao Martins
On 09/28/2017 12:46 AM, Joao Martins wrote: > On 09/27/2017 11:44 PM, Boris Ostrovsky wrote: >> On 09/27/2017 04:57 PM, Joao Martins wrote: >>> On 09/27/2017 09:22 PM, Boris Ostrovsky wrote: On 09/27/2017 11:26 AM, Joao Martins wrote: > On 09/27/2017 03:40 PM, Boris Ostrovsky wrote: >>

[RESEND][PATCH 2/2] mailbox: mailbox-test: don't rely on rx_buffer content to signal data ready

2017-09-28 Thread Sudeep Holla
Currently we rely on the first byte of the Rx buffer to check if there's any data available to be read. If the first byte of the received buffer is zero (i.e. null character), then we fail to signal that data is available even when it's available. Instead introduce a boolean variable to track the

[RESEND][PATCH 1/2] mailbox: reset txdone_method TXDONE_BY_POLL if client knows_txdone

2017-09-28 Thread Sudeep Holla
Currently the mailbox framework sets txdone_method to TXDONE_BY_POLL if the controller sets txdone_by_poll. However some clients can have a mechanism to do TXDONE_BY_ACK which they can specify by knows_txdone. However, we endup setting both TXDONE_BY_POLL and TXDONE_BY_ACK in that case. In such sce

[tip:irq/urgent] irq/generic-chip: Don't replace domain's name

2017-09-28 Thread tip-bot for Jeffy Chen
Commit-ID: 72364d320644c12948786962673772f271039a4a Gitweb: https://git.kernel.org/tip/72364d320644c12948786962673772f271039a4a Author: Jeffy Chen AuthorDate: Thu, 28 Sep 2017 12:37:31 +0800 Committer: Thomas Gleixner CommitDate: Thu, 28 Sep 2017 12:18:59 +0200 irq/generic-chip: Don't

Re: [PATCHv7 10/19] x86/mm: Make __PHYSICAL_MASK_SHIFT and __VIRTUAL_MASK_SHIFT dynamic

2017-09-28 Thread Kirill A. Shutemov
On Thu, Sep 28, 2017 at 10:28:13AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > --- a/arch/x86/mm/dump_pagetables.c > > +++ b/arch/x86/mm/dump_pagetables.c > > @@ -82,8 +82,8 @@ static struct addr_marker address_markers[] = { > > { 0/* VMALLOC_START */, "vmalloc() Area" },

[tip:x86/apic] x86/apic: Fix spelling mistake: "symmectic" -> "symmetric"

2017-09-28 Thread tip-bot for Colin Ian King
Commit-ID: 79761ce80aa0232157e428bde28c0cef6d43ac5f Gitweb: https://git.kernel.org/tip/79761ce80aa0232157e428bde28c0cef6d43ac5f Author: Colin Ian King AuthorDate: Wed, 27 Sep 2017 11:22:23 +0100 Committer: Thomas Gleixner CommitDate: Thu, 28 Sep 2017 12:22:40 +0200 x86/apic: Fix spelli

Re: [PATCH 1/3] clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock

2017-09-28 Thread Maxime Ripard
Hi, On Sat, Sep 23, 2017 at 12:15:29AM +, Icenowy Zheng wrote: > The A64 PLL_CPU clock has the same instability if some factor changed > without the PLL gated like other SoCs with sun6i-style CCU, e.g. A33, > H3. > > Add the mux and pll notifiers for A64 CPU clock to workaround the > problem.

Re: [PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-28 Thread Maxime Ripard
Hi, On Wed, Sep 27, 2017 at 11:51:30AM +, icen...@aosc.io wrote: > 在 2017-09-25 18:27,Maxime Ripard 写道: > > On Mon, Sep 25, 2017 at 10:12:09AM +, Icenowy Zheng wrote: > > > 于 2017年9月25日 GMT+08:00 下午6:10:27, Maxime Ripard > > > 写到: > > > >Hi, > > > > > > > >On Sat, Sep 23, 2017 at 12:15:28

[tip:core/watchdog] watchdog/hardlockup/perf: Fix spelling mistake: "permanetely" -> "permanently"

2017-09-28 Thread tip-bot for Colin Ian King
Commit-ID: 77c01d11bbb2b5c005347061bf543ab94878314c Gitweb: https://git.kernel.org/tip/77c01d11bbb2b5c005347061bf543ab94878314c Author: Colin Ian King AuthorDate: Tue, 26 Sep 2017 10:36:03 +0100 Committer: Thomas Gleixner CommitDate: Thu, 28 Sep 2017 12:24:54 +0200 watchdog/hardlockup/

Re: sched: serial port lockdep warning when offlining CPUs

2017-09-28 Thread Sergey Senozhatsky
Hi all, Peter, thanks for Cc-ing. On (09/28/17 11:38), Peter Zijlstra wrote: > On Thu, Sep 28, 2017 at 02:19:46AM -0700, Sasha Levin wrote: > > Hi all, > > > > I seem to be hitting the following warning when offlining CPUs on the > > latest -next kernel: > > > > [289683102.607076] Unregister pv

[PATCH v2] iommu/iova: Try harder to allocate from rcache magazine

2017-09-28 Thread Robin Murphy
When devices with different DMA masks are using the same domain, or for PCI devices where we usually try a speculative 32-bit allocation first, there is a fair possibility that the top PFN of the rcache stack at any given time may be unsuitable for the lower limit, prompting a fallback to allocatin

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-28 Thread Herbert Xu
On Wed, Sep 27, 2017 at 10:13:04PM +, Casey Leedom wrote: > | From: Raj, Ashok > | Sent: Wednesday, September 27, 2017 12:07 PM > | > | looking at the debug output i got from Harsh it still looks like a bug in > | the code. > | > | [ 538.284589] __domain_mapping nr_pages 0x1 > | [ 538.284600]

Re: [GIT PULL] KEYS: Fixes and crypto fixes

2017-09-28 Thread Herbert Xu
On Thu, Sep 28, 2017 at 12:08:36PM +1000, James Morris wrote: > On Wed, 27 Sep 2017, Eric Biggers wrote: > > > On Thu, Sep 28, 2017 at 09:14:58AM +1000, James Morris wrote: > > > On Wed, 27 Sep 2017, David Howells wrote: > > > > > > > (2) Fixing big_key to use safe crypto from Jason A. Donenfeld

[PATCH][drm-next] drm/amd/powerplay: fix spelling mistake: "dividable" -> "divisible"

2017-09-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in pr_err error message and ASSERT messages. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/

Re: [PATCH 3/4] sched: WARN when migrating to an offline CPU

2017-09-28 Thread Peter Zijlstra
On Thu, Sep 28, 2017 at 02:14:15AM -0700, Sasha Levin wrote: > On Thu, Sep 7, 2017 at 8:03 AM, Peter Zijlstra wrote: > > Migrating tasks to offline CPUs is a pretty big fail, warn about it. > > Hey Peter, > > This seems to get hit on the latest -next: > > [2035565360.446794] Unregister pv share

[PATCH] serial: imx: Switch setting dma_is_txing from "false" to "0"

2017-09-28 Thread Martyn Welch
The variable "dma_is_txing" is an unsigned int, set as either "0" or "1" in all but one location, where it is instead set to "false". For consistency, set dma_is_txing to "0" in this location too. Signed-off-by: Martyn Welch --- drivers/tty/serial/imx.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCHv7 09/19] x86/mm: Make MAX_PHYSADDR_BITS and MAX_PHYSMEM_BITS dynamic

2017-09-28 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Sep 28, 2017 at 10:25:14AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > For boot-time switching between paging modes, we need to be able to > > > adjust size of physical address space at runtime. > > > > > > As part of making p

Re: [PATCH v2] netlink: do not proceed if dump's start() errs

2017-09-28 Thread Jason A. Donenfeld
On Thu, Sep 28, 2017 at 12:41:44AM +0200, Jason A. Donenfeld wrote: > diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c > index 327807731b44..94c11cf0459d 100644 > --- a/net/netlink/af_netlink.c > +++ b/net/netlink/af_netlink.c > @@ -2270,10 +2270,13 @@ int __netlink_dump_start(struc

Re: [PATCHv7 10/19] x86/mm: Make __PHYSICAL_MASK_SHIFT and __VIRTUAL_MASK_SHIFT dynamic

2017-09-28 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Sep 28, 2017 at 10:28:13AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > --- a/arch/x86/mm/dump_pagetables.c > > > +++ b/arch/x86/mm/dump_pagetables.c > > > @@ -82,8 +82,8 @@ static struct addr_marker address_markers[] = { > > >

Re: [PATCH 1/3] clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock

2017-09-28 Thread icenowy
在 2017-09-28 18:27,Maxime Ripard 写道: Hi, On Sat, Sep 23, 2017 at 12:15:29AM +, Icenowy Zheng wrote: The A64 PLL_CPU clock has the same instability if some factor changed without the PLL gated like other SoCs with sun6i-style CCU, e.g. A33, H3. Add the mux and pll notifiers for A64 CPU cloc

<    1   2   3   4   5   6   7   8   >