Re: [PATCH] pinctrl: qcom: sc7180: Add missing tile info in SDC_QDSD_PINGROUP/UFS_RESET

2019-10-21 Thread Bjorn Andersson
On Mon 21 Oct 07:15 PDT 2019, Rajendra Nayak wrote: > The SDC_QDSD_PINGROUP/UFS_RESET macros are missing the .tile info needed to > calculate the right register offsets. Adding them here and also > adjusting the offsets accordingly. > > Fixes: f2ae04c45b1a ("pinctrl: qcom: Add SC7180 pinctrl driv

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Nicolas Saenz Julienne
t; > > CONFIG_CMA_DEBUGFS=y > > > CONFIG_CMA_AREAS=7 > > > > > > Is this expected? > > > > Not really, just tested cma=512M on a Raspberry Pi4, and it went well. The > > only > > thing on my build that differs from your config is CONFIG_CMA_DEB

Re: linux-next: Fixes tag needs some work in the rdma-fixes tree

2019-10-21 Thread Jason Gunthorpe
On Mon, Oct 21, 2019 at 05:39:06PM +0200, Matteo Croce wrote: > > I thought I saw that checkpatch was checking this now? > > > > commit a8dd86bf746256fbf68f82bc13356244c5ad8efa > > Author: Matteo Croce > > Date: Wed Sep 25 16:46:38 2019 -0700 > > > > checkpatch.pl: warn on invalid commit id

Re: [PATCH 13/18] arm64: preserve x18 when CPU is suspended

2019-10-21 Thread Mark Rutland
On Fri, Oct 18, 2019 at 09:10:28AM -0700, Sami Tolvanen wrote: > Don't lose the current task's shadow stack when the CPU is suspended. > > Signed-off-by: Sami Tolvanen > --- > arch/arm64/mm/proc.S | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm64/mm/proc.S b/arch/arm64/m

Re: [PATCH] RFC: cpu-topology: declare parse_acpi_topology in

2019-10-21 Thread Sudeep Holla
On Mon, Oct 21, 2019 at 05:25:30PM +0100, Ben Dooks (Codethink) wrote: > The parse_acpi_topology() is not declared anywhere which > causes the following sparse warning: > > drivers/base/arch_topology.c:522:19: warning: symbol 'parse_acpi_topology' > was not declared. Should it be static? > > RFC

Re: [PATCH 18/18] arm64: implement Shadow Call Stack

2019-10-21 Thread Mark Rutland
On Fri, Oct 18, 2019 at 10:35:49AM -0700, Sami Tolvanen wrote: > On Fri, Oct 18, 2019 at 10:23 AM Mark Rutland wrote: > > I think scs_save() would better live in assembly in cpu_switch_to(), > > where we switch the stack and current. It shouldn't matter whether > > scs_load() is inlined or not, si

[PATCH v2] mtd: rawnand: brcmnand: Fix NULL pointer assignment

2019-10-21 Thread Florian Fainelli
Sparse complained about the following: drivers/mtd/nand/raw/brcmnand/brcmnand.c:921:40: warning: Using plain integer as NULL pointer fix this issue by assigning the pointer to NULL. Fixes: c1ac2dc34b51 ("mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling") Signed-off-b

Re: [PATCH v2 18/18] iio: cros_ec: Use Hertz as unit for sampling frequency

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:54:03 -0700 Gwendal Grignou wrote: > To be compliant with other sensors, set and get sensor sampling > frequency in Hz, not mHz. > > Fixes: ae7b02ad2f32 ("iio: common: cros_ec_sensors: Expose > cros_ec_sensors frequency range via iio sysfs") > > Signed-off-by: Gwendal Gri

[GIT PULL] tracing: A couple of minor fixes

2019-10-21 Thread Steven Rostedt
Linus, Two minor fixes: - A race in perf trace initialization (missing mutexes) - Minor fix to represent gfp_t in synthetic events as properly signed Please pull the latest trace-v5.4-rc3 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git

Re: [PATCH v6 1/2] dt-bindings: edac: arm-dmc520.txt

2019-10-21 Thread James Morse
Hi Lei, On 18/10/2019 21:08, Lei Wang wrote: > This thread hasn't got traction from DT owners. It looks like your patches didn't make it to the mailing list: https://lore.kernel.org/r/by5pr04mb6599eaa659a53b2331cb812586...@by5pr04mb6599.namprd04.prod.outlook.com You can search on https://lore.ke

Re: [PATCH v2 17/18] iio: cros_ec: Report hwfifo_watermark_max

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:54:02 -0700 Gwendal Grignou wrote: > Report the maximum amount of sample the EC can hold. > This is not tunable, but can be useful for application to find out the > maximum amount of time it can sleep when hwfifo_timeout is set to a > large number. > > Signed-off-by: Gwend

[PATCH v2] fs/dax: Fix pmd vs pte conflict detection

2019-10-21 Thread Dan Williams
Users reported a v5.3 performance regression and inability to establish huge page mappings. A revised version of the ndctl "dax.sh" huge page unit test identifies commit 23c84eb78375 "dax: Fix missed wakeup with PMD faults" as the source. Update get_unlocked_entry() to check for NULL entries befor

Re: [RFC PATCH 1/2] kvm/arm: add capability to forward hypercall to user space

2019-10-21 Thread James Morse
Hi Heyi, On 09/10/2019 13:33, Guoheyi wrote: > On 2019/10/2 1:19, James Morse wrote: >> On 24/09/2019 16:20, Heyi Guo wrote: >>> As more SMC/HVC usages emerge on arm64 platforms, like SDEI, it makes >>> sense for kvm to have the capability of forwarding such calls to user >>> space for further emu

Re: [PATCH v6 2/2] soc: amazon: al-pos-edac: Introduce Amazon's Annapurna Labs POS EDAC driver

2019-10-21 Thread James Morse
Hi Talel, On 10/10/2019 12:41, Talel Shenhar wrote: > The Amazon's Annapurna Labs SoCs includes Point Of Serialization error > logging unit that reports an error in case write error (e.g . Attempt to (This is tricky to parse. "error in case write error" -> "error when a write error occurs"?) >

Re: [PATCH v2 16/18] iio: cros_ec: Expose hwfifo_timeout

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:54:01 -0700 Gwendal Grignou wrote: > Expose EC minimal interrupt period through buffer/hwfifo_timeout: > - Maximal timeout is limited to 65s. > - When timeout for all sensors is set to 0, EC will not send events, > even if the sensor sampling rate is greater than 0. > - c

Re: [PATCH] mtd: rawnand: brcmnand: Fix sparse warning in has_flash_dma()

2019-10-21 Thread Florian Fainelli
On 10/19/19 2:39 AM, Miquel Raynal wrote: > Hi Florian, > > Florian Fainelli wrote on Fri, 18 Oct 2019 > 16:38:44 -0700: > >> Sparse rightfully complained about has_flash_dma(): >> +drivers/mtd/nand/brcmnand/brcmnand.c:951:40: warning: Using plain integer >> as NULL pointer [sparse] > > I don'

RE: [PATCH 0/6] AMD64 EDAC: Check for nodes without memory, etc.

2019-10-21 Thread Ghannam, Yazen
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > On Behalf Of Borislav Petkov > Sent: Monday, October 21, 2019 10:48 AM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/6] AMD64 EDAC: Check for nodes without memo

