Re: [GIT PULL] ARM: SoC fixes

2018-11-07 Thread Linus Torvalds
On Wed, Nov 7, 2018 at 9:10 AM Olof Johansson wrote: > > ARM: SoC fixes Pulled. > I was a bit too trigger happy to enable PREEMPT on multi_v7_defconfig, > and it ended up regressing at least BeagleBone XM boards. Odd. Did it hit some "may_sleep()" test in a driver that is hidden by preempt

Re: [TECH TOPIC] SoC maintainer group

2018-11-07 Thread Theodore Y. Ts'o
On Tue, Nov 06, 2018 at 02:16:27PM -0800, Olof Johansson wrote: > > Olof Johansson (arm-soc) > Arnd Bergmann (arm-soc) > Kevin Hilman (arm-soc) > Mike Turquette (clk) > Stephen Boyd (clk) > Linus Walleij (pinctrl + more) > Mike Brown (gpio/regmap + more) Could the poeple listed on this list

Re: [GIT PULL] ARM: SoC fixes

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 9:17 AM Linus Torvalds wrote: > > On Wed, Nov 7, 2018 at 9:10 AM Olof Johansson wrote: > > > > ARM: SoC fixes > > Pulled. > > > I was a bit too trigger happy to enable PREEMPT on multi_v7_defconfig, > > and it ended up regressing at least BeagleBone XM boards. > > Odd. Did

Re: [TECH TOPIC] SoC maintainer group

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 9:17 AM Theodore Y. Ts'o wrote: > > On Tue, Nov 06, 2018 at 02:16:27PM -0800, Olof Johansson wrote: > > > > Olof Johansson (arm-soc) > > Arnd Bergmann (arm-soc) > > Kevin Hilman (arm-soc) > > Mike Turquette (clk) > > Stephen Boyd (clk) > > Linus Walleij (pinctrl + more) > >

Re: [PATCH 1/4] of/device: Add a way to probe drivers by match data

2018-11-07 Thread Stephen Boyd
Quoting Rob Herring (2018-11-06 12:44:52) > On Tue, Nov 6, 2018 at 12:36 PM Stephen Boyd wrote: > > > > We have a handful of clk drivers that have a collection of slightly > > variant device support keyed off of the compatible string. In each of > > these drivers, we demux the variant and then

[PATCH 3/3] staging: iio: ad7780: generates pattern_mask from PAT bits

2018-11-07 Thread Giuliano Belinassi
Previously, all pattern_masks in the chip_info table were hardcoded. Now they are generated using the PAT macros, as described in the datasheets. Signed-off-by: Giuliano Belinassi --- drivers/staging/iio/adc/ad7780.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

Re: [TECH TOPIC] SoC maintainer group

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 9:35 AM Olof Johansson wrote: > > On Wed, Nov 7, 2018 at 9:17 AM Theodore Y. Ts'o wrote: > > > > On Tue, Nov 06, 2018 at 02:16:27PM -0800, Olof Johansson wrote: > > > > > > Olof Johansson (arm-soc) > > > Arnd Bergmann (arm-soc) > > > Kevin Hilman (arm-soc) > > > Mike

Re: [TECH TOPIC] SoC maintainer group

