IOMMU vs Ryzen embedded EMMC controller

2019-09-20 Thread Kurt Garloff
Hi, enabling the IOMMU on my Ryzen v1605b (UDOO Bolt v8) does result in a non-working EMMC driver. Without enabling IOMMU, it works like a charm. From my POV this needs fixing, and I consider this a bug. I looked into sdhci to see whether the right dma_map_sg() calls are missing, but th

RE: [PATCH] Input: hyperv-keyboard: Add the support of hibernation

2019-09-20 Thread Dexuan Cui
> From: dmitry.torok...@gmail.com > Sent: Thursday, September 19, 2019 9:18 AM > > Hi Dexuan, > > On Wed, Sep 11, 2019 at 11:36:20PM +, Dexuan Cui wrote: > > We need hv_kbd_pm_notify() to make sure the pm_wakeup_hard_event() > call > > does not prevent the system from entering hibernation: t

Linux 5.3.1

2019-09-20 Thread Greg KH
I'm announcing the release of the 5.3.1 kernel. All users of the 5.3 kernel series must upgrade. The updated 5.3.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.3.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 5.3.1

2019-09-20 Thread Greg KH
diff --git a/Documentation/filesystems/overlayfs.txt b/Documentation/filesystems/overlayfs.txt index 1da2f1668f08..845d689e0fd7 100644 --- a/Documentation/filesystems/overlayfs.txt +++ b/Documentation/filesystems/overlayfs.txt @@ -302,7 +302,7 @@ beneath or above the path of another overlay lower

Re: Linux 5.2.17

2019-09-20 Thread Greg KH
diff --git a/Documentation/filesystems/overlayfs.txt b/Documentation/filesystems/overlayfs.txt index 1da2f1668f08..845d689e0fd7 100644 --- a/Documentation/filesystems/overlayfs.txt +++ b/Documentation/filesystems/overlayfs.txt @@ -302,7 +302,7 @@ beneath or above the path of another overlay lower

Linux 5.2.17

2019-09-20 Thread Greg KH
I'm announcing the release of the 5.2.17 kernel. All users of the 5.2 kernel series must upgrade. The updated 5.2.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.2.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.19.75

2019-09-20 Thread Greg KH
diff --git a/Documentation/filesystems/overlayfs.txt b/Documentation/filesystems/overlayfs.txt index eef7d9d259e8..d7dc9c818b83 100644 --- a/Documentation/filesystems/overlayfs.txt +++ b/Documentation/filesystems/overlayfs.txt @@ -302,7 +302,7 @@ beneath or above the path of another overlay lower

Linux 4.14.146

2019-09-20 Thread Greg KH
I'm announcing the release of the 4.14.146 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser

Re: Linux 4.14.146

2019-09-20 Thread Greg KH
diff --git a/Makefile b/Makefile index ce521c48b35e..ad923d5eae1e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 145 +SUBLEVEL = 146 EXTRAVERSION = NAME = Petit Gorille diff --git a/arch/arm/boot/dts/dra74x-mmc-

Linux 4.19.75

2019-09-20 Thread Greg KH
I'm announcing the release of the 4.19.75 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.4.194

2019-09-20 Thread Greg KH
diff --git a/Makefile b/Makefile index 34d2be9c8459..bea8f3f591c4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 193 +SUBLEVEL = 194 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arc/configs/axs101_defconfig b/arch/arc/configs/axs101_de

Re: Linux 4.9.194

2019-09-20 Thread Greg KH
diff --git a/Makefile b/Makefile index 48f79c6729ad..6e3c81c3bf40 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 193 +SUBLEVEL = 194 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arc/kernel/traps.c b/arch/arc/kernel/traps.c index 2fb0cd39a

Linux 4.9.194

2019-09-20 Thread Greg KH
I'm announcing the release of the 4.9.194 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 4.4.194

2019-09-20 Thread Greg KH
I'm announcing the release of the 4.4.194 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] kbuild: binrpm-pkg: Propagate O= to rpmbuild

2019-09-20 Thread Masahiro Yamada
Hi Jeffrey, On Sat, Sep 21, 2019 at 4:01 AM Jeffrey Hugo wrote: > > If the user specifies O= to indicate a specific output directory for the > build, rpmbuild does not honor this, and will use its default, which could > be the user's home directory. In cases where the user has limited home > dir

[PATCH] hdlc: Simplify code in 'pvc_xmit()'

2019-09-20 Thread Christophe JAILLET
Use __skb_pad instead of rewriting it, this saves some LoC. Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/net/wan/hdlc_fr.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 9aca

Re: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2()

2019-09-20 Thread Florian Weimer
* Linus Torvalds: > Violently agreed. And that's kind of what the GRND_EXPLICIT is really > aiming for. > > However, it's worth noting that nobody should ever use GRND_EXPLICIT > directly. That's just the name for the bit. The actual users would use > GRND_INSECURE or GRND_SECURE. Should we switc

