[PATCH v3 0/2] mfd: Add ENE KB3930 Embedded Controller driver

2020-05-20 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. It's the third version of the driver for the ENE KB3930 Embedded Controller. This version attempts to address the issues pointed out in review of v2. A more detailed change log it in the patch description of patch 2/2. Thanks,

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Joel Fernandes
On Wed, May 20, 2020 at 08:28:00PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-05-20 13:42:59 [-0400], Joel Fernandes wrote: > > Hi Sebastian, > Hi Joel, > > > For pointer stability, can we just use get_local_ptr() and put_local_ptr() > > instead of adding an extra lock? This keeps the

Re: [PATCH ghak25 v6] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-20 Thread Richard Guy Briggs
On 2020-05-20 14:51, Steve Grubb wrote: > On Wednesday, May 20, 2020 2:40:45 PM EDT Paul Moore wrote: > > On Wed, May 20, 2020 at 12:55 PM Richard Guy Briggs wrote: > > > On 2020-05-20 12:51, Richard Guy Briggs wrote: > > > > Some table unregister actions seem to be initiated by the kernel to > >

[PATCH 1/1] thunderbolt: add trivial .shutdown

2020-05-20 Thread Maxim Levitsky
On my machine, a kexec with this driver loaded in the old kernel causes a very long delay on boot in the kexec'ed kernel, most likely due to unclean shutdown prior to that. Unloading thunderbolt driver prior to kexec allows kexec to work as fast as regular kernel boot, as well as adding this

Re: [PATCH] wlcore: fix runtime pm imbalance in wl1271_tx_work

2020-05-20 Thread Tony Lindgren
* Dinghao Liu [691231 23:00]: > There are two error handling paths in this functon. When > wlcore_tx_work_locked() returns an error code, we should > decrease the runtime PM usage counter the same way as the > error handling path beginning from pm_runtime_get_sync(). Acked-by: Tony Lindgren

[PATCH 0/1] RFC: Make thunderbolt NHI driver work with kexec [RESEND]

2020-05-20 Thread Maxim Levitsky
While trying to use kexec on my desktop, which has Titan Ridge Thunderbolt add-on card, I noticed that after a kexec, system hangs for about a minute in the 'wating for udev devices to settle' phase of the boot. I found out that if I unload the thunderbolt driver prior to the kexec, then it works

Re: [PATCH ghak25 v6] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-20 Thread Steve Grubb
On Wednesday, May 20, 2020 2:40:45 PM EDT Paul Moore wrote: > On Wed, May 20, 2020 at 12:55 PM Richard Guy Briggs wrote: > > On 2020-05-20 12:51, Richard Guy Briggs wrote: > > > Some table unregister actions seem to be initiated by the kernel to > > > garbage collect unused tables that are not

Re: [PATCH] wlcore: fix runtime pm imbalance in wlcore_regdomain_config

2020-05-20 Thread Tony Lindgren
* Dinghao Liu [200520 12:47]: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. Acked-by: Tony Lindgren

Re: [PATCH v8 09/10] dt-bindings: interconnect: Add interconnect-tags bindings

2020-05-20 Thread Sibi Sankar
On 2020-05-20 01:27, Saravana Kannan wrote: On Tue, May 19, 2020 at 11:58 AM Rob Herring wrote: On Tue, May 12, 2020 at 03:53:26PM +0300, Georgi Djakov wrote: > From: Sibi Sankar > > Add interconnect-tags bindings to enable passing of optional > tag information to the interconnect framework.

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Uladzislau Rezki
> > I actually found it in RT 4.4 kernel, I thought this was also on newer RT > kernels as well (is that not true anymore?). But yes it was exactly what > Peter said. > I see it also in 5.6.4 linut-rt-devel: #ifdef CONFIG_PREEMPT_RT ... # define get_local_ptr(var) ({ \ migrate_disable(); \

Re: [PATCH] wlcore: fix runtime pm imbalance in __wl1271_op_remove_interface

2020-05-20 Thread Tony Lindgren
* Dinghao Liu [200520 13:09]: > When wl12xx_cmd_role_disable() returns an error code, > a pairing runtime PM usage counter decrement is needed to > keep the counter balanced. Acked-by: Tony Lindgren

Re: [PATCH] wlcore: fix runtime pm imbalance in wl1271_op_suspend

2020-05-20 Thread Tony Lindgren
* Dinghao Liu [200520 12:58]: > When wlcore_hw_interrupt_notify() returns an error code, > a pairing runtime PM usage counter decrement is needed to > keep the counter balanced. We should probably keep the warning though, nothing will get shown for wl1271_configure_suspend_ap() errors.

