Re: [PATCH] x86/boot: This program cannot be run in DOS mode.$

2019-04-08 Thread Pavel Machek
On Mon 2019-04-01 12:24:34, Pali Rohár wrote: > Every EFI binary is in PE format. And we know that PE format needs to have > MZ MS-DOS header as there is written offset to PE header. > > Therefore generated bzImage binary with CONFIG_EFI_STUB option is MS-DOS > executable binary. > > We already k

Re: [PATCH linux-next v9 7/7] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO

2019-04-08 Thread Dmitry V. Levin
On Mon, Apr 08, 2019 at 11:51:45AM -0600, shuah wrote: > On 4/8/19 11:42 AM, Dmitry V. Levin wrote: > > Check whether PTRACE_GET_SYSCALL_INFO semantics implemented in the kernel > > matches userspace expectations. > > > > Cc: Oleg Nesterov > > Cc: Andy Lutomirski > > Cc: Shuah Khan > > Cc: Elvi

[PULL 0/4] xtensa fixes for v5.1-rc5

2019-04-08 Thread Max Filippov
/xtensa-20190408 for you to fetch changes up to ecae26fae15abb7d433557afbd15467ce1c444f5: xtensa: fix format string warning in init_pmd (2019-04-04 18:45:55 -0700) xtensa fixes for v5.1-rc5 - fix syscall number passed to

Re: [PATCH -next] pinctrl: artpec6: Make two functions static

2019-04-08 Thread Nathan Chancellor
On Thu, Mar 21, 2019 at 11:09:09PM +0800, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warnings: > > drivers/pinctrl/pinctrl-artpec6.c:691:5: warning: > symbol 'artpec6_pmx_enable' was not declared. Should it be static? > drivers/pinctrl/pinctrl-artpec6.c:705:6: warning: > symbol 'artp

[PATCH] ARM: dts: imx6qdl-nitrogen6_max: Disable LVDS channels

2019-04-08 Thread Robert Foss
If a LVDS device is not connected, having the LVDS channels enabled will prevent imx-ldb from probing correctly even if other CRTCs are connected. Signed-off-by: Robert Foss --- arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a

Re: [PATCH RESEND 2/5] x86/MCE: Handle MCA controls in a per_cpu way

2019-04-08 Thread Borislav Petkov
On Mon, Apr 08, 2019 at 02:12:16PM +, Ghannam, Yazen wrote: > From: Yazen Ghannam > > Current AMD systems have unique MCA banks per logical CPU even though > the type of the banks may all align to the same bank number. Each CPU > will have control of a set of MCA banks in the hardware and the

Re: [LINUX PATCH v2 3/3] spi: spi-mem: Add support for Zynq QSPI controller

2019-04-08 Thread Guenter Roeck
On Mon, Apr 01, 2019 at 01:29:13PM +0530, Naga Sureshkumar Relli wrote: > Add support for QSPI controller driver used by Xilinx Zynq SOC. > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v2 > - Updated the driver to call spi_mem_default_supports_op() from >ctrl->supports_op() > C

Re: [PATCH linux-next v9 7/7] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO

2019-04-08 Thread shuah
On 4/8/19 11:42 AM, Dmitry V. Levin wrote: Check whether PTRACE_GET_SYSCALL_INFO semantics implemented in the kernel matches userspace expectations. Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Shuah Khan Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-kselft...@vger.kernel.org Signed-

Re: [PATCH] apparmor: Restore Y/N in /sys for apparmor's "enabled"