[PATCH] firmware: turris-mox-rwtm: small white space cleanup

2019-09-20 Thread Dan Carpenter
This patch deletes a stray tab. Signed-off-by: Dan Carpenter --- I don't use Fixes tags for whitespace but the commit that added this driver was commit 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver"). When we're adding a driver, it really helps if we use the prefix that the driver

[PATCH] md/raid0: Fix an error message in raid0_make_request()

2019-09-20 Thread Dan Carpenter
The first argument to WARN() is supposed to be a condition. The original code will just print the mdname() instead of the full warning message. Fixes: c84a1372df92 ("md/raid0: avoid RAID0 data corruption due to layout confusion.") Signed-off-by: Dan Carpenter --- drivers/md/raid0.c | 2 +- 1 f

Re: [PATCH -net] zd1211rw: zd_usb: Use "%zu" to format size_t

2019-09-20 Thread Kalle Valo
Geert Uytterhoeven wrote: > On 32-bit: > > drivers/net/wireless/zydas/zd1211rw/zd_usb.c: In function > ‘check_read_regs’: > drivers/net/wireless/zydas/zd1211rw/zd_def.h:18:25: warning: format ‘%ld’ > expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka > ‘unsigne

Re: [PATCH 5.3 00/21] 5.3.1-stable review

2019-09-20 Thread Greg Kroah-Hartman
On Fri, Sep 20, 2019 at 08:11:35PM +0530, Naresh Kamboju wrote: > On Fri, 20 Sep 2019 at 03:36, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.3.1 release. > > There are 21 patches in this series, all will be posted as a response > > to this one. If any

Re: [PATCH 5.3 00/21] 5.3.1-stable review

2019-09-20 Thread Greg Kroah-Hartman
On Fri, Sep 20, 2019 at 03:17:48PM -0600, shuah wrote: > On 9/19/19 4:03 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.3.1 release. > > There are 21 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with th

Re: [PATCH 5.2 000/124] 5.2.17-stable review

2019-09-20 Thread Greg Kroah-Hartman
On Fri, Sep 20, 2019 at 11:37:38AM -0700, Guenter Roeck wrote: > On Fri, Sep 20, 2019 at 12:01:28AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.17 release. > > There are 124 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH] riscv: Fix memblock reservation for device tree blob

2019-09-20 Thread Anup Patel
On Sat, Sep 21, 2019 at 6:30 AM Albert Ou wrote: > > This fixes an error with how the FDT blob is reserved in memblock. > An incorrect physical address calculation exposed the FDT header to > unintended corruption, which typically manifested with of_fdt_raw_init() > faulting during late boot after

[PATCH] perf docs: Allow man page date to be specified

2019-09-20 Thread Ian Rogers
With this change if a perf_date parameter is provided to asciidoc then it will override the default date written to the man page metadata. Without this change, or if the perf_date isn't specified, then the current date is written to the metadata. Having this parameter allows the metadata to be cons

Re: pci: endpoint test BUG

2019-09-20 Thread Randy Dunlap
On 9/20/19 7:04 PM, Hillf Danton wrote: >> > >>> It will be resent if no one saw the message. > >>  > >> I didn't see it and I can't find it on lore.kernel.org/linux-pci/. > >>  > > Respin, git send-email works/jj/pci-epf-uaf.txt > > ... > > From: Hillf Danton > > To: Bjorn Helgaas > >

Re: [RFC] microoptimizing hlist_add_{before,behind}

2019-09-20 Thread Al Viro
On Sat, Sep 21, 2019 at 12:12:33AM +0100, Al Viro wrote: > Neither hlist_add_before() nor hlist_add_behind() should ever > be called with both arguments pointing to the same hlist_node. > However, gcc doesn't know that, so it ends up with pointless reloads. > AFAICS, the following generates b

Re: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2()

2019-09-20 Thread Willy Tarreau
On Fri, Sep 20, 2019 at 04:30:20PM -0700, Andy Lutomirski wrote: > So I think that just improving the > getrandom()-is-blocking-on-x86-and-arm behavior, adding GRND_INSECURE > and GRND_SECURE_BLOCKING, and adding the warning if 0 is passed is > good enough. I think so as well. Anyway, keep in mind

Re: [PATCH] dt-bindings: net: dwmac: fix 'mac-mode' type

2019-09-20 Thread Florian Fainelli
On 9/20/2019 6:11 PM, Jakub Kicinski wrote: > On Tue, 17 Sep 2019 13:30:52 +0300, Alexandru Ardelean wrote: >> The 'mac-mode' property is similar to 'phy-mode' and 'phy-connection-type', >> which are enums of mode strings. >> >> The 'dwmac' driver supports almost all modes declared in the 'phy-m

Re: [PATCH] perf: add support for logging debug messages to file

