[PATCH 03/10] arm: dts: owl-s500: Add DMA controller

2020-06-25 Thread Cristian Ciocaltea
Add DMA controller node for Actions Semi S500 SoC. Note the Actions Semi Owl SoC's DMA driver seems to be fully compatible with the Actions Semi S500 SoC, even though this is not explicitly mentioned in the source code. Hence, for the moment, enable the DMA controller node using the "actions,s900-

[PATCH 01/10] arm: dts: owl-s500: Add Clock Management Unit

2020-06-25 Thread Cristian Ciocaltea
Add Clock Management Unit for Actions Semi S500 SoC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 1dbe4e8b38ac..5d5ad9db549b 100644

[PATCH 04/10] arm: dts: owl-s500: Add Reset Controller support

2020-06-25 Thread Cristian Ciocaltea
Add reset controller property and bindings header for the Actions Semi S500 SoC DTS. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 0f4fc5487dad..0

[PATCH 08/10] arm: dts: owl-s500-roseapplepi: Use UART clock from CMU

2020-06-25 Thread Cristian Ciocaltea
Remove the UART fixed clock for RoseapplePi SBC and switch to using the clock provided by CMU. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500-roseapplepi.dts | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arm/boot/dts/owl-s500-roseapplepi.dts b/arch/arm/boot/dt

[PATCH 00/10] Add CMU/RMU/DMA/MMC/I2C support for Actions Semi S500 SoCs

2020-06-25 Thread Cristian Ciocaltea
This patchset brings a series of improvements for the Actions Semi S500 SoCs family, by adding support for Clock & Reset Management Units, DMA, MMC & I2C controllers. Please note the patches contain only DTS changes, but most of them depend on previous work which is currently under review: - Add

[PATCH 02/10] arm: dts: owl-s500: Set UART clock refs from CMU

2020-06-25 Thread Cristian Ciocaltea
Enable using Clock Management Unit clocks for every UART node of the Actions Semi S500 SoC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 5d5

[PATCH 09/10] arm: dts: owl-s500-roseapplepi: Add uSD support

2020-06-25 Thread Cristian Ciocaltea
Add uSD support for RoseapplePi SBC using a fixed regulator as a temporary solution until PMIC support becomes available. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500-roseapplepi.dts | 50 ++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 07/10] arm: dts: owl-s500: Add I2C nodes

2020-06-25 Thread Cristian Ciocaltea
Add I2C controller nodes for Actions Semi S500 SoC. Note the Actions Semi Owl SoC's I2C driver seems to be fully compatible with the Actions Semi S500 SoC, even though this is not explicitly mentioned in the source code. Hence, for the moment, enable the I2C controller node via the "actions,s900-i

[PATCH 10/10] arm: dts: owl-s500-roseapplepi: Enable I2C0

2020-06-25 Thread Cristian Ciocaltea
Add pinctrl definitions for the I2C controllers used in RoseapplePi SBC. For the moment enable only I2C0, which is used by PMIC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500-roseapplepi.dts | 43 ++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/b

[PATCH 05/10] arm: dts: owl-s500: Add pinctrl node

2020-06-25 Thread Cristian Ciocaltea
Add pinctrl node for Actions Semi S500 SoC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 0b7ba2926f0e..3b625358d786 100644 --

[PATCH 06/10] arm: dts: owl-s500: Add MMC nodes

2020-06-25 Thread Cristian Ciocaltea
Add MMC controller nodes for Actions Semi S500 SoC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 3b625358d786..7

Re: [PATCH v7 00/12] Multiple fixes in PCIe qcom driver

2020-06-25 Thread Stanimir Varbanov
Hi Ansuel, Thank you for the patience. On 6/16/20 12:05 AM, Ansuel Smith wrote: > This contains multiple fix for PCIe qcom driver. > Some optional reset and clocks were missing. > Fix a problem with no PARF programming that cause kernel lock on load. > Add support to force gen 1 speed if needed.

[PATCH v2] sync.2: syncfs() now returns errors if writeback fails

2020-06-25 Thread Jeff Layton
A patch has been merged for v5.8 that changes how syncfs() reports errors. Change the sync() manpage accordingly. Signed-off-by: Jeff Layton --- man2/sync.2 | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) v2: update the NOTES verbiage according to Eric's suggesti

Re: [PATCH][man-pages] sync.2: syncfs() now returns errors if writeback fails

