Re: [RFC PATCH v4 3/3] acpi: apei: Do not panic() on PCIe errors reported through GHES

2018-05-11 Thread Borislav Petkov
On Fri, May 11, 2018 at 11:12:25AM -0500, Alex G. wrote: > > I think *you* didn't get it: IS_ENABLED(CONFIG_ACPI_APEI_PCIEAER) is not > > enough of a check to confirm that there actually *is* an AER driver to > > handle the errors. If you really want to make sure the driver is loaded > > and functi

[PATCH v4] dax: Change return type to vm_fault_t

2018-05-11 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") Previously vm

Re: [PATCH v4] dax: Change return type to vm_fault_t

2018-05-11 Thread Dan Williams
On Fri, May 11, 2018 at 9:34 AM, Souptick Joarder wrote: > 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

[PATCH v2] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-11 Thread Eric Anholt
We just need some integer handles that can map back to our message struct when we're handling a reply, which struct idr is perfect for. v2: Fix error check to look at the right variable. Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 135 -- 1 fil

Re: [PATCH v2 26/27] coresight: perf: Remove reset_buffer call back for sinks

2018-05-11 Thread Suzuki K Poulose
On 08/05/18 20:42, Mathieu Poirier wrote: On Tue, May 01, 2018 at 10:10:56AM +0100, Suzuki K Poulose wrote: Right now we issue an update_buffer() and reset_buffer() call backs in succession when we stop tracing an event. The update_buffer is supposed to check the status of the buffer and make su

Re: [PATCH v4] dax: Change return type to vm_fault_t

2018-05-11 Thread Souptick Joarder
On Fri, May 11, 2018 at 10:04 PM, Dan Williams wrote: > On Fri, May 11, 2018 at 9:34 AM, Souptick Joarder > wrote: >> 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 >> a

Re: [PATCH v5 0/7] proc: modernize proc to support multiple private instances

2018-05-11 Thread Linus Torvalds
On Fri, May 11, 2018 at 2:42 AM Alexey Gladkov wrote: > This is RFC v5 to modernize procfs and make it able to support multiple > private instances per the same pid namespace. So I have no big objections, but I would *really* like this to go through Al's vfs tree. Al? Have you looked at this se

[PATCH] pci/aer: Get rid of aer_recover_work_func() forward declaration

2018-05-11 Thread Borislav Petkov
From: Borislav Petkov Just move the actual function up so that it is visible to its user aer_recover_queue(). No functional changes. Signed-off-by: Borislav Petkov --- drivers/pci/pcie/aer/aerdrv_core.c | 45 +++--- 1 file changed, 22 insertions(+), 23 deletions(-) di

Re: [PATCH v2 00/12] refactor dts and add support for more boards

2018-05-11 Thread Matthias Brugger
On 04/11/2018 10:53 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > Changes since v1: > - Dropped several patches which have been merged. > - Rebased to linux-next-20180410 where those dependent patches including > [1] and [2] all have been got merged. > - Revised according to suggest

Re: [PATCH v2 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-11 Thread Enric Balletbo Serra
Hi Lin, 2018-05-09 12:22 GMT+02:00 Lin Huang : > From: Chris Zhong > > We may support training outside firmware, so we need support > dpcd read/write to get the message or do some setting with > display. > > Signed-off-by: Chris Zhong > Signed-off-by: Lin Huang > --- > > Changes in v2: > - upda

Re: [PATCH] selftests: memfd: split regular and hugetlbfs tests

2018-05-11 Thread Mike Kravetz
On 05/10/2018 01:13 PM, Shuah Khan (Samsung OSG) wrote: > Split normal memfd and hugetlbfs tests to improve the test reporting. > Remove run_fuse_test.sh and memfd_test from run_tests.sh and add them > to the Makefile. > > Add memfd_test to TEST_GEN_PROGS to be run separately. > Rename run_tests.s

Re: [PATCH v5 5/7] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option

2018-05-11 Thread Linus Torvalds
On Fri, May 11, 2018 at 2:46 AM Alexey Gladkov wrote: > + /* Limit procfs to only ptracable tasks */ > + if (limit_pids == PROC_LIMIT_PIDS_PTRACE) { > + cond_resched(); > + if (!has_pid_permissions(fs_info, task, HIDEPID_NO_ACCESS)) > +

Re: [PATCH 2/2] arm64: dts: mt7622: add audio related device nodes

2018-05-11 Thread Matthias Brugger
On 05/02/2018 05:53 AM, Sean Wang wrote: > Hi, Matthias > > On Wed, 2018-05-02 at 11:41 +0800, sean.w...@mediatek.com wrote: >> From: Ryder Lee >> >> Add audio device nodes and its proper setup for all used pins >> >> Signed-off-by: Ryder Lee >> Signed-off-by: Sean Wang >> --- >> arch/arm64/

Re: Another NVMe failure, this time with AER info

2018-05-11 Thread Bjorn Helgaas
Andrew wrote: > A friend of mine has a brand new LG laptop that has intermittent NVMe > failures. They mostly happen during a suspend/resume cycle > (apparently during suspend, not resume). Unlike the earlier > Dell/Samsung issue, the NVMe device isn't completely gone -- MMIO > reads fail, but PC

Re: KASAN: null-ptr-deref Read in rds_ib_get_mr

2018-05-11 Thread Santosh Shilimkar
On 5/11/2018 12:48 AM, Yanjun Zhu wrote: On 2018/5/11 13:20, DaeRyong Jeong wrote: We report the crash: KASAN: null-ptr-deref Read in rds_ib_get_mr Note that this bug is previously reported by syzkaller. https://syzkaller.appspot.com/bug?id=0bb56a5a48b000b52aa2b0d8dd20b1f545214d91 Nonethele

Re: [PATCH v2] selftests/cgroup: memory controller self-tests

2018-05-11 Thread Shuah Khan
On 05/11/2018 10:29 AM, Tejun Heo wrote: > Hello, Shuah. > > On Fri, May 11, 2018 at 08:55:28AM -0600, Shuah Khan wrote: >> I think we don't need to create a special branch and all. The following >> should work: >> >> linux-next already has the skip work. What we can do is: >> >> Do the cleanup an

RE: [PATCH 3/9] soc: fsl: set rcpm bit for FTM

2018-05-11 Thread Leo Li
> -Original Message- > From: Yinbo Zhu [mailto:yinbo@nxp.com] > Sent: Thursday, May 10, 2018 10:35 PM > To: Yinbo Zhu ; Rob Herring ; > Mark Rutland ; Catalin Marinas ) > ; Will Deacon ) ; > Lorenzo Pieralisi ) ; Leo Li > Cc: Xiaobo Xie ; Ran Wang ; > Daniel Lezcano ; Thomas Gleixner

