Re: [PATCH v3 1/3] virtio-balloon: tweak config_changed implementation

2019-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2019 at 01:07:16PM +0100, Christian Borntraeger wrote: > On 09.01.2019 11:35, Wei Wang wrote: > > On 01/08/2019 04:46 PM, Christian Borntraeger wrote: > >> > >> On 08.01.2019 06:35, Wei Wang wrote: > >>> On 01/07/2019 09:49 PM, Christian Borntraeger wrote: > On 07.01.2019

Re: [PATCH v5 2/5] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2019-01-09 Thread Johan Hovold
On Thu, Dec 20, 2018 at 08:16:36PM +0530, Balakrishna Godavarthi wrote: > This patch will help to stop frame reassembly errors while changing > the baudrate. This is because host send a change baudrate request > command to the chip with 115200 bps, Whereas chip will change their > UART clocks to

Re: [PATCH v5 13/15] KVM: s390: add function process_gib_alert_list()

2019-01-09 Thread Pierre Morel
On 09/01/2019 14:10, Halil Pasic wrote: On Wed, 9 Jan 2019 13:14:17 +0100 Pierre Morel wrote: On 08/01/2019 16:21, Michael Mueller wrote: On 08.01.19 13:59, Halil Pasic wrote: On Wed, 19 Dec 2018 20:17:54 +0100 Michael Mueller wrote: This function processes the Gib Alert List (GAL). It

Re: [PATCH RFC 1/4] include/linux/compiler*.h: fix OPTIMIZER_HIDE_VAR

2019-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2019 at 11:35:52AM +0100, Miguel Ojeda wrote: > On Tue, Jan 8, 2019 at 6:44 PM Nick Desaulniers > wrote: > > > > Also for more context, see: > > commit 7829fb09a2b4 ("lib: make memzero_explicit more robust against > > dead store elimination") > > By the way, shouldn't that

[PATCH v3 5/5] xfs: disable map_sync for virtio pmem

2019-01-09 Thread Pankaj Gupta
Virtio pmem provides asynchronous host page cache flush mechanism. we don't support 'MAP_SYNC' with virtio pmem and xfs. Signed-off-by: Pankaj Gupta --- fs/xfs/xfs_file.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index e474250..eae4aa4

Re: [PATCH v15 04/11] livepatch: Don't block the removal of patches loaded after a forced transition

2019-01-09 Thread Miroslav Benes
On Wed, 9 Jan 2019, Petr Mladek wrote: > module_put() is currently never called in klp_complete_transition() when > klp_force is set. As a result, we might keep the reference count even when > klp_enable_patch() fails and klp_cancel_transition() is called. > > This might give the impression that

[GIT PULL] csky fixup for linux-5.0-rc1

2019-01-09 Thread guoren
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the git repository at: g...@github.com:c-sky/csky-linux.git tags/csky-for-linus-5.0-rc1 for you to fetch changes up to

[PATCH v3 4/5] ext4: disable map_sync for virtio pmem

2019-01-09 Thread Pankaj Gupta
Virtio pmem provides asynchronous host page cache flush mechanism. We don't support 'MAP_SYNC' with virtio pmem and ext4. Signed-off-by: Pankaj Gupta --- fs/ext4/file.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index

[PATCH] afs: security: Use struct_size() in kzalloc()

2019-01-09 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct

[PATCH v3 2/5] virtio-pmem: Add virtio pmem driver

2019-01-09 Thread Pankaj Gupta
This patch adds virtio-pmem driver for KVM guest. Guest reads the persistent memory range information from Qemu over VIRTIO and registers it on nvdimm_bus. It also creates a nd_region object with the persistent memory range information so that existing 'nvdimm/pmem' driver can reserve this into

Re: [PATCH v3 1/3] virtio-balloon: tweak config_changed implementation

2019-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2019 at 06:35:01PM +0800, Wei Wang wrote: > On 01/08/2019 04:46 PM, Christian Borntraeger wrote: > > > > On 08.01.2019 06:35, Wei Wang wrote: > > > On 01/07/2019 09:49 PM, Christian Borntraeger wrote: > > > > On 07.01.2019 08:01, Wei Wang wrote: > > > > > virtio-ccw has deadlock

[PATCH v3 3/5] libnvdimm: add nd_region buffered dax_dev flag

2019-01-09 Thread Pankaj Gupta
This patch adds 'DAXDEV_BUFFERED' flag which is set for virtio pmem corresponding nd_region. This later is used to disable MAP_SYNC functionality for ext4 & xfs filesystem. Signed-off-by: Pankaj Gupta --- drivers/dax/super.c | 17 + drivers/nvdimm/pmem.c| 3 +++

[PATCH v3 1/5] libnvdimm: nd_region flush callback support

2019-01-09 Thread Pankaj Gupta
This patch adds functionality to perform flush from guest to host over VIRTIO. We are registering a callback based on 'nd_region' type. virtio_pmem driver requires this special flush function. For rest of the region types we are registering existing flush function. Report error returned by host

[PATCH] scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE

