Re: [PATCH v2 1/3] livepatch: Add force sysfs attribute

2017-08-14 Thread Miroslav Benes
On Fri, 11 Aug 2017, Josh Poimboeuf wrote: > On Thu, Aug 10, 2017 at 12:48:13PM +0200, Miroslav Benes wrote: > > +static ssize_t force_store(struct kobject *kobj, struct kobj_attribute > > *attr, > > + const char *buf, size_t count) > > +{ > > + /* > > +* klp_mutex lock

Re: [PATCH 8/8] gpio: zynq: Fix driver function parameters alignment

2017-08-14 Thread Michal Simek
On 14.8.2017 16:01, Linus Walleij wrote: > On Mon, Aug 7, 2017 at 1:02 PM, Michal Simek wrote: > >> Fix function parameters alignment reported by checkpatch. >> >> Signed-off-by: Michal Simek > > Patch applied. > > Now you just need to rebase and figure out the two patches > I had comments on.

Re: [PATCH] acpi: apei: fix the wrongly parse generic error status block

2017-08-14 Thread Baicar, Tyler
On 8/11/2017 5:41 PM, gengdongjiu wrote: 2017-08-11 21:19 GMT+08:00 Baicar, Tyler : I removed the apei_estatus_for_each_section because it was only being used in this one spot even though several other parts of the code do the same iteration (it is done several times in the CPER code). I made th

Re: [PATCH 2/2] gpio: make regmap_irq_chip const

2017-08-14 Thread Linus Walleij
On Sat, Aug 12, 2017 at 8:09 AM, Bhumika Goyal wrote: > Make the structure const as it is only passed to the function > devm_regmap_add_irq_chip having the corresponding argument as const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Patch applied. Yours, Linus Walleij

[PATCH v2] ARC: HSDK: Add reset controller node to manage ethernet reset

2017-08-14 Thread Eugeniy Paltsev
DW ethernet controller on HSDK hangs sometimes after SW reset, so add reset node to make possible to reset DW ethernet controller HW. Signed-off-by: Eugeniy Paltsev --- Changes v1 -> v2: * Enable HSDK reset driver in hsdk_defconfig arch/arc/boot/dts/hsdk.dts | 9 + arch/arc/confi

Re: [PATCH] drm/gma500: fix potential NULL pointer dereference dereference

2017-08-14 Thread Daniel Vetter
On Fri, Aug 11, 2017 at 08:55:15PM -0500, Gustavo A. R. Silva wrote: > NULL check at line 528: if (!sender || !data_out || !len_out) {, implies > that pointer _sender_ might be NULL. > > Move pointer _sender_ dereference after NULL check in order to avoid a > potential NULL pointer dereference. >

Re: [PATCH] drm: udl: constify usb_device_id

2017-08-14 Thread Daniel Vetter
On Sat, Aug 12, 2017 at 02:05:19PM +0530, Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied, thanks. -

Re: [PATCH v1 3/4] KVM: MMU: Add 5 level EPT & Shadow page table support.

2017-08-14 Thread Paolo Bonzini
On 14/08/2017 13:37, Yu Zhang wrote: > Thanks a lot for your comments, Paolo. :-) > > > On 8/14/2017 3:31 PM, Paolo Bonzini wrote: >> On 12/08/2017 15:35, Yu Zhang wrote: >>> struct rsvd_bits_validate { >>> -u64 rsvd_bits_mask[2][4]; >>> +u64 rsvd_bits_mask[2][5]; >>> u64 bad_mt_x

Re: [alsa-devel] [PATCH v3 3/5] ASoC: codecs: msm8916-wcd-analog: add MBHC support

2017-08-14 Thread Damien Riegel
Hi, On Thu, Aug 10, 2017 at 09:33:29AM -0400, Damien Riegel wrote: > Hi, > > On Thu, Aug 10, 2017 at 11:02:34AM +0100, Srinivas Kandagatla wrote: > > Hi Damien, > > Thanks for testing. > > > > On 09/08/17 22:10, Damien Riegel wrote: > > > Hi Srinivas, > > > > > > On Wed, Aug 09, 2017 at 06:49:

Re: [PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level

2017-08-14 Thread Michal Simek
On 14.8.2017 15:55, Linus Walleij wrote: > On Mon, Aug 7, 2017 at 1:01 PM, Michal Simek wrote: > >> From: Nava kishore Manne >> >> In general situation on-SoC GPIO controller drivers should be probed >> after pinctrl/pinmux controller driver, because on-SoC GPIOs utilize a >> pin/pad as a resour

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Julia Lawall
On Mon, 14 Aug 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 >

Re: [[PATCH v1] 02/37] [CIFS] SMBD: Add structure for SMBD transport

2017-08-14 Thread Stefan Metzmacher
Hi Long, >> It seems that the new transport is tied to it's caller regarding structures >> and >> naming conventions. >> >> I think it would be better to strictly separate them, as I'd like to use the >> SMBDirect transport also from the userspace for the client side e.g. in >> Samba's '[lib]smbc

[PATCH v2] platform/x86: ideapad-laptop: Expose conservation mode switch

2017-08-14 Thread Hao Wei Tee
This exposes the battery conservation mode present on some (?) IdeaPads. The mode is set by calling ACPI method SBMC with argument 3 (on) or 5 (off). Status is reported in bit 5 of the return value of ACPI method GBMD. Signed-off-by: Hao Wei Tee --- drivers/platform/x86/ideapad-laptop.c | 70 +++

Re: nvmet_fc: add defer_req callback for deferment of cmd buffer return

2017-08-14 Thread Dave Jones
On Fri, Aug 11, 2017 at 07:44:19PM +, Linux Kernel wrote: > Web: > https://git.kernel.org/torvalds/c/0fb228d30b8d72bfee51f57e638d412324d44a11 > Commit: 0fb228d30b8d72bfee51f57e638d412324d44a11 > Parent: 758f3735580c21b8a36d644128af6608120a1dde > Refname:refs/heads/maste

Re: Race between release_tty() and vt_disallocate()

2017-08-14 Thread Arnd Bergmann
On Monday, August 14, 2017 1:39:47 PM CEST Alan Cox wrote: > > the tty closes and that leads to tty->count dropping to zero > > before we call tty_buffer_cancel_work() on the tty_port that > > has now been freed. > > > > Apparently the locking and/or reference counting between the > > two code p

Re: [PATCH v2 2/3] livepatch: send a fake signal to all blocking tasks

2017-08-14 Thread Miroslav Benes
On Fri, 11 Aug 2017, Josh Poimboeuf wrote: > On Thu, Aug 10, 2017 at 12:48:14PM +0200, Miroslav Benes wrote: > > Last, sending the fake signal is not automatic. It is done only when > > admin requests it by writing 1 to force sysfs attribute in livepatch > > sysfs directory. > > 'writing 1' -> 'w

Re: [PATCHv4 01/14] mm/sparsemem: Allocate mem_section at runtime for SPARSEMEM_EXTREME

2017-08-14 Thread Kirill A. Shutemov
On Tue, Aug 08, 2017 at 12:54:02PM +, 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 > we need to make allocation of mem_section dynamic. > > The patch allocates the arr

Re: [PATCHv4 00/14] Boot-time switching between 4- and 5-level paging

2017-08-14 Thread Kirill A. Shutemov
On Tue, Aug 08, 2017 at 03:54:01PM +0300, Kirill A. Shutemov wrote: > The basic idea is to implement the same logic as pgtable-nop4d.h provides, > but at runtime. > > Runtime folding is only implemented for CONFIG_X86_5LEVEL=y case. With the > option disabled, we do compile-time folding as before.

Re: [PATCH 2/8] gpio: zynq: Wakeup gpio controller when it is used as IRQ controller

2017-08-14 Thread Michal Simek
On 14.8.2017 15:53, Linus Walleij wrote: > On Mon, Aug 7, 2017 at 1:01 PM, Michal Simek wrote: > >> From: Borsodi Petr >> >> There is a problem with GPIO driver when used as IRQ controller. >> It is not working because the module is sleeping (clock is disabled). >> The patch enables clocks when

Re: [PATCH 1/3] dt: xilinx: zynqmp: Add bindings for PM firmware

2017-08-14 Thread Michal Simek
On 14.8.2017 16:03, Rob Herring wrote: > On Mon, Aug 14, 2017 at 8:47 AM, Michal Simek wrote: >> On 11.8.2017 15:54, Edgar E. Iglesias wrote: >>> On Fri, Aug 11, 2017 at 02:58:03PM +0200, Michal Simek wrote: Hi Rob, +Edgar, On 10.8.2017 21:10, Rob Herring wrote: > On Fri, Aug 04

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-14 Thread Jens Axboe
On 08/14/2017 02:50 AM, Minchan Kim wrote: > Hi Jens, > > On Fri, Aug 11, 2017 at 08:26:59AM -0600, Jens Axboe wrote: >> On 08/11/2017 04:46 AM, Christoph Hellwig wrote: >>> On Wed, Aug 09, 2017 at 08:06:24PM -0700, Dan Williams wrote: I like it, but do you think we should switch to sbvec[] t

Re: [PATCH 1/2] kmemleak: Delete an error message for a failed memory allocation in two functions

2017-08-14 Thread Catalin Marinas
On Mon, Aug 14, 2017 at 04:02:21PM +0300, Dan Carpenter wrote: > On Mon, Aug 14, 2017 at 12:14:32PM +0100, Catalin Marinas wrote: > > On Mon, Aug 14, 2017 at 11:35:02AM +0200, SF Markus Elfring wrote: > > > From: Markus Elfring > > > Date: Mon, 14 Aug 2017 10:50:22 +0200 > > > > > > Omit an extra

Re: [linux-sunxi] Re: [PATCH v4 1/3] clk: sunxi-ng: div: Add support for fixed post-divider

2017-08-14 Thread Chen-Yu Tsai
On Sun, Aug 13, 2017 at 10:50 AM, wrote: > 在 2017-08-12 20:43,Icenowy Zheng 写道: >> >> From: Priit Laes >> >> SATA clock on sun4i/sun7i is of type (parent) / M / 6 where >> 6 is fixed post-divider. >> >> Signed-off-by: Priit Laes > > > Signed-off-by: Icenowy Zheng Applied, thanks. ChenYu

Re: Fwd: struct pt_regs missing in /usr/include/ tree for eBPF program compile

2017-08-14 Thread Arnd Bergmann
On Mon, Aug 14, 2017 at 2:08 PM, Heiko Carstens wrote: > > I really don't think that struct pt_regs is part of uapi and should be > exported. We did change the layout of the pt_regs structure more than once > and would like to be able to do so in the future as well. On some architectures, pt_regs

Re: [PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
2017-08-14 15:06 GMT+02:00 Thomas Gleixner : > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: > >> Implement a simple, irq_work-based framework for simulating >> interrupts. Currently the API exposes routines for initializing and >> deinitializing the simulator object, enqueueing the interrupts an

[PATCH v2 resend] pty: show associative slave of ptmx in fdinfo

2017-08-14 Thread Masatake YAMATO
This patch adds "tty-index" field to /proc/PID/fdinfo/N if N specifies /dev/ptmx. The field shows the index of associative slave pts. Though a minor number is given for each pts instance, ptmx is not. It means there is no way in user-space to know the association between file descriptors for pts/n

Re: [PATCH] watchdog: constify watchdog_ops and watchdog_info structures

2017-08-14 Thread Guenter Roeck
On Thu, Aug 03, 2017 at 11:21:31PM +0200, Julia Lawall wrote: > These watchdog_ops and watchdog_info structures are only stored > in the ops and info fields of a watchdog_device structure, > respectively, which are const. Thus make the watchdog_ops and > watchdog_info structures const as well. >

Re: New assembler warnings with binutils 2.29

2017-08-14 Thread Ramana Radhakrishnan
On Mon, Aug 14, 2017 at 11:34:45AM +0100, Catalin Marinas wrote: > > > > Any attempts to realias these to the correct meaning as per the AAPCS > > continues to work from my limited testing of a prototype patch so far. > > This would be great. Thanks Ramana! I've submitted the patch upstream and

Re: [PATCH 1/2] kmemleak: Delete an error message for a failed memory allocation in two functions

2017-08-14 Thread Dan Carpenter
On Mon, Aug 14, 2017 at 03:38:04PM +0100, Catalin Marinas wrote: > On Mon, Aug 14, 2017 at 04:02:21PM +0300, Dan Carpenter wrote: > > On Mon, Aug 14, 2017 at 12:14:32PM +0100, Catalin Marinas wrote: > > > On Mon, Aug 14, 2017 at 11:35:02AM +0200, SF Markus Elfring wrote: > > > > From: Markus Elfrin

Re: [linux-sunxi] [PATCH v4 2/3] clk: sunxi-ng: nkm: add support for fixed post-divider

2017-08-14 Thread Chen-Yu Tsai
On Sat, Aug 12, 2017 at 8:43 PM, Icenowy Zheng wrote: > SATA PLL on Allwinner R40 is of type (parent) * N * K / M / 6 where 6 is > the fixed post-divider. > > Add post-divider support for NKM type clock. > > Signed-off-by: Icenowy Zheng > --- > drivers/clk/sunxi-ng/ccu_nkm.c | 22 +++

Re: [PATCH 1/2] watchdog: cadence_wdt: Enable access to module parameters

2017-08-14 Thread Guenter Roeck
On Fri, Aug 04, 2017 at 09:39:16AM +0200, Michal Simek wrote: > Give read access to module parameters to all and write access to root. > This change also improves driver error path testing. > > Signed-off-by: Michal Simek Reviewed-by: Guenter Roeck > --- > > Please let me know what you think

Re: [PATCH 2/2] watchdog: cadence_wdt: Show information when driver is probed

2017-08-14 Thread Guenter Roeck
On Fri, Aug 04, 2017 at 09:39:17AM +0200, Michal Simek wrote: > Showing message that driver is loaded is common across drivers. > This change also fixes checkpatch (--strict) warning > "Alignment should match open parenthesis". > > Signed-off-by: Michal Simek Reviewed-by: Guenter Roeck > --- >

Re: [PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Thomas Gleixner
On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: > 2017-08-14 15:06 GMT+02:00 Thomas Gleixner : > > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: > > > >> Implement a simple, irq_work-based framework for simulating > >> interrupts. Currently the API exposes routines for initializing and > >> deini

Re: [PATCH] watchdog: pcwd_usb: constify usb_device_id

2017-08-14 Thread Guenter Roeck
On Sat, Aug 12, 2017 at 02:09:45PM +0530, Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Reviewed-by: Guent

Re: [PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
2017-08-14 16:48 GMT+02:00 Thomas Gleixner : > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: >> 2017-08-14 15:06 GMT+02:00 Thomas Gleixner : >> > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: >> > >> >> Implement a simple, irq_work-based framework for simulating >> >> interrupts. Currently the

Re: [PATCH 1/2] watchdog: cadence_wdt: Enable access to module parameters

2017-08-14 Thread Michal Simek
On 14.8.2017 16:47, Guenter Roeck wrote: > On Fri, Aug 04, 2017 at 09:39:16AM +0200, Michal Simek wrote: >> Give read access to module parameters to all and write access to root. >> This change also improves driver error path testing. >> >> Signed-off-by: Michal Simek > > Reviewed-by: Guenter Roe

Re: [PATCH] watchdog: max77620_wdt: constify platform_device_id

2017-08-14 Thread Guenter Roeck
On Sun, Aug 13, 2017 at 04:58:28PM +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav R

Re: [PATCH v2 1/1] livepatch: add (un)patch callbacks

2017-08-14 Thread Joe Lawrence
On 08/11/2017 04:44 PM, Josh Poimboeuf wrote: > On Tue, Aug 08, 2017 at 03:36:07PM -0400, Joe Lawrence wrote: >> +++ b/Documentation/livepatch/callbacks.txt >> @@ -0,0 +1,75 @@ >> +(Un)patching Callbacks >> +== >> + >> +Livepatch (un)patch-callbacks provide a mechanism for livep

[PATCH v4 3/3] gpio: mockup: use irq_sim

2017-08-14 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski Acked-by: Jonathan Cameron Reviewed-by: Linus Walleij --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mockup.c | 77 +---

[PATCH v4 0/3] simulated interrupts

2017-08-14 Thread Bartosz Golaszewski
Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated interrupts that can be 'fired' from process context when needed and requested just like normal interrupts. This is useful for testing and development purposes. Currently this code is reimplemented by every user. This series pr

[PATCH v4 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-08-14 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski Acked-by: Jonathan Cameron --- Documentation/driver-model/devres.txt | 1 + include/linux/irq_sim.h | 4 kernel/irq/irq_sim.c

[PATCH v4 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
Implement a simple, irq_work-based framework for simulating interrupts. Currently the API exposes routines for initializing and deinitializing the simulator object, enqueueing the interrupts and retrieving the allocated interrupt numbers based on the offset of the dummy interrupt in the simulator s

[PATCH v9 2/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-08-14 Thread Baoquan He
Currently KASLR will parse all e820 entries of RAM type and add all candidate position into slots array. Then we will choose one slot randomly as the new position which kernel will be decompressed into and run at. On system with EFI enabled, e820 memory regions are coming from EFI memory regions b

[PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-14 Thread Baoquan He
The existing map iteration helper for_each_efi_memory_desc_in_map can only be used after OS initializes EFI to fill data of struct efi_memory_map. Before that we also need iterate map descriptors which are stored in several intermediate structures, like struct efi_boot_memmap for arch independent u

[PATCH v9 0/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-08-14 Thread Baoquan He
Patch 1/2 is added to add efi_early_memdesc_ptr helper to wrap the open code which gets the start of efi memmap descriptor and also explain why it need be done like that, Ingo suggested it. And also replace several places of the open code with efi_early_memdesc_ptr helper. And also use efi_early_

Re: [PATCH v1 3/4] KVM: MMU: Add 5 level EPT & Shadow page table support.

2017-08-14 Thread Yu Zhang
On 8/14/2017 10:13 PM, Paolo Bonzini wrote: On 14/08/2017 13:37, Yu Zhang wrote: Thanks a lot for your comments, Paolo. :-) On 8/14/2017 3:31 PM, Paolo Bonzini wrote: On 12/08/2017 15:35, Yu Zhang wrote: struct rsvd_bits_validate { -u64 rsvd_bits_mask[2][4]; +u64 rsvd_bits_mask[

Re: [GIT PULL] pinctrl: samsung: Changes for v4.14

2017-08-14 Thread Linus Walleij
On Fri, Aug 11, 2017 at 7:50 AM, Krzysztof Kozlowski wrote: > The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: > > Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) Pulled into my devel branch for v4.14. Yours, Linus Walleij

[tip:core/debugobjects] debugobjects: Make kmemleak ignore debug objects

2017-08-14 Thread tip-bot for Waiman Long
Commit-ID: caba4cbbd27d755572730801ac34fe063fc40a32 Gitweb: http://git.kernel.org/tip/caba4cbbd27d755572730801ac34fe063fc40a32 Author: Waiman Long AuthorDate: Mon, 14 Aug 2017 09:52:13 -0400 Committer: Thomas Gleixner CommitDate: Mon, 14 Aug 2017 16:51:01 +0200 debugobjects: Make kmeml

Re: [PATCH v2 4/4] hwmon: (pmbus): Add debugfs for status registers

2017-08-14 Thread Eddie James
On 08/11/2017 08:52 AM, Guenter Roeck wrote: On 08/10/2017 02:57 PM, Eddie James wrote: From: "Edward A. James" Export all the available status registers through debugfs, if the client driver wants them. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/pmbus.h | 6 ++ drive

Re: [PATCH] staging: lustre: lnet: fix incorrect arguments order calling lstcon_session_new

2017-08-14 Thread James Simmons
> From: Colin Ian King > > The arguments args->lstio_ses_force and args->lstio_ses_timeout are > in the incorrect order. Fix this by swapping them around. > > Detected by CoverityScan, CID#1226833 ("Arguments in wrong order") This patch is being tracked under https://jira.hpdd.intel.com/bro

[PATCH v3] hwmon: (pmbus): Add debugfs for status registers

2017-08-14 Thread Eddie James
From: "Edward A. James" Export all the available status registers through debugfs. This is useful for hardware diagnostics, especially on multi-page pmbus devices, as user-space access of the i2c space could corrupt the pmbus page accounting. Signed-off-by: Edward A. James Changes since v2: *

Re: [RESEND PATCH v5] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-08-14 Thread Waiman Long
On 08/14/2017 08:01 AM, Will Deacon wrote: > On Fri, Aug 11, 2017 at 11:06:01AM +0200, Peter Zijlstra wrote: >> On Thu, Aug 10, 2017 at 02:18:30PM -0400, Waiman Long wrote: >>> On 08/10/2017 12:22 PM, Waiman Long wrote: On 08/10/2017 12:15 PM, Peter Zijlstra wrote: > Might as well do an ex

Re: [PATCH v1 3/4] KVM: MMU: Add 5 level EPT & Shadow page table support.

2017-08-14 Thread Paolo Bonzini
On 14/08/2017 16:32, Yu Zhang wrote: > > > On 8/14/2017 10:13 PM, Paolo Bonzini wrote: >> On 14/08/2017 13:37, Yu Zhang wrote: >>> Thanks a lot for your comments, Paolo. :-) >>> >>> >>> On 8/14/2017 3:31 PM, Paolo Bonzini wrote: On 12/08/2017 15:35, Yu Zhang wrote: >struct rsvd_bits_

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-14 Thread Minchan Kim
On Mon, Aug 14, 2017 at 08:36:00AM -0600, Jens Axboe wrote: > On 08/14/2017 02:50 AM, Minchan Kim wrote: > > Hi Jens, > > > > On Fri, Aug 11, 2017 at 08:26:59AM -0600, Jens Axboe wrote: > >> On 08/11/2017 04:46 AM, Christoph Hellwig wrote: > >>> On Wed, Aug 09, 2017 at 08:06:24PM -0700, Dan Willia

Re: [PATCH 3/3] soc: xilinx: zynqmp: Add firmware interface

2017-08-14 Thread Arnd Bergmann
On Fri, Aug 4, 2017 at 3:45 PM, Michal Simek wrote: > +static noinline int do_fw_call_smc(u64 arg0, u64 arg1, u64 arg2, > + u32 *ret_payload) > +{ > + struct arm_smccc_res res; > + > + arm_smccc_smc(arg0, arg1, arg2, 0, 0, 0, 0, 0, &res); > + > +

Re: [PATCH v2 16/18] hwmon: add support for sensors exported via ARM SCMI

2017-08-14 Thread Sudeep Holla
Hi Guenter, On 07/08/17 13:25, Sudeep Holla wrote: > > > On 04/08/17 20:32, Guenter Roeck wrote: >> On Fri, Aug 04, 2017 at 03:31:42PM +0100, Sudeep Holla wrote: > > [...] > >>> + platform_set_drvdata(pdev, scmi_sensors); >>> + >>> + hwdev = devm_hwmon_device_register_with_groups(dev, "scm

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-14 Thread Jens Axboe
On 08/14/2017 09:06 AM, Minchan Kim wrote: > On Mon, Aug 14, 2017 at 08:36:00AM -0600, Jens Axboe wrote: >> On 08/14/2017 02:50 AM, Minchan Kim wrote: >>> Hi Jens, >>> >>> On Fri, Aug 11, 2017 at 08:26:59AM -0600, Jens Axboe wrote: On 08/11/2017 04:46 AM, Christoph Hellwig wrote: > On Wed,

Re: [PATCH v6 0/2] Add basic support for Mediatek MT2712 SoC

2017-08-14 Thread Matthias Brugger
On 08/04/2017 01:59 PM, YT Shen wrote: MT2712 is a SoC based on 64bit ARMv8 architecture. MT2712 share many HW IP with MT8173. This patchset was tested on MT2712 evaluation board, and boot to shell ok. This series contains document bindings, device tree including interrupt and uart. push

Re: [iscsi] Deadlock occurred when network is in error

2017-08-14 Thread Bart Van Assche
On Mon, 2017-08-14 at 11:23 +, Tangchen (UVP) wrote: > Problem 2: > > *** > [What it looks like] > *** > When remove a scsi device, and the network error happens, __blk_drain_queue() > could hang forever. > > # cat /proc/19160/stack > [] msleep+0x1d/0x30 > [] __blk_d

Re: [PATCH v1 3/4] KVM: MMU: Add 5 level EPT & Shadow page table support.

2017-08-14 Thread Yu Zhang
On 8/14/2017 11:02 PM, Paolo Bonzini wrote: On 14/08/2017 16:32, Yu Zhang wrote: On 8/14/2017 10:13 PM, Paolo Bonzini wrote: On 14/08/2017 13:37, Yu Zhang wrote: Thanks a lot for your comments, Paolo. :-) On 8/14/2017 3:31 PM, Paolo Bonzini wrote: On 12/08/2017 15:35, Yu Zhang wrote:

Re: [PATCH v4 1/2] arm: dts: mt7623: Add SD-card and EMMC to bananapi-r2

2017-08-14 Thread Matthias Brugger
On 08/04/2017 02:19 PM, Matthias Brugger wrote: On 08/04/2017 12:14 PM, Sean Wang wrote: On Fri, 2017-08-04 at 11:59 +0800, sean.w...@mediatek.com wrote: From: Sean Wang The bananapi-r2 board has an SD-card controller and built-in EMMC storage so enables those devices in the devicetree. A

Re: [PATCH v4 1/8] spi: rockchip: add compatible string for rv1108 spi

2017-08-14 Thread Mark Brown
On Mon, Aug 14, 2017 at 04:34:22PM +0800, Andy Yan wrote: > Changes in v4: None > Changes in v3: None > Changes in v2: None That's hopefully not true, v1 didn't build due to a syntax error... signature.asc Description: PGP signature

[PATCH v5 01/19] crypto: change transient busy return code to -EAGAIN

2017-08-14 Thread Gilad Ben-Yossef
The crypto API was using the -EBUSY return value to indicate both a hard failure to submit a crypto operation into a transformation provider when the latter was busy and the backlog mechanism was not enabled as well as a notification that the operation was queued into the backlog when the backlog m

[PATCH v5 00/19] simplify crypto wait for async op

2017-08-14 Thread Gilad Ben-Yossef
Many users of kernel async. crypto services have a pattern of starting an async. crypto op and than using a completion to wait for it to end. This patch set simplifies this common use case in two ways: First, by separating the return codes of the case where a request is queued to a backlog due to

[PATCH v5 02/19] crypto: ccp: use -EAGAIN for transient busy indication

2017-08-14 Thread Gilad Ben-Yossef
Replace -EBUSY with -EAGAIN when reporting transient busy indication in the absence of backlog. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccp/ccp-crypto-main.c | 8 +++- drivers/crypto/ccp/ccp-dev.c | 7 +-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/

[PATCH v5 03/19] crypto: remove redundant backlog checks on EBUSY

2017-08-14 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef --- crypto/ahash.c| 12 +++- crypto/cts.c | 6 ++ crypto/lrw.c

[PATCH v5 04/19] crypto: marvell/cesa: remove redundant backlog checks on EBUSY

2017-08-14 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/marvell/cesa.c | 3 +-- drivers/crypto/marvell/cesa.h | 2 +- 2 files chang

[PATCH v5 05/19] crypto: introduce crypto wait for async op

2017-08-14 Thread Gilad Ben-Yossef
Invoking a possibly async. crypto op and waiting for completion while correctly handling backlog processing is a common task in the crypto API implementation and outside users of it. This patch adds a generic implementation for doing so in preparation for using it across the board instead of hand

Re: [PATCH 5/5] kernel: tracepoints: add support for relative references

2017-08-14 Thread Steven Rostedt
On Mon, 14 Aug 2017 11:52:31 +0100 Ard Biesheuvel wrote: > To avoid the need for relocating absolute references to tracepoint > structures at boot time when running relocatable kernels (which may > take a disproportionate amount of space), add the option to emit > these tables as relative referen

[PATCH v5 07/19] crypto: move pub key to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
public_key_verify_signature() is starting an async crypto op and waiting for it to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/asymmetric_keys/public_key.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) d

[PATCH v5 08/19] crypto: move drbg to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
DRBG is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. The code now also passes CRYPTO_TFM_REQ_MAY_SLEEP flag indicating crypto request memory allocation may use GFP_KERNEL which should be perfectly fine as the code is obviously sleeping for

[PATCH v5 09/19] crypto: move gcm to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
gcm is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/gcm.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/crypto/gcm.c b/crypto/gcm.c index 3

[PATCH v5 10/19] crypto: move testmgr to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
testmgr is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also provides a test of the generic crypto async. wait code. Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 204 ++---

[PATCH v5 11/19] fscrypt: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
fscrypt starts several async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- fs/crypto/crypto.c | 28 fs/crypto/fname.c | 36 ++-- fs/cry

[PATCH v5 12/19] dm: move dm-verity to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
dm-verity is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also fixes a possible data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait prior to the

[PATCH v5 13/19] cifs: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
cifs starts an async. crypto op and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Pavel Shilovsky --- fs/cifs/smb2ops.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/fs/cif

[PATCH v5 15/19] crypto: tcrypt: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
tcrypt starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/tcrypt.c | 84 + 1 file changed, 25 insertions(+), 59 deletions(-) diff --git

[PATCH v5 14/19] ima: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
ima starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Mimi Zohar --- security/integrity/ima/ima_crypto.c | 56 +++-- 1 file changed, 17 insertions(+), 39 deleti

Re: [PATCH] staging: lustre: mgc: fix potential use after free in error path

2017-08-14 Thread James Simmons
On Mon, 7 Aug 2017, Cihangir Akturk wrote: > The config_log_add() function first calls config_log_put() with the > variable 'cld' and then jumps to label 'out_cld', which will call > the same function with the same 'cld' variable. However, at this > point, 'cld' might have been already freed by

[PATCH v5 16/19] crypto: talitos: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
The talitos driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/talitos.c | 38 +- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git

[PATCH v5 17/19] crypto: qce: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
The qce driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/qce/sha.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/drivers/c

[PATCH v5 18/19] crypto: mediatek: move to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
The mediatek driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/mediatek/mtk-aes.c | 31 +-- 1 file changed, 5 insertions(+), 26 deletions(-) diff --g

[PATCH v5 19/19] crypto: adapt api sample to use async. op wait

2017-08-14 Thread Gilad Ben-Yossef
The code sample is waiting for an async. crypto op completion. Adapt sample to use the new generic infrastructure to do the same. This also fixes a possible data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait pr

[PATCH v3 2/3] hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver

2017-08-14 Thread Eddie James
From: "Edward A. James" Add the driver to monitor IBM CFF power supplies with hwmon over pmbus. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/Kconfig | 10 +++ drivers/hwmon/pmbus/Makefile| 1 + drivers/hwmon/pmbus/ibm-cffps.c | 151

[PATCH v3 0/3] hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver

2017-08-14 Thread Eddie James
From: "Edward A. James" This series adds a hwmon pmbus driver for a POWER System power supply. The core monitoring functionality is provided by pmbus. Changes since v2: * Renamed the driver again... * Remove debugfs bool from pmbus_driver_info. * Add comment for returning rc when reading STAT

[PATCH v3 3/3] Documentation: hwmon: Document the IBM CFF power supply

2017-08-14 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- Documentation/hwmon/ibm-cffps | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/hwmon/ibm-cffps diff --git a/Documentation/hwmon/ibm-cffps b/Documentation/hwmon/ibm-cff

[PATCH v3 1/3] dt-bindings: i2c: Document the IBM CCF power supply version 1

2017-08-14 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,cffps1.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,cffps1.txt diff --git a/Documentation/devicetree/bindings/i2

Re: [PATCH 2/2] pinctrl: qcom: General Purpose clocks for apq8064

2017-08-14 Thread Bjorn Andersson
On Thu 10 Aug 23:55 PDT 2017, Vinay Simha BN wrote: > Add support for general purpose (GP) clocks > for apq8064 > > Signed-off-by: Vinay Simha BN > > --- > v1: > * only gp_clk_1b tested in nexus7 anx7808 slimport. > --- > drivers/pinctrl/qcom/pinctrl-apq8064.c | 37 > +

Re: [PATCH 2/3] arm64: dts: mt2712: add pintcrl device node.

2017-08-14 Thread Matthias Brugger
On 07/31/2017 10:22 AM, Zhiyong Tao wrote: The commit includes two change: 1)add pintcrl device node for mt2712. 2)add pinfunc file for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1014 + Shouldn't this file be in include/d

Re: [PATCH 5/5] kernel: tracepoints: add support for relative references

2017-08-14 Thread Ard Biesheuvel
On 14 August 2017 at 16:23, Steven Rostedt wrote: > On Mon, 14 Aug 2017 11:52:31 +0100 > Ard Biesheuvel wrote: > >> To avoid the need for relocating absolute references to tracepoint >> structures at boot time when running relocatable kernels (which may >> take a disproportionate amount of space)

Re: [PATCH v2 4/4] mmc: sdhci-cadence: add suspend / resume support

2017-08-14 Thread Masahiro Yamada
Hi Adrian, 2017-08-14 19:53 GMT+09:00 Adrian Hunter : >> @@ -353,6 +390,28 @@ static int sdhci_cdns_probe(struct platform_device >> *pdev) >> return ret; >> } >> >> +static int __maybe_unused sdhci_cdns_resume(struct device *dev) > > We don't use __maybe_unused in this case, we use #ifde

Re: [PATCH v3 0/4] add support of SCPSYS power domain for MediaTek MT7622

2017-08-14 Thread Matthias Brugger
On 08/08/2017 01:41 PM, Ulf Hansson wrote: On 7 August 2017 at 09:24, wrote: From: Sean Wang Changes since v2: - reduce code duplication of scpsys_probe across all SoCs Changes since v1: - rebase to Linux v4.13-rc1 There are four power domains on MediaTek MT7622 SoC which are respectivel

[PATCH v5 06/19] crypto: move algif to generic async completion

2017-08-14 Thread Gilad Ben-Yossef
algif starts several async crypto ops and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/af_alg.c | 27 --- crypto/algif_aead.c | 8 crypto/algif_hash.c | 30 ++-

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-14 Thread Minchan Kim
On Mon, Aug 14, 2017 at 09:14:03AM -0600, Jens Axboe wrote: > On 08/14/2017 09:06 AM, Minchan Kim wrote: > > On Mon, Aug 14, 2017 at 08:36:00AM -0600, Jens Axboe wrote: > >> On 08/14/2017 02:50 AM, Minchan Kim wrote: > >>> Hi Jens, > >>> > >>> On Fri, Aug 11, 2017 at 08:26:59AM -0600, Jens Axboe wr

Re: [PATCH v2] platform/x86: ideapad-laptop: Expose conservation mode switch

2017-08-14 Thread Andy Shevchenko
On Mon, Aug 14, 2017 at 5:17 PM, Hao Wei Tee wrote: > This exposes the battery conservation mode present on some (?) IdeaPads. > The mode is set by calling ACPI method SBMC with argument 3 (on) or > 5 (off). Status is reported in bit 5 of the return value of ACPI method > GBMD. Thanks for an upda

Re: [PATCH 14/14] arm64: add VMAP_STACK overflow detection

2017-08-14 Thread Will Deacon
Just some minor comments on this (after taking ages to realise you were using tpidr_el0 as a temporary rather than tpidr_el1 and getting totally confused!). On Mon, Aug 07, 2017 at 07:36:05PM +0100, Mark Rutland wrote: > This patch adds stack overflow detection to arm64, usable when vmap'd stacks

Re: [PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-08-14 Thread Guenter Roeck
On Thu, Jul 27, 2017 at 08:50:43PM +0800, Huibin Hong wrote: > If top is 15, (1 << (16 + top)) may be negative. > > Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a No Change-Id in upstream patches, please. > Signed-off-by: Huibin Hong I am having trouble applying this patch. What is its b

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-14 Thread Jens Axboe
On 08/14/2017 09:31 AM, Minchan Kim wrote: >> Secondly, generally you don't have slow devices and fast devices >> intermingled when running workloads. That's the rare case. > > Not true. zRam is really popular swap for embedded devices where > one of low cost product has a really poor slow nand co

[PATCH v10 1/5] PCI: Disable PCIe Relaxed Ordering if unsupported

2017-08-14 Thread Ding Tianhong
When bit4 is set in the PCIe Device Control register, it indicates whether the device is permitted to use relaxed ordering. On some platforms using relaxed ordering can have performance issues or due to erratum can cause data-corruption. In such cases devices must avoid using relaxed ordering. The

Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-14 Thread kbuild test robot
Hi Rik, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/riel-redhat-com/mm-fork-security-introduce-MADV_WIPEONFORK/201

<    1   2   3   4   5   6   7   8   9   10   >