[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

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

[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

[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:

[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

[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

[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

[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

[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

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

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

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:

[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

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

[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

[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

[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

[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

[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:

[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

[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 ---

[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 ---

[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

[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

[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:

[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

[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

[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

[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:

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

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"

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

[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:

[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

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:

[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

[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]

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

[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.

[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

[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

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()

[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

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 >

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

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

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:

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

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 >

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 >

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(>block_hists, > + , bi); > + if

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

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

[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,

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:

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

[PATCH 4/4] rtc: sc27xx: 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-sc27xx.c | 7 --- 1

[PATCH 3/4] rtc: sirfsoc: 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-sirfsoc.c | 8 1

Re: [PATCH v8] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-10-21 Thread Jarkko Sakkinen
On Wed, Oct 16, 2019 at 09:28:14PM +0300, ivan.laz...@gmail.com wrote: > From: Ivan Lazeev > > Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 > > cmd/rsp buffers are expected to be in the same ACPI region. > For Zen+ CPUs BIOS's might report two different regions, some of > them

Re: [PATCHv2] arm64: defconfig: add JFFS FS support in defconfig

2019-10-21 Thread Dinh Nguyen
On 10/17/19 1:28 AM, Ooi, Joyce wrote: > This patch adds JFFS2 FS support and remove QSPI Sector 4K size force in > the default defconfig > > Signed-off-by: Ooi, Joyce > --- > v2: disable CONFIG_MTD_SPI_NOR_USE_4K_SECTORS using the correct syntax > --- > arch/arm64/configs/defconfig | 2 ++ >

[PATCH] rtc: disable uie before setting time and enable after

2019-10-21 Thread Alexandre Belloni
When setting the time in the future with the uie timer enabled, rtc_timer_do_work will loop for a while because the expiration of the uie timer was way before the current RTC time and a new timer will be enqueued until the current rtc time is reached. If the uie timer is enabled, disable it

[PATCH] rtc: disallow update interrupts when time is invalid

2019-10-21 Thread Alexandre Belloni
Never enable update interrupts when the time set on the rtc is invalid. In that case, also avoid enabling the emulation because it will fail for the same reason. Signed-off-by: Alexandre Belloni --- drivers/rtc/interface.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-)

Re: [PATCH v1 1/2] mm/page_alloc.c: Don't set pages PageReserved() when offlining

2019-10-21 Thread David Hildenbrand
On 21.10.19 17:47, Michal Hocko wrote: On Mon 21-10-19 17:39:36, David Hildenbrand wrote: On 21.10.19 16:43, Michal Hocko wrote: [...] We still set PageReserved before onlining pages and that one should be good to go as well (memmap_init_zone). Thanks! memmap_init_zone() is called when

Re: [PATCH] trace: fix race in perf_trace_buf initialization

2019-10-21 Thread Song Liu
> On Oct 21, 2019, at 8:44 AM, Steven Rostedt wrote: > > On Mon, 21 Oct 2019 10:12:43 +0530 > Prateek Sood wrote: > >> Hi Song, >> >> Could you please help in this query. > > I have it ready to go to Linus. I'll wait a few hours, and if I don't > hear anything I'll send it out. > Sorry

Re: [PATCH v2 02/18] mfd: cros_ec: Add sensor_count and make check_features public

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:47 -0700 Gwendal Grignou wrote: > Add a new function to return the number of MEMS sensors available in a > ChromeOS Embedded Controller. > It uses MOTIONSENSE_CMD_DUMP if available or a specific memory map ACPI > registers to find out. > > Also, make check_features

Re: [PATCH v3 4/5] net: dsa: add support for Atheros AR9331 TAG format

2019-10-21 Thread Andrew Lunn
> +static struct sk_buff *ar9331_tag_rcv(struct sk_buff *skb, > + struct net_device *ndev, > + struct packet_type *pt) > +{ > + u8 ver, port; > + u16 hdr; > + > + if (unlikely(!pskb_may_pull(skb, AR9331_HDR_LEN))) > +

Re: [PATCH] security/keyring: avoid pagefaults in keyring_read_iterator

2019-10-21 Thread Jarkko Sakkinen
On Fri, Oct 18, 2019 at 02:40:30PM -0400, Chris von Recklinghausen wrote: > under a debug kernel, the following circular locking dependency was observed: > > [ 5896.294840] == > [ 5896.294846] [ INFO: possible circular locking dependency

Re: KASAN: slab-out-of-bounds Read in handle_vmptrld

2019-10-21 Thread Paolo Bonzini
Fixed now by commit 59bb47985c1d ("mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two)"). Paolo On 11/09/19 22:38, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    1e3778cb Merge tag 'scsi-fixes' of > git://git.kernel.org/pu.. > git tree:  

Re: [PATCH v1 1/2] mm/page_alloc.c: Don't set pages PageReserved() when offlining

2019-10-21 Thread Michal Hocko
On Mon 21-10-19 17:39:36, David Hildenbrand wrote: > On 21.10.19 16:43, Michal Hocko wrote: [...] > > We still set PageReserved before onlining pages and that one should be > > good to go as well (memmap_init_zone). > > Thanks! > > memmap_init_zone() is called when onlining memory. There, set all

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

2019-10-21 Thread Jeffrey Hugo
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 expected to be received over the uart from the wcn3990. It

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

2019-10-21 Thread Tyler Hicks
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 statement > tries to access the label field of the rule which

Re: [PATCH v3] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-10-21 Thread Mika Westerberg
On Mon, Oct 21, 2019 at 04:49:09PM +0200, Karol Herbst wrote: > On Mon, Oct 21, 2019 at 4:09 PM Mika Westerberg > wrote: > > > > On Mon, Oct 21, 2019 at 03:54:09PM +0200, Karol Herbst wrote: > > > > I really would like to provide you more information about such > > > > workaround but I'm not

Re: [PATCH] security/keyring: avoid pagefaults in keyring_read_iterator

2019-10-21 Thread Chris von Recklinghausen
On 10/21/2019 10:21 AM, David Howells wrote: > Chris von Recklinghausen wrote: > >> The put_user call from keyring_read_iterator caused a page fault which >> attempts to lock mm->mmap_sem and type->lock_class (key->sem) in the reverse >> order that keyring_read_iterator did, thus causing the

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: > 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 sufficient. And... s390 also has HAVE_LIVEPATCH and

[PATCH] power: supply: cpcap-charger: Make cpcap_charger_voltage_to_regval static

2019-10-21 Thread zhong jiang
The GCC complains the following case when compiling kernel. drivers/power/supply/cpcap-charger.c:563:5: warning: symbol 'cpcap_charger_voltage_to_regval' was not declared. Should it be static? Signed-off-by: zhong jiang --- drivers/power/supply/cpcap-charger.c | 2 +- 1 file changed, 1

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