Re: [PATCH v2 15/18] iio: cros_ec: Remove pm function

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:54:00 -0700 Gwendal Grignou wrote: > Since cros_ec_sensorhub is shutting down the FIFO when the device > suspends, no need to slow down the EC sampling period rate. > It was necesseary to do that before command CMD_FIFO_INT_ENABLE was > introduced, but now all supported chr

Re: [PATCH v2 14/18] iio: cros_ec: Register to cros_ec_sensorhub when EC supports FIFO

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:59 -0700 Gwendal Grignou wrote: > When EC supports FIFO, each IIO device registers a callback, to put > samples in the buffer when they arrives from the FIFO. > We can still use a trigger to collect samples, but there may be some > duplications in the buffer: EC has a si

[PATCH 4/8] arm64: module/ftrace: intialize PLT at load time

2019-10-21 Thread Mark Rutland
Currently we lazily-initialize a module's ftrace PLT at runtime when we install the first ftrace call. To do so we have to apply a number of sanity checks, transiently mark the module text as RW, and perform an IPI as part of handling Neoverse-N1 erratum #1542419. We only expect the ftrace trampol

Re: [PATCH 5/5] ionic: Use debugfs_create_bool() to export bool

2019-10-21 Thread Shannon Nelson
On 10/21/19 7:51 AM, Geert Uytterhoeven wrote: Currently bool ionic_cq.done_color is exported using debugfs_create_u8(), which requires a cast, preventing further compiler checks. Fix this by switching to debugfs_create_bool(), and dropping the cast. Signed-off-by: Geert Uytterhoeven Acked-b

[PATCH 0/8] arm64: ftrace cleanup + FTRACE_WITH_REGS

2019-10-21 Thread Mark Rutland
Hi, This series is a reworked version of Torsten's v8 FTRACE_WITH_REGS series [1]. I've tried to rework the existing code in preparatory patches so that the patchable-function-entry bits slot in with fewer surprises. This version is based on v5.4-rc3, and can be found in my arm64/ftrace-with-regs

[PATCH 2/8] module/ftrace: handle patchable-function-entry

