Re: [PATCH v9 6/8] drivers:input:ads7846(+tsc2046): fix spi module table

2017-01-29 Thread H. Nikolaus Schaller
Hi Dmitry, > Am 28.01.2017 um 20:35 schrieb Dmitry Torokhov : > > On Wed, Dec 28, 2016 at 03:53:21PM +0100, H. Nikolaus Schaller wrote: >> Fix module table so that the driver is loaded if compiled >> as module and requested by DT. >> > > I believe I already replied to a similar patch: we alread

Re: [PATCH 2/2] iio: distance: add devantech us ranger srf04

2017-01-29 Thread Peter Meerwald-Stadler
> This patch adds support for the ultrasonic ranger srf04 of devantech. comments below > This device is measuring the distance of objects in a range between 1 cm > and 3 meters and a theoretical resolution of 3 mm. > > There are two GPIOs used: > - trigger: set when the measurement should st

Re: [PATCH 37/50] x86/boot/e820: Use 'enum e820_type' in 'struct e820_entry'

2017-01-29 Thread Ingo Molnar
* Linus Torvalds wrote: > On Sat, Jan 28, 2017 at 2:11 PM, Ingo Molnar wrote: > > Use a stricter type for struct e820_entry. Add a build-time check to make > > sure the compiler won't ever pack the enum into a field smaller than > > 'int'. > > I'm not sure this is a good idea. In fact, I'm pre

Re: [PATCH 1/2] iio: distance: add dt binding for devantech-srf04

2017-01-29 Thread Peter Meerwald-Stadler
On Sun, 29 Jan 2017, Andreas Klinger wrote: > This patch adds dt binding for devantech ultrasonic ranger srf04. comments below > The vendor "devantech" was already added to the vendor list with > "[PATCH v4 1/3] iio: distance: srf08: add trivial DT binding" > > Signed-off-by: Andreas Kl

Re: [PATCH v2 0/2] scsi: storvsc: Add support for FC lightweight host.

2017-01-29 Thread Christoph Hellwig
On Sun, Jan 29, 2017 at 12:35:32AM +, KY Srinivasan wrote: > Windows has chosen this model for virtualizing FC devices to the guest - > without rports (or vports). As I noted in my earlier email, James came > up with this notion of a lightweight template almost a year ago. We can > certainly pi

[PATCH] rtc: sun6i: Fix compatibility with old DT binding

2017-01-29 Thread Chen-Yu Tsai
Commit 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator") adds a new clock for the rtc block with a 2 step probe mechanism. To share the register region between both the clock and rtc instance, a static pointer is used to keep the related data structure. To preserve compatibility with the ol

Re: BUG at net/sctp/socket.c:7425