Re: [RFC PATCH v4 3/3] acpi: apei: Do not panic() on PCIe errors reported through GHES

2018-05-11 Thread Alex G.
On 05/11/2018 11:29 AM, Borislav Petkov wrote: > On Fri, May 11, 2018 at 11:12:25AM -0500, Alex G. wrote: >>> I think *you* didn't get it: IS_ENABLED(CONFIG_ACPI_APEI_PCIEAER) is not >>> enough of a check to confirm that there actually *is* an AER driver to >>> handle the errors. If you really want

Re: [RFC PATCH v4 2/3] acpi: apei: Rename ghes_severity() to ghes_cper_severity()

2018-05-11 Thread Alex G.
On 05/11/2018 11:19 AM, Borislav Petkov wrote: > On Fri, May 11, 2018 at 11:12:24AM -0500, Alex G. wrote: >> Because the GHES structure uses CPER values, but all the code is written >> to use GHES_SEV_ values. GHES_SEV_ is a made up enum, specifically for >> linux. > > Again, what does that even

[PATCH 0/6] hwspinlock: Convert to use SPDX license identifiers

2018-05-11 Thread Suman Anna
Hi Bjorn, The following series switches over the current licensing text in various HwSpinlock drivers to the SPDX licensing format. Please let me know if you need any changes. If you are ok with the changes, I will make similar changes to the remoteproc and rpmsg drivers and post them at the earli

[PATCH 3/6] hwspinlock: qcom: Switch to SPDX license identifier

2018-05-11 Thread Suman Anna
Use the appropriate SPDX license identifier in the Qualcomm Hwspinlock driver source file and drop the previous boilerplate license text. Signed-off-by: Suman Anna --- drivers/hwspinlock/qcom_hwspinlock.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/hwspi

[PATCH 5/6] hwspinlock/u8500: Switch to SPDX license identifier

2018-05-11 Thread Suman Anna
Use the appropriate SPDX license identifier in the U8500 HWSEM driver source file and drop the previous boilerplate license text. Cc: Mathieu J. Poirier Cc: Linus Walleij Signed-off-by: Suman Anna --- drivers/hwspinlock/u8500_hsem.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(

[PATCH 6/6] hwspinlock: sprd: Switch to SPDX license identifier

2018-05-11 Thread Suman Anna
Use the appropriate SPDX license identifiers in the Spreadtrum hardware spinlock driver source file and drop the previous boilerplate license text. Cc: Baolin Wang Signed-off-by: Suman Anna --- drivers/hwspinlock/sprd_hwspinlock.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-)

[PATCH 2/6] hwspinlock/omap: Switch to SPDX license identifier

2018-05-11 Thread Suman Anna
Use the appropriate SPDX license identifier in the OMAP hwspinlock driver source file and drop the previous boilerplate license text. Signed-off-by: Suman Anna --- drivers/hwspinlock/omap_hwspinlock.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/hwspinloc

[PATCH 1/6] hwspinlock/core: Switch to SPDX license identifier

2018-05-11 Thread Suman Anna
Use the appropriate SPDX license identifier in the Hwspinlock core driver source files and drop the previous boilerplate license text. Signed-off-by: Suman Anna --- drivers/hwspinlock/Kconfig | 1 + drivers/hwspinlock/hwspinlock_core.c | 10 +- drivers/hwspinlock/hwspi