2019-01-09 Thread Manuel Traut
At least for ARM64 kernels compiled with the crosstoolchain from Debian/stretch or with the toolchain from kernel.org the line number is not decoded correctly by 'decode_stacktrace.sh': $ echo "[ 136.513051] f1+0x0/0xc [kcrash]" | \

[PATCH v3 0/5] kvm "virtio pmem" device

2019-01-09 Thread Pankaj Gupta
This patch series has implementation for "virtio pmem". "virtio pmem" is fake persistent memory(nvdimm) in guest which allows to bypass the guest page cache. This also implements a VIRTIO based asynchronous flush mechanism. Sharing guest kernel driver in this patchset with the changes

Re: [PATCH 4.14 000/101] 4.14.92-stable review

2019-01-09 Thread Greg Kroah-Hartman
On Wed, Jan 09, 2019 at 12:40:11PM +0100, Jinpu Wang wrote: > Greg Kroah-Hartman 于2019年1月8日周二 下午1:28写道: > > > > On Mon, Jan 07, 2019 at 08:59:12PM -0800, Guenter Roeck wrote: > > > > Should all now be fixed up. > > > > I hope, this set of releases has been a pain... > > > > greg k-h > > I had

Re: [Qemu-devel] [PATCH v3 0/5] kvm "virtio pmem" device

2019-01-09 Thread Pankaj Gupta
Please ignore this series as my network went down while sending this. I will send this series again. Thanks, Pankaj > > This patch series has implementation for "virtio pmem". > "virtio pmem" is fake persistent memory(nvdimm) in guest > which allows to bypass the guest page cache. This

Re: x86/sgx: uapi change proposal

2019-01-09 Thread Jarkko Sakkinen
On Thu, Jan 03, 2019 at 08:26:35AM -0800, Sean Christopherson wrote: > What I was trying to explain is that the uapi isn't for KVM, it's for > the userspace hypervisor, e.g. Qemu. Qemu will inform KVM of the > resulting guest memory region so that KVM can configure its guest page > tables

[PATCH v7 2/5] leds: Add helper for getting default pattern from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
Multiple LED triggers might need to access default pattern so add a helper for that. Signed-off-by: Krzysztof Kozlowski --- drivers/leds/led-core.c | 30 ++ include/linux/leds.h| 13 + 2 files changed, 43 insertions(+) diff --git

[PATCH v7 3/5] leds: trigger: pattern: Add pattern initialization from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
Allow initialization of pattern used in pattern trigger from Device Tree property. This is especially useful for embedded systems where the pattern trigger would be used to indicate the process of boot status in a nice, user-friendly blinking way. This initialization pattern will be used till

[PATCH v7 1/5] dt-bindings: leds: Add pattern initialization from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
Document new led-pattern property for initialization of LED triggers. The property format is trigger-specific (except being array of integers). For pattern trigger, the explanation of pattern format was moved to a common file shared with sysfs ABI. Signed-off-by: Krzysztof Kozlowski Acked-by:

[PATCH v7 4/5] leds: trigger: oneshot: Add initialization from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
Allow initialization of delays used in oneshot trigger from Device Tree property. This is especially useful for embedded systems where the trigger might be used early, before bringing up user-space. Signed-off-by: Krzysztof Kozlowski --- drivers/leds/trigger/ledtrig-oneshot.c | 38

[PATCH v7 5/5] leds: trigger: timer: Add initialization from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
Allow initialization of delays used in timer trigger from Device Tree property. This is especially useful for embedded systems where the trigger might be used early, before bringing up user-space. Signed-off-by: Krzysztof Kozlowski --- drivers/leds/trigger/ledtrig-timer.c | 34

[PATCH v7 0/5] leds: trigger: Add pattern initialization from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
Hi, Changes since v6: 1. Drop goto from led_get_default_pattern() and rename "DeviceTree" into "device tree". 2. Add Pavel's ack to patch 1/5. Changes since v5: 1. Drop the "classdev" prefix from helper for getting default pattern and move the kerneldoc to header file (this was not fixed

RE: [PATCH 2/2] EDAC: add ARM Cortex A15 L2 internal asynchronous error detection driver

2019-01-09 Thread Wiebe, Wladislav (Nokia - DE/Ulm)
Hi James, first of all thanks a lot for the constructive and fast feedback! > -Original Message- > From: James Morse > Sent: Tuesday, January 08, 2019 6:57 PM > > Hi Boris, Wladislav, > > On 08/01/2019 10:42, Borislav Petkov wrote: > > + James and leaving in the rest for reference. >

[PATCH] dmaengine: axi-dmac: Use struct_size() in kzalloc()

2019-01-09 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct

Re: 5.0-rc1 KVM inspired "BUG: Bad page state in process" spew

