[PATCH] HID: intel-ish-hid: Use VID/PID from ISH

2019-01-30 Thread Srinivas Pandruvada
The Intel ISH HID can now have other devices attached to it, not just sensors. Hence ISH HID transport is no longer just used for sensors. Currently the vendor and product id is hardcoded for sensors, but they can be obtained from ISH firmware for the real device. The driver already extract them

[PATCH] PM/runtime: Optimize pm_runtime_autosuspend_expiration()

2019-01-30 Thread Ladislav Michl
pm_runtime_autosuspend_expiration calls ktime_get_mono_fast_ns even when its returned value may be unused. Therefore get current time later and remove gotos while there. Signed-off-by: Ladislav Michl Acked-by: Tony Lindgren Acked-by: Vincent Guittot --- This patch is based on top of

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jerome Glisse
On Wed, Jan 30, 2019 at 08:50:00PM +, Jason Gunthorpe wrote: > On Wed, Jan 30, 2019 at 03:43:32PM -0500, Jerome Glisse wrote: > > On Wed, Jan 30, 2019 at 08:11:19PM +, Jason Gunthorpe wrote: > > > On Wed, Jan 30, 2019 at 01:00:02PM -0700, Logan Gunthorpe wrote: > > > > > > > We never

Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity

2019-01-30 Thread Thomas Gleixner
On Wed, 30 Jan 2019, Alan Cox wrote: > > > > +"GPL and additional rights" Historical variant of expressing > > > > that the > > > > + module source is dual licensed under a > > > > + GPL v2 variant and MIT license. > > > >

Re: [PATCH v2 1/2] rtc: add AB-RTCMC-32.768kHz-EOZ9 RTC support

