Re: [PATCH] dma-debug: Check scatterlist segments

2018-04-24 Thread Christoph Hellwig
This looks interesting. I suspect it is going to blow up in quite a few places, so maybe at least for now it might make sense to have a separate config option? On Tue, Apr 24, 2018 at 05:12:19PM +0100, Robin Murphy wrote: > Drivers/subsystems creating scatterlists for DMA should be taking care >

Re: [RFT][PATCH] arm64: dts: exynos: Remove unneeded address space mapping for soc node

2018-04-24 Thread Marek Szyprowski
Hi Krzysztof, On 2018-04-24 19:36, Krzysztof Kozlowski wrote: > Remove the address space mapping between root and soc nodes to fix > DTC warnings in Exynos5433 and Exynos7 like: > > arch/arm64/boot/dts/exynos/exynos5433-tm2.dtb: > Warning (unit_address_vs_reg): /soc: node has a reg

[PATCH] sched: fix typo in error message

2018-04-24 Thread Li Bin
Signed-off-by: Li Bin --- kernel/sched/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 64cc564..cf15c1c 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1618,7

Re: [PATCH 1/6] virtio_console: don't tie bufs to a vq

2018-04-24 Thread Greg Kroah-Hartman
On Tue, Apr 24, 2018 at 09:56:33PM +0300, Michael S. Tsirkin wrote: > On Sat, Apr 21, 2018 at 09:30:05AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Apr 20, 2018 at 09:18:01PM +0300, Michael S. Tsirkin wrote: > > > an allocated buffer doesn't need to be tied to a vq - > > > only vq->vdev is ever

[PATCH v4 2/2] tty/nozomi: fix inconsistent indentation

2018-04-24 Thread Joey Pabalinas
Correct misaligned indentation and remove extraneous spaces. Signed-off-by: Joey Pabalinas --- drivers/tty/nozomi.c | 74 ++-- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/drivers/tty/nozomi.c

Re: [Linaro-mm-sig] [PATCH 4/8] dma-buf: add peer2peer flag

2018-04-24 Thread Christoph Hellwig
On Tue, Apr 24, 2018 at 09:32:20PM +0200, Daniel Vetter wrote: > Out of curiosity, how much virtual flushing stuff is there still out > there? At least in drm we've pretty much ignore this, and seem to be > getting away without a huge uproar (at least from driver developers > and users, core folks

Re: [PATCH] drm/mediatek: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

2018-04-24 Thread CK Hu
Hi, Vasyl: Sorry for the late reply. I've applied this to my branch mediatek-drm-next-4.18 Regards, CK On Thu, 2017-11-23 at 17:31 +0800, Philipp Zabel wrote: > On Tue, 2017-11-21 at 23:31 +0100, Vasyl Gomonovych wrote: > > Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). > > >

[PATCH v4 1/2] tty/nozomi: cleanup DUMP() macro

2018-04-24 Thread Joey Pabalinas
Replace snprint() with strscpy() and use min_t() instead of the conditional operator to clamp buffer length. Signed-off-by: Joey Pabalinas --- drivers/tty/nozomi.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH v4 0/2] tty/nozomi: general module cleanup