2019-09-20 Thread Changbin Du
On Fri, Sep 20, 2019 at 10:53:56PM +0200, Jiri Olsa wrote: > On Sun, Sep 15, 2019 at 06:27:40PM +0800, Changbin Du wrote: > > When in TUI mode, it is impossible to show all the debug messages to > > console. This make it hard to debug perf issues using debug messages. > > This patch adds support fo

Re: [PATCH v3 0/9] hacking: make 'kernel hacking' menu better structurized

2019-09-20 Thread Changbin Du
Gentle ping for status of this series. thx! On Mon, Sep 09, 2019 at 10:44:44PM +0800, Changbin Du wrote: > This series is a trivial improvment for the layout of 'kernel hacking' > configuration menu. Now we have many items in it which makes takes > a little time to look up them since they are not

Re: [PATCH] dt-bindings: net: remove un-implemented property

2019-09-20 Thread Jakub Kicinski
On Wed, 18 Sep 2019 14:14:47 +0300, Alexandru Ardelean wrote: > The `adi,disable-energy-detect` property was implemented in an initial > version of the `adin` driver series, but after a review it was discarded in > favor of implementing the ETHTOOL_PHY_EDPD phy-tunable option. > > With the ETHTOOL

[PATCH] quota: code cleanup for hash bits calculation

2019-09-20 Thread Chengguang Xu
Code cleanup for hash bits calculation by calling rounddown_pow_of_two() and ilog2() Signed-off-by: Chengguang Xu --- fs/quota/dquot.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 6e826b454082..679dd3b5db70 100644 --- a/fs/

[PATCH] selinux: Remove load size limit

2019-09-20 Thread zhanglin
Load size was limited to 64MB, this was legacy limitation due to vmalloc() which was removed a while ago. Limiting load size to 64MB is both pointless and affects real world use cases. Signed-off-by: zhanglin --- security/selinux/selinuxfs.c | 4 1 file changed, 4 deletions(-) diff --git

Re: PROBLEM: nfs? crash in Linux 5.3 (possible regression)

2019-09-20 Thread Nick Bowler
On 9/20/19, Trond Myklebust wrote: > On Fri, 2019-09-20 at 14:23 -0400, Nick Bowler wrote: >> Not sure how reproducible this is. Since I've never seen a crash >> like this before it may be a regression compared to, say, Linux 4.19 >> but I am not certain because this particular machine is brand n

Re: [PATCH] drivers/net: release skb on failure

2019-09-20 Thread Jakub Kicinski
On Tue, 17 Sep 2019 23:45:21 -0500, Navid Emamdoost wrote: > In ql_run_loopback_test, ql_lb_send does not release skb when fails. So > it must be released before returning. > > Signed-off-by: Navid Emamdoost > --- > drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c | 4 +++- Thanks for the patch,

Re: [PATCH 3/3] mm:fix gup_pud_range

2019-09-20 Thread Qiujun Huang
On Sat, Sep 21, 2019 at 9:19 AM John Hubbard wrote: > > On 9/20/19 5:33 PM, Qiujun Huang wrote: > >> On 9/20/19 8:51 AM, Qiujun Huang wrote: > ... > >> It would be nice if this spelled out a little more clearly what's > >> wrong. I think you and Aneesh are saying that the entry is really > >> a sw

Re: [PATCH 3.16 000/132] 3.16.74-rc1 review

2019-09-20 Thread Guenter Roeck
On 9/20/19 2:16 PM, Ben Hutchings wrote: On Fri, 2019-09-20 at 13:04 -0700, Guenter Roeck wrote: On Fri, Sep 20, 2019 at 03:23:34PM +0100, Ben Hutchings wrote: This is the start of the stable review cycle for the 3.16.74 release. There are 132 patches in this series, which will be posted as res

Re: [PATCH] jffs2:freely allocate memory when parameters are invalid

2019-09-20 Thread Hou Tao
Hi Richard, On 2019/9/20 22:38, Richard Weinberger wrote: > On Fri, Sep 20, 2019 at 4:14 PM Xiaoming Ni wrote: >> I still think this is easier to understand: >> Free the memory allocated by the current function in the failed branch > > Please note that jffs2 is in "odd fixes only" maintenance m

Re: [PATCH] dt-bindings: net: dwmac: fix 'mac-mode' type

2019-09-20 Thread Jakub Kicinski
On Tue, 17 Sep 2019 13:30:52 +0300, Alexandru Ardelean wrote: > The 'mac-mode' property is similar to 'phy-mode' and 'phy-connection-type', > which are enums of mode strings. > > The 'dwmac' driver supports almost all modes declared in the 'phy-mode' > enum (except for 1 or 2). But in general, the

Re: [RESEND PATCH v2] mm/oom_killer: Add task UID to info message on an oom kill

2019-09-20 Thread Rafael Aquini
On Fri, Sep 20, 2019 at 05:13:40PM -0700, Andrew Morton wrote: > On Thu, 13 Jun 2019 10:23:18 +0200 Michal Hocko wrote: > > > On Wed 12-06-19 13:57:53, Joel Savitz wrote: > > > In the event of an oom kill, useful information about the killed > > > process is printed to dmesg. Users, especially sy