2018-11-07 Thread Theodore Y. Ts'o
On Wed, Nov 07, 2018 at 09:35:09AM -0800, Olof Johansson wrote: > > Tuesday afternoon looks least conflict-y when I squint at the > schedule, or Thursday afternoon (but ideally not overlapping with > Daniel's DRM/gitlab session). I've posted a draft schedule, so why don't we move the

Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm

2018-11-07 Thread Nadav Amit
From: Logan Gunthorpe Sent: November 7, 2018 at 6:53:02 PM GMT > Subject: Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline > asm > > > > > On 2018-11-07 11:01 a.m., Nadav Amit wrote: >> Ideas? Do people care about it? > > Just spit balling, but is there a reason we didn't

Re: [PATCH] thermal: bcm2835: enable hwmon explicitly

2018-11-07 Thread Stefan Wahren
Hi Rui, hi Eduardo, hi Daniel, > matthias@kernel.org hat am 21. Oktober 2018 um 23:58 geschrieben: > > > From: Matthias Brugger > > By defaul of-based thermal driver do not enable hwmon. > This patch does this explicitly, so that the temperature can be read > through the common hwmon

Re: [PATCH v2 -next] edac: i82975x: remove set but not used variable 'dtype'

2018-11-07 Thread Borislav Petkov
On Wed, Nov 07, 2018 at 10:22:37AM +0800, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/edac/i82975x_edac.c:378:16: warning: > variable 'dtype' set but not used [-Wunused-but-set-variable] > > It never used since introduction in commit > 084a4fccef39 ("edac:

Re: [PATCH stable 4.9] posix-timers: Sanitize overrun handling

2018-11-07 Thread Florian Fainelli
On 11/1/18 1:02 PM, Florian Fainelli wrote: > From: Thomas Gleixner > > [ Upstream commit 78c9c4dfbf8c04883941445a195276bb4bb92c76 ] > > The posix timer overrun handling is broken because the forwarding functions > can return a huge number of overruns which does not fit in an int. As a >

Re: [PATCH 08/24] leds: lt3593: Use led_compose_name()

2018-11-07 Thread Daniel Mack
On 6/11/2018 11:07 PM, Jacek Anaszewski wrote: Switch to using generic LED support for composing LED class device name. Thanks for the rework! Signed-off-by: Jacek Anaszewski --- drivers/leds/leds-lt3593.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff

[PATCH 23/23] x86/fpu: Defer FPU state load until return to userspace

2018-11-07 Thread Sebastian Andrzej Siewior
From: Rik van Riel Defer loading of FPU state until return to userspace. This gives the kernel the potential to skip loading FPU state for tasks that stay in kernel mode, or for tasks that end up with repeated invocations of kernel_fpu_begin() & kernel_fpu_end(). The

[PATCH 18/23] x86/entry: Add TIF_NEED_FPU_LOAD

2018-11-07 Thread Sebastian Andrzej Siewior
Add TIF_NEED_FPU_LOAD. This is reserved for loading the FPU registers before returning to userland. This flag must not be set for systems without a FPU. If this flag is cleared, the CPU's FPU register hold the current content of current()'s FPU register. The in-memory copy (union fpregs_state) is

[PATCH 22/23] x86/fpu: Don't restore the FPU state directly from userland in __fpu__restore_sig()

2018-11-07 Thread Sebastian Andrzej Siewior
__fpu__restore_sig() restores the CPU's FPU state directly from userland. If we restore registers on return to userland then we can't load them directly from userland because a context switch/BH could destroy them. Restore the FPU registers after they have been copied from userland.

[PATCH 20/23] x86/fpu: Prepare copy_fpstate_to_sigframe() for TIF_NEED_FPU_LOAD

2018-11-07 Thread Sebastian Andrzej Siewior
From: Rik van Riel The FPU registers need only to be saved if TIF_NEED_FPU_LOAD is not set. Otherwise this has been already done and can be skipped. Signed-off-by: Rik van Riel Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/fpu/signal.c | 19 ++- 1 file changed,

[PATCH 02/23] x86/fpu: Remove fpu->initialized usage in __fpu__restore_sig()

2018-11-07 Thread Sebastian Andrzej Siewior
This is a preparation for the removal of the ->initialized member in the fpu struct. __fpu__restore_sig() is deactivating the FPU via fpu__drop() and then setting manually ->initialized followed by fpu__restore(). The result is that it is possible to manipulate fpu->state and the state of

[PATCH 07/23] x86/fpu: Remove fpu->initialized usage in copy_fpstate_to_sigframe()

2018-11-07 Thread Sebastian Andrzej Siewior
Since ->initialized is always true for user tasks and kernel threads don't get this far, we always save the registers directly to userspace. Remove check for ->initialized because it is always true and remove the false condition. Signed-off-by: Sebastian Andrzej Siewior ---

[PATCH 11/23] x86/fpu: Add (__)make_fpregs_active helpers

2018-11-07 Thread Sebastian Andrzej Siewior
From: Rik van Riel Add helper function that ensures the floating point registers for the current task are active. Use with preemption disabled. Signed-off-by: Rik van Riel Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/include/asm/fpu/api.h | 11 +++

Re: [patch 0/2] Documentation/process: Add subsystem/tree handbook

2018-11-07 Thread Jonathan Corbet
On Wed, 07 Nov 2018 18:10:10 +0100 Thomas Gleixner wrote: > Mark recently suggested in one of the ksummit discussions to add subsystem > or tree specific maintainer handbooks to document subsystem/tree specific > development process information. > > The following series adds the general section

Re: [PATCH 08/24] leds: lt3593: Use led_compose_name()

2018-11-07 Thread Jacek Anaszewski
On 11/07/2018 08:37 PM, Daniel Mack wrote: > On 6/11/2018 11:07 PM, Jacek Anaszewski wrote: >> Switch to using generic LED support for composing LED class >> device name. > > Thanks for the rework! > >> Signed-off-by: Jacek Anaszewski >> --- >>   drivers/leds/leds-lt3593.c | 19

Re: [PATCH v8 0/4] KASLR feature to randomize each loadable module

2018-11-07 Thread Edgecombe, Rick P
On Tue, 2018-11-06 at 13:04 -0800, Andrew Morton wrote: > On Fri, 2 Nov 2018 12:25:16 -0700 Rick Edgecombe > wrote: > > > This is V8 of the "KASLR feature to randomize each loadable module" > > patchset. > > The purpose is to increase the randomization and also to make the modules > >

Re: [PATCH v8 1/4] vmalloc: Add __vmalloc_node_try_addr function

2018-11-07 Thread Edgecombe, Rick P
On Tue, 2018-11-06 at 13:05 -0800, Andrew Morton wrote: > On Fri, 2 Nov 2018 12:25:17 -0700 Rick Edgecombe > wrote: > > > Create __vmalloc_node_try_addr function that tries to allocate at a specific > > address without triggering any lazy purging. In order to support this > > behavior > > a

Re: [RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-07 Thread Elvira Khabirova
On Wed, 7 Nov 2018 17:44:44 +0100 Oleg Nesterov wrote: > To me PT_IN_SYSCALL_STOP makes no real sense, but I won't argue. > > At least I'd ask to not abuse task->ptrace. ptrace_report_syscall() can clear > ->ptrace_message on exit if we really want PTRACE_GET_SYSCALL_INFO to fail > after >

Re: RFC: userspace exception fixups

2018-11-07 Thread Dave Hansen
On 11/7/18 11:01 AM, Sean Christopherson wrote: > Going off comments in similar code related to UMIP, we'd need to figure > out how to handle protection keys. There are two options: 1. Don't depend on the userspace mapping. Do get_user_pages() to find the instruction in the kernel direct map,

Re: [PATCH 2/2] mm/sparse: add common helper to mark all memblocks present

2018-11-07 Thread Thomas Gleixner
On Wed, 7 Nov 2018, Andrew Morton wrote: > On Wed, 7 Nov 2018 13:36:34 -0700 Logan Gunthorpe wrote: > > > > Actually if both names suck, then there also is the option to rename both > > > instead of adding a comment to explain the suckage. > > > > Ok, well, I wasn't expecting to take on a big

Re: [PATCH] sched/rt: Introduce prio_{higher,lower}() helper for comparing RT task prority

2018-11-07 Thread Peter Zijlstra
On Thu, Nov 08, 2018 at 12:15:05AM +0800, Muchun Song wrote: > We use a value to represent the priority of the RT task. But a smaller > value corresponds to a higher priority. If there are two RT task A and B, > their priorities are prio_a and prio_b, respectively. If prio_a is larger > than

[PATCH 1/4] fpga: altera-cvp: fix 'bad IO access' on x86_64

2018-11-07 Thread Alan Tull
From: Anatolij Gustschin If mapping the CvP BAR fails, we still can configure the FPGA via PCI config space access. In this case the iomap pointer is NULL. On x86_64, passing NULL address to pci_iounmap() generates "Bad IO access at port 0x0" output with stack call trace. Fix it. Signed-off-by:

[PATCH 0/4] patches for FPGA

2018-11-07 Thread Alan Tull
Hi Greg, Please take these four small fpga fixes patches. They have been reviewed on the mailing list and apply cleanly on current linux-next and char-misc-testing. Thanks, Alan Anatolij Gustschin (1): fpga: altera-cvp: fix 'bad IO access' on x86_64 Andreas Puhm (1): fpga: altera-cvp: Fix

[PATCH 4/4] zynq-fpga: Only route PR via PCAP when required

2018-11-07 Thread Alan Tull
From: Mike Looijmans The Xilinx Zynq FPGA driver takes ownership of the PR interface, making it impossible to use the ICAP interface for partial reconfiguration. This patch changes the driver to only activate PR over PCAP while the device is actively being accessed by the driver for

[PATCH v3 4/4] pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC

2018-11-07 Thread Manivannan Sadhasivam
Add initial pinctrl driver for Mediatek MT6797 SoC supporting only GPIO and pinmux configurations. Tested-by: Matthias Brugger Acked-by: Sean Wang Signed-off-by: Manivannan Sadhasivam --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |

[PATCH 2/4] fpga: dfl: fme: remove set but not used variable 'priv'

2018-11-07 Thread Alan Tull
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/fpga/dfl-fme-pr.c: In function 'pr_mgmt_uinit': drivers/fpga/dfl-fme-pr.c:447:18: warning: variable 'priv' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing Acked-by: Moritz Fischer Acked-by: Wu Hao

[PATCH 3/4] fpga: altera-cvp: Fix registration for CvP incapable devices

2018-11-07 Thread Alan Tull
From: Andreas Puhm The probe function needs to verify the CvP enable bit in order to properly determine if FPGA Manager functionality can be safely enabled. Fixes: 34d1dc17ce97 ("fpga manager: Add Altera CvP driver") Signed-off-by: Andreas Puhm Signed-off-by: Anatolij Gustschin Reviewed-by:

Re: [PATCH 03/24] leds: dt-bindings: Add LED_FUNCTION definitions

2018-11-07 Thread Jacek Anaszewski
Hi Michal On 11/07/2018 09:36 AM, Vokáč Michal wrote: > On 6.11.2018 23:07, Jacek Anaszewski wrote: >> Add common LED function definitions for use in Device Tree. >> The function names were extracted from existing dts files >> after eliminating oddities. >> >> Signed-off-by: Jacek Anaszewski >>

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-07 Thread Paul E. McKenney
On Wed, Nov 07, 2018 at 06:10:12PM +0100, Thomas Gleixner wrote: > Add a document to the subsystem/maintainer handbook section, which explains > what the tip tree is, how it operates and what rules and expectations it > has. > > Signed-off-by: Thomas Gleixner A few more suggestions below, again

Re: [PATCH RFC] hist lookups

2018-11-07 Thread David Miller
From: Jiri Olsa Date: Wed, 7 Nov 2018 20:43:44 +0100 > I pushed new version in my perf/fixes branch Thanks, I'll check it out later today for sure! This is pretty exciting work. Just some random thoughts as I've been thinking about this whole situation a lot lately: Something to consider

[PATCH][i3c-next] i3c: fix incorrect update to max_read_ds

2018-11-07 Thread Colin King
From: Colin Ian King Currently max_read_ds is being updated twice, which is incorrect. The second assignment should be to max_write_ds instead. Fix this. Detected by CoverityScan, CID#1475379 ("Unused value") Fixes: 50cacdabeae1 ("i3c: Add core I3C infrastructure") Signed-off-by: Colin Ian

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-07 Thread Guenter Roeck
On Wed, Nov 07, 2018 at 12:43:58PM -0800, Genki Sky wrote: > On Wed, 7 Nov 2018 10:44:37 -0800, Brian Norris > wrote: > > On Tue, Nov 06, 2018 at 08:00:36PM -0800, Brian Norris wrote: > > > On a different tangent: how about the --no-optional-locks (see > > > git(1))? Will this get you your

Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 17:45:16 +0300 Andrey Ryabinin wrote: > From: Arnd Bergmann > > gcc-8 complains about the prototype for this function: > > lib/ubsan.c:432:1: error: ignoring attribute 'noreturn' in declaration of a > built-in function '__ubsan_handle_builtin_unreachable' because it

Re: [Ksummit-discuss] [TECH TOPIC] SoC maintainer group

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 11:45 AM Rob Herring wrote: > > On Tue, Nov 6, 2018 at 4:17 PM Olof Johansson wrote: > > > > Hi KS organizers (and others), > > > > This is a late topic proposal, hopefully there is still time on the agenda. > > > > We’ve recently been discussing some maintainer model

[PATCH v2 2/2] mm/sparse: add common helper to mark all memblocks present

2018-11-07 Thread Logan Gunthorpe
Presently the arches arm64, arm and sh have a function which loops through each memblock and calls memory present. riscv will require a similar function. Introduce a common memblocks_present() function that can be used by all the arches. Subsequent patches will cleanup the arches that make use of

[GIT PULL] ARM: SoC fixes

2018-11-07 Thread Olof Johansson
Hi Linus, Please merge. Thanks! -Olof The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/armsoc-fixes for you

[PATCH v2 02/11] thermal: add irq-mode configuration for trip point

2018-11-07 Thread Lukasz Luba
This patch adds support irq mode in trip point. When that flag is set in DT, there is no need for polling in thermal framework. Crossing the trip point will rise an IRQ. The naming convention for tip point 'type' can be confussing and 'passive' (whic is passive cooling) might be interpretted

[PATCH v2] ext4: lost brelse in __ext4_read_dirblock()

2018-11-07 Thread Vasily Averin
Fixes dc6982ff4db1 ("ext4: refactor code to read directory blocks ...") Cc: sta...@kernel.org # 3.9 Signed-off-by: Vasily Averin --- fs/ext4/namei.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index d388cce72db2..6a6b90363ef1 100644 ---

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-07 Thread Waiman Long
On 11/06/2018 07:18 PM, Tim Chen wrote: > Thomas, > 2) Add _TIF_UPDATE_SPEC_CTRL to the SYSCALL_EXIT_WORK_FLAGS and handle it in the slow work path. >>> There can be tasks that don't do any syscalls, and it seems like we can >>> have MSRs getting out of sync? >> Setting the TIF flag

Re: Crash report: Broken NUMA distance map causes crash on arm64 system

2018-11-07 Thread John Garry
On 02/11/2018 12:19, Peter Zijlstra wrote: On Fri, Nov 02, 2018 at 12:08:53PM +, John Garry wrote: @@ -1337,7 +1353,7 @@ void sched_init_numa(void) int level = 0; int i, j, k; - sched_domains_numa_distance = kzalloc(sizeof(int) * nr_node_ids, GFP_KERNEL); +

Re: [PATCH] objtool: fix .cold. functions parent symbols search

2018-11-07 Thread Artem Savkov
On Wed, Nov 07, 2018 at 11:08:56AM -0600, Josh Poimboeuf wrote: > On Wed, Nov 07, 2018 at 03:05:59PM +0100, Artem Savkov wrote: > > The way it is currently done it is possible for read_symbols() to find the > > same symbol as parent for ".cold" functions. > > I seem to remember having this

Re: RFC: userspace exception fixups

2018-11-07 Thread Sean Christopherson
On Wed, Nov 07, 2018 at 07:34:52AM -0800, Sean Christopherson wrote: > On Tue, Nov 06, 2018 at 05:17:14PM -0800, Andy Lutomirski wrote: > > On Tue, Nov 6, 2018 at 4:02 PM Sean Christopherson > > wrote: > > > > > > On Tue, Nov 06, 2018 at 03:39:48PM -0800, Andy Lutomirski wrote: > > > > On Tue,

Re: [PATCH v9 3/5] clk: imx: add SCCG PLL type

2018-11-07 Thread Stephen Boyd
Quoting Abel Vesa (2018-11-07 03:54:45) > On Wed, Oct 17, 2018 at 12:55:52PM -0700, Stephen Boyd wrote: > > Quoting Abel Vesa (2018-09-24 03:39:55) > > > +static unsigned long clk_pll2_recalc_rate(struct clk_hw *hw, > > > +unsigned long parent_rate) > > > +{

Re: [PATCH] scripts/kconfig/merge_config: don't redefine 'y' to 'm'

2018-11-07 Thread Darren Hart
On Fri, Nov 02, 2018 at 12:41:19PM +0100, Anders Roxell wrote: > In today's merge_config.sh the order of the config fragment files dictates > the output of a config option. With this approach we will get different > .config files depending on the order of the config fragment files. > Adding a

[PATCH 2/9] arm64: defconfig: Drop ARM_BIG_LITTLE_CPUFREQ

2018-11-07 Thread Marc Gonzalez
Commit a7314405d83c ("drop ARM_BIG_LITTLE_CPUFREQ support for ARM64") Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index f786c95504d3..8d6878c1e794 100644 ---

[PATCH 2/3] ARM: OMAP1: ams-delta: Drop unused symbols from the board header

2018-11-07 Thread Janusz Krzysztofik
Those bitmap symbols defining pins of latch2 register, used with read()/write() calls before the latch was converted to a GPIO device, have been obsoleted by integer symbols defined inside the board file. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/board-ams-delta.h | 4 1

Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-11-07 Thread Vito Caputo
On Wed, Nov 07, 2018 at 11:03:06AM +0100, Miklos Szeredi wrote: > On Wed, Nov 7, 2018 at 12:48 AM, Andrew Morton > wrote: > > On Mon, 29 Oct 2018 23:04:45 + Daniel Colascione > > wrote: > > > >> On Mon, Oct 29, 2018 at 7:25 PM, Davidlohr Bueso wrote: > >> > This patch introduces a new

Re: [RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-07 Thread Andy Lutomirski
> On Nov 6, 2018, at 7:27 PM, Elvira Khabirova wrote: > > PTRACE_GET_SYSCALL_INFO lets ptracer obtain details of the syscall > the tracee is blocked in. The request returns meaningful data only > when the tracee is in a syscall-enter-stop or a syscall-exit-stop. > > There are two reasons for a

Re: [PATCH] leds: trigger: Fix sleeping function called from invalid context

2018-11-07 Thread Jacek Anaszewski
Hi Baolin and Geert, Geert - thanks for the heads-up. Baolin - thanks for the quick fix. Applied to the fixes-for-4.20-rc2 branch of linux-leds.git Best regards, Jacek Anaszewski On 11/07/2018 08:59 AM, Geert Uytterhoeven wrote: > Hi Baolin, > > On Wed, Nov 7, 2018 at 6:43 AM Baolin Wang

Re: [PATCH 4/9] arm64: defconfig: Drop USB_ULPI_BUS and USB_CHIPIDEA_ULPI

2018-11-07 Thread Marc Gonzalez
[ Add interested parties ] On 07/11/2018 21:15, Marc Gonzalez wrote: > Commit a930d8bd94d8 ("usb: chipidea: Always build ULPI code") > > Signed-off-by: Marc Gonzalez > --- > arch/arm64/configs/defconfig | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/arm64/configs/defconfig

[PATCH] x86/cpufeatures: Add WBNOINVD feature definition

2018-11-07 Thread Natarajan, Janakarajan
Add a new cpufeature definition for the WBNOINVD instruction. The WBNOINVD instruction writes all modified line in all levels of cache associated with a processor to main memory while retaining the cached values. Both AMD and Intel support this instruction. Signed-off-by: Janakarajan Natarajan

Re: [PATCH] jffs2: implement mount option to configure endianness

2018-11-07 Thread Daniel Walker
On Wed, Nov 07, 2018 at 04:12:14PM -, David Woodhouse wrote: > > > Yes, this may slow things down. I am not sure I agree with the impl. > > either. > > Could one not make cpu_to_je_X/jeX_to_cpu a function ptr which is set to > > a func. with the correct endian? > > On x86 retpoline would

Re: [RFC PATCH v1 1/2] x86/fpu: detect AVX task

2018-11-07 Thread Tim Chen
On 11/06/2018 10:23 AM, Aubrey Li wrote: > +static inline void update_avx_state(struct avx_state *avx) > +{ > + /* > + * Check if XGETBV with ECX = 1 supported. XGETBV with ECX = 1 > + * returns the logical-AND of XCR0 and XINUSE. XINUSE is a bitmap > + * by which the processor

Re: [PATCH v16 18/22] platform/x86: Intel SGX driver

2018-11-07 Thread Sean Christopherson
On Wed, Nov 07, 2018 at 06:37:57PM +0200, Jarkko Sakkinen wrote: > On Tue, Nov 06, 2018 at 08:40:00AM -0800, Sean Christopherson wrote: > > On Tue, 2018-11-06 at 15:45 +0200, Jarkko Sakkinen wrote: > > > Intel Software Guard eXtensions (SGX) is a set of CPU instructions that > > > can be used by

Re: [PATCH] jffs2: implement mount option to configure endianness

2018-11-07 Thread Joakim Tjernlund
On Wed, 2018-11-07 at 17:58 +, David Woodhouse wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > > On Wed, Nov 07, 2018 at 04:12:14PM -, David

RE: [tip:irq/core] genirq/matrix: Improve target CPU selection for managed interrupts.

2018-11-07 Thread Michael Kelley
From: tip tree robot Sent: Tuesday, November 6, 2018 2:28 PM > > Committer: Thomas Gleixner > CommitDate: Tue, 6 Nov 2018 23:20:13 +0100 > > 2) Managed interrupts: > > Managed interrupts guarantee vector reservation when the MSI/MSI-X > functionality of a device is enabled, which is

[PATCH 0/3] staging: iio: ad7780: pattern generation and gain update

2018-11-07 Thread Giuliano Belinassi
This series of patches fixes a bug in ad717x chips where the PAT2 bit was wrongly read as a GAIN bit. It also refactors the pattern_mask generation with the PAT bits. Giuliano Belinassi (3): staging: iio: ad7780: Add is_ad778x flag chip info staging: iio: ad7780: check if ad778x before gain

[PATCH 1/3] staging: iio: ad7780: Add is_ad778x flag chip info

2018-11-07 Thread Giuliano Belinassi
This patch allows further checking of whatever the chip is (ad778x or ad717x). Signed-off-by: Giuliano Belinassi --- drivers/staging/iio/adc/ad7780.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c index

[PATCH 2/3] staging: iio: ad7780: check if ad778x before gain update

2018-11-07 Thread Giuliano Belinassi
Only the ad778x have the 'gain' status bit. Check it before updating. Signed-off-by: Giuliano Belinassi --- drivers/staging/iio/adc/ad7780.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c index

KMSAN: kernel-infoleak in kvm_write_guest_page

2018-11-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7438a3b20295 kmsan: print user address when reporting info.. git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?x=10d782f540 kernel config:

Re: [PATCH v3 2/7] x86/jump_label: Use text_poke_early() during early_init

2018-11-07 Thread Nadav Amit
From: Peter Zijlstra Sent: November 5, 2018 at 2:09:25 PM GMT > To: Nadav Amit > Cc: Ingo Molnar , linux-kernel@vger.kernel.org, > x...@kernel.org, H. Peter Anvin , Thomas Gleixner > , Borislav Petkov , Dave Hansen > , Andy Lutomirski , Kees Cook > , Dave Hansen , Masami > Hiramatsu >

[PATCH 13/23] x86/fpu: Make get_xsave_field_ptr() and get_xsave_addr() use feature number instead of mask

2018-11-07 Thread Sebastian Andrzej Siewior
After changing the argument of __raw_xsave_addr() from a mask to number Dave suggested to check if it makes sense to do the same for get_xsave_addr(). As it turns out it does. Only get_xsave_addr() needs the mask to check if the requested feature is part of what is support/saved and then uses the

[PATCH 21/23] x86/fpu: Update xstate's PKRU value on write_pkru()

2018-11-07 Thread Sebastian Andrzej Siewior
During the context switch the xstate is loaded which also includes the PKRU value. If xstate is restored on return to userland it is required that the PKRU value in xstate is the same as the one in the CPU. Save the PKRU in xstate during modification. Signed-off-by: Sebastian Andrzej Siewior

[PATCH 15/23] x86/fpu: Only write PKRU if it is different from current

2018-11-07 Thread Sebastian Andrzej Siewior
Dave Hansen says that the `wrpkru' is more expensive than `rdpkru'. It has a higher cycle cost and it's also practically a (light) speculation barrier. As an optimisation read the current PKRU value and only write the new one if it is different. Signed-off-by: Sebastian Andrzej Siewior ---

[PATCH 12/23] x86/fpu: Make __raw_xsave_addr() use feature number instead of mask

2018-11-07 Thread Sebastian Andrzej Siewior
Most users of __raw_xsave_addr() use a feature number, shift it to a mask and then __raw_xsave_addr() shifts it back to the feature number. Make __raw_xsave_addr() use the feature number as argument. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/fpu/xstate.c | 22

[PATCH 16/23] x86/pkeys: Don't check if PKRU is zero before writting it

2018-11-07 Thread Sebastian Andrzej Siewior
write_pkru() checks if the current value is the same as the expected value. So instead just checking if the current and new value is zero (and skip the write in such a case) we can benefit from that. Remove the zero check of PKRU, write_pkru() provides a similar check. Signed-off-by: Sebastian

[PATCH 17/23] x86/fpu: Eager switch PKRU state

2018-11-07 Thread Sebastian Andrzej Siewior
From: Rik van Riel While most of a task's FPU state is only needed in user space, the protection keys need to be in place immediately after a context switch. The reason is that any access to userspace memory while running in kernel mode also need to abide by the memory permissions specified in

[PATCH 14/23] x86/pkeys: Make init_pkru_value static

2018-11-07 Thread Sebastian Andrzej Siewior
The variable init_pkru_value isn't used outside of this file. Make init_pkru_value static. Acked-by: Dave Hansen Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/mm/pkeys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm/pkeys.c b/arch/x86/mm/pkeys.c index

[PATCH 19/23] x86/fpu: Always store the registers in copy_fpstate_to_sigframe()

2018-11-07 Thread Sebastian Andrzej Siewior
From: Rik van Riel copy_fpstate_to_sigframe() stores the registers directly to user space. This is okay because the FPU register are valid and saving it directly avoids saving it into kernel memory and making a copy. However… We can't keep doing this if we are going to restore the FPU registers

Re: [PATCH v8 2/4] x86/modules: Increase randomization for modules

2018-11-07 Thread Edgecombe, Rick P
On Tue, 2018-11-06 at 13:05 -0800, Andrew Morton wrote: > On Fri, 2 Nov 2018 12:25:18 -0700 Rick Edgecombe > wrote: > > > This changes the behavior of the KASLR logic for allocating memory for the > > text > > sections of loadable modules. It randomizes the location of each module text > >

Re: [PATCH v8 4/4] Kselftest for module text allocation benchmarking

2018-11-07 Thread Edgecombe, Rick P
On Tue, 2018-11-06 at 13:05 -0800, Andrew Morton wrote: > On Fri, 2 Nov 2018 12:25:20 -0700 Rick Edgecombe > wrote: > > > This adds a test module in lib/, and a script in kselftest that does > > benchmarking on the allocation of memory in the module space. Performance > > here > > would have

Re: [PATCH RFC] hist lookups

2018-11-07 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 07, 2018 at 12:01:54PM -0800, David Miller escreveu: > From: Jiri Olsa > Date: Wed, 7 Nov 2018 20:43:44 +0100 > > > I pushed new version in my perf/fixes branch > > Thanks, I'll check it out later today for sure! This is pretty exciting > work. > > Just some random thoughts as

Re: [PATCH] objtool: fix .cold. functions parent symbols search

2018-11-07 Thread Josh Poimboeuf
On Wed, Nov 07, 2018 at 07:42:46PM +0100, Artem Savkov wrote: > On Wed, Nov 07, 2018 at 11:08:56AM -0600, Josh Poimboeuf wrote: > > On Wed, Nov 07, 2018 at 03:05:59PM +0100, Artem Savkov wrote: > > > The way it is currently done it is possible for read_symbols() to find the > > > same symbol as

Re: [PATCH v9 3/5] clk: imx: add SCCG PLL type

2018-11-07 Thread Abel Vesa
On Wed, Nov 07, 2018 at 11:01:02AM -0800, Stephen Boyd wrote: > Quoting Abel Vesa (2018-11-07 03:54:45) > > On Wed, Oct 17, 2018 at 12:55:52PM -0700, Stephen Boyd wrote: > > > Quoting Abel Vesa (2018-09-24 03:39:55) > > > > +static unsigned long clk_pll2_recalc_rate(struct clk_hw *hw, > > > > +

Re: [PATCH 2/2] mm/sparse: add common helper to mark all memblocks present

2018-11-07 Thread Thomas Gleixner
Logan, On Wed, 7 Nov 2018, Logan Gunthorpe wrote: > On 2018-11-07 1:12 p.m., Andrew Morton wrote: > >> +void __init memblocks_present(void) > >> +{ > >> + struct memblock_region *reg; > >> + > >> + for_each_memblock(memory, reg) { > >> + memory_present(memblock_get_region_node(reg), >

[PATCH] powerpc: Mark variable `cpumsr` as unused

2018-11-07 Thread Mathieu Malaterre
Add gcc attribute unused for `cpumsr` variable. Fix warnings treated as errors with W=1: arch/powerpc/kernel/process.c:231:16: error: variable ‘cpumsr’ set but not used [-Werror=unused-but-set-variable] arch/powerpc/kernel/process.c:296:16: error: variable ‘cpumsr’ set but not used

Re: [TECH TOPIC] SoC maintainer group

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 12:33 PM Theodore Y. Ts'o wrote: > > On Wed, Nov 07, 2018 at 10:47:24AM -0800, Olof Johansson wrote: > > > > Can we have 3pm-3:30pm on Thursday? It seems relatively low on > > embedded-related conflicts and at 3 people would have time to migrate > > from Daniel Vetter's

Re: [patch 0/2] Documentation/process: Add subsystem/tree handbook

2018-11-07 Thread Thomas Gleixner
Dan, On Wed, 7 Nov 2018, Dan Williams wrote: > On Wed, Nov 7, 2018 at 11:49 AM Jonathan Corbet wrote: > > The stuff that is truly specific to tip seems fairly minimal: > > > > - what goes into tip > > - the reverse fir tree thing > > - tail comments, or the distaste thereabouts > > -

Re: [PATCH 01/24] leds: class: Improve LED and LED flash class registration API

2018-11-07 Thread Jacek Anaszewski
Hi Baolin, Thanks for the review. Will address the remarks in a v2. On 11/07/2018 07:55 AM, Baolin Wang wrote: > Hi Jacek, > > On 7 November 2018 at 06:07, Jacek Anaszewski [...] > > It can work well for SC27XX LED, FWIW you can add my tested tag. > Tested-by: Baolin Wang > -- Best

Re: [PATCH 5/9] arm64: defconfig: Replace PINCTRL_MT7622 with PINCTRL_MTK_MOORE

2018-11-07 Thread Marc Gonzalez
[ Add interested parties ] On 07/11/2018 21:16, Marc Gonzalez wrote: > Commit e78d57b2f87c ("pinctrl: mediatek: add pinctrl-moore that implements > the generic pinctrl dt-bindings") > > Signed-off-by: Marc Gonzalez > --- > arch/arm64/configs/defconfig | 2 +- > 1 file changed, 1 insertion(+),

Re: [patch 2/2] Documentation/process: Add tip tree handbook

2018-11-07 Thread Thomas Gleixner
On Wed, 7 Nov 2018, Thomas Gleixner wrote: > Add a document to the subsystem/maintainer handbook section, which explains > what the tip tree is, how it operates and what rules and expectations it > has. Peter asked me to add a section about locking comments. I added it and forgot to refresh the

Re: [PATCH v8 03/15] PM: Introduce an Energy Model management framework

2018-11-07 Thread Vincent Guittot
On Wed, 7 Nov 2018 at 18:02, Quentin Perret wrote: > > Hi Vincent, > > On Wednesday 07 Nov 2018 at 17:32:32 (+0100), Vincent Guittot wrote: > > Hi Quentin, > > > > On Tue, 16 Oct 2018 at 12:15, Quentin Perret wrote: > > > > > > > > + > > > +/** > > > + * em_pd_energy() - Estimates the energy

Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm

2018-11-07 Thread Nadav Amit
From: Logan Gunthorpe Sent: November 6, 2018 at 8:01:31 PM GMT > To: Nadav Amit , Ingo Molnar > Cc: LKML , X86 ML , Sam > Ravnborg , Michal Marek , Thomas > Gleixner , H. Peter Anvin , Linux Kbuild > mailing list , Stephen Bates > > Subject: Re: [PATCH v9 02/10] Makefile: Prepare for using

Re: [PATCH] jffs2: implement mount option to configure endianness

2018-11-07 Thread Richard Weinberger
On Wed, Nov 7, 2018 at 7:05 PM Nikunj Kela (nkela) wrote: > I had tried to use configs to start with via the following patch however I > was advised to have a mount option: > http://lists.infradead.org/pipermail/linux-mtd/2018-November/085126.html Just show performance numbers on how your

general protection fault in rdma_listen (2)

2018-11-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8053e5b93eca Merge tag 'trace-v4.20-rc1' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1539246d40 kernel config: https://syzkaller.appspot.com/x/.config?x=8f559fee2fc3375a

Re: [PATCH 2/5] crypto: crypto_user_stat: convert all stats from u32 to u64

2018-11-07 Thread LABBE Corentin
On Mon, Nov 05, 2018 at 05:42:42PM -0800, Eric Biggers wrote: > Hi Corentin, > > On Mon, Nov 05, 2018 at 12:51:11PM +, Corentin Labbe wrote: > > All the 32-bit fields need to be 64-bit. In some cases, UINT32_MAX crypto > > operations can be done in seconds. > > > > Reported-by: Eric Biggers

[PATCH 10/23] x86/entry: Remove _TIF_ALLWORK_MASK

2018-11-07 Thread Sebastian Andrzej Siewior
There is no user of _TIF_ALLWORK_MASK since commit 21d375b6b34ff ("x86/entry/64: Remove the SYSCALL64 fast path"). Remove unused define _TIF_ALLWORK_MASK. Reviewed-by: Borislav Petkov Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/include/asm/thread_info.h | 8 1 file changed,

[PATCH 09/23] x86/fpu: Remove user_fpu_begin()

2018-11-07 Thread Sebastian Andrzej Siewior
user_fpu_begin() sets fpu_fpregs_owner_ctx to task's fpu struct. This is always the case since there is no lazy FPU anymore. fpu_fpregs_owner_ctx is used during context switch to decide if it needs to load the saved registers or if the currently loaded registers are valid. This field is always

[PATCH 05/23] x86/fpu: Remove preempt_disable() in fpu__clear()

2018-11-07 Thread Sebastian Andrzej Siewior
The preempt_disable() section was introduced in commit a10b6a16cdad8 ("x86/fpu: Make the fpu state change in fpu__clear() scheduler-atomic") and it was said to be temporary. fpu__initialize() initializes the FPU struct to its "init" value and then sets ->initialized to 1. The last part is the

[PATCH 04/23] x86/entry/32: Remove asm/math_emu.h include

2018-11-07 Thread Sebastian Andrzej Siewior
The math_emu.h header files contains the definition of struct math_emu_info. It is not used in this file. Remove asm/math_emu.h include. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/kernel/process_32.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/process_32.c

[PATCH 03/23] x86/fpu: Remove fpu__restore()

2018-11-07 Thread Sebastian Andrzej Siewior
There are no users of fpu__restore() so it is time to remove it. The comment regarding fpu__restore() and TS bit is stale since commit b3b0870ef3ffe ("i387: do not preload FPU state at task switch time") and has no meaning since. Signed-off-by: Sebastian Andrzej Siewior ---

[PATCH 06/23] x86/fpu: Always init the `state' in fpu__clear()

2018-11-07 Thread Sebastian Andrzej Siewior
fpu__clear() only initializes the `state' if the FPU is present. This initialisation is also required for the FPU-less system and takes place math_emulate(). Since fpu__initialize() only performs the initialization if ->initialized is zero it does not matter that it is invoked each time an opcode

Re: [PATCH v1 1/1] pinctrl: nuvoton: modify NPCM7xx pin configuration function

2018-11-07 Thread Kun Yi
On Wed, Nov 7, 2018 at 5:44 AM Tomer Maimon wrote: > > Modify GPIO direction setting in pin configuration function by using > generic GPIO functions to set the GPIO direction instead of direct > access to the GPIO direction register. > > Signed-off-by: Tomer Maimon Tested-by: Kun Yi Thanks for

  1   2   3   4   5   6   7   8   9   10   >