2019-01-09 Thread Adam Borowski
On Wed, Jan 09, 2019 at 06:38:58AM +0100, Mike Galbraith wrote: > KVM seems to be busted in master ATM. All I have to do to have host > start screaming and maybe exploding (if the guest doesn't do so first) > is to try to install a (obese in this case) kernel over nfs mount of > the host in a

Re: [PATCH 2/2] media: cedrus: Allow using the current dst buffer as reference

2019-01-09 Thread Paul Kocialkowski
Hi, On Wed, 2019-01-09 at 15:29 +0100, Hans Verkuil wrote: > On 01/09/19 15:19, Paul Kocialkowski wrote: > > It was reported that some cases of interleaved video decoding require > > using the current destination buffer as a reference. However, this is > > no longer possible after the move to

Re: [PATCH v3 4/5] ext4: disable map_sync for virtio pmem

2019-01-09 Thread Jan Kara
On Wed 09-01-19 19:26:05, Pankaj Gupta wrote: > Virtio pmem provides asynchronous host page cache flush > mechanism. We don't support 'MAP_SYNC' with virtio pmem > and ext4. > > Signed-off-by: Pankaj Gupta ... > @@ -371,6 +373,13 @@ static int ext4_file_mmap(struct file *file, struct >

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

2019-01-09 Thread Jiri Olsa
On Wed, Jan 09, 2019 at 12:19:20PM +0300, 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 >

Re: [PATCH v2 5/7] remoteproc: q6v5-mss: Active powerdomain for SDM845

2019-01-09 Thread Sibi Sankar
On 2019-01-06 13:39, Bjorn Andersson wrote: The SDM845 MSS needs the load_state powerdomain voted for during the duration of the MSS being powered on, to let the AOSS know that it may not perform certain power save measures. So vote for this. Signed-off-by: Bjorn Andersson --- Changes since

Re: [PATCH 4.14 000/101] 4.14.92-stable review

2019-01-09 Thread Greg Kroah-Hartman
On Wed, Jan 09, 2019 at 10:47:44AM +, Jon Hunter wrote: > > On 08/01/2019 12:19, Greg Kroah-Hartman wrote: > > On Mon, Jan 07, 2019 at 01:31:48PM +0100, Greg Kroah-Hartman wrote: > >> This is the start of the stable review cycle for the 4.14.92 release. > >> There are 101 patches in this

Re: [PATCH 4.19 000/170] 4.19.14-stable review

2019-01-09 Thread Greg Kroah-Hartman
On Tue, Jan 08, 2019 at 10:29:38AM -0800, Guenter Roeck wrote: > On Tue, Jan 08, 2019 at 07:13:22PM +0100, Greg Kroah-Hartman wrote: > > On Tue, Jan 08, 2019 at 10:09:51AM -0800, Guenter Roeck wrote: > > > On Tue, Jan 08, 2019 at 06:56:40PM +0100, Greg Kroah-Hartman wrote: > > > > On Tue, Jan 08,

Re: [PATCH v2 4/7] remoteproc: q6v5-mss: Vote for rpmh power domains

2019-01-09 Thread Sibi Sankar
Hi Bjorn, With the changes suggested below: Reviewed-by: Sibi Sankar Tested-by: Sibi Sankar On 2019-01-06 13:39, Bjorn Andersson wrote: From: Rajendra Nayak With rpmh ARC resources being modelled as power domains with performance state, we need to proxy vote on these for SDM845. Add

RE: [PATCH 0/2] ASoC: da7219: Improvements to DAI clocks handling in driver

2019-01-09 Thread Adam Thomson
On 08 January 2019 09:13, Adam Thomson wrote: > This small patchset provides improvements to CCF based clock handling relating > to the DAI clocks. In the first patch MCLK is made parent of DAI clocks, if > MCLK > has been provided to the driver, which means that MCLK will automatically be >

Re: [PATCH 4.19 000/170] 4.19.14-stable review

2019-01-09 Thread Greg Kroah-Hartman
On Tue, Jan 08, 2019 at 03:07:31PM -0800, Guenter Roeck wrote: > On Mon, Jan 07, 2019 at 01:30:27PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.14 release. > > There are 170 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH v5 1/5] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2019-01-09 Thread Johan Hovold
On Fri, Dec 21, 2018 at 05:59:47PM -0800, Matthias Kaehlcke wrote: > On Thu, Dec 20, 2018 at 08:16:35PM +0530, Balakrishna Godavarthi wrote: > > wcn3990 requires a power pulse to turn ON/OFF along with > > regulators. Sometimes we are observing the power pulses are sent > > out with some time

Re: [PATCH v15 03/11] livepatch: Consolidate klp_free functions

2019-01-09 Thread Miroslav Benes
On Wed, 9 Jan 2019, Petr Mladek wrote: > The code for freeing livepatch structures is a bit scattered and tricky: > > + direct calls to klp_free_*_limited() and kobject_put() are > used to release partially initialized objects > > + klp_free_patch() removes the patch from the public

Re: General protection fault in `switch_mm_irqs_off()`

2019-01-09 Thread Paul Menzel
Dear Thomas, On 01/09/19 15:29, Lendacky, Thomas wrote: > On 1/9/19 7:35 AM, Paul Menzel wrote: >> On 01/09/19 14:16, Thomas Gleixner wrote: >> >>> On Wed, 9 Jan 2019, Paul Menzel wrote: I get the same with microcode updates applied. $ dmesg | grep 'microcode: CPU0:

Re: [PATCH] virtio:linux:kernel:NULL check after kmalloc is needed