[PATCH] riscv: Fix memblock reservation for device tree blob

2019-09-20 Thread Albert Ou
This fixes an error with how the FDT blob is reserved in memblock. An incorrect physical address calculation exposed the FDT header to unintended corruption, which typically manifested with of_fdt_raw_init() faulting during late boot after fdt_totalsize() returned a wrong value. Systems with smalle

Re: pci: endpoint test BUG

2019-09-20 Thread Randy Dunlap
On 9/20/19 5:38 PM, Hillf Danton wrote: >>Kishon, Hillf, can you turn it into a patch and send it asap please ? > >   > > What was sent a couple of days before, > >   > > To: Bjorn Helgaas > > Cc: linux-pci , LKML > > Subject: [PATCH] PCI: endpoint: Fix uaf on unregistering driver > > ...

Re: [patch 3/6] posix-cpu-timers: Restrict timer_create() permissions

2019-09-20 Thread Frederic Weisbecker
On Thu, Sep 05, 2019 at 02:03:42PM +0200, Thomas Gleixner wrote: > Right now there is no restriction at all to attach a Posix CPU timer to any > process in the system. Per thread CPU timers are limited to be created by > threads in the same thread group. > > Timers can be used to observe activity

Re: [PATCH 3/3] mm:fix gup_pud_range

2019-09-20 Thread Qiujun Huang
>On 9/20/19 8:51 AM, Qiujun Huang wrote: >> __get_user_pages_fast try to walk the page table but the >> hugepage pte is replace by hwpoison swap entry by mca path. > >I expect you mean MCE (machine check exception), rather than mca? Yeah > >> ... >> [15798.177437] mce: Uncorrected hardware memory e

Re: [RFC v2] zswap: Add CONFIG_ZSWAP_IO_SWITCH to handle swap IO issue

2019-09-20 Thread Randy Dunlap
On 9/19/19 11:35 PM, Hui Zhu wrote: > This is the second version of this patch. The previous version is in > https://lkml.org/lkml/2019/9/11/935 > I updated the commit introduction and Kconfig because it is not clear. > Hi, Just a few minor fixes (below): > > Signed-off-by: Hui Zhu > --- > i

