Re: [PATCH] gpu: drm: drm_vm: Adding new typedef vm_fault_t

2018-05-28 Thread Daniel Vetter
On Fri, May 25, 2018 at 02:00:33AM +0530, Souptick Joarder wrote: > On Wed, May 16, 2018 at 10:09 AM, Souptick Joarder > wrote: > > On Thu, May 10, 2018 at 7:12 PM, Souptick Joarder > > wrote: > >> Use new return type vm_fault_t for fault handler. For > >> now, this is just documenting that the

[PATCH] powerpc/cell: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Christophe Leroy
Latest GCC version emit the following warnings As arch/powerpc code is built with -Werror, this breaks build with GCC 8.1 This patch inhibits those warnings CC arch/powerpc/platforms/cell/spu_syscalls.o In file included from arch/powerpc/platforms/cell/spu_syscalls.c:26: ./include/linux/s

[PATCH] video/hdmi: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- drivers/video/hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index 111a0ab..46c184c 100644 --- a/drivers/video/hdmi.c +++ b/drivers/vide

[PATCH v2] powerpc: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Christophe Leroy
Latest GCC version emit the following warnings As arch/powerpc code is built with -Werror, this breaks build with GCC 8.1 This patch inhibits those warnings CC arch/powerpc/kernel/syscalls.o In file included from arch/powerpc/kernel/syscalls.c:24: ./include/linux/syscalls.h:233:18: error:

Re: [PATCH 4.16 231/272] fanotify: Avoid lost events due to ENOMEM for unlimited queues

2018-05-28 Thread Greg Kroah-Hartman
On Mon, May 28, 2018 at 02:52:57PM +0200, Jan Kara wrote: > On Mon 28-05-18 15:39:04, Amir Goldstein wrote: > > On Mon, May 28, 2018 at 1:04 PM, Greg Kroah-Hartman > > wrote: > > > 4.16-stable review patch. If anyone has any objections, please let me > > > know. > > > > > > > I do not have obje

[PATCH] KVM: VMX: Optimize tscdeadline timer latency

2018-05-28 Thread Wanpeng Li
From: Wanpeng Li 'Commit d0659d946be0 ("KVM: x86: add option to advance tscdeadline hrtimer expiration")' advances the tscdeadline (the timer is emulated by hrtimer) expiration in order that the latency which is incurred by hypervisor (apic_timer_fn -> vmentry) can be avoided. This patch adds

[PATCH] nvme: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 99b857e..b823ecb 100644 --- a/drivers/nvme/host/core.c +++ b/

Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization

2018-05-28 Thread Vincent Guittot
On 29 May 2018 at 08:31, Juri Lelli wrote: > On 28/05/18 22:08, Joel Fernandes wrote: >> On Mon, May 28, 2018 at 12:12:34PM +0200, Juri Lelli wrote: >> [..] >> > > + >> > > + util = max_t(unsigned long, util, READ_ONCE(rq->avg_dl.util_avg)); >> > > + >> > > + return util; >> > >> > Anyway, just a

Re: [PATCH v2 10/11] arm64: dts: r8a77965-salvator-x: Enable DU external clocks and HDMI

2018-05-28 Thread Geert Uytterhoeven
Hi Morimoto-san, On Tue, May 29, 2018 at 3:44 AM, Kuninori Morimoto wrote: >> > +&hdmi0_con { >> > + remote-endpoint = <&rcar_dw_hdmi0_out>; >> > +}; >> >> I think the hdmi0 and hdmi0_con parts can be moved to salvator-common.dtsi. >> Can we do that now (with stubs?), or does this have to w

Re: [PATCH 8/8] signal: simplify rt_sigaction()