Re: [RESEND PATCH v7 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-05-20 Thread Vaibhav Jain
Thanks for reviewing this patch Ira. My responses below: Ira Weiny writes: > On Wed, May 20, 2020 at 12:30:57AM +0530, Vaibhav Jain wrote: >> Introduce support for Papr nvDimm Specific Methods (PDSM) in papr_scm >> modules and add the command family to the white list of NVDIMM command >>

Re: [PATCH v30 04/20] x86/sgx: Add SGX microarchitectural data structures

2020-05-20 Thread Borislav Petkov
On Fri, May 15, 2020 at 03:43:54AM +0300, Jarkko Sakkinen wrote: > +/** > + * struct sgx_sigstruct_header - defines author of the enclave > + * @header1: constant byte string > + * @vendor: must be either 0x or 0x8086 Out of pure curiosity: what is that about? Nothing in

[PATCH ghak25 v6a] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-20 Thread Richard Guy Briggs
Some table unregister actions seem to be initiated by the kernel to garbage collect unused tables that are not initiated by any userspace actions. It was found to be necessary to add the subject credentials to cover this case to reveal the source of these actions. A sample record: The uid,

Re: [RFC PATCH] tick/sched: update full_nohz status after SCHED dep is cleared

2020-05-20 Thread Juri Lelli
On 20/05/20 19:02, Frederic Weisbecker wrote: > On Wed, May 20, 2020 at 06:49:25PM +0200, Juri Lelli wrote: > > On 20/05/20 18:24, Frederic Weisbecker wrote: > > > > Hummm, so I enabled 'timer:*', anything else you think I should be > > looking at? > > Are you sure you also enabled

Re: [PATCH 1/1] thunderbolt: add trivial .shutdown

2020-05-20 Thread Maxim Levitsky
On Wed, 2020-05-20 at 21:12 +0300, Maxim Levitsky wrote: > On my machine, a kexec with this driver loaded in the old kernel > causes a very long delay on boot in the kexec'ed kernel, > most likely due to unclean shutdown prior to that. > > Unloading thunderbolt driver prior to kexec allows kexec

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Joel Fernandes
On Wed, May 20, 2020 at 08:35:29PM +0200, Peter Zijlstra wrote: > On Wed, May 20, 2020 at 08:28:00PM +0200, Sebastian Andrzej Siewior wrote: > > On 2020-05-20 13:42:59 [-0400], Joel Fernandes wrote: > > > Hi Sebastian, > > Hi Joel, > > > > > For pointer stability, can we just use get_local_ptr()

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Paul E. McKenney
On Wed, May 20, 2020 at 02:06:08PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-05-20 12:24:07 [+0200], Peter Zijlstra wrote: > > On Tue, May 19, 2020 at 10:19:07PM +0200, Sebastian Andrzej Siewior wrote: > > > > > diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c > > > index

Re: [PATCH v3 2/7] bus: mhi: core: Introduce independent voting mechanism

2020-05-20 Thread bbhatt
On 2020-05-20 09:54, Jeffrey Hugo wrote: On 5/18/2020 2:03 PM, Bhaumik Bhatt wrote: Allow independent votes from clients such that they can choose to vote for either the device or the bus or both. This helps in cases where the device supports autonomous low power mode wherein it can move to

Re: [PATCH] dt-bindings: input: touchscreen: edt-ft5x06: change reg property

2020-05-20 Thread Heiko Stübner
Hi Dmitry, Am Mittwoch, 20. Mai 2020, 19:13:24 CEST schrieb Dmitry Torokhov: > Hi Johan, > > On Wed, May 20, 2020 at 09:33:27AM +0200, Johan Jonker wrote: > > A test with the command below gives this error: > > > > arch/arm/boot/dts/rk3188-bqedison2qc.dt.yaml: > > touchscreen@3e: reg:0:0: 56

[PATCH] 9p/xen: increase XEN_9PFS_RING_ORDER

2020-05-20 Thread Stefano Stabellini
From: Stefano Stabellini Increase XEN_9PFS_RING_ORDER to 9 for performance reason. Order 9 is the max allowed by the protocol. We can't assume that all backends will support order 9. The xenstore property max-ring-page-order specifies the max order supported by the backend. We'll use

Re: [PATCH v2 18/20] mips: csrc-r4k: Decrease r4k-clocksource rating if CPU_FREQ enabled

2020-05-20 Thread Thomas Bogendoerfer
On Wed, May 20, 2020 at 02:59:26PM +0300, Serge Semin wrote: > I think there is a misunderstanding here. In this patch I am not enabling you are right, I've missed the fact, that this also needs to be enabled in TLB entries. Strange that MIPS added the enable bit while R10k simply do uncached

Re: [PATCH ghak25 v6] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-20 Thread Paul Moore
On Wed, May 20, 2020 at 12:55 PM Richard Guy Briggs wrote: > On 2020-05-20 12:51, Richard Guy Briggs wrote: > > Some table unregister actions seem to be initiated by the kernel to > > garbage collect unused tables that are not initiated by any userspace > > actions. It was found to be necessary

Re: [PATCH v2 18/20] mips: csrc-r4k: Decrease r4k-clocksource rating if CPU_FREQ enabled

2020-05-20 Thread Thomas Bogendoerfer
On Wed, May 20, 2020 at 04:48:26PM +0300, Serge Semin wrote: > On Wed, May 20, 2020 at 03:38:27PM +0200, Thomas Bogendoerfer wrote: > > On Wed, May 20, 2020 at 03:12:01PM +0300, Serge Semin wrote: > > > Since you don't like the way I initially fixed it, suppose there we don't > > > have > > >

Re: [PATCH v2] KVM: PPC: Book3S HV: relax check on H_SVM_INIT_ABORT

2020-05-20 Thread Greg Kurz
On Wed, 20 May 2020 19:43:08 +0200 Laurent Dufour wrote: > The commit 8c47b6ff29e3 ("KVM: PPC: Book3S HV: Check caller of H_SVM_* > Hcalls") added checks of secure bit of SRR1 to filter out the Hcall > reserved to the Ultravisor. > > However, the Hcall H_SVM_INIT_ABORT is made by the Ultravisor

Re: [RFC][PATCH 01/13] sched/deadline: Impose global limits on sched_attr::sched_period

2020-05-20 Thread Juri Lelli
Hi Peter, On 26/07/19 16:54, Peter Zijlstra wrote: > > Cc: Daniel Bristot de Oliveira > Cc: Luca Abeni > Cc: Juri Lelli > Cc: Dmitry Vyukov > Signed-off-by: Peter Zijlstra (Intel) > --- > include/linux/sched/sysctl.h |3 +++ > kernel/sched/deadline.c | 23 +--

[PATCH] nouveau/hmm: fix migrate zero page to GPU

2020-05-20 Thread Ralph Campbell
When calling OpenCL clEnqueueSVMMigrateMem() on a region of memory that is backed by pte_none() or zero pages, migrate_vma_setup() will fill the source PFN array with an entry indicating the source page is zero. Use this to optimize migration to device private memory by allocating GPU memory and

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Peter Zijlstra
On Wed, May 20, 2020 at 08:28:00PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-05-20 13:42:59 [-0400], Joel Fernandes wrote: > > Hi Sebastian, > Hi Joel, > > > For pointer stability, can we just use get_local_ptr() and put_local_ptr() > > instead of adding an extra lock? This keeps the

Re: [PATCH V6 0/4] x86/resctrl: Enable user to view and select thread throttling mode

2020-05-20 Thread Borislav Petkov
On Wed, May 20, 2020 at 10:32:02AM -0700, Reinette Chatre wrote: > I was told that these enhancements really needed to get into v5.8, > otherwise the OSV intercepts will be much further out. Certainly not of > concern to you and not your problem, I am just answering your question > as an

Re: [PATCH V3 7/8] fs/ext4: Introduce DAX inode flag

2020-05-20 Thread Ira Weiny
On Wed, May 20, 2020 at 04:11:38PM +0200, Jan Kara wrote: > On Tue 19-05-20 22:57:52, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Add a flag to preserve FS_XFLAG_DAX in the ext4 inode. > > > > Set the flag to be user visible and changeable. Set the flag to be > > inherited. Allow

Re: [patch V6 36/37] x86/entry: Move paranoid irq tracing out of ASM code

2020-05-20 Thread Thomas Gleixner
Andy Lutomirski writes: > On Wed, May 20, 2020 at 8:17 AM Thomas Gleixner wrote: >> >> Andy Lutomirski writes: >> >> > On Fri, May 15, 2020 at 5:11 PM Thomas Gleixner wrote: >> > >> > I think something's missing here. With this patch applied, don't we >> > get to exc_debug_kernel() ->

include/linux/libata.h:1366:2: note: in expansion of macro '__ATA_BASE_SHT'

2020-05-20 Thread kbuild test robot
-a005-20200520 (attached as .config) compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3 reproduce: git checkout 6f09eae3b5d974ef845e56690d6bc2b8f2a70acd # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add following tag as appropriate

Re: [patch V6 12/37] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-20 Thread Thomas Gleixner
Andy Lutomirski writes: > So maybe the code can change to: > > if (user_mode(regs)) { > enter_from_user_mode(); > } else { > if (!__rcu_is_watching()) { > /* > * If RCU is not watching then the same careful > * sequence vs. lockdep and

[PATCH v2 0/7] padata: parallelize deferred page init

2020-05-20 Thread Daniel Jordan
Deferred struct page init is a bottleneck in kernel boot--the biggest for us and probably others. Optimizing it maximizes availability for large-memory systems and allows spinning up short-lived VMs as needed without having to leave them running. It also benefits bare metal machines hosting VMs

[PATCH v2 1/7] padata: remove exit routine

2020-05-20 Thread Daniel Jordan
padata_driver_exit() is unnecessary because padata isn't built as a module and doesn't exit. padata's init routine will soon allocate memory, so getting rid of the exit function now avoids pointless code to free it. Signed-off-by: Daniel Jordan --- kernel/padata.c | 6 -- 1 file changed, 6

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Sebastian Andrzej Siewior
On 2020-05-20 13:42:59 [-0400], Joel Fernandes wrote: > Hi Sebastian, Hi Joel, > For pointer stability, can we just use get_local_ptr() and put_local_ptr() > instead of adding an extra lock? This keeps the pointer stable while keeping > the section preemptible on -rt. And we already have a lock

[PATCH v2 5/7] mm: parallelize deferred_init_memmap()

2020-05-20 Thread Daniel Jordan
Deferred struct page init is a significant bottleneck in kernel boot. Optimizing it maximizes availability for large-memory systems and allows spinning up short-lived VMs as needed without having to leave them running. It also benefits bare metal machines hosting VMs that are sensitive to

[PATCH v2 6/7] mm: make deferred init's max threads arch-specific

2020-05-20 Thread Daniel Jordan
Using padata during deferred init has only been tested on x86, so for now limit it to this architecture. If another arch wants this, it can find the max thread limit that's best for it and override deferred_page_init_max_threads(). Signed-off-by: Daniel Jordan --- arch/x86/mm/init_64.c| 12

[PATCH v2 2/7] padata: initialize earlier

2020-05-20 Thread Daniel Jordan
padata will soon initialize the system's struct pages in parallel, so it needs to be ready by page_alloc_init_late(). The error return from padata_driver_init() triggers an initcall warning, so add a warning to padata_init() to avoid silent failure. Signed-off-by: Daniel Jordan ---

[PATCH v2 4/7] padata: add basic support for multithreaded jobs

2020-05-20 Thread Daniel Jordan
Sometimes the kernel doesn't take full advantage of system memory bandwidth, leading to a single CPU spending excessive time in initialization paths where the data scales with memory size. Multithreading naturally addresses this problem. Extend padata, a framework that handles many parallel yet

[PATCH v2 3/7] padata: allocate work structures for parallel jobs from a pool

2020-05-20 Thread Daniel Jordan
padata allocates per-CPU, per-instance work structs for parallel jobs. A do_parallel call assigns a job to a sequence number and hashes the number to a CPU, where the job will eventually run using the corresponding work. This approach fit with how padata used to bind a job to each CPU

[PATCH v2 7/7] padata: document multithreaded jobs

2020-05-20 Thread Daniel Jordan
Add Documentation for multithreaded jobs. Signed-off-by: Daniel Jordan --- Documentation/core-api/padata.rst | 41 +++ 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/Documentation/core-api/padata.rst b/Documentation/core-api/padata.rst index

Re: [PATCH 09/15] device core: Add ability to handle multiple dma offsets

2020-05-20 Thread Jim Quinlan
Sorry, I meant to put you on the to-list for all patches. The last time I sent out this many patches using a collective cc-list for all patches I was told to reduce my cc-list. Jim On Wed, May 20, 2020 at 1:42 PM Christoph Hellwig wrote: > > If you don't Cc me on the whole series I have

Re: [PATCH 21/24] KVM: x86: always update CR3 in VMCB

2020-05-20 Thread Sean Christopherson
Oh, and it'd be nice to do s/VMCB/VMCB\/VMCS in the subject, I almost glossed over this patch because it explicitly said VMCB :-) On Wed, May 20, 2020 at 01:21:42PM -0400, Paolo Bonzini wrote: > vmx_load_mmu_pgd is delaying the write of GUEST_CR3 to prepare_vmcs02 as > an optimization, but this

KMSAN: uninit-value in get_block

2020-05-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8b97c627 kmsan: drop the opportunity to ignore pages git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=17f2e73a10 kernel config:

KASAN: slab-out-of-bounds Read in br_mrp_parse

2020-05-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:dda18a5c selftests/bpf: Convert bpf_iter_test_kern{3, 4}.c.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=10c4e63c10 kernel config: https://syzkaller.appspot.com/x/.config?x=668983fd3dd1087e

Re: [PATCH 3/7] perf metricgroup: Delay events string creation

2020-05-20 Thread Ian Rogers
On Wed, May 20, 2020 at 6:14 AM Jiri Olsa wrote: > > On Wed, May 20, 2020 at 12:28:10AM -0700, Ian Rogers wrote: > > Currently event groups are placed into groups_list at the same time as > > the events string containing the events is built. Separate these two > > operations and build the

Re: [PATCH v1] Revert "software node: Simplify software_node_release() function"

2020-05-20 Thread Brendan Higgins
On Wed, May 20, 2020 at 9:42 AM Andy Shevchenko wrote: > > On Wed, May 20, 2020 at 05:02:27PM +0200, Petr Mladek wrote: > > On Thu 2020-02-27 16:00:01, Brendan Higgins wrote: > > > I have found similar report from a test robot, see > >

Re: [PATCH 21/24] KVM: x86: always update CR3 in VMCB

2020-05-20 Thread Sean Christopherson
On Wed, May 20, 2020 at 01:21:42PM -0400, Paolo Bonzini wrote: > vmx_load_mmu_pgd is delaying the write of GUEST_CR3 to prepare_vmcs02 as > an optimization, but this is only correct before the nested vmentry. > If userspace is modifying CR3 with KVM_SET_SREGS after the VM has > already been put in

[PATCH v2 1/7] perf metricgroup: Always place duration_time last

2020-05-20 Thread Ian Rogers
If a metric contains the duration_time event then the event is placed outside of the metric's group of events. Rather than split the group, make it so the duration_time is immediately after the group. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 18 +- 1 file

Re: [PATCH] drm/amd/amdkfd: Fix large framesize for kfd_smi_ev_read()

2020-05-20 Thread Alex Deucher
On Wed, May 20, 2020 at 9:53 AM Aurabindo Pillai wrote: > > The buffer allocated is of 1024 bytes. Allocate this from > heap instead of stack. > > Also remove check for stack size since we're allocating from heap > > Signed-off-by: Aurabindo Pillai > Tested-by: Amber Lin Reviewed-by: Alex

[PATCH v2 2/7] perf metricgroup: Use early return in add_metric

2020-05-20 Thread Ian Rogers
Use early return in metricgroup__add_metric and try to make the intent of the returns more intention revealing. Suggested-by: Jiri Olsa Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git

[PATCH v2 5/7] perf metricgroup: Remove duped metric group events

2020-05-20 Thread Ian Rogers
A metric group contains multiple metrics. These metrics may use the same events. If metrics use separate events then it leads to more multiplexing and overall metric counts fail to sum to 100%. Modify how metrics are associated with events so that if the events in an earlier group satisfy the

[PATCH v2 4/7] perf metricgroup: Order event groups by size

2020-05-20 Thread Ian Rogers
When adding event groups to the group list, insert them in size order. This performs an insertion sort on the group list. By placing the largest groups at the front of the group list it is possible to see if a larger group contains the same events as a later group. This can make the later group

[PATCH v2 7/7] perf metricgroup: Remove unnecessary ',' from events

2020-05-20 Thread Ian Rogers
Remove unnecessary commas from events before they are parsed. This avoids ',' being echoed by parse-events.l. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/metricgroup.c

[PATCH v2 6/7] perf metricgroup: Add options to not group or merge

2020-05-20 Thread Ian Rogers
Add --metric-no-group that causes all events within metrics to not be grouped. This can allow the event to get more time when multiplexed, but may also lower accuracy. Add --metric-no-merge option. By default events in different metrics may be shared if the group of events for one metric is the

[PATCH v2 0/7] Share events between metrics

2020-05-20 Thread Ian Rogers
Metric groups contain metrics. Metrics create groups of events to ideally be scheduled together. Often metrics refer to the same events, for example, a cache hit and cache miss rate. Using separate event groups means these metrics are multiplexed at different times and the counts don't sum to

[PATCH v2 3/7] perf metricgroup: Delay events string creation

2020-05-20 Thread Ian Rogers
Currently event groups are placed into groups_list at the same time as the events string containing the events is built. Separate these two operations and build the groups_list first, then the event string from the groups_list. This adds an ability to reorder the groups_list that will be used in a

Re: [PATCH] kthread: Use TASK_IDLE state for newly created kernel threads

2020-05-20 Thread Greg Kroah-Hartman
On Wed, May 20, 2020 at 05:25:09PM +0530, Pavankumar Kondeti wrote: > When kernel threads are created for later use, they will be in > TASK_UNINTERRUPTIBLE state until they are woken up. This results > in increased loadavg and false hung task reports. To fix this, > use TASK_IDLE state instead of

Re: [PATCH] drm/amdgpu/smu10: Replace one-element array and use struct_size() helper

2020-05-20 Thread Alex Deucher
Applied. thanks! Alex On Wed, May 20, 2020 at 3:42 AM Christian König wrote: > > Am 20.05.20 um 00:55 schrieb Gustavo A. R. Silva: > > The current codebase makes use of one-element arrays in the following > > form: > > > > struct something { > > int length; > > u8 data[1]; > > }; > >

Re: [RFC][PATCH 3/5] thermal: Add support for setting notification thresholds

2020-05-20 Thread Srinivas Pandruvada
On Wed, 2020-05-20 at 09:58 +0530, Amit Kucheria wrote: > On Tue, May 19, 2020 at 5:10 AM Srinivas Pandruvada > wrote: > > On Mon, 2020-05-18 at 18:37 +0200, Daniel Lezcano wrote: > > > On 04/05/2020 20:16, Srinivas Pandruvada wrote: > > > > Add new attributes in thermal syfs when a thermal

general protection fault in unpin_user_pages

2020-05-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:dbfe7d74 rds: convert get_user_pages() --> pin_user_pages() git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=10218e6e10 kernel config: https://syzkaller.appspot.com/x/.config?x=3df83be5e281f34b

[PATCH 0/1] RFC: Make thunderbolt NHI driver work with kexec

2020-05-20 Thread Maxim Levitsky
While trying to use kexec on my desktop, which has Titan Ridge Thunderbolt add-on card, I noticed that after a kexec, system hangs for about a minute in the 'wating for udev devices to settle' phase of the boot. I found out that if I unload the thunderbolt driver prior to the kexec, then it works

[PATCH 1/1] thunderbolt: add trivial .shutdown

2020-05-20 Thread Maxim Levitsky
On my machine, a kexec with this driver loaded in the old kernel causes a very long delay on boot in the kexec'ed kernel, most likely due to unclean shutdown prior to that. Unloading thunderbolt driver prior to kexec allows kexec to work as fast as regular kernel boot, as well as adding this

Re: [patch V6 12/37] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-20 Thread Paul E. McKenney
On Wed, May 20, 2020 at 10:47:29AM -0700, Andy Lutomirski wrote: > On Wed, May 20, 2020 at 10:38 AM Paul E. McKenney wrote: > > > > On Wed, May 20, 2020 at 08:36:06AM -0700, Andy Lutomirski wrote: > > > On Tue, May 19, 2020 at 7:23 PM Paul E. McKenney > > > wrote: > > > > On Tue, May 19, 2020

Re: [Intel-gfx] [PATCH 3/3] misc/habalabs: don't set default fence_ops->wait

2020-05-20 Thread Oded Gabbay
On Wed, May 20, 2020 at 9:05 PM Daniel Vetter wrote: > > On Thu, May 14, 2020 at 02:38:38PM +0300, Oded Gabbay wrote: > > On Tue, May 12, 2020 at 9:12 AM Daniel Vetter > > wrote: > > > > > > On Tue, May 12, 2020 at 4:14 AM Dave Airlie wrote: > > > > > > > > On Mon, 11 May 2020 at 19:37, Oded

Re: [PATCH net-next v1] hinic: add support to set and get pause param

2020-05-20 Thread David Miller
From: "luobin (L)" Date: Wed, 20 May 2020 12:39:27 +0800 > It's because I made this patch based on the previous patch > ([PATCH net-next v1] hinic: add set_channels ethtool_ops support), so Don't ever silently create dependencies like this. Either submit new dependant patches after the

Re: [PATCH] PCI: tegra: fix runtime pm imbalance on error

2020-05-20 Thread Vidya Sagar
Thanks for pushing a patch to fix it. I've been under the wrong assumption that a failing pm_runtime_get_sync() wouldn't increment the usage counter. With Thierry's and Bjorn's comments addressed Acked-by: Vidya Sagar On 20-May-20 10:07 PM, Bjorn Helgaas wrote: External email: Use caution

[PATCH V3 0/3] PCI: Add basic Compute eXpress Link DVSEC decode

2020-05-20 Thread Sean V Kelley
Changes since v2 [1]: - Provide comment about what PCI_CXL_LOCK does. - Use "cxl" in place of "pos" where appropriate to make code more descriptive. - Remove unnecessary extra check for pci_is_pcie(dev). - Remove reshuffling of pci_read_config_word() and put them in the right place when first

[PATCH V3 1/3] PCI: Add defines for Designated Vendor-Specific Capability

2020-05-20 Thread Sean V Kelley
From: "David E. Box" Add PCIe DVSEC extended capability ID and defines for the header offsets. Defined in PCIe r5.0, sec 7.9.6. Signed-off-by: David E. Box Acked-by: Bjorn Helgaas --- include/uapi/linux/pci_regs.h | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH v3 8/9] perf record: implement control commands handling

2020-05-20 Thread Alexey Budankov
On 20.05.2020 15:38, Jiri Olsa wrote: > On Wed, May 13, 2020 at 11:04:25AM +0300, Alexey Budankov wrote: >> >> Implement handling of 'enable' and 'disable' control commands >> coming from control file descriptor. >> >> Signed-off-by: Alexey Budankov >> --- >> tools/perf/builtin-record.c | 18

[PATCH V3 2/3] PCI: Add basic Compute eXpress Link DVSEC decode

2020-05-20 Thread Sean V Kelley
Compute eXpress Link is a new CPU interconnect created with workload accelerators in mind. The interconnect relies on PCIe Electrical and Physical interconnect for communication. CXL devices enumerate to the OS as an ACPI-described PCIe Root Complex Integrated Endpoint. This patch introduces the

[PATCH V3 3/3] PCI: Add helpers to enable/disable CXL.mem and CXL.cache

2020-05-20 Thread Sean V Kelley
With these helpers, a device driver can enable/disable access to CXL.mem and CXL.cache. Note that the device driver is responsible for managing the memory area. Signed-off-by: Sean V Kelley --- drivers/pci/cxl.c | 84 +++ drivers/pci/pci.h | 8 +

Reply Urgently!!

2020-05-20 Thread Mr Saeed Ahmed
Dear Friend, I want you to be honest and truthful with me that you will help me with all your effort and time for just seven to fourteen workings of your time Please kindly reply to my most confidential email if you are really interested in helping me please: saeedasutanah...@gmail.com

Re: [patch V6 12/37] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-20 Thread Paul E. McKenney
On Wed, May 20, 2020 at 09:51:17AM -0700, Andy Lutomirski wrote: > On Wed, May 20, 2020 at 8:36 AM Andy Lutomirski wrote: > > > > On Tue, May 19, 2020 at 7:23 PM Paul E. McKenney wrote: > > > > > > On Tue, May 19, 2020 at 05:26:58PM -0700, Andy Lutomirski wrote: > > > > On Tue, May 19, 2020 at

Re: [Intel-gfx] [PATCH 3/3] misc/habalabs: don't set default fence_ops->wait

2020-05-20 Thread Daniel Vetter
On Thu, May 14, 2020 at 02:38:38PM +0300, Oded Gabbay wrote: > On Tue, May 12, 2020 at 9:12 AM Daniel Vetter wrote: > > > > On Tue, May 12, 2020 at 4:14 AM Dave Airlie wrote: > > > > > > On Mon, 11 May 2020 at 19:37, Oded Gabbay wrote: > > > > > > > > On Mon, May 11, 2020 at 12:11 PM Daniel

Re: [PATCH 2/2] Add a new sysctl knob: unprivileged_userfaultfd_user_mode_only

2020-05-20 Thread Kees Cook
On Wed, May 20, 2020 at 12:59:38AM -0400, Andrea Arcangeli wrote: > Hello everyone, > > On Fri, May 08, 2020 at 12:54:03PM -0400, Michael S. Tsirkin wrote: > > On Fri, May 08, 2020 at 12:52:34PM -0400, Michael S. Tsirkin wrote: > > > On Wed, Apr 22, 2020 at 05:26:32PM -0700, Daniel Colascione

Re: [PATCH 1/3] drm/writeback: don't set fence->ops to default

2020-05-20 Thread Daniel Vetter
On Mon, May 11, 2020 at 06:12:32PM +, Ruhl, Michael J wrote: > >-Original Message- > >From: dri-devel On Behalf Of > >Daniel Vetter > >Sent: Monday, May 11, 2020 5:12 AM > >To: LKML > >Cc: David Airlie ; Daniel Vetter ; > >Intel Graphics Development ; DRI > >Development ; Thomas

Re: [PATCH v5 2/5] remoteproc: qcom: Introduce helper to store pil info in IMEM

2020-05-20 Thread Mathieu Poirier
On Tue, May 12, 2020 at 10:56:38PM -0700, Bjorn Andersson wrote: > A region in IMEM is used to communicate load addresses of remoteproc to > post mortem debug tools. Implement a helper function that can be used to > store this information in order to enable these tools to process > collected

[RESEND PATCH] media: marvell-ccic: Add support for runtime PM

2020-05-20 Thread Lubomir Rintel
On MMP3, the camera block lives on na separate power island. We want to turn it off if the CCIC is not in use to conserve power. Signed-off-by: Lubomir Rintel --- drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ drivers/media/platform/marvell-ccic/mmp-driver.c | 12 2

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-20 Thread Naresh Kamboju
On Wed, 20 May 2020 at 17:26, Naresh Kamboju wrote: > > > This issue is specific on 32-bit architectures i386 and arm on linux-next > tree. > As per the test results history this problem started happening from > Bad : next-20200430 > Good : next-20200429 > > steps to reproduce: > dd

Re: [PATCH v5 1/5] dt-bindings: remoteproc: Add Qualcomm PIL info binding

2020-05-20 Thread Mathieu Poirier
On Tue, May 12, 2020 at 10:56:37PM -0700, Bjorn Andersson wrote: > Add a devicetree binding for the Qualcomm peripheral image loader > relocation information region found in the IMEM. > > Reviewed-by: Stephen Boyd > Signed-off-by: Bjorn Andersson > --- > > Changes since v4: > - Fixed reg in

Re: Another approach of UFSHPB

2020-05-20 Thread Christoph Hellwig
Serious, HPB is a completely fucked up concept and we shoud not merge it at all. Especially not with a crazy bullshit vendor extension layer that makes it even easier for vendors to implement even worse things than the already horrible spec says. Just stop this crap and implement sane interfaces

Re: [PATCH V3] arm64/cpufeature: Validate hypervisor capabilities during CPU hotplug

2020-05-20 Thread Will Deacon
On Tue, 12 May 2020 07:27:27 +0530, Anshuman Khandual wrote: > This validates hypervisor capabilities like VMID width, IPA range for any > hot plug CPU against system finalized values. KVM's view of the IPA space > is used while allowing a given CPU to come up. While here, it factors out >

Re: [PATCH V2] arm64/cpufeature: Drop open encodings while extracting parange

2020-05-20 Thread Will Deacon
On Wed, 13 May 2020 14:33:34 +0530, Anshuman Khandual wrote: > Currently there are multiple instances of parange feature width mask open > encodings while fetching it's value. Even the width mask value (0x7) itself > is not accurate. It should be (0xf) per ID_AA64MMFR0_EL1.PARange[3:0] as in > ARM

Re: [PATCH v5] ACPI/IORT: Fix PMCG node single ID mapping handling

2020-05-20 Thread Will Deacon
On Wed, 20 May 2020 10:13:07 -0700, Tuan Phan wrote: > An IORT PMCG node can have no ID mapping if its overflow interrupt is > wire based therefore the code that parses the PMCG node can not assume > the node will always have a single mapping present at index 0. > > Fix

[PATCH v4 2/2] scsi: ufs-qcom: enter and exit hibern8 during clock scaling

2020-05-20 Thread Asutosh Das
Qualcomm controller needs to be in hibern8 before scaling clocks. This change puts the controller in hibern8 state before scaling and brings it out after scaling of clocks. Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufs-qcom.c | 12 +++- 1 file changed, 11 insertions(+), 1

[PATCH v4 1/2] scsi: ufs: export hibern8 entry

2020-05-20 Thread Asutosh Das
Qualcomm controllers need to be in hibern8 before scaling up or down the clocks. Hence, export the hibern8 entry function. Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufshcd.c | 4 ++-- drivers/scsi/ufs/ufshcd.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [PATCH net-next v2 3/4] dt-bindings: net: Add RGMII internal delay for DP83869

2020-05-20 Thread Dan Murphy
Florian On 5/20/20 12:45 PM, Florian Fainelli wrote: On 5/20/2020 10:20 AM, Dan Murphy wrote: Andrew/Florian On 5/20/20 11:43 AM, Andrew Lunn wrote: I am interested in knowing where that is documented.  I want to RTM I grepped for a few different words but came up empty Hi Dan It probably

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-20 Thread Johannes Weiner
On Wed, May 20, 2020 at 07:04:30PM +0200, Michal Hocko wrote: > On Wed 20-05-20 12:51:31, Johannes Weiner wrote: > > On Wed, May 20, 2020 at 06:07:56PM +0200, Michal Hocko wrote: > > > On Wed 20-05-20 15:37:12, Chris Down wrote: > > > > In Facebook production, we've seen cases where cgroups have

Re: Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-20 Thread Vidya Sagar
On 20-May-20 6:46 PM, Thierry Reding wrote: On Wed, May 20, 2020 at 12:06:40PM +0100, Lorenzo Pieralisi wrote: On Tue, May 19, 2020 at 10:08:54PM +, Gustavo Pimentel wrote: [...] diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c

Re: [PATCH v11] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node

2020-05-20 Thread Sibi Sankar
On 2020-05-20 09:26, Rakesh Pillai wrote: Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc. Signed-off-by: Rakesh Pillai --- Changes from v10: - Corrected the position of wifi node, as per address - Removed the wlan_fw_mem from

Re: [PATCHv3 4/5] Input: EXC3000: Add support to query model and fw_version

2020-05-20 Thread Dmitry Torokhov
Hi Sebastian, On Wed, May 20, 2020 at 05:39:35PM +0200, Sebastian Reichel wrote: > Expose model and fw_version via sysfs. Also query the model > in probe to make sure, that the I2C communication with the > device works before successfully probing the driver. > > This is a bit complicated, since

Re: [patch V6 12/37] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-20 Thread Andy Lutomirski
On Wed, May 20, 2020 at 10:38 AM Paul E. McKenney wrote: > > On Wed, May 20, 2020 at 08:36:06AM -0700, Andy Lutomirski wrote: > > On Tue, May 19, 2020 at 7:23 PM Paul E. McKenney wrote: > > > On Tue, May 19, 2020 at 05:26:58PM -0700, Andy Lutomirski wrote: > > > > On Tue, May 19, 2020 at 2:20 PM

Re: Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-20 Thread Vidya Sagar
On 20-May-20 4:47 PM, Thierry Reding wrote: On Tue, May 19, 2020 at 10:08:54PM +, Gustavo Pimentel wrote: On Tue, May 19, 2020 at 15:58:16, Lorenzo Pieralisi wrote: On Tue, May 19, 2020 at 07:25:02PM +0530, Vidya Sagar wrote: On 18-May-20 9:24 PM, Lorenzo Pieralisi wrote: External

Re: [PATCH net-next v2 3/4] dt-bindings: net: Add RGMII internal delay for DP83869

2020-05-20 Thread Florian Fainelli
On 5/20/2020 10:20 AM, Dan Murphy wrote: > Andrew/Florian > > On 5/20/20 11:43 AM, Andrew Lunn wrote: >>> I am interested in knowing where that is documented.  I want to RTM I >>> grepped for a few different words but came up empty >> Hi Dan >> >> It probably is not well documented, but one

Re: [PATCHv3 3/5] Input: EXC3000: add EXC80H60 and EXC80H84 support

2020-05-20 Thread Dmitry Torokhov
Hi Sebastian, On Wed, May 20, 2020 at 05:39:34PM +0200, Sebastian Reichel wrote: > > data->client = client; > + data->info = device_get_match_data(>dev); > + if (!data->info) { > + enum eeti_dev_id eeti_dev_id = > + i2c_match_id(exc3000_id,

Re: [PATCH v5] ACPI/IORT: Fix PMCG node single ID mapping handling

2020-05-20 Thread Will Deacon
On Wed, May 20, 2020 at 06:27:36PM +0100, Lorenzo Pieralisi wrote: > On Wed, May 20, 2020 at 10:13:07AM -0700, Tuan Phan wrote: > > An IORT PMCG node can have no ID mapping if its overflow interrupt is > > wire based therefore the code that parses the PMCG node can not assume > > the node will

[PATCH v2] KVM: PPC: Book3S HV: relax check on H_SVM_INIT_ABORT

2020-05-20 Thread Laurent Dufour
The commit 8c47b6ff29e3 ("KVM: PPC: Book3S HV: Check caller of H_SVM_* Hcalls") added checks of secure bit of SRR1 to filter out the Hcall reserved to the Ultravisor. However, the Hcall H_SVM_INIT_ABORT is made by the Ultravisor passing the context of the VM calling UV_ESM. This allows the

<    1   2   3   4   5   6   7   8   9   10   >