[PATCH v3 04/10] serial: stm32: add pm_runtime support

2019-06-13 Thread Erwan Le Ray
Use pm_runtime for clock management. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index a8f20ba..41898c4 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -810,13 +810

[PATCH v3 00/10] STM32 usart power improvements

2019-06-13 Thread Erwan Le Ray
This series delivers power improvements for stm32-usart driver. Changes in v3: Move pinctrl/consumer.h include from "add support for no_console_suspend" patch to "select pinctrl state" patch in order to solve a compilation issue. Bich Hemon (3): dt-bindings: serial: add optional pinctrl states

[PATCH v3 01/10] dt-bindings: serial: stm32: add wakeup option

2019-06-13 Thread Erwan Le Ray
Add a note for enabling wakeup capabilities of usart Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt index 9d3efed..5ec80c1 100644 --- a/Documentation/de

[PATCH v3 02/10] dt-bindings: serial: add optional pinctrl states

2019-06-13 Thread Erwan Le Ray
From: Bich Hemon Add options for pinctrl states: - "sleep" for low power - "idle" for low power and wakeup capabilities enabled - "no_console_suspend" for enabling console messages in low power Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray diff --git a/Documentation/devicetree/binding

Re: [PATCHv2 0/3] improve wait logic of stop_machine

2019-06-13 Thread Peter Zijlstra
On Thu, Jun 13, 2019 at 12:35:07PM +0200, Heiko Carstens wrote: > Heiko Carstens (2): > processor: remove spin_cpu_yield > processor: get rid of cpu_relax_yield > > Martin Schwidefsky (1): > s390: improve wait logic of stop_machine > > arch/powerpc/include/asm/processor.h | 2 -- > arch/s

[PATCH v3 05/10] serial: stm32: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2019-06-13 Thread Erwan Le Ray
Use __maybe_unused for power management related functionsinstead of fixes: 270e5a74fe4c ("serial: stm32: add wakeup mechanism") Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 41898c4..b0fb420 100644 --- a/drivers/tty/serial/stm3

[PATCH v3 06/10] serial: stm32: add support for no_console_suspend

2019-06-13 Thread Erwan Le Ray
In order to display console messages in low power mode, console pins must be kept active after suspend call. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray Conflicts: drivers/tty/serial/stm32-usart.c diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.

Re: [PATCH v3 2/7] drivers: regulator: qcom_spmi: Refactor get_mode/set_mode

2019-06-13 Thread Bjorn Andersson
On Thu 13 Jun 07:22 PDT 2019, Jeffrey Hugo wrote: > spmi_regulator_common_get_mode and spmi_regulator_common_set_mode use > multi-level ifs which mirror a switch statement. Refactor to use a switch > statement to make the code flow more clear. > > Signed-off-by: Jeffrey Hugo > --- > drivers/re

Re: [PATCH v7 3/5] usb: host: ohci-sm501: init genalloc for local memory

2019-06-13 Thread Fredrik Noring
Hi Guenter, > I don't think I'll have time to do that anytime soon. Not that I know what > exactly to look for in the first place. I can confirm that there is a problem with mass storage devices and these local memory patches. Fredrik

Re: [PATCH v2 00/19] btrfs zoned block device support

2019-06-13 Thread David Sterba
On Thu, Jun 13, 2019 at 04:59:23AM +, Naohiro Aota wrote: > On 2019/06/13 2:50, David Sterba wrote: > > On Fri, Jun 07, 2019 at 10:10:06PM +0900, Naohiro Aota wrote: > >> btrfs zoned block device support > >> > >> This series adds zoned block device support to btrfs. > > > > The overall design

Re: [RFC PATCH 2/9] x86/sgx: Do not naturally align MAP_FIXED address

2019-06-13 Thread Jarkko Sakkinen
On Thu, Jun 06, 2019 at 06:37:10PM +0300, Jarkko Sakkinen wrote: > On Wed, Jun 05, 2019 at 01:14:04PM -0700, Andy Lutomirski wrote: > > > > > > > On Jun 5, 2019, at 8:17 AM, Jarkko Sakkinen > > > wrote: > > > > > >> On Tue, Jun 04, 2019 at 10:10:22PM +, Xing, Cedric wrote: > > >> A bit off