2019-01-30 Thread Alexandre Belloni
Hi, This seems pretty good. On 17/01/2019 21:46:07+0300, Artem Panfilov wrote: > +static int abeoz9_rtc_get_time(struct device *dev, struct rtc_time *tm) > +{ > + struct abeoz9_rtc_data *data = dev_get_drvdata(dev); > + u8 regs[ABEOZ9_SEC_LEN]; > + int ret; > + I would check the

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jason Gunthorpe
On Wed, Jan 30, 2019 at 02:01:35PM -0700, Logan Gunthorpe wrote: > And I feel the GUP->SGL->DMA flow should still be what we are aiming > for. Even if we need a special GUP for special pages, and a special DMA > map; and the SGL still has to be homogenous *shrug* so what if the special GUP

Re: [RFC PATCH v2 0/4] mm, memory_hotplug: allocate memmap from hotadded memory

2019-01-30 Thread Oscar Salvador
On Tue, Jan 22, 2019 at 11:37:04AM +0100, Oscar Salvador wrote: > I yet have to check a couple of things like creating an accounting item > like VMEMMAP_PAGES to show in /proc/meminfo to ease to spot the memory that > went in there, testing Hyper-V/Xen to see how they react to the fact that > we

[PATCH v2 5/7] binder: remove kernel vm_area for buffer space

2019-01-30 Thread Todd Kjos
Remove the kernel's vm_area and the code that maps buffer pages into it. Signed-off-by: Todd Kjos --- drivers/android/binder_alloc.c | 40 ++ 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/android/binder_alloc.c

[PATCH v2 4/7] binder: avoid kernel vm_area for buffer fixups

2019-01-30 Thread Todd Kjos
Refactor the functions to validate and fixup struct binder_buffer pointer objects to avoid using vm_area pointers. Instead copy to/from kernel space using binder_alloc_copy_to_buffer() and binder_alloc_copy_from_buffer(). The following functions were refactored: binder_validate_ptr()

[PATCH v2 3/7] binder: add function to copy binder object from buffer

2019-01-30 Thread Todd Kjos
When creating or tearing down a transaction, the binder driver examines objects in the buffer and takes appropriate action. To do this without needing to dereference pointers into the buffer, the local copies of the objects are needed. This patch introduces a function to validate and copy binder

[PATCH v2 2/7] binder: add functions to copy to/from binder buffers

2019-01-30 Thread Todd Kjos
Avoid vm_area when copying to or from binder buffers. Instead, new copy functions are added that copy from kernel space to binder buffer space. These use kmap_atomic() and kunmap_atomic() to create temporary mappings and then memcpy() is used to copy within that page. Also, kmap_atomic() /

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jason Gunthorpe
On Wed, Jan 30, 2019 at 05:47:05PM -0500, Jerome Glisse wrote: > On Wed, Jan 30, 2019 at 10:33:04PM +, Jason Gunthorpe wrote: > > On Wed, Jan 30, 2019 at 05:30:27PM -0500, Jerome Glisse wrote: > > > > > > What is the problem in the HMM mirror that it needs this restriction? > > > > > > No

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jerome Glisse
On Wed, Jan 30, 2019 at 10:33:04PM +, Jason Gunthorpe wrote: > On Wed, Jan 30, 2019 at 05:30:27PM -0500, Jerome Glisse wrote: > > > > What is the problem in the HMM mirror that it needs this restriction? > > > > No restriction at all here. I think i just wasn't understood. > > Are you are

Re: [PATCH v3] PM-runtime: fix deadlock with ktime

2019-01-30 Thread Rafael J. Wysocki
On Wed, Jan 30, 2019 at 6:26 PM Vincent Guittot wrote: > > A deadlock has been seen when swicthing clocksources which use PM runtime. > The call path is: > change_clocksource > ... > write_seqcount_begin > ... > timekeeping_update > ... > sh_cmt_clocksource_enable

[PATCH v2 00/15] Habana Labs kernel driver

2019-01-30 Thread Oded Gabbay
Hello, This is v2 of the Habana Labs kernel driver patch-set. It contains fixes for almost everything that was brought up in the review of v1. In addition to local changes in each patch that are detailed in each patch's commit message, the global/major changes are: - Rebased on v5.0-rc4 -

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jason Gunthorpe
On Wed, Jan 30, 2019 at 05:30:27PM -0500, Jerome Glisse wrote: > > What is the problem in the HMM mirror that it needs this restriction? > > No restriction at all here. I think i just wasn't understood. Are you are talking about from the exporting side - where the thing creating the VMA can

[PATCH v2 15/15] Update MAINTAINERS and CREDITS with habanalabs info

2019-01-30 Thread Oded Gabbay
The habanalabs driver was written from scratch from the very first days of Habana and is maintained by Oded Gabbay. Signed-off-by: Oded Gabbay --- CREDITS | 2 +- MAINTAINERS | 9 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CREDITS b/CREDITS index

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jerome Glisse
On Wed, Jan 30, 2019 at 10:51:55PM +, Jason Gunthorpe wrote: > On Wed, Jan 30, 2019 at 05:47:05PM -0500, Jerome Glisse wrote: > > On Wed, Jan 30, 2019 at 10:33:04PM +, Jason Gunthorpe wrote: > > > On Wed, Jan 30, 2019 at 05:30:27PM -0500, Jerome Glisse wrote: > > > > > > > > What is the

Re: [PATCH 09/11] btrfs: change set_level() to bound the level passed in

2019-01-30 Thread Dennis Zhou
On Tue, Jan 29, 2019 at 10:14:18AM +0200, Nikolay Borisov wrote: > > > On 28.01.19 г. 23:24 ч., Dennis Zhou wrote: > > Currently, the only user of set_level() is zlib which sets an internal > > workspace parameter. As level is now plumbed into get_workspace(), this > > can be handled there

Re: [PATCH net-next 00/12] code optimizations & bugfixes for HNS3 driver

2019-01-30 Thread David Miller
From: Huazhong Tan Date: Thu, 31 Jan 2019 04:55:40 +0800 > This patchset includes bugfixes and code optimizations for the HNS3 > ethernet controller driver Series applied, thanks.

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jason Gunthorpe
On Wed, Jan 30, 2019 at 04:45:25PM -0500, Jerome Glisse wrote: > On Wed, Jan 30, 2019 at 08:50:00PM +, Jason Gunthorpe wrote: > > On Wed, Jan 30, 2019 at 03:43:32PM -0500, Jerome Glisse wrote: > > > On Wed, Jan 30, 2019 at 08:11:19PM +, Jason Gunthorpe wrote: > > > > On Wed, Jan 30, 2019

Re: [PATCH] arch/arm/mach-ep93xx: Remove duplicate header

2019-01-30 Thread Arnd Bergmann
On Thu, Jan 17, 2019 at 3:48 PM Alexander Sverdlin wrote: > > On 17/01/2019 15:37, Brajeswar Ghosh wrote: > > Remove mach/gpio-ep93xx.h which is included more than once > > > > Signed-off-by: Brajeswar Ghosh > > Acked-by: Alexander Sverdlin > > Arnd, would you take it into one of your ARM

[PATCH v2 14/15] habanalabs: add debugfs support

2019-01-30 Thread Oded Gabbay
This patch adds debugfs support to the driver. It allows the user-space to display information that is contained in the internal structures of the driver, such as: - active command submissions - active user virtual memory mappings - number of allocated command buffers It also enables the user to

[PATCH v2 11/15] habanalabs: add command submission module

2019-01-30 Thread Oded Gabbay
This patch adds the main flow for the user to submit work to the device. Each work is described by a command submission object (CS). The CS contains 3 arrays of command buffers: One for execution, and two for context-switch (store and restore). For each CB, the user specifies on which queue to

[PATCH 2/2] tpm: don't print error message in tpm_transmit_cmd when tpm still testing

2019-01-30 Thread Jerry Snitselaar
Currently tpm_transmit_cmd will print an error message if the tpm returns something other than TPM2_RC_SUCCESS. This means that if the tpm returns that it is testing an error message will be printed, and this can cause confusion for the end user. So avoid printing the error message if

[PATCH 1/2] tpm: don't return bool from update_timeouts

2019-01-30 Thread Jerry Snitselaar
Set tpm_chip->timeouts_adjusted directly in the update_timeouts code instead of returning bool. In case of tpm read failing print warning that the read failed and continue on. Reviewed-by: Jarkko Sakkinen Signed-off-by: Jerry Snitselaar --- drivers/char/tpm/tpm1-cmd.c | 3 +--

Applied "spi-atmel: support inter-word delay" to the spi tree

2019-01-30 Thread Mark Brown
The patch spi-atmel: support inter-word delay has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Applied "spi: support inter-word delay requirement for devices" to the spi tree

2019-01-30 Thread Mark Brown
The patch spi: support inter-word delay requirement for devices has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

mmotm 2019-01-30-15-02 uploaded

2019-01-30 Thread akpm
The mm-of-the-moment snapshot 2019-01-30-15-02 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH] cpuidle: poll_state: Fix default time limit.