2017-01-29 Thread Marcelo Ricardo Leitner
On Sun, Jan 29, 2017 at 03:35:31AM +0300, Alexander Popov wrote: > Hello, > > I'm running the syzkaller fuzzer for v4.10-rc4 > (0aa0313f9d576affd7747cc3f179feb097d28990) > and have such a crash in sctp code: > ... > > Unfortunately, I didn't manage to get a C program reproducing the crash > (l

next-20170125 hangs on aarch64

2017-01-29 Thread Yury Norov
Hi all, I pulled next-20170125 kernel, and found it hanged on boot. The exact reason is panic on dereferencing of the 0xffc8 address, which is most probably the attempt to dereference the ENOSYS error code as the address. next-20170124 works fine, at least it boots. Does anyone have details o

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-01-29 Thread Uwe Kleine-König
Hello, On Fri, Jan 27, 2017 at 11:36:17PM +0530, Bhumika Goyal wrote: > drivers/i2c/busses/i2c-imx.c | 2 +- Acked-by: Uwe Kleine-König for i2c-imx.c Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions

[PATCH v4] mm: add arch-independent testcases for RODATA

2017-01-29 Thread Jinbum Park
This patch makes arch-independent testcases for RODATA. Both x86 and x86_64 already have testcases for RODATA, But they are arch-specific because using inline assembly directly. and cacheflush.h is not suitable location for rodata-test related things. Since they were in cacheflush.h, If someone ch

undefined reference to `physical_memsize'

2017-01-29 Thread kbuild test robot
Hi Hauke, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 53cd1ad1a68fd10f677445e04ed63aa9ce39b36b commit: a2724663494f7313f53da10d8c0a729c5e3c4dea mtd: nand: xway: fix build because of module functi

Re: [RFC v2 01/10] KVM: arm/arm64: Abstract virtual timer context into separate structure

2017-01-29 Thread Marc Zyngier
On Fri, Jan 27 2017 at 01:04:51 AM, Jintack Lim wrote: > Abstract virtual timer context into a separate structure and change all > callers referring to timer registers, irq state and so on. No change in > functionality. > > This is about to become very handy when adding the EL1 physical timer. > >

Re: [PATCH 2/2] iio: distance: add devantech us ranger srf04

2017-01-29 Thread Lars-Peter Clausen
On 01/29/2017 12:58 AM, Andreas Klinger wrote: > This patch adds support for the ultrasonic ranger srf04 of devantech. Thanks for the patch. Looks mostly good, a few small comments inline. > diff --git a/drivers/iio/proximity/srf04.c b/drivers/iio/proximity/srf04.c > new file mode 100644 > index

Re: [RFC v2 02/10] KVM: arm/arm64: Move cntvoff to each timer context

2017-01-29 Thread Marc Zyngier
On Fri, Jan 27 2017 at 01:04:52 AM, Jintack Lim wrote: > Make cntvoff per each timer context. This is helpful to abstract kvm > timer functions to work with timer context without considering timer > types (e.g. physical timer or virtual timer). > > This also would pave the way for ever doing adjus

Re: [RFC v2 03/10] KVM: arm/arm64: Decouple kvm timer functions from virtual timer

2017-01-29 Thread Marc Zyngier
On Fri, Jan 27 2017 at 01:04:53 AM, Jintack Lim wrote: > Now that we have a separate structure for timer context, make functions > general so that they can work with any timer context, not just the generic? > virtual timer context. This does not change the virtual timer > functionality. > > S

Re: [RFC v2 05/10] KVM: arm/arm64: Initialize the emulated EL1 physical timer

2017-01-29 Thread Marc Zyngier
On Fri, Jan 27 2017 at 01:04:55 AM, Jintack Lim wrote: > Initialize the emulated EL1 physical timer with the default irq number. > > Signed-off-by: Jintack Lim > --- > arch/arm/kvm/reset.c | 9 - > arch/arm64/kvm/reset.c | 9 - > include/kvm/arm_arch_timer.h | 3 ++-

Re: next-20170125 hangs on aarch64

2017-01-29 Thread Yury Norov
On Sun, Jan 29, 2017 at 03:42:55PM +0530, Yury Norov wrote: > Hi all, > > I pulled next-20170125 kernel, and found it hanged on boot. The exact reason > is > panic on dereferencing of the 0xffc8 address, which is most probably the > attempt to dereference the ENOSYS error code as the address.

mm: deadlock between get_online_cpus/pcpu_alloc

2017-01-29 Thread Dmitry Vyukov
Hello, I've got the following deadlock report while running syzkaller fuzzer on f37208bc3c9c2f811460ef264909dfbc7f605a60: [ INFO: possible circular locking dependency detected ] 4.10.0-rc5-next-20170125 #1 Not tainted --- syz-executor3/14255 is

[PATCH] gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page

2017-01-29 Thread Arseny Solokha
From: Arseny Solokha In spite of switching to paged allocation of Rx buffers, the driver still called dma_unmap_single() in the Rx queues tear-down path. The DMA region unmapping code in free_skb_rx_queue() basically predates the introduction of paged allocation to the driver. While being refact

Re: net: deadlock on genl_mutex

2017-01-29 Thread Dmitry Vyukov
On Fri, Dec 9, 2016 at 6:08 AM, Cong Wang wrote: >>> Chain exists of: >>> Possible unsafe locking scenario: >>> >>>CPU0CPU1 >>> >>> lock(genl_mutex); >>>lock(nlk->cb_mutex); >>>

Exynos5422 EHCI (USB 2.0) - Odroid XU4 - port 1 resume error -110

2017-01-29 Thread Krzysztof Kozlowski
Hi, On Odroid XU4 with an external usb2514 hub (evaluation board from SMSC or TI) connected to the USB2.0 port of EHCI controller, whenever I plug some USB device into the usb2514 hub I see errors like: [ 73.969179] exynos-ehci 1211.usb: port 1 resume error -110 [ 74.003259] usb 1-1: USB d

[PATCH v3 21/24] drm/rockchip: dw-mipi-dsi: defer probe if panel is not loaded

2017-01-29 Thread John Keeping
This ensures that the output resolution is known before fbcon loads. Signed-off-by: John Keeping --- Unchanged in v3 Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/d

[PATCH v3 08/24] drm/rockchip: dw-mipi-dsi: respect message flags

2017-01-29 Thread John Keeping
Instead of always sending commands in LP mode, respect the MIPI_DSI_MSG_USE_LPM flag to decide how to send each message. Also request acks if MIPI_DSI_MSG_REQ_ACK is set. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rock

[PATCH v3 06/24] drm/rockchip: dw-mipi-dsi: avoid out-of-bounds read on tx_buf

2017-01-29 Thread John Keeping
As a side-effect of this, encode the endianness explicitly rather than casting a u16. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) dif

[PATCH v3 01/24] drm/rockchip: dw-mipi-dsi: don't configure hardware in mode_set for MIPI

2017-01-29 Thread John Keeping
With atomic modesetting the hardware will be powered off when the mode_set function is called. We should configure the hardware in the enable function, which is the atomic version of "commit" so let's use the enable hook rather than commit while we're at it. Signed-off-by: John Keeping --- v3: -

[PATCH v3 00/24] drm/rockchip: MIPI fixes & improvements

2017-01-29 Thread John Keeping
This re-roll mostly just gather up reviewed-by tags, although I have also wrapped some long lines and squashed together some commits as suggested by Chris Zhong. Version 2 was posted here: https://www.spinics.net/lists/arm-kernel/msg556683.html John Keeping (24): drm/rockchip: dw-mipi-dsi: don'

[PATCH v3 10/24] drm/rockchip: dw-mipi-dsi: don't assume buffer is aligned

2017-01-29 Thread John Keeping
By dereferencing the MIPI command buffer as a u32* we rely on it being correctly aligned on ARM, but this may not be the case. Copy it into a stack variable that will be correctly aligned. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 dr

[PATCH v3 09/24] drm/rockchip: dw-mipi-dsi: only request HS clock when required

2017-01-29 Thread John Keeping
Requesting the HS clock from the PHY before we initialize it causes an invalid signal to be sent out since the input clock is not yet configured. The PHY databook suggests only asserting this signal when performing HS transfers, so let's do that. Signed-off-by: John Keeping Reviewed-by: Chris Zh

[PATCH v3 02/24] drm/rockchip: dw-mipi-dsi: pass mode in where needed

2017-01-29 Thread John Keeping
This shows that we only use the mode from the enable function and prepares us to remove the "mode" field and the mode_set hook in the next commit. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by New in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 41 +++

[PATCH v3 14/24] drm/rockchip: dw-mipi-dsi: ensure PHY is reset

2017-01-29 Thread John Keeping
Also don't power up the DSI host at this point since this is not necessary in order to configure the PHY and we do so later when selecting video or command mode. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rockchip/dw-mi

[PATCH v3 16/24] drm/rockchip: dw-mipi-dsi: properly configure PHY timing

2017-01-29 Thread John Keeping
These values are specified as constant time periods but the PHY configuration is in terms of the current lane byte clock so using constant values guarantees that the timings will be outside the specification with some display configurations. Derive the necessary configuration from the byte clock i

Re: [PATCH 3/6] staging: bcm2835-v4l2: Add a build system for the module.

2017-01-29 Thread Michael Zoran
On Fri, 2017-01-27 at 13:55 -0800, Eric Anholt wrote: > This is derived from the downstream tree's build system, but with > just > a single Kconfig option. > > For now the driver only builds on 32-bit arm -- the aarch64 build > breaks due to the driver using arm-specific cache flushing functions.

[PATCH v3 11/24] drm/rockchip: dw-mipi-dsi: prepare panel after phy init

2017-01-29 Thread John Keeping
Some panels need to be configured with commands sent over the MIPI link, which they will do in the prepare hook. Call this after the PHY has been initialized so that we are able to send commands to the panel. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by

[PATCH v3 07/24] drm/rockchip: dw-mipi-dsi: include bad value in error message

2017-01-29 Thread John Keeping
As an aid to debugging. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/r

[PATCH v3 05/24] drm/rockchip: dw-mipi-dsi: fix generic packet status check

2017-01-29 Thread John Keeping
We want to check that both the GEN_CMD_EMPTY and GEN_PLD_W_EMPTY bits are set so we can't just check "val & mask" because that will be true if either bit is set. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rockchip/dw-mi

[PATCH v3 13/24] drm/rockchip: dw-mipi-dsi: fix escape clock rate

2017-01-29 Thread John Keeping
This clock rate is derived from the PHY PLL, so it should be calculated dynamically. Use the same calculation as the vendor kernel to derive the escape clock speed. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Improve the commit message a bit - Add Chris' Reviewed-by Unchanged

[PATCH v3 04/24] drm/rockchip: dw-mipi-dsi: fix command header writes

2017-01-29 Thread John Keeping
In a couple of places here we use "val" for the value that is about to be written to a register but then reuse the same variable for the value of a status register before we get around to writing it. Rename the value to be written to so that we write the value we intend to and not what we have jus

[PATCH v3 12/24] drm/rockchip: dw-mipi-dsi: allow commands in panel_disable

2017-01-29 Thread John Keeping
Panel drivers may want to sent commands during the disable function, for example MIPI_DCS_SET_DISPLAY_OFF before the video signal ends. In order to send commands we need to write to registers, so pclk must be enabled. While changing this, remove the unnecessary code after the panel unprepare call

[PATCH v3 15/24] drm/rockchip: dw-mipi-dsi: configure PHY before enabling

2017-01-29 Thread John Keeping
The bias, bandgap and PLL should all be configured before we enable them. Signed-off-by: John Keeping --- v3: - Squash together two patches that both affect initialization order of the PHY Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 11 ++- 1 file changed, 6 insertions(+)

[PATCH v3 18/24] drm/rockchip: dw-mipi-dsi: use specific poll helper

2017-01-29 Thread John Keeping
As the documentation for readx_poll_timeout says, we want to use the specialized macro for readl rather than using the generic version directly. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 10 +++

[PATCH v3 24/24] drm/rockchip: dw-mipi-dsi: support read commands

2017-01-29 Thread John Keeping
I haven't found any method for getting the length of a response, so this just uses the requested rx_len Signed-off-by: John Keeping --- v3: - Fix checkpatch warnings Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 56 ++ 1 file changed, 56 insertions(+)

[PATCH v3 20/24] drm/rockchip: vop: test for P{H,V}SYNC

2017-01-29 Thread John Keeping
When connected to the MIPI DSI output, we need to use N{H,V}SYNC for the internal connection but these flags are meaningless for DSI panels. Switch the test so that we do not set the P{H,V}SYNC bits unless the mode requires it. Signed-off-by: John Keeping Reviewed-by: Mark Yao --- v3: - Add Mark

pull-request: wireless-drivers 2017-01-29

2017-01-29 Thread Kalle Valo
Hi Dave, small but important fixes for 4.10. Hopefully is the last pull request for 4.10. Please let me know if there are any problems. Kalle The following changes since commit 60f59ce0278557f7896d5158ae6d12a4855a72cc: rtlwifi: rtl_usb: Fix missing entry in USB driver's private data (2016-12

Re: [PATCH 1/3] intel_sgx: do not use BUG() in sgx_free_page()

2017-01-29 Thread Jarkko Sakkinen
On Fri, Jan 27, 2017 at 05:45:03PM +0200, Andy Shevchenko wrote: > On Thu, Jan 26, 2017 at 11:20 PM, Jarkko Sakkinen > wrote: > > EREMOVE fails on non-EPC page or when a SECS page with children is to be > > removed. These do not happen if the driver is working correctly. Log the > > error but do n

Re: [PATCH] tpm: add buffer access validation in tpm2_get_pcr_allocation()

2017-01-29 Thread Jarkko Sakkinen
On Fri, Jan 27, 2017 at 10:25:49AM -0500, Nayna Jain wrote: > This patch add validation in tpm2_get_pcr_allocation to avoid > access beyond response buffer length. > > Suggested-by: Stefan Berger > Signed-off-by: Nayna Jain This validation looks broken to me. > --- > drivers/char/tpm/tpm2-cmd

Re: [PATCH] tpm: fix RC value check in tpm2_seal_trusted

2017-01-29 Thread Jarkko Sakkinen
On Fri, Jan 27, 2017 at 09:24:16AM -0700, Jason Gunthorpe wrote: > On Fri, Jan 27, 2017 at 08:43:27AM +0200, Jarkko Sakkinen wrote: > > On Thu, Jan 26, 2017 at 11:32:52AM -0700, Jason Gunthorpe wrote: > > > On Thu, Jan 26, 2017 at 01:27:14PM +0200, Jarkko Sakkinen wrote: > > > > > > > "The error c

squashfs-tools: Add -offset option to skip n bytes at the start of the file

2017-01-29 Thread Ritesh Raj Sarraf
On Sun, 2017-01-29 at 03:33 -0800, probonopd wrote: > Yes, I am not happy about that. > You could either push your change to the squashfs folks > Sent a PR half a year ago but no reaction: plougher/squashfs-tools#13 - is > something wrong with it? That repo seems inactive. So does the git repo at

[PATCH v3 19/24] drm/rockchip: dw-mipi-dsi: use positive check for N{H,V}SYNC

2017-01-29 Thread John Keeping
This matches other drivers. Signed-off-by: John Keeping --- Unchanged in v3 Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index be395

[PATCH v3 17/24] drm/rockchip: dw-mipi-dsi: improve PLL configuration

2017-01-29 Thread John Keeping
The multiplication ratio for the PLL is required to be even due to the use of a "by 2 pre-scaler". Currently we are likely to end up with an odd multiplier even though there is an equivalent set of parameters with an even multiplier. For example, using the 324MHz bit rate with a reference clock o

Re: [PATCH v6 0/2] enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-29 Thread Jarkko Sakkinen
On Fri, Jan 27, 2017 at 10:53:11PM +0530, Nayna wrote: > > > On 01/26/2017 02:15 AM, Jarkko Sakkinen wrote: > > On Fri, Jan 20, 2017 at 12:05:11PM -0500, Nayna Jain wrote: > > > IMA extends its hash measurements in the TPM PCRs, based on policy. > > > The existing in-kernel TPM extend function ex

[PATCH v3 03/24] drm/rockchip: dw-mipi-dsi: remove mode_set hook

2017-01-29 Thread John Keeping
This is not needed since we can access the mode via the CRTC from the enable hook. Also remove the "mode" field that is no longer used. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by New in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 13 + 1

[PATCH v3 23/24] drm/rockchip: dw-mipi-dsi: add reset control

2017-01-29 Thread John Keeping
In order to fully reset the state of the MIPI controller we must assert this reset. This is slightly more complicated than it could be in order to maintain compatibility with device trees that do not specify the reset property. Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add

[PATCH v3 22/24] drm/rockchip: dw-mipi-dsi: support non-burst modes

2017-01-29 Thread John Keeping
Signed-off-by: John Keeping Reviewed-by: Chris Zhong --- v3: - Add Chris' Reviewed-by Unchanged in v2 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw

Re: [PATCH] power: supply: bq2415x: check for NULL acpi_id to avoid null pointer dereference

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 20, 2017 at 01:25:06PM +, Colin King wrote: > acpi_match_device can potentially return NULL, so it is prudent to > check if acpi_id is null before it is dereferenced. Add a check > and an error message to indicate the failure. > > Signed-off-by: Colin Ian King Thanks, queue

Re: [PATCH 08/22] power: supply: add AC power supply driver for AXP20X and AXP22X PMICs

2017-01-29 Thread Sebastian Reichel
Hi, On Sat, Jan 28, 2017 at 02:30:22PM +, Jonathan Cameron wrote: > On 27/01/17 08:20, Maxime Ripard wrote: > > On Thu, Jan 26, 2017 at 02:32:21PM +0100, Quentin Schulz wrote: > >> I've come with this solution: > >> > >>

[PATCH] x86/boot/e820: Separate the E820 ABI structures from the in-kernel structures

2017-01-29 Thread Ingo Molnar
* Ingo Molnar wrote: > > Use explicitly sized members only, please. No "enum". > > Ok. > > Would it be acceptable to use enum for the kernel internal representation > (our > e820_table structures never actually comes directly, we construct it > ourselves),

Re: [RFC v2 06/10] KVM: arm/arm64: Update the physical timer interrupt level

2017-01-29 Thread Marc Zyngier
On Fri, Jan 27 2017 at 01:04:56 AM, Jintack Lim wrote: > Now that we maintain the EL1 physical timer register states of VMs, > update the physical timer interrupt level along with the virtual one. > > Note that the emulated EL1 physical timer is not mapped to any hardware > timer, so we call a pro

[PATCH -tip] sched/wake_q: Clarify queue reinit

2017-01-29 Thread Davidlohr Bueso
As of bcc9a76d5ac (locking/rwsem: Reinit wake_q after use), the comment regarding the list reinitialization no longer applies, update it with the new wake_q_init() helper. Signed-off-by: Davidlohr Bueso --- include/linux/sched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --gi

Re: [RFC v2 10/10] KVM: arm/arm64: Emulate the EL1 phys timer register access

2017-01-29 Thread Marc Zyngier
On Fri, Jan 27 2017 at 01:05:00 AM, Jintack Lim wrote: > Emulate read and write operations to CNTP_TVAL, CNTP_CVAL and CNTP_CTL. > Now VMs are able to use the EL1 physical timer. > > Signed-off-by: Jintack Lim > --- > arch/arm64/kvm/sys_regs.c| 32 +--- > include/

Re: [RFC v2 00/10] Provide the EL1 physical timer to the VM

2017-01-29 Thread Marc Zyngier
Hi Jintack, On Fri, Jan 27 2017 at 01:04:50 AM, Jintack Lim wrote: > The ARM architecture defines the EL1 physical timer and the virtual timer, > and it is reasonable for an OS to expect to be able to access both. > However, the current KVM implementation does not provide the EL1 physical > timer

Re: [PATCH] clk: add more managed APIs

2017-01-29 Thread Guenter Roeck
On 01/28/2017 03:39 PM, Russell King - ARM Linux wrote: On Sat, Jan 28, 2017 at 01:44:35PM -0800, Guenter Roeck wrote: On 01/28/2017 11:22 AM, Dmitry Torokhov wrote: Guenter, I know you are a coccinelle wizard, can you cook a script that can find current users of clk_enable() in probe paths? Th

Re: [PATCH] power: supply: max14656: Export I2C and OF device ID as module aliases

2017-01-29 Thread Sebastian Reichel
Hi Javier, On Wed, Jan 25, 2017 at 10:38:55AM -0300, Javier Martinez Canillas wrote: > If the driver is built as a module, I2C module alias information is not > filled so the module won't be autoloaded. Export the I2C and OF devices > ID to the module by using the MODULE_DEVICE_TABLE() macro. > >

Re: [PATCH -tip] sched/wake_q: Clarify queue reinit

2017-01-29 Thread Waiman Long
On 01/29/2017 10:15 AM, Davidlohr Bueso wrote: > As of bcc9a76d5ac (locking/rwsem: Reinit wake_q after use), the > comment regarding the list reinitialization no longer applies, > update it with the new wake_q_init() helper. > > Signed-off-by: Davidlohr Bueso > --- > include/linux/sched.h | 4 ++--

Re: [PATCH 10/10] slab: use memcg_kmem_cache_wq for slab destruction operations

2017-01-29 Thread Vladimir Davydov
On Tue, Jan 17, 2017 at 03:54:11PM -0800, Tejun Heo wrote: > If there's contention on slab_mutex, queueing the per-cache > destruction work item on the system_wq can unnecessarily create and > tie up a lot of kworkers. > > Rename memcg_kmem_cache_create_wq to memcg_kmem_cache_wq and make it > glob

Re: [PATCH v2 10/25] power: supply: add AC power supply driver for AXP20X and AXP22X PMICs

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 09:54:43AM +0100, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs expose the status of AC power > supply. > > Moreover, the AXP20X can also expose the current current and voltage > values of the AC power supply. > > This adds the driver which exposes the

Re: [PATCH v2 09/25] iio: adc: axp20x_adc: map acin_i and acin_v

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 09:54:42AM +0100, Quentin Schulz wrote: > This maps the IIO channels acin_i and acin_v (respectively exposing the > current current and voltage measures of the AC power supply) to the AC > power supply driver. > > Only the AXP20X PMICs have these ADC channels and thus

Re: [PATCH v2 11/25] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 09:54:44AM +0100, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs expose the status of AC power > supply. > > This adds the AC power supply driver to the MFD cells of the AXP22X > PMICs. > > Signed-off-by: Quentin Schulz > Acked-for-MFD-by: Lee Jones A

Re: [PATCH] staging: rtl8188eu: checkpatch fixes: removed not necessary braces {}

2017-01-29 Thread Bjørn Mork
Greg KH writes: > Please take some time, and go read Documentation/SubmittingPatches. That's quickly done nowadays: bjorn@miraculix:/usr/local/src/git/linux$ cat Documentation/SubmittingPatches This file has moved to process/submitting-patches.rst I don't know why it was necessary to move t

Re: [PATCH v2 16/25] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 09:54:49AM +0100, Quentin Schulz wrote: > - added x-powers,constant-charge-current property to set the > maximal default constant current charge of the battery, Since this is information about the battery and not the fuel-gauge, it should use the WIP "framework" for

RE: [PATCH 2/2] perf,core: use parent avg sample period as child initial period

2017-01-29 Thread Liang, Kan
> > On Wed, Jan 18, 2017 at 08:21:02AM -0500, kan.li...@intel.com wrote: > > From: Kan Liang > > > > perf brings additional overhead when monitoring the task which > > frequently generates child task. > > > > When inheriting a event from parent task to child task, the > > sample_period of origin

Re: [PATCH 01/50] x86/boot/e820: Introduce arch/x86/include/asm/e820/types.h

2017-01-29 Thread Sam Ravnborg
On Sat, Jan 28, 2017 at 11:11:22PM +0100, Ingo Molnar wrote: > > The plan is to keep the old UAPI header in place but the kernel won't > use it anymore - and after some time we'll try to remove it. (User-space > tools better have local copies of headers anyway, instead of relying > on kernel heade

Re: [PATCH] tpm: add buffer access validation in tpm2_get_pcr_allocation()

2017-01-29 Thread Nayna
On 01/29/2017 08:10 PM, Jarkko Sakkinen wrote: On Fri, Jan 27, 2017 at 10:25:49AM -0500, Nayna Jain wrote: This patch add validation in tpm2_get_pcr_allocation to avoid access beyond response buffer length. Suggested-by: Stefan Berger Signed-off-by: Nayna Jain This validation looks broken

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-01-29 Thread Luis R. Rodriguez
On Fri, Jan 27, 2017 at 02:11:46PM +0100, Pali Rohár wrote: > So there are only two options: > > 1) Disallow it and so these users will have non-working wifi. > > 2) Allow those data to be used as fallback mechanism. There is one "custom fallback" user in kernel which we recently determined was

[PATCH -tip] rcuwait: Fix wake_up typo

2017-01-29 Thread Davidlohr Bueso
Forgot to update the comment after renaming the call. Signed-off-by: Davidlohr Bueso --- include/linux/rcuwait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcuwait.h b/include/linux/rcuwait.h index 0e93d56c7ab2..a4ede51b3e7c 100644 --- a/include/linux/rcuwa

Re: [PATCH v2 08/25] dt-bindings: power: supply: add AXP20X/AXP22X AC power supply

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 09:54:41AM +0100, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs have an AC entry to supply power to > the board. They have a few registers dedicated to the status of the AC > power supply. > > This adds the DT binding documentation for the AC power suppl

[GIT PULL] parisc architecture fixes for v4.10-rc6

2017-01-29 Thread Helge Deller
Hi Linus, please pull two fixes for the parisc architecture for kernel 4.10-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.10-3 One fix to avoid usage of BITS_PER_LONG in user-space exported swab.h header which breaks compiling qemu, and one trivial f

[PATCH] macintosh: windfarm_smu_sensors: constify wf_sensor_ops structures

2017-01-29 Thread Bhumika Goyal
Declare wf_sensor_ops structures as const as they are only stored in the ops field of a wf_sensor structure. This field is of type const, so wf_sensor_ops structures having this property can be made const too. Done using Coccinelle: @r disable optional_qualifier@ identifier x; position p; @@ stati

[PATCHv3 06/12] mm: convert page_mkclean_one() to use page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_vma_mapped_walk(), so we could drop the former. PMD handling here is future-proofing, we don't have users yet. ext4 with huge pages will be the first. Signed-off-by: Kirill A. Shutemov --- mm/rmap.c | 68 +

[PATCHv3 07/12] mm: convert try_to_unmap_one() to use page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_vma_mapped_walk(), so we could drop the former. It also makes freeze_page() as we walk though rmap only once. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 16 +--- mm/rmap.c| 260 +

[PATCHv3 02/12] mm: introduce page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
The patch introduces new interface to check if a page is mapped into a vma. It aims to address shortcomings of page_check_address{,_transhuge}. Existing interface is not able to handle PTE-mapped THPs: it only finds the first PTE. The rest lefted unnoticed. page_vma_mapped_walk() iterates over al

[PATCHv3 01/12] uprobes: split THPs before trying replace them

2017-01-29 Thread Kirill A. Shutemov
For THPs page_check_address() always fails. It leads to endless loop in uprobe_write_opcode(). Testcase with huge-tmpfs (not sure if it's possible to trigger this uprobe codepath for anon memory): mount -t debugfs none /sys/kernel/debug mount -t tmpfs -o huge=always none /mnt

[PATCHv3 05/12] mm, rmap: check all VMAs that PTE-mapped THP can be part of

2017-01-29 Thread Kirill A. Shutemov
Current rmap code can miss a VMA that maps PTE-mapped THP if the first suppage of the THP was unmapped from the VMA. We need to walk rmap for the whole range of offsets that THP covers, not only the first one. vma_address() also need to be corrected to check the range instead of the first subpage

[PATCHv3 09/12] mm, uprobes: convert __replace_page() to use page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_vma_mapped_walk(), so we could drop the former. Signed-off-by: Kirill A. Shutemov Reviewed-by: Srikar Dronamraju --- kernel/events/uprobes.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff

[PATCHv3 04/12] mm: fix handling PTE-mapped THPs in page_idle_clear_pte_refs()

2017-01-29 Thread Kirill A. Shutemov
For PTE-mapped THP page_check_address_transhuge() is not adequate: it cannot find all relevant PTEs, only the first one.i Let's switch it to page_vma_mapped_walk(). I don't think it's subject for stable@: it's not fatal. Signed-off-by: Kirill A. Shutemov Cc: Vladimir Davydov --- mm/page_idle.

[PATCHv3 11/12] mm: drop page_check_address{,_transhuge}

2017-01-29 Thread Kirill A. Shutemov
All users are gone. Let's drop them. Signed-off-by: Kirill A. Shutemov --- include/linux/rmap.h | 36 -- mm/rmap.c| 138 --- 2 files changed, 174 deletions(-) diff --git a/include/linux/rmap.h b/include/linux/rmap.h index

[PATCHv3 03/12] mm: fix handling PTE-mapped THPs in page_referenced()

2017-01-29 Thread Kirill A. Shutemov
For PTE-mapped THP page_check_address_transhuge() is not adequate: it cannot find all relevant PTEs, only the first one. It means we can miss some references of the page and it can result in suboptimal decisions by vmscan. Let's switch it to page_vma_mapped_walk(). I don't think it's subject for

[PATCHv3 12/12] mm: convert remove_migration_pte() to use page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
remove_migration_pte() also can easily be converted to page_vma_mapped_walk(). Signed-off-by: Kirill A. Shutemov --- mm/migrate.c | 104 +++ 1 file changed, 41 insertions(+), 63 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 8

[PATCHv3 00/12] Fix few rmap-related THP bugs

2017-01-29 Thread Kirill A. Shutemov
The patch fixes handing PTE-mapped THPs in page_referenced() and page_idle_clear_pte_refs(). To achieve that I've intrdocued new helper -- page_vma_mapped_walk() -- which replaces all page_check_address{,_transhuge}() and covers all THP cases. Patchset overview: - First patch fixes one uprobe b

Re: mm: deadlock between get_online_cpus/pcpu_alloc

2017-01-29 Thread Vlastimil Babka
On 29.1.2017 13:44, Dmitry Vyukov wrote: > Hello, > > I've got the following deadlock report while running syzkaller fuzzer > on f37208bc3c9c2f811460ef264909dfbc7f605a60: > > [ INFO: possible circular locking dependency detected ] > 4.10.0-rc5-next-20170125 #1 Not tainted > --

[PATCHv3 08/12] mm, ksm: convert write_protect_page() to use page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_vma_mapped_walk(), so we could drop the former. Signed-off-by: Kirill A. Shutemov --- mm/ksm.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index

Re: [PATCH v2 03/25] power: supply: axp20x_usb_power: use IIO channels when available

2017-01-29 Thread Sebastian Reichel
Hi, On Fri, Jan 27, 2017 at 09:54:36AM +0100, Quentin Schulz wrote: > The X-Powers AXP20X PMIC exposes the current current and voltage > measures via an internal ADC. > > This adds the possibility to read IIO channels directly for processed > values rather than reading the registers and computing

[PATCHv3 10/12] mm: convert page_mapped_in_vma() to use page_vma_mapped_walk()

2017-01-29 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_vma_mapped_walk(), so we could drop the former. Signed-off-by: Kirill A. Shutemov Acked-by: Hillf Danton --- mm/page_vma_mapped.c | 30 ++ mm/rmap.c| 26 -- 2 fi

Re: [PATCH v9 6/8] drivers:input:ads7846(+tsc2046): fix spi module table

2017-01-29 Thread Dmitry Torokhov
On Sun, Jan 29, 2017 at 09:39:39AM +0100, H. Nikolaus Schaller wrote: > Hi Dmitry, > > > Am 28.01.2017 um 20:35 schrieb Dmitry Torokhov : > > > > On Wed, Dec 28, 2016 at 03:53:21PM +0100, H. Nikolaus Schaller wrote: > >> Fix module table so that the driver is loaded if compiled > >> as module and

[PATCH v13 0/5] mxs-lradc: Split driver into MFD

2017-01-29 Thread Ksenija Stanojevic
Split existing driver mxs-lradc into MFD with touchscreen and IIO part. Tested on I.MX28 Ksenija Stanojevic (5): mfd: mxs-lradc: Add support for mxs-lradc MFD iio: adc: mxs-lradc: Add support for adc driver input: touchscreen: mxs-lradc: Add support for touchscreen iio: adc: mxs-lradc: Re

[PATCH v13 3/5] input: touchscreen: mxs-lradc: Add support for touchscreen

2017-01-29 Thread Ksenija Stanojevic
Add 4-wire/5-wire touchscreen controller. Signed-off-by: Ksenija Stanojevic --- Changes in v13: - use struct state_info instead of using functions for doing conditionals on every operation. - call mxs_lradc_ts_stop() before requesting interrupts. Changes in v12: - none Changes in v11: -

[PATCH v13 5/5] mfd: Move binding document

2017-01-29 Thread Ksenija Stanojevic
The bindings, which are now used in MFD, need also to be documented in the MFD binding document. Signed-off-by: Ksenija Stanojevic Reviewed-by: Marek Vasut Acked-by: Lee Jones --- Changes in v13: - none Changes in v12: - none Changes in v11: - none Changes in v10: - none Changes in v9:

[PATCH v13 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD

2017-01-29 Thread Ksenija Stanojevic
Add core files for low resolution analog-to-digital converter (mxs-lradc) MFD driver. Signed-off-by: Ksenija Stanojevic Acked-by: Lee Jones --- Changes in v13: - none Changes in v12: - use BIT macro Changes in v11: - create static struct mfd_cells - don't set platform data in mfd cells, se

[PATCH v13 4/5] iio: adc: mxs-lradc: Remove driver

2017-01-29 Thread Ksenija Stanojevic
Since the driver has been split into mfd there is no reason for it to stay, so remove it. Signed-off-by: Ksenija Stanojevic Acked-by: Jonathan Cameron Reviewed-by: Marek Vasut --- Changes in v13: - none Changes in v12: - none Changes in v11: - none Changes in v10: - none Changes in v9:

[PATCH v13 2/5] iio: adc: mxs-lradc: Add support for adc driver

2017-01-29 Thread Ksenija Stanojevic
Add support for sixteen-channel 12-bit resolution ADC and its functions, which include general-purpose ADC readings, battery voltage measurement, and die temperature measurement. Signed-off-by: Ksenija Stanojevic Reviewed-by: Jonathan Cameron Reviewed-by: Marek Vasut --- Changes in v13: - none

[PATCH v2] clk: add more managed APIs

2017-01-29 Thread Dmitry Torokhov
When converting a driver to managed resources it is desirable to be able to manage all resources in the same fashion. This change allows managing clocks in the same way we manage many other resources. This adds the following managed APIs: - devm_clk_prepare()/devm_clk_unprepare(); - devm_clk_prep

  1   2   3   >