[PATCH 1/2] x86/cpu/intel: Clear cache self-snoop capability in CPUs with known errata

2019-06-27 Thread Ricardo Neri
Processors which have self-snooping capability can handle conflicting memory type across CPUs by snooping its own cache. However, there exists CPU models in which having conflicting memory types still leads to unpredictable behavior, machine check errors, or hangs. Clear this feature to prevent its

[PATCH 0/2] Speed MTRR programming up when we can

2019-06-27 Thread Ricardo Neri
Programming MTRR registers in multi-processor systems is a rather lengthy process. Furthermore, all processors must program these registers in lock step and with interrupts disabled; the process also involves flushing caches and TLBs twice. As a result, the process may take a considerable amount of

[PATCH-next v2] mm, memcg: Add ":deact" tag for reparented kmem caches in memcg_slabinfo

2019-06-27 Thread Waiman Long
With Roman's kmem cache reparent patch, multiple kmem caches of the same type can be seen attached to the same memcg id. All of them, except maybe one, are reparent'ed kmem caches. It can be useful to tag those reparented caches by adding a new slab flag "SLAB_DEACTIVATED" to those kmem caches that

Re: [PATCH-next] mm, memcg: Add ":deact" tag for reparented kmem caches in memcg_slabinfo

2019-06-27 Thread Waiman Long
On 6/26/19 3:58 PM, Roman Gushchin wrote: > On Fri, Jun 21, 2019 at 01:30:05PM -0400, Waiman Long wrote: >> With Roman's kmem cache reparent patch, multiple kmem caches of the same >> type can be seen attached to the same memcg id. All of them, except >> maybe one, are reparent'ed kmem caches. It c

Re: [PATCH] netfilter: Fix remainder of pseudo-header protocol 0

2019-06-27 Thread Pablo Neira Ayuso
On Mon, Jun 24, 2019 at 11:17:38AM +0800, zhe...@windriver.com wrote: > From: He Zhe > > Since v5.1-rc1, some types of packets do not get unreachable reply with the > following iptables setting. Fox example, > > $ iptables -A INPUT -p icmp --icmp-type 8 -j REJECT > $ ping 127.0.0.1 -c 1 > PING 1

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-27 Thread Joel Fernandes
On Thu, Jun 27, 2019 at 02:27:22PM -0400, Joel Fernandes wrote: > On Thu, Jun 27, 2019 at 11:11:12AM -0700, Paul E. McKenney wrote: > > On Thu, Jun 27, 2019 at 01:46:27PM -0400, Joel Fernandes wrote: > > > On Thu, Jun 27, 2019 at 1:43 PM Joel Fernandes > > > wrote: > > > > > > > > On Thu, Jun 27,

[PATCH] staging:kpc2000:Fix sparse warnings

2019-06-27 Thread Harsh Jain
From: root Fix following sparse warning symbol was not declared. Should it be static? Using plain integer as NULL pointer Signed-off-by: Harsh Jain --- drivers/staging/kpc2000/kpc_i2c/i2c_driver.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/kpc20

Re: LTP hugemmap05 test case failure on arm64 with linux-next (next-20190613)

2019-06-27 Thread Qian Cai
On Thu, 2019-06-27 at 11:09 -0700, Mike Kravetz wrote: > On 6/24/19 2:53 PM, Mike Kravetz wrote: > > On 6/24/19 2:30 PM, Qian Cai wrote: > > > So the problem is that ipcget_public() has held the semaphore > > > "ids->rwsem" > > > for > > > too long seems unnecessarily and then goes to sleep somet

Re: [PATCH] filesystem-dax: Disable PMD support

2019-06-27 Thread Dan Williams
On Thu, Jun 27, 2019 at 11:29 AM Dan Williams wrote: > > On Thu, Jun 27, 2019 at 9:06 AM Dan Williams wrote: > > > > On Thu, Jun 27, 2019 at 5:34 AM Matthew Wilcox wrote: > > > > > > On Wed, Jun 26, 2019 at 05:15:45PM -0700, Dan Williams wrote: > > > > Ever since the conversion of DAX to the Xar

Re: [PATCH] filesystem-dax: Disable PMD support

2019-06-27 Thread Dan Williams
On Thu, Jun 27, 2019 at 11:58 AM Dan Williams wrote: > > On Thu, Jun 27, 2019 at 11:29 AM Dan Williams > wrote: > > > > On Thu, Jun 27, 2019 at 9:06 AM Dan Williams > > wrote: > > > > > > On Thu, Jun 27, 2019 at 5:34 AM Matthew Wilcox > > > wrote: > > > > > > > > On Wed, Jun 26, 2019 at 05:1

[PATCH] kbuild: Add ability to test Clang's integrated assembler

