Re: [PATCH v4] Drivers: hv: vmbus: Expose monitor data only when monitor pages are used

2019-03-03 Thread Greg KH
On Fri, Mar 01, 2019 at 02:18:24PM -0500, Kimberly Brown wrote: > +/* > + * Channel-level attribute_group callback function. Returns the permission > for > + * each attribute, and returns 0 if an attribute is not visible. > + */ > +static umode_t vmbus_chan_attr_is_visible(struct kobject *kobj, >

RE: [PATCH 11/12] percpu: convert chunk hints to be based on pcpu_block_md

2019-03-03 Thread Peng Fan
> -Original Message- > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > Behalf Of Dennis Zhou > Sent: 2019年2月28日 10:19 > To: Dennis Zhou ; Tejun Heo ; Christoph > Lameter > Cc: Vlad Buslov ; kernel-t...@fb.com; > linux...@kvack.org; linux-kernel@vger.kernel.org > Sub

[PATCH] ext4: do prefetchw while the page pointer has been updated

2019-03-03 Thread Liu Xiang
When pages is not NULL, prefetchw(&page->flags) always works on the last consumed page. This might do little improvment for handling current page. It is better to do prefetchw while the page pointer has just been updated. Signed-off-by: Liu Xiang --- fs/ext4/readpage.c | 7 +-- 1 file change

RE: [PATCH 12/12] percpu: use chunk scan_hint to skip some scanning

2019-03-03 Thread Peng Fan
> -Original Message- > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > Behalf Of Dennis Zhou > Sent: 2019年2月28日 10:19 > To: Dennis Zhou ; Tejun Heo ; Christoph > Lameter > Cc: Vlad Buslov ; kernel-t...@fb.com; > linux...@kvack.org; linux-kernel@vger.kernel.org > Sub

RE: [PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-03-03 Thread Peng Fan
> -Original Message- > From: Dennis Zhou [mailto:den...@kernel.org] > Sent: 2019年3月3日 6:24 > To: Peng Fan > Cc: Tejun Heo ; Christoph Lameter ; Vlad > Buslov ; kernel-t...@fb.com; linux...@kvack.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 02/12] percpu: do not search past b

RE: [PATCH 04/12] percpu: manage chunks based on contig_bits instead of free_bytes

2019-03-03 Thread Peng Fan
> -Original Message- > From: Dennis Zhou [mailto:den...@kernel.org] > Sent: 2019年3月3日 6:32 > To: Peng Fan > Cc: Tejun Heo ; Christoph Lameter ; Vlad > Buslov ; kernel-t...@fb.com; linux...@kvack.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 04/12] percpu: manage chunks based

RE: [PATCH 1/2] percpu: km: remove SMP check

2019-03-03 Thread Peng Fan
> -Original Message- > From: Dennis Zhou [mailto:den...@kernel.org] > Sent: 2019年2月28日 0:41 > To: Peng Fan > Cc: Dennis Zhou ; Christopher Lameter ; > t...@kernel.org; linux...@kvack.org; linux-kernel@vger.kernel.org; > van.free...@gmail.com > Subject: Re: [PATCH 1/2] percpu: km: remove

[PATCH 0/2] Thermal MMIO Driver

2019-03-03 Thread Talel Shenhar
This series introduces the generic thermal MMIO driver that will use memory mapped reads to get the temperature. Any HW/System that allows temperature reading by a single memory-mapped reading, be it register or shared memory, is a potential candidate to work with this driver. This driver is most

[PATCH 2/2] thermal: Introduce thermal MMIO

2019-03-03 Thread Talel Shenhar
This patch introduces a generic thermal driver, which enables easy connectivity between "simple" thermal HW devices and the thermal subsystem. "simple" may be any system that allows temperature reading via a single memory-mapped read, be it register or shared memory, and that doesn't require any H

[PATCH 1/2] dt-bindings: thermal: thermal_mmio: Add binding documentation

2019-03-03 Thread Talel Shenhar
Add thermal binding documentation for thermal MMIO driver. Signed-off-by: Talel Shenhar --- .../devicetree/bindings/thermal/thermal_mmio.txt | 173 + 1 file changed, 173 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/thermal_mmio.txt diff --git

Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-03-03 Thread Michael Ellerman
Nicholas Piggin writes: > Will Deacon's on March 2, 2019 12:03 am: >> In preparation for removing all explicit mmiowb() calls from driver >> code, implement a tracking system in asm-generic based loosely on the >> PowerPC implementation. This allows architectures with a non-empty >> mmiowb() defin

Re: kernel BUG at include/linux/mm.h:LINE! (4)

2019-03-03 Thread Dmitry Vyukov
On Sat, Mar 2, 2019 at 9:05 PM Eric Biggers wrote: > > On Fri, Mar 01, 2019 at 11:05:05PM -0800, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:42fd8df9d1d9 Add linux-next specific files for 20190228 > > git tree: linux-next > > console output:

Re: [PATCH v2] RDMA/umem: minor bug fix and cleanup in error handling paths