2019-01-30 Thread Rafael J. Wysocki
On Wed, Jan 30, 2019 at 5:29 PM Doug Smythies wrote: > > The default time is declared in units of microsecnds, > but is used as nano seconds, resulting in significant > accounting errors for idle state 0 time when all idle > states deeper than 0 are disabled. > > Under these unusual conditions,

Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity

2019-01-30 Thread Thomas Gleixner
On Wed, 30 Jan 2019, Alan Cox wrote: > On Wed, 30 Jan 2019 15:31:20 +1030 > Rusty Russell wrote: > > > Thanks taking on such a thankless task Thomas, > > > > Might have been overzealous in assuming a verionless GPL string meant > > "or later" (I'm happy for that for my own code, FWIW). My

[PATCH v2 01/15] habanalabs: add skeleton driver

2019-01-30 Thread Oded Gabbay
This patch adds the habanalabs skeleton driver. The driver does nothing at this stage except very basic operations. It contains the minimal code to insmod and rmmod the driver and to create a /dev/hlX file per PCI device. Signed-off-by: Oded Gabbay --- Changes in v2: - Add newline in Makefile

Re: [patch 0/2] genirq, proc: Speedup /proc/stat interrupt statistics

2019-01-30 Thread Thomas Gleixner
On Wed, 30 Jan 2019, Andrew Morton wrote: > On Wed, 30 Jan 2019 13:31:30 +0100 Thomas Gleixner wrote: > > > Waiman reported that on large systems with a large amount of interrupts the > > readout of /proc/stat takes a long time to sum up the interrupt > > statistics. In principle this is not a

Re: [RFC PATCH] leds: multicolor: Add sysfs interface definition

2019-01-30 Thread Jacek Anaszewski
Dan, On 1/30/19 10:07 PM, Dan Murphy wrote: Jacek On 1/30/19 2:20 PM, Jacek Anaszewski wrote: Dan, On 1/30/19 8:59 PM, Dan Murphy wrote: Jacek On 1/30/19 1:37 PM, Jacek Anaszewski wrote: Hi Dan, Thank you for the RFC. One vital thing is missing - documentation of brightness file must be

[PATCH v2 08/15] habanalabs: add event queue and interrupts

2019-01-30 Thread Oded Gabbay
This patch adds support for receiving events from Goya's control CPU and for receiving MSI-X interrupts from Goya's DMA engines and CPU. Goya's PCI controller supports up to 8 MSI-X interrupts, which only 6 of them are currently used. The first 5 interrupts are dedicated for Goya's DMA engine

[PATCH v2 12/15] habanalabs: add virtual memory and MMU modules

2019-01-30 Thread Oded Gabbay
From: Omer Shpigelman This patch adds the Virtual Memory and MMU modules. Goya has an internal MMU which provides process isolation on the internal DDR. The internal MMU also performs translations for transactions that go from Goya to the Host. The driver is responsible for allocating and

May God Bless you

2019-01-30 Thread Mrs. KATHLEEN JACOB
Dear Friend, 30/1/2019 My beloved in Christ, Donation of £2.4Million British pounds for charity Less privileged peoples orphanages work, please reply to me.via my private email address ( mrskathleenjaco...@yahoo.com ) Yours in Christ, Mrs. KATHLEEN JACOB

Re: [PATCH 1/6] dt-bindings: soc: qcom: Add interconnect binding for GENI QUP

2019-01-30 Thread alokc
On 2019-01-23 17:10, Evan Green wrote: On Mon, Jan 21, 2019 at 10:34 PM Alok Chauhan wrote: Add documentation for the interconnect and interconnect-names bindings for the GENI QUP as detailed by bindings/interconnect/interconnect.txt. Signed-off-by: Alok Chauhan ---

Re: [PATCH 1/6] dt-bindings: soc: qcom: Add interconnect binding for GENI QUP

2019-01-30 Thread alokc
On 2019-01-23 10:35, Georgi Djakov wrote: Hi Alok, Thanks for the patches! On 1/22/19 08:33, Alok Chauhan wrote: Add documentation for the interconnect and interconnect-names bindings s/interconnect /interconnects / for the GENI QUP as detailed by bindings/interconnect/interconnect.txt.

[PATCH v2 1/7] binder: create userspace-to-binder-buffer copy function

2019-01-30 Thread Todd Kjos
The binder driver uses a vm_area to map the per-process binder buffer space. For 32-bit android devices, this is now taking too much vmalloc space. This patch removes the use of vm_area when copying the transaction data from the sender to the buffer space. Instead of using copy_from_user() for

Re: [GIT PULL v2] updates to soc/fsl drivers for v5.1

2019-01-30 Thread Arnd Bergmann
On Fri, Jan 11, 2019 at 11:56 PM Li Yang wrote: > > Hi arm-soc maintainers, > > This is an updated pull request to replace one problematic patch > regarding to guts driver. Please ignore the last pull request. > Pulled this version now, thanks for the update! Arnd

[PATCH v2 0/7] binder: eliminate use of vmalloc space for binder buffers

2019-01-30 Thread Todd Kjos
Binder buffers have always been mapped into kernel space via map_kernel_range_noflush() to allow the binder driver to modify the buffer before posting to userspace for processing. In recent Android releases, the number of long-running binder processes has increased to the point that for 32-bit

[PATCH v2 07/15] habanalabs: add h/w queues module

2019-01-30 Thread Oded Gabbay
This patch adds the H/W queues module and the code to initialize Goya's various compute and DMA engines and their queues. Goya has 5 DMA channels, 8 TPC engines and a single MME engine. For each channel/engine, there is a H/W queue logic which is used to pass commands from the user to the H/W.

Re: [PATCH net] vhost: fix OOB in get_rx_bufs()

2019-01-30 Thread David Miller
From: "Michael S. Tsirkin" Date: Tue, 29 Jan 2019 20:36:31 -0500 > If it helps I can include most virtio stuff in my pull requests instead. > Or if that can't work since there's too often a dependency on net-next, > maybe Jason wants to create a tree and send pull requests to you. Let > us know

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jerome Glisse
On Wed, Jan 30, 2019 at 09:56:07PM +, Jason Gunthorpe wrote: > On Wed, Jan 30, 2019 at 04:45:25PM -0500, Jerome Glisse wrote: > > On Wed, Jan 30, 2019 at 08:50:00PM +, Jason Gunthorpe wrote: > > > On Wed, Jan 30, 2019 at 03:43:32PM -0500, Jerome Glisse wrote: > > > > On Wed, Jan 30, 2019

[PATCH v2 13/15] habanalabs: implement INFO IOCTL

2019-01-30 Thread Oded Gabbay
This patch implements the INFO IOCTL. That IOCTL is used by the user to query information that is relevant/needed by the user in order to submit deep learning jobs to Goya. The information is divided into several categories, such as H/W IP, Events that happened, DDR usage and more.

Re: [RFC PATCH] leds: multicolor: Add sysfs interface definition

2019-01-30 Thread Pavel Machek
On Wed 2019-01-30 12:30:05, Dan Murphy wrote: > Add a documentation of LED Multicolor LED class specific > sysfs attributes. No, sorry. This does not most of the requirements. Pavel Requirements for RGB LED interface: 1) Userspace