Re: [PATCH v9 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"

2019-09-20 Thread Thierry Reding
On Fri, Sep 20, 2019 at 06:49:07AM +0800, Sam Shih wrote: > From: Ryder Lee > > This adds a property "num-pwms" in example so that we could > specify the number of PWM channels via device tree. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > Reviewed-by: Matthias Brugger > Acked-by:

Re: [RESEND PATCH v2] mm/oom_killer: Add task UID to info message on an oom kill

2019-09-20 Thread Andrew Morton
On Thu, 13 Jun 2019 10:23:18 +0200 Michal Hocko wrote: > On Wed 12-06-19 13:57:53, Joel Savitz wrote: > > In the event of an oom kill, useful information about the killed > > process is printed to dmesg. Users, especially system administrators, > > will find it useful to immediately see the UID o

[RFC]Sample module for Kernel access to Ftrace instances.

2019-09-20 Thread Divya Indi
[PATCH] tracing: Sample module to demonstrate kernel access to Ftrace Hi, This patch is for a sample module to demonstrate the use of APIs that were introduced/exported in order to access Ftrace instances from within the kernel. Please Note: This module is dependent on - - commit: f45d122 trac

[PATCH] tracing: Sample module to demonstrate kernel access to Ftrace instances.

2019-09-20 Thread Divya Indi
This is a sample module to demostrate the use of the newly introduced and exported APIs to access Ftrace instances from within the kernel. Newly introduced APIs used here - 1. Create a new trace array if it does not exist. struct trace_array *trace_array_create(const char *name) 2. Destroy/Remov

[GIT PULL] libnvdimm for 5.4

2019-09-20 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-5.4 ...to receive some reworks to better support nvdimms on powerpc and an nvdimm security interface update. There was some last minute build breakage detected in -next so I've left a pat

Re: [RFC patch 03/15] x86/entry: Use generic syscall entry function

2019-09-20 Thread Andy Lutomirski
On Thu, Sep 19, 2019 at 8:09 AM Thomas Gleixner wrote: > > Replace the syscall entry work handling with the generic version, Provide > the necessary helper inlines to handle the real architecture specific > parts, e.g. audit and seccomp invocations. > - if (work & (_TIF_SYSCALL_TRACE | _TIF

Re: [RFC patch 02/15] x86/entry: Remove _TIF_NOHZ from _TIF_WORK_SYSCALL_ENTRY

2019-09-20 Thread Andy Lutomirski
On Thu, Sep 19, 2019 at 8:09 AM Thomas Gleixner wrote: > > Evaluating _TIF_NOHZ to decide whether to use the slow syscall entry path > is not only pointless, it's actually counterproductive: > > 1) Context tracking code is invoked unconditionally before that flag is > evaluated. > > 2) If th

Re: [RFC patch 01/15] entry: Provide generic syscall entry functionality

2019-09-20 Thread Andy Lutomirski
On Thu, Sep 19, 2019 at 8:09 AM Thomas Gleixner wrote: > > On syscall entry certain work needs to be done conditionally like tracing, > seccomp etc. This code is duplicated in all architectures. > > Provide a generic version. > > Signed-off-by: Thomas Gleixner > --- > arch/Kconfig

Re: [PATCH v2 0/4] debug_pagealloc improvements through page_owner

2019-09-20 Thread Andrew Morton
On Thu, 22 Aug 2019 16:03:44 -0700 Andrew Morton wrote: > On Tue, 20 Aug 2019 15:18:24 +0200 Vlastimil Babka wrote: > > > v2: also fix THP split handling (added Patch 1) per Kirill > > > > The debug_pagealloc functionality serves a similar purpose on the page > > allocator level that slub_deb

Re: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2()

2019-09-20 Thread Andy Lutomirski
On Fri, Sep 20, 2019 at 3:44 PM Linus Torvalds wrote: > > On Fri, Sep 20, 2019 at 1:51 PM Andy Lutomirski wrote: > > > > To be clear, when I say "blocking", I mean "blocks until we're ready, > > but we make sure we're ready in a moderately timely manner". > > .. an I want a pony. > > The problem

Re: [PATCH V3 4/4] ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8

2019-09-20 Thread Nicolin Chen
Hello Shengjiu, One issue for error-out and some nit-pickings inline. Thanks. On Thu, Sep 19, 2019 at 08:11:42PM +0800, Shengjiu Wang wrote: > There is error "aplay: pcm_write:2023: write error: Input/output error" > on i.MX8QM/i.MX8QXP platform for S24_3LE format. > > In i.MX8QM/i.MX8QXP, the D

Re: [PATCH -next] mm/kmemleak: record the current memory pool size

2019-09-20 Thread Andrew Morton
On Thu, 15 Aug 2019 11:02:16 +0100 Catalin Marinas wrote: > On Wed, Aug 14, 2019 at 03:07:11PM -0400, Qian Cai wrote: > > The only way to obtain the current memory pool size for a running kernel > > is to check back the kernel config file which is inconvenient. Record it > > in the kernel messag

[PATCH v16 05/19] kunit: test: add the concept of expectations

2019-09-20 Thread Brendan Higgins
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephen Boyd --- include/kunit/test.h | 836 +++ li

[PATCH v16 01/19] kunit: test: add KUnit test runner core

2019-09-20 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call the

[PATCH v16 02/19] kunit: test: add test resource management API

2019-09-20 Thread Brendan Higgins
Create a common API for test managed resources like memory and test objects. A lot of times a test will want to set up infrastructure to be used in test cases; this could be anything from just wanting to allocate some memory to setting up a driver stack; this defines facilities for creating "test r

Re: [PATCH v4 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-09-20 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-20 15:14:58) > On Fri, Sep 20, 2019 at 3:09 PM Stephen Boyd wrote: > > > > Ok so the plan is to change DT and then change it back? That sounds > > quite bad so please fix the thermal core to not care about this before > > applying these changes so that we don't churn

[RFC] microoptimizing hlist_add_{before,behind}

2019-09-20 Thread Al Viro
Neither hlist_add_before() nor hlist_add_behind() should ever be called with both arguments pointing to the same hlist_node. However, gcc doesn't know that, so it ends up with pointless reloads. AFAICS, the following generates better code, is obviously equivalent in case when arguments are

Re: [PATCH v2] mm: implement write-behind policy for sequential file writes

2019-09-20 Thread Linus Torvalds
On Fri, Sep 20, 2019 at 4:05 PM Linus Torvalds wrote: > > > Now, I hear you say "those are so small these days that it doesn't > matter". And maybe you're right. But particularly for slow media, > triggering good streaming write behavior has been a problem in the > past. Which reminds me: the wri

Re: [PATCH v2] mm: implement write-behind policy for sequential file writes

2019-09-20 Thread Linus Torvalds
On Fri, Sep 20, 2019 at 12:35 AM Konstantin Khlebnikov wrote: > > This patch implements write-behind policy which tracks sequential writes > and starts background writeback when file have enough dirty pages. Apart from a spelling error ("contigious"), my only reaction is that I've wanted this for

Re: [PATCH] perf record: fix priv level with branch sampling for paranoid=2

2019-09-20 Thread Stephane Eranian
On Fri, Sep 20, 2019 at 12:12 PM Jiri Olsa wrote: > > On Tue, Sep 03, 2019 at 11:26:03PM -0700, Stephane Eranian wrote: > > Now that the default perf_events paranoid level is set to 2, a regular user > > cannot monitor kernel level activity anymore. As such, with the following > > cmdline: > > > >

[PATCH v2] perf record: fix priv level with branch sampling for paranoid=2

2019-09-20 Thread Stephane Eranian
Now that the default perf_events paranoid level is set to 2, a regular user cannot monitor kernel level activity anymore. As such, with the following cmdline: $ perf record -e cycles date The perf tool first tries cycles:uk but then falls back to cycles:u as can be seen in the perf report --heade

Re: [PATCH v2 4/4] task: RCUify the assignment of rq->curr

2019-09-20 Thread Frederic Weisbecker
On Sat, Sep 14, 2019 at 07:35:02AM -0500, Eric W. Biederman wrote: > > The current task on the runqueue is currently read with rcu_dereference(). > > To obtain ordinary rcu semantics for an rcu_dereference of rq->curr it needs > to be paird with rcu_assign_pointer of rq->curr. Which provides the

Verify ACK packet in handshake in kernel module (access TCP state table)

2019-09-20 Thread Swarm
First time emailing to this mailing list so please let me know if I made a mistake in how I sent it. I'm trying to receive a notification from the kernel once it verifies an ACK packet in a handshake. Problem is, there is no API or kernel resource I've seen that supports this feature for both s

Re: [GIT PULL] VFIO updates for v5.4-rc1

2019-09-20 Thread pr-tracker-bot
The pull request you sent on Fri, 20 Sep 2019 15:12:26 -0600: > git://github.com/awilliam/linux-vfio.git tags/vfio-v5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1ddd00276fd5fbd14dd5e366d8777dcd5f2d1b65 Thank you! -- Deet-doot-dot, I am a bot. https://korg.

Re: [GIT PULL] clk changes for the merge window

2019-09-20 Thread pr-tracker-bot
The pull request you sent on Fri, 20 Sep 2019 14:40:42 -0700: > https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git > tags/clk-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a703d279c57e1bfe2b6536c3a17c1c498b416d24 Thank you! -- Deet-doot-dot, I

Re: [PATCH 3.16 000/132] 3.16.74-rc1 review

2019-09-20 Thread Guenter Roeck
On Fri, Sep 20, 2019 at 10:16:49PM +0100, Ben Hutchings wrote: > On Fri, 2019-09-20 at 13:04 -0700, Guenter Roeck wrote: > > On Fri, Sep 20, 2019 at 03:23:34PM +0100, Ben Hutchings wrote: > > > This is the start of the stable review cycle for the 3.16.74 release. > > > There are 132 patches in this

[PATCH] tracing: prevent memory leak

2019-09-20 Thread Navid Emamdoost
In predicate_parse, there is an error path that is not going to out_free instead it returns directly which leads to memory leak. Signed-off-by: Navid Emamdoost --- kernel/trace/trace_events_filter.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_even

Re: [PATCH 6/7] pwm: jz4740: Make PWM start with the active part

2019-09-20 Thread Thierry Reding
On Mon, Aug 12, 2019 at 11:58:53PM +0200, Uwe Kleine-König wrote: > On Mon, Aug 12, 2019 at 10:50:01PM +0200, Paul Cercueil wrote: > > > > > > Le lun. 12 août 2019 à 7:55, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= > > a écrit : > > > On Fri, Aug 09, 2019 at 07:33:24PM +0200, Paul Cercueil wrote: > > >

Re: [PATCH V3 3/4] ASoC: pcm_dmaengine: Extract snd_dmaengine_pcm_refine_runtime_hwparams

2019-09-20 Thread Nicolin Chen
On Thu, Sep 19, 2019 at 08:11:41PM +0800, Shengjiu Wang wrote: > When set the runtime hardware parameters, we may need to query > the capability of DMA to complete the parameters. > > This patch is to Extract this operation from > dmaengine_pcm_set_runtime_hwparams function to a separate function

Re: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2()

2019-09-20 Thread Linus Torvalds
On Fri, Sep 20, 2019 at 1:51 PM Andy Lutomirski wrote: > > To be clear, when I say "blocking", I mean "blocks until we're ready, > but we make sure we're ready in a moderately timely manner". .. an I want a pony. The problem is that you start from an assumption that we simply can't seem to do.

RE: [RFC] buildtar: add case for riscv architecture

2019-09-20 Thread Palmer Dabbelt
On Tue, 17 Sep 2019 02:35:10 PDT (-0700), m...@aurabindo.in wrote: ‐‐‐ Original Message ‐‐‐ On Sunday, September 15, 2019 12:57 AM, Palmer Dabbelt wrote: On Sat, 14 Sep 2019 06:05:59 PDT (-0700), Anup Patel wrote: > > -Original Message- > > From: linux-kernel-ow...@vger.kerne

[PATCH v5 0/1] intel_cht_int33fe: Split code to USB Micro-B and Type-C variants

2019-09-20 Thread Yauhen Kharuzhy
Patch to support INT33FE ACPI pseudo-device on hardware with USB Micro-B connector. v5: - Spelling corrections in Kconfig, commit description and comments; - Micro-B code: Remove warning at fuel gauge registration failure and use PTR_ERR_OR_ZERO() for simplicity. v4: - Micro-B variant: Don't pr

[PATCH v5 1/1] platform/x86/intel_cht_int33fe: Split code to USB Micro-B and Type-C variants

2019-09-20 Thread Yauhen Kharuzhy
Existing intel_cht_int33fe ACPI pseudo-device driver assumes that hardware has Type-C connector and register related devices described as I2C connections in the _CRS resource. There is at least one hardware (Lenovo Yoga Book YB1-91L/F) with Micro-B USB connector exists. It has INT33FE device in th

Re: [PATCH RFC 02/14] drivers: irqchip: pdc: Do not toggle IRQ_ENABLE during mask/unmask

2019-09-20 Thread Lina Iyer
On Fri, Sep 20 2019 at 16:22 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2019-09-11 09:15:57) On Thu, Sep 05 2019 at 18:39 -0600, Stephen Boyd wrote: >Quoting Lina Iyer (2019-08-29 11:11:51) >> When an interrupt is to be serviced, the convention is to mask the >> interrupt at the chip and unma

Re: [PATCH RFC 02/14] drivers: irqchip: pdc: Do not toggle IRQ_ENABLE during mask/unmask

2019-09-20 Thread Stephen Boyd
Quoting Lina Iyer (2019-09-11 09:15:57) > On Thu, Sep 05 2019 at 18:39 -0600, Stephen Boyd wrote: > >Quoting Lina Iyer (2019-08-29 11:11:51) > >> When an interrupt is to be serviced, the convention is to mask the > >> interrupt at the chip and unmask after servicing the interrupt. Enabling > >> and

Re: [PATCH RFC 05/14] dt-bindings/interrupt-controller: pdc: add SPI config register

2019-09-20 Thread Stephen Boyd
Quoting Lina Iyer (2019-09-17 14:50:20) > On Fri, Sep 13 2019 at 13:53 -0600, Lina Iyer wrote: > >On Thu, Sep 05 2019 at 18:03 -0600, Stephen Boyd wrote: > >>Quoting Lina Iyer (2019-09-03 10:07:22) > >>>On Mon, Sep 02 2019 at 07:58 -0600, Marc Zyngier wrote: > On 02/09/2019 14:38, Rob Herring w

Re: [PATCH v4 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
On Fri, Sep 20, 2019 at 3:09 PM Stephen Boyd wrote: > > Quoting Amit Kucheria (2019-09-20 15:07:25) > > On Fri, Sep 20, 2019 at 3:02 PM Stephen Boyd wrote: > > > > > > Quoting Amit Kucheria (2019-09-20 14:52:24) > > > > Register upper-lower interrupts for each of the two tsens controllers. > > >

Re: [PATCH bpf] libbpf: fix version identification on busybox

2019-09-20 Thread Ivan Khoronzhuk
On Fri, Sep 20, 2019 at 02:51:14PM -0700, Andrii Nakryiko wrote: On Fri, Sep 20, 2019 at 12:19 PM Ivan Khoronzhuk wrote: On Fri, Sep 20, 2019 at 09:34:51PM +0300, Ivan Khoronzhuk wrote: >On Fri, Sep 20, 2019 at 09:41:54AM -0700, Andrii Nakryiko wrote: >>On Fri, Sep 20, 2019 at 1:22 AM Ivan Kho

Re: [0/2] net: dsa: vsc73xx: Adjustments for vsc73xx_platform_probe()

2019-09-20 Thread Jakub Kicinski
On Fri, 20 Sep 2019 09:36:57 -0700, Florian Fainelli wrote: > On 9/20/19 8:30 AM, Markus Elfring wrote: > >> netdev is closed at the moment for patch. > > > > I wonder about this information. > > This is covered here: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tre

Re: [PATCH v4 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
On Fri, Sep 20, 2019 at 3:07 PM Amit Kucheria wrote: > > On Fri, Sep 20, 2019 at 3:02 PM Stephen Boyd wrote: > > > > Quoting Amit Kucheria (2019-09-20 14:52:24) > > > Register upper-lower interrupts for each of the two tsens controllers. > > > > > > Signed-off-by: Amit Kucheria > > > --- > > >

Re: [PATCH v4 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-09-20 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-20 15:07:25) > On Fri, Sep 20, 2019 at 3:02 PM Stephen Boyd wrote: > > > > Quoting Amit Kucheria (2019-09-20 14:52:24) > > > Register upper-lower interrupts for each of the two tsens controllers. > > > > > > Signed-off-by: Amit Kucheria > > > --- > > > arch/arm64/b

Re: [PATCH v4 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
On Fri, Sep 20, 2019 at 3:02 PM Stephen Boyd wrote: > > Quoting Amit Kucheria (2019-09-20 14:52:24) > > Register upper-lower interrupts for each of the two tsens controllers. > > > > Signed-off-by: Amit Kucheria > > --- > > arch/arm64/boot/dts/qcom/msm8996.dtsi | 60 ++- >

Re: [PATCH v4 15/15] drivers: thermal: tsens: Add interrupt support

2019-09-20 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-20 14:52:30) > Depending on the IP version, TSENS supports upper, lower and critical > threshold interrupts. We only add support for upper and lower threshold > interrupts for now. > > TSENSv2 has an irq [status|clear|mask] bit tuple for each sensor while > earlier v

Re: [PATCH v4 14/15] drivers: thermal: tsens: Create function to return sign-extended temperature

2019-09-20 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-20 14:52:29) > Hide the details of how to convert values read from TSENS HW to mCelsius > behind a function. All versions of the IP can be supported as a result. > > Signed-off-by: Amit Kucheria > --- Reviewed-by: Stephen Boyd Just one nit below. > drivers/ther

Re: [PATCH v4 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-09-20 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-20 14:52:24) > Register upper-lower interrupts for each of the two tsens controllers. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 60 ++- > 1 file changed, 32 insertions(+), 28 deletions(-) > > diff --gi

[RFC][PATCH RT 5/7] revert-block

2019-09-20 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Revert swork version of: block: blk-mq: move blk_queue_usage_counter_release() into process context In order to switch to upstream, we need to revert the swork code. Signed-off-by: Steven Rostedt (VMware) --- block/blk-core.c | 14 +- include

[RFC][PATCH RT 3/7] revert-thermal

2019-09-20 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Revert: thermal: Defer thermal wakups to threads Signed-off-by: Steven Rostedt (VMware) --- drivers/thermal/x86_pkg_temp_thermal.c | 52 ++ 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/drivers/thermal/x86_pkg_temp_therma

[RFC][PATCH RT 0/7] Revert of simple work, and backport workqueue rework

2019-09-20 Thread Steven Rostedt
To be able to backport some of the fixes done in upstream RT, I need to revert the simple work code and incorporate the work queue rework that was done in rt-devel. I originally thought this crashed under stress test (as I reported in the stable meeting), but found that the system booted a differen

[RFC][PATCH RT 7/7] workqueue: rework

2019-09-20 Thread Steven Rostedt
From: Sebastian Andrzej Siewior [ Upstream commit d15a862f24df983458533aebd6fa207ecdd1095a ] This is an all-in change of the workqueue rework. The worker_pool.lock is made to raw_spinlock_t. With this change we can schedule workitems from preempt-disable sections and sections with disabled inter

[RFC][PATCH RT 1/7] revert-aio

2019-09-20 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" revert: fs/aio: simple simple work Signed-off-by: Steven Rostedt (VMware) --- fs/aio.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index 16dcf8521c2c..911e23087dfb 100644 --- a/fs/aio.c +++ b/fs/aio.c

[RFC][PATCH RT 6/7] block: blk-mq: move blk_queue_usage_counter_release() into process context

2019-09-20 Thread Steven Rostedt
From: Sebastian Andrzej Siewior [ Upstream commit 61c928ecf4fe200bda9b49a0813b5ba0f43995b5 ] | BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:914 | in_atomic(): 1, irqs_disabled(): 0, pid: 255, name: kworker/u257:6 | 5 locks held by kworker/u257:6/255: | #0: ("

[RFC][PATCH RT 2/7] fs/aio: simple simple work

2019-09-20 Thread Steven Rostedt
From: Sebastian Andrzej Siewior [ Upstream commit 1a142116f6435ef070ecebb66d2d599507c10601 ] |BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:768 |in_atomic(): 1, irqs_disabled(): 0, pid: 26, name: rcuos/2 |2 locks held by rcuos/2/26: | #0: (rcu_callback){.+.+..}

[RFC][PATCH RT 4/7] thermal: Defer thermal wakups to threads

2019-09-20 Thread Steven Rostedt
From: Daniel Wagner [ Upstream commit ad2408dc248fe58536eef5b2b5734d8f9d3a280b ] On RT the spin lock in pkg_temp_thermal_platfrom_thermal_notify will call schedule while we run in irq context. [] dump_stack+0x4e/0x8f [] __schedule_bug+0xa6/0xb4 [] __schedule+0x5b4/0x700 [] schedule+0x2a/0x90 []

[PATCH v4 06/15] arm64: dts: msm8916: thermal: Fixup HW ids for cpu sensors

2019-09-20 Thread Amit Kucheria
msm8916 uses sensors 0, 1, 2, 4 and 5. Sensor 3 is NOT used. Fixup the device tree so that the correct sensor ID is used and as a result we can actually check the temperature for the cpu2_3 sensor. Signed-off-by: Amit Kucheria Reviewed-by: Daniel Lezcano Reviewed-by: Stephen Boyd --- arch/arm6

  1   2   3   4   5   6   7   8   9   >