[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

[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

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

[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

[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

[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

[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

[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

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

[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

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

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

[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

[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

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

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

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

[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

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.

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

[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

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

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

[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

[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

[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

[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

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

[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

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

[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

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

[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

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

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

[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

[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

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

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

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

[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

[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

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

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

[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

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

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

[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

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

[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

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

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

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

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

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

[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

[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

[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

[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

[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

[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

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

[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

[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

Re: [PATCH 1/2] xen/privcmd: Corrected error handling path and mark pages dirty

2020-06-25 Thread Boris Ostrovsky
On 6/24/20 11:02 PM, Souptick Joarder wrote: > Previously, if lock_pages() end up partially mapping pages, it used > to return -ERRNO due to which unlock_pages() have to go through > each pages[i] till *nr_pages* to validate them. This can be avoided > by passing correct number of partially mapped

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-25 Thread James Bottomley
On Thu, 2020-06-25 at 19:54 +0530, Sumit Garg wrote: > On Wed, 24 Jun 2020 at 20:51, James Bottomley > wrote: > > > > On Wed, 2020-06-24 at 16:17 +0530, Sumit Garg wrote: > > > Apologies for delay in my reply as I was busy with some other > > > stuff. > > > > > > On Fri, 19 Jun 2020 at 20:30,

Re: [PATCH 4/4] KVM: SVM: Rename svm_nested_virtualize_tpr() to nested_svm_virtualize_tpr()

2020-06-25 Thread Krish Sadhukhan
On 6/25/20 1:03 AM, Joerg Roedel wrote: From: Joerg Roedel Match the naming with other nested svm functions. No functional changes. Signed-off-by: Joerg Roedel --- arch/x86/kvm/svm/svm.c | 6 +++--- arch/x86/kvm/svm/svm.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH 0/4] KVM: SVM: Code move follow-up

2020-06-25 Thread Krish Sadhukhan
On 6/25/20 1:03 AM, Joerg Roedel wrote: From: Joerg Roedel Hi, here is small series to follow-up on the review comments for moving the kvm-amd module code to its own sub-directory. The comments were only about renaming structs and symbols, so there are no functional changes in these

[PATCH] Bluetooth: btusb: Comment on unbalanced pm reference

2020-06-25 Thread Abhishek Pandit-Subedi
Add a comment clarifying that a PM reference in btusb_qca_cmd_timeout is not unbalanced because it results in a device reset. Signed-off-by: Abhishek Pandit-Subedi --- drivers/bluetooth/btusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/btusb.c

Re: [GIT PULL] tracing: Fixes for 5.8-rc2

2020-06-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Jun 2020 18:21:49 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > trace-v5.8-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/42e9c85f5c7296c4ec02644a2b3debc7120e2bf4 Thank you! --

Re: [PATCH v3] PCI: Lock the pci_cfg_wait queue for the consistency of data

2020-06-25 Thread Bjorn Helgaas
On Wed, Jun 24, 2020 at 06:23:09PM -0500, Bjorn Helgaas wrote: > On Tue, Dec 10, 2019 at 11:15:27AM +0800, Xiang Zheng wrote: > > 7ea7e98fd8d0 ("PCI: Block on access to temporarily unavailable pci > > device") suggests that the "pci_lock" is sufficient, and all the > > callers of pci_wait_cfg()

Re: [fedora-arm] Banana Pi-R1 - kernel 5.6.0 and later broken - b43 DSA

2020-06-25 Thread Peter Robinson
> I'm having troubles with the Banana Pi-R1 router with newer kernels. No > config changes, config works well since a lot of lernel updates ... > Banana Pi-R1 is configured via systemd-networkd and uses the DSA > (Distributed Switch Architecture) with b53 switch. No visible difference > in

Re: [PATCH net-next 0/8] net: phy: mscc: multiple improvements

2020-06-25 Thread David Miller
From: Antoine Tenart Date: Thu, 25 Jun 2020 17:42:03 +0200 > This series contains various improvements to the MSCC PHY driver, fixing > sparse and smatch warnings, using functions provided by the PHY core, > and improving the driver consistency and maintenance. > > I don't think any of those

Re: Enabling interrupts in QEMU TPM TIS

2020-06-25 Thread Jason Gunthorpe
On Thu, Jun 25, 2020 at 06:48:09PM -0400, Stefan Berger wrote: > On 6/25/20 5:26 PM, Stefan Berger wrote: > > On 6/25/20 1:28 PM, Jason Gunthorpe wrote: > > > On Thu, Jun 25, 2020 at 10:56:43AM -0400, Stefan Berger wrote: > > > > Hello! > > > > > > > >   I want to enable IRQs now in QEMU's TPM

Re: [PATCH v2] Bluetooth: btusb: Reset port on cmd timeout

2020-06-25 Thread Abhishek Pandit-Subedi
Thanks for the heads up Oliver -- I will send a patch with a comment on this. On Thu, Jun 25, 2020 at 3:22 AM Oliver Neukum wrote: > > Am Mittwoch, den 24.06.2020, 11:11 -0700 schrieb Abhishek Pandit- > Subedi: > > QCA_ROME sometimes gets into a state where it is unresponsive to > > commands.

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

2020-06-25 Thread Robert O'Callahan
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 without kernel changes. We use

RE: [PATCH v6 1/4] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage

2020-06-25 Thread Krishna Reddy
>Should NVIDIA_TEGRA194_SMMU be a separate value for smmu->model, perhaps? That >way we avoid this somewhat odd check here. NVIDIA haven't made any changes to arm,mmu-500. It is only used in different topology. New model would be mis-leading here. As suggested by Robin, It can just be moved to

Re: [PATCH net] sctp: Don't advertise IPv4 addresses if ipv6only is set on the socket

2020-06-25 Thread David Miller
From: Marcelo Ricardo Leitner Date: Wed, 24 Jun 2020 17:34:18 -0300 > If a socket is set ipv6only, it will still send IPv4 addresses in the > INIT and INIT_ACK packets. This potentially misleads the peer into using > them, which then would cause association termination. > > The fix is to not

[PATCH] mm/page_alloc: fallbacks at most has 3 elements

2020-06-25 Thread Wei Yang
MIGRAGE_TYPES is used to be the mark of end and there are at most 3 elements for the one dimension array. Reduce to 3 to save little memory. Signed-off-by: Wei Yang --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index

Re: [PATCH] scsi: cumana_2: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-06-25 Thread Russell King - ARM Linux admin
On Thu, Jun 25, 2020 at 10:47:30PM +0200, Christophe JAILLET wrote: > The dev_id used in 'request_irq()' and 'free_irq()' should match. > Use 'info' in both cases. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Christophe JAILLET Acked-by: Russell King Thanks Christophe. > ---

Re: [PATCH net-next v11 0/5] RGMII Internal delay common property

2020-06-25 Thread David Miller
From: Dan Murphy Date: Wed, 24 Jun 2020 07:16:00 -0500 > The RGMII internal delay is a common setting found in most RGMII capable PHY > devices. It was found that many vendor specific device tree properties exist > to do the same function. This creates a common property to be used for PHY's >

Re: [PATCH] soc: qcom: rpmh: Remove serialization of TCS commands

2020-06-25 Thread Doug Anderson
Hi, On Thu, Jun 25, 2020 at 3:22 AM Maulik Shah wrote: > > Hi, > > On 6/19/2020 9:57 AM, Doug Anderson wrote: > > Hi, > > > > On Fri, May 29, 2020 at 3:52 AM Maulik Shah wrote: > >> From: Lina Iyer > >> > >> Requests sent to RPMH can be sent as fire-n-forget or response required, > >> with the

Re: [PATCH v2 1/2] net: macb: call pm_runtime_put_sync on failure path

2020-06-25 Thread David Miller
From: Claudiu Beznea Date: Wed, 24 Jun 2020 13:08:17 +0300 > Call pm_runtime_put_sync() on failure path of at91ether_open. > > Fixes: e6a41c23df0d ("net: macb: ensure interface is not suspended on > at91rm9200") > Signed-off-by: Claudiu Beznea Applied and queued up for -stable.

Re: [PATCH v2 2/2] net: macb: free resources on failure path of at91ether_open()

2020-06-25 Thread David Miller
From: Claudiu Beznea Date: Wed, 24 Jun 2020 13:08:18 +0300 > DMA buffers were not freed on failure path of at91ether_open(). > Along with changes for freeing the DMA buffers the enable/disable > interrupt instructions were moved to at91ether_start()/at91ether_stop() > functions and the

Re: [PATCH 12/12] ima: Support additional conditionals in the KEXEC_CMDLINE hook function

2020-06-25 Thread Tyler Hicks
On 2020-06-25 18:56:44, Mimi Zohar wrote: > On Mon, 2020-06-22 at 19:32 -0500, Tyler Hicks wrote: > > Take the properties of the kexec kernel's inode and the current task > > ownership into consideration when matching a KEXEC_CMDLINE operation to > > the rules in the IMA policy. This allows for

Re: [PATCH 12/12] ima: Support additional conditionals in the KEXEC_CMDLINE hook function

2020-06-25 Thread Mimi Zohar
On Mon, 2020-06-22 at 19:32 -0500, Tyler Hicks wrote: > Take the properties of the kexec kernel's inode and the current task > ownership into consideration when matching a KEXEC_CMDLINE operation to > the rules in the IMA policy. This allows for some uniformity when > writing IMA policy rules for

[UPDATE][PATCH v3 1/2] cpufreq: intel_pstate: Allow enable/disable energy efficiency

2020-06-25 Thread Srinivas Pandruvada
By default intel_pstate driver disables energy efficiency by setting MSR_IA32_POWER_CTL bit 19 for Kaby Lake desktop CPU model in HWP mode. This CPU model is also shared by Coffee Lake desktop CPUs. This allows these systems to reach maximum possible frequency. But this adds power penalty, which

Re: [PATCH] riscv: Fixup __vdso_gettimeofday broke dynamic ftrace

2020-06-25 Thread Palmer Dabbelt
On Tue, 23 Jun 2020 02:50:54 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren For linux-5.8-rc1, enable ftrace of riscv will cause boot panic: [2.388980] Run /sbin/init as init process [2.529938] init[39]: unhandled signal 4 code 0x1 at 0x003ff449e000 [2.531078] CPU: 0 PID:

Re: Enabling interrupts in QEMU TPM TIS

2020-06-25 Thread Stefan Berger
On 6/25/20 5:26 PM, Stefan Berger wrote: On 6/25/20 1:28 PM, Jason Gunthorpe wrote: On Thu, Jun 25, 2020 at 10:56:43AM -0400, Stefan Berger wrote: Hello!   I want to enable IRQs now in QEMU's TPM TIS device model and I need to work with the following patch to Linux TIS. I am wondering

Re: [PATCH 11/12] ima: Use the common function to detect LSM conditionals in a rule

2020-06-25 Thread Mimi Zohar
On Mon, 2020-06-22 at 19:32 -0500, Tyler Hicks wrote: > Make broader use of ima_rule_contains_lsm_cond() to check if a given > rule contains an LSM conditional. This is a code cleanup and has no > user-facing change. > > Signed-off-by: Tyler Hicks Reviewed-by: Mimi Zohar Mimi

Re: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool

2020-06-25 Thread Sami Tolvanen
On Thu, Jun 25, 2020 at 10:02:35PM +0200, Peter Zijlstra wrote: > On Thu, Jun 25, 2020 at 09:15:03AM -0700, Sami Tolvanen wrote: > > On Thu, Jun 25, 2020 at 09:45:30AM +0200, Peter Zijlstra wrote: > > > > At least for x86_64 I can do a really quick take for a recordmcount pass > > > in objtool,

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