[PATCH 4/6] hwspinlock/sirf: Switch to SPDX license identifier

2018-05-11 Thread Suman Anna
Use the appropriate SPDX license identifier in the CSR's SIRF hardware spinlock driver source file and drop the previous boilerplate license text. Cc: Wei Chen Cc: Barry Song Signed-off-by: Suman Anna --- drivers/hwspinlock/sirf_hwspinlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

Re: [PATCH v9 03/11] arm64: kexec_file: invoke the kernel without purgatory

2018-05-11 Thread James Morse
Hi Akashi, On 07/05/18 06:22, AKASHI Takahiro wrote: > On Tue, May 01, 2018 at 06:46:06PM +0100, James Morse wrote: >> On 25/04/18 07:26, AKASHI Takahiro wrote: >>> diff --git a/arch/arm64/kernel/machine_kexec.c >>> b/arch/arm64/kernel/machine_kexec.c >>> index f76ea92dff91..f7dbba00be10 100644 >

Re: [PATCH v9 06/11] arm64: kexec_file: allow for loading Image-format kernel

2018-05-11 Thread James Morse
Hi Akashi, On 07/05/18 08:21, AKASHI Takahiro wrote: > On Tue, May 01, 2018 at 06:46:11PM +0100, James Morse wrote: >> On 25/04/18 07:26, AKASHI Takahiro wrote: >>> This patch provides kexec_file_ops for "Image"-format kernel. In this >>> implementation, a binary is always loaded with a fixed offs

use memcpy_mcsafe() for copy_to_iter() (was: Re: [PATCH v3 0/9] Series short description)

2018-05-11 Thread Dan Williams
Ingo, Thomas, Al, any concerns with this series? On Thu, May 3, 2018 at 5:06 PM, Dan Williams wrote: > Changes since v2 [1]: > > * Fix source address increment in mcsafe_handle_tail() (Mika) > > * Extend the unit test to inject simulated write faults and validate > that data is properly transfe

Re: [PATCH v5 05/13] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-05-11 Thread Halil Pasic
On 05/07/2018 05:11 PM, Tony Krowiak wrote: Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated matrix devices each of which will be used to configure t

Re: Another NVMe failure, this time with AER info

2018-05-11 Thread Keith Busch
On Fri, May 11, 2018 at 11:57:52AM -0500, Bjorn Helgaas wrote: > We reported several corrected errors before the nvme timeout: > > [12750.281158] nvme nvme0: controller is down; will reset: CSTS=0x, > PCI_STATUS=0x10 > [12750.297594] nvme nvme0: I/O 455 QID 2 timeout, disable controll

Re: [PATCH] rcu: Report a quiescent state when it's exactly in the state

2018-05-11 Thread Paul E. McKenney
On Fri, May 11, 2018 at 12:27:12PM -0400, Steven Rostedt wrote: > On Fri, 11 May 2018 12:25:28 -0400 > Steven Rostedt wrote: > > > I would also say that one should never call schedule() directly without > > changing its state to something other than TASK_RUNNING. Hence, calling > > schedule direc

Re: [PATCH] rcu: Report a quiescent state when it's exactly in the state

2018-05-11 Thread Steven Rostedt
On Fri, 11 May 2018 10:27:35 -0700 "Paul E. McKenney" wrote: > On Fri, May 11, 2018 at 12:27:12PM -0400, Steven Rostedt wrote: > > On Fri, 11 May 2018 12:25:28 -0400 > > Steven Rostedt wrote: > > > > > I would also say that one should never call schedule() directly without > > > changing its

[GIT PULL] arm64: fixes for -rc5

2018-05-11 Thread Will Deacon
Hi Linus, Please pull these arm64 fixes for -rc5. There's a small memblock accounting problem when freeing the initrd and a Spectre-v2 mitigation for NVIDIA Denver CPUs which just requires a match on the CPU ID register. Thanks, Will --->8 The following changes since commit 6da6c0db5316275015e

Re: general protection fault in usb_find_alt_setting

2018-05-11 Thread Dmitry Vyukov
On Sun, Nov 12, 2017 at 10:06 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > d9e0e63d9a6f88440eb201e1491fcf730272c706 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is

Re: [PATCH net V2] tun: fix use after free for ptr_ring