2019-03-03 Thread Artemy Kovalyov
On 02/03/2019 21:44, Ira Weiny wrote: On Sat, Mar 02, 2019 at 12:24:35PM -0800, john.hubb...@gmail.com wrote: From: John Hubbard ... 3. Dead code removal: the check for (user_virt & ~page_mask) is checking for a condition that can never happen, because earlier: user_virt = user_virt

Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-03-03 Thread Nicholas Piggin
Linus Torvalds's on March 3, 2019 2:29 pm: > On Sat, Mar 2, 2019, 19:34 Nicholas Piggin wrote: > >> >> It doesn't have to be done all at once with this series, obviously this >> is a big improvement on its own. But why perpetuate the nomenclature >> and concept for new code added now? >> > > Wha

Re: [mt76/mt7603/mac] Question about missing variable assignment

2019-03-03 Thread Felix Fietkau
On 2019-03-02 22:10, Gustavo A. R. Silva wrote: > Hi all, > > The following piece of code in drivers/net/wireless/mediatek/mt76/mt7603/mac.c > is missing a variable assignment before line 1058. Notice that there > is a potential execution path in which variable *i* is compared against > magic num

Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking

2019-03-03 Thread Nicholas Piggin
Michael Ellerman's on March 3, 2019 7:26 pm: > Nicholas Piggin writes: >> Will Deacon's on March 2, 2019 12:03 am: >>> In preparation for removing all explicit mmiowb() calls from driver >>> code, implement a tracking system in asm-generic based loosely on the >>> PowerPC implementation. This allo

KASAN: use-after-free Read in unix_dgram_poll

2019-03-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7d762d69145a afs: Fix manually set volume location server .. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=131d832ac0 kernel config: https://syzkaller.appspot.com/x/.config?x=b76ec970784287c das

Re: [PATCH v3] mm/memory.c: do_fault: avoid usage of stale vm_area_struct

2019-03-03 Thread Matthew Wilcox
On Sun, Mar 03, 2019 at 08:28:04AM +0100, Jan Stancek wrote: > Cache mm_struct to avoid using potentially stale "vma". > > [1] > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/mem/mtest06/mmap1.c > > Signed-off-by: Jan Stancek > Reviewed-by: Andrea Arcangeli Reviewed-b

Re: [PATCH] platform/x86: touchscreen_dmi: Add info for the CHUWI Hi10 Air tablet

2019-03-03 Thread Hans de Goede
Hi, On 01-03-19 17:40, m...@myself5.de wrote: From: Christian Oder Add touchscreen info for the CHUWUI Hi10 Air tablet. Signed-off-by: Christian Oder Thank you for the patch, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans --- drivers/platform/x86/touchscreen_dm

Re: False positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops

2019-03-03 Thread Hans de Goede
Hi, On 21-02-19 13:30, Hans de Goede wrote: Hi, On 19-02-19 22:47, Lendacky, Thomas wrote: On 2/19/19 3:01 PM, Thomas Gleixner wrote: Hans, On Tue, 19 Feb 2019, Hans de Goede wrote: Cc+: ACPI/AMD folks Various people are reporting false positive "do_IRQ: #.55 No irq handler for vector" me

Re: [RFC PATCH 2/2] ceph: quota: fix quota subdir mounts

2019-03-03 Thread Luis Henriques
Jeff Layton writes: > On Fri, 2019-03-01 at 17:57 +, Luis Henriques wrote: >> The CephFS kernel client doesn't enforce quotas that are set in a >> directory that isn't visible in the mount point. For example, given the >> path '/dir1/dir2', if quotas are set in 'dir1' and the mount is done i

Re: [PATCH v2 1/4] staging: iio: ad5933: add SPDX identifier

2019-03-03 Thread Jonathan Cameron
On Thu, 28 Feb 2019 23:52:30 -0300 Marcelo Schmitt wrote: > Add SPDX identifier of GPL-2.0 for the ad5933 driver. > Organize imports. > Make multi-line comments compliant with the preferred code style. One type of change per patch please. So this is at least 3 patches. SPDX, Imports, comment sty

Re: [PATCH v2 2/4] staging: iio: ad5933: change help rule message

2019-03-03 Thread Jonathan Cameron
On Thu, 28 Feb 2019 23:52:58 -0300 Marcelo Schmitt wrote: > Remove the previous comment about direct access via sysfs which would > lead one think ad5933 driver has limitations it actually doesn't. > > Signed-off-by: Marcelo Schmitt This is fine. Will pick up once the rest of the series is read

Re: [PATCH v2 3/4] staging: iio: ad5933: add ABI documentation

2019-03-03 Thread Jonathan Cameron
On Thu, 28 Feb 2019 23:53:14 -0300 Marcelo Schmitt wrote: > Add an ABI documentation for the ad5933 driver. > > Signed-off-by: Marcelo Schmitt Hi Marcelo, The ABI that you have defined which is actually new is mostly fine, however it seems that some of the existing ABI is not used correctly an