Re: [PATCH 4.14 00/68] 4.14.97-stable review

2019-01-30 Thread Guenter Roeck
On Tue, Jan 29, 2019 at 12:35:22PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.97 release. > There are 68 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v2 04/15] habanalabs: add context and ASID modules

2019-01-30 Thread Oded Gabbay
This patch adds two modules - ASID and context. Each user process that opens a device's file must have at least one context before it is able to "work" with the device. Each context has its own device address-space and contains information about its runtime state (its active command submissions).

[PATCH v2 05/15] habanalabs: add command buffer module

2019-01-30 Thread Oded Gabbay
This patch adds the command buffer (CB) module, which allows the user to create and destroy CBs and to map them to the user's process address-space. A command buffer is a memory blocks that reside in DMA-able address-space and is physically contiguous so it can be accessed by the device without

[PATCH v2 03/15] habanalabs: add basic Goya support

2019-01-30 Thread Oded Gabbay
This patch adds a basic support for the Goya device. The code initializes the device's PCI controller and PCI bars. It also initializes various S/W structures and adds some basic helper functions. Signed-off-by: Oded Gabbay --- Changes in v2: - Replace /** with /* in all functions - Add

[PATCH v2 10/15] habanalabs: add device reset support

2019-01-30 Thread Oded Gabbay
This patch adds support for doing various on-the-fly reset of Goya. The driver supports two types of resets: 1. soft-reset 2. hard-reset Soft-reset is done when the device detects a timeout of a command submission that was given to the device. The soft-reset process only resets the engines that

