Re: [PATCH 4/6] arm64: tegra: Add XUSB and pad controller on Tegra186

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:30 PM, Thierry Reding wrote: From: Thierry Reding Adds the XUSB pad and XUSB controllers on Tegra186. Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 135 +++ 1 file changed, 135 insertions(+) diff --git

Re: [PATCH] selftests/seccomp: Actually sleep for 1/10th second

2019-01-27 Thread Kees Cook
On Mon, Jan 28, 2019 at 8:37 AM Nick Desaulniers wrote: > So this test has been broken? If so, do you know for how long? Or > who's monitoring them? Either way, thanks for noticing and fixing. No, it's been working fine. It just consumes 100% cpu during the spin-wait. The intention was to sleep

Re: [PATCH v2 3/3] dt-bindings: iio: chemical: pms7003: add device tree support

2019-01-27 Thread Johan Hovold
On Sun, Jan 27, 2019 at 07:19:16PM +0100, Tomasz Duszynski wrote: > Add device tree support for Plantower PMS7003 particulate matter sensor. > > Signed-off-by: Tomasz Duszynski > --- > .../iio/chemical/plantower,pms7003.txt| 19 +++ > 1 file changed, 19 insertions(+) >

Re: [tip:sched/core] sched/core: Fix a potential double-fetch bug in sched_copy_attr()

2019-01-27 Thread Peter Zijlstra
On Sun, Jan 27, 2019 at 12:04:44PM +0100, Thomas Gleixner wrote: > On Mon, 21 Jan 2019, tip-bot for Kangjie Lu wrote: > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > > index a674c7db2f29..d4d3514c4fe9 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -4499,6

