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 >

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

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

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

[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

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

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

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

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

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

[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 ---

[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

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

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

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

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,

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

[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

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

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 > --- >

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

[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

[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.

[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

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 |

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

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

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

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

[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 +++

[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

[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

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

[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

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

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

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

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

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.

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,

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

[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

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:

[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

[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

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

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 > >>

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

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

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: > >

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 > > > --- > > >

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

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. >

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

[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 +-

[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

[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

[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

[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:

[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 ---

[PATCH v4 07/15] dt-bindings: thermal: tsens: Convert over to a yaml schema

2019-09-20 Thread Amit Kucheria
Older IP only supports the 'uplow' interrupt, but newer IP supports 'uplow' and 'critical' interrupts. Document interrupt support in the tsens driver by converting over to a YAML schema. Suggested-by: Stephen Boyd Signed-off-by: Amit Kucheria --- .../bindings/thermal/qcom-tsens.txt |

[PATCH v4 04/15] drivers: thermal: tsens: Add debugfs support

2019-09-20 Thread Amit Kucheria
Dump some basic version info and sensor details into debugfs. Example from qcs404 below: --(/sys/kernel/debug) $ ls tsens/ 4a9000.thermal-sensor version --(/sys/kernel/debug) $ cat tsens/version 1.4.0 --(/sys/kernel/debug) $ cat tsens/4a9000.thermal-sensor/sensors max: 11 num: 10 id

[PATCH v4 03/15] drivers: thermal: tsens: Add __func__ identifier to debug statements

2019-09-20 Thread Amit Kucheria
Printing the function name when enabling debugging makes logs easier to read. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd Reviewed-by: Daniel Lezcano --- drivers/thermal/qcom/tsens-common.c | 8 drivers/thermal/qcom/tsens.c| 6 +++--- 2 files changed, 7

[PATCH v4 01/15] drivers: thermal: tsens: Get rid of id field in tsens_sensor

2019-09-20 Thread Amit Kucheria
There are two fields - id and hw_id - to track what sensor an action was to performed on. This was because the sensors connected to a TSENS IP might not be contiguous i.e. 1, 2, 4, 5 with 3 being skipped. This causes confusion in the code which uses hw_id sometimes and id other times

[PATCH v4 02/15] drivers: thermal: tsens: Simplify code flow in tsens_probe

2019-09-20 Thread Amit Kucheria
Move platform_set_drvdata up to avoid an extra 'if (ret)' check after the call to tsens_register. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd Reviewed-by: Daniel Lezcano --- drivers/thermal/qcom/tsens.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH v4 00/15] thermal: qcom: tsens: Add interrupt support

2019-09-20 Thread Amit Kucheria
Changes since v3: - Fix up the YAML definitions based on Rob's review Changes since v2: - Addressed Stephen's review comment - Moved the dt-bindings to yaml (This throws up some new warnings in various QCOM devicetrees. I'll send out a separate series to fix them up) - Collected reviews and acks

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

2019-09-20 Thread Amit Kucheria
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 --- drivers/thermal/qcom/tsens-common.c | 50 + 1 file changed, 36 insertions(+), 14

[PATCH v4 13/15] arm64: dts: msm8916: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
Register upper-lower interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi

[PATCH v4 11/15] arm64: dts: qcs404: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
Register upper-lower interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 42 +++- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi

[PATCH v4 08/15] arm64: dts: sdm845: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 88 +++- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git

[PATCH v4 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor

2019-09-20 Thread Amit Kucheria
msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 90

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

2019-09-20 Thread Amit Kucheria
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 --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi

[PATCH v4 10/15] arm64: dts: msm8998: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 82 ++- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi

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

2019-09-20 Thread Amit Kucheria
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 versions only have a single bit per sensor to denote

[PATCH v4 12/15] arm: dts: msm8974: thermal: Add interrupt support

2019-09-20 Thread Amit Kucheria
Register upper-lower interrupt for the tsens controller. Signed-off-by: Amit Kucheria Tested-by: Brian Masney --- arch/arm/boot/dts/qcom-msm8974.dtsi | 36 +++-- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi

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

2019-09-20 Thread Andrii Nakryiko
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 Khoronzhuk > >> wrote: > >>> > >>>On Thu, Sep 19, 2019 at

Re: [PATCH 1/2] mmc: sdhci: Let drivers define their DMA mask

2019-09-20 Thread Nicolin Chen
On Fri, Sep 20, 2019 at 04:53:16PM +0200, Thierry Reding wrote: > From: Adrian Hunter > > Add host operation ->set_dma_mask() so that drivers can define their own > DMA masks. > > Signed-off-by: Adrian Hunter > Signed-off-by: Thierry Reding Tested-by: Nicolin Chen Ran a boot test with both

RE: [PATCH] perf map: fix overlapped map handling

2019-09-20 Thread Steve MacLean
>> after->start = map->end; >> +after->pgoff = pos->map_ip(pos, map->end); > > So is this equivalent to what __split_vma() does in the kernel, i.e.: > >if (new_below) >new->vm_end = addr; >else { >

Re: [PATCH v3 07/15] dt-bindings: thermal: tsens: Convert over to a yaml schema

2019-09-20 Thread Amit Kucheria
On Tue, Sep 17, 2019 at 12:06 PM Rob Herring wrote: > > On Wed, Sep 11, 2019 at 12:46:24PM +0530, Amit Kucheria wrote: > > Document interrupt support in the tsens driver by converting over to a > > YAML schema. > > > > Suggested-by: Stephen Boyd > > Signed-off-by: Amit Kucheria > > --- > >

  1   2   3   4   5   6   7   8   9   10   >