[PATCH v2 09/15] habanalabs: add sysfs and hwmon support

2019-01-30 Thread Oded Gabbay
This patch add the sysfs and hwmon entries that are exposed by the driver. Goya has several sensors, from various categories such as temperature, voltage, current, etc. The driver exposes those sensors in the standard hwmon mechanism. In addition, the driver exposes a couple of interfaces in

Re: [PATCH 4.19 000/103] 4.19.19-stable review

2019-01-30 Thread Guenter Roeck
On Tue, Jan 29, 2019 at 12:34:37PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.19 release. > There are 103 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: System crash with perf_fuzzer (kernel: 5.0.0-rc3)

2019-01-30 Thread Jiri Olsa
On Wed, Jan 30, 2019 at 12:39:47PM -0800, Andi Kleen wrote: > Jiri Olsa writes: > > > > the patch adds check_eriod pmu callback.. I need to check if there's > > better way to do this, but so far it fixes the crash for me > > > > if you guys could check this patch, that'd be great > > There's

[PATCH v2 6/7] binder: remove user_buffer_offset

2019-01-30 Thread Todd Kjos
Remove user_buffer_offset since there is no kernel buffer pointer anymore. Signed-off-by: Todd Kjos --- v2: removed casts as suggested by Dan Carpenter drivers/android/binder.c | 39 ++ drivers/android/binder_alloc.c | 16 ++

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggerede

2019-01-30 Thread Thomas Gleixner
On Wed, 30 Jan 2019, Sebastian Sewior wrote: > On 2019-01-30 18:56:54 [+0100], Thomas Gleixner wrote: > > TBH, no clue. Below are some more traceprintks which hopefully shed some > > light on that mystery. See kernel/futex.c line 30 ... > > The robust list it somehow buggy. In the last trace we

Re: [PATCH 4.9 00/44] 4.9.154-stable review

2019-01-30 Thread Guenter Roeck
On Tue, Jan 29, 2019 at 12:35:55PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.154 release. > There are 44 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v2 7/7] binder: use userspace pointer as base of buffer space

2019-01-30 Thread Todd Kjos
Now that alloc->buffer points to the userspace vm_area rename buffer->data to buffer->user_data and rename local pointers that hold user addresses. Also use the "__user" tag to annotate all user pointers so sparse can flag cases where user pointer vaues are copied to kernel pointers. Refactor

Re: [PATCH v2 5/8] drivers: pinctrl: msm: setup GPIO irqchip hierarchy

2019-01-30 Thread Stephen Boyd
Quoting Lina Iyer (2019-01-24 12:22:02) > To allow GPIOs to wakeup the system from suspend or deep idle, the > wakeup capable GPIOs are setup in hierarchy with interrupts from the > wakeup-parent irqchip. > > In older SoC's, the TLMM will handover detection to the parent irqchip > and in newer

Re: [LSF/MM TOPIC] NUMA remote THP vs NUMA local non-THP under MADV_HUGEPAGE

2019-01-30 Thread Mike Kravetz
On 1/29/19 3:40 PM, Andrea Arcangeli wrote: > In addition to the above "NUMA remote THP vs NUMA local non-THP > tradeoff" topic, there are other developments in "userfaultfd" land that > are approaching merge readiness and that would be possible to provide a > short overview about: > > - Peter Xu

Re: [patch 0/2] genirq, proc: Speedup /proc/stat interrupt statistics

2019-01-30 Thread Andrew Morton
On Wed, 30 Jan 2019 13:31:30 +0100 Thomas Gleixner wrote: > Waiman reported that on large systems with a large amount of interrupts the > readout of /proc/stat takes a long time to sum up the interrupt > statistics. In principle this is not a problem. but for unknown reasons > some enterprise

[PATCH] autofs - use seq_puts() for simple strings in autofs_show_options()

2019-01-30 Thread Ian Kent
Fix checkpatch.sh WARNING about the use of seq_printf() to print simple strings in autofs_show_options(), use seq_puts() in this case. Signed-off-by: Ian Kent --- fs/autofs/inode.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/autofs/inode.c

Re: [PATCH 0/5 v5] Fix virtio-blk issue with SWIOTLB

2019-01-30 Thread Michael S. Tsirkin
On Wed, Jan 30, 2019 at 01:35:13PM -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Jan 30, 2019 at 05:40:02PM +0100, Joerg Roedel wrote: > > Hi, > > > > here is the next version of this patch-set. Previous > > versions can be found here: > > > > V1:

Re: [PATCH 4.20 000/117] 4.20.6-stable review

2019-01-30 Thread Guenter Roeck
On Tue, Jan 29, 2019 at 12:34:11PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.20.6 release. > There are 117 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v5 0/3] platform/chrome: Add basic support for Wilco EC