Re: [PATCH 3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:30 PM, Thierry Reding wrote: From: JC Kuo This commit adds Tegra186 XUSB host mode controller support. This is very similar to the existing support for Tegra124 and Tegra210, except that the number of ports and PHYs differs and the IPFS wrapper being gone.

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

2019-01-27 Thread Oded Gabbay
On Sun, Jan 27, 2019 at 8:49 AM Mike Rapoport wrote: > > On Fri, Jan 25, 2019 at 11:47:03PM +0200, Oded Gabbay wrote: > > On Wed, Jan 23, 2019 at 2:28 PM Mike Rapoport wrote: > > > > > > On Wed, Jan 23, 2019 at 02:00:47AM +0200, Oded Gabbay wrote: > > > > This patch adds the CB module, which

Re: [PATCH] arm: dts: gta04: add gps support

2019-01-27 Thread Johan Hovold
On Fri, Jan 25, 2019 at 08:43:10PM +0100, Andreas Kemnade wrote: > The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable > which one is mounted so use the compatibility entry for w2sg0004 > for all which will work for both. > > Signed-off-by: Andreas Kemnade > --- > w2sg0004 bindings

Re: [PATCH 2/6] usb: host: xhci-tegra: Selectively program IPFS

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:30 PM, Thierry Reding wrote: From: JC Kuo Starting with Tegra186, the XUSB controller no longer has the IPFS wrapper. This commit adds a "has_ipfs" field to struct tegra_xusb_soc that can be used to declare the existence of the IPFS wrapper. For the existing

Re: implement generic dma_map_ops for IOMMUs

2019-01-27 Thread Christoph Hellwig
Any chance to get a review on this one? On Mon, Jan 14, 2019 at 10:41:40AM +0100, Christoph Hellwig wrote: > Hi Robin, > > please take a look at this series, which implements a completely generic > set of dma_map_ops for IOMMU drivers. This is done by taking the > existing arm64 code, moving it

Re: [PATCH v2] iio: adc: ad7476: Add support for ADS786X ADCs

2019-01-27 Thread Ricardo Ribalda Delgado
HI Alexandru On Mon, Jan 28, 2019 at 8:47 AM Alexandru Ardelean wrote: > > On Mon, Jan 28, 2019 at 9:43 AM Ricardo Ribalda Delgado > wrote: > > > > HI Alexandru > > > > On Mon, Jan 28, 2019 at 8:38 AM Alexandru Ardelean > > wrote: > > > > > > On Sat, Jan 26, 2019 at 8:21 PM Jonathan Cameron

Re: [PATCH] PCI / ACPI: Don't clear pme_poll on device that has unreliable ACPI wake

2019-01-27 Thread Kai Heng Feng
> On Jan 25, 2019, at 4:05 AM, Bjorn Helgaas wrote: > > On Thu, Jan 24, 2019 at 11:29:37PM +0800, Kai Heng Feng wrote: >>> On Jan 24, 2019, at 11:15 PM, Bjorn Helgaas wrote: >>> On Wed, Jan 23, 2019 at 03:17:37PM +0800, Kai Heng Feng wrote: > On Jan 23, 2019, at 7:51 AM, Bjorn Helgaas

Re: [PATCH] media: ov5640: Fix set 15fps regression

2019-01-27 Thread Jagan Teki
On Fri, Jan 25, 2019 at 9:10 PM Maxime Ripard wrote: > > On Thu, Jan 24, 2019 at 11:28:01PM +0530, Jagan Teki wrote: > > The ov5640_try_frame_interval operation updates the FPS as per user > > input based on default ov5640_frame_rate, OV5640_30_FPS which is failed > > to update when user trigger

Re: [PATCH v2] iio: adc: ad7476: Add support for ADS786X ADCs

2019-01-27 Thread Alexandru Ardelean
On Mon, Jan 28, 2019 at 9:43 AM Ricardo Ribalda Delgado wrote: > > HI Alexandru > > On Mon, Jan 28, 2019 at 8:38 AM Alexandru Ardelean > wrote: > > > > On Sat, Jan 26, 2019 at 8:21 PM Jonathan Cameron wrote: > > > > > > On Fri, 25 Jan 2019 11:04:51 +0100 > > > Ricardo Ribalda Delgado wrote: >

Re: [RFC PATCH v2 08/10] rtc: bd70528: Initial support for ROHM bd70528 RTC

2019-01-27 Thread Matti Vaittinen
Thanks again Guenter, On Sat, Jan 26, 2019 at 08:30:24AM -0800, Guenter Roeck wrote: > On 1/25/19 3:05 AM, Matti Vaittinen wrote: > > +/* > > + * We read regs RTC_SEC => RTC_YEAR > > + * this struct is ordered according to chip registers. > > + * Keep it u8 only to avoid padding issues. > > + */

Re: [PATCH 1/6] dt-bindings: usb: xhci-tegra: Add Tegra186 support

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:30 PM, Thierry Reding wrote: From: Thierry Reding Extend the bindings to cover the set of features found in Tegra186. Signed-off-by: Thierry Reding --- .../devicetree/bindings/usb/nvidia,tegra124-xusb.txt | 4 1 file changed, 4

Re: [PATCH 5/5] phy: tegra: xusb: Add Tegra186 support

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:25 PM, Thierry Reding wrote: From: JC Kuo Add support for the XUSB pad controller found on Tegra186 SoCs. It is mostly similar to the same IP found on earlier chips, but the number of pads exposed differs, as do the programming sequences. Note that the

Re: [PATCH v2] iio: adc: ad7476: Add support for ADS786X ADCs

2019-01-27 Thread Ricardo Ribalda Delgado
HI Alexandru On Mon, Jan 28, 2019 at 8:38 AM Alexandru Ardelean wrote: > > On Sat, Jan 26, 2019 at 8:21 PM Jonathan Cameron wrote: > > > > On Fri, 25 Jan 2019 11:04:51 +0100 > > Ricardo Ribalda Delgado wrote: > > > > > Add support for ADS7866, ADS7867 and ADS7868 8/10/12 bit Single channel > >

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

2019-01-27 Thread Oded Gabbay
On Sun, Jan 27, 2019 at 8:39 AM Mike Rapoport wrote: > > On Fri, Jan 25, 2019 at 10:32:55PM +0200, Oded Gabbay wrote: > > On Wed, Jan 23, 2019 at 2:28 PM Mike Rapoport wrote: > > > > > > On Wed, Jan 23, 2019 at 02:00:45AM +0200, Oded Gabbay wrote: > > > > This patch adds a basic support for the

Re: [PATCH 1/2] spi: support inter-word delay requirement for devices

2019-01-27 Thread Geert Uytterhoeven
Hi Jonas, On Sat, Jan 26, 2019 at 4:40 PM Jonas Bonn wrote: > On 26/01/2019 11:25, Geert Uytterhoeven wrote: > > On Sat, Jan 26, 2019 at 8:53 AM Jonas Bonn wrote: > >> On 25/01/2019 18:50, Mark Brown wrote: > >>> On Fri, Jan 25, 2019 at 05:47:13PM +, Mark Brown wrote: > On Fri, Jan 25,

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-27 Thread Tomasz Figa
On Fri, Jan 25, 2019 at 7:25 PM Stanimir Varbanov wrote: > > Hi Tomasz, > > Thanks for the comments! > > On 1/25/19 9:59 AM, Tomasz Figa wrote: > > .Hi Stan, > > > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> This refactored code for start/stop streaming vb2

Re: [PATCH v2] iio: adc: ad7476: Add support for ADS786X ADCs

2019-01-27 Thread Alexandru Ardelean
On Sat, Jan 26, 2019 at 8:21 PM Jonathan Cameron wrote: > > On Fri, 25 Jan 2019 11:04:51 +0100 > Ricardo Ribalda Delgado wrote: > > > Add support for ADS7866, ADS7867 and ADS7868 8/10/12 bit Single channel > > ADC. > > I don't want this reply be offensive or anything. But since I've seen this

Re: [RFC PATCH v2 00/10] support ROHM BD70528 PMIC

2019-01-27 Thread Matti Vaittinen
Hello Lee, All On Mon, Jan 28, 2019 at 07:19:36AM +, Lee Jones wrote: > On Fri, 25 Jan 2019, Matti Vaittinen wrote: > > > Patch series introducing support for ROHM BD70528 PMIC > > > > Please note that patch 1 breaks compilation without patches 2 and 3 > > > > ROHM BD70528 is a

Re: DMA-related cleanups for parisc

2019-01-27 Thread Christoph Hellwig
On Sat, Jan 26, 2019 at 06:11:24PM +0100, Helge Deller wrote: > Thanks for doing that! > I tested it. Your patches work, but you need the fixup below (0-day > testing complained as well). I actually sent a v2 series since then which makes sure the new iommu.h includes , so that we don't rely on

Re: [2/2] mfd: max77620: Add low battery monitor support

2019-01-27 Thread Billy Laws
On 1/28/19, Lee Jones wrote: > Re-sending due to dodgy looking 'reply-to'. > > On Sun, 27 Jan 2019, Billy Laws wrote: > >> >This patch adds PMIC configurations for low-battery >> >monitoring by handling max77620 register CNFGGLBL1. >> > >> It might be an idea to add lbhyst configuration here and

Re: [PATCH v7 2/5] media: sun6i: Add A64 CSI block support

2019-01-27 Thread Jagan Teki
On Fri, Jan 25, 2019 at 9:12 PM Maxime Ripard wrote: > > On Thu, Jan 24, 2019 at 11:37:33PM +0530, Jagan Teki wrote: > > CSI block in Allwinner A64 has similar features as like in H3, > > but the default CSI_SCLK rate cannot work properly to drive the > > connected sensor interface. > > > > The

[PATCH] [media] v4l: add I / P frame min max QP definitions

2019-01-27 Thread Fish Lin
Add following V4L2 QP parameters for H.264: * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MIN_QP * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MAX_QP * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MIN_QP * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MAX_QP These controls will limit QP range for intra and inter frame, provide more manual

Re: [PATCH] staging:iio:ad7152: Rename misspelled RESEVERD -> RESERVED

2019-01-27 Thread Alexandru Ardelean
On Sat, Jan 26, 2019 at 8:09 PM Jonathan Cameron wrote: > > On Fri, 25 Jan 2019 10:19:54 +0200 > Alexandru Ardelean wrote: > > > On Thu, Jan 24, 2019 at 9:35 PM Rodrigo Ribeiro > > wrote: > > > > > > Remove the checkpatch.pl check: > > > > > > CHECK: 'RESEVERD' may be misspelled - perhaps

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

2019-01-27 Thread Lee Jones
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 rest of the other fixes. [post-vacation reply] That's not how these things

Re: [PATCH 4/5] phy: tegra: xusb: Add support for power supplies

2019-01-27 Thread jckuo
Hi Thierry, I think any non-zero return value of regulator_bulk_enable()/devm_regulator_bulk_get() means error. Thanks, JC On 1/25/19 7:25 PM, Thierry Reding wrote: From: Thierry Reding Support enabling various supplies needed to provide power to the PLLs and logic used to drive the USB,

Re: [PATCH] sched/debug: Show intergroup and hierarchy sum wait time of a task group

2019-01-27 Thread 禹舟键
Hi Michael > Task competition inside a cgroup won't be considered as cgroup's > competition, please try create another cgroup with dead loop on > each CPU Yes, you are right, but I don't think we just need to account for cgroup's competition, because this factor does not reflect cgroup internal

Re: [RFC PATCH v2 00/10] support ROHM BD70528 PMIC

2019-01-27 Thread Lee Jones
On Fri, 25 Jan 2019, Matti Vaittinen wrote: > Patch series introducing support for ROHM BD70528 PMIC > > Please note that patch 1 breaks compilation without patches 2 and 3 > > ROHM BD70528 is a programmable Power Management IC for battery > powered 'ultra low power' systems like the

Re: [PATCH] arm64: dts: allwinner: a64-amarula-relic: Add STLM75 sensor

2019-01-27 Thread Jagan Teki
On Fri, Jan 25, 2019 at 2:10 PM Maxime Ripard wrote: > > On Thu, Jan 24, 2019 at 11:22:54PM +0530, Jagan Teki wrote: > > Amarula A64 Relic has STLM75 sensor for digital temperature > > and thermal watchdog. > > > > Add support for it. > > > > Signed-off-by: Jagan Teki > > --- > > Note: the

Re: [2/2] mfd: max77620: Add low battery monitor support

2019-01-27 Thread Lee Jones
Re-sending due to dodgy looking 'reply-to'. On Sun, 27 Jan 2019, Billy Laws wrote: > >This patch adds PMIC configurations for low-battery > >monitoring by handling max77620 register CNFGGLBL1. > > > It might be an idea to add lbhyst configuration here and support using > custom lbdac values to

Re: [2/2] mfd: max77620: Add low battery monitor support

2019-01-27 Thread Lee Jones
On Sun, 27 Jan 2019, Billy Laws wrote: > >This patch adds PMIC configurations for low-battery > >monitoring by handling max77620 register CNFGGLBL1. > > > It might be an idea to add lbhyst configuration here and support using > custom lbdac values to specify a different cutoff point. Do you know

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-27 Thread Zheng Xiang
Hi Marc, Thanks for your review. On 2019/1/26 19:38, Marc Zyngier wrote: > Hi Zheng, > > On Sat, 26 Jan 2019 06:16:24 +, > Zheng Xiang wrote: >> >> Currently each PCI device under a PCI Bridge shares the same device id >> and ITS device. Assume there are two PCI devices call

Re: [PATCH v5 0/4] Reduce NUMA related overhead in perf record profiling on large server systems

2019-01-27 Thread Alexey Budankov
Hi Jiri, Arnaldo, On 22.01.2019 20:45, Alexey Budankov wrote: > > It has been observed that trace reading thread runs on the same hw thread > most of the time during perf record sampling collection. This scheduling > layout leads up to 30% profiling overhead in case when some cpu intensive >

[PATCH v2 4/4] perf report: support record trace file decompression

2019-01-27 Thread Alexey Budankov
PERF_RECORD_COMPRESSED records are decompressed from trace file into a linked list of mmaped memory regions using streaming Zstandard API. After that the regions are loaded fetching uncompressed events. When dumping raw trace (e.g., perf report -D --header) file offsets of events from compressed

Re: [PATCH] extcon: Fix build issues in ptn5150

2019-01-27 Thread Vijai Kumar K
On Mon, Jan 28, 2019 at 10:08:12AM +0530, Vijai Kumar K wrote: I was wondering, what is the normal procedure in the below case when the build fails because of the driver. Should I send a new patch as a whole [PATCH v3] for the driver or should I send a new patch to fix the issue like below.

[PATCH v2 3/4] perf record: enable runtime trace compression

2019-01-27 Thread Alexey Budankov
Compression is implemented using simple Zstd API and employs AIO data buffer as the memory to operate on. If the API call fails for some reason compression falls back to memcpy(). Data chunks are split and packed into PERF_RECORD_COMPRESSED records by 64KB at max. mmap-flush option value can be

[PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-01-27 Thread Alexey Budankov
Implement -z,--compression_level= and --mmap-flush= options as well as a special PERF_RECORD_COMPRESSED record that contains compressed parts of kernel data buffer. Because compression requires auxiliary memory to implement encoding of kernel data record->opts.nr_cblocks == -1 signifies to

Re: [PATCH 3/5] phy: tegra: xusb: Parse dual-role mode property

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:25 PM, Thierry Reding wrote: From: Thierry Reding The device tree bindings document the "mode" property of "ports" subnodes, but the driver was not parsing the property. In preparation for adding role switching, parse the property at probe time. Based on

Re: [PATCH 2/5] phy: tegra: xusb: Skip single function lane programming

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:25 PM, Thierry Reding wrote: From: JC Kuo Tegra186 USB2 pads and USB3 pads do not have hardware mux for changing the pad function. For such "lanes", we can skip the lane mux register programming. Signed-off-by: JC Kuo Signed-off-by: Thierry Reding ---

[PATCH v2 1/4] feature: realize libzstd check, LIBZSTD_DIR and NO_LIBZSTD defines

2019-01-27 Thread Alexey Budankov
Implement libzstd feature check, NO_LIBZSTD and LIBZSTD_DIR defines to overrride Zstd library sources or disable the feature from the command line: $ make -C tools/perf LIBZSTD_DIR=/root/abudanko/zstd-1.3.7 clean all $ make -C tools/perf NO_LIBZSTD=1 clean all Signed-off-by: Alexey

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

2019-01-27 Thread Jason Wang
After batched used ring updating was introduced in commit e2b3b35eb989 ("vhost_net: batch used ring update in rx"). We tend to batch heads in vq->heads for more than one packet. But the quota passed to get_rx_bufs() was not correctly limited, which can result a OOB write in vq->heads.

Re: [PATCH 1/5] dt-bindings: phy: tegra: Add Tegra186 support

2019-01-27 Thread jckuo
Reviewed-by: JC Kuo On 1/25/19 7:25 PM, Thierry Reding wrote: From: Thierry Reding Extend the bindings to cover the set of features found in Tegra186. Note that, technically, there are four more supplies connected to the XUSB pad controller (DVDD_PEX, DVDD_PEX_PLL, HVDD_PEX and

Re: [PATCH] net: stmmac: dwmac-rk: fix error handling in rk_gmac_powerup()

2019-01-27 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 26 Jan 2019 22:48:57 +0300 > If phy_power_on() fails in rk_gmac_powerup(), clocks are left enabled. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Applied, thank you.

Re: use generic DMA mapping code in powerpc V4

2019-01-27 Thread Christoph Hellwig
On Sun, Jan 27, 2019 at 02:13:09PM +0100, Christian Zigotzky wrote: > Christoph, > > What shall I do next? I'll need to figure out what went wrong with the new zone selection on powerpc and give you another branch to test.

Re: [PATCH v4 4/6] arm64/kvm: enable pointer authentication cpufeature conditionally

2019-01-27 Thread Amit Daniel Kachhap
Hi James, On Fri, Jan 4, 2019 at 11:32 PM James Morse wrote: > > Hi Amit, > > On 18/12/2018 07:56, Amit Daniel Kachhap wrote: > > According to userspace settings, pointer authentication cpufeature > > is enabled/disabled from guests. > > This reads like the guest is changing something in the

[PATCH v2 0/4] perf: enable compression of record mode trace to save storage space

2019-01-27 Thread Alexey Budankov
The patch set implements runtime trace compression for record mode and trace file decompression for report mode. Zstandard API [1] is used for compression/decompression of data that come from perf_events kernel data buffers. Realized -z,--compression_level=n option provides ~3-5x avg. trace

Re: [PATCH net 0/3] net: hns: code optimizations & bugfixes for HNS driver

2019-01-27 Thread David Miller
From: Peng Li Date: Sat, 26 Jan 2019 17:18:24 +0800 > This patchset includes bugfixes and code optimizations for the HNS > ethernet controller driver Series applied, thank you. There are only bug fixes in here, so please do not use the word "optimizations" in such situations. Thanks.

[kvmtool PATCH v5 6/6] arm/kvm: arm64: Add a vcpu feature for pointer authentication

2019-01-27 Thread Amit Daniel Kachhap
This is a runtime feature and can be enabled by --ptrauth option. Signed-off-by: Amit Daniel Kachhap Cc: Mark Rutland Cc: Christoffer Dall Cc: Marc Zyngier Cc: Kristina Martsenko Cc: kvm...@lists.cs.columbia.edu Cc: Ramana Radhakrishnan Cc: Will Deacon ---

[PATCH v5 5/5] arm64/kvm: control accessibility of ptrauth key registers

2019-01-27 Thread Amit Daniel Kachhap
According to userspace settings, ptrauth key registers are conditionally present in guest system register list based on user specified flag KVM_ARM_VCPU_PTRAUTH. Signed-off-by: Amit Daniel Kachhap Cc: Mark Rutland Cc: Christoffer Dall Cc: Marc Zyngier Cc: Kristina Martsenko Cc:

[PATCH v5 3/5] arm64/kvm: context-switch ptrauth registers

2019-01-27 Thread Amit Daniel Kachhap
When pointer authentication is supported, a guest may wish to use it. This patch adds the necessary KVM infrastructure for this to work, with a semi-lazy context switch of the pointer auth state. Pointer authentication feature is only enabled when VHE is built into the kernel and present into CPU

[PATCH v5 4/5] arm64/kvm: add a userspace option to enable pointer authentication

2019-01-27 Thread Amit Daniel Kachhap
This feature will allow the KVM guest to allow the handling of pointer authentication instructions or to treat them as undefined if not set. It uses the existing vcpu API KVM_ARM_VCPU_INIT to supply this parameter instead of creating a new API. A new register is not created to pass this parameter

[PATCH v5 0/6] Add ARMv8.3 pointer authentication for kvm guest

2019-01-27 Thread Amit Daniel Kachhap
Hi, This patch series adds pointer authentication support for KVM guest and is based on top of Linux 5.0-rc3. The basic patches in this series was originally posted by Mark Rutland earlier[1,2] and contains some history of this work. Extension Overview:

[PATCH] Bluetooth: Add NULL check for tiocmget() and tiocmset()

2019-01-27 Thread Myungho Jung
tiocmget() and tiocmset() operations are optional and some tty drivers like pty miss the operations. We need NULL check before referencing them. Reported-by: syzbot+a950165cbb86bdd02...@syzkaller.appspotmail.com Signed-off-by: Myungho Jung --- drivers/bluetooth/hci_ath.c | 13 -

[PATCH v5 2/5] arm64/kvm: preserve host HCR_EL2/MDCR_EL2 value

2019-01-27 Thread Amit Daniel Kachhap
When restoring HCR_EL2 for the host, KVM uses HCR_HOST_VHE_FLAGS, which is a constant value. This works today, as the host HCR_EL2 value is always the same, but this will get in the way of supporting extensions that require HCR_EL2 bits to be set conditionally for the host. To allow such features

[PATCH v5 1/5] arm64: Add utilities to save restore pointer authentication keys

2019-01-27 Thread Amit Daniel Kachhap
The keys can be switched either inside an assembly or such functions which do not have pointer authentication checks, so a GCC attribute is added to enable it. A function ptrauth_keys_store is added which is similar to existing function ptrauth_keys_switch but saves the key values in memory. This

[PATCH] Bluetooth: hci_uart: Switch pty driver to slave side in tty_set_termios()

2019-01-27 Thread Myungho Jung
tty_set_termios() should be called with slave side of pty driver. So, If tty driver is pty master, it needs to be switched to ->link. Reported-by: syzbot+a950165cbb86bdd02...@syzkaller.appspotmail.com Signed-off-by: Myungho Jung --- drivers/bluetooth/hci_ldisc.c | 20 +++- 1

Re: [PATCH v3 1/3] mfd: cros_ec: Add commands to control codec

2019-01-27 Thread Lee Jones
On Mon, 28 Jan 2019, Cheng-yi Chiang wrote: > Hi Lee, > Could you please give Mark a tag so he can merge ? > The later patch for cros_ec_codec driver is pending on it. Apologies for not getting back to you. I was waiting to see if my late PR would be merged. It was, which means the tag you

[PATCH 2/2] iwlwifi: Use struct_size() in kzalloc

2019-01-27 Thread YueHaibing
Use struct_size() in kzalloc instead of the 'regd_to_copy' Signed-off-by: YueHaibing --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

[PATCH 1/2] iwlwifi: Use kmemdup instead of duplicating its function

2019-01-27 Thread YueHaibing
Use kmemdup rather than duplicating its implementation Signed-off-by: YueHaibing --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

Re: [PATCH v4 0/9] cpufreq: Add flag to auto-register as cooling device

2019-01-27 Thread Viresh Kumar
On 28-01-19, 12:11, Amit Kucheria wrote: > Add a flag for cpufreq drivers to tell cpufreq core to auto-register > themselves as a thermal cooling device. > > There series converts over all the drivers except arm_big_little.c. > Tested on SDM845 with the qcom-cpufreq-hw driver. Only compile-tested

[PATCH v4 6/9] cpufreq: mediatek: Use auto-registration of thermal cooling device

2019-01-27 Thread Amit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria --- drivers/cpufreq/mediatek-cpufreq.c | 14 ++ 1 file changed, 2

[PATCH v4 8/9] cpufreq: scmi: Use auto-registration of thermal cooling device

2019-01-27 Thread Amit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Sudeep Holla --- drivers/cpufreq/scmi-cpufreq.c | 14 ++ 1

[PATCH v4 9/9] cpufreq: scpi: Use auto-registration of thermal cooling device

2019-01-27 Thread Amit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria Acked-by: Sudeep Holla --- drivers/cpufreq/scpi-cpufreq.c | 14 ++ 1

[PATCH v4 4/9] cpufreq: imx6q: Use auto-registration of thermal cooling device

2019-01-27 Thread Amit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria --- drivers/cpufreq/imx6q-cpufreq.c | 24 ++-- 1 file changed,

[PATCH 0/2] cleanup for iwlwifi

2019-01-27 Thread YueHaibing
YueHaibing (2): iwlwifi: Use kmemdup instead of duplicating its function iwlwifi: Use struct_size() in kzalloc drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) -- 2.7.4

[PATCH v4 7/9] cpufreq: qoriq: Use auto-registration of thermal cooling device

2019-01-27 Thread Amit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria --- drivers/cpufreq/qoriq-cpufreq.c | 15 ++- 1 file changed, 2

[PATCH v4 5/9] cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device

2019-01-27 Thread Amit Kucheria
Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to automatically register as a thermal cooling device. This allows removal of boiler plate code from the driver. Signed-off-by: Amit Kucheria --- drivers/cpufreq/cpufreq-dt.c | 14 ++ 1 file changed, 2

[PATCH v4 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device

2019-01-27 Thread Amit Kucheria
Add the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow the cpufreq core to auto-register the driver as a cooling device. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- 1 file

[PATCH v4 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-27 Thread Amit Kucheria
All cpufreq drivers do similar things to register as a cooling device. Provide a cpufreq driver flag so drivers can just ask the cpufreq core to register the cooling device on their behalf. This allows us to get rid of duplicated code in the drivers. In order to allow this, we add a struct

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

2019-01-27 Thread Amit Kucheria
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 a cooling device from the cpufreq core, we need access to code inside

[PATCH v4 0/9] cpufreq: Add flag to auto-register as cooling device

2019-01-27 Thread Amit Kucheria
Add a flag for cpufreq drivers to tell cpufreq core to auto-register themselves as a thermal cooling device. There series converts over all the drivers except arm_big_little.c. Tested on SDM845 with the qcom-cpufreq-hw driver. Only compile-tested the others. Things needing fixing (but not a

Re: kernel panic due to https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2830bf6f05fb3e05bc4743274b806c821807a684

2019-01-27 Thread Michal Hocko
On Mon 28-01-19 11:37:00, Mikhail Gavrilov wrote: > > Linus, could you take the revert please? > > > > From 817b18d3db36a6900ca9043af8c1416c56358be3 Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Fri, 25 Jan 2019 19:08:58 +0100 > > Subject: [PATCH] Revert "mm, memory_hotplug:

Re: kernel panic due to https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2830bf6f05fb3e05bc4743274b806c821807a684

2019-01-27 Thread Mikhail Gavrilov
> Linus, could you take the revert please? > > From 817b18d3db36a6900ca9043af8c1416c56358be3 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Fri, 25 Jan 2019 19:08:58 +0100 > Subject: [PATCH] Revert "mm, memory_hotplug: initialize struct pages for the > full memory section" > > This

Re: [PATCH -next] drm/xen-front: Drop pointless static qualifier in fb_destroy()

2019-01-27 Thread Oleksandr Andrushchenko
On 1/26/19 2:05 PM, YueHaibing wrote: > There is no need to have the 'struct drm_framebuffer *fb' variable > static since new value always be assigned before use it. > > Signed-off-by: YueHaibing Good catch, thank you! Reviewed-by: Oleksandr Andrushchenko > --- >

Re: [Xen-devel] [PATCH] arch/arm/xen: Remove duplicate header

2019-01-27 Thread Souptick Joarder
On Mon, Jan 14, 2019 at 4:08 PM Oleksandr Andrushchenko wrote: > > On 1/7/19 7:37 PM, Souptick Joarder wrote: > > Remove duplicate header which is included twice. > > > > Signed-off-by: Souptick Joarder > Reviewed-by: Oleksandr Andrushchenko Can we get this patch in queue for 5.1 ? > > --- > >

Re: [PATCH 6/9] iommu/dma-iommu.c: Convert to use vm_insert_range

2019-01-27 Thread Souptick Joarder
On Fri, Jan 11, 2019 at 8:37 PM Souptick Joarder wrote: > > Convert to use vm_insert_range() to map range of kernel > memory to user vma. > > Signed-off-by: Souptick Joarder Any comment on this patch ? > --- > drivers/iommu/dma-iommu.c | 12 +--- > 1 file changed, 1 insertion(+), 11

Re: [PATCH 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2019-01-27 Thread Souptick Joarder
On Fri, Jan 11, 2019 at 8:35 PM Souptick Joarder wrote: > > Convert to use vm_insert_range() to map range of kernel > memory to user vma. > > Signed-off-by: Souptick Joarder Any comment on this patch ? > --- > drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 17 ++--- > 1 file

[PATCH v8 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver

2019-01-27 Thread Mason Yang
Add a driver for Renesas R-Car Gen3 RPC-IF SPI controller. Signed-off-by: Mason Yang Signed-off-by: Sergei Shtylyov --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 804 ++ 3 files changed,

[PATCH v8 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings

2019-01-27 Thread Mason Yang
Document the bindings used by the Renesas R-Car Gen3 RPC-IF controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/spi/spi-renesas-rpc.txt| 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt

[PATCH v8 0/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI driver

2019-01-27 Thread Mason Yang
Hi Mark, v8 patch including: 1) Supported SoC-specific values in DTS. 2) Rename device node name as flash. v7 patch is according to Geert and Sergei's comments: 1) Add all R-Car Gen3 model in dts. 2) patch rpc-if child node search. 3) minror coding style. v6 patch is accroding to Geert, Marek

[PATCH V3] sched/cpufreq: calculate util / cap in advance in map_util_freq()

2019-01-27 Thread Chunyan Zhang
From: "vincent.wang" When a task that is in_iowait state is enqueued, cpufreq_update_util() will be invoked with SCHED_CPUFREQ_IOWAIT flag. In this case,the value of util and cap, which are parameters used in map_util_freq(), will be cpu frequency, instead of cpu util and capactiy. For some

RE: [PATCH] KVM: x86: Sync the pending Posted-Interrupts

2019-01-27 Thread Kang, Luwei
> > Some Posted-Interrupts from passthrough devices may be lost or > > overwritten when the vCPU is in runnable state. > > > > The SN (Suppress Notification) of PID (Posted Interrupt Descriptor) > > will be set when the vCPU is preempted (vCPU in KVM_MP_STATE_RUNNABLE > > state but not running on

[PATCH v5 3/5] dt-bindings: dma: fsl-imx-sdma: add fsl,imx8mq to the accepted compatible node

2019-01-27 Thread Angus Ainslie (Purism)
Add an fsl,imx8mq compatible string Signed-off-by: Angus Ainslie (Purism) Reviewed-by: Lucas Stach --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt

[PATCH v5 0/5] dmaengine: imx-sdma: add the sdma engine to the imx8mq

2019-01-27 Thread Angus Ainslie (Purism)
Add sdma support for the imx8mq Changes since V4 Builds against 5.0-rc4. Dropped device tree additions, will send a separate patch. Fixed sdma1 alignement. Dropped phandles in favour of of_nodes. Refactored SDMA_H_CONFIG register fix. Changes since V3 Builds against 5.0-rc3. Dropped sdma

[PATCH v5 1/5] dmaengine: imx-sdma: add clock ratio 1:1 check

2019-01-27 Thread Angus Ainslie (Purism)
On i.mx8 mscale B0 chip, AHB/SDMA clock ratio 2:1 can't be supportted, since SDMA clock ratio has to be increased to 250Mhz, AHB can't reach to 500Mhz, so use 1:1 instead. Based on NXP commit MLK-16841-1 by Robin Gong Signed-off-by: Angus Ainslie (Purism) --- drivers/dma/imx-sdma.c | 18

[PATCH v5 4/5] dmaengine: imx-sdma: add a test for imx8mq multi sdma devices

2019-01-27 Thread Angus Ainslie (Purism)
On i.mx8mq, there are two sdma instances, and the common dma framework will get a channel dynamically from any available sdma instance whether it's the first sdma device or the second sdma device. Some IPs like SAI only work with sdma2 not sdma1. To make sure the sdma channel is from the correct

[PATCH v5 2/5] dmaengine: imx-sdma: add imx8mq sdma compatible parts

2019-01-27 Thread Angus Ainslie (Purism)
This is identical to the imx7d. Signed-off-by: Angus Ainslie (Purism) --- drivers/dma/imx-sdma.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 757fad2fbfae..c4db4fe6bcc9 100644 --- a/drivers/dma/imx-sdma.c +++

[PATCH v5 5/5] dmaengine: imx-sdma: fix consistent dma test failures

2019-01-27 Thread Angus Ainslie (Purism)
Without the copy being aligned sdma1 fails ~10% of the time Signed-off-by: Angus Ainslie (Purism) --- drivers/dma/imx-sdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index d5f86becf59e..88910ec09568 100644 --- a/drivers/dma/imx-sdma.c

Re: [PATCH] ALSA: hda/tegra: enable clock during probe

2019-01-27 Thread Sameer Pujar
On 1/25/2019 7:34 PM, Jon Hunter wrote: On 25/01/2019 13:58, Takashi Iwai wrote: On Fri, 25 Jan 2019 14:26:27 +0100, Jon Hunter wrote: On 25/01/2019 12:40, Takashi Iwai wrote: On Fri, 25 Jan 2019 12:36:00 +0100, Jon Hunter wrote: On 24/01/2019 19:08, Takashi Iwai wrote: On Thu, 24 Jan

RE: [LINUX PATCH v12 3/3] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2019-01-27 Thread Naga Sureshkumar Relli
Hi Boris & Miquel, Could you please provide your thoughts on this driver to support HW-ECC? As I said previously, there is no way to detect errors beyond N bit. I am ok to update the driver based on your inputs. Thanks, Naga Sureshkumar Relli > -Original Message- > From: linux-mtd

Re: [PATCH] iwlwifi: Use kmemdup instead of duplicating its function

2019-01-27 Thread YueHaibing
On 2019/1/27 5:24, Joe Perches wrote: > On Sat, 2019-01-26 at 20:42 +0800, YueHaibing wrote: >> Use kmemdup rather than duplicating its implementation > [] >> diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c >> b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c > [] >> @@

[PATCH] USB: serial: cp210x: add GPIO support for CP2104

2019-01-27 Thread Icenowy Zheng
The CP2104 chips feature 4 controllable GPIO pins, which are similar to the ones on CP2102N chip (output-only when push-pull, output or simulated input mode when open-drain). Add support for the GPIO pins for cp210x driver. The pin get/set routine is shared with CP2102N, but the pinconf

Re: [PATCH v2 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-01-27 Thread Alexandre Courbot
On Thu, Nov 15, 2018 at 11:56 PM Maxime Ripard wrote: > > From: Pawel Osciak > > Stateless video codecs will require both the H264 metadata and slices in > order to be able to decode frames. > > This introduces the definitions for a new pixel format for H264 slices that > have been parsed, as

[PATCH v5 0/2] cadence-quadspi: Add Octal mode support

2019-01-27 Thread Vignesh R
This series adds support for OSPI version of Cadence QSPI controller IP. Tested with AM654 EVM with MT35x512 Octal flash Changes: v5: Fix comments from by on v4. v4: Fix comments on v3 by Tudor. Rebase on top latest linux-next(all dependencies are now part of -next) v3: Rebase on top of v7 of

[PATCH v5 2/2] mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller

2019-01-27 Thread Vignesh R
Cadence OSPI controller IP supports Octal IO (x8 IO lines), It also has an integrated PHY. IP register layout is very similar to existing QSPI IP except for additional bits to support Octal and Octal DDR mode. Therefore, extend current driver to support Octal mode. Only Octal SDR read (1-1-8)mode

[PATCH v5 1/2] dt-bindings: cadence-quadspi: Add new compatible for AM654 SoC

2019-01-27 Thread Vignesh R
AM654 SoC has Cadence Octal SPI controller, which is similar to Cadence QSPI controller but supports Octal IO(x8 data lines) and Double Data Rate(DDR) mode. Add new compatible to support OSPI controller on TI's AM654 SoCs. Signed-off-by: Vignesh R Reviewed-by: Rob Herring ---

Re: [RFC PATCH] ALSA: core: Add DMA share buffer support

2019-01-27 Thread Baolin Wang
On Fri, 25 Jan 2019 at 21:04, Takashi Iwai wrote: > > > > > > Erm, obviously it's not enough. Each attach / detach needs to manage > > > the refcount, too, for covering the cases above. It can re-use the > > > PCM mmap_refount, though. > > > > But we've used the DMA buffer file's refcounting to

  1   2   3   >