2020-06-25 Thread Jeff Layton
On Thu, 2020-06-25 at 11:45 +0200, Michael Kerrisk (man-pages) wrote: > Hi Jeff, > > Any progress with v2 of this patch? > > Thanks, > > Michael > Just sent it. Thanks for the reminder! > > On 6/10/20 11:19 PM, Jeff Layton wrote: > > On Wed, 2020-06-10 at 08:50 -0700, Eric Biggers wrote: > >

Re: [RESEND, PATCH v2] lib: overflow-test: add KUnit test of check_*_overflow functions

2020-06-25 Thread Brendan Higgins
On Thu, Jun 18, 2020 at 8:06 PM Kees Cook wrote: Apologies for just jumping in the middle of this late. Vitor just brought something to my attention. > On Thu, Jun 18, 2020 at 11:08:14AM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of check_*_overflow functio

[GIT] Networking

2020-06-25 Thread David Miller
1) Don't insert ESP trailer twice in IPSEC code, from Huy Nguyen. 2) The default crypto algorithm selection in Kconfig for IPSEC is out of touch with modern reality, fix this up. From Eric Biggers. 3) bpftool is missing an entry for BPF_MAP_TYPE_RINGBUF, from Andrii Nakryiko. 4) Missing

[RFC PATCH 05/11] RISC-V: Set maximum number of mapped pages correctly