2019-01-30 Thread Nick Crews
There is a new chromebook that contains a different Embedded Controller (codename Wilco) than the rest of the chromebook series. Thus the kernel requires a different driver than the already existing and generalized cros_ec_* drivers. The core of the communication with the EC is implemented in

[PATCH v5 3/3] platform/chrome: Add support for raw commands in debugfs

2019-01-30 Thread Nick Crews
From: Duncan Laurie Add a debugfs attribute that allows sending raw commands to the EC. This is useful for development and debug but should not be enabled in a production environment. Get the EC firmware build date First send the request command > echo 00 f0 38 00 03 00 > raw Then read the

Re: [PATCH] selftests: net: fix "from" match test in fib_rule_tests.sh

2019-01-30 Thread David Ahern
On 1/30/19 11:19 AM, Marcelo Henrique Cerri wrote: > Fix the IPv4 address of the dummy0 interface and ensure that ip_forward > is enabled in the network space to get a valid response when checking > for routes between the gateway and other hosts. you need a Fixes tag and to cc the author of said

[PATCH v5 2/3] platform/chrome: Add new driver for Wilco EC

2019-01-30 Thread Nick Crews
From: Duncan Laurie This EC is an incompatible variant of the typical Chrome OS embedded controller. It uses the same low-level communication and a similar protocol with some significant differences. The EC firmware does not support the same mailbox commands so it is not registered as a

[PATCH v5 1/3] cros_ec: Remove cros_ec dependency in lpc_mec

2019-01-30 Thread Nick Crews
From: Duncan Laurie In order to allow this code to be re-used, remove the dependency on the rest of the cros_ec code from the cros_ec_lpc_mec functions. Instead of using a hardcoded register base address of 0x800 have this be passed in to cros_ec_lpc_mec_init(). The existing cros_ec use case

[PATCH v2] mm, oom: Tolerate processes sharing mm with different view of oom_score_adj.

2019-01-30 Thread Tetsuo Handa
This patch reverts both commit 44a70adec910d692 ("mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj") and commit 97fd49c2355ffded ("mm, oom: kill all tasks sharing the mm") in order to close a race and reduce the latency at __set_oom_adj(), and reduces the warning at

Re: [patch 0/2] genirq, proc: Speedup /proc/stat interrupt statistics

2019-01-30 Thread Waiman Long
On 01/30/2019 05:00 PM, Thomas Gleixner wrote: > On Wed, 30 Jan 2019, Andrew Morton wrote: >> On Wed, 30 Jan 2019 13:31:30 +0100 Thomas Gleixner >> wrote: >> >>> Waiman reported that on large systems with a large amount of interrupts the >>> readout of /proc/stat takes a long time to sum up the

[PATCH 2/2] tpm: don't print error message in tpm_transmit_cmd when tpm still testing

2019-01-30 Thread Jerry Snitselaar
Currently tpm_transmit_cmd will print an error message if the tpm returns something other than TPM2_RC_SUCCESS. This means that if the tpm returns that it is testing an error message will be printed, and this can cause confusion for the end user. So avoid printing the error message if

[PATCH 1/2] tpm: don't return bool from update_timeouts

2019-01-30 Thread Jerry Snitselaar
Set tpm_chip->timeouts_adjusted directly in the update_timeouts code instead of returning bool. In case of tpm read failing print warning that the read failed and continue on. Reviewed-by: Jarkko Sakkinen Signed-off-by: Jerry Snitselaar --- drivers/char/tpm/tpm1-cmd.c | 3 +--

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Jason Gunthorpe
On Wed, Jan 30, 2019 at 03:52:13PM -0700, Logan Gunthorpe wrote: > > > On 2019-01-30 2:50 p.m., Jason Gunthorpe wrote: > > On Wed, Jan 30, 2019 at 02:01:35PM -0700, Logan Gunthorpe wrote: > > > >> And I feel the GUP->SGL->DMA flow should still be what we are aiming > >> for. Even if we need a

Re: [PATCH] lib: zstd: Mark expected switch fall-throughs

2019-01-30 Thread Gustavo A. R. Silva
On 1/30/19 1:58 AM, Kees Cook wrote: > On Wed, Jan 30, 2019 at 12:34 PM Gustavo A. R. Silva > wrote: >> >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warnings: >> >>

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-30 Thread Logan Gunthorpe
On 2019-01-30 2:50 p.m., Jason Gunthorpe wrote: > On Wed, Jan 30, 2019 at 02:01:35PM -0700, Logan Gunthorpe wrote: > >> And I feel the GUP->SGL->DMA flow should still be what we are aiming >> for. Even if we need a special GUP for special pages, and a special DMA >> map; and the SGL still has

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggerede

2019-01-30 Thread Paul E. McKenney
On Thu, Jan 31, 2019 at 12:13:51AM +0100, Thomas Gleixner wrote: > On Wed, 30 Jan 2019, Sebastian Sewior wrote: > > > On 2019-01-30 18:56:54 [+0100], Thomas Gleixner wrote: > > > TBH, no clue. Below are some more traceprintks which hopefully shed some > > > light on that mystery. See

[PATCH v4 0/3] Update AMBA driver for enhanced component ID spec.

2019-01-30 Thread Mike Leach
The latest ARM CoreSight specification updates the component identification requirements for all components attached to an AMBA bus. (ARM IHI 0029E) This specification defines bits 15:12 in the ComponentID (CID) value as the device class. Identification requirements now depend on this class.

[PATCH v4 3/3] coresight: etmv4: Update ID register table to add UCI support

2019-01-30 Thread Mike Leach
Adds macro to enable UCI entries to be added to AMBA ID tables. Updates the ID register tables to contain a UCI entry for the A35 ETM device to allow correct matching of driver in the amba bus code. Signed-off-by: Mike Leach --- drivers/hwtracing/coresight/coresight-etm4x.c | 21

[PATCH v4 1/3] drivers: amba: Updates to component identification for driver matching.

2019-01-30 Thread Mike Leach
The CoreSight specification (ARM IHI 0029E), updates the ID register requirements for components on an AMBA bus, to cover both traditional ARM Primecell type devices, and newer CoreSight and other components. The Peripheral ID (PID) / Component ID (CID) pair is extended in certain cases to

[PATCH v4 2/3] drivers: amba: Update component matching to use the CoreSight UCI values.

2019-01-30 Thread Mike Leach
The patches provide an update of amba_device and matching code to handle the additional registers required for the Class 0x9 (CoreSight) UCI. The *data pointer in the amba_id is used by the driver to provide extended ID register values for matching. CoreSight components where PID/CID pair is

Re: [PATCH] Documentation/process: hardcoded core.abbrev considered harmful!

2019-01-30 Thread Frank Rowand
On 1/29/19 4:18 PM, Stephen Rothwell wrote: > Hi all, > > On Thu, 20 Dec 2018 01:01:12 +0100 Ævar Arnfjörð Bjarmason > wrote: >> >> Stop recommending that core.abbrev=12 be hardcoded when referring to >> kernel commits, and instead rely on the git's default abbreviation. >> >> Hardcoding this

Re: [RFC PATCH] cpufreq / cppc: Work around for Hisilicon CPPC cpufreq

2019-01-30 Thread Rafael J. Wysocki
On Thursday, January 17, 2019 12:00:11 PM CET Xiongfeng Wang wrote: > Hisilicon chips do not support delivered performance counter register > and reference performance counter register. But the platform can > calculate the real performance using its own method. This patch provide > a workaround

Re: [PATCH] clk: fractional-divider: check parent rate only for general approximation

2019-01-30 Thread Katsuhiro Suzuki
Hello Stephen, Thank you for your comment. I'll add detail description and send it. Best Regards, Katsuhiro Suzuki On 2019/01/30 6:55, Stephen Boyd wrote: Quoting Katsuhiro Suzuki (2019-01-07 05:21:24) Custom approximation of fractional-divider may not need parent clock rate checking. For

linux-next: build warning after merge of the wireless-drivers-next tree

2019-01-30 Thread Stephen Rothwell
Hi all, After merging the wireless-drivers-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:195:13: warning: 'iwl_mvm_add_rtap_sniffer_config' defined but not used [-Wunused-function] static void

Re: [driver-core PATCH v10 3/9] driver core: Probe devices asynchronously instead of the driver

2019-01-30 Thread Rafael J. Wysocki
On Tuesday, January 22, 2019 7:39:21 PM CET Alexander Duyck wrote: > Probe devices asynchronously instead of the driver. This results in us > seeing the same behavior if the device is registered before the driver or > after. This way we can avoid serializing the initialization should the > driver

Re: [driver-core PATCH v10 6/9] driver core: Attach devices on CPU local to device node

2019-01-30 Thread Rafael J. Wysocki
On Tuesday, January 22, 2019 7:39:37 PM CET Alexander Duyck wrote: > Call the asynchronous probe routines on a CPU local to the device node. By > doing this we should be able to improve our initialization time > significantly as we can avoid having to access the device from a remote > node which

Re: [RFC PATCH] drivers core: cpu: add hotplug callback to update cpu_dev state to resumed

2019-01-30 Thread Rafael J. Wysocki
On Friday, January 25, 2019 4:09:06 PM CET Sudeep Holla wrote: > The sysfs for the cpu caches are managed by adding devices with cpu > as the parent in cpu_device_create() when secondary cpu is brought > onlin. Generally when the secondary CPUs are hotplugged back is as part > of resume from

Re: [PATCH v2 2/7] coresight: perf: Add "sinks" group to PMU directory