2019-06-27 Thread Nathan Chancellor
There are some people interested in experimenting with Clang's integrated assembler. To make it easy to do so without source modification, allow the user to specify 'AS=clang' as part of the make command to avoid adding '-no-integrated-as' to the {A,C}FLAGS. Link: https://github.com/ClangBuiltLinu

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-27 Thread Paul E. McKenney
On Thu, Jun 27, 2019 at 02:51:03PM -0400, Joel Fernandes wrote: > On Thu, Jun 27, 2019 at 02:27:22PM -0400, Joel Fernandes wrote: > > On Thu, Jun 27, 2019 at 11:11:12AM -0700, Paul E. McKenney wrote: > > > On Thu, Jun 27, 2019 at 01:46:27PM -0400, Joel Fernandes wrote: > > > > On Thu, Jun 27, 2019

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-27 Thread Paul E. McKenney
On Thu, Jun 27, 2019 at 02:27:22PM -0400, Joel Fernandes wrote: > On Thu, Jun 27, 2019 at 11:11:12AM -0700, Paul E. McKenney wrote: > > On Thu, Jun 27, 2019 at 01:46:27PM -0400, Joel Fernandes wrote: > > > On Thu, Jun 27, 2019 at 1:43 PM Joel Fernandes > > > wrote: > > > > > > > > On Thu, Jun 27,

