[PATCH] ARM: ARM_ERRATA_775420: Spelling s/date/data/

2019-08-28 Thread Geert Uytterhoeven
Caching dates is never a good idea ;-) Signed-off-by: Geert Uytterhoeven --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index dcf46f0e45c24a5f..eb18279a63027c08 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -

[PATCH v2] checkpatch: check for nested unlikely calls

2019-08-28 Thread Denis Efremov
IS_ERR, IS_ERR_OR_NULL, IS_ERR_VALUE already contain unlikely optimization internally. Thus, there is no point in calling these functions under likely/unlikely. This check is based on the coccinelle rule developed by Enrico Weigelt https://lore.kernel.org/lkml/1559767582-11081-1-git-send-email-i..

[PATCH] powerpc/booke: Spelling s/date/data/

2019-08-28 Thread Geert Uytterhoeven
Caching dates is never a good idea ;-) Fixes: e7affb1dba0e9068 ("powerpc/cache: add cache flush operation for various e500") Signed-off-by: Geert Uytterhoeven --- arch/powerpc/kernel/cpu_setup_fsl_booke.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/cp

Re: [PATCHv5] drivers/amba: add reset control to amba bus probe

2019-08-28 Thread Dinh Nguyen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 8/27/19 2:25 PM, Valdis Kl?tnieks wrote: > On Mon, 26 Aug 2019 10:42:52 -0500, Dinh Nguyen said: >> The primecell controller on some SoCs, i.e. SoCFPGA, is held in >> reset by default. Until recently, the DMA controller was brought >> out of res

[PATCH] csky: use generic free_initrd_mem()

2019-08-28 Thread Mike Rapoport
The csky implementation of free_initrd_mem() is an open-coded version of free_reserved_area() without poisoning. Remove it and make csky use the generic version of free_initrd_mem(). Signed-off-by: Mike Rapoport --- arch/csky/mm/init.c | 16 1 file changed, 16 deletions(-) dif

Re: [PATCH v2] PCI: Move static keyword to the front of declarations in pci-bridge-emul.c

2019-08-28 Thread Thomas Petazzoni
Hello, On Wed, 28 Aug 2019 15:17:33 +0200 Krzysztof Wilczynski wrote: > Move the static keyword to the front of declarations of > pci_regs_behavior and pcie_cap_regs_behavior, and resolve > the following compiler warning that can be seen when > building with warnings enabled (W=1): > > drivers/

Re: [PATCH v2] USB: serial: ftdi_sio: add support for FT232H CBUS gpios

2019-08-28 Thread Johan Hovold
On Thu, Aug 15, 2019 at 05:40:54PM +, Matthew Michilot wrote: > Enable support for cbus gpios on FT232H. The cbus configuration is > stored in one word in the EEPROM at byte-offset 0x1a with the mux You forgot to fix the copy-paste error here; it should be "two words" as I mentioned before. >

[PATCH] powerpc/reg: use ASM_FTR_IFSET() instead of opencoding fixup.

2019-08-28 Thread Christophe Leroy
mftb() includes a feature fixup for CELL ppc. Use ASM_FTR_IFSET() macro instead of opencoding the setup of the fixup sections. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/reg.h | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/in

Re: [linux-sunxi] Re: [PATCH] mmc: sunxi: fix unusuable eMMC on some H6 boards by disabling DDR

2019-08-28 Thread Maxime Ripard
On Wed, Aug 28, 2019 at 09:29:32PM +0800, Chen-Yu Tsai wrote: > On Wed, Aug 28, 2019 at 8:52 PM Linus Walleij > wrote: > > > > On Sun, Aug 25, 2019 at 5:06 PM Alejandro González > > wrote: > > > > > Jernej Skrabec compared the BSP driver with this > > > driver, and found that the BSP driver conf

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Michael Ellerman
Nathan Chancellor writes: > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > setjmp is used") disabled -Wbuiltin-requires-header because of a warning > about the setjmp and longjmp declarations. > > r367387 in clang added another diagnostic around this, complaining that > t