2019-01-30 Thread Mathieu Poirier
On Wed, 30 Jan 2019 at 10:42, Suzuki K Poulose wrote: > > Hi Mathieu, > > > On 01/22/2019 06:11 PM, Mathieu Poirier wrote: > > Add a "sinks" directory entry so that users can see all the sinks > > available in the system in a single place. Individual sink are added > > as they are registered

[PATCH] clk: fractional-divider: check parent rate only for general approximation

2019-01-30 Thread Katsuhiro Suzuki
Custom approximation of fractional-divider may not need parent clock rate checking. For example Rockchip SoCs work fine using grand parent clock rate even if target rate is greater than parent. This patch removes parent clock rate check from custom approximation. For detailied example, clock

Re: linux-next: build warning after merge of the wireless-drivers-next tree

2019-01-30 Thread Luca Coelho
On Thu, 2019-01-31 at 10:46 +1100, Stephen Rothwell wrote: > Hi all, > > After merging the wireless-drivers-next tree, today's linux-next > build > (x86_64 allmodconfig) produced this warning: > > drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:195:13: warning: > 'iwl_mvm_add_rtap_sniffer_config'

Re: [PATCH v7 0/3] Move pm_runtime accounted time to raw nsec

2019-01-30 Thread Rafael J. Wysocki
On Wednesday, January 23, 2019 8:50:12 AM CET Vincent Guittot wrote: > Move pm_runtime accounted time to raw nsec. The subject of the patchset > has changed as 1st patch o the previous versions has been queued by > Rafael. > > Patch 1 set accounting_timestamp to 0 in pm_runtime_init and update it

Re: [PATCH] PM / wakeup: fix comment of pm_wakeup_dev_event()

2019-01-30 Thread Rafael J. Wysocki
On Thursday, January 24, 2019 1:26:33 PM CET Pavel Machek wrote: > > --tThc/1wpZn/ma/RB > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Wed 2019-01-23 11:22:01, Yangtao Li wrote: > > This brings the kernel doc in

Re: [LSF/MM TOPIC] memory reclaim with NUMA rebalancing

2019-01-30 Thread Yang Shi
On Wed, Jan 30, 2019 at 9:48 AM Michal Hocko wrote: > > Hi, > I would like to propose the following topic for the MM track. Different > group of people would like to use NVIDMMs as a low cost & slower memory > which is presented to the system as a NUMA node. We do have a NUMA API > but it doesn't

Re: [PATCH] cpufreq: Use struct kobj_attribute instead of struct global_attr

2019-01-30 Thread Rafael J. Wysocki
On Friday, January 25, 2019 8:23:07 AM CET Viresh Kumar wrote: > The cpufreq_global_kobject is created using kobject_create_and_add() > helper, which assigns the kobj_type as dynamic_kobj_ktype and show/store > routines are set to kobj_attr_show() and kobj_attr_store(). > > These routines pass

Re: [PATCH v5 1/9] thermal: cpu_cooling: Require thermal core to be compiled in

2019-01-30 Thread Rafael J. Wysocki
On Tuesday, January 29, 2019 5:55:07 AM CET Amit Kucheria wrote: > The CPU cooling driver (cpu_cooling.c) allows the platform's cpufreq > driver to register as a cooling device and cool down the platform by > throttling the CPU frequency. In order to be able to auto-register a > cpufreq driver as

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggerede

2019-01-30 Thread Thomas Gleixner
On Wed, 30 Jan 2019, Paul E. McKenney wrote: > On Thu, Jan 31, 2019 at 12:13:51AM +0100, Thomas Gleixner wrote: > > I might be wrong as usual, but this would definitely explain the fail very > > well. > > On recent versions of GCC, the fix would be to put this between the two > stores that need

Re: [for next][PATCH 1/2] mfd: Fix unmet dependency warning for MFD_TPS68470

2019-01-30 Thread Rafael J. Wysocki
On Monday, January 28, 2019 8:21:56 AM CET Lee Jones wrote: > On Thu, 24 Jan 2019, Sinan Kaya wrote: > > > On 1/24/2019 5:51 AM, Rafael J. Wysocki wrote: > > > Is anyone taking this or should I? > > > > Nobody replied to this yet. I was hoping this series to go through acpi > > tree like the

Re: [for next][PATCH v3 1/2] platform/x86: Fix unmet dependency warning for ACPI_CMPC

2019-01-30 Thread Rafael J. Wysocki
On Thursday, January 24, 2019 10:32:56 PM CET Andy Shevchenko wrote: > On Thu, Jan 24, 2019 at 9:31 PM Sinan Kaya wrote: > > > > Add BACKLIGHT_LCD_SUPPORT for ACPI_CMPC to fix the > > warning: unmet direct dependencies detected for BACKLIGHT_CLASS_DEVICE. > > > > ACPI_CMPC selects

<    5   6   7   8   9   10   11   12   13   >