2018-05-28 Thread Christoph Hellwig
> + if (act) > if (copy_from_user(&new_sa.sa, act, sizeof(new_sa.sa))) > return -EFAULT; if (act && copy_from_user(&new_sa.sa, act, sizeof(new_sa.sa))) return -EFAULT; > ret = do_sigaction(sig, act ? &new_sa : NULL, oact ? &old

Re: [PATCH v2] drm: udl: Destroy framebuffer only if it was initialized

2018-05-28 Thread Daniel Vetter
On Mon, May 28, 2018 at 04:27:11PM +0200, Emil Lundmark wrote: > This fixes a NULL pointer dereference that can happen if the UDL > driver is unloaded before the framebuffer is initialized. This can > happen e.g. if the USB device is unplugged right after it was plugged > in. > > As explained by S

Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t

2018-05-28 Thread Daniel Vetter
On Thu, May 24, 2018 at 07:51:40PM +0530, Souptick Joarder wrote: > On Thu, May 24, 2018 at 6:27 PM, Daniel Vetter wrote: > > On Wed, May 23, 2018 at 03:05:35PM +0530, Souptick Joarder wrote: > >> On Mon, May 14, 2018 at 9:56 PM, Daniel Vetter wrote: > >> > On Thu, May 10, 2018 at 02:51:38PM -040

Re: [PATCH 0/2] Add Mediatek X20 Development Board support

2018-05-28 Thread Matthias Brugger
Hi Manivannan, it's nice to see that someone at Linaro cares about upstreaming the 96 board. >From what I can see, your patches add the very same support to the board as does the mt6797 evaluation board. Do you have plans to upstream more drivers for the board? Do you have a roadmap or something?

[PATCH] writeback: tracing: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- include/trace/events/writeback.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index 32db72c..cfaf5

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-05-28 Thread Eugen Hristev
On 28.05.2018 13:10, Peter Rosin wrote: On 2018-05-28 00:11, Peter Rosin wrote: On 2018-05-27 11:18, Peter Rosin wrote: On 2018-05-25 16:51, Tudor Ambarus wrote: We think the best way is to keep LCD on DDR Ports 2 and 3 (8th and 9th slaves), to have maximum bandwidth and to use DMA on DDR p

Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization

2018-05-28 Thread Juri Lelli
On 28/05/18 22:08, Joel Fernandes wrote: > On Mon, May 28, 2018 at 12:12:34PM +0200, Juri Lelli wrote: > [..] > > > + > > > + util = max_t(unsigned long, util, READ_ONCE(rq->avg_dl.util_avg)); > > > + > > > + return util; > > > > Anyway, just a quick thought. I guess we should experiment with thi

[PATCH] blk-wbt: tracing: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- include/trace/events/wbt.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/trace/events/wbt.h b/include/trace/events/wbt.h index b048694..305252d 100644 --- a/include/trace/eve

Re: [alsa-devel] [PATCH] ALSA: xen: ensure nul-terminated device name

2018-05-28 Thread Takashi Iwai
On Tue, 29 May 2018 07:48:51 +0200, Oleksandr Andrushchenko wrote: > > On 05/28/2018 06:59 PM, Arnd Bergmann wrote: > > gcc-8 warns that pcm_instance->name is not necessarily terminated correctly > > if the input is more than 80 characters long or lacks a termination byte > > itself: > > > > In fu

Re: [PATCH 3/5] scsi: ufs: Add Kconfig for UFS HC driver crypto support

2018-05-28 Thread Ladvine D Almeida
On Monday 28 May 2018 04:49 PM, Randy Dunlap wrote: > On 05/28/2018 06:29 AM, Ladvine D Almeida wrote: >> >> This patch adds the Kconfig for enabling crypto support for >> UFS Host Controller driver. It also adds Makefile changes >> for building crypto support based on crypto Kconfig selection. >>

Re: [PATCH v8 4/6] cpuset: Make generate_sched_domains() recognize isolated_cpus

2018-05-28 Thread Juri Lelli
On 28/05/18 21:24, Waiman Long wrote: > On 05/28/2018 09:12 PM, Waiman Long wrote: > > On 05/24/2018 06:28 AM, Juri Lelli wrote: > >> On 17/05/18 16:55, Waiman Long wrote: > >> > >> [...] > >> > >>> @@ -849,7 +860,12 @@ static void rebuild_sched_domains_locked(void) > >>>* passing doms with off

Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-28 Thread Oleksandr Andrushchenko
ping On 05/22/2018 05:13 PM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko When unplugging a hotpluggable DRM device we first unregister it with drm_dev_unregister and then set drm_device.unplugged flag which is used to mark device critical sections with drm_dev_enter()/ drm_dev

[PATCH] ext4: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- fs/ext4/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index eb104e8..d47c85f 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -323,11 +323,

Re: [PATCH 4/5] clocksource: add driver for i.MX EPIT timer

2018-05-28 Thread Vladimir Zapolskiy
Hi Clément, please find basic review comments below. On 05/28/2018 08:34 PM, Clément Péron wrote: > From: Colin Didier > > Add driver for NXP's EPIT timer used in i.MX 6 family of SoC. > The first author's signed-off-by tag is missing. > Signed-off-by: Clément Peron > --- > drivers/clockso

Re: [PATCH v2] media: staging: tegra-vde: Reset memory client

2018-05-28 Thread Hans Verkuil
Hi Dmitry, On 05/26/2018 04:27 PM, Dmitry Osipenko wrote: > DMA requests must be blocked before resetting VDE HW, otherwise it is > possible to get a memory corruption or a machine hang. Use the reset > control provided by the Memory Controller to block DMA before resetting > the VDE HW. > > Sign

[PATCH net] vhost_net: flush batched heads before trying to busy polling

2018-05-28 Thread Jason Wang
After commit e2b3b35eb989 ("vhost_net: batch used ring update in rx"), we tend to batch updating used heads. But it doesn't flush batched heads before trying to do busy polling, this will cause vhost to wait for guest TX which waits for the used RX. Fixing by flush batched heads before busy loop.

Re: [RFC v5 3/5] virtio_ring: add packed ring support

2018-05-28 Thread Jason Wang
On 2018年05月29日 13:11, Tiwei Bie wrote: On Tue, May 29, 2018 at 11:18:57AM +0800, Jason Wang wrote: On 2018年05月22日 16:16, Tiwei Bie wrote: [...] +static void detach_buf_packed(struct vring_virtqueue *vq, + unsigned int id, void **ctx) +{ + struct vring_desc_

Re: [PATCH] riscv: pass machine size to sparse

2018-05-28 Thread Masahiro Yamada
2018-05-29 15:11 GMT+09:00 Christoph Hellwig : > On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: >> By default, sparse assumes a 64bit machine when compiled on x86-64 >> and 32bit when compiled on anything else. >> >> This can of course create all sort of problems when this does

Re: [RFC v5 2/5] virtio_ring: support creating packed ring

2018-05-28 Thread Jason Wang
On 2018年05月29日 13:24, Tiwei Bie wrote: On Tue, May 29, 2018 at 10:49:11AM +0800, Jason Wang wrote: On 2018年05月22日 16:16, Tiwei Bie wrote: This commit introduces the support for creating packed ring. All split ring specific functions are added _split suffix. Some necessary stubs for packed ri

Re: [PATCH 4.4 000/268] 4.4.134-stable review

2018-05-28 Thread Naresh Kamboju
ode-native * kselftest-vsyscall-mode-none Hikey test results, Summary kernel: 4.4.134-rc1 git repo: https://git.linaro.org/lkft/arm64-stable-rc.git git branch: 4.4.134-rc1-hikey-20180528-206 git commit: c4a9948ea47675e12c3f2a5ff009b2d0cb6c7517 git describe: 4.4.1

Re: [PATCH] riscv: pass machine size to sparse

2018-05-28 Thread Christoph Hellwig
On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: > By default, sparse assumes a 64bit machine when compiled on x86-64 > and 32bit when compiled on anything else. > > This can of course create all sort of problems when this doesn't > correspond to the target's machine size, like

Re: [PATCH 4.14 000/496] 4.14.45-stable review

2018-05-28 Thread Naresh Kamboju
On 28 May 2018 at 15:26, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.45 release. > There are 496 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[PATCH v2] clk: qcom: Enable clocks which needs to be always on for SDM845

2018-05-28 Thread Amit Nischal
There are certain clocks which needs to be always enabled for system operation. Remove support for such clocks from the clock driver and enable them explicitly gcc driver probe. Also fix the target name in kernel configuration description for SDM845 gcc driver. Signed-off-by: Amit Nischal --- Ch

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

2018-05-28 Thread Stephen Rothwell
Hi Rob, On Wed, 9 May 2018 07:17:06 -0500 Rob Herring wrote: > > > and over 2000 more :-( > > I assume you mean on other files. I've already sent out patches for > arm and arm64 dts files. Yeah, we appear to be just down to this now: arch/arm/boot/dts/qcom-apq8064-arrow-sd-600eval.dtb: Warni

[PATCH] tracing: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- kernel/trace/trace_events_hist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c index b9061ed..b53a6c0 100644 --- a/kernel/

[PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-28 Thread Christophe Leroy
CC arch/powerpc/kernel/nvram_64.o arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': arch/powerpc/kernel/nvram_64.c:1042:2: error: 'strncpy' specified bound 12 equals destination size [-Werror=stringop-truncation] strncpy(new_part->header.name, name, 12); ^~~~

Re: [Xen-devel] [PATCH 3/8] drm/xen-front: fix 32-bit build warning

2018-05-28 Thread Oleksandr Andrushchenko
Hi, On 05/25/2018 06:50 PM, Arnd Bergmann wrote: In 32-bit kernel builds, we cannot cast between a pointer and a 64-bit type: In file included from drivers/gpu/drm/xen/xen_drm_front_cfg.c:18: drivers/gpu/drm/xen/xen_drm_front.h: In function 'xen_drm_front_fb_to_cookie': drivers/gpu/drm/xen/xen_

[PATCH] kdb: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes stringop-truncation and stringop-overflow warnings from gcc-8. Signed-off-by: Nick Desaulniers --- kernel/debug/kdb/kdb_io.c | 2 +- kernel/debug/kdb/kdb_main.c| 4 ++-- kernel/debug/kdb/kdb_support.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/de

Re: [PATCH] platform: chrome: Add input dependency for tablet switch driver

2018-05-28 Thread Benson Leung
Hi Arnd, On Mon, May 28, 2018 at 05:58:46PM +0200, Arnd Bergmann wrote: > Without CONFIG_INPUT, or with a modular input layer and built-in > tablet driver, we get a link error: > > ERROR: "input_event" [drivers/platform/chrome/chromeos_tbmc.ko] undefined! > ERROR: "input_register_device" [drivers

linux-next: manual merge of the irqchip tree with the arm-soc tree

2018-05-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the irqchip tree got a conflict in: arch/arm/boot/dts/stm32mp157c.dtsi between commit: 3c00436fdb20 ("ARM: dts: stm32: add USBPHYC support to stm32mp157c") from the arm-soc tree and commit: 5f0e9d2557d7 ("ARM: dts: stm32: Add exti support for stm32mp1

Re: [alsa-devel] [PATCH] ALSA: xen: ensure nul-terminated device name

2018-05-28 Thread Oleksandr Andrushchenko
On 05/28/2018 06:59 PM, Arnd Bergmann wrote: gcc-8 warns that pcm_instance->name is not necessarily terminated correctly if the input is more than 80 characters long or lacks a termination byte itself: In function 'strncpy', inlined from 'cfg_device' at sound/xen/xen_snd_front_cfg.c:399:3,

[PATCH] crypto: blkcipher: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes stringop-truncation warnings from gcc-8. Signed-off-by: Nick Desaulniers --- crypto/ablkcipher.c | 8 crypto/blkcipher.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c index d880a48..e38867f 100644 --- a/crypto/a

Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet

2018-05-28 Thread Finn Thain
On Tue, 29 May 2018, Michael Schmitz wrote: > > > > Since an arch gets to apply limits in the dma ops it implements, why > > would arch code also have to set a limit in the form of default > > platform device masks? Powerpc seems to be the only arch that does > > this. > > One of Christoph's

Re: [PATCH 4.9 000/329] 4.9.104-stable review

2018-05-28 Thread Naresh Kamboju
On 28 May 2018 at 15:28, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.104 release. > There are 329 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: linux-next: build failure after merge of the net-next tree

2018-05-28 Thread Christoph Hellwig
> [Christoph, I noticed that the comment above datagram_poll in > net/core/datagram.c needs the function name updated] I'll send a fix for that. > > I have added the following merge fix patch for today: This looks correct, thanks!

Re: [PATCH 4.16 000/272] 4.16.13-stable review

2018-05-28 Thread Naresh Kamboju
On 28 May 2018 at 15:30, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.13 release. > There are 272 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [RFC v5 2/5] virtio_ring: support creating packed ring

2018-05-28 Thread Tiwei Bie
On Tue, May 29, 2018 at 10:49:11AM +0800, Jason Wang wrote: > On 2018年05月22日 16:16, Tiwei Bie wrote: > > This commit introduces the support for creating packed ring. > > All split ring specific functions are added _split suffix. > > Some necessary stubs for packed ring are also added. > > > > Sign

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-28 Thread Marek Szyprowski
Hi Vinod, On 2018-05-18 09:21, Vinod wrote: > On 18-05-18, 08:28, Marek Szyprowski wrote: >> Hi Vinod, >> >> Okay, I see that in theory, there are some tricky bits in implementing DMA >> support in UART drivers. On the other hand there are already drivers >> with seems >> to be working fine. This

Re: [PATCH v2 1/8] driver core: make deferring probe after init optional

2018-05-28 Thread Frank Rowand
On 05/24/18 11:18, Mark Brown wrote: > On Thu, May 24, 2018 at 12:50:17PM -0500, Rob Herring wrote: > >> Subsystems or drivers may opt-in to this behavior by calling >> driver_deferred_probe_check_init_done() instead of just returning >> -EPROBE_DEFER. They may use additional information from DT o

Re: [RFC v5 3/5] virtio_ring: add packed ring support

2018-05-28 Thread Tiwei Bie
On Tue, May 29, 2018 at 11:18:57AM +0800, Jason Wang wrote: > On 2018年05月22日 16:16, Tiwei Bie wrote: [...] > > +static void detach_buf_packed(struct vring_virtqueue *vq, > > + unsigned int id, void **ctx) > > +{ > > + struct vring_desc_state_packed *state; > > + struct v

Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization

2018-05-28 Thread Joel Fernandes
On Mon, May 28, 2018 at 12:12:34PM +0200, Juri Lelli wrote: [..] > > + > > + util = max_t(unsigned long, util, READ_ONCE(rq->avg_dl.util_avg)); > > + > > + return util; > > Anyway, just a quick thought. I guess we should experiment with this a > bit. Now, I don't unfortunately have a Arm plat

Re: [PATCH v2] remoteproc: Introduce prepare/unprepare ops for rproc coredump

2018-05-28 Thread Bjorn Andersson
On Mon 21 May 11:45 PDT 2018, Sibi Sankar wrote: > In some occasions the remoteproc device might need to > prepare some hardware before the coredump can be performed > and cleanup the state afterwards. > > Q6V5 modem requires the mba to be loaded before the > coredump and some cleanup of the reso

[PATCH 1/2] dt-bindings: Add vendor prefix for ArcherMind

2018-05-28 Thread Manivannan Sadhasivam
Add vendor prefix for ArcherMind Technology (Nanjing) Co., Ltd. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bin

Re: [PATCH v3 net-next 2/2] tcp: minor optimization around tcp_hdr() usage in tcp receive path

2018-05-28 Thread Eric Dumazet
On 05/28/2018 05:41 PM, Yafang Shao wrote: > OK. > > And what about introducing a new helper tcp_hdr_fast() ? > > /* use it when tcp header has not been pulled yet */ > static inline struct tcphdr *tcp_hdr_fast(const struct sk_buff *skb) > > { > > return (const struct tcphdr *)skb->

[PATCH 2/2] arm64: dts: Add Mediatek X20 Development Board support

2018-05-28 Thread Manivannan Sadhasivam
Add initial device tree support for Mediatek X20 Development Board based on MT6797 Deca core SoC. This board is one of the 96Boards Consumer Edition platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../boot/dts/mediatek/mt6797-x20-dev.dts

[PATCH 0/2] Add Mediatek X20 Development Board support

2018-05-28 Thread Manivannan Sadhasivam
Add devicetree support for Mediatek X20 Development Board by Archermind. This board is based on the Deca-Core MT6797 SoC from Mediatek and is one of the 96Boards Consumer Edition platform. With this devicetree change, board can boot into initramfs. More information about this board can be found i

Re: [PATCH V4 1/2] dmaengine: sprd: Optimize the sprd_dma_prep_dma_memcpy()

2018-05-28 Thread Vinod Koul
On 23-05-18, 17:31, Baolin Wang wrote: > From: Eric Long > > This is one preparation patch, we can use default DMA configuration to > implement the device_prep_dma_memcpy() interface instead of issuing > sprd_dma_config(). > > We will implement one new sprd_dma_config() function with introducing

[PATCH 0/4] migrate swapper_pg_dir

2018-05-28 Thread YaoJun
Because the offset between swapper_pg_dir and _text is fixed, when attackers break KASLR, they can calculate the address of swapper_pg_dir, and then they can apply KSMA(Kernel Space Mirror Attack). The principle of KSMA is to insert an entry to PGD, and this entry has type of block with AP = 01, so

[PATCH v6 3/3] dt-bindings: phy-qcom-qmp: Add UFS phy compatible string for sdm845

2018-05-28 Thread Can Guo
Update the compatible string for UFS QMP PHY on SDM845. Signed-off-by: Can Guo Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt b/Doc

[PATCH v6 2/3] phy: Add QMP phy based UFS phy support for sdm845

2018-05-28 Thread Can Guo
Add UFS PHY support to make SDM845 UFS work with common PHY framework. Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom-qmp.c | 200 +--- drivers/phy/qualcomm/phy-qcom-qmp.h | 15 +++ 2 files changed, 203 insertions(+), 12 deletions(-) diff --git a/drive

[PATCH v6 1/3] phy: Update PHY power control sequence

2018-05-28 Thread Can Guo
All PHYs should be powered on before register configuration starts. And only PCIe PHYs need an extra power control before deasserts reset state. Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom-qmp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qual

[PATCH v6 0/3] Support for Qualcomm UFS QMP PHY on SDM845

2018-05-28 Thread Can Guo
This patch series adds support for UFS QMP PHY on SDM845 and the compatible string for it. This patch series depends on the current proposed QMP V3 USB3 UNI PHY support for sdm845 driver [1], on the DT bindings for the QMP V3 USB3 PHYs based dirver [2], and also rebased on updated pipe_clk initiali

[PATCH 4/4] migrate swapper_pg_dir

2018-05-28 Thread YaoJun
Migrate swapper_pg_dir and tramp_pg_dir. And its placement in the virtual address space does not correlate with the placement of the kernel. --- arch/arm64/mm/mmu.c | 67 ++--- 1 file changed, 45 insertions(+), 22 deletions(-) diff --git a/arch/arm64/mm/mm

linux-next: manual merge of the block tree with the vfs tree

2018-05-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the block tree got a conflict in: drivers/block/drbd/drbd_main.c between commit: 004fd11db1d6 ("drbd: switch to proc_create_single") from the vfs tree and commit: 5657a819a8d9 ("block drivers/block: Use octal not symbolic permissions") from the block

[PATCH 2/4] migrate swapper_pg_dir

2018-05-28 Thread YaoJun
Introduce a variable to record new virtual address of swapper_pg_dir. --- arch/arm64/include/asm/mmu_context.h | 2 +- arch/arm64/include/asm/pgtable.h | 1 + arch/arm64/mm/kasan_init.c | 2 +- arch/arm64/mm/mmu.c | 1 + 4 files changed, 4 insertions(+), 2 deletion

[PATCH 3/4] migrate swapper_pg_dir

2018-05-28 Thread YaoJun
Because tramp_map_kernel/tramp_unmap_kernel macro update ttbr1 by add/sub offset, so we need to migrate both swapper_pg_dir and tramp_pg_dir. Before doing that, make tramp_pg_dir and swapper_pg_dir adjacent. --- arch/arm64/kernel/entry.S | 4 ++-- arch/arm64/kernel/vmlinux.lds.S | 10 +

[PATCH 1/4] migrate swapper_pg_dir

2018-05-28 Thread YaoJun
Currently, __enable_mmu() uses swapper_pg_dir directly. To migrate swapper_pg_dir, we need to pass it as an argument to __enable_mmu(). At the same time, __pa_swapper_pg_dir is introduced to save physical address of swapper_pg_dir. By changing its value, we can migrate swapper_pg_dir. --- arch/ar

Re: [PATCH] remoteproc: Add APSS based Qualcomm ADSP PIL driver for SDM845

2018-05-28 Thread Bjorn Andersson
On Wed 23 May 22:18 PDT 2018, Rohit Kumar wrote: > Thanks Bjorn for reviewing. > > > On 5/23/2018 11:56 AM, Bjorn Andersson wrote: > > On Sun 13 May 00:01 PDT 2018, Rohit kumar wrote: > > > > > --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt > > > +++ b/Documentation/devicetree

Re: [LKP] [lkp-robot] [mm, memcontrol] 309fe96bfc: vm-scalability.throughput +23.0% improvement

2018-05-28 Thread Lu, Aaron
On Mon, 2018-05-28 at 14:03 +0200, Michal Hocko wrote: > On Mon 28-05-18 19:40:19, kernel test robot wrote: > > > > Greeting, > > > > FYI, we noticed a +23.0% improvement of vm-scalability.throughput due to > > commit: > > > > > > commit: 309fe96bfc0ae387f53612927a8f0dc3eb056efd ("mm, memcontr

linux-next: manual merge of the block tree with the vfs tree

2018-05-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the block tree got a conflict in: drivers/block/DAC960.c between commit: 3f3942aca6da ("proc: introduce proc_create_single{,_data}") from the vfs tree and commit: 5657a819a8d9 ("block drivers/block: Use octal not symbolic permissions") from the block

Re: [PATCH] remoteproc: qcom_q6v5: don't auto boot remote processor

2018-05-28 Thread Bjorn Andersson
On Thu 24 May 12:21 PDT 2018, Ramon Fried wrote: > Sometimes that rmtfs userspace module is not brought > up fast enough and the modem crashes. > disabling automated boot in the driver and triggering > the boot from user-space sovles the problem. > > Signed-off-by: Ramon Fried Thanks for your p

Re: Why is the length of max mount option a page size??

2018-05-28 Thread Jungsub Shin
On Tue, May 29, 2018 at 02:14:12AM +0100, Al Viro wrote: > On Tue, May 29, 2018 at 09:24:56AM +0900, Jungsub Shin wrote: > > Mount command : mount -t aufs -o > > br=~/tca_agent/container_rw_dir/51509032=rw:~/tca_agent/image_layer_dir/5a259d94211e449fd466d997b5b0b149cb2997a732fd3a838c14295e0eb93f92

Re: [PATCH net-next 00/12] Misc. bug fixes & some minor additions to HNS3 driver

2018-05-28 Thread David Miller
From: Salil Mehta Date: Fri, 25 May 2018 19:42:55 +0100 > This patch-set provides some bug fixes figured out during testing > and review. It also provides some additions due to running of the > existing code on the new revision of the HNS3 hardware. Series applied.

Re: [RFC PATCH 5/5] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-05-28 Thread Bjorn Andersson
On Wed 23 May 07:48 PDT 2018, Sricharan R wrote: > On 5/23/2018 1:07 PM, Vinod wrote: > > On 22-05-18, 23:58, Bjorn Andersson wrote: > >> On Tue 22 May 23:05 PDT 2018, Vinod wrote: > >>> On 22-05-18, 22:20, Bjorn Andersson wrote: [..] > >>> Looking at the patch, few other comments would be applicab

Re: [PATCH] mm-kasan-dont-vfree-nonexistent-vm_area-fix

2018-05-28 Thread Ian Kent
On Mon, 2018-05-28 at 12:39 +0800, Ian Kent wrote: > On Mon, 2018-05-28 at 12:13 +0800, Ian Kent wrote: > > On Fri, 2018-05-25 at 20:48 -0700, Andrew Morton wrote: > > > On Sat, 26 May 2018 11:31:35 +0800 kbuild test robot > > > wrote: > > > > > > > Hi Andrey, > > > > > > > > I love your patch!

[v2] MAINTAINERS: add myself as maintainer for QorIQ PTP clock driver

2018-05-28 Thread Yangbo Lu
Added myself as maintainer for QorIQ PTP clock driver. Since gianfar_ptp.c was renamed to ptp_qoriq.c, let's maintain it under QorIQ PTP clock driver. Signed-off-by: Yangbo Lu --- Changes for v2: - Dropped dpaa2/rtc part. --- MAINTAINERS | 10 -- 1 files changed, 8 insertions(+

RE: [PATCH 5/5] MAINTAINERS: add myself as maintainer for QorIQ PTP clock driver

2018-05-28 Thread Y.b. Lu
Hi David, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, May 29, 2018 11:07 AM > To: Y.b. Lu > Cc: net...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; richardcoch...@gmail.com; Claudiu Manoil > ; robh...@kernel.org >

linux-next: build failure after merge of the net-next tree

2018-05-28 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: net/xdp/xsk.c: In function 'xsk_poll': net/xdp/xsk.c:207:22: error: implicit declaration of function 'datagram_poll'; did you mean 'datagram_poll_mask'? [-Werror=implicit-function-declaratio

linux-next: build failure after merge of the net-next tree

2018-05-28 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: x86_64-linux-ld: unknown architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386:x86-64 output Caused by commit d2ba09c17a06 ("net: add skeleton of bpfilter ke

Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet

2018-05-28 Thread Michael Schmitz
Hi Finn, Am 29.05.2018 um 14:15 schrieb Finn Thain: > > Since an arch gets to apply limits in the dma ops it implements, why would > arch code also have to set a limit in the form of default platform device > masks? Powerpc seems to be the only arch that does this. One of Christoph's recent pa

Re: [RFC v5 3/5] virtio_ring: add packed ring support

2018-05-28 Thread Jason Wang
On 2018年05月22日 16:16, Tiwei Bie wrote: This commit introduces the support (without EVENT_IDX) for packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 474 ++- 1 file changed, 468 insertions(+), 6 deletions(-) diff --git a/drivers/virti

linux-next: build warning after merge of the net-next tree

2018-05-28 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: net/core/filter.c: In function 'sk_msg_convert_ctx_access': net/core/filter.c:6450:6: warning: unused variable 'off' [-Wunused-variable] int off; ^~~ Introduced by commit

Re: [PATCH V0:net-next 0/4] net: ethernet: stmmac: add support for stm32mp1

2018-05-28 Thread David Miller
From: Christophe Roullier Date: Fri, 25 May 2018 09:46:37 +0200 > Patches to have Ethernet support on stm32mp1 Series applied.

Re: [PATCH 5/5] MAINTAINERS: add myself as maintainer for QorIQ PTP clock driver

2018-05-28 Thread David Miller
From: Yangbo Lu Date: Fri, 25 May 2018 12:40:38 +0800 > Added myself as maintainer for QorIQ PTP clock driver. > Since gianfar_ptp.c was renamed to ptp_qoriq.c, let's > also maintain it under QorIQ PTP clock driver. > > Signed-off-by: Yangbo Lu Because of the dependency on the staging tree cha

Re: [PATCH 3/5] net: ethernet: gianfar_ethtool: get phc index through drvdata

2018-05-28 Thread David Miller
From: Yangbo Lu Date: Fri, 25 May 2018 12:40:36 +0800 > Global variable gfar_phc_index was used to get and store > phc index through gianfar_ptp driver. However gianfar_ptp > had been renamed as ptp_qoriq for QorIQ common PTP driver. > This gfar_phc_index doesn't work any more, and the phc index

Re: [PATCH 4/5] dt-bindings: ptp: add ptp-qoriq.txt

2018-05-28 Thread David Miller
From: Yangbo Lu Date: Fri, 25 May 2018 12:40:37 +0800 > This patch is to add a documentation for ptp_qoriq dt-bindings. > The description for ptp_qoriq dt-bindings was actually moved > from Documentation/devicetree/bindings/net/fsl-tsec-phy.txt, > since gianfar_ptp driver was moved to ptp_qoriq d

Re: [PATCH 2/5] ptp_qoriq: move some definitions to header file

2018-05-28 Thread David Miller
From: Yangbo Lu Date: Fri, 25 May 2018 12:40:35 +0800 > This patch is to move some definitions in ptp_qoriq.c > to the header file. > > Signed-off-by: Yangbo Lu Applied.

Re: [PATCH 1/5] ptp: rework gianfar_ptp as QorIQ common PTP driver

2018-05-28 Thread David Miller
From: Yangbo Lu Date: Fri, 25 May 2018 12:40:34 +0800 > gianfar_ptp was the PTP clock driver for 1588 timer > module of Freescale QorIQ eTSEC (Enhanced Three-Speed > Ethernet Controllers) platforms. Actually QorIQ DPAA > (Data Path Acceleration Architecture) platforms is > also using the same 158

Re: [PATCH net-next] ifb: fix packets checksum

2018-05-28 Thread David Miller
From: Jon Maxwell Date: Fri, 25 May 2018 07:38:29 +1000 > Fixup the checksum for CHECKSUM_COMPLETE when pulling skbs on RX path. > Otherwise we get splats when tc mirred is used to redirect packets to ifb. > > Before fix: > > nic: hw csum failure > > Signed-off-by: Jon Maxwell Applied.

Re: [PATCH 0/3] Provide more fine grained control over multipathing

2018-05-28 Thread Mike Snitzer
On Mon, May 28 2018 at 9:19pm -0400, Martin K. Petersen wrote: > > Mike, > > I understand and appreciate your position but I still don't think the > arguments for enabling DM multipath are sufficiently compelling. The > whole point of ANA is for things to be plug and play without any admin > i

linux-next: manual merge of the net-next tree with the s390 tree

2018-05-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: arch/s390/net/Makefile between commit: 866f4c8e0e26 ("s390/net: add pnetid support") from the s390 tree and commit: e1cf4befa297 ("bpf, s390x: remove ld_abs/ld_ind") from the net-next tree. I fixed it up (see bel

Re: [PATCH v2 1/3] usb: gadget: ccid: add support for USB CCID Gadget Device

2018-05-28 Thread kbuild test robot
Hi Marcus, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on balbi-usb/next] [also build test WARNING on v4.17-rc7] [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/commi

[RFC PATCH] usb: gadget: ccid: ccidg_start_ep() can be static

2018-05-28 Thread kbuild test robot
Fixes: 0760b8dd303b ("usb: gadget: ccid: add support for USB CCID Gadget Device") Signed-off-by: kbuild test robot --- f_ccid.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_ccid.c b/drivers/usb/gadget/function/f_ccid.c index 9ff8615..35b

Re: [PATCH] mm: convert scan_control.priority int => byte

2018-05-28 Thread Matthew Wilcox
On Mon, May 28, 2018 at 07:40:25PM -0700, Greg Thelen wrote: > Reclaim priorities range from 0..12(DEF_PRIORITY). > scan_control.priority is a 4 byte int, which is overkill. > > Since commit 6538b8ea886e ("x86_64: expand kernel stack to 16K") x86_64 > stack overflows are not an issue. But it's in

Re: [PATCH] net: stmmac: Use mutex instead of spinlock

2018-05-28 Thread David Miller
From: Thierry Reding Date: Thu, 24 May 2018 16:09:07 +0200 > From: Thierry Reding > > Some drivers, such as DWC EQOS on Tegra, need to perform operations that > can sleep under this lock (clk_set_rate() in tegra_eqos_fix_speed()) for > proper operation. Since there is no need for this lock to b

[PATCH] printk: make printk_safe_flush safe in NMI context by skipping flushing

2018-05-28 Thread Hoeun Ryu
From: Hoeun Ryu Make printk_safe_flush() safe in NMI context. nmi_trigger_cpumask_backtrace() can be called in NMI context. For example the function is called in watchdog_overflow_callback() if the flag of hardlockup backtrace (sysctl_hardlockup_all_cpu_backtrace) is true and watchdog_overflow_c

[PATCH 04/15] fsi/fsi-master-gpio: Sample input data on different clock phase

2018-05-28 Thread Benjamin Herrenschmidt
We currently sample the input data right after we toggle the clock low, then high. The slave establishes the data on the rising edge, so this is not ideal. We should sample it on the low phase instead. This currently works because we have an extra delay, but subsequent patches will remove it. Sig

Re: [RFC v5 2/5] virtio_ring: support creating packed ring

2018-05-28 Thread Jason Wang
On 2018年05月22日 16:16, Tiwei Bie wrote: This commit introduces the support for creating packed ring. All split ring specific functions are added _split suffix. Some necessary stubs for packed ring are also added. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 801 ++

Re: [PATCH 00/13] hisi_sas: Misc improvements, bugfixes, etc.

2018-05-28 Thread Martin K. Petersen
John, > This patchset introduces some misc improvements, bugfixes, > and SoC workarounds for the driver, including: > - workaround for v2 hw reset with SATA disks attached > - LED SGPIO support for v3 hw > - Fix for error path in task_prep function > - change slot and disk allocation method to

[PATCH] mm: convert scan_control.priority int => byte

2018-05-28 Thread Greg Thelen
Reclaim priorities range from 0..12(DEF_PRIORITY). scan_control.priority is a 4 byte int, which is overkill. Since commit 6538b8ea886e ("x86_64: expand kernel stack to 16K") x86_64 stack overflows are not an issue. But it's inefficient to use 4 bytes for priority. Use s8 (signed byte) rather tha

kernel/time/posix-stubs.o: warning: objtool: sys_ni_posix_timers.cold.1()+0x0: unreachable instruction

2018-05-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 786b71f5b754273ccef6d9462e52062b3e1f9877 commit: 13810435b9a7014fb92eb715f77da488f3b65b99 objtool: Support GCC 8's cold subfunctions date: 2 weeks ago config: x86_64-randconfig-i0-201821 (attached as .conf

  1   2   3   4   5   6   7   8   9   10   >