2019-01-09 Thread Michael S. Tsirkin
On Tue, Jan 08, 2019 at 01:40:33PM +0800, Yi Wang wrote: > From: "huang.zijiang" > > NULL check is needed because kmalloc maybe return NULL. > > Signed-off-by: huang.zijiang Can't hurt I will queue it. > --- > tools/virtio/linux/kernel.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff

Re: [PATCH v2 2/3] kprobes: Mark ftrace mcount handler functions nokprobe

2019-01-09 Thread Steven Rostedt
On Tue, 8 Jan 2019 13:44:54 +0900 Masami Hiramatsu wrote: > Mark ftrace mcount handler functions nokprobe since > probing on these functions with kretprobe pushes > return address incorrectly on kretprobe shadow stack. > > Signed-off-by: Masami Hiramatsu > Reported-by: Francis Deslauriers >

Re: [PATCH] ARM: dts: s5pv210: Fix onenand's unit address format warning

2019-01-09 Thread Paweł Chmiel
Dnia środa, 9 stycznia 2019 14:43:03 CET Krzysztof Kozlowski pisze: > According to Devicetree specification, the unit-address must match the > first address specified in the reg property of the node. Fix the DTC > warning onenand node: > > arch/arm/boot/dts/s5pv210.dtsi:81.29-93.5: >

[PATCH] remoteproc/qcom_sysmon.c: Remove duplicate header

2019-01-09 Thread Brajeswar Ghosh
Remove linux/notifier.h which is included more than once Signed-off-by: Brajeswar Ghosh --- drivers/remoteproc/qcom_sysmon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/remoteproc/qcom_sysmon.c b/drivers/remoteproc/qcom_sysmon.c index e976a602b015..603b813151f2 100644 ---

Re: [PATCH 2/2] media: cedrus: Allow using the current dst buffer as reference

2019-01-09 Thread Hans Verkuil
On 01/09/19 15:19, Paul Kocialkowski wrote: > It was reported that some cases of interleaved video decoding require > using the current destination buffer as a reference. However, this is > no longer possible after the move to vb2_find_timestamp because only > dequeued and done buffers are

Re: General protection fault in `switch_mm_irqs_off()`

2019-01-09 Thread Lendacky, Thomas
On 1/9/19 7:35 AM, Paul Menzel wrote: > Dear Thomas, > > > On 01/09/19 14:16, Thomas Gleixner wrote: > >> On Wed, 9 Jan 2019, Paul Menzel wrote: >>> I get the same with microcode updates applied. >>> >>> $ dmesg | grep 'microcode: CPU0: patch_level' >>> [3.809210] microcode: CPU0:

Re: [PATCH net-next V2 1/3] virtio: introduce in order feature bit

2019-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2019 at 04:05:28PM +0800, Jason Wang wrote: > Signed-off-by: Jason Wang > --- > include/uapi/linux/virtio_config.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/include/uapi/linux/virtio_config.h > b/include/uapi/linux/virtio_config.h > index

Re: [PATCH net V2] vhost: log dirty page correctly

2019-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2019 at 03:29:47PM +0800, Jason Wang wrote: > Vhost dirty page logging API is designed to sync through GPA. But we > try to log GIOVA when device IOTLB is enabled. This is wrong and may > lead to missing data after migration. > > To solve this issue, when logging with device IOTLB

Re: [PATCHv5] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-01-09 Thread Baoquan He
On 01/08/19 at 05:48pm, Mike Rapoport wrote: > On Tue, Jan 08, 2019 at 05:01:38PM +0800, Baoquan He wrote: > > Hi Mike, > > > > On 01/08/19 at 10:05am, Mike Rapoport wrote: > > > I'm not thrilled by duplicating this code (yet again). > > > I liked the v3 of this patch [1] more, assuming we allow

[PATCH 2/2] media: cedrus: Allow using the current dst buffer as reference

2019-01-09 Thread Paul Kocialkowski
It was reported that some cases of interleaved video decoding require using the current destination buffer as a reference. However, this is no longer possible after the move to vb2_find_timestamp because only dequeued and done buffers are considered. Add a helper in our driver that also considers

[PATCH 1/2] media: cedrus: Cleanup duplicate declarations from cedrus_dec header

2019-01-09 Thread Paul Kocialkowski
Some leftover declarations are still in the cedrus_dec header although they were moved to cedrus_video already. Clean them up. Signed-off-by: Paul Kocialkowski --- drivers/staging/media/sunxi/cedrus/cedrus_dec.h | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH v6 0/5] spi: spi-mem: Add driver for NXP FlexSPI controller

2019-01-09 Thread Schrempf Frieder
On 08.01.19 10:24, Yogesh Narayan Gaur wrote: > - Add driver for NXP FlexSPI host controller > > FlexSPI is a flexsible SPI host controller [1], Chapter 30 page 1475, > which supports two SPI channels and up to 4 external devices. > Each channel supports Single/Dual/Quad/Octal mode data

Re: WARNING: locking bug in lock_downgrade

2019-01-09 Thread Tetsuo Handa
On 2018/12/14 4:46, Waiman Long wrote: > On 12/12/2018 08:14 PM, Yang Shi wrote: >> By looking into lockdep code, I'm not sure if lockdep may get confused >> by such sequence or not? >> >> >> Any hint is appreciated. >> >> >> Regards, >> >> Yang > > The warning was printed because hlock->read

