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

2019-01-06 Thread Wei Wang
virtio-ccw has deadlock issues with reading the config space inside the interrupt context, so we tweak the virtballoon_changed implementation by moving the config read operations into the related workqueue contexts. The config_read_bitmap is used as a flag to the workqueue callbacks about the

[PATCH v3 0/3] virtio-balloon: tweak config_changed

2019-01-06 Thread Wei Wang
Since virtio-ccw doesn't work with accessing to the config space inside an interrupt context, this patch series avoids that issue by moving the config register accesses to the related workqueue contexts. v2->v3 ChangeLog: - rename cmd_id_received to cmd_id_received_cache, and have call sites

Re: linux-next: Tree for Jan 7

2019-01-06 Thread Geert Uytterhoeven
Hi Stephen, Michael, Happy NY! Looking forward to lots of linux-next releases and build logs in 2019 ;-) On Mon, Jan 7, 2019 at 5:08 AM Stephen Rothwell wrote: > Status of my local build tests will be at > http://kisskb.ellerman.id.au/linux-next . If maintainers want to give > advice about

[PATCH v3 3/3] virtio_balloon: remove the unnecessary 0-initialization

2019-01-06 Thread Wei Wang
We've changed to kzalloc the vb struct, so no need to 0-initialize this field one more time. Signed-off-by: Wei Wang --- drivers/virtio/virtio_balloon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index e33dc8e..f19061b

[PATCH v3 2/3] virtio-balloon: improve update_balloon_size_func

2019-01-06 Thread Wei Wang
There is no need to update the balloon actual register when there is no ballooning request. This patch avoids update_balloon_size when diff is 0. Signed-off-by: Wei Wang Reviewed-by: Cornelia Huck Reviewed-by: Halil Pasic --- drivers/virtio/virtio_balloon.c | 5 - 1 file changed, 4

Re: [PATCH v1] cpufreq: qcom: Read voltage LUT and populate OPP

2019-01-06 Thread Taniya Das
On 12/22/2018 3:15 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-12-21 10:06:48) Add support to read the voltage look up table and populate OPP for all corresponding CPUS. Yes, but why? Please specify the motivations in the commit text. Sure, would update in the next patch. --

[PATCH] x86/boot: drop memset from copy.S

2019-01-06 Thread Cao jin
According to objdump output of setup, function memset is not used in setup code. Currently, all usage of memset in setup come from macro definition of string.h. Signed-off-by: Cao jin --- Compiled and booted under x86_64; compiled under i386. Questions: now there is 2 definition of memcpy, one

Re: WARNING in enqueue_task_dl

2019-01-06 Thread Juri Lelli
Hi, On 02/01/19 10:15, luca abeni wrote: > Hi all, > (and, happy new year to everyone!) > > this looks similar to a bug we have seen some time ago (a task > switching from SCHED_OTHER to SCHED_DEADLINE while inheriting a > deadline from a SCHED_DEADLINE task triggers the warning)... > > Juri, I

[PATCH 3/8] spi: lpspi: Improve the stability of lpspi data transmission

2019-01-06 Thread Clark Wang
Use SR_TDF to judge if need to send data, and SR_FCF is to judge if transmission end and to replace the waiting after transmission end. This waiting has no actual meaning, for module will set the FCF flag at the real end. The changes of interrupt flag and ISR function reduce the times of calling

[PATCH 5/8] spi: lpspi: Fix CLK pin becomes low before one transfer

2019-01-06 Thread Clark Wang
Remove Reset operation in fsl_lpspi_config(). This RST may cause both CLK and CS pins go from high to low level under cs-gpio mode. Add fsl_lpspi_reset() function after one message transfer to clear all flags in use. Signed-off-by: Clark Wang Reviewed-by: Fugang Duan ---

[PATCH 1/8] spi: lpspi: Add i.MX8 boards support for lpspi

2019-01-06 Thread Clark Wang
Add both ipg and per clock for lpspi to support i.MX8QM/QXP boards. Signed-off-by: Clark Wang --- drivers/spi/spi-fsl-lpspi.c | 52 + 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c