2018-05-11 Thread Cong Wang
On Thu, May 10, 2018 at 7:49 PM, Jason Wang wrote: > static void __tun_detach(struct tun_file *tfile, bool clean) > { > struct tun_file *ntfile; > @@ -736,7 +727,8 @@ static void __tun_detach(struct tun_file *tfile, bool > clean) > tun->dev->reg_state == NETR

Re: Another NVMe failure, this time with AER info

2018-05-11 Thread Keith Busch
On Fri, May 11, 2018 at 11:26:11AM -0600, Keith Busch wrote: > I trust you know the offsets here, but it's hard to tell what this > is doing with hard-coded addresses. Just to be safe and for clarity, > I recommend the 'CAP_*+' with a mask. > > For example, disabling ASPM L1.2 can look like: > >

Re: [RFC PATCH v4 3/3] acpi: apei: Do not panic() on PCIe errors reported through GHES

2018-05-11 Thread Borislav Petkov
On Fri, May 11, 2018 at 12:01:52PM -0500, Alex G. wrote: > I understand your concern with unhandled AER errors evolving into MCE's. > That's extremely rare, but when it happens you still panic due to the > MCE. I don't like leaving holes in the handling of PCIe errors. You need to handle only thos

Re: [PATCH net] tun: fix use after free for ptr_ring

2018-05-11 Thread Michael S. Tsirkin
On Wed, May 09, 2018 at 02:59:58PM +0800, Jason Wang wrote: > We used to initialize ptr_ring during TUNSETIFF, this is because its > size depends on the tx_queue_len of netdevice. And we try to clean it > up when socket were detached from netdevice. A race were spotted when > trying to do uninit du

Re: Another NVMe failure, this time with AER info

2018-05-11 Thread Bjorn Helgaas
On Fri, May 11, 2018 at 11:42:42AM -0600, Keith Busch wrote: > On Fri, May 11, 2018 at 11:26:11AM -0600, Keith Busch wrote: > > I trust you know the offsets here, but it's hard to tell what this > > is doing with hard-coded addresses. Just to be safe and for clarity, > > I recommend the 'CAP_*+' wi

Re: [RFC PATCH v4 3/3] acpi: apei: Do not panic() on PCIe errors reported through GHES

2018-05-11 Thread Alex G.
On 05/11/2018 12:41 PM, Borislav Petkov wrote: > On Fri, May 11, 2018 at 12:01:52PM -0500, Alex G. wrote: >> I understand your concern with unhandled AER errors evolving into MCE's. >> That's extremely rare, but when it happens you still panic due to the >> MCE. > > I don't like leaving holes in t

[PATCH v2] mm: Change return type to vm_fault_t

2018-05-11 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler in struct vm_operations_struct. 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 ty

Re: [PATCH v2] selftests/cgroup: memory controller self-tests

2018-05-11 Thread Roman Gushchin
On Fri, May 11, 2018 at 10:58:53AM -0600, Shuah Khan wrote: > On 05/11/2018 10:29 AM, Tejun Heo wrote: > > Hello, Shuah. > > > > On Fri, May 11, 2018 at 08:55:28AM -0600, Shuah Khan wrote: > >> I think we don't need to create a special branch and all. The following > >> should work: > >> > >> linu

[PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Dan Murphy
Add support for the DP83811 phy. The DP83811 supports both rgmii and sgmii interfaces. There are 2 part numbers for this the DP83TC811R does not reliably support the SGMII interface but the DP83TC811S will. There is not a way to differentiate these parts from the hardware or register set. So thi

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

2018-05-11 Thread Matthew Wilcox
On Fri, May 11, 2018 at 11:36:39PM +0530, Souptick Joarder wrote: > mm/hugetlb.c | 2 +- > mm/mmap.c| 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) Don't we also need to convert include/linux/mm_types.h: @@ -621,7 +621,7 @@ struct vm_special_mapping { * If non-NULL, the

Re: [PATCH net V2] tun: fix use after free for ptr_ring

2018-05-11 Thread Michael S. Tsirkin
On Fri, May 11, 2018 at 10:49:25AM +0800, Jason Wang wrote: > We used to initialize ptr_ring during TUNSETIFF, this is because its > size depends on the tx_queue_len of netdevice. And we try to clean it > up when socket were detached from netdevice. A race were spotted when > trying to do uninit du

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

2018-05-11 Thread Souptick Joarder
On Mon, Apr 23, 2018 at 4:24 PM, Matthew Wilcox wrote: > On Wed, Apr 18, 2018 at 10:24:39AM +0200, Thierry Reding wrote: >> > @@ -437,20 +436,7 @@ static int tegra_bo_fault(struct vm_fault *vmf) >> > offset = (vmf->address - vma->vm_start) >> PAGE_SHIFT; >> > page = bo->pages[offset]; >> >

Re: [PATCH 3/3] iommu: armsmmu: set iommu ops for rpmsg bus

2018-05-11 Thread Robin Murphy
On 07/05/18 20:28, Bjorn Andersson wrote: On Fri, Mar 2, 2018 at 8:59 AM, Robin Murphy wrote: On 02/03/18 14:55, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla On Qualcomm SoCs, ADSP exposes many functions like audio and others. These services need iommu access to allocate

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

2018-05-11 Thread Souptick Joarder
On Fri, May 11, 2018 at 11:45 PM, Matthew Wilcox wrote: > On Fri, May 11, 2018 at 11:36:39PM +0530, Souptick Joarder wrote: >> mm/hugetlb.c | 2 +- >> mm/mmap.c| 4 ++-- >> 2 files changed, 3 insertions(+), 3 deletions(-) > > Don't we also need to convert include/linux/mm_types.h: > > @@ -621

Re: [PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Andrew Lunn
On Fri, May 11, 2018 at 01:08:19PM -0500, Dan Murphy wrote: > Add support for the DP83811 phy. > > The DP83811 supports both rgmii and sgmii interfaces. > There are 2 part numbers for this the DP83TC811R does not > reliably support the SGMII interface but the DP83TC811S will. > > There is not a w

Re: possible deadlock in sk_diag_fill

2018-05-11 Thread Andrei Vagin
On Sat, May 05, 2018 at 10:59:02AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c1c07416cdd4 Merge tag 'kbuild-fixes-v4.17' of git://git.k.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=12164c9780 > kernel

Re: INFO: rcu detected stall in kfree_skbmem

2018-05-11 Thread Marcelo Ricardo Leitner
On Fri, May 11, 2018 at 12:00:38PM +0200, Dmitry Vyukov wrote: > On Mon, Apr 30, 2018 at 8:09 PM, syzbot > wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:5d1365940a68 Merge > > git://git.kernel.org/pub/scm/linux/kerne... > > git tree: net-next > > cons

Re: [PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Dan Murphy
Andrew On 05/11/2018 01:30 PM, Andrew Lunn wrote: > On Fri, May 11, 2018 at 01:08:19PM -0500, Dan Murphy wrote: >> Add support for the DP83811 phy. >> >> The DP83811 supports both rgmii and sgmii interfaces. >> There are 2 part numbers for this the DP83TC811R does not >> reliably support the SGMII

Re: [PATCH] x86: pad assembly functions with INT3

2018-05-11 Thread H. Peter Anvin
On 05/10/18 09:39, David Laight wrote: > From: Alexey Dobriyan >> Sent: 07 May 2018 22:38 >> >> Use INT3 instead of NOP. All that padding between functions is >> an illegal area, no legitimate code should jump into it. >> >> I've checked x86_64 allyesconfig disassembly, all changes looks sane: >> I

Re: [PATCH v2 22/35] vfs: don't open real

2018-05-11 Thread Vivek Goyal
On Mon, May 07, 2018 at 10:37:54AM +0200, Miklos Szeredi wrote: > Let overlayfs do its thing when opening a file. > > This enables stacking and fixes the corner case when a file is opened for > read, modified through a writable open, and data is read from the read-only > file. After this patch th

Re: [PATCH] pci/aer: Get rid of aer_recover_work_func() forward declaration

2018-05-11 Thread Bjorn Helgaas
On Fri, May 11, 2018 at 06:39:23PM +0200, Borislav Petkov wrote: > From: Borislav Petkov > > Just move the actual function up so that it is visible to its user > aer_recover_queue(). Good idea. Not *directly* related, but I'm really tired of the clutter of all these separate files, and I'm thin

Re: [PATCH] tpm_tis: verify locality released before returning from release_locality

2018-05-11 Thread Laurent Bigonville
Le 05/05/18 à 22:03, Jerry Snitselaar a écrit : On Sat May 05 18, Jerry Snitselaar wrote: For certain tpm chips releasing locality can take long enough that a subsequent call to request_locality will see the locality as being active when the access register is read in check_locality. So check th

[GIT PULL] arch/sh regression fixes for 4.17

2018-05-11 Thread Rich Felker
Linus, Please pull these changes for arch/sh. They fix regressions introduced in 4.15 and 4.17-rc1 that prevent booting on affected systems. Rich The following changes since commit 6da6c0db5316275015e8cc2959f12a17584aeb64: Linux v4.17-rc3 (2018-04-29 14:17:42 -0700) are available in the gi

[PATCH v2] mm: Adding new return type vm_fault_t

2018-05-11 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler in struct vm_operations_struct. 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 ty

Re: INFO: rcu detected stall in kfree_skbmem

2018-05-11 Thread Eric Dumazet
On 05/11/2018 11:41 AM, Marcelo Ricardo Leitner wrote: > But calling ip6_xmit with rcu_read_lock is expected. tcp stack also > does it. > Thus I think this is more of an issue with IPv6 stack. If a host has > an extensive ip6tables ruleset, it probably generates this more > easily. > >>> sctp_

Re: [PATCH] pci/aer: Get rid of aer_recover_work_func() forward declaration

2018-05-11 Thread Borislav Petkov
On Fri, May 11, 2018 at 02:00:13PM -0500, Bjorn Helgaas wrote: > On Fri, May 11, 2018 at 06:39:23PM +0200, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Just move the actual function up so that it is visible to its user > > aer_recover_queue(). > > Good idea. > > Not *directly* relat

Re: [PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Andrew Lunn
On Fri, May 11, 2018 at 01:51:28PM -0500, Dan Murphy wrote: > Andrew > > On 05/11/2018 01:30 PM, Andrew Lunn wrote: > > On Fri, May 11, 2018 at 01:08:19PM -0500, Dan Murphy wrote: > >> Add support for the DP83811 phy. > >> > >> The DP83811 supports both rgmii and sgmii interfaces. > >> There are 2

Re: [PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Florian Fainelli
On 05/11/2018 11:08 AM, Dan Murphy wrote: > Add support for the DP83811 phy. > > The DP83811 supports both rgmii and sgmii interfaces. > There are 2 part numbers for this the DP83TC811R does not > reliably support the SGMII interface but the DP83TC811S will. > > There is not a way to differentiat

Re: [PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread David Miller
From: Andrew Lunn Date: Fri, 11 May 2018 21:10:11 +0200 > Humm, i thought i had given one. But i cannot find it in the mail > archive. Going senile :-( You aren't going senile, there is just are a huge number of patches being submitted since net-next openned up.

Re: [PATCH] mlx4_core: allocate 4KB ICM chunks

2018-05-11 Thread Qing Huang
On 5/11/2018 3:27 AM, Håkon Bugge wrote: On 11 May 2018, at 01:31, Qing Huang wrote: When a system is under memory presure (high usage with fragments), the original 256KB ICM chunk allocations will likely trigger kernel memory management to enter slow path doing memory compact/migration ops in

[PATCH V2] mlx4_core: allocate ICM memory in page size chunks

2018-05-11 Thread Qing Huang
When a system is under memory presure (high usage with fragments), the original 256KB ICM chunk allocations will likely trigger kernel memory management to enter slow path doing memory compact/migration ops in order to complete high order memory allocations. When that happens, user processes calli

[linux-next PATCH 1/4] ARM: dts: k2g: add dt bindings to support network driver

2018-05-11 Thread Murali Karicheri
This patch add dt bindings to support network driver based on Network Sub System (NSS) found on k2g SoC. This consists of bindings for netcp node, nss qmss , pktdma, cpsw 2u version of ethss and mdio. In order to support transitioning between non-promiscuous and promiscuous modes in K2G's ethernet

[linux-next PATCH 3/4] ARM: dts: keystone-k2g-ice: Enable netcp network driver

2018-05-11 Thread Murali Karicheri
This patch adds dt bindings to enable netcp network driver on K2G ICE boards. This consists of enabling bindings for NSS qmss, pktdma, 2u ethss, mdio, pinmux and netcp devices as well as DP83867 phy. EVM hardware spec recommends to add 0.25 nsec delay in the tx direction and 2.25 nsec delay in the

[linux-next PATCH 2/4] ARM: dts: keystone-k2g-evm: Enable netcp network driver

2018-05-11 Thread Murali Karicheri
Add dt bindings to enable netcp network driver on K2G GP EVM. This consists of enabling bindings for nss qmss, pktdma, 2u ethss, mdio, pinmux and netcp devices. Signed-off-by: Murali Karicheri --- arch/arm/boot/dts/keystone-k2g-evm.dts | 53 ++ 1 file changed, 53

[linux-next PATCH 4/4] ARM: keystone: k2g: enable micrel and dp83867 phys

2018-05-11 Thread Murali Karicheri
Enable micrel and dp83867 phys for K2G Boards in keystone_defconfig to support Network driver on these boards (K2G ICE and GP EVM). Signed-off-by: Murali Karicheri --- arch/arm/configs/keystone_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b

[linux-next PATCH 0/4] Enable network driver on K2G ICE and GP EVMs

2018-05-11 Thread Murali Karicheri
Now that NetCP driver patches for K2G SoC is merged to linux-next master this series add patches to enable network driver on K2G ICE and GP EVMs. Thanks Applied the patches on top of latest linux-next master, built kernel and booted up on both EVMs. The logs are below K2G GP EVM: https://pastebi

Re: [PATCH v5 0/7] proc: modernize proc to support multiple private instances

2018-05-11 Thread Al Viro
On Fri, May 11, 2018 at 09:39:23AM -0700, Linus Torvalds wrote: > On Fri, May 11, 2018 at 2:42 AM Alexey Gladkov > wrote: > > > This is RFC v5 to modernize procfs and make it able to support multiple > > private instances per the same pid namespace. > > So I have no big objections, but I would *

Re: [lustre-devel] [PATCH] staging: lustre: fix spelling mistake: "req_ulinked" -> "req_unlinked"

2018-05-11 Thread Dilger, Andreas
On May 11, 2018, at 07:38, Colin King wrote: > > From: Colin Ian King > > Trivial fix to spelling mistake in DEBUG_REQ message text > > Signed-off-by: Colin Ian King Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/ptlrpc/client.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v2] selftests/cgroup: memory controller self-tests

2018-05-11 Thread Shuah Khan
On 05/11/2018 12:03 PM, Roman Gushchin wrote: > On Fri, May 11, 2018 at 10:58:53AM -0600, Shuah Khan wrote: >> On 05/11/2018 10:29 AM, Tejun Heo wrote: >>> Hello, Shuah. >>> >>> On Fri, May 11, 2018 at 08:55:28AM -0600, Shuah Khan wrote: I think we don't need to create a special branch and all

Re: [PATCH v6 1/2] iommu - Enable debugfs exposure of IOMMU driver internals

2018-05-11 Thread Gary R Hook
On 05/11/2018 10:22 AM, Robin Murphy wrote: Hi Gary, Just a few trivial nitpicks below, otherwise: Reviewed-by: Robin Murphy On 11/05/18 15:34, Gary R Hook wrote: Provide base enablement for using debugfs to expose internal data of an IOMMU driver. When called, create the /sys/kernel/debug/i

Re: [PATCH v2 22/35] vfs: don't open real

2018-05-11 Thread Vivek Goyal
On Fri, May 11, 2018 at 02:54:30PM -0400, Vivek Goyal wrote: > On Mon, May 07, 2018 at 10:37:54AM +0200, Miklos Szeredi wrote: > > Let overlayfs do its thing when opening a file. > > > > This enables stacking and fixes the corner case when a file is opened for > > read, modified through a writable

Re: [PATCH v3 1/2] vfio: platform: Fix reset module leak in error path

2018-05-11 Thread Alex Williamson
On Wed, 11 Apr 2018 11:15:48 +0200 Geert Uytterhoeven wrote: > If the IOMMU group setup fails, the reset module is not released. > > Fixes: b5add544d677d363 ("vfio, platform: make reset driver a requirement by > default") > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Eric Auger > Reviewe

Re: [PATCH v2] vfio: platform: Make printed error messages more consistent

2018-05-11 Thread Alex Williamson
On Tue, 10 Apr 2018 16:54:11 +0200 Geert Uytterhoeven wrote: > - Capitalize the first word of error messages, > - Unwrap statements that fit on a single line, > - Use "VFIO" instead of "vfio" as the error message prefix. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Eric Auger > -

Re: [PATCH] isdn: eicon: fix a missing-check bug

2018-05-11 Thread David Miller
From: Wenwen Wang Date: Sat, 5 May 2018 14:32:46 -0500 > To avoid such issues, this patch adds a check after the second copy in the > function diva_xdi_write(). If the adapter number is not equal to the one > obtained in the first copy, (-4) will be returned to divas_write(), which > will then r

[RFC][PATCH 03/10] tracing: Have event_trace_init() called by trace_init_tracefs()

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Instead of having both trace_init_tracefs() and event_trace_init() be called by fs_initcall() routines, have event_trace_init() called directly by trace_init_tracefs(). This will guarantee order of how the events are created with respect to the rest of the ftrace i

[RFC][PATCH 02/10] tracing: Add __find_event_file() to find event files without restrictions

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" By adding the function __find_event_file() that can search for files without restrictions, such as if the event associated with the file has a reg function, or if it has the "ignore" flag set, the files that are associated to ftrace internal events (like trace_mark

[RFC][PATCH 00/10] tracing: Add triggers to trace_marker writes

2018-05-11 Thread Steven Rostedt
A few people have asked for this in the past, and I finally got around to implementing it. What this does is to allow writes into trace_marker to initiate a trigger. The trace_marker event is described in: tracefs/events/ftrace/print Thus the trigger file is added there: tracefs/events/ftrace

[RFC][PATCH 01/10] tracing: Do not reference event data in post call triggers

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Trace event triggers can be called before or after the event has been committed. If it has been called after the commit, there's a possibility that the event no longer exists. Currently, the two post callers is the trigger to disable tracing (traceoff) and the one

[RFC][PATCH 10/10] tracing: Document trace_marker triggers

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add documentation and an example on how to use trace_marker triggers. Signed-off-by: Steven Rostedt (VMware) --- Documentation/trace/events.rst| 6 +- Documentation/trace/ftrace.rst| 5 + Documentation/trace/histogram.txt | 546 ++

[RFC][PATCH 08/10] tracing: Prevent further users of zero size static arrays in trace events

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" A zero size static array has special meaning in the ftrace infrastructure. Trace events are for recording data in the trace buffers that is normally difficult to obtain via probes or function tracing. There is no reason for any trace event to declare a zero size st

[RFC][PATCH 06/10] tracing: Add trigger file for trace_markers tracefs/ftrace/print

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Allow writing to the trace_markers file initiate triggers defined in tracefs/ftrace/print/trigger file. This will allow of user space to trigger the same type of triggers (including histograms) that the trace events use. Cc: Tom Zanussi Cc: Clark Williams Cc: Ka

[RFC][PATCH 07/10] tracing: Have zero size length in filter logic be full string

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As strings in trace events may not have a nul terminating character, the filter string compares use the defined string length for the field for the compares. The trace_marker records data slightly different than do normal events. It's size is zero, meaning that th

[RFC][PATCH 04/10] tracing: Add brackets in ftrace event dynamic arrays

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The dynamic arrays defined for ftrace internal events, such as the buf field for trace_marker (ftrace/print) did not have brackets which makes the filter code not accept it as a string. This is not currently an issues because the filter code doesn't do anything for

[RFC][PATCH 09/10] tracing: Allow histogram triggers to access ftrace internal events

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Now that trace_marker can have triggers, including a histogram triggers, the onmatch() and onmax() access the trace event. To do so, the search routine to find the event file needs to use the raw __find_event_file() that does not filter out ftrace events. Signed-o

[RFC][PATCH 05/10] tracing: Do not show filter file for ftrace internal events

2018-05-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The filter file in the ftrace internal events, like in /sys/kernel/tracing/events/ftrace/function/filter is not attached to any functionality. Do not create them as they are meaningless. In the future, if an ftrace internal event gets filter functionality, then it

Re: [PATCH net 0/5] rxrpc: Fixes

2018-05-11 Thread David Miller
From: David Howells Date: Thu, 10 May 2018 23:45:17 +0100 > Here are three fixes for AF_RXRPC and two tracepoints that were useful for > finding them: ... > The patches are tagged here: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > rxrpc-fixes-20180510 P

Re: [PATCH v2] selftests/cgroup: memory controller self-tests

2018-05-11 Thread Tejun Heo
On Fri, May 11, 2018 at 01:33:26PM -0600, Shuah Khan wrote: > Yeah. I see that. You have a switch for the KSFT_ values. Since there is no > dependency on the cgroup tree, I would recommend having this patch go through > kselftest tree which is the normal process for tests anyway. > > This version

Re: [PATCH v1 6/9] iommu/tegra: gart: Ignore devices without IOMMU phandle in DT

2018-05-11 Thread Dmitry Osipenko
Hi Robin, On 11.05.2018 14:34, Robin Murphy wrote: > Hi Dmitry, > > On 08/05/18 19:16, Dmitry Osipenko wrote: >> GART can't handle all devices, ignore devices that aren't related to GART. >> Device tree must explicitly assign GART IOMMU to the devices. >> >> Signed-off-by: Dmitry Osipenko >> ---

Re: [PATCH v3 1/3] big key: get rid of stack array allocation

2018-05-11 Thread James Morris
On Tue, 24 Apr 2018, Tycho Andersen wrote: > We're interested in getting rid of all of the stack allocated arrays in the > kernel [1]. This patch simply hardcodes the iv length to match that of the > hardcoded cipher. > > [1]: https://lkml.org/lkml/2018/3/7/621 > > v2: hardcode the length of the

[PATCH v1 8/9] iommu: Introduce iotlb_sync_map callback

2018-05-11 Thread Dmitry Osipenko
On 11.05.2018 16:02, Robin Murphy wrote: > On 08/05/18 19:16, Dmitry Osipenko wrote: >> Introduce iotlb_sync_map() callback that is invoked in the end of >> iommu_map(). This new callback allows IOMMU drivers to avoid syncing >> on mapping of each contiguous chunk and sync only when whole mapping >

[PATCH v1 7/9] iommu/tegra: gart: Provide single domain and group for all devices

2018-05-11 Thread Dmitry Osipenko
On 11.05.2018 15:32, Robin Murphy wrote: > On 08/05/18 19:16, Dmitry Osipenko wrote: >> GART aperture is shared by all devices, hence there is a single IOMMU >> domain and group shared by these devices. Allocation of a group per >> device only wastes resources and allowance of having more than one

Re: [PATCH 00/12] introduce support for early platform drivers

2018-05-11 Thread Rob Herring
On Fri, May 11, 2018 at 11:20 AM, Bartosz Golaszewski wrote: > This series is a follow-up to the RFC[1] posted a couple days ago. > > NOTE: this series applies on top of my recent patches[2] that move the > previous > implementation of early platform devices to arch/sh. > > Problem: > > Certain c

Re: [PATCH v7 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-05-11 Thread Doug Anderson
Hi, On Fri, May 11, 2018 at 8:06 AM, Lina Iyer wrote: >> As I've said I haven't reviewed RPMh in any amount of detail and so >> perhaps I don't understand something. >> >> OK, I dug a little more and coded up something for you. Basically >> you're doing a whole bunch of iteration / extra work he

Re: [PATCH v8 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-05-11 Thread Doug Anderson
Hi, On Wed, May 9, 2018 at 10:01 AM, Lina Iyer wrote: > +int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg) > +{ > + int ret; > + > + if (!msg || !msg->cmds || !msg->num_cmds || > + msg->num_cmds > MAX_RPMH_PAYLOAD) { > + WARN_ON(1); > +

Re: [PATCH v8 08/10] drivers: qcom: rpmh: allow requests to be sent asynchronously

2018-05-11 Thread Doug Anderson
Hi, On Wed, May 9, 2018 at 10:01 AM, Lina Iyer wrote: > /** > @@ -137,6 +140,8 @@ void rpmh_tx_done(const struct tcs_request *msg, int r) > dev_err(rpm_msg->dev, "RPMH TX fail in msg addr=%#x, > err=%d\n", > rpm_msg->msg.cmds[0].addr, r); > > + kfre

<    1   2   3   4   5   6   7   >