[PATCH 0/2] ASoC: da7219: Improvements to DAI clocks handling in driver

2019-01-09 Thread Adam Thomson
This small patchset provides improvements to CCF based clock handling relating to the DAI clocks. In the first patch MCLK is made parent of DAI clocks, if MCLK has been provided to the driver, which means that MCLK will automatically be enabled as a prerequisite to DAI clocks. The second patch

[PATCH 01/10] drm/mxsfb: Update mxsfb to support a bridge

2019-01-09 Thread Robert Chiras
Currently, the MXSFB DRM driver only supports a panel. But, its output display signal can also be redirected to another encoder, like a DSI controller. In this case, that DSI controller may act like a drm_bridge. In order support this use-case too, this patch adds support for drm_bridge in mxsfb.

Re: [alsa-devel] [PATCH v1 3/3] ASoC: soc-core: fix platform name vs. of_node assignement

2019-01-09 Thread Mark Brown
On Wed, Jan 09, 2019 at 02:11:58PM +, Jon Hunter wrote: > On 09/01/2019 12:53, Mark Brown wrote: > >> Yes that is an alternative and I can convert all the Tegra machine > >> drivers to use this now. However, that will not solve the problem for > >> non-Tegra devices and everyone will have to

[PATCH 1/2] ASoC: da7219: MCLK should be enabled before DAI clocks

2019-01-09 Thread Adam Thomson
For platforms using the Common Clock Framework to control the codec's DAI clocks, MCLK should be enabled prior to DAI clocks being turned on. For some platforms the codec is already provided with an MCLK reference and can therefore control MCLK itself as it needs to. To improve functionality MCLK

[PATCH 04/10] drm/mxsfb: Update mxsfb with additional pixel formats

2019-01-09 Thread Robert Chiras
Since version 4 of eLCDIF, there are some registers that can do transformations on the input data, like re-arranging the pixel components. By doing that, we can support more pixel formats. This patch adds support for X/ABGR and RGBX/A. Although, the local alpha is not supported by eLCDIF, the

[PATCH 03/10] drm/mxsfb: Add max-res property for MXSFB

2019-01-09 Thread Robert Chiras
Because of stability issues, we may want to limit the maximum resolution supported by the MXSFB (eLCDIF) driver. This patch add support for a new property which we can use to impose such limitation. Signed-off-by: Robert Chiras --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 12 ++-- 1 file

[PATCH 10/10] drm/mxsfb: Clear OUTSTANDING_REQS bits

2019-01-09 Thread Robert Chiras
Bit 21 can alter the CTRL2_OUTSTANDING_REQS value right after the eLCDIF is enabled, since it comes up with default value of 1 (this behaviour has been seen on some imx8 platforms). In order to fix this, clear CTRL2_OUTSTANDING_REQS bits before setting its value. Signed-off-by: Robert Chiras ---

[PATCH 06/10] drm/mxsfb: Add support for new pixel formats in eLCDIF

2019-01-09 Thread Robert Chiras
From: Mirela Rabulea Add support for the following pixel formats: 16 bpp: RG16 ,BG16, XR15, XB15, AR15, AB15 Set the bus format based on input from the user and panel capabilities. Save the bus format in crtc->mode.private_flags, the DSI will use it. Use drm_get_format_name instead of

Re: [PATCH v2 1/3] PM / Suspend: Add support to check if platform's power is off in suspend

2019-01-09 Thread Pavel Machek
Hi! > Add support to check if platform's power will be cut off in suspend. > This will help drivers shared by multiple platforms to take only the > necessary actions while suspending/resuming (some platform may not need > to save/restore all the registers if platforms remains powered while >

[PATCH 08/10] drm/mxsfb: Update mxsfb to support LCD reset

2019-01-09 Thread Robert Chiras
The eLCDIF controller has control pin for the external LCD reset pin. Add support for it and assert this pin in enable and de-assert it in disable. Also, correct the pm_runtime_enable call, since it was made too early in the probe, causing issues to DRM enable routines. Signed-off-by: Robert

[PATCH 00/10] Add support for DRM bridge and additional pixel formats

2019-01-09 Thread Robert Chiras
This patchset improves the use of eLCDIF block on iMX 8 SoCs (like 8MQ, 8MM and 8QXP): 1. Add support for drm_bridge On 8MQ and 8MM, the LCDIF block is not directly connected to a parallel display connector, where an LCD panel can be attached, but instead it is connected to DSI controller. Since

[PATCH 05/10] drm/mxsfb: Fix the vblank events

2019-01-09 Thread Robert Chiras
Currently, the vblank support is not correctly implemented in MXSFB_DRM driver. The call to drm_vblank_init is made with mode_config.num_crtc which at that time is 0. Because of this, vblank is not activated, so there won't be any vblank event submitted. Signed-off-by: Robert Chiras ---

[PATCH 09/10] drm/mxsfb: Improve the axi clock usage