Re: [PATCH v2] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-06-27 Thread Nathan Chancellor
On Mon, Jun 03, 2019 at 03:11:58PM -0700, Nathan Chancellor wrote: > When building with -Wsometimes-uninitialized, clang warns: > > drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is > used uninitialized whenever 'for' loop exits because its condition is > false [-Wsometimes-un

Re: [PATCH v3 1/8] dt-bindings: soc: Add Aspeed XDMA engine binding documentation

2019-06-27 Thread Eddie James
On 5/30/19 12:30 AM, Andrew Jeffery wrote: On Thu, 30 May 2019, at 03:40, Eddie James wrote: Document the bindings. Signed-off-by: Eddie James --- .../devicetree/bindings/soc/aspeed/xdma.txt| 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documen

Re: [PATCH v4 net-next 1/4] net: core: page_pool: add user cnt preventing pool deletion

2019-06-27 Thread Jesper Dangaard Brouer
On Tue, 25 Jun 2019 20:59:45 +0300 Ivan Khoronzhuk wrote: > Add user counter allowing to delete pool only when no users. > It doesn't prevent pool from flush, only prevents freeing the > pool instance. Helps when no need to delete the pool and now > it's user responsibility to free it by calling

[PATCH v3] dmaengine: tegra-apb: Support per-burst residue granularity

2019-06-27 Thread Dmitry Osipenko
Tegra's APB DMA engine updates words counter after each transferred burst of data, hence it can report transfer's residual with more fidelity which may be required in cases like audio playback. In particular this fixes audio stuttering during playback in a chromium web browser. The patch is based o

[PATCH v5 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-06-27 Thread Dave Chiluk
It has been observed, that highly-threaded, non-cpu-bound applications running under cpu.cfs_quota_us constraints can hit a high percentage of periods throttled while simultaneously not consuming the allocated amount of quota. This use case is typical of user-interactive non-cpu bound applications,

Re: [PATCH v2] powerpc/setup_64: fix -Wempty-body warnings

2019-06-27 Thread Qian Cai
Ping. On Wed, 2019-06-05 at 16:53 -0400, Qian Cai wrote: > At the beginning of setup_64.c, it has, > >   #ifdef DEBUG >   #define DBG(fmt...) udbg_printf(fmt) >   #else >   #define DBG(fmt...) >   #endif > > where DBG() could be compiled away, and generate warnings, > > arch/powerpc/kernel/setu

[PATCH] staging: kpc2000: fix brace issues in kpc2000_spi.c

2019-06-27 Thread Simon Sandström
Fixes issues found by checkpatch: - "WARNING: braces {} are not necessary for single statement blocks" - "WARNING: braces {} are not necessary for any arm of this statement" Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000_spi.c | 39 ++- 1 file changed

Re: [PATCH] powerpc/cacheflush: fix variable set but not used

2019-06-27 Thread Qian Cai
Ping. On Thu, 2019-06-06 at 09:58 -0400, Qian Cai wrote: > The powerpc's flush_cache_vmap() is defined as a macro and never use > both of its arguments, so it will generate a compilation warning, > > lib/ioremap.c: In function 'ioremap_page_range': > lib/ioremap.c:203:16: warning: variable 'start

[PATCH v8 0/7] Unify CPU topology across ARM & RISC-V

2019-06-27 Thread Atish Patra
The cpu-map DT entry in ARM can describe the CPU topology in much better way compared to other existing approaches. RISC-V can easily adopt this binding to represent its own CPU topology. Thus, both cpu-map DT binding and topology parsing code can be moved to a common location so that RISC-V or any

[PATCH v8 6/7] base: arch_topology: update Kconfig help description

2019-06-27 Thread Atish Patra
From: Sudeep Holla Commit 5d777b185f6d ("arch_topology: Make cpu_capacity sysfs node as read-only") made cpu_capacity sysfs node read-only. Update the GENERIC_ARCH_TOPOLOGY Kconfig help section to reflect the same. Cc: Greg Kroah-Hartman Signed-off-by: Sudeep Holla --- drivers/base/Kconfig |

Re: [PATCH] powerpc/eeh_cache: fix a W=1 kernel-doc warning

2019-06-27 Thread Qian Cai
Ping. On Wed, 2019-06-05 at 16:46 -0400, Qian Cai wrote: > The opening comment mark "/**" is reserved for kernel-doc comments, so > it will generate a warning with "make W=1". > > arch/powerpc/kernel/eeh_cache.c:37: warning: cannot understand function > prototype: 'struct pci_io_addr_range > > S

[PATCH v8 5/7] RISC-V: Parse cpu topology during boot.

2019-06-27 Thread Atish Patra
Currently, there are no topology defined for RISC-V. Parse the cpu-map node from device tree and setup the cpu topology. CPU topology after applying the patch. $cat /sys/devices/system/cpu/cpu2/topology/core_siblings_list 0-3 $cat /sys/devices/system/cpu/cpu3/topology/core_siblings_list 0-3 $cat /

[PATCH v8 7/7] MAINTAINERS: Add an entry for generic architecture topology

2019-06-27 Thread Atish Patra
From: Sudeep Holla arm and arm64 shared lot of CPU topology related code. This was consolidated under driver/base/arch_topology.c by Juri. Now RISC-V is also started sharing the same code pulling more code from arm64 into arch_topology.c Since I was involved in the review from the beginning, I w

[PATCH v8 2/7] dt-binding: cpu-topology: Move cpu-map to a common binding.

2019-06-27 Thread Atish Patra
cpu-map binding can be used to described cpu topology for both RISC-V & ARM. It makes more sense to move the binding to document to a common place. The relevant discussion can be found here. https://lkml.org/lkml/2018/11/6/19 Signed-off-by: Atish Patra Reviewed-by: Sudeep Holla Reviewed-by: Rob

[PATCH v8 3/7] cpu-topology: Move cpu topology code to common code.

2019-06-27 Thread Atish Patra
Both RISC-V & ARM64 are using cpu-map device tree to describe their cpu topology. It's better to move the relevant code to a common place instead of duplicate code. To: Will Deacon To: Catalin Marinas Signed-off-by: Atish Patra [Tested on QDF2400] Tested-by: Jeffrey Hugo [Tested on Juno and ot

Re: [PATCH 43/87] kernel: power: replace kmalloc and memset with kzalloc

2019-06-27 Thread Pavel Machek
On Fri 2019-06-28 01:40:48, Fuqian Huang wrote: > kmalloc + memset(0) -> kzalloc > > Signed-off-by: Fuqian Huang Acked-by: Pavel Machek > @@ -974,12 +974,11 @@ static int get_swap_reader(struct swap_map_handle > *handle, > last = handle->maps = NULL; > offset = swsusp_header->imag

[PATCH v8 4/7] arm: Use common cpu_topology structure and functions.

2019-06-27 Thread Atish Patra
Currently, ARM32 and ARM64 uses different data structures to represent their cpu topologies. Since, we are moving the ARM64 topology to common code to be used by other architectures, we can reuse that for ARM32 as well. Take this opprtunity to remove the redundant functions from ARM32 and reuse th

[PATCH v8 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-06-27 Thread Atish Patra
From: Sudeep Holla The current ARM DT topology description provides the operating system with a topological view of the system that is based on leaf nodes representing either cores or threads (in an SMT system) and a hierarchical set of cluster nodes that creates a hierarchical topology view of h

Re: [PATCH v7 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-06-27 Thread Atish Patra
On Wed, 2019-06-26 at 19:18 -0700, Atish Patra wrote: > On 6/26/19 5:31 PM, Paul Walmsley wrote: > > Hi Sudeep, Atish, > > > > On Mon, 17 Jun 2019, Atish Patra wrote: > > > > > From: Sudeep Holla > > > > > > The current ARM DT topology description provides the operating > > > system > > > with

Re: [PATCH] filesystem-dax: Disable PMD support

2019-06-27 Thread Matthew Wilcox
On Thu, Jun 27, 2019 at 12:09:29PM -0700, Dan Williams wrote: > > This bug feels like we failed to unlock, or unlocked the wrong entry > > and this hunk in the bisected commit looks suspect to me. Why do we > > still need to drop the lock now that the radix_tree_preload() calls > > are gone? > > N

Re: [PATCH 80/87] net: hippi: remove memset after pci_alloc_consistent

2019-06-27 Thread Jes Sorensen
On 6/27/19 1:44 PM, Fuqian Huang wrote: > pci_alloc_consistent calls dma_alloc_coherent directly. > In commit af7ddd8a627c > ("Merge tag 'dma-mapping-4.21' of > git://git.infradead.org/users/hch/dma-mapping"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. > > Sign

Re: [PATCH v2] powerpc/setup_64: fix -Wempty-body warnings

2019-06-27 Thread Joe Perches
On Thu, 2019-06-27 at 15:52 -0400, Qian Cai wrote: > On Wed, 2019-06-05 at 16:53 -0400, Qian Cai wrote: > > At the beginning of setup_64.c, it has, > > > > #ifdef DEBUG > > #define DBG(fmt...) udbg_printf(fmt) > > #else > > #define DBG(fmt...) > > #endif > > > > where DBG() could be com

Re: [RFC PATCH RT 4/4] rcutorture: Avoid problematic critical section nesting

2019-06-27 Thread Scott Wood
On Thu, 2019-06-27 at 11:00 -0700, Paul E. McKenney wrote: > On Wed, Jun 26, 2019 at 11:49:16AM -0500, Scott Wood wrote: > > On Wed, 2019-06-26 at 11:08 -0400, Steven Rostedt wrote: > > > On Fri, 21 Jun 2019 16:59:55 -0700 > > > "Paul E. McKenney" wrote: > > > > > > > I have no objection to the o

Re: [PATCH V33 24/30] bpf: Restrict bpf when kernel lockdown is in confidentiality mode

2019-06-27 Thread Stephen Smalley
On 6/27/19 2:06 PM, James Morris wrote: On Thu, 27 Jun 2019, Stephen Smalley wrote: There are two scenarios where finer-grained distinctions make sense: - Users may need to enable specific functionality that falls under the umbrella of "confidentiality" or "integrity" lockdown. Finer-grained

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-27 Thread Scott Wood
On Thu, 2019-06-27 at 11:41 -0700, Paul E. McKenney wrote: > On Thu, Jun 27, 2019 at 02:16:38PM -0400, Joel Fernandes wrote: > > > > I think the fix should be to prevent the wake-up not based on whether we > > are > > in hard/soft-interrupt mode but that we are doing the rcu_read_unlock() > > from

Re: [PATCH v4 1/1] sched/fair: Return all runtime when cfs_b has very little remaining.

2019-06-27 Thread bsegall
Dave Chiluk writes: > On Mon, Jun 24, 2019 at 10:33:07AM -0700, bseg...@google.com wrote: >> This still has a similar cost as reducing min_cfs_rq_runtime to 0 - we >> now take a tg-global lock on every group se dequeue. Setting min=0 means >> that we have to take it on both enqueue and dequeue, w

Re: [PATCH 08/16] nfsd: escape high characters in binary data

2019-06-27 Thread J. Bruce Fields
On Wed, Jun 26, 2019 at 12:21:49PM -0400, J. Bruce Fields wrote: > On Mon, Jun 24, 2019 at 05:05:12PM -0400, J. Bruce Fields wrote: > > On Sat, Jun 22, 2019 at 01:22:56PM -0700, Kees Cook wrote: > > > On Sat, Jun 22, 2019 at 03:00:58PM -0400, J. Bruce Fields wrote: > > > > The logic around ESCAPE_N

[RFC PATCH bpf-next v2 6/6] selftests/bpf: add test to measure performance of BPF_MAP_DUMP

2019-06-27 Thread Brian Vazquez
This tests compares the amount of time that takes to read an entire table of 100K elements on a bpf hashmap using both BPF_MAP_DUMP and BPF_MAP_GET_NEXT_KEY + BPF_MAP_LOOKUP_ELEM. Signed-off-by: Brian Vazquez --- tools/testing/selftests/bpf/test_maps.c | 71 + 1 file chan

[RFC PATCH bpf-next v2 4/6] libbpf: support BPF_MAP_DUMP command

2019-06-27 Thread Brian Vazquez
Make libbpf aware of new BPF_MAP_DUMP command and add bpf_map_dump and bpf_map_dump_flags to use them from the library. Suggested-by: Stanislav Fomichev Signed-off-by: Brian Vazquez --- tools/lib/bpf/bpf.c | 28 tools/lib/bpf/bpf.h | 4 tools/lib/bpf

[RFC PATCH bpf-next v2 1/6] bpf: add bpf_map_value_size and bp_map_copy_value helper functions

2019-06-27 Thread Brian Vazquez
Move reusable code from map_lookup_elem to helper functions to avoid code duplication in kernel/bpf/syscall.c Suggested-by: Stanislav Fomichev Signed-off-by: Brian Vazquez --- kernel/bpf/syscall.c | 134 +++ 1 file changed, 73 insertions(+), 61 deletions(

[RFC PATCH bpf-next v2 2/6] bpf: add BPF_MAP_DUMP command to access more than one entry per call

2019-06-27 Thread Brian Vazquez
This introduces a new command to retrieve a variable number of entries from a bpf map wrapping the existing bpf methods: map_get_next_key and map_lookup_elem Note that map_dump doesn't guarantee that reading the entire table is consistent since this function is always racing with kernel and user c

[RFC PATCH bpf-next v2 3/6] bpf: keep bpf.h in sync with tools/

2019-06-27 Thread Brian Vazquez
Adds bpf_attr.dump structure to libbpf. Suggested-by: Stanislav Fomichev Signed-off-by: Brian Vazquez --- tools/include/uapi/linux/bpf.h | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index b077507efa3f3..1d753958874d

[RFC PATCH bpf-next v2 0/6] bpf: add BPF_MAP_DUMP command to

2019-06-27 Thread Brian Vazquez
This introduces a new command to retrieve a variable number of entries from a bpf map. This new command can be executed from the existing BPF syscall as follows: err = bpf(BPF_MAP_DUMP, union bpf_attr *attr, u32 size) using attr->dump.map_fd, attr->dump.prev_key, attr->dump.buf, attr->dump.buf_l

[RFC PATCH bpf-next v2 5/6] selftests/bpf: test BPF_MAP_DUMP command on a bpf hashmap

2019-06-27 Thread Brian Vazquez
This tests exercise the new command on a bpf hashmap and make sure it works as expected. Signed-off-by: Brian Vazquez --- tools/testing/selftests/bpf/test_maps.c | 70 - 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/test_maps.c

[GIT PULL] clk fixes for v5.2-rc6

2019-06-27 Thread Stephen Boyd
The following changes since commit 1cc54078d104f5b4d7e9f8d55362efa5a8daffdb: clk: ti: clkctrl: Fix clkdm_clk handling (2019-05-21 11:43:40 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fetch

RE: [PATCH v20 22/28] x86/traps: Attempt to fixup exceptions in vDSO before signaling

2019-06-27 Thread Xing, Cedric
> From: linux-sgx-ow...@vger.kernel.org [mailto:linux-sgx- > ow...@vger.kernel.org] On Behalf Of Jarkko Sakkinen > Sent: Tuesday, June 25, 2019 8:44 AM > > I went through the vDSO changes just to revisit couple of details that I > had forgotten. Sean, if you don't mind I'd squash this and prependi

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-27 Thread Paul E. McKenney
On Thu, Jun 27, 2019 at 03:17:27PM -0500, Scott Wood wrote: > On Thu, 2019-06-27 at 11:41 -0700, Paul E. McKenney wrote: > > On Thu, Jun 27, 2019 at 02:16:38PM -0400, Joel Fernandes wrote: > > > > > > I think the fix should be to prevent the wake-up not based on whether we > > > are > > > in hard/

Re: [PATCH] xtensa: remove unneeded BITS_PER_LONG define

2019-06-27 Thread Max Filippov
Hi Yamada-san, On Thu, Jun 27, 2019 at 12:01 AM Masahiro Yamada wrote: > > Xtensa does not define CONFIG_64BIT. The generic definition in > include/asm-generic/bitsperlong.h should work. > > Signed-off-by: Masahiro Yamada > --- > > arch/xtensa/include/asm/types.h | 8 > 1 file changed,

Re: [PATCH 1/2] x86/cpu/intel: Clear cache self-snoop capability in CPUs with known errata

2019-06-27 Thread Thomas Gleixner
Ricardo, On Thu, 27 Jun 2019, Ricardo Neri wrote: > > +/* > + * Processors which have self-snooping capability can handle conflicting > + * memory type across CPUs by snooping its own cache. However, there exists > + * CPU models in which having conflicting memory types still leads to > + * unpr

Re: [PATCH 0/2] Speed MTRR programming up when we can

2019-06-27 Thread Thomas Gleixner
On Thu, 27 Jun 2019, Ricardo Neri wrote: > By measuring the execution time of mtrr_aps_init() (from which MTRRs > in all CPUs are programmed in lock-step at boot), I find savings in the > time required to program MTRRs as follows: > > Platform time-with-wbinvd(ms) time-no-wbin

[PATCH 1/5] cgroup, blkcg: Prepare some symbols for module and !CONFIG_CGROUP usages

2019-06-27 Thread Tejun Heo
btrfs is going to use css_put() and wbc helpers to improve cgroup writeback support. Add dummy css_get() definition and export wbc helpers to prepare for module and !CONFIG_CGROUP builds. Signed-off-by: Tejun Heo Reported-by: kbuild test robot Reviewed-by: Jan Kara --- block/blk-cgroup.c

Re: [PATCH 04/13] xfs: initialize iomap->flags in xfs_bmbt_to_iomap

2019-06-27 Thread Darrick J. Wong
On Thu, Jun 27, 2019 at 12:48:27PM +0200, Christoph Hellwig wrote: > Currently we don't overwrite the flags field in the iomap in > xfs_bmbt_to_iomap. This works fine with 0-initialized iomaps on stack, > but is harmful once we want to be able to reuse an iomap in the > writeback code. Replace th

[PATCH v3] platform/chrome: Expose resume result via debugfs

2019-06-27 Thread Evan Green
For ECs that support it, the EC returns the number of slp_s0 transitions and whether or not there was a timeout in the resume response. Expose the last resume result to usermode via debugfs so that usermode can detect and report S0ix timeouts. Signed-off-by: Evan Green --- Changes in v3: - Expo

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-27 Thread Paul E. McKenney
On Thu, Jun 27, 2019 at 11:30:22AM -0700, Paul E. McKenney wrote: > On Thu, Jun 27, 2019 at 11:11:12AM -0700, Paul E. McKenney wrote: > > On Thu, Jun 27, 2019 at 01:46:27PM -0400, Joel Fernandes wrote: > > > On Thu, Jun 27, 2019 at 1:43 PM Joel Fernandes > > > wrote: > > > > > > > > On Thu, Jun 2

Re: [PATCH 01/13] list.h: add list_pop and list_pop_entry helpers

2019-06-27 Thread Darrick J. Wong
On Thu, Jun 27, 2019 at 12:48:24PM +0200, Christoph Hellwig wrote: > We have a very common pattern where we want to delete the first entry > from a list and return it as the properly typed container structure. > > Add two helpers to implement this behavior. > > Signed-off-by: Christoph Hellwig

Re: [RFC PATCH RT 4/4] rcutorture: Avoid problematic critical section nesting

2019-06-27 Thread Paul E. McKenney
On Thu, Jun 27, 2019 at 03:16:09PM -0500, Scott Wood wrote: > On Thu, 2019-06-27 at 11:00 -0700, Paul E. McKenney wrote: > > On Wed, Jun 26, 2019 at 11:49:16AM -0500, Scott Wood wrote: > > > On Wed, 2019-06-26 at 11:08 -0400, Steven Rostedt wrote: > > > > On Fri, 21 Jun 2019 16:59:55 -0700 > > > >

Re: [PATCH] clk: clk-si544: Implement small frequency change support

2019-06-27 Thread Stephen Boyd
Quoting Mike Looijmans (2019-05-07 06:51:10) > The Si544 supports changing frequencies "on the fly" when the change is > less than 950 ppm from the current center frequency. The driver now > uses the small adjustment routine for implementing this. > > Signed-off-by: Mike Looijmans > --- Applied

Re: [PATCH] dt-bindings: Add silabs,si5341

2019-06-27 Thread Stephen Boyd
Quoting Mike Looijmans (2019-06-27 04:38:16) > On 26-06-19 23:24, Stephen Boyd wrote: > > Sorry, I'm getting through my inbox pile and saw this one. > > > > Quoting Mike Looijmans (2019-04-30 22:46:55) > >> On 30-04-19 02:17, Stephen Boyd wrote: > >>> > >>> Why can't that driver call clk_prepare_e

Re: [PATCH 8/9] keys: Network namespace domain tag [ver #4]

2019-06-27 Thread Willem de Bruijn
On Wed, Jun 19, 2019 at 12:49 PM David Howells wrote: > > Create key domain tags for network namespaces and make it possible to > automatically tag keys that are used by networked services (e.g. AF_RXRPC, > AFS, DNS) with the default network namespace if not set by the caller. > > This allows keys

Re: [PATCH v2] rcu: Change return type of rcu_spawn_one_boost_kthread()

2019-06-27 Thread Paul E. McKenney
On Thu, Jun 27, 2019 at 09:42:40AM -0400, Joel Fernandes wrote: > On Thu, Jun 27, 2019 at 04:07:46PM +0900, Byungchul Park wrote: > > Hello, > > > > I tested if the WARN_ON_ONCE() is fired with my box and it was ok. > > Looks pretty safe to me and nice clean up! > > Acked-by: Joel Fernandes (Goo

Re: [PATCH v3] dt-bindings: clock: Add silabs,si5341

2019-06-27 Thread Stephen Boyd
Quoting Mike Looijmans (2019-05-17 06:20:20) > Adds the devicetree bindings for the Si5341 and Si5340 chips from > Silicon Labs. These are multiple-input multiple-output clock > synthesizers. > > Signed-off-by: Mike Looijmans > > --- Applied to clk-next

Re: [PATCH] memcg: Add kmem.slabinfo to v2 for debugging purpose

2019-06-27 Thread Waiman Long
On 6/27/19 10:20 AM, Tejun Heo wrote: > Hello, Waiman. > > On Wed, Jun 26, 2019 at 12:56:14PM -0400, Waiman Long wrote: >> With memory cgroup v1, there is a kmem.slabinfo file that can be >> used to view what slabs are allocated to the memory cgroup. There >> is currently no such equivalent in memo

[PATCH V4 1/3] cpufreq: Move the IS_ENABLED(CPU_THERMAL) macro in a stub

2019-06-27 Thread Daniel Lezcano
The cpufreq_online and the cpufreq_offline [un]register the driver as a cooling device. This is done if the driver is flagged as a cooling device in addition with a IS_ENABLED macro to compile out the branching code. Group this test in a stub function added in the cpufreq header instead of having

[PATCH V4 2/3] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-27 Thread Daniel Lezcano
Currently the function cpufreq_cooling_register() returns a cooling device pointer which is used back as a pointer to call the function cpufreq_cooling_unregister(). Even if it is correct, it would make sense to not leak the structure inside a cpufreq driver and keep the code thermal code self-enca

[PATCH V4 3/3] thermal/drivers/cpu_cooling: cpufreq_cooling_register returns an int

2019-06-27 Thread Daniel Lezcano
It looks like after the changes in the patch the only reason for returning (struct thermal_cooling_device *) from cpufreq_cooling_register() is error checking, but it would be much more straightforward to return int for this purpose. Moreover, that would prevent the callers of it from doing incorr

Re: [PATCH v3] clk: Add Si5341/Si5340 driver

2019-06-27 Thread Stephen Boyd
Quoting Mike Looijmans (2019-05-17 06:23:52) > Adds a driver for the Si5341 and Si5340 chips. The driver does not fully > support all features of these chips, but allows the chip to be used > without any support from the "clockbuilder pro" software. > > If the chip is preprogrammed, that is, you b

Re: [PATCH v2] timer: document TIMER_PINNED

2019-06-27 Thread Thomas Gleixner
On Thu, 27 Jun 2019, Peter Xu wrote: > + * @TIMER_PINNED: A pinned timer will not be affected by any timer > + * placement heuristics (like, NOHZ) and will always be run on the CPU > + * when the timer was enqueued. s/when/on which/ > + * > + * Note: Because enqueuing of timers can actually migra

[PATCH v3 01/22] PM / devfreq: tegra30: Change irq type to unsigned int

2019-06-27 Thread Dmitry Osipenko
IRQ numbers are always positive, hence the corresponding variable should be unsigned to keep types consistent. This is a minor change that cleans up code a tad more. Suggested-by: Thierry Reding Acked-by: MyungJoo Ham Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 8 +++

[PATCH v3 16/22] PM / devfreq: tegra30: Use kHz units uniformly in the code

2019-06-27 Thread Dmitry Osipenko
Now that all kHz-conversion related bugs are fixed, we can use the kHz uniformly. This makes code cleaner and avoids integer divisions in the code, which is useful in a case of Tegra30 that has Cortex A9 CPU that doesn't support integer division instructions, hence all divisions are actually made i

[PATCH v3 03/22] PM / devfreq: tegra30: Handle possible round-rate error

2019-06-27 Thread Dmitry Osipenko
The EMC clock rate rounding technically could fail, hence let's handle the error cases properly. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/driver

[PATCH v3 11/22] PM / devfreq: tegra30: Add debug messages

2019-06-27 Thread Dmitry Osipenko
Add debug messages to know about what's happening in hardware and how driver reacts. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegr

[PATCH v3 19/22] PM / devfreq: tegra30: Optimize upper consecutive watermark selection

2019-06-27 Thread Dmitry Osipenko
The memory activity counter may get a bit higher than a watermark which is selected based on OPP that corresponds to a highest EMC rate, in this case watermark is lower than the actual memory activity is and thus results in unwanted "upper" interrupts. Signed-off-by: Dmitry Osipenko --- drivers/

[PATCH v3 18/22] PM / devfreq: tegra30: Optimize CPUFreq notifier

2019-06-27 Thread Dmitry Osipenko
When CPU's memory activity is low or memory activity is high such that CPU's frequency contribution to the boosting is not taken into account, then there is no need to schedule devfreq's update. This eliminates unnecessary CPU activity during of idling caused by the scheduled work. Signed-off-by:

[PATCH v3 17/22] PM / devfreq: tegra30: Use tracepoints for debugging

2019-06-27 Thread Dmitry Osipenko
Debug messages create too much CPU and memory activity by themselves, so it's difficult to debug lower rates and catch unwanted interrupts that happen rarely. Tracepoints are ideal in that regards because they do not contribute to the sampled date at all. This allowed me to catch few problems which

[PATCH v3 14/22] PM / devfreq: tegra30: Ensure that target freq won't overflow

2019-06-27 Thread Dmitry Osipenko
Potentially very high boosting could cause an integer overflow for a highly clocked memory after conversion to MHz. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra3

[PATCH v3 21/22] PM / devfreq: tegra30: Include appropriate header

2019-06-27 Thread Dmitry Osipenko
It's not very correct to include mod_devicetable.h for the OF device drivers and of_device.h should be included instead. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/d

[PATCH v3 10/22] PM / devfreq: tegra30: Don't enable consecutive-down interrupt on startup

2019-06-27 Thread Dmitry Osipenko
The consecutive-down event tells that we should perform frequency de-boosting, but boosting is in a reset state on start and hence the event won't do anything useful for us and it will be just a dummy interrupt request. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 1 -

[PATCH v3 02/22] PM / devfreq: tegra30: Keep interrupt disabled while governor is stopped

2019-06-27 Thread Dmitry Osipenko
There is no real need to keep interrupt always-enabled, will be nicer to keep it disabled while governor is inactive. Suggested-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 43 --- 1 file changed, 22 insertions(+), 21 dele

[PATCH v3 20/22] PM / devfreq: tegra30: Optimize upper average watermark selection

2019-06-27 Thread Dmitry Osipenko
I noticed that CPU may be crossing the dependency threshold very frequently for some workloads and this results in a lot of interrupts which could be avoided if MCALL client is keeping actual EMC frequency at a higher rate. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 2

[PATCH v3 15/22] PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out

2019-06-27 Thread Dmitry Osipenko
There is another kHz-conversion bug in the code, resulting in integer overflow. Although, this time the resulting value is 4294966296 and it's close to ULONG_MAX, which is okay in this case. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 2 +- 1 file changed, 1 insertion(

[PATCH v3 13/22] PM / devfreq: tegra30: Constify structs

2019-06-27 Thread Dmitry Osipenko
Constify unmodifiable structs for consistency. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c index ecbd58504cd8..d3e117d827d2 10

[PATCH v3 22/22] PM / devfreq: tegra20/30: Add Dmitry as a maintainer

2019-06-27 Thread Dmitry Osipenko
I was contributing to the NVIDIA Tegra20+ devfreq drivers recently and want to help keep them working and evolving in the future. Signed-off-by: Dmitry Osipenko --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 792d2d927712..bfd827417a27

[PATCH v3 04/22] PM / devfreq: tegra30: Drop write-barrier

2019-06-27 Thread Dmitry Osipenko
There is no need in a write-barrier now, given that interrupt masking is handled by CPU's GIC now. Hence we know exactly that interrupt won't fire after stopping the devfreq's governor. In other cases we don't care about potential buffering of the writes to hardware and thus there is no need to sta

[PATCH v3 09/22] PM / devfreq: tegra30: Reset boosting on startup

2019-06-27 Thread Dmitry Osipenko
Governor could be stopped while boosting is active. We have assumption that everything is reset on governor's restart, including the boosting value, which was missed. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drive

[PATCH v3 08/22] PM / devfreq: tegra30: Move clk-notifier's registration to governor's start

2019-06-27 Thread Dmitry Osipenko
There is no point in receiving of the notifications while governor is stopped, let's keep them disabled like we do for the CPU freq-change notifications. This also fixes a potential use-after-free bug if notification happens after device's removal. Signed-off-by: Dmitry Osipenko --- drivers/devf

[PATCH v3 12/22] PM / devfreq: tegra30: Inline all one-line functions

2019-06-27 Thread Dmitry Osipenko
Depending on a kernel's configuration, a single line functions may not be inlined by compiler (like enabled ftracing for example). Let's inline such functions explicitly for consistency. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 13 +++-- 1 file changed, 7 in

[PATCH v3 06/22] PM / devfreq: tegra30: Tune up boosting thresholds

2019-06-27 Thread Dmitry Osipenko
Now that average-sustain coefficient / multiplier is gone, it won't hurt to re-tune the boosting thresholds to get a bit harder boosting for MCALL clients, resulting in a more reactive governing in a case of multimedia applications usage like 3d / video. Signed-off-by: Dmitry Osipenko --- driver

[PATCH v3 07/22] PM / devfreq: tegra30: Use CPUFreq notifier

2019-06-27 Thread Dmitry Osipenko
The CPU's client need to take into account that CPUFreq may change while memory activity not, staying high. Thus an appropriate frequency notifier should be used in addition to the clk-notifier. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 105 +-

Re: your mail

2019-06-27 Thread Tejun Heo
On Wed, Jun 26, 2019 at 04:52:36PM +0200, Sebastian Andrzej Siewior wrote: > A small series of tiny cleanups. Applied 1-2 to wq/for-5.3. Thanks. -- tejun

[PATCH v3 05/22] PM / devfreq: tegra30: Set up watermarks properly

2019-06-27 Thread Dmitry Osipenko
The current implementation is inaccurate and results in very intensive interrupt activity, which neglects the whole idea of polling offload to hardware. The reason of the shortcoming is that watermarks are not set up correctly and this results in ACTMON constantly asking to change freq and then the

[PATCH v3 00/22] More improvements for Tegra30 devfreq driver

2019-06-27 Thread Dmitry Osipenko
Hello, This series addresses some additional review comments that were made by Thierry Reding to [1] and makes several important changes to the driver, fixing excessive interrupts activity. In the end I'm proposing myself as a maintainer for the Tegra devfreq drivers. [1] https://lore.kernel.org

Re: [PATCH v3] platform/chrome: Expose resume result via debugfs

2019-06-27 Thread Enric Balletbo Serra
Hi Evan, Lee, Missatge de Evan Green del dia dj., 27 de juny 2019 a les 22:46: > > For ECs that support it, the EC returns the number of slp_s0 > transitions and whether or not there was a timeout in the resume > response. Expose the last resume result to usermode via debugfs so > that usermode c

power9 NUMA crash while reading debugfs imc_cmd

2019-06-27 Thread Qian Cai
mdio ahci libahci tg3 libphy libata firmware_class dm_mirror dm_region_hash dm_log dm_mod [ 1139.415595][ T5301] CPU: 67 PID: 5301 Comm: cat Not tainted 5.2.0-rc6-next- 20190627+ #19 [ 1139.415634][ T5301] NIP:  c00d0d58 LR: c049aa18 CTR: c00d0d50 [ 1139.415675][ T5301]

Re: linux-next: manual merge of the nand tree with Linus' tree

2019-06-27 Thread Miquel Raynal
Hi Stephen, Miquel Raynal wrote on Thu, 27 Jun 2019 16:51:37 +0200: > Hi Stephen, > > Stephen Rothwell wrote on Tue, 4 Jun 2019 > 10:54:18 +1000: > > > Hi all, > > > > Today's linux-next merge of the nand tree got a conflict in: > > > > Documentation/devicetree/bindings/mtd/brcm,brcmnand.

Re: [PATCH RESEND] Revert "x86/paravirt: Set up the virt_spin_lock_key after static keys get initialized"

2019-06-27 Thread Thomas Gleixner
On Wed, 26 Jun 2019, Zhenzhong Duan wrote: > This reverts commit ca5d376e17072c1b60c3fee66f3be58ef018952d. > > Commit 8990cac6e5ea ("x86/jump_label: Initialize static branching > early") adds jump_label_init() call in setup_arch() to make static > keys initialized early, so we could use the origi

[PATCH] .gitignore: ignore *.rej files

2019-06-27 Thread Nick Desaulniers
Such as those produced by the `patch` utility. We already ignore *.orig files, and there are currently no *.rej files in the tree at this time. Signed-off-by: Nick Desaulniers --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7587ef56b92d..f97430cb2

Re: [PATCH 2/2] mm, slab: Extend vm/drop_caches to shrink kmem slabs

2019-06-27 Thread Roman Gushchin
On Thu, Jun 27, 2019 at 04:57:50PM -0400, Waiman Long wrote: > On 6/26/19 4:19 PM, Roman Gushchin wrote: > >> > >> +#ifdef CONFIG_MEMCG_KMEM > >> +static void kmem_cache_shrink_memcg(struct mem_cgroup *memcg, > >> + void __maybe_unused *arg) > >> +{ > >> + struct kme

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