2018-04-24 Thread Joey Pabalinas
The nozomi module has a few sections which could use a bit of cleanup; both style and clarity could be improved while maintaining equivalent semantics. Cleanup messy portions of the module code while preserving existing behavior by: - Replacing constructs like `len__ > TMP_BUF_MAX ? TMP_BUF_MAX

[PATCH 2/5] f2fs: avoid bug_on on corrupted inode

2018-04-24 Thread Jaegeuk Kim
syzbot has tested the proposed patch but the reproducer still triggered crash: kernel BUG at fs/f2fs/inode.c:LINE! F2FS-fs (loop1): invalid crc value F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop5):

[PATCH 4/5] f2fs: sanity check for total valid blocks

2018-04-24 Thread Jaegeuk Kim
This patch enhances sanity check for SIT entries. syzbot hit the following crash on upstream commit 83beed7b2b26f232d782127792dd0cd4362fdc41 (Fri Apr 20 17:56:32 2018 +) Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal syzbot dashboard link:

[PATCH 5/5] f2fs: enforce fsync_mode=strict for renamed directory

2018-04-24 Thread Jaegeuk Kim
This is to give a option for user to be able to recover B/foo in the below case. mkdir A sync() rename(A, B) creat (B/foo) fsync (B/foo) ---crash--- Sugessted-by: Velayudhan Pillai Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 5 - 1 file

[PATCH 3/5] f2fs: sanity check on sit entry

2018-04-24 Thread Jaegeuk Kim
syzbot hit the following crash on upstream commit 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 (Wed Apr 18 19:48:17 2018 +) Merge tag 'ceph-for-4.17-rc2' of git://github.com/ceph/ceph-client syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=83699adeb2d13579c31e C reproducer:

[PATCH 1/5] f2fs: give message and set need_fsck given broken node id

2018-04-24 Thread Jaegeuk Kim
syzbot hit the following crash on upstream commit 83beed7b2b26f232d782127792dd0cd4362fdc41 (Fri Apr 20 17:56:32 2018 +) Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal syzbot dashboard link:

Re: [PATCH v3 1/2] tty/nozomi: cleanup DUMP() macro

2018-04-24 Thread Joey Pabalinas
On Wed, Apr 25, 2018 at 07:38:48AM +0200, Greg Kroah-Hartman wrote: > How are you sending these patches? How are you creating them? What is > taking part of the diffstat off and just leaving that line? Hm, my `git format-patch` alias included --shortstat for some odd reason, very sorry about

[PATCH v2 1/3] sample: vfio mdev display - host device

2018-04-24 Thread Gerd Hoffmann
Simple framebuffer display, demo-ing the vfio region display interface (VFIO_GFX_PLANE_TYPE_REGION). Signed-off-by: Gerd Hoffmann --- samples/vfio-mdev/mdpy-defs.h | 22 ++ samples/vfio-mdev/mdpy.c | 807 ++ samples/Kconfig

[PATCH v2 2/3] sample: vfio mdev display - guest driver

2018-04-24 Thread Gerd Hoffmann
Guest fbdev driver for CONFIG_SAMPLE_VFIO_MDEV_MDPY. Signed-off-by: Gerd Hoffmann --- samples/vfio-mdev/mdpy-fb.c | 232 samples/Kconfig | 9 ++ samples/vfio-mdev/Makefile | 1 + 3 files changed, 242 insertions(+)

[PATCH V4 6/6] ARM: imx_v6_v7_defconfig: Select CONFIG_GPIO_MAX732X by default

2018-04-24 Thread Anson Huang
Enable max7320 IO expander for i.MX platforms. Signed-off-by: Anson Huang --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 3a30843..8455d39 100644

[PATCH V4 5/6] ARM: dts: imx6sx-sabreauto: add wdog external reset support

2018-04-24 Thread Anson Huang
i.MX6SX Sabre Auto board has GPIO1_IO13 pin can be MUXed as WDOG output to reset PMIC, add this function support. Signed-off-by: Anson Huang --- no changes. arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH V4 2/6] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support

2018-04-24 Thread Anson Huang
Add MAX7322 IO expander support. Signed-off-by: Anson Huang --- no changes. arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index

[PATCH V4 4/6] ARM: dts: imx6sx-sabreauto: add fec support

2018-04-24 Thread Anson Huang
Add FEC support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang --- no changes. arch/arm/boot/dts/imx6sx-sabreauto.dts | 69 ++ 1 file changed, 69 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts

[PATCH V4 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support

2018-04-24 Thread Anson Huang
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them. Signed-off-by: Anson Huang --- no changes. arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 1 file changed, 28 insertions(+) diff --git

[PATCH V4 1/6] ARM: dts: imx6sx-sabreauto: add PMIC support

2018-04-24 Thread Anson Huang
Add pfuze100 support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang --- no changes. arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 + 1 file changed, 117 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts

[PATCH v2 3/3] sample: vfio bochs vbe display (host device for bochs-drm)

2018-04-24 Thread Gerd Hoffmann
Display device, demo-ing the vfio dmabuf display interface (VFIO_GFX_PLANE_TYPE_DMABUF). Compatible enough to qemu stdvga that bochs-drm.ko can be used as guest driver. Signed-off-by: Gerd Hoffmann --- samples/vfio-mdev/mbochs.c | 1406

Re: [PATCH v3 1/2] tty/nozomi: cleanup DUMP() macro

2018-04-24 Thread Greg Kroah-Hartman
On Tue, Apr 24, 2018 at 12:39:14PM -1000, Joey Pabalinas wrote: > Replace snprint() with strscpy() and use min_t() instead of > the conditional operator to clamp buffer length. > > Signed-off-by: Joey Pabalinas > > 1 file changed, 13 insertions(+), 13 deletions(-)

Re: Regression 4.17-rc1: SSD doesn properly resume causing system hang (NULL pointer dereference)

2018-04-24 Thread Paul Menzel
Dear Bart, Am 24.04.2018 um 23:17 schrieb Bart Van Assche: On Tue, 2018-04-24 at 23:04 +0200, Paul Menzel wrote: I applied your change, and rebuilt the Linux kernel. Unfortunately, it looks like, it didn’t make a difference. In that case I don't know what is causing the failure. Can you run

Re: [PATCH v7 2/5] of: change overlay apply input data from unflattened to FDT

2018-04-24 Thread Jan Kiszka
On 2018-04-24 20:26, Alan Tull wrote: > On Tue, Apr 24, 2018 at 11:08 AM, Alan Tull wrote: >> On Tue, Apr 24, 2018 at 12:29 AM, Jan Kiszka wrote: >>> >>> We have drivers/fpga/of-fpga-region.c in-tree, and that does not seem to >>> store any pointers to

Re: [PATCH RFC v5] pidns: introduce syscall translate_pid

2018-04-24 Thread Konstantin Khlebnikov
On 23.04.2018 20:37, Nagarathnam Muthusamy wrote: On 04/05/2018 12:02 AM, Konstantin Khlebnikov wrote: On 05.04.2018 01:29, Eric W. Biederman wrote: Nagarathnam Muthusamy writes: On 04/04/2018 12:11 PM, Konstantin Khlebnikov wrote: Each process have

RE: [PATCH 4/5] ARM: dts: imx6sx-sabreauto: add fec support

2018-04-24 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Anson Huang > Sent: Wednesday, April 25, 2018 11:30 AM > To: 'Fabio Estevam' > Cc: Shawn Guo ; Sascha Hauer > ; Fabio Estevam ; Rob >

Re: [PATCH] printk: Ratelimit messages printed by console drivers

2018-04-24 Thread Sergey Senozhatsky
On (04/23/18 14:45), Petr Mladek wrote: [..] > I am not sure how slow are the slowest consoles. If I take that > everything should be faster than 1200 bauds. Then 10 minutes > should be enough for 1000 lines and 80 characters per-line: Well, the problem with the numbers is that they are too...

Re: linux-next: Signed-off-by missing for commit in the wireless-drivers-next tree

2018-04-24 Thread Luciano Coelho
Hi, On Wed, 2018-04-25 at 10:56 +1000, Stephen Rothwell wrote: > Hi all, > > Commit > > 84226ca1c5d3 ("iwlwifi: mvm: support offload of AMSDU rate > control") > > is missing a Signed-off-by from its author. I checked this and it should be fine. The author is actually wrong in the commit.

[PATCH net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive

2018-04-24 Thread Eric Dumazet
When adding tcp mmap() implementation, I forgot that socket lock had to be taken before current->mm->mmap_sem. syzbot eventually caught the bug. Since we can not lock the socket in tcp mmap() handler we have to split the operation in two phases. 1) mmap() on a tcp socket simply reserves VMA

[PATCH net-next 0/2] tcp: mmap: rework zerocopy receive

2018-04-24 Thread Eric Dumazet
syzbot reported a lockdep issue caused by tcp mmap() support. I implemented Andy Lutomirski nice suggestions to resolve the issue and increase scalability as well. First patch is adding a new setsockopt() operation and changes mmap() behavior. Second patch changes tcp_mmap reference program.

[PATCH net-next 2/2] selftests: net: tcp_mmap must use TCP_ZEROCOPY_RECEIVE

2018-04-24 Thread Eric Dumazet
After prior kernel change, mmap() on TCP socket only reserves VMA. We have to use setsockopt(fd, IPPROTO_TCP, TCP_ZEROCOPY_RECEIVE, ...) to perform the transfert of pages from skbs in TCP receive queue into such VMA. struct tcp_zerocopy_receive { __u64 address; /* in: address of

Re: [PATCH v7 2/5] of: change overlay apply input data from unflattened to FDT

2018-04-24 Thread Jan Kiszka
On 2018-04-24 22:56, Frank Rowand wrote: > Hi Alan, > > On 04/23/18 15:38, Frank Rowand wrote: >> Hi Jan, >> >> + Alan Tull for fpga perspective >> >> On 04/22/18 03:30, Jan Kiszka wrote: >>> On 2018-04-11 07:42, Jan Kiszka wrote: On 2018-04-05 23:12, Rob Herring wrote: > On Thu, Apr 5,

[GIT PULL] dma mapping fixes for 4.17-rc3

2018-04-24 Thread Christoph Hellwig
The following changes since commit 6d08b06e67cd117f6992c46611dfb4ce267cd71e: Linux 4.17-rc2 (2018-04-22 19:20:09 -0700) are available in the Git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-4.17-3 for you to fetch changes up to

Re: [PATCH v7 2/5] of: change overlay apply input data from unflattened to FDT

2018-04-24 Thread Jan Kiszka
On 2018-04-24 23:15, Frank Rowand wrote: > On 04/23/18 22:29, Jan Kiszka wrote: >> On 2018-04-24 00:38, Frank Rowand wrote: >>> Hi Jan, >>> >>> + Alan Tull for fpga perspective >>> >>> On 04/22/18 03:30, Jan Kiszka wrote: On 2018-04-11 07:42, Jan Kiszka wrote: > On 2018-04-05 23:12, Rob

KASAN: stack-out-of-bounds Write in compat_copy_entries

2018-04-24 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 24cac7009cb1b211f1c793ecb6a462c03dc35818 (Tue Apr 24 21:16:40 2018 +) Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=4e42a04e0bc33cb6c087 So far this

[RFC v3 1/5] virtio: add packed ring definitions

2018-04-24 Thread Tiwei Bie
Signed-off-by: Tiwei Bie --- include/uapi/linux/virtio_config.h | 12 +++- include/uapi/linux/virtio_ring.h | 36 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_config.h

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

2018-04-24 Thread Tiwei Bie
This commit introduces the basic support (without EVENT_IDX) for packed ring. Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 444 ++- 1 file changed, 434 insertions(+), 10 deletions(-) diff --git

[RFC v3 5/5] virtio_ring: enable packed ring

2018-04-24 Thread Tiwei Bie
Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index b1039c2985b9..9a3d13e1e2ba 100644 --- a/drivers/virtio/virtio_ring.c +++

[RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-04-24 Thread Tiwei Bie
This commit introduces the event idx support in packed ring. This feature is temporarily disabled, because the implementation in this patch may not work as expected, and some further discussions on the implementation are needed, e.g. do we have to check the wrap counter when checking whether a

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

2018-04-24 Thread Tiwei Bie
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 | 764

Re: [PATCH] sched/fair: Rearrange select_task_rq_fair() to optimize it

2018-04-24 Thread Viresh Kumar
On 24-04-18, 14:35, Peter Zijlstra wrote: > In any case, if there not going to be conflicts here, this all looks > good. Thanks Peter. I also had another patch and wasn't sure if that would be the right thing to do. The main purpose of this is to avoid calling sync_entity_load_avg()

[RFC v3 0/5] virtio: support packed ring

2018-04-24 Thread Tiwei Bie
Hello everyone, This RFC implements packed ring support in virtio driver. Some simple functional tests have been done with Jason's packed ring implementation in vhost: https://lkml.org/lkml/2018/4/23/12 Both of ping and netperf worked as expected (with EVENT_IDX disabled). But there are below

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-24 Thread Mimi Zohar
On Tue, 2018-04-24 at 23:42 +, Luis R. Rodriguez wrote: > On Tue, Apr 24, 2018 at 12:07:01PM -0400, Mimi Zohar wrote: > > On Tue, 2018-04-24 at 17:09 +0200, Hans de Goede wrote: > > > Hi, > > > > > > On 23-04-18 23:11, Luis R. Rodriguez wrote: > > > > Hans, please see use of

[PATCH v2] gpu: drm: udl: Adding new typedef vm_fault_t

2018-04-24 Thread Souptick Joarder
Use new return type vm_fault_t for fault and huge_fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Commit 1c8f422059ae ("mm: change return type to

Re: [PATCH] do not call trace_printk on non-debug build

2018-04-24 Thread Wei Wang
On Tue, Apr 24, 2018 at 12:26 PM Steven Rostedt wrote: > A lot of kernel developers use trace_printk() and I want to make it as > easy to use as possible. I don't want to add a config to enable it, > because that would be something that could be rather annoying. > Let's add

Re: [PATCH] dma-debug: Check scatterlist segments

2018-04-24 Thread kbuild test robot
Hi Robin, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17-rc2 next-20180424] [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

Re: [PATCH 6/6] soc: qcom: smem: check sooner in qcom_smem_set_global_partition()

2018-04-24 Thread Bjorn Andersson
On Tue 10 Apr 15:25 PDT 2018, Alex Elder wrote: > There's no sense in scanning the partition table again if we know > the global partition has already been discovered. Check for a > non-null global_partition pointer in qcom_smem_set_global_partition() > immediately. > > Signed-off-by: Alex

Re: [PATCH 5/6] soc: qcom: smem: fix qcom_smem_set_global_partition()

2018-04-24 Thread Bjorn Andersson
On Tue 10 Apr 15:25 PDT 2018, Alex Elder wrote: > If there is at least one entry in the partition table, but no global > entry, the qcom_smem_set_global_partition() should return an error > just like it does if there are no partition table entries. > > It turns out the function still returns an

[PATCH v2] misc: sgi-gru: Change return type to vm_fault_t

2018-04-24 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Commit 1c8f422059ae ("mm: change return type to vm_fault_t")

Re: [PATCH 4/6] soc: qcom: smem: fix off-by-one error in qcom_smem_alloc_private()

2018-04-24 Thread Bjorn Andersson
On Tue 10 Apr 15:25 PDT 2018, Alex Elder wrote: > It's OK if the space for a newly-allocated uncached entry actually > touches the free cached space boundary. It's only a problem if it > would cross it. > > Signed-off-by: Alex Elder Reviewed-by: Bjorn Andersson

Re: [PATCH 3/6] soc: qcom: smem: byte swap values properly

2018-04-24 Thread Bjorn Andersson
On Tue 10 Apr 15:25 PDT 2018, Alex Elder wrote: > Two places report an error when a partition header is found to > not contain the right canary value. The error messages do not > properly byte swap the host ids. Fix this, and adjust the format > specificier to match the 16-bit unsigned data

[PATCH v2] mm: huge_memory: Change return type to vm_fault_t

2018-04-24 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Commit 1c8f422059ae ("mm: change return type to vm_fault_t")

Re: [PATCH 2/6] soc: qcom: smem: return proper type for cached entry functions

2018-04-24 Thread Bjorn Andersson
On Tue 10 Apr 15:25 PDT 2018, Alex Elder wrote: > What phdr_to_last_uncached_entry() returns is the address of the > start of the free space following all allocated uncached entries. > It really doesn't refer to an actual (initialized) private entry > structure. Similarly

Re: [PATCH 1/6] soc: qcom: smem: fix first cache entry calculation

2018-04-24 Thread Bjorn Andersson
On Tue 10 Apr 15:25 PDT 2018, Alex Elder wrote: > Cached items are found at the high end of an smem partition. A > cached item's shared memory precedes the private entry structure > that describes it. > > The address of the structure describing the first cached item should > be returned by

[PATCH 0/2] Allow drivers to override stop_engine

2018-04-24 Thread xswang
From: Evan Wang There are some special operations needed when stop engine for Marvell AHCI IP, and it maybe needed by other vendors, so it is necessary to allow to override ahci_stop_engine() when stop the engine like overriding start_engine. Evan Wang (2): libahci: Allow

[PATCH 1/2] libahci: Allow drivers to override stop_engine

2018-04-24 Thread xswang
From: Evan Wang Marvell armada37xx, armada7k and armada8k share the same AHCI sata controller IP, and currently there is an issue (Errata Ref#226)that the SATA can not be detected via SATA Port-MultiPlayer(PMP). After debugging, the reason is found that the value of Port-x

[PATCH v2] ipc: Adding new return type vm_fault_t

2018-04-24 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Commit 1c8f422059ae ("mm: change return type to vm_fault_t")

[PATCH 2/2] ata: ahci: mvebu: override ahci_stop_engine for mvebu AHCI

2018-04-24 Thread xswang
From: Evan Wang There is an issue(Errata Ref#226) that the SATA can not be detected via SATA Port-MultiPlayer(PMP) with following error log: ata1.15: PMP product ID mismatch ata1.15: SATA link up 6.0 Gbps (SStatus 133 SControl 300) ata1.15: Port Multiplier vendor

[PATCH 5/6] ASoC: mediatek: add MT7622 AFE compatible in documentation

2018-04-24 Thread Ryder Lee
Add support for MT7622 AFE which shares the same binding with MT2701. Cc: devicet...@vger.kernel.org Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: Fwd: [Bug 199473] New: pcieport does not scan devices behind PEX switch, while resources are allocated

2018-04-24 Thread Janpieter Sollie
dear Bjorn, I understand the confusion.  I quite messed up the bug report. Sorry. The problem is that lspci with kernel 4.17-rc1 shows exactly the same behaviour when no workaround is applied. the lspci is from 4.17-rc1 with the workaround applied, but by default, it shows the same output as

[PATCH 4/6] ASoC: mediatek: add MT7622 AFE support

2018-04-24 Thread Ryder Lee
This patch adds support for the MT7622 AFE which reuses MT2701 driver. We also introduce the 'struct mt2701_soc_variants' to differentiate between the SoC generations as there might be other (existing or future) chips that use the same binding and driver, then being a little more abstract could

[PATCH 6/6] ASoC: mediatek: switch to SPDX license tag

2018-04-24 Thread Ryder Lee
Add SPDX identifiers to all remaining files in sound/soc/mediatek/ Signed-off-by: Ryder Lee --- sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/common/Makefile | 14 +- sound/soc/mediatek/common/mtk-afe-fe-dai.c

Re: [RFC v4 3/4] irqflags: Avoid unnecessary calls to trace_ if you can

2018-04-24 Thread Paul E. McKenney
On Tue, Apr 24, 2018 at 05:10:49PM -0700, Paul E. McKenney wrote: > On Tue, Apr 24, 2018 at 04:46:54PM -0700, Joel Fernandes wrote: > > > > > > On 04/24/2018 04:21 PM, Mathieu Desnoyers wrote: > > >- On Apr 24, 2018, at 2:59 PM, Joel Fernandes joe...@google.com wrote: > > >>On Tue, Apr 24,

[PATCH 3/6] ASoC: mediatek: Add MTK_STREAM_NUM to mtk-base-afe.h

2018-04-24 Thread Ryder Lee
Add MTK_STREAM_NUM to common header and modify related stuff so that the other SoCs can reuse it. Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-base-afe.h | 2 +

[PATCH 1/6] ASoC: mediatek: use snd_soc_dai_get_drvdata() to get the private data

2018-04-24 Thread Ryder Lee
Reduce the boilerplate code to retrieve the private data. No functional change intended. Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 20 +++ sound/soc/mediatek/mt2701/mt2701-afe-pcm.c

[PATCH 2/6] ASoC: mediatek: simplify the control logic of MT2701 I2S

2018-04-24 Thread Ryder Lee
This patch adjusts the mt2701_afe_i2s_ops to simplify the control logic of the I2S path. Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 39

[PATCH] sound: core: Change return type to vm_fault_t

2018-04-24 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Commit 1c8f422059ae ("mm: change return type to vm_fault_t")

[PATCH] sound: usb: usx2y: Change return type to vm_fault_t

2018-04-24 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Commit 1c8f422059ae ("mm: change return type to vm_fault_t")

[PATCH] MIPS: c-r4k: fix data corruption related to cache coherence.

2018-04-24 Thread NeilBrown
When DMA is to be performed to a MIPS32 1004K CPS, the L1-cache for the range needs to be flushed and invalidated first. The code currently takes one of two approaches. 1/ If the range is less than the size of the dcache, then HIT type requests flush/invalidate cache lines for the

Re: [PATCH 0/6] soc: qcom: smem: bug fixes

2018-04-24 Thread Andy Gross
On Fri, Apr 20, 2018 at 07:11:41AM -0500, Alex Elder wrote: > On 04/10/2018 05:25 PM, Alex Elder wrote: > > This series contains mostly bug fixes to the Qualcomm shared memory > > ("smem") code. Although the bugs are real, they have most likely > > never been observed. > > > >

WARNING: kernel stack regs has bad value

2018-04-24 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 24cac7009cb1b211f1c793ecb6a462c03dc35818 (Tue Apr 24 21:16:40 2018 +) Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=4529a1346c0a67500ab9 So far this

Re: [PATCH 1/3] mm: introduce NR_INDIRECTLY_RECLAIMABLE_BYTES

2018-04-24 Thread Vijayanand Jitta
On 4/13/2018 5:43 PM, vinayak menon wrote: > On Thu, Apr 12, 2018 at 8:27 PM, Roman Gushchin wrote: >> On Thu, Apr 12, 2018 at 08:52:52AM +0200, Vlastimil Babka wrote: >>> On 04/11/2018 03:56 PM, Roman Gushchin wrote: On Wed, Apr 11, 2018 at 03:16:08PM +0200, Vlastimil Babka

[PATCH] ion: Consider ion pool pages as indirectly reclaimable

2018-04-24 Thread vjitta
From: Vijayanand Jitta An issue is observed where mallocs are failing due to overcommit failure. The failure happens when there is high ION page pool since ION page pool is not considered reclaimable by the overcommit calculation code. This change considers ion pool pages

Re: [PATCH 2/3] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-04-24 Thread Agrawal, Akshu
On 4/24/2018 10:06 PM, Daniel Kurtz wrote: On Mon, Apr 23, 2018 at 9:03 PM Vijendar Mukunda wrote: From: Akshu Agrawal hw_param can be called multiple times and thus we can have more clk enable. The clk may not get diabled due to

[PATCH V3 4/4] ARM: dts: imx6sx-sabreauto: add wdog external reset support

2018-04-24 Thread Anson Huang
i.MX6SX Sabre Auto board has GPIO1_IO13 pin can be MUXed as WDOG output to reset PMIC, add this function support. Signed-off-by: Anson Huang --- no changes since V2. arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH V3 3/4] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support

2018-04-24 Thread Anson Huang
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them. Signed-off-by: Anson Huang --- no changes since V2. arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 1 file changed, 28 insertions(+) diff --git

[PATCH V3 1/4] ARM: dts: imx6sx-sabreauto: add PMIC support

2018-04-24 Thread Anson Huang
Add pfuze100 support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang --- no changes since V2. arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 + 1 file changed, 117 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts

[PATCH V3 2/4] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support

2018-04-24 Thread Anson Huang
Add MAX7322 IO expander support. Signed-off-by: Anson Huang --- no changes since V2. arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index

Re: [BUG] igb: reconnecting of cable not always detected

2018-04-24 Thread Richard Cochran
On Tue, Apr 24, 2018 at 11:09:02AM -0700, Alexander Duyck wrote: > On Tue, Apr 24, 2018 at 8:14 AM, Holger Schurig > wrote: > > Sometimes, plugging the cable back in is detected ... > > > > [ 43.736922] igb :02:00.0 eth0: igb: eth0 NIC Link is Up 1000 Mbps > >

RE: [PATCH 4/5] ARM: dts: imx6sx-sabreauto: add fec support

2018-04-24 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Tuesday, April 24, 2018 8:23 PM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Fabio Estevam

Affinity for GIC irq line

2018-04-24 Thread valmiki
Hi all, When an IRQ line is set affinity using irq_set_affinity, which calls irq_do_set_affinity, this API copies affinity mask to affinity variable in irq_common_data of this irq descriptor. But as per ARM GICv2 document in order to drive a interrupt to a specific CPU we need to program

Re: [PATCH v5 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V

2018-04-24 Thread Alan Kao
Hi Atish, Palmer, On Tue, Apr 24, 2018 at 06:15:49PM -0700, Atish Patra wrote: > On 4/24/18 5:29 PM, Palmer Dabbelt wrote: > >On Tue, 24 Apr 2018 15:16:16 PDT (-0700), atish.pa...@wdc.com wrote: > >>On 4/24/18 12:44 PM, Palmer Dabbelt wrote: > >>>On Tue, 24 Apr 2018 12:27:26 PDT (-0700),

Re: [PATCH 2/7] ARM: dts: sun8i: h3: Split out common board design for ALL-H3-CC

2018-04-24 Thread Chen-Yu Tsai
On Wed, Apr 25, 2018 at 3:37 AM, Maxime Ripard wrote: > On Tue, Apr 24, 2018 at 08:17:11PM +0800, Chen-Yu Tsai wrote: >> On Tue, Apr 24, 2018 at 8:13 PM, Maxime Ripard >> wrote: >> > On Tue, Apr 24, 2018 at 07:34:19PM +0800, Chen-Yu Tsai

[PATCH] efi/capsule-loader: Don't output reset log when header flags is not set

2018-04-24 Thread Shunyong Yang
It means firmware attempts to immediately process or launch the capsule when flags in capsule header is not set. Moreover, reset is not needed in this case. Current code will output log to indicate reset. This patch adds a branch to avoid reset log output when the flags is not set. Cc: Joey

Re: [PATCH] sched/fair: Rearrange select_task_rq_fair() to optimize it

2018-04-24 Thread Viresh Kumar
On 24-04-18, 15:34, Rohit Jain wrote: > Including the "unlikely" suggestion and the original patch, as expected > with a quick hackbench test on a 44 core 2 socket x86 machine causes no > change in performance. Want me to include your Tested-by in next version ? -- viresh

Re: [RFC 03/10] cpufreq: exynos: Remove support for Exynos5440

2018-04-24 Thread Viresh Kumar
On 24-04-18, 22:32, Krzysztof Kozlowski wrote: > The Exynos5440 is not actively developed, there are no development > boards available and probably there are no real products with it. > Remove wide-tree support for Exynos5440. > > Signed-off-by: Krzysztof Kozlowski > --- >

Re: [PATCH] firmware: dmi: Add access to the SKU ID string

2018-04-24 Thread Vinod Koul
On Tue, Apr 24, 2018 at 03:11:11PM -0600, Simon Glass wrote: > This is used in some systems from user space for determining the identity > of the device. > > Expose this as a file so that that user-space tools don't need to read > from /sys/firmware/dmi/tables/DMI sysfs is an ABI and needs to be

Re: [PATCH] cpufreq: fix speedstep_detect_processor()'s return type

2018-04-24 Thread Viresh Kumar
On 24-04-18, 15:14, Luc Van Oostenryck wrote: > speedstep_detect_processor() is declared as returing an > 'enum speedstep_processor' but use an 'int' in its definition. > > Fix this by using 'enum speedstep_processor' in its definition too. > > Signed-off-by: Luc Van Oostenryck

Re: [patch V3 01/10] rslib: Add GFP aware init function

2018-04-24 Thread Kees Cook
On Tue, Apr 24, 2018 at 6:16 PM, Stephen Rothwell wrote: > Hi Thomas, > > On Sun, 22 Apr 2018 18:23:46 +0200 Thomas Gleixner wrote: >> >> The rslib usage in dm/verity_fec is broken because init_rs() can nest in >> GFP_NOIO mempool allocations as

Re: [PATCH] net: ethernet: ave: fix ave_start_xmit()'s return type

2018-04-24 Thread Kunihiko Hayashi
Hi, On Tue, 24 Apr 2018 15:17:25 +0200 Luc Van Oostenryck wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, but the implementation in this > driver returns an 'int'. > > Fix this by returning

[PATCH] x86/vector: Remove the macro VECTOR_OFFSET_START

2018-04-24 Thread Dou Liyang
Now, Linux uses matrix allocator for vector assignment, the original assignment code which used VECTOR_OFFSET_START has been removed. So remove the stale macro as well Signed-off-by: Dou Liyang --- arch/x86/include/asm/irq_vectors.h | 5 - 1 file changed, 5

Re: [PATCH 2/5] ide: kill ide_toggle_bounce

2018-04-24 Thread Jens Axboe
On 4/24/18 12:16 PM, Christoph Hellwig wrote: > ide_toggle_bounce did select various strange block bounce limits, including > not bouncing at all as soon as an iommu is present in the system. Given > that the dma_map routines now handle any required bounce buffering except > for ISA DMA, and the

Re: [RFC][PATCH] printk: do not call console drivers from printk_safe context

2018-04-24 Thread Sergey Senozhatsky
On (04/24/18 10:51), Steven Rostedt wrote: [..] > > console_lock_spinning_enable(); > > > > + __printk_safe_exit(); > > stop_critical_timings();/* don't trace print latency */ > > call_console_drivers(ext_text, ext_len, text, len); > >

RE: [PATCH resend] usb: chipidea: Don't select EXTCON

2018-04-24 Thread Peter Chen
> > > > > > The patch doesn't remove extcon support from chipidea driver. > > > I just want to not select EXTCON unconditionally, but let the users > > > choose. If the users need extcon, they could enable EXTCON > > > themselves > > > > > > I just searched all the dts in arch/arm/boot/dts and >

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-24 Thread Greentime Hu
2018-04-25 3:16 GMT+08:00 Christoph Hellwig : > Hi Greentime, > > thanks for testing the patch! > > It looks like nds32 doesn't have a buildbot yet, so this code didn't > even get syntax checkin, sorry. > > Below is the incremental fixes based on this thread. > > Can you check if my

general protection fault in smc_set_keepalive

2018-04-24 Thread syzbot
Hello, syzbot hit the following crash on net-next commit 9c20b9372fbaf6f7d4c05f5f925806a7928f0c73 (Tue Apr 24 03:08:41 2018 +) net: fib_rules: fix l3mdev netlink attr processing syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=cf9012c597c8379d535c So far this crash happened

Re: [patch V3 01/10] rslib: Add GFP aware init function

2018-04-24 Thread Stephen Rothwell
Hi Thomas, On Sun, 22 Apr 2018 18:23:46 +0200 Thomas Gleixner wrote: > > The rslib usage in dm/verity_fec is broken because init_rs() can nest in > GFP_NOIO mempool allocations as init_rs() is invoked from the mempool alloc > callback. > > Provide a variant which takes gfp_t

  1   2   3   4   5   6   7   8   9   10   >