Re: [PATCH v2 4/4] staging: iio: ad5933: move out of staging

2019-03-03 Thread Jonathan Cameron
On Thu, 28 Feb 2019 23:53:31 -0300 Marcelo Schmitt wrote: > Move ad5933 impedance-analyzer driver from staging to mainline. > > The ad5933 is a high precision impedance converter system solution that > combines an on-board frequency generator with an analog-to-digital > converter (ADC). This dri

Gooday To You,

2019-03-03 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2019-03-03 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2019-03-03 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2019-03-03 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

[PATCH] arm64: dts: rockchip: decrease rising edge time of UART2

2019-03-03 Thread Katsuhiro Suzuki
This patch increases drive strength of UART2 from 3mA to 12mA for getting more faster rising edge. RockPro64 is using a very high speed rate (1.5Mbps) for UART2. In this setting, a bit width of UART is about 667ns. In my environment (RockPro64 UART2 with FTDI FT232RL UART-USB converter), falling

[PATCH] docs: add extra integer types to printk-formats

2019-03-03 Thread Louis Taylor
A few commonly used integer types were absent from this table, so add them. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Suggested-by: Nick Desaulniers Signed-off-by: Louis Taylor --- Documentation/core-api/printk-formats.rst | 8 1 file changed, 8 insertions(+) diff --gi

Re: [PATCH v3 1/7] iio: imu: adis16480: Add support for configurable drdy indicator

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:22 +0200 Stefan Popa wrote: > The FNCTIO_CTRL register provides configuration control for each I/O pin > (DIO1, DIO2, DIO3 and DIO4). > > This patch adds the option to configure each DIOx pin as data ready > indicator with positive or negative polarity by reading the 'i

Re: [PATCH v3 2/7] iio: imu: adis16480: Add OF device ID table

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:23 +0200 Stefan Popa wrote: > The driver does not have a struct of_device_id table, but supported > devices are registered via Device Trees. This patch adds OF device ID > table. > > Signed-off-by: Stefan Popa Applied to the togreg branch of iio.git and pushed out as t

Re: [PATCH v3 3/7] iio: imu: adis16480: Treat temperature scale in a generic way

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:24 +0200 Stefan Popa wrote: > All supported devices provide internal temperature measurement from -40 C > to +85 C, with +25 C representing value 0x00. > > This patch treats the temperature scale in a generic way, similar to the > accelerometer and gyroscope scales. So

Re: [PATCH v4 2/6] uaccess: Use user_access_ok() in user_access_begin()

2019-03-03 Thread kbuild test robot
/commits/Masami-Hiramatsu/tracing-probes-uaccess-Add-support-user-space-access/20190303-150015 config: riscv-defconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross

Re: [PATCH v3 4/7] iio: imu: adis16480: Calculate the sampling frequency in a generic way

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:25 +0200 Stefan Popa wrote: > The adis1648x devices have an internal clock of 2.46 kSPS. The sampling > frequency is calculated by applying a decimation rate which can take the > maximum value of 2047. > > Although all adis1648x devices are similar in this regard, devic

Re: [PATCH v3 5/7] iio: imu: adis16480: Deal with filter freq in a generic way

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:26 +0200 Stefan Popa wrote: > When setting the filter frequency, the driver looks into the > adis16480_def_filter_freqs table for the best match. Pass this table to > the chip_info struct since future devices will need to use a different > table. > > Signed-off-by: Stef

From Mrs. Elia Rodrigues,