2019-01-09 Thread Robert Chiras
Currently, the enable of the axi clock return status is ignored, causing issues when the enable fails then we try to disable it. Therefore, it is better to check the return status and disable it only when enable succeeded. Also, remove the helper functions around clk_axi, since we can directly use

[PATCH 02/10] dt-bindings: display: Add max-res property for mxsfb

2019-01-09 Thread Robert Chiras
Add new optional property 'max-res', to limit the maximum supported resolution by the MXSFB_DRM driver. Signed-off-by: Robert Chiras --- Documentation/devicetree/bindings/display/mxsfb.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 07/10] drm/mxsfb: Signal mode changed when bpp changed

2019-01-09 Thread Robert Chiras
From: Mirela Rabulea Add mxsfb_atomic_helper_check to signal mode changed when bpp changed. This will trigger the execution of disable/enable on a modeset with different bpp than the current one. Signed-off-by: Mirela Rabulea --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 48

[PATCH 2/2] ASoC: da7219: Add recalc_rate function to return DAI clock rate

2019-01-09 Thread Adam Thomson
By making MCLK parent of DAI clocks, when querying the rate of the clock the rate returned is now given from the parent clock so gives the MCLK rate rather than 0 as previously returned. This is a bit misleading, and actually there's no major reason why we can't at least return the DAI WCLK rate,

Re: Regression in v5.0-rc1 with autosuspend hrtimers

2019-01-09 Thread Vincent Guittot
Please keep all thread list when replying :-) On Wed, 9 Jan 2019 at 14:33, Ladislav Michl wrote: > > On Wed, Jan 09, 2019 at 02:24:37PM +0100, Vincent Guittot wrote: > > On Wed, 9 Jan 2019 at 12:58, Ladislav Michl wrote: > > > > > > On Wed, Jan 09, 2019 at 12:27:57PM +0100, Vincent Guittot

Re: [alsa-devel] [PATCH v1 3/3] ASoC: soc-core: fix platform name vs. of_node assignement

2019-01-09 Thread Jon Hunter
On 09/01/2019 12:53, Mark Brown wrote: ... >> Yes that is an alternative and I can convert all the Tegra machine >> drivers to use this now. However, that will not solve the problem for >> non-Tegra devices and everyone will have to do this. > > We're going to have to go through another round

Re: [PATCH RFC 0/3] mm: Reduce IO by improving algorithm of memcg pagecache pages eviction

2019-01-09 Thread Michal Hocko
On Wed 09-01-19 15:20:18, Kirill Tkhai wrote: > On nodes without memory overcommit, it's common a situation, > when memcg exceeds its limit and pages from pagecache are > shrinked on reclaim, while node has a lot of free memory. Yes, that is the semantic of the hard limit. If the system is not

Re: [PATCH] mm,slab,memcg: call memcg kmem put cache with same condition as get

2019-01-09 Thread Rik van Riel
On Tue, 2019-01-08 at 21:36 -0800, Shakeel Butt wrote: > On Tue, Jan 8, 2019 at 8:01 PM Rik van Riel wrote: > > > > There is an imbalance between when slab_pre_alloc_hook calls > > memcg_kmem_get_cache and when slab_post_alloc_hook calls > > memcg_kmem_put_cache. > > > > Can you explain how

[PATCH] scsi: qla1280: set 64bit coherent mask

2019-01-09 Thread Thomas Bogendoerfer
After Commit 54aed4dd3526 ("MIPS: IP27: use dma_direct_ops") qla1280 driver failed on SGI IP27 machines with qla1280: QLA1040 found on PCI bus 0, dev 0 qla1280 :00:00.0: enabling device (0006 -> 0007) qla1280: Failed to get request memory qla1280: probe of :00:00.0 failed with error -12

Re: [RFC PATCH 1/1] KEYS, integrity: Link .platform keyring to .secondary_trusted_keys

