Re: [PATCH] acpi: watchdog: properly initialize resources

2017-09-15 Thread Mika Westerberg
On Fri, Sep 15, 2017 at 09:55:18PM +0200, Arnd Bergmann wrote: > We copy a local resource structure into a list, but only > initialize some of its members, as pointed out by gcc-4.4: > > drivers/acpi/acpi_watchdog.c: In function 'acpi_watchdog_init': > drivers/acpi/acpi_watchdog.c:105: error: 'res

[PATCH] Staging: irda: Use !x instead of NULL comparison

2017-09-15 Thread Srishti Sharma
Test for NULL as !x where functions that return NULL on failure are used. Done using the following semantic patch by coccinelle. @ is_null @ expression E; statement S; @@ E = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\| usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\)(...)); ( if(!E) S

[PATCH] perf script: Fix error handling path

2017-09-15 Thread Christophe JAILLET
If the string passed in '--time' is invalid, or if failed to set libtraceevent function resolver, we must do some cleanup before leaving. As in the other error handling paths of this function. Signed-off-by: Christophe JAILLET --- tools/perf/builtin-script.c | 6 -- 1 file changed, 4 inserti

Re: [GIT PULL] Firmware files removal for 4.14-rc1

2017-09-15 Thread Markus Trippelsdorf
On 2017.09.16 at 06:51 +0200, Markus Trippelsdorf wrote: > On 2017.09.15 at 11:56 -0700, Greg KH wrote: > > The following changes since commit 569dbb88e80deb68974ef6fdd6a13edb9d686261: > > > > Linux 4.13 (2017-09-03 13:56:17 -0700) > > > > are available in the git repository at: > > > > git://g

Re: [PATCH v8 10/18] RISC-V: Init and Halt Code

2017-09-15 Thread Dmitriy Cherkasov
On 09/13/2017 11:15 AM, Daniel Lezcano wrote: All this code must go in the timer side and use the TIMER_OF_DECLARE macro with the proper wrappers. Hi, thanks for the feedback. Agreed. I'll clean this up. Where is the request_per_cpu_interrupt()? What is this riscv_timer_interrupt() signat

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

2017-09-15 Thread Harsh Jain
Hi, While debugging DMA mapping error in chelsio crypto driver we observed that when scatter/gather list received by driver has some entry with page->offset > 4096 (PAGE_SIZE). It starts giving DMA error.  Without IOMMU it works fine. Before reaching to chelsio crypto driver(driver/crypto/chels

[PATCH] perf kmem: Perform some cleanup if '--time' is given an invalid value

2017-09-15 Thread Christophe JAILLET
If the string passed in '--time' is invalid, we must do some cleanup before leaving. As in the other error handling paths of this function. Fixes: 2a865bd8 ("perf kmem: Add option to specify time window of interest") Signed-off-by: Christophe JAILLET --- tools/perf/builtin-kmem.c | 3 ++- 1

[PATCH] ASoC: davinci-mcasp: Fix an error handling path in 'davinci_mcasp_probe()'

2017-09-15 Thread Christophe JAILLET
All error handling paths in this function 'goto err' except this one. If one of the 2 previous memory allocations fails, we should go through the existing error handling path. Otherwise there is an unbalanced pm_runtime_enable()/pm_runtime_disable(). Fixes: dd55ff8346a9 ("ASoC: davinci-mcasp: Add

Re: [PATCH] clk: tegra: Use readl_relaxed_poll_timeout_atomic in tegra210_clock_init

2017-09-15 Thread Nicolin Chen
On Fri, Sep 15, 2017 at 12:31:45PM +0300, Peter De Schrijver wrote: > Apart from the typo in the commit message (preemption rather than preemtion): Sent a v2 to correct it. And included your Acked-by. Thanks > > Acked-By: Peter De Schrijver > > On Thu, Sep 14, 2017 at 06:36:14PM -0700, Nicoli

[PATCH 0/2] android: binder: resolve lru, dentry and task deadlock

2017-09-15 Thread Sherry Yang
This patch set removes the unused vma argument in update_page_range and resolves a potential deadlock between lru lock, task lock and dentry lock reported by lockdep. android: binder: Don't get mm from task android: binder: Remove unused vma argument drivers/android/binder_alloc.c | 36 ++

[PATCH 2/2] android: binder: Don't get mm from task

2017-09-15 Thread Sherry Yang
Use binder_alloc struct's mm_struct rather than getting a reference to the mm struct through get_task_mm to avoid a potential deadlock between lru lock, task lock and dentry lock, since a thread can be holding the task lock and the dentry lock while trying to acquire the lru lock. Acked-by: Arve H

[PATCH 1/2] android: binder: Remove unused vma argument

2017-09-15 Thread Sherry Yang
The vma argument in update_page_range is no longer used after 74310e06 ("android: binder: Move buffer out of area shared with user space"), since mmap_handler no longer calls update_page_range with a vma. Acked-by: Arve Hjønnevåg Signed-off-by: Sherry Yang --- drivers/android/binder_alloc.c | 1

Re: [GIT PULL] Firmware files removal for 4.14-rc1

2017-09-15 Thread Markus Trippelsdorf
On 2017.09.15 at 11:56 -0700, Greg KH wrote: > The following changes since commit 569dbb88e80deb68974ef6fdd6a13edb9d686261: > > Linux 4.13 (2017-09-03 13:56:17 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ > tags/fi

Re: [PATCH] Revert "xhci: Limit USB2 port wake support for AMD Promontory hosts"

2017-09-15 Thread Kai-Heng Feng
On Mon, Aug 28, 2017 at 9:56 PM, Kai-Heng Feng wrote: > On Mon, Aug 28, 2017 at 6:14 PM, Mathias Nyman > wrote: >> On 28.08.2017 12:29, Greg KH wrote: >> >> Adding more people who were involved in the original patch. >> >> Users are now seeing the unresponsive USB2 ports with Promontory hosts. >>

Re: [PATCH] firmware: add firmware to new device's devres list for second time cache

2017-09-15 Thread Kai-Heng Feng
On Tue, Aug 22, 2017 at 12:52 AM, Kai-Heng Feng wrote: > Currently, firmware will only be chached if assign_firmware_buf() gets > called. > > When a device loses its power or a USB device gets plugged to another > port under suspend, request_firmware() can still find cached firmware, > but firmwar

Re: [PATCH] usb: dwc3: Fix the USB 3.0 hub detection bug after warm boot

2017-09-15 Thread gustavo panizzo
Hello On Fri, Sep 15, 2017 at 09:01:13AM +, gustavo panizzo wrote: Hello On Thu, Sep 07, 2017 at 01:51:31PM +0300, Felipe Balbi wrote: Hi, gustavo panizzo writes: --- drivers/usb/dwc3/core.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/u

Re: [PATCH] once: switch to new jump label API

2017-09-15 Thread Eric Biggers
On Tue, Aug 22, 2017 at 02:44:41PM -0400, Hannes Frederic Sowa wrote: > Eric Biggers writes: > > > From: Eric Biggers > > > > Switch the DO_ONCE() macro from the deprecated jump label API to the new > > one. The new one is more readable, and for DO_ONCE() it also makes the > > generated code mo

[PATCH 2/5] ia64: Add .opd based function descriptor dereference

2017-09-15 Thread Sergey Senozhatsky
We are moving towards separate kernel and module function descriptor dereference callbacks. This patch enables it for IA64. For pointers that belong to the kernel - Added __start_opd and __end_opd pointers, to track the kernel .opd section address range; - Added dereference_kernel_function_d

[PATCH 5/5] symbol lookup: use new kernel and module dereference functions

2017-09-15 Thread Sergey Senozhatsky
Call appropriate function descriptor dereference ARCH callbacks: - dereference_kernel_function_descriptor() if the pointer is a kernel symbol; - dereference_module_function_descriptor() if the pointer is a module symbol. This patch also removes dereference_function_descriptor() from '%pF/%pf'

[PATCH 3/5] powerpc64: Add .opd based function descriptor dereference

2017-09-15 Thread Sergey Senozhatsky
We are moving towards separate kernel and module function descriptor dereference callbacks. This patch enables it for powerpc64. For pointers that belong to the kernel - Added __start_opd and __end_opd pointers, to track the kernel .opd section address range; - Added dereference_kernel_funct

[PATCH 4/5] parisc64: Add .opd based function descriptor dereference

2017-09-15 Thread Sergey Senozhatsky
We are moving towards separate kernel and module function descriptor dereference callbacks. This patch enables it for parisc64. For pointers that belong to the kernel - Added __start_opd and __end_opd pointers, to track the kernel .opd section address range; - Added dereference_kernel_functi

[PATCH 1/5] sections: split dereference_function_descriptor()

2017-09-15 Thread Sergey Senozhatsky
There are two format specifiers to print out a pointer in symbolic format: '%pS/%ps' and '%pF/%pf'. On most architectures, the two mean exactly the same thing, but some architectures (ia64, ppc64, parisc64) use an indirect pointer for C function pointers, where the function pointer points to a func

[PATCH 0/5] [RFC] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-15 Thread Sergey Senozhatsky
Hello RFC On some arches C function pointers are indirect and point to a function descriptor, which contains the actual pointer to the code. This mostly doesn't matter, except for cases when people want to print out function pointers in symbolic format, because the usual '

Re: [PATCH] mbcache: initialize entry->e_referenced in mb_cache_entry_create()

2017-09-15 Thread Eric Biggers
On Thu, Jul 06, 2017 at 08:27:25PM +0200, Alexander Potapenko wrote: > KMSAN reported use of uninitialized |entry->e_referenced| in a condition > in mb_cache_shrink(): > This still hasn't been fixed yet. I think mbcache patches usually go in through the ext4 tree --- Ted, can you take this patch

[GIT PULL] PCI fixes for v4.14

2017-09-15 Thread Bjorn Helgaas
PCI fix: - revert an attempt to fix a race while enabling upstream bridges because it broke iwlwifi firmware loading The following changes since commit 711aab1dbb324d321e3d84368a435a78908c7bce: vfs: constify path argument to kernel_read_file_from_path (2017-09-14 20:18:45 -0700) are a

[PATCH 2/2] mm/memory_hotplug: define find_{smallest|biggest}_section_pfn as unsigned long

2017-09-15 Thread YASUAKI ISHIMATSU
find_{smallest|biggest}_section_pfn()s find the smallest/biggest section and return the pfn of the section. But the functions are defined as int. So the functions always return 0x - 0x. It means if memory address is over 16TB, the functions does not work correctly. To handle 64 bit

[PATCH 1/2] mm/memory_hotplug: Change pfn_to_section_nr/section_nr_to_pfn macro to inline function

2017-09-15 Thread YASUAKI ISHIMATSU
pfn_to_section_nr() and section_nr_to_pfn() are defined as macro. pfn_to_section_nr() has no issue even if it is defined as macro. But section_nr_to_pfn() has overflow issue if sec is defined as int. section_nr_to_pfn() just shifts sec by PFN_SECTION_SHIFT. If sec is defined as unsigned long, sect

Re: UBSAN: Undefined behaviour in ./arch/x86/include/asm/futex.h:53:13

2017-09-15 Thread Randy Dunlap
On 09/06/17 10:23, Toralf Förster wrote: > I catched the following UBSAN spew at a stable Gentoo Linux server with > hardened tool chain (.config attached) : > > FWIW - The lines before the UBSAN might be completely unrelated - I'm unsure. > They do come from the build bot [1] I do run at that ma

RE: [PATCH 1/3] mm, sysctl: make VM stats configurable

2017-09-15 Thread Wang, Kemi
-Original Message- From: Michal Hocko [mailto:mho...@kernel.org] Sent: Friday, September 15, 2017 7:50 PM To: Wang, Kemi Cc: Luis R . Rodriguez ; Kees Cook ; Andrew Morton ; Jonathan Corbet ; Mel Gorman ; Johannes Weiner ; Christopher Lameter ; Sebastian Andrzej Siewior ; Vlastimil Ba

Re: [PATCH] scsi: aacraid: error: testing array offset 'bus' after use

2017-09-15 Thread Martin K. Petersen
Nikola, > Fix possible indexing array of bound for &aac->hba_map[bus][cid], > where bus and cid boundary check happens later. Applied to 4.14/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] csi: libcxgbi: remove redundant check and close on csk

2017-09-15 Thread Martin K. Petersen
Colin, > csk is always null on the error return path and so the non-null check > and call to cxgbi_sock_closed on csk is redundant and can be removed. Applied to 4.15/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 00/11] Enhance libsas hotplug feature

2017-09-15 Thread Martin K. Petersen
Jason, > Yijing Wang handed over this topic to me. We are working on it the > last two months. We have tested the patchset for a long time. Here is > the new version. Applied patches 1-4 and 11 to 4.15/scsi-queue. I suggest you resubmit the rest to get them back on people's radar. -- Martin K.

Re: [BACKPORT] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-09-15 Thread Greg KH
On Thu, Sep 14, 2017 at 04:23:05PM -0700, Stefano Stabellini wrote: > Hi all, > > We are getting reports from Xen on ARM users about DMA issues. The > problem is that the commit below > (7e91c7df29b5e196de3dc6f086c8937973bd0b88) is necessary to support mmap > on Xen on ARM. It is self-contained an

[PATCH 2/6] mm, x86 : introduce arch_pkeys_enabled()

2017-09-15 Thread Ram Pai
Arch neutral code needs to know if the architecture supports protection keys to display protection key in smaps. Hence introducing arch_pkeys_enabled(). This patch also provides x86 implementation for arch_pkeys_enabled(). Signed-off-by: Ram Pai --- arch/x86/include/asm/pkeys.h |1 + arc

[PATCH 4/6] mm/mprotect, powerpc/mm/pkeys, x86/mm/pkeys: Add sysfs interface

2017-09-15 Thread Ram Pai
From: Thiago Jung Bauermann Expose useful information for programs using memory protection keys. Provide implementation for powerpc and x86. On a powerpc system with pkeys support, here is what is shown: $ head /sys/kernel/mm/protection_keys/* ==> /sys/kernel/mm/protection_keys/disable_access_s

[PATCH 3/6] mm: display pkey in smaps if arch_pkeys_enabled() is true

2017-09-15 Thread Ram Pai
Currently the architecture specific code is expected to display the protection keys in smap for a given vma. This can lead to redundant code and possibly to divergent formats in which the key gets displayed. This patch changes the implementation. It displays the pkey only if the archite

[PATCH 1/6] mm: introduce an additional vma bit for powerpc pkey

2017-09-15 Thread Ram Pai
Currently only 4bits are allocated in the vma flags to hold 16 keys. This is sufficient for x86. PowerPC supports 32 keys, which needs 5bits. This patch allocates an additional bit. Signed-off-by: Ram Pai --- fs/proc/task_mmu.c |6 -- include/linux/mm.h | 16 ++-- 2 fil

[PATCH 6/6] Documentation/vm: PowerPC specific updates to memory protection keys

2017-09-15 Thread Ram Pai
Add documentation updates that capture PowerPC specific changes. Signed-off-by: Thiago Jung Bauermann Signed-off-by: Ram Pai --- Documentation/vm/protection-keys.txt | 125 +++--- 1 files changed, 100 insertions(+), 25 deletions(-) diff --git a/Documentation/vm/pro

[PATCH 0/6] mm, x86, powerpc: Memory Protection Keys enhancement

2017-09-15 Thread Ram Pai
The patch-series enhances memory protection keys feature. The patch(1) introduces an additional vma bit to support 32 pkeys. PowerPC supports 32 pkeys. The patch(2,3) introduces a new interface arch_pkeys_enabled(), this interface can be used by arch-neutral code to display protection k

[PATCH 5/6] Documentation/x86: Move protecton key documentation to arch neutral directory

2017-09-15 Thread Ram Pai
Since PowerPC and Intel both support memory protection keys, moving the documenation to arch-neutral directory. Signed-off-by: Ram Pai --- Documentation/vm/protection-keys.txt | 85 + Documentation/x86/protection-keys.txt | 85

Re: [PATCH v2] HID: asus: Add support for Fn keys on Asus ROG G752

2017-09-15 Thread Jiri Kosina
On Thu, 7 Sep 2017, Maxime Bellengé wrote: > This patch adds support for Fn keys on Asus ROG G752 laptop. > The report descriptor is broken so I fixed it. > > Tested on an Asus G752VT. > Resent fix white space fixes Those whitespace fixes were almost right :) Except for the quirk/blacklist addi

Re: [PATCH] Asoc: rockchip: Init dapm routes dynamically

2017-09-15 Thread Matthias Kaehlcke
El Tue, Sep 05, 2017 at 12:14:01PM +0800 Jeffy Chen ha dit: > Currently we are using a fixed list of dapm routes. > > Init dapm routes dynamically when parsing dailinks, since we are > supporting optional codecs. > > Signed-off-by: Jeffy Chen > --- > > sound/soc/rockchip/rk3399_gru_sound.c |

[PATCH] staging: lustre: lnet: Replace list_for_each with list_for_each_entry

2017-09-15 Thread Haneen Mohammed
Replace use of the combination of list_for_each and list_entry with list_for_each_entry to simplify the code and remove variables that are used only in list_for_each. Issue found and corrected using Coccinelle script: @r@ expression head, member, e; type T1, T2, T3; iterator name list_for_each, li

[PATCH 0/1] acpi: unbreak ACPI_HANDLE(), encapsulate fwnode_operations

2017-09-15 Thread john . hubbard
From: John Hubbard Hi everyone, I really don't know for sure which fix is going to be preferred--the following patch, or just an obvious one-line fix that changes DECLARE_ACPI_FWNODE_OPS() so that it invokes EXPORT_SYMBOL, instead of EXPORT_SYMBOL_GPL. I explained the reasoning in PATCH 1/1, any

[PATCH 1/1] acpi: unbreak ACPI_HANDLE(), encapsulate fwnode_operations

2017-09-15 Thread john . hubbard
From: John Hubbard Due to commit db3e50f3234b ("device property: Get rid of struct fwnode_handle type field"), ACPI_HANDLE() inadvertently became a GPL-only call. The call path that led to that was: ACPI_HANDLE() ACPI_COMPANION() to_acpi_device_node() is_acpi_device_node(

Re: [PATCH 5/7] Support new Alps device that name is T4

2017-09-15 Thread Jiri Kosina
On Tue, 12 Sep 2017, Masaki Ota wrote: > From: Masaki Ota > -Add T4 device code and Product ID > -This device is used on HP EliteBook 1000 series and Zbook Stduio [ ... snip ... ] > Signed-off-by: Masaki Ota > +static int t4_read_write_register(struct hid_device *hdev, u32 address, > + u8 *r

Re: [PATCH] Support new Alps HID Touchpad device

2017-09-15 Thread Jiri Kosina
On Tue, 12 Sep 2017, Masaki Ota wrote: > This is the patch for support new Alps HID Touchpad device. > I submitted these patch before, but it was not completed. > So I separate the patch to some parts and release it again. Hi, I have a few minor comments -- as in the past, I'd like to ask for

Re: [PATCH v2 2/3] livepatch: add atomic replace

2017-09-15 Thread Greg KH
On Fri, Sep 15, 2017 at 05:46:58PM +0200, Petr Mladek wrote: > On Thu 2017-09-14 08:31:24, Jason Baron wrote: > > > > > > On 09/14/2017 06:32 AM, Petr Mladek wrote: > > > On Tue 2017-09-12 23:47:32, Jason Baron wrote: > > >> > > >> > > >> On 09/12/2017 01:35 AM, Petr Mladek wrote: > > >>> On Mon

Re: [PATCH 5/5] usb: usb251xb: Add copyrights

2017-09-15 Thread Serge Semin
On Fri, Sep 15, 2017 at 04:53:13PM -0700, Greg KH wrote: > On Sat, Sep 16, 2017 at 02:45:17AM +0300, Serge Semin wrote: > > On Fri, Sep 15, 2017 at 04:40:28PM -0700, Greg KH > > wrote: > > > On Sat, Sep 16, 2017 at 02:31:13AM +0300, Serge Semin wrote: > > > > Signed-off-by: Serge Semin > > > >

Re: [PATCH 1/5] usb: usb251xb: Add USB2517/i hub support

2017-09-15 Thread Serge Semin
On Fri, Sep 15, 2017 at 04:45:14PM -0700, Greg KH wrote: > On Sat, Sep 16, 2017 at 02:31:09AM +0300, Serge Semin wrote: > > USB2517i hubs are very like USB251xb devices series. They have almost > > the same configuration registers space except number of ports, led > > configurations and lack of b

Re: [PATCH 5/5] usb: usb251xb: Add copyrights

2017-09-15 Thread Greg KH
On Sat, Sep 16, 2017 at 02:45:17AM +0300, Serge Semin wrote: > On Fri, Sep 15, 2017 at 04:40:28PM -0700, Greg KH > wrote: > > On Sat, Sep 16, 2017 at 02:31:13AM +0300, Serge Semin wrote: > > > Signed-off-by: Serge Semin > > > --- > > > drivers/usb/misc/usb251xb.c | 1 + > > > 1 file changed, 1

Re: [PATCH V5 0/4] Add Broadcom STB USB phy driver

2017-09-15 Thread Florian Fainelli
On September 4, 2017 11:11:47 PM PDT, Kishon Vijay Abraham I wrote: >Florian, > >On Saturday 02 September 2017 07:46 AM, Florian Fainelli wrote: >> >> >> On 08/25/2017 10:51 AM, Al Cooper wrote: >>> Add a new USB Phy driver for Broadcom STB SoCs. This driver >>> supports Broadcom STB ARM SoCs.

[git pull] drm amd fixes for 4.14-rc1

2017-09-15 Thread Dave Airlie
Hi Linus, Just had a single AMD fixes pull for Alex for rc1. Dave. The following changes since commit 7846b12fe0b5feab5446d892f41b5140c1419109: Merge branch 'drm-vmwgfx-next' of git://people.freedesktop.org/~syeh/repos_linux into drm-next (2017-08-29 10:38:14 +1000) are available in the git

Re: [PATCH 1/5] usb: usb251xb: Add USB2517/i hub support

2017-09-15 Thread Greg KH
On Sat, Sep 16, 2017 at 02:31:09AM +0300, Serge Semin wrote: > USB2517i hubs are very like USB251xb devices series. They have almost > the same configuration registers space except number of ports, led > configurations and lack of battery settings. All these peculiarities > are reflected in this pa

Re: [PATCH 5/5] usb: usb251xb: Add copyrights

2017-09-15 Thread Serge Semin
On Fri, Sep 15, 2017 at 04:40:28PM -0700, Greg KH wrote: > On Sat, Sep 16, 2017 at 02:31:13AM +0300, Serge Semin wrote: > > Signed-off-by: Serge Semin > > --- > > drivers/usb/misc/usb251xb.c | 1 + > > 1 file changed, 1 insertions(+), 0 deletion(-) > > I can't take patches without any changelo

Re: [PATCH] vfs: introduce UMOUNT_WAIT which waits for umount completion

2017-09-15 Thread Al Viro
On Fri, Sep 15, 2017 at 04:29:11PM -0700, Jaegeuk Kim wrote: > The mntput() in delayed_fput() is the last function call. So before that > moment, > sys_umount() may see mnt_get_count() as 2, so it avoids EBUSY condition. I'm > not > sure why it check over 2 tho. Because it has just grabbed a re

Re: [PATCH 5/5] usb: usb251xb: Add copyrights

2017-09-15 Thread Greg KH
On Fri, Sep 15, 2017 at 04:40:28PM -0700, Greg KH wrote: > On Sat, Sep 16, 2017 at 02:31:13AM +0300, Serge Semin wrote: > > Signed-off-by: Serge Semin > > --- > > drivers/usb/misc/usb251xb.c | 1 + > > 1 file changed, 1 insertions(+), 0 deletion(-) > > I can't take patches without any changelog

Re: Detecting page cache trashing state

2017-09-15 Thread Taras Kondratiuk
Quoting vcap...@pengaru.com (2017-09-15 14:20:28) > On Fri, Sep 15, 2017 at 04:36:19PM +0200, Michal Hocko wrote: > > On Thu 14-09-17 17:16:27, Taras Kondratiuk wrote: > > > Hi > > > > > > In our devices under low memory conditions we often get into a trashing > > > state when system spends most o

Re: [PATCH 5/5] usb: usb251xb: Add copyrights

2017-09-15 Thread Greg KH
On Sat, Sep 16, 2017 at 02:31:13AM +0300, Serge Semin wrote: > Signed-off-by: Serge Semin > --- > drivers/usb/misc/usb251xb.c | 1 + > 1 file changed, 1 insertions(+), 0 deletion(-) I can't take patches without any changelog text, sorry. > > diff --git a/drivers/usb/misc/usb251xb.c b/drivers/u

kernel crash using fbtft / SPI on Orange Pi zero board, armbian

2017-09-15 Thread jon
I am trying to use an LCD connected via SPI on an Orange Pi zero board. It works, for a while, then crashes. armbian forum thread here: https://forum.armbian.com/index.php?/topic/5067-orange-pi-zero-fbtft-unreliable/ root@orangepizero:~# uname -a Linux orangepizero 3.4.113-sun8i #12 SMP PREEMPT

[PATCH v2 1/2] mmc: sdhci-msm: Utilize bulk clock API

2017-09-15 Thread Bjorn Andersson
By stuffing the runtime controlled clocks into a clk_bulk_data array we can utilize the newly introduced bulk clock operations and clean up the error paths. This allow us to handle additional clocks in subsequent patch, without the added complexity. Cc: Ritesh Harjani Signed-off-by: Bjorn Anderss

Re: [PATCH] [media] solo6x10: hide unused variable

2017-09-15 Thread Ismael Luceno
On 15/Sep/2017 21:52, Arnd Bergmann wrote: > When building without CONFIG_GPIOLIB, we get a harmless > warning about an unused variable: > > drivers/media/pci/solo6x10/solo6x10-gpio.c: In function 'solo_gpio_init': > drivers/media/pci/solo6x10/solo6x10-gpio.c:165:6: error: unused variable > 'ret'

[PATCH v2 0/2] Support SDHCI on 8974pro devices

2017-09-15 Thread Bjorn Andersson
The calibration clocks for the delay circut should be enabled, as done in the downstream kernel, in order for reset of the SDHCI not to fail on some Qualcomm platforms (e.g. 8974pro). These patches makes it possible to reference these clocks. Bjorn Andersson (2): mmc: sdhci-msm: Utilize bulk clo

[PATCH v2 2/2] mmc: sdhci-msm: Enable delay circuit calibration clocks

2017-09-15 Thread Bjorn Andersson
The delay circuit used to support HS400 is calibrated based on two additional clocks. When these clocks are not available and FF_CLK_SW_RST_DIS is not set in CORE_HC_MODE, reset might fail. But on some platforms this doesn't work properly and below dump can be seen in the kernel log. mmc0: Reset

kernel crash using fbtft / SPI on Orange Pi zero board, armbian

2017-09-15 Thread jon
I am trying to use an LCD connected via SPI on an Orange Pi zero board. It works, for a while, then crashes. armbian forum thread here: https://forum.armbian.com/index.php?/topic/5067-orange-pi-zero-fbtft-unreliable/ root@orangepizero:~# uname -a Linux orangepizero 3.4.113-sun8i #12 SMP PREEMPT

[PATCH 2/5] usb: usb251xb: Fix property_u32 NULL pointer dereference

2017-09-15 Thread Serge Semin
The methods like of_property_read_u32 utilizing the specified pointer permit only the pointer to a preallocated u32 storage as the third argument. As a result the driver crashes on NULL pointer dereference in case if "oc-delay-us" or "power-on-time-ms" declared in dts file. Signed-off-by: Serge Se

[PATCH 5/5] usb: usb251xb: Add copyrights

2017-09-15 Thread Serge Semin
Signed-off-by: Serge Semin --- drivers/usb/misc/usb251xb.c | 1 + 1 file changed, 1 insertions(+), 0 deletion(-) diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c index 1d47acd09..43afa04ad 100644 --- a/drivers/usb/misc/usb251xb.c +++ b/drivers/usb/misc/usb251xb.c @@ -3,6 +3

[PATCH 4/5] usb: usb251xb: Use GPIO descriptor consumer interface

2017-09-15 Thread Serge Semin
The driver used to be developed with legacy GPIO API support. It's better to use descriptor-based interface for several reasons. First of all the legacy API doesn't support the ACTIVE_LOW/HIGH flag of dts nodes, which is essential since different hardware may have different GPIOs connectivity inclu

[PATCH 0/5] usb: usb251xb: Add USB2517i hub support and fix some bugs

2017-09-15 Thread Serge Semin
Primarily it was intended to just add USB2517 hub support to the driver. But after tests a bug and inconistency were discovered. So it was decided to perform following changes: Changelog v1: - Add USB2517/i hub specifics support to the driver - Fix property_u32 NULL-pointer dereference - Add new {

[PATCH 3/5] usb: usb251xb: Add max power/current dts nodes

2017-09-15 Thread Serge Semin
This parameters may be varied in accordance with hardware specifics. So lets add the corresponding settings to the usb251x driver dts specification. Signed-off-by: Serge Semin --- Documentation/devicetree/bindings/usb/usb251xb.txt | 6 ++ drivers/usb/misc/usb251xb.c|

[PATCH 1/5] usb: usb251xb: Add USB2517/i hub support

2017-09-15 Thread Serge Semin
USB2517i hubs are very like USB251xb devices series. They have almost the same configuration registers space except number of ports, led configurations and lack of battery settings. All these peculiarities are reflected in this patch. Signed-off-by: Serge Semin --- Documentation/devicetree/bindi

Re: [PATCH] vfs: introduce UMOUNT_WAIT which waits for umount completion

2017-09-15 Thread Jaegeuk Kim
On 09/15, Theodore Ts'o wrote: > On Fri, Sep 15, 2017 at 11:44:33AM -0700, Jaegeuk Kim wrote: > > > > So, I digged it in more detail, and found, in drivers/android/binder.c [1], > > - binder_ioctl() > > - create a kernel thread > > - zombie_cleanup_check() > > - binder_defer_work() > > - q

Re: [RFC PATCH 3/4] x86/asm: Make alternative macro interfaces more clear and consistent

2017-09-15 Thread Josh Poimboeuf
On Fri, Sep 15, 2017 at 11:01:19AM -0700, Linus Torvalds wrote: > On Fri, Sep 15, 2017 at 9:53 AM, Andrey Ryabinin > wrote: > > > > I'm not so sure that this is disabled optimization. I assume that global > > rsp makes > > changes something in gcc's register allocation logic, or something like >

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

2017-09-15 Thread Jim Mattson
On Thu, Aug 24, 2017 at 5:27 AM, Yu Zhang wrote: > Currently, KVM uses CR3_L_MODE_RESERVED_BITS to check the > reserved bits in CR3. Yet the length of reserved bits in > guest CR3 should be based on the physical address width > exposed to the VM. This patch changes CR3 check logic to > calculate t

[PATCH v4 03/13] xen/pvcalls: connect to the backend

2017-09-15 Thread Stefano Stabellini
Implement the probe function for the pvcalls frontend. Read the supported versions, max-page-order and function-calls nodes from xenstore. Only one frontend<->backend connection is supported at any given time for a guest. Store the active frontend device to a static pointer. Introduce a stub func

[PATCH v4 04/13] xen/pvcalls: implement socket command and handle events

2017-09-15 Thread Stefano Stabellini
Send a PVCALLS_SOCKET command to the backend, use the masked req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp array ready for the response, and there cannot be two outstanding responses with the same req_id. Wait

[PATCH v4 01/13] xen/pvcalls: introduce the pvcalls xenbus frontend

2017-09-15 Thread Stefano Stabellini
Introduce a xenbus frontend for the pvcalls protocol, as defined by https://xenbits.xen.org/docs/unstable/misc/pvcalls.html. This patch only adds the stubs, the code will be added by the following patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle

[PATCH v4 05/13] xen/pvcalls: implement connect command

2017-09-15 Thread Stefano Stabellini
Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for the active socket. Introduce fields in struct sock_mapping to keep track of active sockets. Introduce a waitqueue to allow the frontend to wait on data coming from the backend on the active socket (recvmsg command). Two mutex

[PATCH v4 06/13] xen/pvcalls: implement bind command

2017-09-15 Thread Stefano Stabellini
Send PVCALLS_BIND to the backend. Introduce a new structure, part of struct sock_mapping, to store information specific to passive sockets. Introduce a status field to keep track of the status of the passive socket. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse

[PATCH v4 07/13] xen/pvcalls: implement listen command

2017-09-15 Thread Stefano Stabellini
Send PVCALLS_LISTEN to the backend. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-front.c | 56 + drivers/xen/pvcalls-front.h | 1 + 2 files changed, 57 inser

[PATCH v4 08/13] xen/pvcalls: implement accept command

2017-09-15 Thread Stefano Stabellini
Introduce a waitqueue to allow only one outstanding accept command at any given time and to implement polling on the passive socket. Introduce a flags field to keep track of in-flight accept and poll commands. Send PVCALLS_ACCEPT to the backend. Allocate a new active socket. Make sure that only on

[PATCH v4 10/13] xen/pvcalls: implement recvmsg

2017-09-15 Thread Stefano Stabellini
Implement recvmsg by copying data from the "in" ring. If not enough data is available and the recvmsg call is blocking, then wait on the inflight_conn_req waitqueue. Take the active socket in_mutex so that only one function can access the ring at any given time. Signed-off-by: Stefano Stabellini

[PATCH v4 11/13] xen/pvcalls: implement poll command

2017-09-15 Thread Stefano Stabellini
For active sockets, check the indexes and use the inflight_conn_req waitqueue to wait. For passive sockets if an accept is outstanding (PVCALLS_FLAG_ACCEPT_INFLIGHT), check if it has been answered by looking at bedata->rsp[req_id]. If so, return POLLIN. Otherwise use the inflight_accept_req waitq

[PATCH v4 09/13] xen/pvcalls: implement sendmsg

2017-09-15 Thread Stefano Stabellini
Send data to an active socket by copying data to the "out" ring. Take the active socket out_mutex so that only one function can access the ring at any given time. If not enough room is available on the ring, rather than returning immediately or sleep-waiting, spin for up to 5000 cycles. This small

[PATCH v4 02/13] xen/pvcalls: implement frontend disconnect

2017-09-15 Thread Stefano Stabellini
Introduce a data structure named pvcalls_bedata. It contains pointers to the command ring, the event channel, a list of active sockets and a list of passive sockets. Lists accesses are protected by a spin_lock. Introduce a waitqueue to allow waiting for a response on commands sent to the backend.

[PATCH v4 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-09-15 Thread Stefano Stabellini
Also add pvcalls-front to the Makefile. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/Kconfig | 9 + drivers/xen/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index 4545561

[PATCH v4 12/13] xen/pvcalls: implement release command

2017-09-15 Thread Stefano Stabellini
Send PVCALLS_RELEASE to the backend and wait for a reply. Take both in_mutex and out_mutex to avoid concurrent accesses. Then, free the socket. For passive sockets, check whether we have already pre-allocated an active socket for the purpose of being accepted. If so, free that as well. Signed-off

[PATCH v4 00/13] introduce the Xen PV Calls frontend

2017-09-15 Thread Stefano Stabellini
Hi all, this series introduces the frontend for the newly introduced PV Calls procotol. PV Calls is a paravirtualized protocol that allows the implementation of a set of POSIX functions in a different domain. The PV Calls frontend sends POSIX function calls to the backend, which implements them a

Linux 3.2.93

2017-09-15 Thread Ben Hutchings
I'm announcing the release of the 3.2.93 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] scripts/dtc: update dtx_diff cpp and dts include paths to match build

2017-09-15 Thread Rob Herring
On Fri, Sep 15, 2017 at 5:16 PM, wrote: > From: Frank Rowand I feel like we just had the same subject. Can you make it more specific. > Update dtx_diff include paths in the same manner as: > commit b12869a8d519 ("of: remove drivers/of/testcase-data from > include search path for CPP"), commit

Re: [PATCH v2 4/5] watchdog: jz4740: Add support for the watchdog in jz4780 SoC

2017-09-15 Thread Guenter Roeck
On Fri, Sep 15, 2017 at 09:20:19PM +0200, Mathieu Malaterre wrote: > The watchdog unit present in the JZ4780 works the same as the one in the > JZ4740. > > Signed-off-by: Mathieu Malaterre > --- > Changes in v2: > * do not re-use the compatible string for different SoC (Paul Cercueil) I thought

Re: selftests/bpf doesn't compile

2017-09-15 Thread Shuah Khan
On 09/15/2017 12:48 PM, Daniel Borkmann wrote: > On 09/15/2017 08:23 PM, Daniel Borkmann wrote: >> On 09/15/2017 08:07 PM, Alexei Starovoitov wrote: >>> On Fri, Sep 15, 2017 at 05:58:40PM +0100, Edward Cree wrote: On 15/09/17 17:02, Alexei Starovoitov wrote: > On Thu, Sep 14, 2017 at 09:33

Re: [PATCH] acpi: watchdog: properly initialize resources

2017-09-15 Thread Guenter Roeck
On Fri, Sep 15, 2017 at 09:55:18PM +0200, Arnd Bergmann wrote: > We copy a local resource structure into a list, but only > initialize some of its members, as pointed out by gcc-4.4: > > drivers/acpi/acpi_watchdog.c: In function 'acpi_watchdog_init': > drivers/acpi/acpi_watchdog.c:105: error: 'res

[PATCH] MAINTAINERS: update TPM driver infrastructure changes

2017-09-15 Thread Jarkko Sakkinen
Signed-off-by: Jarkko Sakkinen --- CREDITS | 7 +++ MAINTAINERS | 13 ++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/CREDITS b/CREDITS index 5d09c26d69cd..dcd761885ea8 100644 --- a/CREDITS +++ b/CREDITS @@ -4130,6 +4130,13 @@ D: MD driver D: EISA/sysfs sub

Re: [PATCH v2 1/2] soc: qcom: smem: Rename "uncached" accessors

2017-09-15 Thread Bjorn Andersson
On Fri 15 Sep 12:19 PDT 2017, Stephen Boyd wrote: > On 08/14, Bjorn Andersson wrote: > > In preparation for adding accessors for "cached" entries rename the > > "uncached" accessors to. Also rename "first" cached entry to "last", as > > s/to/too? or to "uncached"? > Doesn't it make more sense i

Re: selftests/bpf doesn't compile

2017-09-15 Thread Shuah Khan
On 09/15/2017 12:14 PM, Alexei Starovoitov wrote: > On Fri, Sep 15, 2017 at 11:00:31AM -0600, Shuah Khan wrote: I could add a special target for bpf TARGET_BPF perhaps and exclude it from the run_test> >>> I'm not sure what was the motivation to exclude hotplug from default >>> testing,

Re: [RFC] KVM: arm/arm64: Introduce KVM_DEV_ARM_ITS_CTRL_RESET

2017-09-15 Thread Marc Zyngier
On Fri, Sep 15 2017 at 10:56:06 am BST, Christoffer Dall wrote: > On Fri, Sep 15, 2017 at 5:26 AM, Auger Eric wrote: >> Hi, >> >> On 14/09/2017 19:06, Marc Zyngier wrote: >>> On Thu, Sep 14 2017 at 10:57:28 am BST, Eric Auger >>> wrote: At the moment, the in-kernel emulated ITS is not pro

[PATCH] clk: si5351: implement remove handler

2017-09-15 Thread Alexey Khoroshilov
The driver has no remove function, so it does not cleanup resources that are not under devm management. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/clk/clk-si5351.c | 13 + 1 file changed, 13 insertions(+) diff --git

Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer

2017-09-15 Thread Dmitry Torokhov
On Fri, Sep 15, 2017 at 2:55 PM, Jacek Anaszewski wrote: > On 09/15/2017 08:34 PM, Dmitry Torokhov wrote: >> On Thu, Sep 14, 2017 at 1:58 PM, Pavel Machek wrote: >>> On Thu 2017-09-14 21:31:31, Jacek Anaszewski wrote: Hi David and Pavel, On 09/13/2017 10:20 PM, Pavel Machek wrote:

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

2017-09-15 Thread Grygorii Strashko
On 09/15/2017 11:57 AM, Tony Lindgren wrote: > * Thierry Reding [170915 08:10]: >> On Thu, Sep 14, 2017 at 03:54:56PM +0200, Linus Walleij wrote: >>> Sorry about that. Let's move ahead with this now, it is neat and >>> clean. >>> >>> What I want (as maintainer) is a bit of fingerpointing at the

  1   2   3   4   5   6   >