2019-03-03 Thread Mrs. Elia Rodrigues
Hello I am Mrs. Elia Rodrigues I have been diagnosed with cancer. It has defied all forms of medical treatment, and right now I have only about a few months to live, according to medical experts. I have not particularly lived my life so well, as I never really cared for anyone (not even mys

Re: [PATCH v3 6/7] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:27 +0200 Stefan Popa wrote: > The ADIS16495 and ADIS16497 are inertial systems that include a triaxis > gyroscope and a triaxis accelerometer. The serial peripheral interface > (SPI) provide a simple interface for data collection and configuration > control. The devices

Re: [PATCH v3 7/7] iio: imu: adis16480: Add docs for ADIS16480 IMU

2019-03-03 Thread Jonathan Cameron
On Wed, 27 Feb 2019 18:14:28 +0200 Stefan Popa wrote: > Document support for ADIS16480 Inertial Measurement Unit. > > Signed-off-by: Stefan Popa > Reviewed-by: Rob Herring Applied. Thanks, Jonathan > --- > .../devicetree/bindings/iio/imu/adi,adis16480.txt | 49 > ++ >

Re: [PATCH v5 1/2] iio:temperature:max31856:Add device tree bind info

2019-03-03 Thread Jonathan Cameron
On Thu, 28 Feb 2019 16:15:55 +0100 Patrick Havelange wrote: > On Thu, Feb 28, 2019 at 12:59 AM Rob Herring wrote: > > > > On Tue, Feb 26, 2019 at 04:02:13PM +0100, Patrick Havelange wrote: > > > From: Paresh Chaudhary > > > > > > This patch added device tree binding info for MAX31856 driver.

Re: [PATCH v5 2/2] iio:temperature: Add MAX31856 thermocouple support

2019-03-03 Thread Jonathan Cameron
On Tue, 26 Feb 2019 16:02:14 +0100 Patrick Havelange wrote: > From: Paresh Chaudhary > > This patch adds support for Maxim MAX31856 thermocouple > temperature sensor support. > > More information can be found in: > https://www.maximintegrated.com/en/ds/MAX31856.pdf > > NOTE: Driver support on

Re: [PATCH] docs: driver-api: iio: fix errors in documentation

2019-03-03 Thread Jonathan Cameron
On Mon, 25 Feb 2019 21:23:26 +0100 Tomasz Duszynski wrote: > Improve IIO documentation by fixing a few mistakes. > > Signed-off-by: Tomasz Duszynski Acked-by: Jonathan Cameron Thanks, Jonathan > --- > Documentation/driver-api/iio/buffers.rst | 2 +- > Documentation/driver-api/iio/core

Re: [PATCH] arm64: dts: rockchip: decrease rising edge time of UART2

2019-03-03 Thread Heiko Stuebner
Hi, Am Sonntag, 3. März 2019, 13:27:05 CET schrieb Katsuhiro Suzuki: > This patch increases drive strength of UART2 from 3mA to 12mA for > getting more faster rising edge. > > RockPro64 is using a very high speed rate (1.5Mbps) for UART2. In > this setting, a bit width of UART is about 667ns. >

Re: [PATCH v3 1/3] staging: iio: frequency: ad9834: Move frequency to standard iio types

2019-03-03 Thread Jonathan Cameron
On Mon, 25 Feb 2019 21:17:30 +0200 Beniamin Bia wrote: > Frequency attribute is added with a standard type from iio framework > instead of custom attribute. This is a small step towards removing any > unnecessary custom attribute. Ad9834 will diverge from ad9833 in the > future, that is why we ha

Re: [PATCH v3 2/3] staging: iio: frequency: ad9834: Move phase and scale to standard iio attribute

2019-03-03 Thread Jonathan Cameron
On Mon, 25 Feb 2019 21:17:31 +0200 Beniamin Bia wrote: > The custom phase and scale attributes were moved to standard iio types. > > Signed-off-by: Beniamin Bia > --- > Changes in v3: > -abi documentation added > > .../testing/sysfs-bus-iio-frequency-ad9834| 10 ++-- > drivers/sta

Re: [PATCH v2] iio: chemical: sps30: fix attribute kernel version

2019-03-03 Thread Jonathan Cameron
On Mon, 25 Feb 2019 19:17:40 +0100 Tomasz Duszynski wrote: > 4.22 have never existed and this change was actually added to 5.0 > hence fix the numbering. > > Signed-off-by: Tomasz Duszynski Applied. Thanks. Jonathan > --- > v2: > * this is targeting 5.0 hence fix the version > > Documentat

Re: [PATCH] iio: adc: ad7766: Change alignment to match paranthesis

2019-03-03 Thread Jonathan Cameron
On Sun, 24 Feb 2019 18:40:10 -0300 Camylla Gonçalves Cantanheide wrote: > This commit align broken line to match upper line parenthesis, > in lines 80, 130, 237, 242, 255, 264 and 293. Solves the checkpatch.pl's > message: > > CHECK: Alignment should match open parenthesis > > In lines 130, 25

Re: [PATCH 0/3] Add leds, ir and fix regulator name on rk3328-rock64

2019-03-03 Thread Heiko Stuebner
Am Samstag, 2. März 2019, 17:56:56 CET schrieb Jonas Karlman: > This patchset fixes two regulator names and adds nodes to > enable use of leds and ir on Rock64. > > Jonas Karlman (3): > arm64: dts: rockchip: fix regulator name on rk3328-rock64 > arm64: dts: rockchip: add leds node on rk3328-ro

[PATCH v2] platform/x86: touchscreen_dmi: Add info for the CHUWI Hi10 Air tablet

2019-03-03 Thread Christian Oder
Add touchscreen info for the CHUWUI Hi10 Air tablet. Signed-off-by: Christian Oder Reviewed-by: Hans de Goede --- Changes in v2: - added review tag drivers/platform/x86/touchscreen_dmi.c | 27 ++ 1 file changed, 27 insertions(+) diff --git a/drivers/platform/x86/touch

Re: [PATCH v4 0/9] staging: iio: ad7780: move out of staging

2019-03-03 Thread Renato Lui Geh
Hi Alexandru, Thanks for the review. Some questions inline. Thanks, Renato On 03/01, Ardelean, Alexandru wrote: On Thu, 2019-02-28 at 11:23 -0300, Renato Lui Geh wrote: The patch-series is a bit big. I guess that the intent is to move this out-of-staging, but various patches are holding th

Re: [PATCH] arm64: dts: rockchip: enable HDMI CEC on rk3328

2019-03-03 Thread Heiko Stuebner
Am Samstag, 2. März 2019, 17:37:09 CET schrieb Jonas Karlman: > This patch enables HDMI CEC on RK3328 devices > > Signed-off-by: Jonas Karlman applied for 5.2. I've added another sentence to the commit messsage for the origin of the (unusual) cec clock, marking the vendor-kernel as source. Heik

Re: KASAN: use-after-free Read in unix_dgram_poll

2019-03-03 Thread Al Viro
On Sun, Mar 03, 2019 at 02:22:04AM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:7d762d69145a afs: Fix manually set volume location server .. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=131d832ac0 > kernel

Re: [PATCH v3 1/2] arm64: dts: rockchip: add #sound-dai-cells to HDMI of rk3328

2019-03-03 Thread Heiko Stuebner
Am Sonntag, 17. Februar 2019, 18:34:06 CET schrieb Katsuhiro Suzuki: > This patch adds #sound-dai-cells to use HDMI node as audio > codec from device tree of rk3328 boards. > > Signed-off-by: Katsuhiro Suzuki applied for 5.2 . I'm holding off of patch2 for a bit until you and Jonas can clarify

Re: [PATCH v2] platform/x86: touchscreen_dmi: Add info for the CHUWI Hi10 Air tablet

2019-03-03 Thread Hans de Goede
Hi Christian, On 03-03-19 14:47, Christian Oder wrote: Add touchscreen info for the CHUWUI Hi10 Air tablet. Signed-off-by: Christian Oder Reviewed-by: Hans de Goede --- Changes in v2: - added review tag A quick note for any patches you may submit in the future, there is no need to send a v

Re: [PATCH v4 4/9] staging:iio:ad7780: add chip ID values and mask

2019-03-03 Thread Renato Lui Geh
On 03/01, Ardelean, Alexandru wrote: On Thu, 2019-02-28 at 11:24 -0300, Renato Lui Geh wrote: The ad7780 supports both the ad778x and ad717x families. Each chip has a corresponding ID. This patch provides a mask for extracting ID values from the status bits and also macros for the correct valu

Re: [PATCH] arm64: dts: rockchip: decrease rising edge time of UART2

2019-03-03 Thread Katsuhiro Suzuki
Hello Heiko, Thank you for comments. On 2019/03/03 22:19, Heiko Stuebner wrote: Hi, Am Sonntag, 3. März 2019, 13:27:05 CET schrieb Katsuhiro Suzuki: This patch increases drive strength of UART2 from 3mA to 12mA for getting more faster rising edge. RockPro64 is using a very high speed rate (1

Re: [PATCH] rsi: Fix NULL pointer dereference in kmalloc

2019-03-03 Thread Johannes Berg
On Sat, 2019-03-02 at 14:31 -0600, Aditya Pakki wrote: > kmalloc can fail in rsi_register_rates_channels but memcpy still attempts > to write to channels. The patch checks and avoids such a situation. > > Signed-off-by: Aditya Pakki > --- > drivers/net/wireless/rsi/rsi_91x_mac80211.c | 10 ++

Re: [PATCH v4 0/9] staging: iio: ad7780: move out of staging

2019-03-03 Thread Alexandru Ardelean
On Sun, Mar 3, 2019 at 3:52 PM Renato Lui Geh wrote: > > Hi Alexandru, > > Thanks for the review. Some questions inline. > > Thanks, > Renato > > On 03/01, Ardelean, Alexandru wrote: > >On Thu, 2019-02-28 at 11:23 -0300, Renato Lui Geh wrote: > >> > > > >The patch-series is a bit big. > >I guess t

[PATCH -next] workqueue: fix a memory leak in wq->lock_name

2019-03-03 Thread Qian Cai
The linux-next commit 669de8bda87b ("kernel/workqueue: Use dynamic lockdep keys for workqueues") introduced a memory leak as wq_free_lockdep() calls kfree(wq->lock_name) but wq_init_lockdep() does not point wq->lock_name to the newly allocated slab object. This can be reproduced by running LTP fall

Re: [PATCH v2 1/3] iio: light: Add driver for ap3216c

2019-03-03 Thread Jonathan Cameron
On Thu, 28 Feb 2019 11:49:54 -0500 Sven Van Asbroeck wrote: > Hi, comments inline. > > On Sun, Feb 24, 2019 at 3:36 PM Robert Eshleman > wrote: > > > > This patch adds support for the ap3216c ambient light and proximity > > sensor. > > > > Supported features include: > > > > *

Re: [PATCH 1/2] dt-bindings: iio: stm32-lptimer-counter: document pinctrl sleep state

2019-03-03 Thread Jonathan Cameron
On Mon, 25 Feb 2019 11:42:46 +0100 Fabrice Gasnier wrote: > Add documentation for optional pinctrl sleep state that can be used by > STM32 LPTimer encoder/counter. > > Signed-off-by: Fabrice Gasnier Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play w

Re: [PATCH 2/2] iio: counter: stm32-lptimer: Add power management support

2019-03-03 Thread Jonathan Cameron
On Mon, 25 Feb 2019 11:42:47 +0100 Fabrice Gasnier wrote: > Add suspend/resume PM sleep ops. When going to low power, disable > active counter. Only active counter should be resumed: don't touch > disabled counter, as it may be used by other LPTimer MFD child driver. > > Signed-off-by: Fabrice G

Re: [PATCH 1/4] iio:adc:ad7923: Align broken line to parenthesis

2019-03-03 Thread Jonathan Cameron
On Fri, 22 Feb 2019 17:31:56 -0300 Bárbara Fernandes wrote: > Get broken line aligned with parenthesis on upper line. Solves > checkpatch.pl's message: > > CHECK: Alignment should match open parenthesis > > Signed-off-by: Bárbara Fernandes Applied to the togreg branch of iio.git and pushed out

Re: [PATCH 2/4] iio:adc:ad7923: Use BIT macro instead of bitshift

2019-03-03 Thread Jonathan Cameron
On Fri, 22 Feb 2019 17:31:57 -0300 Bárbara Fernandes wrote: > Replace use of the operation '<<' by the BIT macro. Solves checkpath.pl's > message: > > CHECK: Prefer using the BIT macro > > Signed-off-by: Bárbara Fernandes Applied. Thanks, Jonathan > --- > drivers/iio/adc/ad7923.c | 6 +++--

Re: [PATCH 3/4] iio:adc:ad7923: Put macro argument between ()'s

2019-03-03 Thread Jonathan Cameron
On Fri, 22 Feb 2019 17:31:58 -0300 Bárbara Fernandes wrote: > Put macro argument between parenthesis in order to avoid precedence > issues. Solves the following checkpath.pl's messages: > > CHECK: Macro argument 'mode' may be better as '(mode)' to avoid > precedence issues > CHECK: Macro argumen

Re: [PATCH 4/4] iio:adc:ad7923: Rewrite comparison to NULL

2019-03-03 Thread Jonathan Cameron
On Fri, 22 Feb 2019 17:31:59 -0300 Bárbara Fernandes wrote: > Solves checkpath.pl's message: > > CHECK: Comparison to NULL could be written "!indio_dev" > > Signed-off-by: Bárbara Fernandes Applied, thanks. It's nice to get some cleanup for drivers that aren't in staging sometimes. After all

Re: [PATCH v4 4/9] staging:iio:ad7780: add chip ID values and mask

2019-03-03 Thread Jonathan Cameron
On Sun, 3 Mar 2019 11:01:09 -0300 Renato Lui Geh wrote: > On 03/01, Ardelean, Alexandru wrote: > >On Thu, 2019-02-28 at 11:24 -0300, Renato Lui Geh wrote: > >> > >> > >> The ad7780 supports both the ad778x and ad717x families. Each chip has > >> a corresponding ID. This patch provides a mask fo

Re: [PATCH v2 01/10] iio: Allow to read mount matrix from ACPI

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:46 +0100 "H. Nikolaus Schaller" wrote: > From: Andy Shevchenko > > Currently mount matrix is allowed in Device Tree, though there is > no technical issue to extend it to support ACPI. > > Convert the function to use device_property_read_string_array() and > thus allow

Re: [PATCH] arm64: dts: rockchip: decrease rising edge time of UART2

2019-03-03 Thread Tony McKahan
On Sun, Mar 3, 2019 at 9:04 AM Katsuhiro Suzuki wrote: > > Hello Heiko, > > Thank you for comments. > > On 2019/03/03 22:19, Heiko Stuebner wrote: > > Hi, > > > > Am Sonntag, 3. März 2019, 13:27:05 CET schrieb Katsuhiro Suzuki: > >> This patch increases drive strength of UART2 from 3mA to 12mA for

Re: [RFC PATCH] KVM: arm64: Force a PTE mapping when logging is enabled

2019-03-03 Thread Zenghui Yu
I think there're still some problems in this patch... Details below. On Sat, Mar 2, 2019 at 11:39 AM Zenghui Yu wrote: > > The idea behind this is: we don't want to keep tracking of huge pages when > logging_active is true, which will result in performance degradation. We > still need to set vma

[PATCH] aio: prevent the final fput() in the middle of vfs_poll() (Re: KASAN: use-after-free Read in unix_dgram_poll)

2019-03-03 Thread Al Viro
On Sun, Mar 03, 2019 at 01:55:02PM +, Al Viro wrote: > Maybe unrelated to this bug, but... What's to prevent a wakeup > that happens just after we'd been added to a waitqueue by ->poll() > triggering aio_poll_wake(), which gets to aio_poll_complete() > with its fput() *before* we'd reached th

Re: [PATCH v2 02/10] iio: document bindings for mounting matrices

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:47 +0100 "H. Nikolaus Schaller" wrote: > From: Linus Walleij > > The mounting matrix for sensors was introduced in > commit dfc57732ad38 ("iio:core: mounting matrix support") > > However the device tree bindings are very terse and since this is > a widely applicable p

Re: [PATCH v2 03/10] iio: accel: bmc150: add mount matrix support

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:48 +0100 "H. Nikolaus Schaller" wrote: > This patch allows to read a mount-matrix device tree > property and report to user-space or in-kernel iio > clients. > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/accel/bmc150-accel-co

Re: [PATCH][next] net/mlx5e: Remove redundant assignment

2019-03-03 Thread Roi Dayan
On 02/03/2019 21:39, Gustavo A. R. Silva wrote: > Remove redundant assignment to tun_entropy->enabled. > > Addesses-Coverity-ID: 1477328 ("Unused value") > Fixes: 97417f6182f8 ("net/mlx5e: Fix GRE key by controlling port tunnel > entropy calculation") the commit doesn't fix any real issue but

Re: [PATCH v2 04/10] iio: accel: bma180: add mount matrix support

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:49 +0100 "H. Nikolaus Schaller" wrote: > This patch allows to read a mount-matrix device tree > property and report to user-space or in-kernel iio > clients. > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/accel/bma180.c | 18 +

Re: [PATCH v2 05/10] iio: gyro: bmg160: add mount matrix support

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:50 +0100 "H. Nikolaus Schaller" wrote: > This patch allows to read a mount-matrix device tree > property and report to user-space or in-kernel iio > clients. > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, > --- > drivers/iio/gyro/bmg160_core.c | 21

Re: [PATCH v2 06/10] iio: gyro: itg3200: add mount matrix support

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:51 +0100 "H. Nikolaus Schaller" wrote: > This patch allows to read a mount-matrix device tree > property and report to user-space or in-kernel iio > clients. > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/gyro/itg3200_core.c

Re: [PATCH v2 07/10] iio: magnetometer: bmc150: add mount matrix support

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:52 +0100 "H. Nikolaus Schaller" wrote: > This patch allows to read a mount-matrix device tree > property and report to user-space or in-kernel iio > clients. > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/magnetometer/bmc150_ma

Re: [PATCH v2 08/10] iio: magnetometer: hmc5843: add mount matrix support

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:53 +0100 "H. Nikolaus Schaller" wrote: > This patch allows to read a mount-matrix device tree > property and report to user-space or in-kernel iio > clients. > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/magnetometer/hmc5843.

Re: [mt76/mt7603/mac] Question about missing variable assignment

2019-03-03 Thread Gustavo A. R. Silva
On 3/3/19 4:05 AM, Felix Fietkau wrote: > On 2019-03-02 22:10, Gustavo A. R. Silva wrote: >> Hi all, >> >> The following piece of code in >> drivers/net/wireless/mediatek/mt76/mt7603/mac.c >> is missing a variable assignment before line 1058. Notice that there >> is a potential execution path

Re: [PATCH v2 10/10] iio: ak8975: improve code readability

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:55 +0100 "H. Nikolaus Schaller" wrote: > - use temporary variable in get_mount_matrix() > - remove , after { } > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/magnetometer/ak8975.c | 8 +--- > 1 file changed, 5 insertions(+

Re: [PATCH v2 09/10] iio: mpu6050: improve code readability

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 18:02:54 +0100 "H. Nikolaus Schaller" wrote: > - use temporary variable in get_mount_matrix() > - remove , after { } > > Signed-off-by: H. Nikolaus Schaller Applied. Thanks, Jonathan > --- > drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 6 -- > 1 file changed, 4 inser

Re: [PATCH v2 00/10] iio mount matrix - revitalize missing bindings documentation and provide code for bmc150, bmg160, bma180, itg3200, hmc584x

2019-03-03 Thread Jonathan Cameron
On Fri, 22 Feb 2019 16:48:14 +0200 Andy Shevchenko wrote: > On Thu, Feb 21, 2019 at 7:04 PM H. Nikolaus Schaller > wrote: > > > > Fixes V2: > > * make get_mount_matrix() functions more readable (use temp variable) > > (suggested by Jonathan and Andy) > > * add these readability improvements a

Re: [PATCH v2 4/4] staging: iio: ad5933: move out of staging

2019-03-03 Thread kbuild test robot
/staging-iio-ad5933-move-out-of-staging/20190303-232039 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: xtensa-allyesconfig compiler: xtensa-linux-gcc (GCC) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-03 Thread Joel Fernandes
ld test ERROR on v5.0-rc8] > [cannot apply to next-20190301] > [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/Joel-Fernandes-Google/Provide-in-kernel-headers-for-makin

Re: [PATCH][next] iio: st_accel: remove redundant unsigned less than zero check

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 10:46:36 + Colin King wrote: > From: Colin Ian King > > The check that variable val is less than zero is redundant since val > is an unsigned int and hence can never be less than zero. Remove it. > > Signed-off-by: Colin Ian King Applied. Thanks, Jonathan > --- > d

Re: [PATCH] io: accel: kxcjk1013: restore the range after resume.

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 03:13:44 + "He, Bo" wrote: > restore the range register in case kxcjk1013 power is off after suspend > > we see the issue on some laptops, after system suspend and resume, > the CTRL_REG1 register changed from 0xc8 to 0x80, so acceleration range > is changed, the patch is

Re: KASAN: use-after-free Read in get_mem_cgroup_from_mm

2019-03-03 Thread zhong jiang
Hi, guys I also hit the following issue. but it fails to reproduce the issue by the log. it seems to the case that we access the mm->owner and deference it will result in the UAF. But it should not be possible that we specify the incomplete process to be the mm->owner. Any thoughts? Thanks, z

Re: [PATCH] iio: cros_ec_accel_legacy: Refactor code in cros_ec_accel_legacy_probe

2019-03-03 Thread Jonathan Cameron
On Thu, 21 Feb 2019 09:03:39 +0100 Enric Balletbo i Serra wrote: > On 21/2/19 8:00, Kees Cook wrote: > > On Wed, Feb 20, 2019 at 6:06 PM Gustavo A. R. Silva > > wrote: > >> > >> Refactor some code in order to fix both the technical implementation > >> and the following warnings: > >> > >> driv

Re: [PATCH] net: ipv6: add socket option IPV6_ROUTER_ALERT_ISOLATE

2019-03-03 Thread David Ahern
On 3/1/19 4:31 PM, Francesco Ruggeri wrote: > By default IPv6 socket with IPV6_ROUTER_ALERT socket option set will > receive all IPv6 RA packets from all namespaces. > IPV6_ROUTER_ALERT_ISOLATE socket option restricts packets received by > the socket to be only from the socket's namespace. > > Sig

[PATCH 9/9] HID: intel-ish-hid: Use the new interface functions in HID ish client

2019-03-03 Thread Srinivas Pandruvada
Only include intel-ish-client-if.h, which has all interfaces required to implment ISHTP client. There is no longer any direct field access from core ISHTP only include files. Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 68 +--- drivers/hi

[PATCH 5/9] HID: intel-ish-hid: Store ishtp_cl_device instance in device

2019-03-03 Thread Srinivas Pandruvada
Store ishtp_cl_device pointer in device struct private data. In this way we can get ishtp_cl_device * from device struct pointer. Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp/bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c

[PATCH 4/9] HID: intel-ish-hid: Move driver registry functions

2019-03-03 Thread Srinivas Pandruvada
Move the driver registry with the ishtp bus to the common interface file, which clients can include. Also rename __ishtp_cl_driver_register() to ishtp_cl_driver_register() and removed define for ishtp_cl_driver_register. Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp-hid-

[PATCH 7/9] HID: intel-ish-hid: Add interface functions for struct ishtp_cl

2019-03-03 Thread Srinivas Pandruvada
Instead of directly accessing members of struct ishtp_cl, create interface functions to access them. Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp/client.c | 42 include/linux/intel-ish-client-if.h | 7 2 files changed, 49 insertions(+

Re: [PATCH] iio: cros_ec: Fix gyro scale calculation

2019-03-03 Thread Jonathan Cameron
On Fri, 22 Feb 2019 11:24:24 +0100 Enric Balletbo i Serra wrote: > Hi Jonathan, > > On 20/2/19 17:01, Jonathan Cameron wrote: > > On Wed, 20 Feb 2019 16:03:00 +0100 > > Enric Balletbo i Serra wrote: > > > >> From: Gwendal Grignou > >> > >> Calculation was copied from IIO_DEGREE_TO_RAD, but

[PATCH 1/9] HID: intel-ish-hid: Add match callback to ishtp bus type

2019-03-03 Thread Srinivas Pandruvada
From: Hong Liu Currently we depend on the guid check in ishtp_cl_driver.probe to match the device and driver. However Linux device core first calls the match() callback to decide the matching of driver and device, and then does some preparation before calling the driver probe function. If we retu

[PATCH 2/9] HID: intel-ish-hid: Hide members of struct ishtp_cl_device

2019-03-03 Thread Srinivas Pandruvada
ISH clients don't need to access any field of struct ishtp_cl_device. To avoid this create an interface functions instead where it is required. In the case of ishtp_cl_allocate(), modify the parameters so that the clients don't have to dereference. Clients can also use tracing, here a new interface

[PATCH 0/9] HID: intel-ish-hid: Clean up external interfaces

2019-03-03 Thread Srinivas Pandruvada
FOR kernel v5.2+. No functional changes are expected with this series. I am posting this now because of usage of ISH in ChromeOS Embedded Controller. https://lkml.org/lkml/2019/2/24/26 I want to make sure that API is restricted before more development and posting there. Currently only one ISH cli

[PATCH 3/9] HID: intel-ish-hid: Simplify ishtp_cl_link()

2019-03-03 Thread Srinivas Pandruvada
All callers will only use ISHTP_HOST_CLIENT_ID_ANY, so get rid of option to pass this additional id. Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 2 +- drivers/hid/intel-ish-hid/ishtp/client.c | 14 -- drivers/hid/intel-ish-hid/ishtp/clie

  1   2   3   4   >