[PATCH 7/8] spi: lpspi: Add cs-gpio support

2019-01-06 Thread Clark Wang
Add cs-gpio feature for LPSPI. The cs line will be controlled in fsl_lpspi_transfe_one_msg() function. Still support using the mode without cs-gpio. It depends on if attribute cs-gpio has been configured in dts file. Signed-off-by: Clark Wang --- drivers/spi/spi-fsl-lpspi.c | 89

[PATCH 2/8] spi: lpspi: enable runtime pm for lpspi

2019-01-06 Thread Clark Wang
From: Han Xu Enable the runtime power management for lpspi module. Do some adaptation work from kernel 4.9 to 4.14. Signed-off-by: Clark Wang Signed-off-by: Han Xu Reviewed-by: Frank Li --- drivers/spi/spi-fsl-lpspi.c | 117 1 file

[PATCH 0/8] spi: lpspi: Fix bugs and Add some functions support

2019-01-06 Thread Clark Wang
Hi Mark, As subject, these fucntions support, including: - Support i.MX8 series boards; - Support cs-gpio fucntion; - Support DMA mode for both master and salve mode. >From patch 3 to 6 are some bug-fix for PIO mode. In order to avoid data loss and improve data transmission stability. These

[PATCH 6/8] spi: lpspi: add the error info of transfer speed setting

2019-01-06 Thread Clark Wang
Add a error info when set a speed which greater than half of per-clk of spi module. The minimum SCK period is 2 cycles(CCR[SCKDIV]). So the maximum transfer speed is half of spi per-clk. Signed-off-by: Clark Wang --- drivers/spi/spi-fsl-lpspi.c | 16 +--- 1 file changed, 13

[PATCH 4/8] spi: lpspi: Fix wrong transmission when don't use CONT

2019-01-06 Thread Clark Wang
Add judgment on SR_MBF and FSR_RXCOUNT. In PIO mode, if don't use CONT to keep cs selected in one transfer, the transfer will go wrong. FCIE will be set after one frame transfer finish. If use CONT, the frame refer to the whole data in one transfer. If don't use CONT, the frame refer to one byte

[PATCH 8/8] spi: lpspi: add dma mode support

2019-01-06 Thread Clark Wang
Add dma mode support for LPSPI. Any frame longer than half txfifosize will be sent by dma mode. For now, there are some notes: 1. The maximum transfer speed in master mode depends on the slave device, at least 40MHz on i.MX8 series (tested by spi-nor on 8qm-lpddr4-arm2 base board); 2. The

Re: [PATCH 1/2] arm64: dts: qcom: sdm845: Add ADSP reserve-memory nodes

2019-01-06 Thread Rohit Kumar
Thanks Bjorn for review. On 1/4/2019 5:12 AM, Bjorn Andersson wrote: On Thu 20 Dec 05:39 PST 2018, Rohit kumar wrote: Add memory nodes required for remoteproc q6v5_adsp pil. This range doesn't match the documented memory map. I would prefer to see a "Specify all PIL regions as defined in

Re: KMSAN: uninit-value in tipc_nl_compat_link_set (2)

2019-01-06 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:11587f6ee534 kmsan: remove pr_err git tree: kmsan console output: https://syzkaller.appspot.com/x/log.txt?x=114c539b40 kernel config: https://syzkaller.appspot.com/x/.config?x=c8a62a4eb8ea3e9f dashboard link:

Re: [PATCH] Elantech Touchpad: Fix Elantech touchpad and trackpoint for Lenovo ThinkPad notebooks.

2019-01-06 Thread Benjamin Tissoires
Hi Philipp, On Sat, Dec 29, 2018 at 6:35 AM Philipp Kaelin wrote: > > Initial situation: > - The touchpad of a Lenovo ThinkPad L580 doesn't work with newer kernel > versions eg. 4.20 > - It used to work on earlier versions eg. 4.14 > > Cause: > - The elantech driver was adapted in to support

<    1   2   3   4