2019-01-09 Thread Mimi Zohar
On Wed, 2019-01-09 at 09:33 +0800, Dave Young wrote: > CC kexec list > On 01/08/19 at 10:18am, Mimi Zohar wrote: > > [Cc'ing the LSM and integrity mailing lists] > > > > Repeating my comment on PATCH 0/1 here with the expanded set of > > mailing lists. > > > > The builtin and secondary keyrings

Re: [PATCH v6 2/5] leds: Add helper for getting default pattern from Device Tree

2019-01-09 Thread Krzysztof Kozlowski
On Mon, 7 Jan 2019 at 18:49, Pavel Machek wrote: > > Hi! > > > Multiple LED triggers might need to access default pattern so add a > > helper for that. > > > > } > > EXPORT_SYMBOL_GPL(led_update_brightness); > > > > +u32 *led_get_default_pattern(struct led_classdev *led_cdev, unsigned int > >

Re: [PATCH 4/4] usb: musb: Add support for MediaTek musb controller

2019-01-09 Thread Bin Liu
Hi Min, On Wed, Jan 09, 2019 at 08:31:08PM +0800, Min Guo wrote: > Hi Bin, > On Tue, 2019-01-08 at 09:44 -0600, Bin Liu wrote: > > Hi, > > > > On Thu, Dec 27, 2018 at 03:34:26PM +0800, min@mediatek.com wrote: > > > From: Min Guo > > > > > > This adds support for MediaTek musb controller in

[PATCH v3 5/5] xfs: disable map_sync for virtio pmem

2019-01-09 Thread Pankaj Gupta
Virtio pmem provides asynchronous host page cache flush mechanism. we don't support 'MAP_SYNC' with virtio pmem and xfs. Signed-off-by: Pankaj Gupta --- fs/xfs/xfs_file.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index e474250..eae4aa4

[PATCH v2] arm64: dts: meson: Fix mmc cd-gpio polarity

2019-01-09 Thread Loys Ollivier
Commit 89a5e15bcba8 ("gpio/mmc/of: Respect polarity in the device tree") changed the behavior of "cd-inverted" to follow the device tree bindings specification. Lines specifying "cd-inverted" are now "acitve high". Fix the SD card for meson by setting the cd-gpio as "active low" according to the

[PATCH v3 4/5] ext4: disable map_sync for virtio pmem

2019-01-09 Thread Pankaj Gupta
Virtio pmem provides asynchronous host page cache flush mechanism. We don't support 'MAP_SYNC' with virtio pmem and ext4. Signed-off-by: Pankaj Gupta --- fs/ext4/file.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index

Re: [PATCH] rcu: Remove rcu_*_state declaration

2019-01-09 Thread Paul E. McKenney
On Wed, Jan 09, 2019 at 10:13:28PM +0800, Peng Hao wrote: > Because of just only one set of rcu_state, the declaration of > rcu_sched_state/rcu_bh_state/rcu_preempt_state is unnecessary. > > Signed-off-by: Peng Hao This does not apply to my current -rcu tree. Please see branch "dev" of

[PATCH v3 3/5] libnvdimm: add nd_region buffered dax_dev flag

2019-01-09 Thread Pankaj Gupta
This patch adds 'DAXDEV_BUFFERED' flag which is set for virtio pmem corresponding nd_region. This later is used to disable MAP_SYNC functionality for ext4 & xfs filesystem. Signed-off-by: Pankaj Gupta --- drivers/dax/super.c | 17 + drivers/nvdimm/pmem.c| 3 +++

[PATCH] ARM: dts: s3c2416: Fix xti node's missing reg property warning

2019-01-09 Thread Krzysztof Kozlowski
Fix the DTC warning for xti node: arch/arm/boot/dts/s3c2416-smdk2416.dts:23.12-28.5: Warning (simple_bus_reg): /clocks/xti: missing or empty reg/ranges property Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3c2416-smdk2416.dts | 5 - 1 file changed, 4

[PATCH v3 2/5] virtio-pmem: Add virtio pmem driver

2019-01-09 Thread Pankaj Gupta
This patch adds virtio-pmem driver for KVM guest. Guest reads the persistent memory range information from Qemu over VIRTIO and registers it on nvdimm_bus. It also creates a nd_region object with the persistent memory range information so that existing 'nvdimm/pmem' driver can reserve this into

[PATCH v3 1/5] libnvdimm: nd_region flush callback support

2019-01-09 Thread Pankaj Gupta
This patch adds functionality to perform flush from guest to host over VIRTIO. We are registering a callback based on 'nd_region' type. virtio_pmem driver requires this special flush function. For rest of the region types we are registering existing flush function. Report error returned by host

[PATCH v3 0/5] kvm "virtio pmem" device

2019-01-09 Thread Pankaj Gupta
This patch series has implementation for "virtio pmem". "virtio pmem" is fake persistent memory(nvdimm) in guest which allows to bypass the guest page cache. This also implements a VIRTIO based asynchronous flush mechanism. Sharing guest kernel driver in this patchset with the changes

[PATCH] arm64: dts: meson: Fix mmc cd-gpio polarity

2019-01-09 Thread Loys Ollivier
Commit 89a5e15bcba8 ("gpio/mmc/of: Respect polarity in the device tree") changed the behavior of "cd-inverted" to follow the device tree bindings specification. Lines specifying "cd-inverted" are now "acitve high". Fix the SD card for meson by setting the cd-gpio as "active low" according to the

Re: [PATCH 4.20 079/145] ext4: check for shutdown and r/o file system in ext4_write_inode()

2019-01-09 Thread Sasha Levin
On Mon, Jan 07, 2019 at 04:56:06PM -0500, Sasha Levin wrote: On Mon, Jan 07, 2019 at 01:31:56PM +0100, Greg Kroah-Hartman wrote: 4.20-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit

[PATCH v6 3/8] mfd: stmpe: preparations for STMPE ADC driver

2019-01-09 Thread Philippe Schenker
From: Stefan Agner This prepares the MFD for the STMPE ADC driver. This commit introduces devicetree settings that are used by the ADC and adds an init function. Common ADC settings that are shared with the touchscreen driver can now reside in the overlying MFD. Signed-off-by: Stefan Agner

[PATCH v6 1/8] dt-bindings: stmpe: reformatting parameter list and use tabs only

2019-01-09 Thread Philippe Schenker
From: Philippe Schenker This patch reformats the parameter list for stmpe device in a table-style so it is more clear to read. Signed-off-by: Philippe Schenker Acked-for-MFD-by: Lee Jones Reviewed-by: Rob Herring --- Changes in v6: - Added Rob's Reviewed-by Changes in v5: - Made a one

[PATCH v6 4/8] Input: stmpe-ts: preparations for STMPE ADC driver

2019-01-09 Thread Philippe Schenker
From: Philippe Schenker This patch removes common ADC settings in favor to use stmpe811_adc_common_init that is present in MFD. This is necessary in preparation for the stmpe-adc driver, because those two drivers have common settings for the ADC. Signed-off-by: Philippe Schenker Acked-by:

[PATCH] ARM: dts: s5pv210: Fix onenand's unit address format warning

2019-01-09 Thread Krzysztof Kozlowski
According to Devicetree specification, the unit-address must match the first address specified in the reg property of the node. Fix the DTC warning onenand node: arch/arm/boot/dts/s5pv210.dtsi:81.29-93.5: Warning (simple_bus_reg): /soc/onenand@b000: simple-bus unit address

[PATCH v6 7/8] ARM: dts: Add stmpe-adc DT node to Toradex iMX6 modules

2019-01-09 Thread Philippe Schenker
From: Philippe Schenker Add the stmpe-adc DT node as found on Toradex iMX6 modules Signed-off-by: Philippe Schenker --- Changes in v6: - Just realized that the comment for st,norequest-mask was at the wrong place, fixed. Changes in v5: None Changes in v4: - Moved T30 devicetree

[PATCH v6 0/8] Adding support for STMPE811 ADC

2019-01-09 Thread Philippe Schenker
From: Philippe Schenker Hello everyone, This patchset is adding an ADC driver for STMPE811. The STMPE811 is a Multi-Frontend-Device that supports a touchscreen, ADC, GPIO and a temperature sensor. For Touchscreen and GPIO there are already existing drivers in mainline. This patchset will add

[PATCH v6 8/8] ARM: dts: Add stmpe-adc DT node to Toradex T30 modules

2019-01-09 Thread Philippe Schenker
From: Philippe Schenker Add the stmpe-adc DT node as found on Toradex T30 modules Signed-off-by: Philippe Schenker --- Changes in v6: - Just realized that the comment for st,norequest-mask was at the wrong place, fixed. - Added also tegra30-apalis-v1.1.dtsi, as I forgot that. Changes

[PATCH v6 5/8] iio: adc: add STMPE ADC driver using IIO framework

2019-01-09 Thread Philippe Schenker
From: Stefan Agner This adds an ADC driver for the STMPE device using the industrial input/output interface. The driver supports raw reading of values. The driver depends on the MFD STMPE driver. If the touchscreen block is enabled too, only four of the 8 ADC channels are available.

[PATCH v6 6/8] iio: adc: add STMPE ADC devicetree bindings

2019-01-09 Thread Philippe Schenker
From: Stefan Agner This adds the devicetree bindings for the STMPE ADC. This also corrects a typo in st,sample-time it is rather "6 -> 124 clocks" according to the datasheet and not 144. We need to use the naming stmpe_adc in devicetree because this is given by the mfd device. Signed-off-by:

[PATCH v6 2/8] mfd: stmpe: Move ADC related defines to header of mfd

2019-01-09 Thread Philippe Schenker
From: Philippe Schenker Move defines that are ADC related to the header of the overlying mfd, so they can be used from multiple sub-devices. Signed-off-by: Philippe Schenker Acked-by: Lee Jones Acked-by: Dmitry Torokhov --- Changes in v6: None Changes in v5: - Changed author of commit to

Re: [RFC PATCH v1 3/5] Yama: Enforces noexec mounts or file executability through O_MAYEXEC

2019-01-09 Thread Mickaël Salaün
On 09/01/2019 00:30, Kees Cook wrote: > On Tue, Jan 8, 2019 at 5:29 AM Mickaël Salaün > wrote: >> >> >> On 03/01/2019 12:17, Jann Horn wrote: >>> On Thu, Dec 13, 2018 at 3:49 PM Mickaël Salaün >>> wrote: On 12/12/2018 18:09, Jann Horn wrote: > On Wed, Dec 12, 2018 at 9:18 AM Mickaël

Re: [PATCH v3 1/4] dt-bindings: input: touchscreen: goodix: Document AVDD28-supply property

2019-01-09 Thread Rob Herring
Please CC DT list if you want bindings reviewed. On Wed, Jan 9, 2019 at 1:40 AM Dmitry Torokhov wrote: > > On Sat, Dec 15, 2018 at 08:47:59PM +0530, Jagan Teki wrote: > > Most of the Goodix CTP controllers are supply with AVDD28 pin. > > which need to supply for controllers like GT5663 on some

Re: lockdep warning while reading sysfs

2019-01-09 Thread Qian Cai
> You stripped out the stack trace at the bottom that shows the inversion > :/ > Sorry, I thought it is the same as in #0, but here it is the whole thing. WARNING: possible circular locking dependency detected 5.0.0-rc1+ #60 Not tainted --

<    4   5   6   7   8   9   10   11   12   13   >