2019-10-21 Thread Mark Rutland
When using patchable-function-entry, the compiler will record the callsites into a section named "__patchable_function_entries" rather than "__mcount_loc". Let's abstract this difference behind a new FTRACE_CALLSITE_SECTION, so that architectures don't have to handle this explicitly (e.g. with cust

[PATCH 8/8] arm64: ftrace: minimize ifdeffery

2019-10-21 Thread Mark Rutland
Now that we no longer refer to mod->arch.ftrace_trampolines in the body of ftrace_make_call(), we can use IS_ENABLED() rather than ifdeffery, and make the code easier to follow. Likewise in ftrace_make_nop(). Let's do so. Signed-off-by: Mark Rutland Cc: Ard Biesheuvel Cc: Catalin Marinas Cc: W

[PATCH 3/8] arm64: module: rework special section handling

2019-10-21 Thread Mark Rutland
When we load a module, we have to perform some special work for a couple of named sections. To do this, we iterate over all of the module's sections, and perform work for each section we recognize. To make it easier to handle the unexpected absence of a section, and to make the section-specific lo

[PATCH 6/8] arm64: asm-offsets: add S_FP

2019-10-21 Thread Mark Rutland
So that assembly code can more easily manipulate the FP (x29) within a pt_regs, add an S_FP asm-offsets definition. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/asm-offsets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/asm-offs

[PATCH 1/8] ftrace: add ftrace_init_nop()

2019-10-21 Thread Mark Rutland
Architectures may need to perform special initialization of ftrace callsites, and today they do so by special-casing ftrace_make_nop() when the expected branch address is MCOUNT_ADDR. In some cases (e.g. for patchable-function-entry), we don't have an mcount-like symbol and don't want a synthetic M

[PATCH 5/8] arm64: insn: add encoder for MOV (register)

2019-10-21 Thread Mark Rutland
For FTRACE_WITH_REGS, we're going to want to generate a MOV (register) instruction as part of the callsite intialization. As MOV (register) is an alias for ORR (shifted register), we can generate this with aarch64_insn_gen_logical_shifted_reg(), but it's somewhat verbose and difficult to read in-co

[PATCH 7/8] arm64: implement ftrace with regs

2019-10-21 Thread Mark Rutland
From: Torsten Duwe This patch implements FTRACE_WITH_REGS for arm64, which allows a traced function's arguments (and some other registers) to be captured into a struct pt_regs, allowing these to be inspected and/or modified. This is a building block for live-patching, where a function's arguments

Re: [PATCH v2 13/18] iio: cros_ec: Move function description to .c file

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:58 -0700 Gwendal Grignou wrote: > To prevent comment rot, move function description to > cros_ec_sensors_core.c. > > Signed-off-by: Gwendal Grignou Great thanks. Acked-by: Jonathan Cameron > --- > New in v2. > > .../cros_ec_sensors/cros_ec_sensors_core.c| 69 +

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Simon Horman
On Mon, Oct 21, 2019 at 05:55:33PM +0800, Zhu, Lingshan wrote: > > On 10/16/2019 5:53 PM, Simon Horman wrote: > > Hi Zhu, > > > > thanks for your patch. > > > > On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote: ... > > > +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 o

Re: [PATCH] xfrm : lock input tasklet skb queue

2019-10-21 Thread Tom Rix
When preempt rt is full, softirq and interrupts run in kthreads. So it is possible for the tasklet to sleep and for its queue to get modified while it sleeps. On Mon, Oct 21, 2019 at 1:37 AM Steffen Klassert wrote: > > On Sun, Oct 20, 2019 at 08:46:10AM -0700, Tom Rix wrote: > > On PREEMPT_RT_FUL

Re: [PATCH v2 10/18] platform: chrome: sensorhub: Add FIFO support

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:55 -0700 Gwendal Grignou wrote: > cros_ec_sensorhub registers a listener and query motion sense FIFO, > spread to iio sensors registers. > > To test, we can use libiio: > iiod& > iio_readdev -u ip:localhost -T 1 -s 25 -b 16 cros-ec-gyro | od -x > > Signed-off-by: G

[PATCH 05/18] scsi: hisi_sas: Add timestamp for a debugfs dump

2019-10-21 Thread John Garry
From: Luo Jiaxing It's useful to know when the dump occurred, so add a timestamp file for this. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 ++ drivers/scsi/hisi_sas/hisi_sas_main.c | 7 +++ 2 files changed, 9 insertions(+) diff --gi

Re: [PATCH v2] tty: serial: msm_serial: Fix flow control

2019-10-21 Thread Bjorn Andersson
On Mon 21 Oct 08:46 PDT 2019, Jeffrey Hugo wrote: > hci_qca interfaces to the wcn3990 via a uart_dm on the msm8998 mtp and > Lenovo Miix 630 laptop. As part of initializing the wcn3990, hci_qca > disables flow, configures the uart baudrate, and then reenables flow - at > which point an event is e

[PATCH 07/18] scsi: hisi_sas: Add debugfs file structure for DQ

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address and DQ pointer for DQ at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John Garr

[PATCH 17/18] scsi: hisi_sas: Delete the debugfs folder of hisi_sas when the probe fails

2019-10-21 Thread John Garry
From: Luo Jiaxing Although if the debugfs initialization fails, we will delete the debugfs folder of hisi_sas, but we did not consider the scenario where debugfs was successfully initialized, but the probe failed for other reasons. We found out that hisi_sas folder is still remain after the probe

[PATCH 04/18] scsi: hisi_sas: Replace in_softirq() check in hisi_sas_task_exec()

2019-10-21 Thread John Garry
From: Xiang Chen For IOs from upper layer, preemption may be disabled as it may be called by function __blk_mq_delay_run_hw_queue which will call get_cpu() (it disables preemption). So if flags HISI_SAS_REJECT_CMD_BIT is set in function hisi_sas_task_exec(), it may disable preempt twice after dow

[PATCH 09/18] scsi: hisi_sas: Add debugfs file structure for port

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address and phy pointer for port at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John G

[PATCH 08/18] scsi: hisi_sas: Add debugfs file structure for registers

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address and hisi_hba pointer for REGS at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: J

[PATCH 06/18] scsi: hisi_sas: Add debugfs file structure for CQ

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address and CQ pointer for CQ at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John Garr

[PATCH 16/18] scsi: hisi_sas: Add ability to have multiple debugfs dumps

2019-10-21 Thread John Garry
From: Luo Jiaxing We use the module parameter debugfs_dump_count to manage the upper limit of the memory block for multiple dumps. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 5 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 73 +++

[PATCH 00/18] hisi_sas: Misc patches, mostly debugfs

2019-10-21 Thread John Garry
This series introduces a couple of minor improvements in the main driver, and mostly changes in the driver debugfs support. The main change in the driver debugfs support is the ability to take multiple memory dumps, which was not available previously. And the bulk of the changes here is to create

[PATCH 11/18] scsi: hisi_sas: Add debugfs file structure for ITCT

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address for ITCT at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drive

[PATCH 13/18] scsi: hisi_sas: Add debugfs file structure for ITCT cache

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address for ITCT cache at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry ---

[PATCH 10/18] scsi: hisi_sas: Add debugfs file structure for IOST

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address for IOST at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drive

[PATCH 12/18] scsi: hisi_sas: Add debugfs file structure for IOST cache

2019-10-21 Thread John Garry
From: Luo Jiaxing Create a file structure which was used to save the memory address for IOST cache at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it need. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry ---

[PATCH 14/18] scsi: hisi_sas: Allocate memory for multiple dumps of debugfs

2019-10-21 Thread John Garry
From: Luo Jiaxing We add multiple dumps for debugfs, but only allocate memory this time and only dump #0. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 19 +++-- drivers/scsi/hisi_sas/hisi_sas_main.c | 110 +++--- 2 files

[PATCH 15/18] scsi: hisi_sas: Add module parameter for debugfs dump count

2019-10-21 Thread John Garry
From: Luo Jiaxing We still only use dump index #0 however. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 1 + drivers/scsi/hisi_sas/hisi_sas_main.c | 16 +--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH] RFC: cpu-topology: declare parse_acpi_topology in

2019-10-21 Thread Ben Dooks (Codethink)
The parse_acpi_topology() is not declared anywhere which causes the following sparse warning: drivers/base/arch_topology.c:522:19: warning: symbol 'parse_acpi_topology' was not declared. Should it be static? RFC: is this the best place to put it? Signed-off-by: Ben Dooks (Codethink) --- Cc: Su

[PATCH 18/18] scsi: hisi_sas: Record the phy down event in debugfs

2019-10-21 Thread John Garry
From: Luo Jiaxing The number of phy down reflects the quality of the link between SAS controller and disk. In order to allow the user to confirm the link quality of the system, we record the number of phy down for each phy. The user can check the current phy down count by reading the debugfs fil

[PATCH 03/18] scsi: hisi_sas: use wait_for_completion_timeout() when clearing ITCT

2019-10-21 Thread John Garry
From: Xiang Chen When injecting 2bit ecc errors, it will cause confusion inside SAS controller which needs host reset to recover it. If a device is gone at the same times inject 2bit ecc errors, we may not receive the ITCT interrupt so it will wait for completion in clear_itct_v3_hw() all the tim

[PATCH 02/18] scsi: hisi_sas: Set the BIST init value before enabling BIST

2019-10-21 Thread John Garry
From: Xiang Chen If set the BIST init value after enabling BIST, there may be still some few error bits. According to the process, need to set the BIST init value before enabling BIST. Fixes: 97b151e75861 ("scsi: hisi_sas: Add BIST support for phy loopback") Signed-off-by: Xiang Chen Signed-off

[PATCH 01/18] scsi: hisi_sas: Don't create debugfs dump folder twice

2019-10-21 Thread John Garry
From: Xiang Chen Due to a merge error, we attempt to create 2x debugfs dump folders, which fails: [ 861.101914] debugfs: Directory 'dump' with parent ':74:02.0' already present! This breaks the dump function. To fix, remove the superfluous attempt to create the folder. Fixes: 7ec7082c57ec

Re: [PATCH] tty: serial: msm_serial: Fix flow control

2019-10-21 Thread Bjorn Andersson
On Mon 21 Oct 08:19 PDT 2019, Jeffrey Hugo wrote: > On Sun, Oct 20, 2019 at 12:28 AM Bjorn Andersson > wrote: > > > > On Sat 19 Oct 14:06 PDT 2019, Jeffrey Hugo wrote: > > > > > hci_qca interfaces to the wcn3990 via a uart_dm on the msm8998 mtp and > > > Lenovo Miix 630 laptop. As part of initia

Re: [PATCH net-next 0/8] net: hns3: add some cleanups & optimizations

2019-10-21 Thread David Miller
From: Huazhong Tan Date: Sat, 19 Oct 2019 16:03:48 +0800 > This patchset includes some cleanups and optimizations for the HNS3 > ethernet driver. ... Series applied.

Re: [PATCH] ARM: dts: exynos: Rename children of SysRAM node to "sram"

2019-10-21 Thread Krzysztof Kozlowski
On Mon, Oct 21, 2019 at 09:37:24PM +0530, Alim Akhtar wrote: > On Mon, Oct 21, 2019 at 8:45 PM Krzysztof Kozlowski wrote: > > > > The device node name should reflect generic class of a device so rename > > the children of SysRAM node to "smp-sysram". This will be also in sync > Typo "smp-sram" T

Re: [PATCH] seccomp: fix SECCOMP_USER_NOTIF_FLAG_CONTINUE test

2019-10-21 Thread Kees Cook
On Mon, Oct 21, 2019 at 07:50:13AM -0600, Tycho Andersen wrote: > On Mon, Oct 21, 2019 at 11:10:55AM +0200, Christian Brauner wrote: > > The ifndef for SECCOMP_USER_NOTIF_FLAG_CONTINUE was placed under the > > ifndef for the SECCOMP_FILTER_FLAG_NEW_LISTENER feature. This will not > > work on system

[PATCH v2] arm64: dts: qcom: msm8998: Fixup uart3 gpio config for bluetooth

2019-10-21 Thread Jeffrey Hugo
It turns out that the wcn3990 can float the gpio lines during bootup, etc which will result in the uart core thinking there is incoming data. This results in the bluetooth stack getting garbage. By applying a bias to match what wcn3990 would drive, the issue is corrected. Signed-off-by: Jeffrey

[for-linus][PATCH 0/2] tracing: A couple of fixes for upstream

2019-10-21 Thread Steven Rostedt
Prateek Sood (1): trace: Fix race in perf_trace_buf initialization Zhengjun Xing (1): tracing: Fix "gfp_t" format for synthetic events kernel/trace/trace_event_perf.c | 4 kernel/trace/trace_events_hist.c | 2 ++ 2 files changed, 6 insertions(+)

[for-linus][PATCH 2/2] trace: Fix race in perf_trace_buf initialization

2019-10-21 Thread Steven Rostedt
From: Prateek Sood [ 943.034988] Unable to handle kernel paging request at virtual address 003106f2003c [ 943.043653] Mem abort info: [ 943.046679] ESR = 0x9645 [ 943.050428] Exception class = DABT (current EL), IL = 32 bits [ 943.056643] SET = 0, FnV = 0 [ 943.060168] EA =

[PATCH v4] ARM: dts: keystone: Rename "msmram" node to "sram"

2019-10-21 Thread Krzysztof Kozlowski
The device node name should reflect generic class of a device so rename the "msmram" node and its children to "sram". This will be also in sync with upcoming DT schema. No functional change. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. Rename also children. v3 is here: https:/

[for-linus][PATCH 1/2] tracing: Fix "gfp_t" format for synthetic events

2019-10-21 Thread Steven Rostedt
From: Zhengjun Xing In the format of synthetic events, the "gfp_t" is shown as "signed:1", but in fact the "gfp_t" is "unsigned", should be shown as "signed:0". The issue can be reproduced by the following commands: echo 'memlatency u64 lat; unsigned int order; gfp_t gfp_flags; int migratetype'

Re: [PATCH v4 5/7] dt-bindings: sram: Merge Rockchip SRAM bindings into generic

2019-10-21 Thread Heiko Stübner
Am Montag, 21. Oktober 2019, 18:13:49 CEST schrieb Krzysztof Kozlowski: > The Rockchip SRAM bindings list only compatible so integrate them into > generic SRAM bindings schema. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Heiko Stuebner > > --- > > Changes since v3: > 1. New patch > ---

[PATCH v4] ARM: dts: am: Rename "ocmcram" node to "sram"

2019-10-21 Thread Krzysztof Kozlowski
The device node name should reflect generic class of a device so rename the "ocmcram" node and its children to "sram". This will be also in sync with upcoming DT schema. No functional change. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. Rename also children. v3 is here: https:

[PATCH v1 1/2] usb: chipidea: use of extcon framework to work for non OTG case

2019-10-21 Thread Igor Opaniuk
From: Stefan Agner The existing usage of extcon in chipidea driver freezes the kernel presumably due to OTGSC register access. Prevent accessing any OTG registers for SoC with dual role devices but no true OTG support. Use the flag CI_HDRC_DUAL_ROLE_NOT_OTG for those devices and in case extcon i

[PATCH v1 2/2] ARM: dts: colibri-imx6ull: add extcon for usbotg1

2019-10-21 Thread Igor Opaniuk
From: Igor Opaniuk Add extcon usb gpio configuration for support dual roles for usbotg1. USB host/gadget switching test (1. USB NIC emulation; 2. USB storage): [ 52.491957] ci_hdrc ci_hdrc.1: switching to gadget role [ 52.502911] mxs_phy 20c9000.usbphy: vbus is not valid [ 56.749160] usin

Re: [PATCH v2] scripts/nsdeps: use alternative sed delimiter

2019-10-21 Thread Matthias Maennich
Hi Jessica! On Mon, Oct 21, 2019 at 06:04:19PM +0200, Jessica Yu wrote: When doing an out of tree build with O=, the nsdeps script constructs the absolute pathname of the module source file so that it can insert MODULE_IMPORT_NS statements in the right place. However, ${srctree} contains an unes

[PATCH v4 1/7] dt-bindings: sram: Convert SRAM bindings to json-schema

2019-10-21 Thread Krzysztof Kozlowski
Convert generic mmio-sram bindings to DT schema format using json-schema. Require the address/size cells to be 1, not equal to root node. This also fixes the check for clocks property to be in main root node instead of children. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. Inte

[PATCH v4 7/7] dt-bindings: sram: Merge Socionext SRAM bindings into generic

2019-10-21 Thread Krzysztof Kozlowski
The Socionext SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. New patch --- .../bindings/sram/milbeaut-smp-sram.txt | 24 --- .../devicetree/bindings/sram/sram.yaml

[PATCH v4 2/7] dt-bindings: sram: Merge Samsung SRAM bindings into generic

2019-10-21 Thread Krzysztof Kozlowski
The Samsung SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. New patch --- .../devicetree/bindings/sram/samsung-sram.txt | 38 --- .../devicetree/bindings/sram/sram.yaml|

[PATCH v4 4/7] dt-bindings: sram: Merge Renesas SRAM bindings into generic

2019-10-21 Thread Krzysztof Kozlowski
The Renesas SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. New patch --- .../bindings/sram/renesas,smp-sram.txt| 27 --- .../devicetree/bindings/sram/sram.yaml|

[PATCH v4 6/7] dt-bindings: sram: Merge Allwinner SRAM bindings into generic

2019-10-21 Thread Krzysztof Kozlowski
The Allwinner SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. New patch --- .../bindings/arm/sunxi/smp-sram.txt | 44 --- .../devicetree/bindings/sram/sram.yaml

[PATCH v4 3/7] dt-bindings: sram: Merge Amlogic SRAM bindings into generic

2019-10-21 Thread Krzysztof Kozlowski
The Amlogic SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. New patch --- .../bindings/arm/amlogic/smp-sram.txt | 32 --- .../devicetree/bindings/sram/sram.yaml|

RE: [PATCH] scripts/nsdeps: escape '/' for module source files

2019-10-21 Thread David Laight
>From Jessica Yu > Sent: 21 October 2019 15:52 > When doing an out of tree build with O=, the nsdeps script constructs > the absolute pathname of the module source file so that it can insert > MODULE_IMPORT_NS statements in the right place. However, ${srctree} > contains an unescaped path to the so

[PATCH v4 5/7] dt-bindings: sram: Merge Rockchip SRAM bindings into generic

2019-10-21 Thread Krzysztof Kozlowski
The Rockchip SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski --- Changes since v3: 1. New patch --- .../bindings/sram/rockchip-smp-sram.txt | 30 --- .../devicetree/bindings/sram/sram.yaml|

Re: [PATCH v4 15/16] module: Move where we mark modules RO,X

2019-10-21 Thread Peter Zijlstra
On Mon, Oct 21, 2019 at 05:34:25PM +0200, Peter Zijlstra wrote: > On Mon, Oct 21, 2019 at 04:14:02PM +0200, Peter Zijlstra wrote: > So On IRC Josh suggested we use text_poke() for RELA. Since KLP is only > available on Power and x86, and Power does not have STRICT_MODULE_RWX, > the below should be

Re: [PATCH] rtc: report time-retrieval errors when updating alarm

2019-10-21 Thread Alexandre Belloni
Hello Brian, On 21/05/2018 09:42:22-0700, Brian Norris wrote: > __rtc_read_time() can fail (e.g., if the RTC uses an unreliable medium). > When it does, we don't report the error, but instead calculate a > 1-second alarm based on the potentially-garbage 'tm' (in practice, > __rtc_read_time() zeroe

[PATCH v4 2/2] dt-bindings: pwm: Convert Samsung PWM bindings to json-schema

2019-10-21 Thread Krzysztof Kozlowski
Convert Samsung PWM (S3C, S5P and Exynos SoCs) bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v3: 1. Add reviewed-by. Changes since v2: 1. Add additionalProperties: false. Changes since v1: 1. Indent example with

Re: PCI device function not being enumerated [Was: PCMCIA not working on Panasonic Toughbook CF-29]

2019-10-21 Thread Bjorn Helgaas
On Sun, Oct 20, 2019 at 11:08:00AM +0200, Dominik Brodowski wrote: > On the basis of the additional information (thanks), there might be a > more specific path to investigate: It is that the PCI code does not > enumerate the second cardbus bridge PCI function in the more recent 4.19 > kernel compar

Re: [PATCH v2 1/5] perf util: Create new block.h/block.c for block related functions

2019-10-21 Thread Jiri Olsa
On Tue, Oct 15, 2019 at 01:33:46PM +0800, Jin Yao wrote: SNIP > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > index 39814b1806a6..3121c0055950 100644 > --- a/tools/perf/util/Build > +++ b/tools/perf/util/Build > @@ -1,4 +1,5 @@ > perf-y += annotate.o > +perf-y += block.o > perf-y

Re: [PATCH v3] apparmor: Fix use-after-free in aa_audit_rule_init

2019-10-21 Thread Tyler Hicks
On 2019-10-21 11:05:31, Navid Emamdoost wrote: > In the implementation of aa_audit_rule_init(), when aa_label_parse() > fails the allocated memory for rule is released using > aa_audit_rule_free(). But after this release, the return statement > tries to access the label field of the rule which resu

Re: [PATCH v2 3/5] perf report: Sort by sampled cycles percent per block for stdio

2019-10-21 Thread Jiri Olsa
On Mon, Oct 21, 2019 at 04:04:39PM +0200, Jiri Olsa wrote: > On Mon, Oct 21, 2019 at 02:56:57PM +0800, Jin, Yao wrote: > > SNIP > > > > > Does it seem like what the c2c does? > > > > > > well c2c has its own data output with multiline column titles, > > > hence it has its own separate dimension

Re: [PATCH 16/18] arm64: kprobes: fix kprobes without CONFIG_KRETPROBES

2019-10-21 Thread Kees Cook
On Mon, Oct 21, 2019 at 08:21:48AM +0200, Ard Biesheuvel wrote: > On Fri, 18 Oct 2019 at 18:11, Sami Tolvanen wrote: > > > > This allows CONFIG_KRETPROBES to be disabled without disabling > > kprobes entirely. > > > > Signed-off-by: Sami Tolvanen > > Can we make kretprobes work with the shadow c

Re: [PATCH] ARM: dts: exynos: Rename children of SysRAM node to "sram"

2019-10-21 Thread Alim Akhtar
On Mon, Oct 21, 2019 at 8:45 PM Krzysztof Kozlowski wrote: > > The device node name should reflect generic class of a device so rename > the children of SysRAM node to "smp-sysram". This will be also in sync Typo "smp-sram" > with upcoming DT schema. No functional change. > > Signed-off-by: Krzy

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-21 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please Kin

Re: [PATCH v2 3/5] perf report: Sort by sampled cycles percent per block for stdio

2019-10-21 Thread Jiri Olsa
On Tue, Oct 15, 2019 at 01:33:48PM +0800, Jin Yao wrote: SNIP > --- a/tools/perf/builtin-report.c > +++ b/tools/perf/builtin-report.c > @@ -51,6 +51,7 @@ > #include "util/util.h" // perf_tip() > #include "ui/ui.h" > #include "ui/progress.h" > +#include "util/block.h" > > #include > #inclu

Re: [PATCH v2 07/18] platform: chrome: cros_ec: handle MKBP more events flag

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:52 -0700 Gwendal Grignou wrote: > From: Enrico Granata > > The ChromeOS EC has support for signaling to the host that > a single IRQ can serve multiple MKBP (Matrix KeyBoard Protocol) > events. > > Doing this serves an optimization purpose, as it minimizes the > numbe

Re: [PATCH v2 3/5] perf report: Sort by sampled cycles percent per block for stdio

2019-10-21 Thread Jiri Olsa
On Tue, Oct 15, 2019 at 01:33:48PM +0800, Jin Yao wrote: SNIP > + cycles += bi->cycles_aggr / bi->num_aggr; > + > + he_block = hists__add_entry_block(&bh->block_hists, > + &al, bi); > +

Re: [PATCH v2] apparmor: Fix use-after-free in aa_audit_rule_init

2019-10-21 Thread Navid Emamdoost
On Mon, Oct 21, 2019 at 10:45 AM Tyler Hicks wrote: > > On 2019-10-21 10:23:47, Navid Emamdoost wrote: > > In the implementation of aa_audit_rule_init(), when aa_label_parse() > > fails the allocated memory for rule is released using > > aa_audit_rule_free(). But after this release, the return sta

Re: WARNING: refcount bug in find_key_to_update

2019-10-21 Thread Dmitry Vyukov
On Mon, Oct 21, 2019 at 5:59 PM David Howells wrote: > > syzbot wrote: > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11c8adab60 > > How do I tell what's been passed into the add_key for the encrypted key? Hi David, The easiest and most reliable would be to run it and dum

[PATCH v3] apparmor: Fix use-after-free in aa_audit_rule_init

2019-10-21 Thread Navid Emamdoost
In the implementation of aa_audit_rule_init(), when aa_label_parse() fails the allocated memory for rule is released using aa_audit_rule_free(). But after this release, the return statement tries to access the label field of the rule which results in use-after-free. Before releasing the rule, copy

[PATCH v2] scripts/nsdeps: use alternative sed delimiter

2019-10-21 Thread Jessica Yu
When doing an out of tree build with O=, the nsdeps script constructs the absolute pathname of the module source file so that it can insert MODULE_IMPORT_NS statements in the right place. However, ${srctree} contains an unescaped path to the source tree, which, when used in a sed substitution, make

Re: [PATCH v2 04/18] platform/mfd:iio: cros_ec: Register sensor through sensorhub

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:49 -0700 Gwendal Grignou wrote: > - Remove duplicate code in mfd, since mfd just register > cros_ec_sensorhub if at least one sensor is present > - Change iio cros_ec driver to get the pointer to the cros_ec_dev > through cros_ec_sensorhub. > > Signed-off-by: Gwenda

Re: [PATCH v2 03/18] platform: cros_ec: Add cros_ec_sensor_hub driver

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:48 -0700 Gwendal Grignou wrote: > Similar to HID sensor stack, the new driver sits between cros_ec_dev > and the iio device drivers: > > EC based iio device topology would be: > iio:device1 -> > ...0/:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.6.auto/ >

Re: linux-next: Tree for Oct 18 (objtool)

2019-10-21 Thread Randy Dunlap
On 10/21/19 6:11 AM, Peter Zijlstra wrote: > On Mon, Oct 21, 2019 at 02:35:49PM +0200, Peter Zijlstra wrote: >> On Fri, Oct 18, 2019 at 08:33:11AM -0700, Randy Dunlap wrote: >>> On 10/18/19 12:03 AM, Stephen Rothwell wrote: Hi all, Changes since 20191017: >>> >>> on x86_64: >>>

Re: WARNING: refcount bug in find_key_to_update

2019-10-21 Thread David Howells
syzbot wrote: > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11c8adab60 How do I tell what's been passed into the add_key for the encrypted key? David

[PATCH 1/4] rtc: ab-b5ze-s3: remove .remove

2019-10-21 Thread Alexandre Belloni
dpm_sysfs_remove() and device_pm_remove() are already called by device_del() on device removal so there is no need to call device_init_wakeup(dev, false) from the driver and it allows to remove the .remove callback. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ab-b5ze-s3.c | 11 -

[PATCH 2/4] rtc: lpc32xx: remove .remove

2019-10-21 Thread Alexandre Belloni
dpm_sysfs_remove() and device_pm_remove() are already called by device_del() on device removal so there is no need to call device_init_wakeup(dev, false) from the driver and it allows to remove the .remove callback. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-lpc32xx.c | 11 ---

Re: [PATCHv2] arm64: dts: altera: update QSPI reg addresses for Stratix10

2019-10-21 Thread Dinh Nguyen
On 10/16/19 4:44 AM, Ooi, Joyce wrote: > This patch updates the reg addresses for QSPI boot and QSPI rootfs in > the device tree for Stratix10 > > Signed-off-by: Ooi, Joyce > --- > v2: update the qspi_rootfs partition size > --- > arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 6 +++

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