Re: dataring_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-28 Thread John Ogness
On 2019-08-27, Petr Mladek wrote: +/** + * dataring_push() - Reserve a data block in the data array. + * + * @dr: The data ringbuffer to reserve data in. + * + * @size: The size to reserve. + * + * @desc: A pointer to a descriptor to store the data block i

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Waiman Long
On 8/28/19 4:00 AM, Michal Hocko wrote: > On Tue 27-08-19 16:22:38, Michal Hocko wrote: >> Dan, isn't this something we have discussed recently? > This was > http://lkml.kernel.org/r/20190725023100.31141-3-t-fukas...@vx.jp.nec.com > and talked about /proc/kpageflags but this is essentially the sam

Re: [linux-sunxi] Re: [PATCH] mmc: sunxi: fix unusuable eMMC on some H6 boards by disabling DDR

2019-08-28 Thread Chen-Yu Tsai
On Wed, Aug 28, 2019 at 9:43 PM Maxime Ripard wrote: > > On Wed, Aug 28, 2019 at 09:29:32PM +0800, Chen-Yu Tsai wrote: > > On Wed, Aug 28, 2019 at 8:52 PM Linus Walleij > > wrote: > > > > > > On Sun, Aug 25, 2019 at 5:06 PM Alejandro González > > > wrote: > > > > > > > Jernej Skrabec compared t

Re: [PATCHv5] drivers/amba: add reset control to amba bus probe

2019-08-28 Thread Valdis Klētnieks
On Wed, 28 Aug 2019 08:34:20 -0500, Dinh Nguyen said: > > Does this DTRT for both old and new U-Boots? My naive reading of > > this patch > > What is a DTRT? Do The Right Thing, sorry... > > says on an old U-Boot, we end up attempting to bring it out of > > reset even though they had already bee

Re: [PATCH V6 5/5] mmc: host: sdhci-pci: Add Genesys Logic GL975x support

2019-08-28 Thread Michael K. Johnson
On Wed, Aug 28, 2019 at 04:13:03PM +0300, Adrian Hunter wrote: > On 27/08/19 3:33 AM, Ben Chuang wrote: > Looks good, one minor comment ... > > +#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS > > Arguably CONFIG_MMC_SDHCI_IO_ACCESSORS needs to be removed altogether. i.e. > making the accessors always availa

Re: [tip: timers/core] tick: Mark sched_timer to expire in hard interrupt context

2019-08-28 Thread Frederic Weisbecker
On Wed, Aug 28, 2019 at 11:03:33AM -, tip-bot2 for Sebastian Andrzej Siewior wrote: > The following commit has been merged into the timers/core branch of tip: > > Commit-ID: 71fed982d63cb2bb88db6f36059e3b14a7913846 > Gitweb: > https://git.kernel.org/tip/71fed982d63cb2bb88db6f36059

Re: [PATCH][next] ima: ima_modsig: Fix use-after-free bug in ima_read_modsig

2019-08-28 Thread Mimi Zohar
Hi Gustavo, On Sun, 2019-08-11 at 18:55 -0500, Gustavo A. R. Silva wrote: > hdr is being freed and then dereferenced by accessing hdr->pkcs7_msg > > Fix this by copying the value returned by PTR_ERR(hdr->pkcs7_msg) into > automatic variable err for its safe use after freeing hdr. > > Addresses-C

Re: [PATCH 03/15] sched,fair: redefine runnable_load_avg as the sum of task_h_load

2019-08-28 Thread Vincent Guittot
Hi Rik, On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > The runnable_load magic is used to quickly propagate information about > runnable tasks up the hierarchy of runqueues. The runnable_load_avg is > mostly used for the load balancing code, which only examines the value at > the root cfs_

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-08-28 Thread Ming Lei
On Wed, Aug 28, 2019 at 01:23:06PM +0200, Thomas Gleixner wrote: > On Wed, 28 Aug 2019, Ming Lei wrote: > > On Wed, Aug 28, 2019 at 01:09:44AM +0200, Thomas Gleixner wrote: > > > > > Also how is that supposed to work when sched_clock is jiffies based? > > > > > > > > Good catch, looks ktime_get_ns

Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Liang, Kan
On 8/28/2019 5:02 AM, Peter Zijlstra wrote: On Wed, Aug 28, 2019 at 10:44:16AM +0200, Peter Zijlstra wrote: Let me clean up this mess for you. Here, how's that. Now we don't check is_metric_idx() _3_ times on the enable/disable path and all the topdown crud is properly placed in the fixed

[PATCH v2] x86/PCI: Correct warnings about missing or incorrect SPDX license headers.

2019-08-28 Thread Krzysztof Wilczynski
Add the missing "SPDX-License-Identifier" license header to the arch/x86/pci/numachip.c (use the GPL-2.0 identifier derived using the comment mentioning license from the top of the file), and remove license boilerplate as per a similar commit 8cfab3cf63cf ("PCI: Add SPDX GPL-2.0 to replace GPL v2 b

Re: [PATCH 06/15] sched,cfs: use explicit cfs_rq of parent se helper

2019-08-28 Thread Vincent Guittot
On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > Use an explicit "cfs_rq of parent sched_entity" helper in a few > strategic places, where cfs_rq_of(se) may no longer point at the The only case is the sched_entity of a task which will point to root cfs, isn't it ? > right runqueue once we f

[PATCH 07/23] libperf: Add PERF_RECORD_ID_INDEX 'struct id_index_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_ID_INDEX event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Adding PRI_ld64 define, so we can use it in printf output. Link: http://lkml.kernel.org/n/tip-rfqlci30hjrzropnxjnwo

[PATCH 17/23] libperf: Add PERF_RECORD_STAT_ROUND 'struct stat_round_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_STAT_ROUND event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-x7c2m4n8303nftb4maf33...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/pe

[PATCH 00/23] libperf: Add rest of events to perf/event.h

2019-08-28 Thread Jiri Olsa
hi, to export 'union perf_event' we need to export the rest of events. It's also available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fixes thanks, jirka --- Jiri Olsa (23): libperf: Add PERF_RECORD_HEADER_ATTR 'struct attr_event' to perf/event.h

[PATCH 13/23] libperf: Add PERF_RECORD_SWITCH 'struct context_switch_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_SWITCH event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-hduuqm2bnzbxhhoynf2x3...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/l

[PATCH 19/23] libperf: Add PERF_RECORD_HEADER_FEATURE 'struct feature_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_FEATURE event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-adohmimljqrbq2i3dxhhr...@git.kernel.org Signed-off-by: Jiri Olsa --- tool

[PATCH 02/23] libperf: Add PERF_RECORD_CPU_MAP 'struct cpu_map_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_CPU_MAP event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-mvxietu3tdtqfi7e2nbqk...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/

[PATCH 04/23] libperf: Add PERF_RECORD_HEADER_EVENT_TYPE 'struct event_type_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_EVENT_TYPE event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-1zsyvaupk78y7w42jfrvu...@git.kernel.org Signed-off-by: Jiri Olsa --- t

[PATCH 11/23] libperf: Add PERF_RECORD_AUX 'struct aux_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUX event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-u8n9stb8xl6hq0qoqjego...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/

[PATCH 10/23] libperf: Add PERF_RECORD_AUXTRACE_ERROR 'struct auxtrace_error_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUXTRACE_ERROR event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-2i1ggfthfst9ont7ulmej...@git.kernel.org Signed-off-by: Jiri Olsa --- tool

[PATCH 12/23] libperf: Add PERF_RECORD_ITRACE_START 'struct itrace_start_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_ITRACE_START event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-it9jc5sr10hblg89ljuz7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/

[PATCH 09/23] libperf: Add PERF_RECORD_AUXTRACE 'struct auxtrace_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUXTRACE event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-wrq43lrq47pqj0vhdqpgy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf

[PATCH 01/23] libperf: Add PERF_RECORD_HEADER_ATTR 'struct attr_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_ATTR event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-53ciuchxtqxz9kuntcd5v...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/p

[PATCH 03/23] libperf: Add PERF_RECORD_EVENT_UPDATE 'struct event_update_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_EVENT_UPDATE event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-evb1r0gk2usfnby0b9dxl...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/

[PATCH 08/23] libperf: Add PERF_RECORD_AUXTRACE_INFO 'struct auxtrace_info_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUXTRACE_INFO event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-794xxtrbjexwc0o0p2o79...@git.kernel.org Signed-off-by: Jiri Olsa --- tools

[PATCH 21/23] libperf: Add 'union perf_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
So it's available for libperf's users. Link: http://lkml.kernel.org/n/tip-2b9e9f0y7szdwtgnyua58...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 36 + tools/perf/util/event.h | 36 - 2 files c

Latest kernel version no NOT reflecting on kernel.org

2019-08-28 Thread Bhaskar Chowdhury
Am I the only one, who is not seeing it getting reflected on kernel.org??? Well, I have tried it 2 different browsers.cleared caches several times(heck) .3 different devices .and importantly 3 different networks. Wondering! Thanks, Bhaskar signature.asc Description: PGP signatur

Re: [PATCH] i801_smbus: clear SMBALERT status bit and disable SMBALERT interrupt

2019-08-28 Thread Jean Delvare
Hi Lingyan, On Mon, 12 Aug 2019 10:40:34 +0800, lingyxu wrote: > From: Lingyan Xu > > In current i801 driver, SMBALERT interrupt is allowed > (Slave Command Register bit2 is 0). > But these is no handler for SMBALERT interrupt in i801_isr, > if there is SMBALERT interrupt asserted and deasserted

[PATCH 22/23] libperf: Rename the PERF_RECORD_ structs to have a "perf" prefix

2019-08-28 Thread Jiri Olsa
Even more, to have a "perf_record_" prefix, so that they match the PERF_RECORD_ enum they map to. Link: http://lkml.kernel.org/n/tip-rrypskxisy9mpmu96jtgp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/arm/util/cs-etm.c| 4 +- tools/perf/arch/arm64/util/arm-spe.c | 2 +-

[PATCH 18/23] libperf: Add PERF_RECORD_TIME_CONV 'struct time_conv_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_TIME_CONV event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-dize9k67s0341vek7hs8v...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/per

[PATCH 20/23] libperf: Add PERF_RECORD_COMPRESSED 'struct compressed_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_COMPRESSED event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-czl9nuv0c9tpdkzby92lx...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/pe

[PATCH 15/23] libperf: Add PERF_RECORD_STAT_CONFIG 'struct stat_config_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_STAT_CONFIG event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-ftr4j2l1by743i4rk9msj...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/p

[PATCH 16/23] libperf: Add PERF_RECORD_STAT 'struct stat_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_STAT event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-80tqbm5o9hhyl924f8khd...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib

[PATCH 14/23] libperf: Add PERF_RECORD_THREAD_MAP 'struct thread_map_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_THREAD_MAP event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-7gqcq30lozmcm0rsbs8kq...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/pe

[PATCH 23/23] libperf: Move 'enum perf_user_event_type' to perf/event.h

2019-08-28 Thread Jiri Olsa
So it's available for libperf's users. Link: http://lkml.kernel.org/n/tip-oci51ex7bb8gjuqzy9u18...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 23 +++ tools/perf/util/event.h | 23 --- 2 files changed, 23 i

Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-08-28 Thread Sudeep Holla
On Wed, Aug 28, 2019 at 03:02:58AM +, Peng Fan wrote: > From: Peng Fan > > The ARM SMC/HVC mailbox binding describes a firmware interface to trigger > actions in software layers running in the EL2 or EL3 exception levels. > The term "ARM" here relates to the SMC instruction as part of the ARM

[PATCH 06/23] libperf: Add PERF_RECORD_HEADER_BUILD_ID 'struct build_id_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_BUILD_ID event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Adding the fix value for build_id variable, because it will never change. Link: http://lkml.kernel.org/n/tip

Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Liang, Kan
On 8/28/2019 3:52 AM, Peter Zijlstra wrote: On Mon, Aug 26, 2019 at 07:47:34AM -0700, kan.li...@linux.intel.com wrote: diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 81b005e4c7d9..54534ff00940 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -1033,18 +1

Re: [PATCH RT v2 2/3] sched: migrate_enable: Use sleeping_lock to indicate involuntary sleep

2019-08-28 Thread Joel Fernandes
On Wed, Aug 28, 2019 at 03:14:33PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-08-28 05:54:26 [-0700], Paul E. McKenney wrote: > > On Wed, Aug 28, 2019 at 11:27:39AM +0200, Sebastian Andrzej Siewior wrote: > > > On 2019-08-27 08:53:06 [-0700], Paul E. McKenney wrote: > > > > Am I understandin

[PATCH 05/23] libperf: Add PERF_RECORD_HEADER_TRACING_DATA 'struct tracing_data_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_TRACING_DATA event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-a3vv3556pgb0k7gmp1hyb...@git.kernel.org Signed-off-by: Jiri Olsa ---

Re: [PATCH v5 2/2] mailbox: introduce ARM SMC based mailbox

2019-08-28 Thread Sudeep Holla
On Wed, Aug 28, 2019 at 03:03:02AM +, Peng Fan wrote: > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data when it > r

Re: [PATCH 2/5] rcu/tree: Add multiple in-flight batches of kfree_rcu work

2019-08-28 Thread Joel Fernandes
On Wed, Aug 28, 2019 at 07:52:53AM +0800, Boqun Feng wrote: > Hi Joel, > > On Tue, Aug 27, 2019 at 03:01:56PM -0400, Joel Fernandes (Google) wrote: > > During testing, it was observed that amount of memory consumed due > > kfree_rcu() batching is 300-400MB. Previously we had only a single > > head

[PATCH v8] thermal: cpu_cooling: Migrate to using the EM framework

2019-08-28 Thread Quentin Perret
The newly introduced Energy Model framework manages power cost tables in a generic way. Moreover, it supports several types of models since the tables can come from DT or firmware (through SCMI) for example. On the other hand, the cpu_cooling subsystem manages its own power cost tables using only D

[PATCH net-next 08/15] net: sgi: ioc3-eth: introduce chip start function

2019-08-28 Thread Thomas Bogendoerfer
ioc3_init did everything from reset to init rings to starting the chip. This change move out chip start into a new function as preparation for easier handling of receive buffer allocation failures. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 49 ++

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-28 Thread Kirill A. Shutemov
On Wed, Aug 28, 2019 at 09:57:08AM +0200, Michal Hocko wrote: > On Tue 27-08-19 10:06:20, Yang Shi wrote: > > > > > > On 8/27/19 5:59 AM, Kirill A. Shutemov wrote: > > > On Tue, Aug 27, 2019 at 03:17:39PM +0300, Kirill A. Shutemov wrote: > > > > On Tue, Aug 27, 2019 at 02:09:23PM +0200, Michal Ho

[PATCH net-next 01/15] MIPS: SGI-IP27: remove ioc3 ethernet init

2019-08-28 Thread Thomas Bogendoerfer
Removed not needed disabling of ethernet interrupts in IP27 platform code. Signed-off-by: Thomas Bogendoerfer --- arch/mips/sgi-ip27/ip27-init.c | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c index 066b33f50bcc..5

[PATCH net-next 11/15] net: sgi: ioc3-eth: use dma-direct for dma allocations

2019-08-28 Thread Thomas Bogendoerfer
Replace the homegrown DMA memory allocation, which only works on SGI-IP27 machines, with the generic dma allocations. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 146 1 file changed, 114 insertions(+), 32 deletions(-) diff --

[PATCH net-next 10/15] net: sgi: ioc3-eth: refactor rx buffer allocation

2019-08-28 Thread Thomas Bogendoerfer
Move common code for rx buffer setup into ioc3_alloc_skb and deal with allocation failures. Also clean up allocation size calculation. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 95 ++--- 1 file changed, 45 insertions(+), 50 delet

[PATCH net-next 09/15] net: sgi: ioc3-eth: split ring cleaning/freeing and allocation

2019-08-28 Thread Thomas Bogendoerfer
Do tx ring cleaning and freeing of rx buffers, when chip is shutdown and allocate buffers before bringing chip up. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH net-next 15/15] net: sgi: ioc3-eth: no need to stop queue set_multicast_list

2019-08-28 Thread Thomas Bogendoerfer
netif_stop_queue()/netif_wake_qeue() aren't needed for changing multicast filters. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index 5d

[PATCH net-next 12/15] net: sgi: ioc3-eth: use csum_fold

2019-08-28 Thread Thomas Bogendoerfer
replace open coded checksum folding by csum_fold. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index aea3fecfac24..82a

[PATCH net-next 14/15] net: sgi: ioc3-eth: protect emcr in all cases

2019-08-28 Thread Thomas Bogendoerfer
emcr in private struct wasn't always protected by spinlock. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index b8aea19fbeba..5de830

Re: numlist API Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-28 Thread John Ogness
On 2019-08-28, Petr Mladek wrote: > I only think that, especially, numlist API is too generic in v4. > It is not selfcontained. The consistency depends on external barriers. > > I believe that it might become fully self-contained and consistent > if we reduce possibilities of the generic usage. In

[PATCH net-next 00/15] ioc3-eth improvements

2019-08-28 Thread Thomas Bogendoerfer
In my patch series for splitting out the serial code from ioc3-eth by using a MFD device there was one big patch for ioc3-eth.c, which wasn't really usefull for reviews. This series contains the ioc3-eth changes splitted in smaller steps and few more cleanups. Only the conversion to MFD will be don

[PATCH net-next 06/15] net: sgi: ioc3-eth: get rid of ioc3_clean_rx_ring()

2019-08-28 Thread Thomas Bogendoerfer
Clean rx ring is just called once after a new ring is allocated, which is per definition clean. So there is not need for this function. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 21 - 1 file changed, 21 deletions(-) diff --git a/drivers/net

[PATCH net-next 04/15] net: sgi: ioc3-eth: use defines for constants dealing with desc rings

2019-08-28 Thread Thomas Bogendoerfer
Descriptor ring sizes of the IOC3 are more or less fixed size. To make clearer where there is a relation to ring sizes use defines. Reviewed-by: Jakub Kicinski Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 42 + 1 file changed,

[PATCH net-next 05/15] net: sgi: ioc3-eth: allocate space for desc rings only once

2019-08-28 Thread Thomas Bogendoerfer
Memory for descriptor rings are allocated/freed, when interface is brought up/down. Since the size of the rings is not changeable by hardware, we now allocate rings now during probe and free it, when device is removed. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c |

[PATCH net-next 03/15] net: sgi: ioc3-eth: remove checkpatch errors/warning

2019-08-28 Thread Thomas Bogendoerfer
Before massaging the driver further fix oddities found by checkpatch like - wrong indention - comment formatting - use of printk instead or netdev_xxx/pr_xxx Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 275 +--- 1 file changed, 130

[PATCH net-next 07/15] net: sgi: ioc3-eth: separate tx and rx ring handling

2019-08-28 Thread Thomas Bogendoerfer
After allocation of descriptor memory is now done once in probe handling of tx ring is completely done by ioc3_clean_tx_ring. So we remove the remaining tx ring actions out of ioc3_alloc_rings and ioc3_free_rings and rename it to ioc3_[alloc|free]_rx_bufs to better describe what they are doing. Si

[PATCH net-next 13/15] net: sgi: ioc3-eth: Fix IPG settings

2019-08-28 Thread Thomas Bogendoerfer
The half/full duplex settings for inter packet gap counters/timer were reversed. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3

[PATCH net-next 02/15] MIPS: SGI-IP27: restructure ioc3 register access

2019-08-28 Thread Thomas Bogendoerfer
Break up the big ioc3 register struct into functional pieces to make use in sub-function drivers more straightforward. And while doing that get rid of all volatile access by using readX/writeX. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/sn/ioc3.h | 357 -

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Arnd Bergmann
On Wed, Aug 28, 2019 at 11:00 AM Arnd Bergmann wrote: > On Tue, Aug 27, 2019 at 11:22 PM 'Nick Desaulniers' via Clang Built Linux > wrote: > http://paste.ubuntu.com/p/XjdDsypRxX/ > 0x5BA1B7A1:arch/x86/ia32/ia32_signal.o: warning: objtool: > ia32_setup_rt_frame()+0x238: call to memset() with UAC

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-08-28 Thread Thomas Gleixner
On Wed, 28 Aug 2019, Ming Lei wrote: > On Wed, Aug 28, 2019 at 01:23:06PM +0200, Thomas Gleixner wrote: > > On Wed, 28 Aug 2019, Ming Lei wrote: > > > On Wed, Aug 28, 2019 at 01:09:44AM +0200, Thomas Gleixner wrote: > > > > > > Also how is that supposed to work when sched_clock is jiffies based? >

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Michal Hocko
On Wed 28-08-19 09:46:21, Waiman Long wrote: > On 8/28/19 4:00 AM, Michal Hocko wrote: > > On Tue 27-08-19 16:22:38, Michal Hocko wrote: > >> Dan, isn't this something we have discussed recently? > > This was > > http://lkml.kernel.org/r/20190725023100.31141-3-t-fukas...@vx.jp.nec.com > > and talk

Re: [PATCH 05/15] sched,fair: remove cfs_rqs from leaf_cfs_rq_list bottom up

2019-08-28 Thread Vincent Guittot
On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > Reducing the overhead of the CPU controller is achieved by not walking > all the sched_entities every time a task is enqueued or dequeued. > > One of the things being checked every single time is whether the cfs_rq > is on the rq->leaf_cfs_rq_l

[PATCH v2 1/3] arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi

2019-08-28 Thread Neil Armstrong
To prepare support of the Amlogic SM1 based Khadas VIM3, move the non-G12B specific nodes (all except DVFS and Audio) to a new meson-khadas-vim3.dtsi Signed-off-by: Neil Armstrong --- .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 1 + .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 355 -

[PATCH v2 2/3] amlogic: arm: add Amlogic SM1 based Khadas VIM3L bindings

2019-08-28 Thread Neil Armstrong
The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package. Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the khadas,vim3l compatible. Signed-off-by: Neil Armstrong --- Documentation/devi

[PATCH v2 0/3] arm64: meson-sm1: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant. The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed : - DVFS support is different - Audio support not yet available for SM1 This patchset moved all th

[PATCH v2 3/3] arm64: dts: khadas-vim3: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
Add the Amlogic SM1 based Khadas VIM3L, sharing all the same features as the G12B based VIM3, but: - a different DVFS support since only a single cluster is available - audio is still not available on SM1 Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + ...

Re: [PATCH] csky: use generic free_initrd_mem()

2019-08-28 Thread Guo Ren
Acked-by: Guo Ren On Wed, Aug 28, 2019 at 9:35 PM Mike Rapoport wrote: > > The csky implementation of free_initrd_mem() is an open-coded version of > free_reserved_area() without poisoning. > > Remove it and make csky use the generic version of free_initrd_mem(). > > Signed-off-by: Mike Rapoport

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-28 Thread Michal Hocko
On Wed 28-08-19 17:03:29, Kirill A. Shutemov wrote: > On Wed, Aug 28, 2019 at 09:57:08AM +0200, Michal Hocko wrote: > > On Tue 27-08-19 10:06:20, Yang Shi wrote: > > > > > > > > > On 8/27/19 5:59 AM, Kirill A. Shutemov wrote: > > > > On Tue, Aug 27, 2019 at 03:17:39PM +0300, Kirill A. Shutemov wr

Re: [PATCH v2 0/6] Rework REFCOUNT_FULL using atomic_fetch_* operations

2019-08-28 Thread Will Deacon
On Wed, Aug 28, 2019 at 09:30:52AM +0200, Peter Zijlstra wrote: > On Tue, Aug 27, 2019 at 05:31:58PM +0100, Will Deacon wrote: > > Will Deacon (6): > > lib/refcount: Define constants for saturation and max refcount values > > lib/refcount: Ensure integer operands are treated as signed > > lib

Re: [PATCH v2 2/3] amlogic: arm: add Amlogic SM1 based Khadas VIM3L bindings

2019-08-28 Thread Neil Armstrong
Damn wrong subject.. please ignore this one. Neil On 28/08/2019 16:11, Neil Armstrong wrote: > The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible > Amlogic SM1 SoC in the S905D3 variant package. > > Change the description to match the S905X3/D3/Y3 variants like the G12A >

[PATCH v3 2/3] dt-bindings: arm: amlogic: add Amlogic SM1 based Khadas VIM3L bindings

2019-08-28 Thread Neil Armstrong
The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package. Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the khadas,vim3l compatible. Signed-off-by: Neil Armstrong --- Documentation/devi

[PATCH v3 0/3] arm64: meson-sm1: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant. The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed : - DVFS support is different - Audio support not yet available for SM1 This patchset moved all th

[PATCH v3 1/3] arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi

2019-08-28 Thread Neil Armstrong
To prepare support of the Amlogic SM1 based Khadas VIM3, move the non-G12B specific nodes (all except DVFS and Audio) to a new meson-khadas-vim3.dtsi Signed-off-by: Neil Armstrong --- .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 1 + .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 355 -

[PATCH v3 3/3] arm64: dts: khadas-vim3: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
Add the Amlogic SM1 based Khadas VIM3L, sharing all the same features as the G12B based VIM3, but: - a different DVFS support since only a single cluster is available - audio is still not available on SM1 Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + ...

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Sedat Dilek
On Wed, Aug 28, 2019 at 9:20 AM Sedat Dilek wrote: > > On Wed, Aug 28, 2019 at 7:55 AM Masahiro Yamada > wrote: > > > > Instead of the warning-[123] magic, let's accumulate compiler options > > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > > easier to understand what is

Re: [PATCH v2 4/8] sched/fair: rework load_balance

2019-08-28 Thread Valentin Schneider
On 26/08/2019 11:11, Vincent Guittot wrote: >>> + case group_fully_busy: >>> + /* >>> + * Select the fully busy group with highest avg_load. >>> + * In theory, there is no need to pull task from such >>> + * kind of group because tasks have all

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Waiman Long
On 8/28/19 10:09 AM, Michal Hocko wrote: > On Wed 28-08-19 09:46:21, Waiman Long wrote: >> On 8/28/19 4:00 AM, Michal Hocko wrote: >>> On Tue 27-08-19 16:22:38, Michal Hocko wrote: Dan, isn't this something we have discussed recently? >>> This was >>> http://lkml.kernel.org/r/20190725023100.3

[PATCH 2/3] pagewalk: separate function pointers from iterator data

2019-08-28 Thread Christoph Hellwig
The mm_walk structure currently mixed data and code. Split out the operations vectors into a new mm_walk_ops structure, and while we are changing the API also declare the mm_walk structure inside the walk_page_range and walk_page_vma functions. Based on patch from Linus Torvalds. Signed-off-by:

[PATCH 1/3] mm: split out a new pagewalk.h header from mm.h

2019-08-28 Thread Christoph Hellwig
Add a new header for the two handful of users of the walk_page_range / walk_page_vma interface instead of polluting all users of mm.h with it. Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Hellstrom Reviewed-by: Steven Price --- arch/openrisc/kernel/dma.c | 1 + arch/power

cleanup the walk_page_range interface v2

2019-08-28 Thread Christoph Hellwig
Hi all, this series is based on a patch from Linus to split the callbacks passed to walk_page_range and walk_page_vma into a separate structure that can be marked const, with various cleanups from me on top. This series is also available as a git tre here: git://git.infradead.org/users/hch/m

[PATCH 3/3] pagewalk: use lockdep_assert_held for locking validation

2019-08-28 Thread Christoph Hellwig
Use lockdep to check for held locks instead of using home grown asserts. Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Hellstrom Reviewed-by: Steven Price --- mm/pagewalk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index b8762b

[PATCH] mm: remove the __mmu_notifier_invalidate_range_start/end exports

2019-08-28 Thread Christoph Hellwig
Bo modular code uses these, which makes a lot of sense given the wrappers around them are only called by core mm code. Also remove the recently added __mmu_notifier_invalidate_range_start_map export for which the same applies. Signed-off-by: Christoph Hellwig --- mm/mmu_notifier.c | 3 --- 1 fi

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Sedat Dilek
> build-time checking. For more details see . Grrr. s/ Documentation/kbuild/kbuild.rst / scripts/Makefile.extrawarn - Sedat -

Re: [PATCH 3/3] KVM: x86: always stop emulation on page fault

2019-08-28 Thread Sean Christopherson
On Wed, Aug 28, 2019 at 10:19:51AM +, Jan Dakinevich wrote: > On Tue, 27 Aug 2019 07:50:30 -0700 > Sean Christopherson wrote: > > Yikes, this patch and the previous have quite the sordid history. > > > > > > The non-void return from inject_emulated_exception() was added by commit > > > >

[PATCH net-next 00/12] net: hns3: add some cleanups and optimizations

2019-08-28 Thread Huazhong Tan
This patch-set includes cleanups, optimizations and bugfix for the HNS3 ethernet controller driver. [patch 01/12] adds code optimization for debugfs command "dump reg". [patch 02/12] fixes magic number issues. [patch 03/12] modifies some parameters about hclge_dbg_dump_tm_map(). [patch 04/12] r

[PATCH net-next 06/12] net: hns3: make some reusable codes into a function

2019-08-28 Thread Huazhong Tan
From: Yonglong Liu In hclge_dcb.c, these pair of codes: hclge_notify_client(hdev, HNAE3_DOWN_CLIENT); hclge_notify_client(hdev, HNAE3_UNINIT_CLIENT); and hclge_notify_client(hdev, HNAE3_INIT_CLIENT); hclge_notify_client(hdev, HNAE3_UP_CLIENT); are called many times

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