2019-04-08 Thread John Johansen
On 4/8/19 10:25 AM, Kees Cook wrote: > On Mon, Apr 8, 2019 at 9:58 AM John Johansen > wrote: >>> +/* Can only be set before AppArmor is initialized (i.e. on boot cmdline). >>> */ >>> +static int param_set_aaintbool(const char *val, const struct kernel_param >>> *kp) >>> +{ >>> + struct kerne

[PATCH linux-next v9 7/7] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO

2019-04-08 Thread Dmitry V. Levin
Check whether PTRACE_GET_SYSCALL_INFO semantics implemented in the kernel matches userspace expectations. Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Shuah Khan Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-kselft...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- Notes: v9:

[PATCH linux-next v9 6/7] ptrace: add PTRACE_GET_SYSCALL_INFO request

2019-04-08 Thread Dmitry V. Levin
From: Elvira Khabirova PTRACE_GET_SYSCALL_INFO is a generic ptrace API that lets ptracer obtain details of the syscall the tracee is blocked in. There are two reasons for a special syscall-related ptrace request. Firstly, with the current ptrace API there are cases when ptracer cannot retrieve

[PATCH linux-next v9 4/7] parisc: define syscall_get_error()

2019-04-08 Thread Dmitry V. Levin
syscall_get_error() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_return_value(), and syscall_get_arch() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by

[PATCH linux-next v9 3/7] mips: define syscall_get_error()

2019-04-08 Thread Dmitry V. Levin
syscall_get_error() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_return_value(), and syscall_get_arch() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by

[PATCH linux-next v9 1/7] nds32: fix asm/syscall.h

2019-04-08 Thread Dmitry V. Levin
All syscall_get_*() and syscall_set_*() functions must be defined as static inline as on all other architectures, otherwise asm/syscall.h cannot be included in more than one compilation unit. This bug has to be fixed in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

[PATCH linux-next v9 2/7] hexagon: define syscall_get_error() and syscall_get_return_value()

2019-04-08 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds remaining 2 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_error and syscall_get_return_value. Cc: Ric

next-20190408: Suspend/resume problems on Thinkpad X60

2019-04-08 Thread Pavel Machek
Hi! It boots ok (unlike mainline -- I'm debugging that), and I can suspend and resume... but then cursor in X is moving and I can talk to applications cached in memory, but any access to disk hangs. Any ideas? Pavel -- (eng

Re: [PATCH] staging: gdm724x: Add parenthesis to Macro arguments

2019-04-08 Thread Andre
Hi Greg, thanks for replying. On 03/04/2019 01:26, Greg KH wrote: > On Tue, Apr 02, 2019 at 10:04:05PM -0300, Andre Dainez wrote: >> Fix checkpatch errors: >> >> CHECK: Macro argument 'len' may be better as '(len)' to avoid precedence >> issues >> CHECK: Macro argument 'nlh' may be better as '(nl

hello

2019-04-08 Thread jennifermercy
Hello did you received my previous email?

[PATCH] perf header: Fix lock/unlock imbalances

2019-04-08 Thread Gustavo A. R. Silva
Fix lock/unlock imbalances by refactoring the code a bit and adding calls to up_write() before return. Addresses-Coverity-ID: 1444315 ("Missing unlock") Addresses-Coverity-ID: 1444316 ("Missing unlock") Fixes: a70a1123174a ("perf bpf: Save BTF information as headers to perf.data") Fixes: 606f972b1

[PATCH v2 2/2] perf/x86/intel: force resched when TFA sysctl is modified

2019-04-08 Thread Stephane Eranian
This patch provides guarantee to the sysadmin that when TFA is disabled, no PMU event is using PMC3 when the echo command returns. Vice-Versa, when TFA is enabled, PMU can use PMC3 immediately (to eliminate possible multiplexing). $ perf stat -a -I 1000 --no-merge -e branches,branches,branches,bra

[PATCH v2 1/2] perf/core: add perf_ctx_resched() as global function

2019-04-08 Thread Stephane Eranian
This patch add perf_ctx_resched() a global function that can be called to force rescheduling of events based on event types. The function locks both cpuctx and task_ctx internally. This will be used by a subsequent patch. Signed-off-by: Stephane Eranian Change-Id: Icbc05e5f461fd6e091b46778fe62b23

[PATCH v2 0/3] perf/x86/intel: force reschedule on TFA changes

2019-04-08 Thread Stephane Eranian
This short patch series improves the TFA patch series by adding a guarantee to users each time the allow_force_tsx_abort (TFA) sysctl control knob is modified. The current TFA support in perf_events operates as follow: - TFA=1 The PMU has priority over TSX, if PMC3 is needed, then TSX transac

Re: shmem_recalc_inode: unable to handle kernel NULL pointer dereference

2019-04-08 Thread Hugh Dickins
On Mon, 8 Apr 2019, Konstantin Khlebnikov wrote: > > I suppose your solution will wait for wakeup from shmem_evict_inode()? No, it's the other way round: shmem_unuse() gets on with its work without delay, shmem_evict_inode() waits until the stop_eviction count has gone down to zero, saying nobody

Re: [srcu] a365bb5f6e: leaking_addresses.proc.___srcu_struct_ptrs.

2019-04-08 Thread Mathieu Desnoyers
- On Apr 8, 2019, at 1:10 PM, paulmck paul...@linux.ibm.com wrote: > On Mon, Apr 08, 2019 at 01:06:56PM -0400, Mathieu Desnoyers wrote: >> - On Apr 8, 2019, at 11:21 AM, paulmck paul...@linux.ibm.com wrote: >> >> > On Mon, Apr 08, 2019 at 10:57:50PM +0800, Rong Chen wrote: >> >> On Mon, A

Re: [PATCH] apparmor: Restore Y/N in /sys for apparmor's "enabled"

2019-04-08 Thread Kees Cook
On Mon, Apr 8, 2019 at 9:58 AM John Johansen wrote: > > +/* Can only be set before AppArmor is initialized (i.e. on boot cmdline). > > */ > > +static int param_set_aaintbool(const char *val, const struct kernel_param > > *kp) > > +{ > > + struct kernel_param kp_local; > > + bool value; >

Re: [PATCH v4 3/3] fpga: Add fpga manager driver for ARRI Altera FPP

2019-04-08 Thread Anatolij Gustschin
Hi, On Thu, 21 Feb 2019 21:25:06 +0100 Anatolij Gustschin ag...@denx.de wrote: ... > .../ABI/testing/sysfs-driver-ftdi-fifo-fpp| 7 + > drivers/fpga/Kconfig | 7 + > drivers/fpga/Makefile | 1 + > drivers/fpga/ftdi-fifo-fpp.c

Re: [PATCH v2] pinctrl:intel: Retain HOSTSW_OWN for requested gpio pin

2019-04-08 Thread Andy Shevchenko
On Mon, Apr 08, 2019 at 05:51:27PM +0800, Chris Chiu wrote: > The touchpad of the ASUS laptops E403NA, X540NA, X541NA are not > responsive after suspend/resume. The following error message > shows after resume. > i2c_hid i2c-ELAN1200:00: failed to reset device. > > On these laptops, the touchpad

Re: [v2,4/4] devfreq: add mediatek cci devfreq

2019-04-08 Thread Guenter Roeck
On Fri, Mar 29, 2019 at 02:46:12PM +0800, Andrew-sh Cheng wrote: > This adds a devfreq driver for the Cache Coherent Interconnect (CCI) > of the Mediatek MT8183. > > On the MT8183 the CCI is supplied by the same regulator as the LITTLE > cores. The driver is notified when the regulator voltage cha

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

2019-04-08 Thread Dmitry V. Levin
On Mon, Apr 08, 2019 at 11:31:31AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the audit tree got conflicts in: > > arch/mips/kernel/ptrace.c > kernel/seccomp.c > > between commit: > > b35f549df1d7 ("syscalls: Remove start and number from > syscall_get_argume

Re: [PATCH v4 1/3] firmware: xilinx: Add fpga API's

2019-04-08 Thread Moritz Fischer
Hi Nava, On Tue, Apr 02, 2019 at 06:01:21PM +0530, Nava kishore Manne wrote: > This Patch Adds fpga API's to support the Bitstream loading > by using firmware interface. > > Signed-off-by: Nava kishore Manne > --- > Changes for v4: > -None. > > Chnages for v3: > -Cre

[PATCH] selftests/ipc: Fix msgque compiler warnings

2019-04-08 Thread Kees Cook
This fixes the various compiler warnings when building the msgque selftest. The primary change is using sys/msg.h instead of linux/msg.h directly to gain the API declarations. Fixes: 3a665531a3b7 ("selftests: IPC message queue copy feature test") Signed-off-by: Kees Cook --- tools/testing/selfte

Re: [srcu] a365bb5f6e: leaking_addresses.proc.___srcu_struct_ptrs.

2019-04-08 Thread Paul E. McKenney
On Mon, Apr 08, 2019 at 01:06:56PM -0400, Mathieu Desnoyers wrote: > - On Apr 8, 2019, at 11:21 AM, paulmck paul...@linux.ibm.com wrote: > > > On Mon, Apr 08, 2019 at 10:57:50PM +0800, Rong Chen wrote: > >> On Mon, Apr 08, 2019 at 07:30:37AM -0700, Paul E. McKenney wrote: > >> > On Mon, Apr 08

5.1.0-rc4: Oops in __rpc_execute() when trying to boot from NFS

2019-04-08 Thread Daniel Mack
Hi, I'm seeing the Oops below when trying to boot 5.1.0-rc4 on an ARM PXA3xx platform. v5.0 did not show this effect with the same cmdline. Relevant bits from the config are: CONFIG_NFS_FS=y CONFIG_NFS_V2=y CONFIG_NFS_V3=y # CONFIG_NFS_V3_ACL is not set # CONFIG_NFS_V4 is not set # CONFIG_NFS_SW

Re: [PATCH v9 00/27] x86: load FPU registers on return to userland

2019-04-08 Thread Thomas Gleixner
On Wed, 3 Apr 2019, Sebastian Andrzej Siewior wrote: > This is a refurbished series originally started by by Rik van Riel. The > goal is load the FPU registers on return to userland and not on every > context switch. By this optimisation we can: > - avoid loading the registers if the task stays in

Re: [PATCH v3 3/3] platform/x86: intel_pmc_core: Instantiate pmc_core device on legacy platforms

2019-04-08 Thread Andy Shevchenko
On Fri, Apr 5, 2019 at 11:36 PM Rajat Jain wrote: > > Add code to instantiate the pmc_core platform device and thus attach to > the driver, if the ACPI device for the same ("INT33A1") is not present > in a system where it should be. This was discussed here: > https://www.mail-archive.com/linux-ker

Re: [srcu] a365bb5f6e: leaking_addresses.proc.___srcu_struct_ptrs.

2019-04-08 Thread Mathieu Desnoyers
- On Apr 8, 2019, at 11:21 AM, paulmck paul...@linux.ibm.com wrote: > On Mon, Apr 08, 2019 at 10:57:50PM +0800, Rong Chen wrote: >> On Mon, Apr 08, 2019 at 07:30:37AM -0700, Paul E. McKenney wrote: >> > On Mon, Apr 08, 2019 at 09:56:10PM +0800, kernel test robot wrote: >> > > FYI, we noticed t

Re: [PATCH 24/27] x86/fpu: Add a fastpath to __fpu__restore_sig()

2019-04-08 Thread Thomas Gleixner
On Wed, 3 Apr 2019, Sebastian Andrzej Siewior wrote: > The previous commits refactor the restoration of the FPU registers so > that they can be loaded from in-kernel memory. This overhead can be > avoided if the load can be performed without a pagefault. > > Attempt to restore FPU registers by in

Re: [PATCH] tools/power turbostat: fix file descriptor leaks

2019-04-08 Thread Prarit Bhargava
On 4/8/19 12:12 PM, Gustavo A. R. Silva wrote: > Fix file descriptor leaks by closing fp before return. > > Addresses-Coverity-ID: 1444591 ("Resource leak") > Addresses-Coverity-ID: 1444592 ("Resource leak") > Fixes: 5ea7647b333f ("tools/power turbostat: Warn on bad ACPI LPIT data") > Signed-of

Re: [PATCH v3 2/3] platform/x86: intel_pmc_core: Allow to dump debug registers on S0ix failure

2019-04-08 Thread Andy Shevchenko
On Fri, Apr 5, 2019 at 11:36 PM Rajat Jain wrote: > > Add a module parameter which when enabled, will check on resume, if the > last S0ix attempt was successful. If not, the driver would warn and provide > helpful debug information (which gets latched during the failed suspend > attempt) to debug

Re: [PATCH v3 1/7] clkdev: Hold clocks_mutex while iterating clocks list

2019-04-08 Thread Stephen Boyd
Quoting Matti Vaittinen (2019-04-08 03:49:41) > On Fri, Apr 05, 2019 at 01:37:24PM -0700, Stephen Boyd wrote: > > Quoting Vaittinen, Matti (2019-04-04 23:51:43) > > > On Thu, 2019-04-04 at 14:53 -0700, Stephen Boyd wrote: > > > > We recently introduced a change to support devm clk lookups. That > >

[RFC PATCH v2] perf/x86: make perf callchain work without CONFIG_FRAME_POINTER

2019-04-08 Thread Kairui Song
Currently perf callchain is not working properly with ORC unwinder, and sampling event from trace point. We'll get useless in kernel callchain like this: perf 6429 [000]22.498450: kmem:mm_page_alloc: page=0x176a17 pfn=1534487 order=0 migratetype=0 gfp_flags=GFP_KERNEL fff

[PATCH 03/10] docs: clearing-warn-once.txt: add a title for this document

2019-04-08 Thread Mauro Carvalho Chehab
This document misses a title. Add it, in order to follow the documentation standard. Signed-off-by: Mauro Carvalho Chehab --- Documentation/clearing-warn-once.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/clearing-warn-once.txt b/Documentation/clearing-warn-once.txt in

Re: [PATCH] x86/mm/mem_encrypt: Disable all instrumentation for SME early boot code

2019-04-08 Thread Borislav Petkov
On Mon, Apr 08, 2019 at 04:46:31PM +, Gary R Hook wrote: > My reasoning (not arguing): the file has been touched exactly one time > in 4 years, by Thomas. Doesn't appear to be a candidate for constant > modification, so this approach doesn't seem risky to me. I could be wrong. The problem, l

Re: [PATCH] apparmor: Restore Y/N in /sys for apparmor's "enabled"

2019-04-08 Thread John Johansen
On 4/8/19 9:07 AM, Kees Cook wrote: > Before commit c5459b829b71 ("LSM: Plumb visibility into optional "enabled" > state"), /sys/module/apparmor/parameters/enabled would show "Y" or "N" > since it was using the "bool" handler. After being changed to "int", > this switched to "1" or "0", breaking th

[PATCH 4/6] ARM: dts: sun8i: a83t: Add device node for CSI (Camera Sensor Interface)

2019-04-08 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The A83T SoC has a camera sensor interface (known as CSI in Allwinner lingo), which is similar to the one found on the A64 and H3. The only difference seems to be that support of MIPI CSI through a connected MIPI CSI-2 bridge. Add a device node for it, and pinctrl nodes for th

[PATCH 2/6] dt-bindings: media: sun6i-csi: Add compatible string for A83T variant

2019-04-08 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The A83T SoC has a camera sensor interface (known as CSI in Allwinner lingo), which is similar to the one found on the A64 and H3. The only difference seems to be that support of MIPI CSI through a connected MIPI CSI-2 bridge. Add a compatible string for this variant. Signed-

[PATCH 0/6] ARM: sun8i: a83t: Support Camera Sensor Interface controller

2019-04-08 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi everyone, This series adds support for the camera sensor interface controller found on the Allwinner A83T SoC. The controller is similar to the one found on the H3, with the addition of a MIPI CSI-2 interface. However, this series only supports parallel and BT.656 interfac

Re: [PATCH] KVM: x86: fix warning Using plain integer as NULL pointer

2019-04-08 Thread Sean Christopherson
Nit: For future reference, wrapping the warning text with quotes in the shortlog would be helpful. I initially read it as "fix a warning by using a plain integer as a NULL pointer". E.g.: KVM: x86: fix warning "Using plain integer as NULL pointer" On Sat, Apr 06, 2019 at 03:06:58

Re: [PATCH v3 1/3] platform/x86: intel_pmc_core: Convert to a platform_driver

2019-04-08 Thread Andy Shevchenko
On Fri, Apr 5, 2019 at 11:36 PM Rajat Jain wrote: > > Convert the intel_pmc_core driver to a platform driver, and attach using > the ACPI enumeration method (via the ACPI device "INT33A1"). > > Signed-off-by: Rajat Jain > -static const struct x86_cpu_id intel_pmc_core_ids[] = { > - INTEL_C

Re: [PATCH4/4] Add support for SUNIX Multi-I/O board

2019-04-08 Thread Enrico Weigelt, metux IT consult
On 08.04.19 13:16, Morris Ku wrote: > +> There are 10's of examples available. Please take a look around some > +> of the existing drivers to see how their functionality is split. > + > > Could you please clearly tell me the name of driver for reference. drivers/platform/x86/pcengines-apuv2.c

Re: [PATCH v4 3/3] fpga manager: Adding FPGA Manager support for Xilinx zynqmp

2019-04-08 Thread Moritz Fischer
Hi Michal, On Mon, Apr 08, 2019 at 04:36:15PM +0200, Michal Simek wrote: > On 08. 04. 19 16:17, Alan Tull wrote: > > On Mon, Apr 8, 2019 at 7:39 AM Nava kishore Manne wrote: > >> > >> Hi Alan, > >> > >> Thanks for look into it and providing the ACK. > >> I got one minor comments from Moritz Fisch

[PATCH] mtd: spi-nor: cadence-quadspi: add reset control

2019-04-08 Thread Dinh Nguyen
Get the reset control for the QSPI controller and bring it out of reset. Suggested-by: Tien-Fong Chee Signed-off-by: Dinh Nguyen --- drivers/mtd/spi-nor/cadence-quadspi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor

Re: [PATCH 11/14] bus: ti-sysc: Add quirk handling for external optional functional clock

2019-04-08 Thread Tony Lindgren
* Tony Lindgren [190325 22:00]: > @@ -200,6 +278,12 @@ static int sysc_get_clocks(struct sysc *ddata) > if (ddata->nr_clocks < 1) > return 0; > > + if ((ddata->cfg.quirks & SYSC_QUIRK_EXT_OPT_CLOCK)) { > + error = sysc_init_ext_opt_clock(ddata, NULL); > +

Re: [PATCH] perf vendor events arm64: Add Cortex-A72 events

2019-04-08 Thread Will Deacon
Hi Florian, On Sun, Apr 07, 2019 at 02:34:22PM -0700, Florian Fainelli wrote: > The Cortex-A72 supports all ARMv8 recommended events up to the > RC_ST_SPEC (0x91) event, create an appropriate JSON file for mapping > those events and update the mapfile.csv for matching the Cortex-A72 MIDR > to that

Re: [PATCH] x86/mm/mem_encrypt: Disable all instrumentation for SME early boot code

2019-04-08 Thread Gary R Hook
On 4/4/19 3:42 PM, Thomas Gleixner wrote: > On Thu, 4 Apr 2019, Hook, Gary wrote: > >> Enablement of AMD's Secure Memory Encryption feature is determined >> very early in the boot cycle. Part of this procedure involves scanning >> the command line for the paramater 'mem_encrypt'. >> >> To determin

Re: [PATCH 11/11] platform/x86: intel_cht_int33fe: Replacing the old connections with references

2019-04-08 Thread Andy Shevchenko
On Wed, Apr 3, 2019 at 7:46 PM Heikki Krogerus wrote: > > Now that the software nodes support references, and the > device connection API support parsing fwnode references, > replacing the old connection descriptions with software node > references. Relying on device names when matching the > conn

Re: [patch V2 28/29] x86/irq/64: Remap the IRQ stack with guard pages

2019-04-08 Thread Thomas Gleixner
On Mon, 8 Apr 2019, Andy Lutomirski wrote: > On Sun, Apr 7, 2019 at 11:46 PM Thomas Gleixner wrote: > > > > On Sun, 7 Apr 2019, Andy Lutomirski wrote: > > > On Sun, Apr 7, 2019 at 3:44 PM Thomas Gleixner wrote: > > > > Actually we have: save_stack_trace() > > > > > > > > > > Like I did here: > >

Re: [PATCH 10/11] platform/x86: intel_cht_int33fe: Link with external dependencies using fwnodes

2019-04-08 Thread Andy Shevchenko
On Wed, Apr 3, 2019 at 7:46 PM Heikki Krogerus wrote: > > Supplying also external devices - the DisplayPort connector > and the USB role switch - software fwnodes. After this the > driver has access to all the components tied to the USB > Type-C connector and can start creating software node > ref

[PATCH] tools/power turbostat: fix file descriptor leaks

2019-04-08 Thread Gustavo A. R. Silva
Fix file descriptor leaks by closing fp before return. Addresses-Coverity-ID: 1444591 ("Resource leak") Addresses-Coverity-ID: 1444592 ("Resource leak") Fixes: 5ea7647b333f ("tools/power turbostat: Warn on bad ACPI LPIT data") Signed-off-by: Gustavo A. R. Silva --- tools/power/x86/turbostat/turb

Re: [patch V2 28/29] x86/irq/64: Remap the IRQ stack with guard pages

2019-04-08 Thread Josh Poimboeuf
On Mon, Apr 08, 2019 at 09:18:00AM -0700, Andy Lutomirski wrote: > On Sun, Apr 7, 2019 at 11:46 PM Thomas Gleixner wrote: > > > > On Sun, 7 Apr 2019, Andy Lutomirski wrote: > > > On Sun, Apr 7, 2019 at 3:44 PM Thomas Gleixner wrote: > > > > Actually we have: save_stack_trace() > > > > > > > > > >

Re: Thoughts on simple scanner approach for free page hinting

2019-04-08 Thread David Hildenbrand
On 06.04.19 02:09, Alexander Duyck wrote: > So I am starting this thread as a spot to collect my thoughts on the > current guest free page hinting design as well as point out a few > possible things we could do to improve upon it. > > 1. The current design isn't likely going to scale well to multi

[PATCH v3 2/2] initrd: move initrd_start calculate within linear mapping range check

2019-04-08 Thread pierre Kuo
in the previous case, initrd_start and initrd_end can be successfully returned either (base < memblock_start_of_DRAM()) or (base + size > memblock_start_of_DRAM() + linear_region_size). That means even linear mapping range check fail for initrd_start and initrd_end, it still can get virtual addres

[PATCH v3 1/2] kaslr: shift linear region randomization ahead of memory_limit

2019-04-08 Thread pierre Kuo
The following is schematic diagram of the program before and after the modification. Before: if (memstart_addr + linear_region_size < memblock_end_of_DRAM()) {} --(a) if (memory_limit != PHYS_ADDR_MAX) {} --(b) if (IS_ENABLED(CONFIG_BLK_DEV_INITRD) && phys_initrd_size

Re: [PATCH] ARM: dts: at91sam9261ek: remove unused chosen nodes

2019-04-08 Thread Daniel Lezcano
Hi Rob, the following patch has been pushed in 2016 by commit 51f0aeb2d21f1. Being able to specify which timer should act as a clocksource or a clockevent is often requested. Doing this from the driver itself forces to do some assumption in the timer definition ordering in the DT. That impacts

Re: [PATCH V5 00/12] perf: Add Icelake support (kernel only, except Topdown)

2019-04-08 Thread Peter Zijlstra
On Mon, Apr 08, 2019 at 12:25:17PM -0400, Liang, Kan wrote: > > > > @@ -963,40 +963,42 @@ static u64 pebs_update_adaptive_cfg(stru > > >   u64 pebs_data_cfg = 0; > > >   bool gprs, tsx_weight; > > > -    if ((sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) || > > > -    attr->precise

[PATCH] perf script: Fix memory leaks in list_scripts()

2019-04-08 Thread Gustavo A. R. Silva
In case memory resources for *buf* and *paths* were allocated, jump to *out* and release them before return. Addresses-Coverity-ID: 1444328 ("Resource leak") Fixes: 6f3da20e151f ("perf report: Support builtin perf script in scripts menu") Signed-off-by: Gustavo A. R. Silva --- tools/perf/ui/brow

Re: [PATCH v2 1/1] initrd: move initrd_start calculate within linear mapping range check

2019-04-08 Thread pierre kuo
hi Will: > > Maybe, but I don't think we've seen a patch which accomplishes that. I think > I'll go ahead and commit the basic one-liner, then we can always improve it > afterwards if somebody sends a patch. It's not like this is a fastpath. Sorry for not showing the patches I try to explain to si

Re: [PATCH] perf vendor events arm64: Map Brahma-B53 CPUID to cortex-a53 events

2019-04-08 Thread Will Deacon
On Fri, Apr 05, 2019 at 09:50:47AM -0700, Florian Fainelli wrote: > Broadcom's Brahma-B53 CPUs support the same type of events that the > Cortex-A53 supports, recognize its CPUID and map it to the cortex-a53 > events. > > Signed-off-by: Florian Fainelli > --- > tools/perf/pmu-events/arch/arm64/m

Re: [PATCH V5 00/12] perf: Add Icelake support (kernel only, except Topdown)

2019-04-08 Thread Liang, Kan
@@ -963,40 +963,42 @@ static u64 pebs_update_adaptive_cfg(stru   u64 pebs_data_cfg = 0;   bool gprs, tsx_weight; -    if ((sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) || -    attr->precise_ip < 2) { +    if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && +    attr-

Re: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-08 Thread Kees Cook
On Mon, Apr 8, 2019 at 6:31 AM Reshetova, Elena wrote: > Originally I was thinking that in-stack randomization makes sense > only for x86_64, since this is what VMAP stack on x86 depends on. > Without VMAP stack and guard pages, there are easier ways to attack, > so hardening there does not really

Re: [patch V2 28/29] x86/irq/64: Remap the IRQ stack with guard pages

2019-04-08 Thread Andy Lutomirski
On Sun, Apr 7, 2019 at 11:46 PM Thomas Gleixner wrote: > > On Sun, 7 Apr 2019, Andy Lutomirski wrote: > > On Sun, Apr 7, 2019 at 3:44 PM Thomas Gleixner wrote: > > > Actually we have: save_stack_trace() > > > > > > > Like I did here: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/luto/li

Re: [PATCH 3/3] ARM: omap2: move platform-specific asm-offset.h to arch/arm/mach-omap2

2019-04-08 Thread Tony Lindgren
Hi, * Masahiro Yamada [190408 07:56]: > is only generated and included > by arch/arm/mach-omap2/, so it does not need to reside in the > globally visible include/generated/. > > I moved and renamed it to arch/arm/mach-omap2/pm-asm-offsets.h > since the prefix 'omap2-' is just redundant in mach-

Re: [PATCH 2/2] dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu

2019-04-08 Thread Frank Lee
On Fri, Apr 5, 2019 at 10:55 PM Maxime Ripard wrote: > > Hi, > > On Fri, Apr 05, 2019 at 06:24:55AM -0400, Yangtao Li wrote: > > Allwinner Process Voltage Scaling Tables defines the voltage and > > frequency value based on the speedbin blown in the efuse combination. > > The sunxi-cpufreq-nvmem d

Re: [PATCH 09/11] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-04-08 Thread Andy Shevchenko
On Wed, Apr 3, 2019 at 7:46 PM Heikki Krogerus wrote: > > In ACPI, and now also in DT, the USB connectors usually have > their own device nodes. In case of USB Type-C, those > connector (port) nodes are child nodes of the controller or > PHY device, in our case the fusb302. The software fwnodes >

Re: linux-next: Tree for Apr 8 (iio/adc/)

2019-04-08 Thread Randy Dunlap
On 4/7/19 10:41 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190405: > on i386 or x86_64: modular: ERROR: "is_stm32_timer_trigger" [drivers/iio/adc/stm32-dfsdm-adc.ko] undefined! or builtin: ld: drivers/iio/adc/stm32-dfsdm-adc.o: in function `stm32_dfsdm_postenable': stm32-dfsdm-a

Re: [PATCH 08/11] platform/x86: intel_cht_int33fe: Provide software nodes for the devices

2019-04-08 Thread Andy Shevchenko
On Wed, Apr 3, 2019 at 7:46 PM Heikki Krogerus wrote: > > Software nodes provide two features that we will need later. > 1) Software nodes can have references to other software nodes. > 2) Software nodes can exist before a device entry is created. > #include > #include > #include > +#includ

Re: [RFC PATCH 0/7] Early task context tracking

2019-04-08 Thread Andy Lutomirski
On Mon, Apr 8, 2019 at 5:47 AM Daniel Bristot de Oliveira wrote: > > On 4/4/19 2:01 AM, Andy Lutomirski wrote: > >> To resolve this problem, the set/unset of the IRQ/NMI context needs to > >> be done before the execution of the first C execution, and after its > >> return. By doing so, and using t

Re: [PATCH 7/7] clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:07PM +0100, Marc Zyngier wrote: > Instead of always going via arch_counter_get_cntvct_stable to > access the counter workaround, let's have arch_timer_read_counter > to point to the right method. Nit: s/to point/point/ > For that, we need to track whether any CPU in

[PATCH] apparmor: Restore Y/N in /sys for apparmor's "enabled"

2019-04-08 Thread Kees Cook
Before commit c5459b829b71 ("LSM: Plumb visibility into optional "enabled" state"), /sys/module/apparmor/parameters/enabled would show "Y" or "N" since it was using the "bool" handler. After being changed to "int", this switched to "1" or "0", breaking the userspace AppArmor detection of dbus-broke

Re: [PATCH V5 00/12] perf: Add Icelake support (kernel only, except Topdown)

2019-04-08 Thread Liang, Kan
On 4/8/2019 11:41 AM, Peter Zijlstra wrote: I currently have something like the below on top, is that correct? Yes, it's correct. If so, I'll fold it back in. Thanks. It's really appreciated. Kan --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -563,16 +563,17 @@ int x8

Re: [PATCH 6/7] clocksource/arm_arch_timer: Remove use of workaround static key

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:06PM +0100, Marc Zyngier wrote: > The use of a static key in a hotplug path has proved to be a real > nightmare, and makes it impossible to have scream-free lockdep > kernel. > > Let's remove the static key altogether, and focus on something saner. > > Signed-off-by:

Re: [PATCH v6 14/27] x86/percpu: Adapt percpu for PIE support

2019-04-08 Thread Thomas Garnier
On Fri, Feb 1, 2019 at 9:13 AM Thomas Garnier wrote: > > On Thu, Jan 31, 2019 at 6:31 PM Christopher Lameter wrote: > > > > On Thu, 31 Jan 2019, Thomas Garnier wrote: > > > > > The per-cpu symbols are in a section that is zero based to create > > > offsets. The compiler doesn't see them as offset

Re: [PATCH 5/7] clocksource/arm_arch_timer: Drop use of static key in arch_timer_reg_read_stable

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:05PM +0100, Marc Zyngier wrote: > Let's start with the removal of the arch_timer_read_ool_enabled > static key in arch_timer_reg_read_stable. IT is not a fast path, Nit: s/IT/It/ > and we can simplify things a bit. > > Signed-off-by: Marc Zyngier Acked-by: Mark Ru

Re: [PATCH 4/7] clocksource/arm_arch_timer: Direcly assign set_next_event workaround

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:04PM +0100, Marc Zyngier wrote: > When a given timer is affected by an erratum and requires an > alternative implementation of set_next_event, we do a rather > complicated dance to detect and call the workaround on each > set_next_event call. > > This is clearly idiot

Re: [PATCH v2] Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804

2019-04-08 Thread Daniel Lezcano
On 08/04/2019 10:07, David Abdurachmanov wrote: > This is only used on arm and arm64 platforms. Add COMPILE_TEST option. > > Tested with 5.1-rc3+ on Fedora/RISCV. CONFIG_ARM_TIMER_SP804 no more shows > up in riscv config. > > Signed-off-by: David Abdurachmanov Applied for 5.2 Thanks -- Dani

Re: [PATCH 0/3] Redundant steps removal and bug fix of ntb_hw_switchtec

2019-04-08 Thread Logan Gunthorpe
On 2019-04-08 8:45 a.m., Wesley Sheng wrote: > Joey Zhang (2): > ntb_hw_switchtec: Remove redundant steps of > switchtec_ntb_reinit_peer() function > ntb_hw_switchtec: Fix setup MW with failure bug > > Wesley Sheng (1): > ntb_hw_switchtec: Skip unnecessary re-setup of shared memory wi

Re: [PATCH 0/2] Fix two bugs of switchtec module

2019-04-08 Thread Logan Gunthorpe
On 2019-04-08 8:34 a.m., Wesley Sheng wrote: > Wesley Sheng (2): > switchtec: Fix false maximum supported PCIe function number issue > switchtec: Fix unintended mask of MRPC event This series looks good to me: Reviewed-by: Logan Gunthorpe Thanks, Logan

Re: [PATCH 3/7] arm64: Use arch_timer_read_counter instead of arch_counter_get_cntvct

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:03PM +0100, Marc Zyngier wrote: > Only arch_timer_read_counter will guarantee that workarounds are > applied. So let's use this one instead of arch_counter_get_cntvct. > > Signed-off-by: Marc Zyngier Acked-by: Mark Rutland Mark. > --- > arch/arm64/kernel/traps.c

Re: [PATCH 2/7] watchdog/sbsa: Use arch_timer_read_counter instead of arch_counter_get_cntvct

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:02PM +0100, Marc Zyngier wrote: > Only arch_timer_read_counter will guarantee that workarounds are > applied. So let's use this one instead of arch_counter_get_cntvct. > > Signed-off-by: Marc Zyngier Acked-by: Mark Rutland Mark. > --- > drivers/watchdog/sbsa_gwd

Re: [PATCH 1/7] ARM: vdso: Remove dependency with the arch_timer driver internals

2019-04-08 Thread Mark Rutland
On Mon, Apr 08, 2019 at 04:49:01PM +0100, Marc Zyngier wrote: > THe VDSO code uses the kernel helper that was originally designed Nit: s/THe/The/ > to abstract the access between 32 and 64bit systems. It worked so > far because this function is declared as 'inline'. > > As we're about to revamp

Re: [GIT PULL v2] LM3532 backlight support improvements and relocation

2019-04-08 Thread Dan Murphy
Pavel Thanks for the review On 4/7/19 5:17 PM, Pavel Machek wrote: > Hi! > >> Changes since v1: >> >> - synchronized DT label properties in DT bindings with what has been agreed >> for the patch "ARM: dts: omap4-droid4: Update backlight dt properties" >> >> The following changes since commit 9

Re: [PATCH v2] mfd: cros_ec: check for NULL transfer function

2019-04-08 Thread Enric Balletbo i Serra
Hi Enrico, Many thanks to send this upstream. On 4/4/19 18:00, Jett ✈ Rink wrote: > Reviewed-by: Jett Rink > > On Wed, Apr 3, 2019 at 4:40 PM wrote: >> >> From: Enrico Granata >> >> As new transfer mechanisms are added to the EC codebase, they may >> not support v2 of the EC protocol. >> >> I

[PATCH 7/7] clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters

2019-04-08 Thread Marc Zyngier
Instead of always going via arch_counter_get_cntvct_stable to access the counter workaround, let's have arch_timer_read_counter to point to the right method. For that, we need to track whether any CPU in the system has a workaround for the counter. This is done by having an atomic variable trackin

[PATCH 3/7] arm64: Use arch_timer_read_counter instead of arch_counter_get_cntvct

2019-04-08 Thread Marc Zyngier
Only arch_timer_read_counter will guarantee that workarounds are applied. So let's use this one instead of arch_counter_get_cntvct. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/traps.c b/arch/a

[PATCH 4/7] clocksource/arm_arch_timer: Direcly assign set_next_event workaround

2019-04-08 Thread Marc Zyngier
When a given timer is affected by an erratum and requires an alternative implementation of set_next_event, we do a rather complicated dance to detect and call the workaround on each set_next_event call. This is clearly idiotic, as we can perfectly detect whether this CPU requires a workaround whil

[PATCH 6/7] clocksource/arm_arch_timer: Remove use of workaround static key

2019-04-08 Thread Marc Zyngier
The use of a static key in a hotplug path has proved to be a real nightmare, and makes it impossible to have scream-free lockdep kernel. Let's remove the static key altogether, and focus on something saner. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 4 drivers/

[PATCH 5/7] clocksource/arm_arch_timer: Drop use of static key in arch_timer_reg_read_stable

2019-04-08 Thread Marc Zyngier
Let's start with the removal of the arch_timer_read_ool_enabled static key in arch_timer_reg_read_stable. IT is not a fast path, and we can simplify things a bit. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 42 +++-- 1 file changed, 28 insertions

[PATCH 0/7] clocksource/arm_arch_timer: Removing the static branch on errata handling

2019-04-08 Thread Marc Zyngier
The static key used to deal with the errata workaround that plague a significant number of arm64 systems (who thought that building a timer was that hard?) has proved to be a disaster when dealing with lockdep. We try to activate it in contexts that were never expected, and things break pretty loud

[PATCH 1/7] ARM: vdso: Remove dependency with the arch_timer driver internals

2019-04-08 Thread Marc Zyngier
THe VDSO code uses the kernel helper that was originally designed to abstract the access between 32 and 64bit systems. It worked so far because this function is declared as 'inline'. As we're about to revamp that part of the code, the VDSO would break. Let's fix it by doing what should have been d

[PATCH 2/7] watchdog/sbsa: Use arch_timer_read_counter instead of arch_counter_get_cntvct

2019-04-08 Thread Marc Zyngier
Only arch_timer_read_counter will guarantee that workarounds are applied. So let's use this one instead of arch_counter_get_cntvct. Signed-off-by: Marc Zyngier --- drivers/watchdog/sbsa_gwdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/sbsa_gwdt.c b/driv

<    1   2   3   4   5   6   7   8   >