2020-06-25 Thread Atish Patra
Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to a wrong value if there are multiple memblocks defined in kernel (e.g. with efi run

[RFC PATCH 04/11] RISC-V: Add early ioremap support

2020-06-25 Thread Atish Patra
UEFI uses early IO or memory mappings for runtime services before normal ioremap() is usable. Add the necessary fixmap bindings and pmd mappings for generic ioremap support to work. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/Kbuild | 1 + arc

[RFC PATCH 06/11] riscv: Parse all memory blocks to remove unusable memory

2020-06-25 Thread Atish Patra
Currently, maximum physical memory allowed is equal to -PAGE_OFFSET. That's why we remove any memory blocks spanning beyond that size. However, it is done only for memblock containing linux kernel which will not work if there are multiple memblocks. Process all memory blocks to figure out how much

[RFC PATCH 11/11] RISC-V: Add EFI runtime services

2020-06-25 Thread Atish Patra
This patch adds EFI runtime service support for RISC-V. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 2 + arch/riscv/include/asm/efi.h| 20 arch/riscv/include/asm/mmu.h| 2 + arch/riscv/include/asm/pgalloc.h| 12 ++ arch/risc

[RFC PATCH 10/11] efi: Rename arm-init to efi-init common for all arch

2020-06-25 Thread Atish Patra
arm-init is responsible for setting up efi runtime and doesn't actually do any ARM specific stuff. RISC-V can use the same source code as it is. Rename it to efi-init so that RISC-V can use it. Signed-off-by: Atish Patra --- drivers/firmware/efi/{arm-init.c => efi-init.c} | 0 1 file changed, 0

[RFC PATCH 01/11] efi: Fix gcc error around __umoddi3 for 32 bit builds

2020-06-25 Thread Atish Patra
32bit gcc doesn't support modulo operation on 64 bit data. It results in a __umoddi3 error while building EFI for 32 bit. Use bitwise operations instead of modulo operations to fix the issue. Signed-off-by: Atish Patra --- drivers/firmware/efi/libstub/alignedmem.c | 2 +- 1 file changed, 1 inse

[RFC PATCH 08/11] RISC-V: Add PE/COFF header for EFI stub

2020-06-25 Thread Atish Patra
Linux kernel Image can appear as an EFI application With appropriate PE/COFF header fields in the beginning of the Image header. An EFI application loader can directly load a Linux kernel Image and an EFI stub residing in kernel can boot Linux kernel directly. Add the necessary PE/COFF header. Si

[RFC PATCH 00/11] Add UEFI support for RISC-V

2020-06-25 Thread Atish Patra
This series adds UEFI support for RISC-V. Linux kernel: 5.8-rc2 U-Boot: master OpenSBI: master Patch 1-6 are preparatory patches that fixes some of the geric efi and riscv issues. Patch 7-9 adds the efi stub support for RISC-V which was reviewed few months back. http://lists.infradead.org/pipe

[RFC PATCH 02/11] RISC-V: Move DT mapping outof fixmap

2020-06-25 Thread Atish Patra
From: Anup Patel Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, it maps only single PMD (2MB) space for fixmap which leaves only < 1MB space left for other kernel features such as early ioremap which requires fixmap as well. The fixmap size can be increased by another 2

[RFC PATCH 09/11] RISC-V: Add EFI stub support.

2020-06-25 Thread Atish Patra
Add a RISC-V architecture specific stub code that actually copies the actual kernel image to a valid address and jump to it after boot services are terminated. Enable UEFI related kernel configs as well for RISC-V. Signed-off-by: Atish Patra Link: https://lore.kernel.org/r/2020042106.9663-4-a

[RFC PATCH 03/11] RISC-V: Setup exception vector early

2020-06-25 Thread Atish Patra
The trap vector is set only in trap_init which may be too late in some cases. Early ioremap/efi spits many warning messages which may be useful. Setup the trap vector early so that any warning/bug can be handled before generic code invokes trap_init. Signed-off-by: Atish Patra --- arch/riscv/ke

[RFC PATCH 07/11] include: pe.h: Add RISC-V related PE definition

2020-06-25 Thread Atish Patra
Define RISC-V related machine types. Signed-off-by: Atish Patra Reviewed-by: Palmer Dabbelt Link: https://lore.kernel.org/r/20200415195422.19866-3-atish.pa...@wdc.com Signed-off-by: Ard Biesheuvel --- include/linux/pe.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pe.h

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-06-25 Thread Gabriel Krisman Bertazi
"Robert O'Callahan" writes: > rr (https://rr-project.org, https://arxiv.org/abs/1705.05937) grapples > with a similar problem. We need to intercept commonly-executed system > calls and wrap them with our own processing, with minimal overhead. I > think our basic approach might work for Wine witho

Re: [PATCH 3/3] hv_netvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening

2020-06-25 Thread kernel test robot
Hi Andres, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20200625] [also build test WARNING on v5.8-rc2] [cannot apply to mkp-scsi/for-next scsi/for-next linux/master linus/master v5.8-rc2 v5.8-rc1 v5.7] [If your patch is applied to the wrong git tree

[tip:sched/urgent] BUILD SUCCESS 68f7b5cc835de7d5b6c7696533c126018171e793

2020-06-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/urgent branch HEAD: 68f7b5cc835de7d5b6c7696533c126018171e793 sched/cfs: change initial value of runnable_avg elapsed time: 726m configs tested: 114 configs skipped: 5 The following configs have been built suc

[tip:x86/entry] BUILD SUCCESS 145a773aef83181d47ebab21bb33c89233aadb1e

2020-06-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/entry branch HEAD: 145a773aef83181d47ebab21bb33c89233aadb1e x86/entry: Fix #UD vs WARN more elapsed time: 727m configs tested: 94 configs skipped: 4 The following configs have been built successfully. More conf

[tip:sched/core] BUILD SUCCESS 01e377c539ca52a6c753d0fdbe93b3b8fcd66a1c

2020-06-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core branch HEAD: 01e377c539ca52a6c753d0fdbe93b3b8fcd66a1c sched/core: Remove mmdrop() definition elapsed time: 727m configs tested: 120 configs skipped: 5 The following configs have been built successfully.

linux-next: manual merge of the bpf-next tree with the bpf tree

2020-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: tools/testing/selftests/bpf/progs/bpf_iter_netlink.c between commits: 9c82a63cf370 ("libbpf: Fix CO-RE relocs against .text section") 647b502e3d54 ("selftests/bpf: Refactor some net macros to bpf_tracing_net.h") fro

[PATCH 00/12] ACPI/NVDIMM: Runtime Firmware Activation

2020-06-25 Thread Dan Williams
Quoting the documentation: Some persistent memory devices run a firmware locally on the device / "DIMM" to perform tasks like media management, capacity provisioning, and health monitoring. The process of updating that firmware typically involves a reboot because it has implication

[PATCH 02/12] ACPI: NFIT: Move bus_dsm_mask out of generic nvdimm_bus_descriptor

2020-06-25 Thread Dan Williams
DSMs are strictly an ACPI mechanism, evict the bus_dsm_mask concept from the generic 'struct nvdimm_bus_descriptor' object. As a side effect the test facility ->bus_nfit_cmd_force_en is no longer necessary. The test infrastructure can communicate that information directly in ->bus_dsm_mask. Signe

[PATCH 05/12] tools/testing/nvdimm: Add command debug messages

2020-06-25 Thread Dan Williams
Arrange the for nfit_test_ctl() path to dump command payloads similarly to the acpi_nfit_ctl() path. This is useful for comparing the sequence of command events between an emulated ACPI-NFIT platform and a real one. Signed-off-by: Dan Williams --- tools/testing/nvdimm/test/nfit.c | 25

[PATCH 10/12] libnvdimm: Add runtime firmware activation sysfs interface

2020-06-25 Thread Dan Williams
Abstract the platform specific mechanics for firmware activation behind a handful of generic ops. At the bus level ->activate_state() indicates the unified state (idle, busy, armed) of all DIMMs on the bus, and ->capability() indicates the system state expectations for activate. At the DIMM level -

[PATCH 08/12] driver-core: Introduce DEVICE_ATTR_ADMIN_{RO,RW}

2020-06-25 Thread Dan Williams
A common pattern for using plain DEVICE_ATTR() instead of DEVICE_ATTR_RO() and DEVICE_ATTR_RW() is for attributes that want to limit read to only root. I.e. many users of DEVICE_ATTR() are specifying 0400 or 0600 for permissions. Given the expectation that CAP_SYS_ADMIN is needed to access these

[PATCH 06/12] tools/testing/nvdimm: Prepare nfit_ctl_test() for ND_CMD_CALL emulation

2020-06-25 Thread Dan Williams
In preparation for adding a mocked implementation of the firmware-activate bus-info command, rework nfit_ctl_test() to operate on a local command payload wrapped in a 'struct nd_cmd_pkg'. Signed-off-by: Dan Williams --- tools/testing/nvdimm/test/nfit.c | 83

[PATCH 11/12] PM, libnvdimm: Add syscore_quiesced() callback for firmware activation

2020-06-25 Thread Dan Williams
The runtime firmware activation capability of Intel NVDIMM devices requires memory transactions to be disabled for 100s of microseconds. This timeout is large enough to cause in-flight DMA to fail and other application detectable timeouts. Arrange for firmware activation to be executed while the sy

[PATCH 09/12] libnvdimm: Convert to DEVICE_ATTR_ADMIN_RO()

2020-06-25 Thread Dan Williams
Move libnvdimm sysfs attributes that currently use an open coded DEVICE_ATTR() to hide sensitive root-only information (physical memory layout) to the new DEVICE_ATTR_ADMIN_RO() helper. Cc: Vishal Verma Cc: Dave Jiang Cc: Ira Weiny Signed-off-by: Dan Williams --- drivers/nvdimm/namespace_devs

[PATCH 03/12] ACPI: NFIT: Define runtime firmware activation commands

2020-06-25 Thread Dan Williams
Platform reboots are expensive. Towards reducing downtime to apply firmware updates the Intel NVDIMM command definition is growing support for applying live firmware updates that only require temporarily suspending memory traffic instead of a full reboot. Follow-on commits add support for triggeri

[PATCH 04/12] tools/testing/nvdimm: Cleanup dimm index passing

2020-06-25 Thread Dan Williams
The ND_CMD_CALL path only applies to the nfit_test0 emulated DIMMs. Cleanup occurrences of (i - t->dcr_idx) since that offset fixup only applies to cases where nfit_test1 needs a bus-local index. Signed-off-by: Dan Williams --- tools/testing/nvdimm/test/nfit.c | 34 ++--

[PATCH 07/12] tools/testing/nvdimm: Emulate firmware activation commands

2020-06-25 Thread Dan Williams
Augment the existing firmware update emulation to track activations and validate proper update vs activate sequencing. The DIMM firmware activate capability has a concept of a maximum amount of time platform firmware will quiesce the system relative to how many DIMMs are being activated in paralle

[PATCH 01/12] libnvdimm: Validate command family indices

2020-06-25 Thread Dan Williams
The ND_CMD_CALL format allows for a general passthrough of whitelisted commands targeting a given command set. However there is no validation of the family index relative to what the bus supports. - Update the NFIT bus implementation (the only one that supports ND_CMD_CALL passthrough) to also w

[PATCH 12/12] ACPI: NFIT: Add runtime firmware activate support

2020-06-25 Thread Dan Williams
Plumb the platform specific backend for the generic libnvdimm firmware activate interface. Register dimm level operations to arm/disarm activation, and register bus level operations to report the dynamic platform-quiesce time relative to the number of dimms armed for firmware activation. A new nfi

[PATCH v2 bpf-next 4/4] selftests/bpf: add bpf_iter test with bpf_get_task_stack()

2020-06-25 Thread Song Liu
The new test is similar to other bpf_iter tests. Signed-off-by: Song Liu --- .../selftests/bpf/prog_tests/bpf_iter.c | 17 ++ .../selftests/bpf/progs/bpf_iter_task_stack.c | 60 +++ 2 files changed, 77 insertions(+) create mode 100644 tools/testing/selftests/bpf/progs/

[PATCH v2 bpf-next 0/4] bpf: introduce bpf_get_task_stack()

2020-06-25 Thread Song Liu
This set introduces a new helper bpf_get_task_stack(). The primary use case is to dump all /proc/*/stack to seq_file via bpf_iter__task. A few different approaches have been explored and compared: 1. A simple wrapper around stack_trace_save_tsk(), as v1 [1]. This approach introduces new s

[PATCH v2 bpf-next 1/4] perf: export get/put_chain_entry()

2020-06-25 Thread Song Liu
This would be used by bpf stack mapo. Signed-off-by: Song Liu --- include/linux/perf_event.h | 2 ++ kernel/events/callchain.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index b4bb32082342c..00ab5efa38334 1006

[PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-25 Thread Song Liu
Introduce helper bpf_get_task_stack(), which dumps stack trace of given task. This is different to bpf_get_stack(), which gets stack track of current task. One potential use case of bpf_get_task_stack() is to call it from bpf_iter__task and dump all /proc//stack to a seq_file. bpf_get_task_stack()

[PATCH v2 bpf-next 3/4] bpf: allow %pB in bpf_seq_printf() and bpf_trace_printk()

2020-06-25 Thread Song Liu
This makes it easy to dump stack trace in text. Signed-off-by: Song Liu --- kernel/trace/bpf_trace.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 65fa62723e2f8..1cb90b0868817 100644 --- a/kernel/trace/b

Re: [PATCH v2 0/4] Tegra Video Decoder driver power management corrections

2020-06-25 Thread Dmitry Osipenko
24.06.2020 18:23, Dmitry Osipenko пишет: > 24.06.2020 18:16, Hans Verkuil пишет: >> On 24/06/2020 17:08, Dmitry Osipenko wrote: >>> Hello, >>> >>> This small series addresses a Runtime PM issue that was discovered during >>> of Tegra VI driver reviewing by balancing RPM usage count on RPM resume >>

Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-06-25 Thread Ian Kent
On Thu, 2020-06-25 at 11:43 +0200, Greg Kroah-Hartman wrote: > On Thu, Jun 25, 2020 at 04:15:19PM +0800, Ian Kent wrote: > > On Tue, 2020-06-23 at 19:13 -0400, Tejun Heo wrote: > > > Hello, Rick. > > > > > > On Mon, Jun 22, 2020 at 02:22:34PM -0700, Rick Lindsley wrote: > > > > > I don't know. The

[PATCH 1/2] pci: Add pci device even if the driver failed to attach

2020-06-25 Thread Rajat Jain
device_attach() returning failure indicates a driver error while trying to probe the device. In such a scenario, the PCI device should still be added in the system and be visible to the user. This patch partially reverts: commit ab1a187bba5c ("PCI: Check device_attach() return value always") Sign

[PATCH 2/2] pci: Add parameter to disable attaching untrusted devices

2020-06-25 Thread Rajat Jain
Introduce a PCI parameter that disables the automatic attachment of untrusted devices to their drivers. Signed-off-by: Rajat Jain --- Context: I set out to implement the approach outlined in https://lkml.org/lkml/2020/6/9/1331 https://lkml.org/lkml/2020/6/15/1453 But to my surprise,

Re: [PATCH] firmware: improve description of firmware_request_nowarn

2020-06-25 Thread Luis Chamberlain
On Thu, Jun 25, 2020 at 10:02:21PM +0200, Wolfram Sang wrote: > The doubled 'however' is confusing. Simplify the comment a little and > reformat the paragraph. > > Signed-off-by: Wolfram Sang Acked-by: Luis Chamberlain Luis

Re: [PATCH 1/2] cros: platform/chrome: Add cros-ec-uart driver for uart support

2020-06-25 Thread kernel test robot
Hi Bhanu, I love your patch! Yet something to improve: [auto build test ERROR on chrome-platform-linux/for-next] [also build test ERROR on soc/for-next ljones-mfd/for-mfd-next linus/master v5.8-rc2 next-20200625] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH] mm/vmscan: restore zone_reclaim_mode ABI

2020-06-25 Thread Dave Hansen
From: Dave Hansen I went to go add a new RECLAIM_* mode for the zone_reclaim_mode sysctl. Like a good kernel developer, I also went to go update the documentation. I noticed that the bits in the documentation didn't match the bits in the #defines. The VM evidently stopped caring about RECLAI

Re: [PATCH 6/6] mm: Add memalloc_nowait

2020-06-25 Thread kernel test robot
Hi "Matthew, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/sched/core] [also build test ERROR on dm/for-next linus/master v5.8-rc2] [cannot apply to xfs-linux/for-next next-20200625] [If your patch is applied to the wrong git tree, kindly drop us a note

[Bug, sched, 5.8-rc2]: PREEMPT kernels crashing in check_preempt_wakeup() running fsx on XFS

2020-06-25 Thread Dave Chinner
Hi folks, I turned on CONFIG_PREEMPT=y yesterday to try to reproduce problems Darrick was having with one of my patchsets. We've both been seeing a dead stop panic on these configs, and I managed to find a relatively reliable reproducer in fstests generic/127. It's basically just single fsx proces

Re: Re: [PATCH] [v2] media: venus: core: Fix runtime PM imbalance in venus_probe

2020-06-25 Thread dinghao . liu
> Hi Dinghao, > > On 6/24/20 9:30 AM, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > > when it returns an error code. Thus a pairing decrement is needed on > > the error handling path to keep the counter balanced. For other error > > paths after this c

[PATCH v5 10/13] drm/panel: st7703: Enter sleep after display off

2020-06-25 Thread Ondrej Jirman
The datasheet suggests to issue sleep in after display off as a part of the panel's shutdown sequence. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-sitr

[PATCH v5 12/13] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Backlight levels curve was optimized by Martijn Braam using a lux meter. Add its device nodes. Signed-off-by: Icenowy Zheng Signed-off-by: Martijn Braam Signed-off-by: Ondrej Jirman --- .../allwin

[PATCH v5 07/13] drm/panel: st7703: Move code specific to jh057n closer together

2020-06-25 Thread Ondrej Jirman
It's better than having it spread around the driver. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/pan

[PATCH v5 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-06-25 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pineph

[PATCH v5 06/13] drm/panel: st7703: Prepare for supporting multiple panels

2020-06-25 Thread Ondrej Jirman
Parametrize the driver so that it can support more panels based on st7703 controller. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 43 +-- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st77

[PATCH v5 00/13] Add support for PinePhone LCD panel

2020-06-25 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v5: - rewritten on top of rocktech-jh057n00900 driver - rocktech-jh057n00900 renamed to st7703 (controller name) - converte

[PATCH v5 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators

2020-06-25 Thread Ondrej Jirman
The reset pin is inverted, so if we don't assert reset, the actual gpio will be high and may keep driving the IO port of the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-sitro

[PATCH v5 04/13] drm/panel: rocktech-jh057n00900: Rename the driver to st7703

2020-06-25 Thread Ondrej Jirman
This rename is done so that the driver matches the name of the display controller and in preparation for adding support for more panels to the driver. This is just a basic file rename, with no code changes. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/Kconfig | 26

[PATCH v5 08/13] drm/panel: st7703: Move generic part of init sequence to enable callback

2020-06-25 Thread Ondrej Jirman
Calling sleep out and display on is a controller specific part of the initialization process. Move it out of the panel specific initialization function to the enable callback. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 33 ++- 1 file changed,

[PATCH v5 09/13] drm/panel: st7703: Add support for Xingbangda XBD599

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel used in PinePhone. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 199 +- 1 file changed, 197 insertions(+), 2 deletions(-) diff --git a/d

[PATCH v5 03/13] dt-bindings: panel: Add compatible for Xingbangda XBD599 panel

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller just like rocktech,jh057n00900. It is used in PinePhone. Add a compatible for it. Signed-off-by: Ondrej Jirman --- .../bindings/display/panel/rocktech,jh057n00900.yaml| 6 +- 1 fi

[PATCH v5 02/13] dt-bindings: panel: Convert rocktech,jh057n00900 to yaml

2020-06-25 Thread Ondrej Jirman
Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. Signed-off-by: Ondrej Jirman --- .../display/panel/rocktech,jh057n00900.txt| 23 --- .../display/panel/rocktech,jh057n00900.yaml | 66 +++ 2 files changed, 66 insertions(+), 23 deletions(-) delete mode 1

[PATCH v5 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Acked-by: Rob Herring --- Documentation/devicetre

[PATCH v5 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-06-25 Thread Ondrej Jirman
This is done so that code that's not specific to a particular jh057n panel is named after the controller. Functions specific to the panel are kept named after the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90 ++- 1 file changed, 46 in

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-06-25 Thread Robert O'Callahan
On Fri, Jun 26, 2020 at 11:49 AM Gabriel Krisman Bertazi wrote: > We couldn't patch Windows code because of the aforementioned DRM and > anti-cheat mechanisms, but I suppose this limitation doesn't apply to > Wine/native code, and if this assumption is correct, this approach could > work. > > One

[PATCH] net: phy: mscc: fix ptr_ret.cocci warnings

2020-06-25 Thread kernel test robot
From: kernel test robot drivers/net/phy/mscc/mscc_ptp.c:1496:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Fixes: 7d272e63e097 ("net: phy: mscc: timestamping and PHC support") CC: Antoine

Re: [PATCH 1/3] v4l2-subdev: Add subdev ioctl support for ENUM/GET/SET INPUT

2020-06-25 Thread Laurent Pinchart
Hi Steve, On Thu, Jun 25, 2020 at 10:41:09AM -0700, Steve Longerbeam wrote: > On 6/24/20 7:01 PM, Laurent Pinchart wrote: > > On Wed, Jun 24, 2020 at 09:53:07AM +0200, Jacopo Mondi wrote: > >> On Tue, Jun 16, 2020 at 12:00:15PM +0200, Ramzi BEN MEFTAH wrote: > >>> From: Steve Longerbeam > >> +N

Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge

2020-06-25 Thread Simon Glass
Hi Nicolas, On Wed, 17 Jun 2020 at 13:15, Nicolas Saenz Julienne wrote: > > On Tue, 2020-06-16 at 17:31 -0600, Simon Glass wrote: > > Hi Nicolas, > > > > On Tue, 16 Jun 2020 at 08:09, Nicolas Saenz Julienne > > wrote: > > > On Tue, 2020-06-16 at 07:43 -0600, Simon Glass wrote: > > > > Hi Nicolas

Re: [PATCH v4 02/12] iommu/vt-d: Change flags type to unsigned int in binding mm

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: "flags" passed to intel_svm_bind_mm() is a bit mask and should be defined as "unsigned int" instead of "int". Change its type to "unsigned int". Reviewed-by: Lu Baolu Best regards, baolu Suggested-by: Thomas Gleixner Signed-off-by: Fenghu

Re: [PATCH v5 3/3] media: vimc: Add a control to display info on test image

2020-06-25 Thread Helen Koike
Hi Kaaira, Thanks for your patch, I tested and it works great, just some other comments below. On 6/24/20 10:43 AM, Kaaira Gupta wrote: > Add a control in VIMC to display information such as the correct order of > colors for a given test pattern, brightness, hue, saturation, contrast, > width an

Re: [GIT] Networking

2020-06-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Jun 2020 16:43:48 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4a21185cda0fbb860580eeeb4f1a70a9cda332a4 Thank you! -- Deet-doot-dot, I am

Re: [PATCH 00/13] iommu: Remove usage of dev->archdata.iommu

2020-06-25 Thread Jerry Snitselaar
On Thu Jun 25 20, Joerg Roedel wrote: From: Joerg Roedel Hi, here is a patch-set to remove the usage of dev->archdata.iommu from the IOMMU code in the kernel and replace its uses by the iommu per-device private data field. The changes also remove the field entirely from the architectures which

linux-next: manual merge of the drm-misc tree with Linus' tree

2020-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c between commit: eaad0c3aa978 ("drm/amdgpu: rename direct to immediate for VM updates") from the Linus' and commit: b1a8ef952a25 ("drm/amdgpu: move ttm bo->offset to amdgp

Re: [PATCH v4 10/12] x86/mmu: Allocate/free PASID

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: A PASID is allocated for an "mm" the first time any thread attaches to an SVM capable device. Later device attachments (whether to the same device or another SVM device) will re-use the same PASID. The PASID is freed when the process exits (so no

Re: [PATCH v4 01/12] iommu: Change type of pasid to u32

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: PASID is defined as a few different types in iommu including "int", "u32", and "unsigned int". To be consistent and to match with uapi definitions, define PASID and its variations (e.g. max PASID) as "u32". "u32" is also shorter and a little more

Re: [PATCH v4 12/12] x86/traps: Fix up invalid PASID

2020-06-25 Thread Lu Baolu
Hi Fenghua, On 2020/6/26 4:17, Fenghua Yu wrote: A #GP fault is generated when ENQCMD instruction is executed without a valid PASID value programmed in the current thread's PASID MSR. The #GP fault handler will initialize the MSR if a PASID has been allocated for this process. Decoding the user

Re: linux-next: build failure after merge of the amdgpu tree

2020-06-25 Thread Stephen Rothwell
Hi all, On Fri, 12 Jun 2020 10:25:52 +1000 Stephen Rothwell wrote: > > After merging the amdgpu tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function > 'kfd_sdma_activity_worker': > drivers/gpu/drm/amd/amdgp

Re: [RFC PATCH 00/13] Core scheduling v5

2020-06-25 Thread Joel Fernandes
On Thu, Jun 25, 2020 at 4:12 PM Vineeth Remanan Pillai wrote: [...] > TODO lists: > > - Interface discussions could not come to a conclusion in v5 and hence would >like to restart the discussion and reach a consensus on it. >- > https://lwn.net/ml/linux-kernel/20200520222642.70679-1-j...

Re: [PATCH 2/2] irqchip/gic-v3: Support pseudo-NMIs when SCR_EL3.FIQ == 0

2020-06-25 Thread kernel test robot
Hi Alexandru, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on tip/irq/core v5.8-rc2 next-20200625] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH] Ability to read the MKTME status from userspace (patch v2)

2020-06-25 Thread Alison Schofield
On Thu, Jun 25, 2020 at 06:10:29PM -0300, Daniel Gutson wrote: > The intent of this patch is to provide visibility of the > MKTME status to userspace. This is an important factor for > firmware security related applilcations. > > Changes since v1: > * Documentation/ABI/stable/securityfs-mktme-stat

Re: [PATCH] cpufreq: schedutil: force frequency update when limits change

2020-06-25 Thread Viresh Kumar
On 25-06-20, 13:47, Wei Wang wrote: > On Thu, Jun 25, 2020 at 3:23 AM Viresh Kumar wrote: > > I am sorry but I am not fully sure of what the problem is. Can you > > describe that by giving an example with some random frequency, and > > tell the expected and actual behavior ? > > > The problem is s

[PATCH] fixing ERROR: Macros with complex values must be enclosed within parentheses.

2020-06-25 Thread B K Karthik
soc_camera.c: fixing ERROR: Macros with complex values must be enclused within parentheses. Signed-off-by: B K Karthik --- drivers/staging/media/soc_camera/soc_camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/soc_camera/soc_camera.c b/drivers

Re: [PATCH] cpufreq: schedutil: force frequency update when limits change

2020-06-25 Thread Viresh Kumar
On 26-06-20, 07:44, Viresh Kumar wrote: > On 25-06-20, 13:47, Wei Wang wrote: > > On Thu, Jun 25, 2020 at 3:23 AM Viresh Kumar > > wrote: > > > I am sorry but I am not fully sure of what the problem is. Can you > > > describe that by giving an example with some random frequency, and > > > tell th

Re: [PATCH] ima: AppArmor satisfies the audit rule requirements

2020-06-25 Thread Mimi Zohar
On Tue, 2020-06-23 at 18:38 -0500, Tyler Hicks wrote: > AppArmor meets all the requirements for IMA in terms of audit rules > since commit e79c26d04043 ("apparmor: Add support for audit rule > filtering"). Update IMA's Kconfig section for CONFIG_IMA_LSM_RULES to > reflect this. > > Fixes: e79c26d0

Re: [RFC][PATCH] ring-buffer: Have nested events still record running time stamp

2020-06-25 Thread Steven Rostedt
On Thu, 25 Jun 2020 15:35:02 -0400 (EDT) Mathieu Desnoyers wrote: > Those performance and reentrancy concerns are why I always stick to local_t > (long), and never use a full 64-bit type for anything that has to > do with concurrent store/load between execution contexts in lttng. Although the ad

Re: [RFC PATCH 01/11] efi: Fix gcc error around __umoddi3 for 32 bit builds

2020-06-25 Thread Heinrich Schuchardt
On 6/26/20 1:45 AM, Atish Patra wrote: > 32bit gcc doesn't support modulo operation on 64 bit data. It results in > a __umoddi3 error while building EFI for 32 bit. > > Use bitwise operations instead of modulo operations to fix the issue. > > Signed-off-by: Atish Patra > --- > drivers/firmware/ef

Re: [PATCH v2 1/2] fs,block: Introduce RWF_ZONE_APPEND and handling in direct IO path

2020-06-25 Thread Damien Le Moal
On 2020/06/26 2:18, Kanchan Joshi wrote: > Introduce RWF_ZONE_APPEND flag to represent zone-append. User-space > sends this with write. Add IOCB_ZONE_APPEND which is set in > kiocb->ki_flags on receiving RWF_ZONE_APPEND. > Make direct IO submission path use IOCB_ZONE_APPEND to send bio with > appen

Re: [PATCH] fixing ERROR: Macros with complex values must be enclosed within parentheses.

2020-06-25 Thread Laurent Pinchart
Hi Karthik, Thank you for the patch. On Thu, Jun 25, 2020 at 10:17:23PM -0400, B K Karthik wrote: > soc_camera.c: > > fixing ERROR: Macros with complex values must be enclused within parentheses. > > Signed-off-by: B K Karthik > --- > drivers/staging/media/soc_camera/soc_camera.c | 3 +-- > 1

<    5   6   7   8   9   10   11   12   >