Re: [PATCH 02/13] uapi: General notification ring definitions [ver #4]

2019-06-13 Thread David Howells
Randy Dunlap wrote: > What is the problem with inline functions in UAPI headers? It makes compiler problems more likely; it increases the potential for name collisions with userspace; it makes for more potential problems if the headers are imported into some other language; and it's not easy to

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Jason Gunthorpe
On Wed, Jun 12, 2019 at 03:54:19PM -0700, Dan Williams wrote: > > > My preference would be to avoid this scenario, but if it is really > > > necessary, we could probably build it with some work. > > > > > > The only case we use it today is forced HW hot unplug, so it is rarely > > > used and only f

[PATCH] lockdep: introduce lockdep_assert_not_held()

2019-06-13 Thread David Sterba
Add an assertion that a lock is not held, suitable for the following (simplified) usecase in filesystems: - filesystem write - lock(&big_filesystem_lock) - kmalloc(GFP_KERNEL) - trigger dirty data write to get more memory - find dirty pages - call filesystem write - loc

[PATCH 4/3] binfmt/elf: don't expose prandom_u32() state

2019-06-13 Thread Yann Droneaud
Using prandom_u32() to get random offsets might expose fraction of its internal state to userspace; To prevent leaking prandom_u32() state, get_random_u32() could be used instead, but with greater cost. But it would be a big waste to call get_random_u32() to retrieve only 4bits to 8bits at a time

Re: [RFC 1/7] tee: optee: allow kernel pages to register as shm

2019-06-13 Thread Jarkko Sakkinen
On Thu, Jun 13, 2019 at 04:00:27PM +0530, Sumit Garg wrote: > Kernel pages are marked as normal type memory only so allow kernel pages > to be registered as shared memory with OP-TEE. > > Signed-off-by: Sumit Garg Just out of pure interest why this was not allowed before? /Jarkko

[PATCH v2] drm/komeda: Make Komeda interrupts shareable

2019-06-13 Thread Ayan Halder
Komeda interrupts may be shared with other hardware blocks. One needs to use devm_request_irq() with IRQF_SHARED to create a shared interrupt handler. As a result of not using drm_irq_install() api, one needs to set "(struct drm_device *)->irq_enabled = true/false" to enable/disable vblank interru

Re: [PATCH 4.19 000/118] 4.19.51-stable review

2019-06-13 Thread kernelci.org bot
stable-rc/linux-4.19.y boot: 123 boots: 0 failed, 122 passed with 1 untried/unknown (v4.19.50-119-g94ea812871ce) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.19.y/kernel/v4.19.50-119-g94ea812871ce/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/

Re: [PATCH v4 2/3] lib: logic_pio: Reject accesses to unregistered CPU MMIO regions

2019-06-13 Thread Bjorn Helgaas
On Thu, Jun 13, 2019 at 11:17:37AM +0100, John Garry wrote: > On 13/06/2019 04:20, Bjorn Helgaas wrote: > > On Tue, Jun 11, 2019 at 10:12:53PM +0800, John Garry wrote: > > > Currently when accessing logical indirect PIO addresses in > > > logic_{in, out}{,s}, we first ensure that the region is regi

[PATCH v4 0/5] Add QCS404 interconnect provider driver

2019-06-13 Thread Georgi Djakov
Add drivers to support scaling of the on-chip interconnects on QCS404-based platforms. Also add the necessary device-tree nodes, so that the driver for each NoC can probe and register as interconnect-provider. v4: - Move DT headers into the dt-bindings patch (Bjorn) - Pick Bjorn's r-b on some patc

Re: [PATCH v10 01/11] drm/sun4i: dsi: Fix TCON DRQ set bits

2019-06-13 Thread Maxime Ripard
On Wed, Jun 05, 2019 at 01:17:11PM +0530, Jagan Teki wrote: > On Tue, Jun 4, 2019 at 3:30 PM Maxime Ripard > wrote: > > > > On Wed, May 29, 2019 at 11:44:56PM +0530, Jagan Teki wrote: > > > On Wed, May 29, 2019 at 8:24 PM Maxime Ripard > > > wrote: > > > > > > > > On Fri, May 24, 2019 at 03:48:

[PATCH v4 2/5] soc: qcom: smd-rpm: Create RPM interconnect proxy child device

2019-06-13 Thread Georgi Djakov
Register a platform device to handle the communication of bus bandwidth requests with the remote processor. The interconnect proxy device is part of this remote processor (RPM) hardware. Let's create a icc-smd-rpm proxy child device to represent the bus throughput functionality that is provided by

[PATCH v4 4/5] interconnect: qcom: Add QCS404 interconnect provider driver

2019-06-13 Thread Georgi Djakov
From: Bjorn Andersson Add driver for the interconnect buses found in Qualcomm QCS404-based platforms. The topology consists of three NoCs that are controlled by a remote processor. This remote processor collects the aggregated bandwidth for each master-slave pairs. Signed-off-by: Bjorn Andersson

[PATCH v4 3/5] interconnect: qcom: Add interconnect SMD over SMD driver

2019-06-13 Thread Georgi Djakov
On some Qualcomm SoCs, there is a remote processor, which controls some of the Network-On-Chip interconnect resources. Other CPUs express their needs by communicating with this processor. Add a driver to handle communication with this remote processor. Signed-off-by: Georgi Djakov --- v4: - Hide

[PATCH v2 2/2] ARM: dts: Add support for 96Boards Meerkat96 board

2019-06-13 Thread Manivannan Sadhasivam
Add devicetree support for 96Boards Meerkat96 board from Novtech. This board is one of the Consumer Edition boards of the 96Boards family based on i.MX7D SoC. Following are the currently supported features of the board: * uSD * WiFi/BT * USB More information about this board can be found in 96Boa

Re: [PATCH 2/2] nbd: add support for nbd as root device

2019-06-13 Thread Eric Blake
On 6/13/19 9:45 AM, Roman Stratiienko wrote: >> >> Just throw nbd-client in your initramfs. Every nbd server has it's own >> handshake protocol, embedding one particular servers handshake protocol into >> the >> kernel isn't the answer here. Thanks, The handshake protocol is well-specified: ht

[PATCH v4 1/5] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings

2019-06-13 Thread Georgi Djakov
The Qualcomm QCS404 platform has several buses that could be controlled and tuned according to the bandwidth demand. Reviewed-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- v4: - Add the DT header into this patch. - Pick Bjorn's r-b. v3: - Add a reg property and move the interconnect nod

Re: [PATCH v3 3/5] mm, thp: introduce FOLL_SPLIT_PMD

2019-06-13 Thread Kirill A. Shutemov
On Thu, Jun 13, 2019 at 03:03:01PM +, Song Liu wrote: > > > > On Jun 13, 2019, at 7:16 AM, Kirill A. Shutemov > > wrote: > > > > On Thu, Jun 13, 2019 at 01:57:30PM +, Song Liu wrote: > >>> And I'm not convinced that it belongs here at all. User requested PMD > >>> split and it is done

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Jason Gunthorpe
On Wed, Jun 12, 2019 at 06:14:46PM -0700, Dan Williams wrote: > > Effectively, we would need a way for an admin to close a specific file > > descriptor (or set of fds) which point to that file. AFAIK there is no way > > to > > do that at all, is there? > > Even if there were that gets back to my

[PATCH v2 1/2] dt-bindings: arm: Document 96Boards Meerkat96 devicetree binding

2019-06-13 Thread Manivannan Sadhasivam
Document 96Boards Meerkat96 devicetree binding based on i.MX7D SoC. Reviewed-by: Rob Herring Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentatio

Re: [PATCH v5 00/10] Support using MSI interrupts in ntb_transport

2019-06-13 Thread Jon Mason
On Thu, May 23, 2019 at 04:30:50PM -0600, Logan Gunthorpe wrote: > This is another resend as there has been no feedback since v4. > Seems Jon has been MIA this past cycle so hopefully he appears on the > list soon. > > I've addressed the feedback so far and rebased on the latest kernel > and would

Re: linux-next: build warning after merge of the tpmdd tree

2019-06-13 Thread Jarkko Sakkinen
Matthew, can you provide a fixup for this? /Jarkko On Tue, Jun 11, 2019 at 02:52:55PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the tpmdd tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/firmware/efi/tpm.c: In function 'efi_tpm_eventl

Re: [PATCH v10 09/11] drm/sun4i: sun6i_mipi_dsi: Add VCC-DSI regulator support

2019-06-13 Thread Maxime Ripard
On Thu, Jun 13, 2019 at 01:25:52PM +0530, Jagan Teki wrote: > On Mon, Jun 3, 2019 at 7:19 PM Maxime Ripard > wrote: > > > > On Mon, May 20, 2019 at 02:33:16PM +0530, Jagan Teki wrote: > > > Allwinner MIPI DSI controllers are supplied with SoC > > > DSI power rails via VCC-DSI pin. > > > > > > Add

[PATCH v4 5/5] arm64: dts: qcs404: Add interconnect provider DT nodes

2019-06-13 Thread Georgi Djakov
Add the DT nodes for the network-on-chip interconnect buses found on qcs404-based platforms. Reviewed-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- v4: - Insert the NoC DT nodes after rng@ to keep the nodes sorted by address. - Pick Bjorn's r-b. v3: - Update according to the new binding

[PATCH v2 0/2] Add 96Boards Meerkat96 board support

2019-06-13 Thread Manivannan Sadhasivam
Hello, This patchset adds board support for 96Boards Meerkat96 board from Novtech. This board is one of the Consumer Edition boards of the 96Boards family based on i.MX7D SoC. Following are the currently supported features of the board: * uSD * WiFi/BT * USB More information about this board can

Re: [PATCH v4] arm64: dts: allwinner: h6: Add DMA node

2019-06-13 Thread Maxime Ripard
On Tue, Jun 11, 2019 at 11:40:55PM +0200, Clément Péron wrote: > From: Jernej Skrabec > > H6 has DMA controller which supports 16 channels. > > Add a node for it. > > Signed-off-by: Jernej Skrabec > Signed-off-by: Clément Péron Applied, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux a

[PATCH 8/9] x86/bpf: Convert asm comments to AT&T syntax

2019-06-13 Thread Josh Poimboeuf
Convert the BPF JIT assembly comments to AT&T syntax to reduce confusion. AT&T syntax is the default standard, used throughout Linux and by the GNU assembler. Signed-off-by: Josh Poimboeuf --- arch/x86/net/bpf_jit_comp.c | 156 ++-- 1 file changed, 78 insertions(

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-13 Thread Liviu Dudau
On Thu, Jun 13, 2019 at 11:08:14AM +0200, Daniel Vetter wrote: > On Thu, Jun 13, 2019 at 09:28:13AM +0100, Liviu Dudau wrote: > > On Thu, Jun 13, 2019 at 10:17:27AM +0200, Daniel Vetter wrote: > > > On Wed, Jun 12, 2019 at 02:26:24AM +, james qian wang (Arm Technology > > > China) wrote: > > >

[PATCH 9/9] x86/bpf: Convert MOV function/macro argument ordering to AT&T syntax

2019-06-13 Thread Josh Poimboeuf
Now that the comments have been converted to AT&T syntax, swap the order of the src/dst arguments in the MOV-related functions and macros to match the ordering of AT&T syntax. Signed-off-by: Josh Poimboeuf --- arch/x86/net/bpf_jit_comp.c | 44 ++--- 1 file changed

Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I

2019-06-13 Thread Maxime Ripard
Hi, On Wed, Jun 12, 2019 at 12:00:21PM +0200, Andrzej Hajda wrote: > On 07.06.2019 11:40, Torsten Duwe wrote: > > On Fri, Jun 07, 2019 at 08:28:02AM +0200, Maxime Ripard wrote: > >> On Thu, Jun 06, 2019 at 03:59:27PM +0200, Harald Geyer wrote: > >>> If think valid compatible properties would be: >

Re: [PATCH v7 22/27] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-06-13 Thread Dave Martin
On Wed, Jun 12, 2019 at 12:04:01PM -0700, Yu-cheng Yu wrote: > On Wed, 2019-06-12 at 10:32 +0100, Dave Martin wrote: > > On Tue, Jun 11, 2019 at 12:31:34PM -0700, Yu-cheng Yu wrote: > > > On Tue, 2019-06-11 at 12:41 +0100, Dave Martin wrote: > > > > On Mon, Jun 10, 2019 at 07:24:43PM +0200, Florian

Re: [PATCH v3 1/3] thermal: sun8i: add thermal driver for h6

2019-06-13 Thread Maxime Ripard
On Fri, Jun 07, 2019 at 09:34:44PM +0800, Frank Lee wrote: > On Mon, May 27, 2019 at 8:27 PM Maxime Ripard > wrote: > > > + ret = devm_request_threaded_irq(dev, irq, NULL, > > > + tmdev->chip->irq_thread, > > > + IRQF_ONE

Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I

2019-06-13 Thread Maxime Ripard
On Fri, Jun 07, 2019 at 11:40:30AM +0200, Torsten Duwe wrote: > On Fri, Jun 07, 2019 at 08:28:02AM +0200, Maxime Ripard wrote: > > On Thu, Jun 06, 2019 at 03:59:27PM +0200, Harald Geyer wrote: > > > > > > If think valid compatible properties would be: > > > compatible = "innolux,n116bge", "simple-p

Re: [PATCH 0/2] Use Media Dev Allocator to fix vimc dev lifetime bugs

2019-06-13 Thread Helen Koike
On 6/13/19 2:44 AM, Hans Verkuil wrote: > On 5/24/19 5:31 AM, Shuah Khan wrote: >> media_device is embedded in struct vimc_device and when vimc is removed >> vimc_device and the embedded media_device goes with it, while the active >> stream and vimc_capture continue to access it. >> >> Fix the m

[PATCH 6/9] x86/bpf: Fix JIT frame pointer usage

2019-06-13 Thread Josh Poimboeuf
The BPF JIT code clobbers RBP. This breaks frame pointer convention and thus prevents the FP unwinder from unwinding through JIT generated code. RBP is currently used as the BPF stack frame pointer register. The actual register used is opaque to the user, as long as it's a callee-saved register.

[PATCH bpf-next] bpf: sk_storage: Fix out of bounds memory access

2019-06-13 Thread Arthur Fabre
bpf_sk_storage maps use multiple spin locks to reduce contention. The number of locks to use is determined by the number of possible CPUs. With only 1 possible CPU, bucket_log == 0, and 2^0 = 1 locks are used. When updating elements, the correct lock is determined with hash_ptr(). Calling hash_ptr

[PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-13 Thread Josh Poimboeuf
The ORC unwinder can't unwind through BPF JIT generated code because there are no ORC entries associated with the code. If an ORC entry isn't available, try to fall back to frame pointers. If BPF and other generated code always do frame pointer setup (even with CONFIG_FRAME_POINTERS=n) then this

[PATCH 5/9] x86/bpf: Support SIB byte generation

2019-06-13 Thread Josh Poimboeuf
In preparation for using R12 indexing instructions in BPF JIT code, add support for generating the x86 SIB byte. Signed-off-by: Josh Poimboeuf --- arch/x86/net/bpf_jit_comp.c | 69 + 1 file changed, 54 insertions(+), 15 deletions(-) diff --git a/arch/x86/net/

Re: [PATCH -next] efi/tpm: fix a compilation warning

2019-06-13 Thread Bartosz Szczepanek
On Thu, Jun 13, 2019 at 2:40 PM Arnd Bergmann wrote: > > Would it be correct to change that to 'false' then (or completely remove > the additional remap, given that the other two callers pass false > already) and pass final_tbl? The problem is that we don't know the final_tbl size before running

[PATCH 4/9] x86/bpf: Simplify prologue generation

2019-06-13 Thread Josh Poimboeuf
Simplify the BPF JIT prologue such that it more closely resembles a typical compiler-generated prologue. This also reduces the prologue size quite a bit. The frame pointer setup instructions at the beginning don't actually accomplish anything because RBP gets clobbered anyway later in the prologu

[PATCH 3/9] x86/bpf: Move epilogue generation to a dedicated function

2019-06-13 Thread Josh Poimboeuf
Improve code readability by moving the BPF JIT function epilogue generation code to a dedicated emit_epilogue() function, analagous to the existing emit_prologue() function. Signed-off-by: Josh Poimboeuf --- arch/x86/net/bpf_jit_comp.c | 37 - 1 file changed,

Fwd: ...in your country... I want to open a Company & Charity Foundation in your country is okay???? Christy from America...

2019-06-13 Thread Christy Ruth

Re: [PATCH v4 1/2] arm64: Define Documentation/arm64/tagged-address-abi.txt

2019-06-13 Thread Dave Martin
On Thu, Jun 13, 2019 at 01:28:21PM +0100, Catalin Marinas wrote: > On Thu, Jun 13, 2019 at 12:37:32PM +0100, Dave P Martin wrote: > > On Thu, Jun 13, 2019 at 11:15:34AM +0100, Vincenzo Frascino wrote: > > > On 12/06/2019 16:35, Catalin Marinas wrote: > > > > On Wed, Jun 12, 2019 at 03:21:10PM +0100

[PATCH 0/9] x86/bpf: unwinder fixes

2019-06-13 Thread Josh Poimboeuf
The following commit d15d356887e7 ("perf/x86: Make perf callchains work without CONFIG_FRAME_POINTER") was a step in the right direction, but it triggered some BPF selftest failures. That commit exposed the fact that we currently can't unwind through BPF code. - Patch 1 (originally from Song

Re: [PATCH 2/2] ARM: dts: Add support for 96Boards Meerkat96 board

2019-06-13 Thread Manivannan Sadhasivam
Hi Shawn, On Mon, Jun 03, 2019 at 08:17:17PM +0800, Shawn Guo wrote: > On Wed, May 22, 2019 at 06:45:50PM +0530, Manivannan Sadhasivam wrote: > > Add devicetree support for 96Boards Meerkat96 board from Novtech. This > > board is one of the Consumer Edition boards of the 96Boards family based > >

[PATCH 1/9] perf/x86: Always store regs->ip in perf_callchain_kernel()

2019-06-13 Thread Josh Poimboeuf
From: Song Liu The stacktrace_map_raw_tp BPF selftest is failing because the RIP saved by perf_arch_fetch_caller_regs() isn't getting saved by perf_callchain_kernel(). This was broken by the following commit: d15d356887e7 ("perf/x86: Make perf callchains work without CONFIG_FRAME_POINTER")

[PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-13 Thread Josh Poimboeuf
Objtool currently ignores ___bpf_prog_run() because it doesn't understand the jump table. This results in the ORC unwinder not being able to unwind through non-JIT BPF code. Luckily, the BPF jump table resembles a GCC switch jump table, which objtool already knows how to read. Add generic suppor

Re: [PATCH] NTB: correct ntb_dev_ops and ntb_dev comment typos

2019-06-13 Thread Jon Mason
On Tue, Apr 30, 2019 at 06:04:29PM +0800, Wesley Sheng wrote: > The comment for ntb_dev_ops and ntb_dev incorrectly referred to > ntb_ctx_ops and ntb_device. > > Signed-off-by: Wesley Sheng > Reviewed-by: Logan Gunthorpe Sorry for the delay. The series is now in the ntb branch. We've missed w

Re: Regression for MS_MOVE on kernel v5.1

2019-06-13 Thread Christian Brauner
On Wed, Jun 12, 2019 at 06:00:39PM -1000, Linus Torvalds wrote: > On Wed, Jun 12, 2019 at 12:54 PM Christian Brauner > wrote: > > > > The commit changes the internal logic to lock mounts when propagating > > mounts (user+)mount namespaces and - I believe - causes do_mount_move() > > to fail at: >

Re: [RFC 1/7] tee: optee: allow kernel pages to register as shm

2019-06-13 Thread Jarkko Sakkinen
On Thu, Jun 13, 2019 at 06:12:57PM +0300, Jarkko Sakkinen wrote: > On Thu, Jun 13, 2019 at 04:00:27PM +0530, Sumit Garg wrote: > > Kernel pages are marked as normal type memory only so allow kernel pages > > to be registered as shared memory with OP-TEE. > > > > Signed-off-by: Sumit Garg > > Jus

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

2019-06-13 Thread Jon Mason
On Thu, Jun 06, 2019 at 03:09:41PM +0800, Kelvin Cao wrote: > Hi, Everyone, > > This patch series remove redundant steps and fix one bug of the > ntb_hw_switchtec module. > > When a re-initialization is caused by a link event, the driver will > re-setup the shared memory windows. But at that tim

Re: [PATCH -next] arm64/mm: fix a bogus GFP flag in pgd_alloc()

2019-06-13 Thread Qian Cai
or pgd_cache(49:systemd- udevd.service) (error: -2 parent: cgroup) [  132.795589][ T1889] CPU: 9 PID: 1889 Comm: systemd-udevd Tainted: GW 5.2.0-rc4-next-20190613+ #8 [  132.807356][ T1889] Hardware name: HPE Apollo 70 /C01_APACHE_MB , BIOS L50_5.13_1.0.9 03/01/201

Re: [RESEND PATCH v1 0/5] Solve postboot supplier cleanup and optimize probe ordering

2019-06-13 Thread Rob Herring
On Wed, Jun 12, 2019 at 3:21 PM Frank Rowand wrote: > > Adding cc: David Collins > > Plus my comments below. > > On 6/3/19 5:32 PM, Saravana Kannan wrote: > > Add a generic "depends-on" property that allows specifying mandatory > > functional dependencies between devices. Add device-links after th

Re: [PATCH v4 00/10] klp-convert livepatch build tooling

2019-06-13 Thread Joe Lawrence
On 6/13/19 9:00 AM, Miroslav Benes wrote: Hi Joe, first, I'm sorry for the lack of response so far. Maybe you've already noticed but the selftests fail. Well, at least in my VM. When test_klp_convert1.ko is loaded, the process is killed with [ 518.041826] BUG: kernel NULL pointer dereference,

Re: [PATCH V5 6/7] i2c: tegra: fix PIO rx/tx residual transfer check

2019-06-13 Thread Wolfram Sang
> Most of patches are coming from the downstream as part of upstream effort. > Hence not reviewing explicitly. It would help me a lot if you could ack the patches, then, once you are fine with them. I am really relying on driver maintainers these days. An ack or rev from them is kinda required an

Re: [PATCH 2/2] nbd: add support for nbd as root device

2019-06-13 Thread Eric Blake
On 6/13/19 8:02 AM, Eric Blake wrote: > On 6/12/19 11:31 AM, roman.stratiie...@globallogic.com wrote: >> From: Roman Stratiienko >> >> Adding support to nbd to use it as a root device. This code essentially >> provides a minimal nbd-client implementation within the kernel. It opens >> a socket and

Re: [PATCH V3 0/3] mmc: mmci: add busy detect for stm32 sdmmc variant

2019-06-13 Thread Ulf Hansson
On Thu, 13 Jun 2019 at 15:02, Ludovic BARRE wrote: > > hi Ulf > > Just a "gentleman ping" about this series. > I know you are busy, it's just to be sure you do not forget me :-) Thanks! I started briefly to review, but got distracted again. I will come to it, but it just seems to take more time t

[PATCH] staging: kpc2000: remove dead code in core.c

2019-06-13 Thread Simon Sandström
Fixes checkpatch warning: "Consider removing the code enclosed by this #if 0 and its #endif". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc20

Re: [PATCH v2] clocksource/arm_arch_timer: extract elf_hwcap use to arch-helper

2019-06-13 Thread Daniel Lezcano
On 13/06/2019 15:03, Marc Zyngier wrote: > + Daniel > > On Thu, 13 Jun 2019 13:51:02 +0100, > Andrew Murray wrote: >> >> Different mechanisms are used to test and set elf_hwcaps between ARM >> and ARM64, this results in the use of ifdeferry in this file when >> setting/testing for the EVTSTRM hwc

Re: [PATCH v15 0/7] support ROHM BD70528 PMIC

2019-06-13 Thread Sebastian Reichel
Hi, On Wed, Jun 12, 2019 at 07:03:28AM +0100, Lee Jones wrote: > On Tue, 11 Jun 2019, Sebastian Reichel wrote: > > On Mon, Jun 03, 2019 at 10:23:37AM +0300, Matti Vaittinen wrote: > > > Patch series introducing support for ROHM BD70528 PMIC > > > [...] > > > > I think all patches have been review

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-06-13 Thread Dmitry Vyukov
On Thu, Jun 13, 2019 at 2:27 PM Andrey Ryabinin wrote: > On 6/13/19 11:13 AM, Walter Wu wrote: > > This patch adds memory corruption identification at bug report for > > software tag-based mode, the report show whether it is "use-after-free" > > or "out-of-bound" error instead of "invalid-access"

Re: [PATCH] x86/mm: Create an SME workarea in the kernel for early encryption

2019-06-13 Thread Baoquan He
On 06/12/19 at 01:32pm, Lendacky, Thomas wrote: > The SME workarea used during early encryption of the kernel during boot > is situated on a 2MB boundary after the end of the kernel text, data, > etc. sections (_end). This works well during initial boot of a compressed > kernel because of the relo

[PATCH] regulator: da9062: Adjust LDO voltage selection minimum value

2019-06-13 Thread Felix Riemann
According to the datasheet the LDO's voltage selection registers have a minimum value of 0x2. This offset was not observed by the driver, causing the LDO output being two steps (= 0.1V) lower than requested. Signed-off-by: Felix Riemann --- drivers/regulator/da9062-regulator.c | 40 +

Re: [PATCH V3 0/3] mmc: mmci: add busy detect for stm32 sdmmc variant

2019-06-13 Thread Ludovic BARRE
hi Ulf Just a "gentleman ping" about this series. I know you are busy, it's just to be sure you do not forget me :-) Regards Ludo On 6/3/19 5:55 PM, Ludovic Barre wrote: From: Ludovic Barre This patch series adds busy detect for stm32 sdmmc variant. Some adaptations are required: -Clear busy

Re: [PATCH v2] clocksource/arm_arch_timer: extract elf_hwcap use to arch-helper

2019-06-13 Thread Marc Zyngier
+ Daniel On Thu, 13 Jun 2019 13:51:02 +0100, Andrew Murray wrote: > > Different mechanisms are used to test and set elf_hwcaps between ARM > and ARM64, this results in the use of ifdeferry in this file when > setting/testing for the EVTSTRM hwcap. > > Let's improve readability by extracting thi

Re: infinite loop in read_hpet from ktime_get_boot_fast_ns

2019-06-13 Thread Jason A. Donenfeld
Hey Arnd, Peter, On Wed, Jun 12, 2019 at 4:01 PM Arnd Bergmann wrote: > Documentation/core-api/timekeeping.rst describes the timekeeping > interfaces. I think what you want here is ktime_get_coarse_boottime(). > > Note that "coarse" means "don't access the hardware clocksource" > here, which is f

Re: [PATCH v4 00/10] klp-convert livepatch build tooling

2019-06-13 Thread Miroslav Benes
Hi Joe, first, I'm sorry for the lack of response so far. Maybe you've already noticed but the selftests fail. Well, at least in my VM. When test_klp_convert1.ko is loaded, the process is killed with [ 518.041826] BUG: kernel NULL pointer dereference, address: [ 518.042816] #

Re: perf build failure with newer glibc headers

2019-06-13 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 12, 2019 at 05:56:11PM -0300, Arnaldo Carvalho de Melo escreveu: > So, we'll have to have a feature test, that defines some HAVE_GETTID > that then ifdefs out our inline copy, working on it. This should take care of it, please check, perhaps providing a Tested-by: to add to this, Than

Re: [PATCH v4 1/3] lib/test_kasan: Add bitops tests

2019-06-13 Thread Marco Elver
On Thu, 13 Jun 2019 at 14:49, Andrey Ryabinin wrote: > > > > On 6/13/19 3:30 PM, Marco Elver wrote: > > This adds bitops tests to the test_kasan module. In a follow-up patch, > > support for bitops instrumentation will be added. > > > > Signed-off-by: Marco Elver > > Acked-by: Mark Rutland > > -

Re: [PATCH] msm: no need to check return value of debugfs_create functions

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 02:37:46PM +0200, Marc Gonzalez wrote: > On 13/06/2019 14:24, Greg Kroah-Hartman wrote: > > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do something different based

[PATCH v5 2/3] x86: Use static_cpu_has in uaccess region to avoid instrumentation

2019-06-13 Thread Marco Elver
This patch is a pre-requisite for enabling KASAN bitops instrumentation; using static_cpu_has instead of boot_cpu_has avoids instrumentation of test_bit inside the uaccess region. With instrumentation, the KASAN check would otherwise be flagged by objtool. For consistency, kernel/signal.c was chan

Re: [PATCH v3 3/5] mm, thp: introduce FOLL_SPLIT_PMD

2019-06-13 Thread Kirill A. Shutemov
On Wed, Jun 12, 2019 at 03:03:17PM -0700, Song Liu wrote: > This patches introduces a new foll_flag: FOLL_SPLIT_PMD. As the name says > FOLL_SPLIT_PMD splits huge pmd for given mm_struct, the underlining huge > page stays as-is. > > FOLL_SPLIT_PMD is useful for cases where we need to use regular p

Re: [RFC 2/7] tee: enable support to register kernel memory

2019-06-13 Thread Jarkko Sakkinen
On Thu, Jun 13, 2019 at 04:00:28PM +0530, Sumit Garg wrote: > Enable support to register kernel memory reference with TEE. This change > will allow TEE bus drivers to register memory references. > > Signed-off-by: Sumit Garg Reviewed-by: Jarkko Sakkinen /Jarkko

Re: [PATCH] PCI: PM: Skip devices in D0 for suspend-to-idle

2019-06-13 Thread Mika Westerberg
On Thu, Jun 13, 2019 at 12:14:02AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit d491f2b75237 ("PCI: PM: Avoid possible suspend-to-idle issue") > attempted to avoid a problem with devices whose drivers want them to > stay in D0 over suspend-to-idle and resume, but it did no

Re: [PATCH V3 4/4] dt-bindings: arm: imx: Add the soc binding for i.MX8MQ

2019-06-13 Thread Rob Herring
On Wed, Jun 12, 2019 at 11:12 PM wrote: > > From: Anson Huang > > This patch adds the soc & board binding for i.MX8MQ. > > Signed-off-by: Anson Huang > --- > New patch, as I just found i.MX8MQ SoC & board binding is missed, so add this > patch > based on i.MX8MN binding, so put it in same serie

Re: [PATCH] sctp: Add rcu lock to protect dst entry in sctp_transport_route

2019-06-13 Thread Marcelo Ricardo Leitner
On Thu, Jun 13, 2019 at 07:35:44AM -0400, Neil Horman wrote: > On Thu, Jun 13, 2019 at 10:37:51AM +0800, Su Yanjun wrote: > > > > 在 2019/6/12 21:13, Neil Horman 写道: > > > On Tue, Jun 11, 2019 at 10:33:17AM +0800, Su Yanjun wrote: > > > > 在 2019/6/10 19:12, Neil Horman 写道: > > > > > On Mon, Jun 10,

Re: [PATCH v3 1/4] crypto: talitos - move struct talitos_edesc into talitos.h

2019-06-13 Thread Christophe Leroy
Le 13/06/2019 à 14:48, Christophe Leroy a écrit : Moves it into talitos.h so that it can be used from any place in talitos.c This will be required for next patch ("crypto: talitos - fix hash on SEC1") Signed-off-by: Christophe Leroy Cc: sta...@vger.kernel.org --- drivers/crypto/talito

[PATCH v2] clocksource/arm_arch_timer: extract elf_hwcap use to arch-helper

2019-06-13 Thread Andrew Murray
Different mechanisms are used to test and set elf_hwcaps between ARM and ARM64, this results in the use of ifdeferry in this file when setting/testing for the EVTSTRM hwcap. Let's improve readability by extracting this to an arch helper. Signed-off-by: Andrew Murray Acked-by: Mark Rutland Acked

Re: [PATCH 2/5] dt-bindings: display/panel: Expand rotation documentation

2019-06-13 Thread Rob Herring
On Tue, Jun 11, 2019 at 4:02 PM dbasehore . wrote: > > On Tue, Jun 11, 2019 at 8:25 AM Rob Herring wrote: > > > > On Mon, Jun 10, 2019 at 10:03 PM Derek Basehore > > wrote: > > > > > > This adds to the rotation documentation to explain how drivers should > > > use the property and gives an exam

Re: [PATCH] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-06-13 Thread Doug Anderson
Hi, On Thu, Jun 13, 2019 at 6:59 AM Jarkko Sakkinen wrote: > > On Wed, Jun 12, 2019 at 10:16:18PM +0300, Jarkko Sakkinen wrote: > > On Mon, Jun 10, 2019 at 03:01:18PM -0700, Douglas Anderson wrote: > > > From: Vadim Sukhomlinov > > > > > > TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM ch

Re: [PATCH] mm/vmalloc: Check absolute error return from vmap_[p4d|pud|pmd|pte]_range()

2019-06-13 Thread Anshuman Khandual
On 06/13/2019 03:03 PM, Roman Penyaev wrote: > On 2019-06-13 10:12, Anshuman Khandual wrote: >> vmap_pte_range() returns an -EBUSY when it encounters a non-empty PTE. But >> currently vmap_pmd_range() unifies both -EBUSY and -ENOMEM return code as >> -ENOMEM and send it up the call chain which i

Re: [PATCH v2 1/4] crypto: talitos - move struct talitos_edesc into talitos.h

2019-06-13 Thread Christophe Leroy
Le 13/06/2019 à 14:39, Horia Geanta a écrit : On 6/13/2019 3:32 PM, Christophe Leroy wrote: Le 13/06/2019 à 14:24, Horia Geanta a écrit : On 6/13/2019 3:16 PM, Christophe Leroy wrote: Le 13/06/2019 à 14:13, Horia Geanta a écrit : On 6/11/2019 5:39 PM, Christophe Leroy wrote: Next patc

Re: [RFC PATCH 1/5] signal: Teach sigsuspend to use set_user_sigmask

2019-06-13 Thread Oleg Nesterov
On 06/13, David Laight wrote: > > > And you interpret this as if a pending signal should be delivered in any > > case, > > even if pselect succeeds. Again, perhaps you are right, but to me this is > > simply > > undocumented. > > This text (from > http://pubs.opengroup.org/onlinepubs/9699919799/

Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range

2019-06-13 Thread Arnd Bergmann
On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote: > > Chopping max delay in 4 seems excessive. Let's just cut it in half. > > Signed-off-by: Marc Gonzalez > --- > When max_us=100, old_min was 26 us; new_min would be 50 us > Was there a good reason for the 1/4th? > Is new_min=0 a problem? (for

Re: [PATCH 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-06-13 Thread James Morse
Hi Chen Zhou, On 13/06/2019 12:27, Chen Zhou wrote: > On 2019/6/6 0:32, James Morse wrote: >> On 07/05/2019 04:50, Chen Zhou wrote: >>> We use crashkernel=X to reserve crashkernel below 4G, which will fail >>> when there is no enough memory. Currently, crashkernel=Y@X can be used >>> to reserve cr

Re: [PATCH v4 1/3] lib: logic_pio: Use logical PIO low-level accessors for !CONFIG_INDIRECT_PIO

2019-06-13 Thread John Garry
On 13/06/2019 14:58, Bjorn Helgaas wrote: On Tue, Jun 11, 2019 at 10:12:52PM +0800, John Garry wrote: Another thought here: if (addr < MMIO_UPPER_LIMIT) { \ ret = read##bw(PCI_IOBASE + addr); \ } else if

Re: [PATCH] x86/mm: Create an SME workarea in the kernel for early encryption

2019-06-13 Thread lijiang
Hi, After applied this patch, i made a test on the following machines. It works well. [a] HPE ProLiant DL385 Gen10 (878612-B21) AMD EPYC 7251 8-Core Processor [b] Dell PowerEdge R7425 AMD EPYC 7401 24-Core Processor [c] AMD Speedway AMD Eng Sample: 2S1405A3VIHF4_28/14_N [d] AMD Ethanol X AMD

Re: [PATCH] msm: no need to check return value of debugfs_create functions

2019-06-13 Thread Marc Gonzalez
On 13/06/2019 14:24, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. Naive question: if callers are supposed to ignore the return v

Re: [PATCH V5 6/7] i2c: tegra: fix PIO rx/tx residual transfer check

2019-06-13 Thread Dmitry Osipenko
13.06.2019 14:30, Bitan Biswas пишет: > > > On 6/12/19 7:30 AM, Dmitry Osipenko wrote: >> 11.06.2019 13:51, Bitan Biswas пишет: >>> Fix expression for residual bytes(less than word) transfer >>> in I2C PIO mode RX/TX. >>> >>> Signed-off-by: Bitan Biswas >>> --- >> >> [snip] >> >>>   /* >

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-06-13 Thread Andrey Ryabinin
On 6/13/19 11:13 AM, Walter Wu wrote: > This patch adds memory corruption identification at bug report for > software tag-based mode, the report show whether it is "use-after-free" > or "out-of-bound" error instead of "invalid-access" error.This will make > it easier for programmers to see the m

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