[PATCH v2 10/13] cpufreq: powernow-k8: Mark 'hi' and 'lo' dummy variables as __always_unused

2020-07-15 Thread Lee Jones
if we fail to use a variable, even a dummy ones, then the compiler complains that it is set but not used. We know this is fine, so we set them as __always_unused here to let the compiler know. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernow-k8.c: In function ‘pending_b

[PATCH v2 08/13] cpufreq: acpi-cpufreq: Mark 'dummy' variable as __always_unused

2020-07-15 Thread Lee Jones
If we fail to use a variable, even a 'dummy' one, then the compiler complains that it is set but not used. We know this is fine, so we set it as __always_unused to let the compiler know. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/acpi-cpufreq.c: In function ‘cpu_freq_read_

[PATCH v2 09/13] cpufreq: acpi-cpufreq: Mark sometimes used ID structs as __maybe_unused

2020-07-15 Thread Lee Jones
Not used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/acpi-cpufreq.c:1004:36: warning: ‘processor_device_ids’ defined but not used [-Wunused-const-variable=] 997 | static const struct x86_cpu_id acpi_cpufreq_ids[] = { | ^~~~ drivers

[PATCH v2 05/13] cpufreq: pasemi: Include header file for {check,restore}_astate prototypes

2020-07-15 Thread Lee Jones
If function callers and providers do not share the same prototypes the compiler complains of missing prototypes. Fix this by including the correct platforms header file. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/pasemi-cpufreq.c:109:5: warning: no previous prototype for

[PATCH v2 03/13] cpufreq: cpufreq_governor: Demote store_sampling_rate() header to standard comment block

2020-07-15 Thread Lee Jones
There is no need for this to be denoted as kerneldoc. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/cpufreq_governor.c:46: warning: Function parameter or member 'attr_set' not described in 'store_sampling_rate' drivers/cpufreq/cpufreq_governor.c:46: warning: Function paramet

[PATCH v2 12/13] cpufreq: intel_pstate: Supply struct attribute description for get_aperf_mperf_shift()

2020-07-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/cpufreq/intel_pstate.c:293: warning: Function parameter or member 'get_aperf_mperf_shift' not described in 'pstate_funcs' Cc: Srinivas Pandruvada Cc: Len Brown Cc: Dirk Brandewie Suggested-by: "Rafael J. Wysocki" Signed-off-by: Lee Jo

Re: [RFC PATCH 0/4] thermal: Introduce support for monitoring falling temperature

2020-07-15 Thread Zhang Rui
Hi, Thara, On Tue, 2020-07-14 at 17:39 -0400, Thara Gopinath wrote: > > > > > For example, to support this, we can > > either > > introduce both "cold" trip points and "warming devices", and > > introduce > > new logic in thermal framework and governors to handle them, > > Or > > introduce "cold

[PATCH v2 02/13] cpufreq: cpufreq: Demote lots of function headers unworthy of kerneldoc status

2020-07-15 Thread Lee Jones
Also provide missing function parameter description for 'cpu' and 'policy'. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/cpufreq.c:60: warning: cannot understand function prototype: 'struct cpufreq_driver *cpufreq_driver; ' drivers/cpufreq/cpufreq.c:90: warning: Function pa

[PATCH v2 11/13] cpufreq: pcc-cpufreq: Mark sometimes used ID structs as __maybe_unused

2020-07-15 Thread Lee Jones
Not used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/pcc-cpufreq.c:619:36: warning: ‘processor_device_ids’ defined but not used [-Wunused-const-variable=] 619 | static const struct acpi_device_id processor_device_ids[] = { | ^~~

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-15 Thread John Paul Adrian Glaubitz
Hi! On 7/15/20 10:11 AM, Geert Uytterhoeven wrote: >> Btw, booting with systemd as init causes a lot of hickups which I didn't see >> with 3.16: > >> [ 25.184000] BUG: Bad page state in process systemd-hiberna pfn:5d91a > > Lemme gues: does commit 002ae7057069538a ("mm, dump_page(): do not c

[PATCH v2 06/13] cpufreq: powernv-cpufreq: Functions only used in call-backs should be static

2020-07-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernv-cpufreq.c:669:6: warning: no previous prototype for ‘gpstate_timer_handler’ [-Wmissing-prototypes] drivers/cpufreq/powernv-cpufreq.c:902:6: warning: no previous prototype for ‘powernv_cpufreq_work_fn’ [-Wmissing-prototype

[PATCH v2 13/13] cpufreq: amd_freq_sensitivity: Mark sometimes used ID structs as __maybe_unused

2020-07-15 Thread Lee Jones
ot used when MODULE is not defined. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/amd_freq_sensitivity.c:147:32: warning: ‘amd_freq_sensitivity_ids’ defined but not used [-Wunused-const-variable=] 147 | static const struct x86_cpu_id amd_freq_sensitivity_ids[] = { | ^~~

[PATCH v2 07/13] cpufreq: powernv-cpufreq: Fix a bunch of kerneldoc related issues

2020-07-15 Thread Lee Jones
Repair problems with formatting and missing attributes/parameters, and demote header comments which do not meet the required standards applicable to kerneldoc. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernv-cpufreq.c:84: warning: Function parameter or member 'last_lpst

Re: [PATCH v3 1/3] kprobes: Add text_alloc() and text_free()

2020-07-15 Thread Masami Hiramatsu
Hi Jarkko, On Wed, 15 Jul 2020 01:32:27 +0300 Jarkko Sakkinen wrote: > Introduce new API for allocating space for code generaed at run-time > leveraging from module_alloc() and module_memfree() code. Use this to > perform memory allocations in the kprobes code in order to loose the > bound betwe

Re: [PATCH 1/4] mm/page_alloc: fix non cma alloc context

2020-07-15 Thread Michal Hocko
On Wed 15-07-20 14:05:26, Joonsoo Kim wrote: > From: Joonsoo Kim > > Currently, preventing cma area in page allocation is implemented by using > current_gfp_context(). However, there are two problems of this > implementation. > > First, this doesn't work for allocation fastpath. In the fastpath,

RE: [PATCH] drivers/perf: hisi: Add identifier sysfs file

2020-07-15 Thread Joakim Zhang
> -Original Message- > From: John Garry > Sent: 2020年7月15日 16:23 > To: Will Deacon > Cc: zhangshao...@hisilicon.com; mark.rutl...@arm.com; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; Joakim > Zhang ; jo...@redhat.com; > linux...@huawei.com > Subject: Re: [PATCH]

Re: [PATCH] tty: Add MOXA NPort Real TTY Driver

2020-07-15 Thread kernel test robot
--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Johnson-CH-Chen/tty-Add-MOXA-NPort-Real-TTY-Driver/20200714-142712 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing config: sparc64-randconfi

Re: [PATCH 3/4] fs: add mount_setattr()

2020-07-15 Thread Geert Uytterhoeven
On Tue, Jul 14, 2020 at 6:17 PM Christian Brauner wrote: > This implements the mount_setattr() syscall. While the new mount api > allows to change the properties of a superblock there is currently no > way to change the mount properties of a mount or mount tree using mount > file descriptors which

Re: [PATCH] drivers/perf: hisi: Add identifier sysfs file

2020-07-15 Thread Will Deacon
Hi John, On Wed, Jul 15, 2020 at 09:23:19AM +0100, John Garry wrote: > > On Wed, Jun 17, 2020 at 09:05:11PM +0800, John Garry wrote: > > > To allow userspace to identify the specific implementation of the device, > > > add an "identifier" sysfs file. > > > > > > Encoding is as follows: > > > hi16

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread B K Karthik
On Wed, Jul 15, 2020 at 3:08 AM Greg Kroah-Hartman wrote: > > On Wed, Jul 15, 2020 at 12:48:13AM -0400, B K Karthik wrote: > > fixed a sparse warning by changing the type in > > assignment from void [noderef] __user * to unsigned int * > > (different address space) > > > > Signed-off-by: B K Karth

[PATCH v7 0/2] s390: virtio: let arch validate VIRTIO features

2020-07-15 Thread Pierre Morel
Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. in this respin: 1) I kept removed the ack from Jason as I reworked the patch @Jason, the nature and goal of the patch did not really changed please can I get back your acked-b

[PATCH v7 2/2] s390: virtio: PV needs VIRTIO I/O device protection

2020-07-15 Thread Pierre Morel
If protected virtualization is active on s390, the virtio queues are not accessible to the host, unless VIRTIO_F_IOMMU_PLATFORM has been negotiated. Use the new arch_validate_virtio_features() interface to fail probe if that's not the case, preventing a host error on access attempt. Signed-off-by:

[PATCH v7 1/2] virtio: let arch validate VIRTIO features

2020-07-15 Thread Pierre Morel
An architecture may need to validate the VIRTIO devices features based on architecture specifics. Signed-off-by: Pierre Morel Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Acked-by: Halil Pasic --- drivers/virtio/virtio.c | 19 +++ include/linux/virtio_confi

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread Greg Kroah-Hartman
On Wed, Jul 15, 2020 at 01:56:45PM +0530, B K Karthik wrote: > On Wed, Jul 15, 2020, 12:38 PM Greg Kroah-Hartman < > gre...@linuxfoundation.org> wrote: > > > On Wed, Jul 15, 2020 at 12:48:13AM -0400, B K Karthik wrote: > > > fixed a sparse warning by changing the type in > > > assignment from void

Re: [PATCH 2/2][RESEND v3] PM-runtime: change the tracepoints to cover all usage_count

2020-07-15 Thread Greg Kroah-Hartman
On Wed, Jul 15, 2020 at 04:18:38PM +0800, Chen Yu wrote: > Hi Greg, > thanks very much for taking a look, > On Wed, Jul 15, 2020 at 09:06:14AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jul 15, 2020 at 02:28:03PM +0800, Chen Yu wrote: > > > Commit d229290689ae ("PM-runtime: add tracepoints for us

Re: [PATCH V2 2/2] dt-bindings: arm: renesas: Document beacon-rzg2m

2020-07-15 Thread Geert Uytterhoeven
Hi Sergei, On Wed, Jul 15, 2020 at 10:16 AM Sergei Shtylyov wrote: > On 14.07.2020 15:34, Adam Ford wrote: > > Beacon EmbeddedWorks in introducing a development kit based on the > > Renesas RZ/G2M platform. This patch adds the entry to the bindings > > list. > > > > Signed-off-by: Adam Ford >

Re: [PATCH 3/4] mm/hugetlb: make hugetlb migration callback CMA aware

2020-07-15 Thread Michal Hocko
On Wed 15-07-20 14:05:28, Joonsoo Kim wrote: > From: Joonsoo Kim > > new_non_cma_page() in gup.c requires to allocate the new page that is not > on the CMA area. new_non_cma_page() implements it by using allocation > scope APIs. > > However, there is a work-around for hugetlb. Normal hugetlb pag

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-15 Thread Pavel Begunkov
On 14/07/2020 14:55, Miklos Szeredi wrote: > On Tue, Jul 14, 2020 at 1:36 PM Pavel Begunkov wrote: >> >> On 14/07/2020 11:07, Miklos Szeredi wrote: >>> On Tue, Jul 14, 2020 at 8:51 AM Pavel Machek wrote: Hi! >> At first, I thought that the proposed system call is capable of >>>

[PATCH v6 0/7] ARM: dts: rockchip: Radxa Rock Pi N8 initial support

2020-07-15 Thread Jagan Teki
Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VMARC RK3288 SOM need to mount on top of dalang carrier board for making Rock PI N8 SBC. Changes for v6: - spilt the trivial patch into multiple patch

[PATCH v6 1/7] ARM: dts: rockchip: dalang-carrier: Move i2c nodes into SOM

2020-07-15 Thread Jagan Teki
I2C nodes and associated slave devices defined in Carrier board are specific to rk3399pro vmrac SOM. So, move them into SOM dtsi. Signed-off-by: Jagan Teki --- Changes for v6: - spilt of previous version Trivial patch .../dts/rockchip-radxa-dalang-carrier.dtsi| 32 --- .../

[PATCH v6 2/7] arm64: dts: rk3399pro: vmarc-som: Fix sorting nodes, properties

2020-07-15 Thread Jagan Teki
Fix node, properties sorting on RockPI N10 board dts(i) files. Signed-off-by: Jagan Teki --- Changes for v6: - spilt of previous version Trivial patch .../dts/rockchip/rk3399pro-rock-pi-n10.dts| 2 +- .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 35 +-- 2 files changed,

[PATCH v6 5/7] dt-bindings: arm: rockchip: Add Rock Pi N8 binding

2020-07-15 Thread Jagan Teki
Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VMARC RK3288 SOM need to mount on top of dalang carrier board for making Rock PI N8 SBC. Add dt-bindings for it. Reviewed-by: Rob Herring Signed-off

[PATCH v6 6/7] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support

2020-07-15 Thread Jagan Teki
VMARC RK3288 SOM is a standard SMARC SOM design with Rockchip RK3288 SoC, which is designed by Vamrs. Specification: - Rockchip RK3288 - PMIC: RK808 - eMMC: 16GB/32GB/64GB - SD slot - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet - HDMI, MIPI-DSI/CSI, eDP Add initial support for VMARC R

Re: [RFC PATCH 4/4] thermal: Modify thermal governors to do nothing for "cold" trip points

2020-07-15 Thread Zhang Rui
On Fri, 2020-07-10 at 09:51 -0400, Thara Gopinath wrote: > For now, thermal governors do not support monitoring of falling > temperature. Hence, in case of calls to the governor for trip points > marked > as cold, return doing nothing. > > Signed-off-by: Thara Gopinath > --- > drivers/thermal/go

[PATCH v6 3/7] arm64: dts: rk3399pro: vmarc-som: Move supply regulators into Carrier

2020-07-15 Thread Jagan Teki
Supply regulators are common across different variants of vmarc SOM's since the Type C power controller IC is part of the carrier board. So, move the supply regulators into carrier board dtsi. Signed-off-by: Jagan Teki --- Changes for v6: - spilt of previous version Trivial patch .../dts/rockc

[PATCH v6 4/7] arm64: dts: rk3399pro: vmarc-som: Move common properties into Carrier

2020-07-15 Thread Jagan Teki
Some of gmac, sdmmc node properties are common across rk3288 and rk3399pro SOM's so move them into Carrier dtsi. Chosen node is specific to rk3399pro configure SBC, so move it into RockPI N10 dts. Signed-off-by: Jagan Teki --- Changes for v6: - spilt of previous version Trivial patch .../dts/r

[PATCH v6 7/7] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support

2020-07-15 Thread Jagan Teki
Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VAMRC RK3288 SOM need to mount on top of radxa dalang carrier board for making Rock Pi N8 SBC. So, add initial support for Rock Pi N8 by including rk3

Re: [PATCH v3 3/3] kprobes: Flag out CONFIG_MODULES dependent code

2020-07-15 Thread Masami Hiramatsu
Hi Jarkko, On Wed, 15 Jul 2020 01:32:29 +0300 Jarkko Sakkinen wrote: > Remove CONFIG_MODULES dependency by flagging out the dependent code. This > allows to use kprobes in a kernel without support for loadable modules, > which could be useful for a test kernel or perhaps an embedded kernel. >

Re: [PATCH] wlcore: mesh: handle failure case of pm_runtime_get_sync

2020-07-15 Thread Kalle Valo
Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost Already fixed by another patch. Patch set to Rejected. -- https://patchw

Re: [PATCH 4/4] mm/gup: use a standard migration target allocation callback

2020-07-15 Thread Michal Hocko
On Wed 15-07-20 14:05:29, Joonsoo Kim wrote: > From: Joonsoo Kim > > There is a well-defined migration target allocation callback. Use it. > > Acked-by: Vlastimil Babka > Signed-off-by: Joonsoo Kim Acked-by: Michal Hocko > --- > mm/gup.c | 54 ++-

Re: [PATCH v7 0/2] s390: virtio: let arch validate VIRTIO features

2020-07-15 Thread Jason Wang
On 2020/7/15 下午4:31, Pierre Morel wrote: Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. in this respin: 1) I kept removed the ack from Jason as I reworked the patch @Jason, the nature and goal of the patch did not really changed

Re: [PATCH v2 0/3] um: allow static linking for non-glibc libc implementations

2020-07-15 Thread Brendan Higgins
On Sat, Jul 4, 2020 at 1:52 AM Ignat Korchagin wrote: > > This is a continuation of [1]. Since I was able to produce a working UML > binary > with UML_NET_VECTOR linked with musl with the changes included in the patches > here. I was compiling on Arch Linux, so hopefully all the latest versions o

Re: [PATCH v2 1/3] um/kconfig: introduce CC_CAN_LINK_STATIC_NO_RUNTIME_DEPS

2020-07-15 Thread Brendan Higgins
On Sat, Jul 4, 2020 at 1:52 AM Ignat Korchagin wrote: > > For statically linked UML build it is important to take into account the > standard C-library implementation. Some implementations, notably glibc have > caveats: even when linked statically, the final program might require some > runtime de

Re: [PATCH v2] staging: gasket: core: Fix a coding style issue in gasket_core.c

2020-07-15 Thread Dan Carpenter
On Wed, Jul 15, 2020 at 09:57:55AM +0200, Greg KH wrote: > On Wed, Jul 15, 2020 at 12:24:22AM -0700, Joe Perches wrote: > > On Wed, 2020-07-15 at 09:17 +0200, Greg KH wrote: > > > On Wed, Jul 15, 2020 at 07:44:40AM +0800, Zhixu Zhao wrote: > > > > On Thu, Jun 18, 2020 at 12:11:27AM +0800, Zhixu Zha

Re: [PATCH v2 2/6] arm64: perf: Implement correct cap_user_time

2020-07-15 Thread Peter Zijlstra
On Wed, Jul 15, 2020 at 10:05:08AM +0800, Leo Yan wrote: > [leoyan: Use quot/rem to convert cyc to ns to avoid overflow] > + quot = rd->epoch_cyc >> rd->shift; > + rem = rd->epoch_cyc & (((u64)1 << rd->shift) - 1); > + ns = quot * rd->mult + ((rem * rd->mult) >

memory leak in create_pipe_files

2020-07-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a581387e Merge tag 'io_uring-5.8-2020-07-10' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10ba196710 kernel config: https://syzkaller.appspot.com/x/.config?x=13a9cfc3f50ff96 dash

Re: [PATCH v3 2/3] module: Add lock_modules() and unlock_modules()

2020-07-15 Thread Masami Hiramatsu
On Wed, 15 Jul 2020 01:32:28 +0300 Jarkko Sakkinen wrote: > Add wrappers to take the modules "big lock" in order to encapsulate > conditional compilation (CONFIG_MODULES) inside the wrapper. > > Cc: Andi Kleen > Suggested-by: Masami Hiramatsu > Signed-off-by: Jarkko Sakkinen > --- > include/

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-15 Thread Miklos Szeredi
On Wed, Jul 15, 2020 at 10:33 AM Pavel Begunkov wrote: > > On 14/07/2020 14:55, Miklos Szeredi wrote: > > On Tue, Jul 14, 2020 at 1:36 PM Pavel Begunkov > > wrote: > >> > >> On 14/07/2020 11:07, Miklos Szeredi wrote: > >>> On Tue, Jul 14, 2020 at 8:51 AM Pavel Machek wrote: > > Hi! >

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread B K Karthik
On Wed, Jul 15, 2020 at 4:31 AM Greg Kroah-Hartman wrote: > > On Wed, Jul 15, 2020 at 01:56:45PM +0530, B K Karthik wrote: > > On Wed, Jul 15, 2020, 12:38 PM Greg Kroah-Hartman < > > gre...@linuxfoundation.org> wrote: > > > > > On Wed, Jul 15, 2020 at 12:48:13AM -0400, B K Karthik wrote: > > > > f

[PATCH 2/2] debugfs: Add access restriction option

2020-07-15 Thread Peter Enderborg
Since debugfs include sensitive information it need to be treated carefully. But it also has many very useful debug functions for userspace. With this option we can have same configuration for system with need of debugfs and a way to turn it off. This gives a extra protection for exposure on system

[PATCH v5 0/2] debugfs: Add access restriction option

2020-07-15 Thread Peter Enderborg
Since debugfs include sensitive information it need to be treated carefully. But it also has many very useful debug functions for userspace. With this option we can have same configuration for system with need of debugfs and a way to turn it off. This gives a extra protection for exposure on syst

Re: [PATCH] usb: dwc2: Fix error path in gadget registration

2020-07-15 Thread Marek Szyprowski
Hi Minas, On 14.07.2020 14:32, Minas Harutyunyan wrote: > On 7/14/2020 12:48 PM, Marek Szyprowski wrote: >> When gadget registration fails, one should not call usb_del_gadget_udc(). >> Ensure this by setting gadget->udc to NULL. Also in case of a failure > I was able to reproduce issue. I'm Ok wit

[PATCH 1/2] tracefs: Remove unnecessary debug_fs checks.

2020-07-15 Thread Peter Enderborg
This is a preparation for debugfs restricted mode. We don't need debugfs to trace, the removed check stop tracefs to work if debugfs is not initialised. We instead tries to automount within debugfs and relay on it's handling. The code path is to create a backward compatibility from when tracefs was

Re: [PATCH 2/2] usb: tegra: Fix zero length memory allocation

2020-07-15 Thread Jon Hunter
On 14/07/2020 10:32, Thierry Reding wrote: > On Sun, Jul 12, 2020 at 11:28:37AM +0100, Jon Hunter wrote: >> After commit cad064f1bd52 ("devres: handle zero size in devm_kmalloc()") >> was added system suspend started failing on Tegra186. The kernel log >> showed that the Tegra XHCI driver was cra

Re: [PATCH v2 3/3] um: allow static linking for non-glibc implementations

2020-07-15 Thread Brendan Higgins
On Sat, Jul 4, 2020 at 1:52 AM Ignat Korchagin wrote: > > It is possible to produce a statically linked UML binary with UML_NET_VECTOR, > UML_NET_VDE and UML_NET_PCAP options enabled using alternative libc > implementations, which do not rely on NSS, such as musl. > > Allow static linking in this

Re: [RFC PATCH 3/4] thermal:core:Add genetlink notifications for monitoring falling temperature

2020-07-15 Thread Zhang Rui
On Fri, 2020-07-10 at 09:51 -0400, Thara Gopinath wrote: > Add notification calls for trip type THERMAL_TRIP_COLD when > temperature > crosses the trip point in either direction. > > Signed-off-by: Thara Gopinath > --- > drivers/thermal/thermal_core.c | 21 +++-- > 1 file changed

Re: [PATCH v2 2/3] um: some fixes to build UML with musl

2020-07-15 Thread Brendan Higgins
On Tue, Jul 14, 2020 at 9:02 AM Johannes Berg wrote: > > On Tue, 2020-07-14 at 11:43 +0100, Anton Ivanov wrote: > > > Patch is OK with me, should not read patches before the 3rd double espresso > > next time. > > > > I will +1 it, Richard, Johannes, what do you think? > > I got dropped off the li

Re: [PATCH v4 63/75] x86/sev-es: Handle #DB Events

2020-07-15 Thread Peter Zijlstra
On Tue, Jul 14, 2020 at 02:09:05PM +0200, Joerg Roedel wrote: > @@ -1028,6 +1036,16 @@ DEFINE_IDTENTRY_VC_SAFE_STACK(exc_vmm_communication) > struct ghcb *ghcb; > > lockdep_assert_irqs_disabled(); > + > + /* > + * #DB is special and needs to be handled outside of the > intr

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread B K Karthik
On Wed, Jul 15, 2020 at 4:41 AM B K Karthik wrote: > > On Wed, Jul 15, 2020 at 4:31 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Jul 15, 2020 at 01:56:45PM +0530, B K Karthik wrote: > > > On Wed, Jul 15, 2020, 12:38 PM Greg Kroah-Hartman < > > > gre...@linuxfoundation.org> wrote: > > > > > > >

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-15 Thread Pavel Begunkov
On 15/07/2020 11:41, Miklos Szeredi wrote: > On Wed, Jul 15, 2020 at 10:33 AM Pavel Begunkov > wrote: >> >> On 14/07/2020 14:55, Miklos Szeredi wrote: >>> On Tue, Jul 14, 2020 at 1:36 PM Pavel Begunkov >>> wrote: On 14/07/2020 11:07, Miklos Szeredi wrote: > On Tue, Jul 14, 2020 at

Re: [PATCH v5 1/7] x86/boot/compressed: Move .got.plt entries out of the .got section

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > From: Ard Biesheuvel > > The .got.plt section contains the part of the GOT which is used by PLT > entries, and which gets updated lazily by the dynamic loader when > function calls are dispatched through those PLT entries. > > On fully link

Re: [PATCH V2 1/2] arm64: dts: Introduce r8a774a1-beacon-rzg2m-kit

2020-07-15 Thread Geert Uytterhoeven
Hi Adam, On Tue, Jul 14, 2020 at 2:34 PM Adam Ford wrote: > Beacon EmebeddedWorks, formerly Logic PD is introducing a new > SOM and development kit based on the RZ/G2M SoC from Renesas. > > The SOM supports eMMC, WiFi and Bluetooth, along with a Cat-M1 > cellular radio. > > The Baseboard has Ethe

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-07-15 Thread Saravana Kannan
On Wed, Jul 15, 2020 at 1:22 AM Marek Szyprowski wrote: > > Hi Greg and Saravana, > > On 10.07.2020 15:23, Greg Kroah-Hartman wrote: > > On Mon, Jul 06, 2020 at 03:45:02PM -0700, Saravana Kannan wrote: > >> On Tue, Jun 16, 2020 at 8:45 PM Saravana Kannan > >> wrote: > >>> On Fri, May 29, 2020 at

Re: [PATCH v5 2/7] x86/boot/compressed: Force hidden visibility for all symbol references

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > From: Ard Biesheuvel > > Eliminate all GOT entries in the decompressor binary, by forcing hidden > visibility for all symbol references, which informs the compiler that > such references will be resolved at link time without the need for >

Re: [PATCH v5 3/7] x86/boot/compressed: Get rid of GOT fixup code

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > From: Ard Biesheuvel > > In a previous patch, we have eliminated GOT entries from the decompressor > binary and added an assertion that the .got section is empty. This means > that the GOT fixup routines that exist in both the 32-bit and 64

Re: [PATCH v5 4/7] x86/boot: Add .text.* to setup.ld

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > gcc puts the main function into .text.startup when compiled with -Os (or > -O2). This results in arch/x86/boot/main.c having a .text.startup > section which is currently not included explicitly in the linker script > setup.ld in the same dir

[PATCH] ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy

2020-07-15 Thread Grygorii Strashko
Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board. The above board have phy-mode = "rgmii-id" and it is worked before because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX o

Re: [PATCH v5 5/7] x86/boot: Remove run-time relocations from .head.text code

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > The assembly code in head_{32,64}.S, while meant to be > position-independent, generates run-time relocations because it uses > instructions such as > lealgdt(%edx), %eax > which make the assembler and linker think that the code

Re: [PATCH v5 6/7] x86/boot: Remove run-time relocations from head_{32,64}.S

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > The BFD linker generates run-time relocations for z_input_len and > z_output_len, even though they are absolute symbols. > > This is fixed for binutils-2.35 [1]. Work around this for earlier > versions by defining two variables input_len and

Re: [PATCH V2 2/2] dt-bindings: arm: renesas: Document beacon-rzg2m

2020-07-15 Thread Geert Uytterhoeven
On Tue, Jul 14, 2020 at 2:34 PM Adam Ford wrote: > Beacon EmbeddedWorks in introducing a development kit based on the > Renesas RZ/G2M platform. This patch adds the entry to the bindings > list. > > Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v

Re: [PATCH v5 7/7] x86/boot: Check that there are no run-time relocations

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > Add a linker script check that there are no run-time relocations, and > remove the old one that tries to check via looking for specially-named > sections in the object files. > > Drop the tests for -fPIE compiler option and -pie linker optio

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-15 Thread Pavel Begunkov
On 15/07/2020 11:49, Pavel Begunkov wrote: > On 15/07/2020 11:41, Miklos Szeredi wrote: >> On Wed, Jul 15, 2020 at 10:33 AM Pavel Begunkov >> wrote: >>> >>> On 14/07/2020 14:55, Miklos Szeredi wrote: On Tue, Jul 14, 2020 at 1:36 PM Pavel Begunkov wrote: > > On 14/07/2020 11:07

Re: [PATCH v5 6/7] x86/boot: Remove run-time relocations from head_{32,64}.S

2020-07-15 Thread Ard Biesheuvel
On Wed, 15 Jul 2020 at 11:58, Sedat Dilek wrote: > > On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > > > The BFD linker generates run-time relocations for z_input_len and > > z_output_len, even though they are absolute symbols. > > > > This is fixed for binutils-2.35 [1]. Work around thi

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-07-15 Thread Marek Szyprowski
Hi Saravana, On 15.07.2020 10:53, Saravana Kannan wrote: > On Wed, Jul 15, 2020 at 1:22 AM Marek Szyprowski > wrote: >> On 10.07.2020 15:23, Greg Kroah-Hartman wrote: >>> On Mon, Jul 06, 2020 at 03:45:02PM -0700, Saravana Kannan wrote: On Tue, Jun 16, 2020 at 8:45 PM Saravana Kannan w

[PATCH v7 3/8] MAINTAINERS: add maintainers to ROCKCHIP NFC

2020-07-15 Thread Yifeng Zhao
Add maintainers to ROCKCHIP NFC. Signed-off-by: Yifeng Zhao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

Re: [PATCH v2] staging: gasket: core: Fix a coding style issue in gasket_core.c

2020-07-15 Thread Joe Perches
On Wed, 2020-07-15 at 11:37 +0300, Dan Carpenter wrote: > On Wed, Jul 15, 2020 at 09:57:55AM +0200, Greg KH wrote: > > On Wed, Jul 15, 2020 at 12:24:22AM -0700, Joe Perches wrote: > > > On Wed, 2020-07-15 at 09:17 +0200, Greg KH wrote: > > > > On Wed, Jul 15, 2020 at 07:44:40AM +0800, Zhixu Zhao wr

[PATCH v7 4/8] arm64: dts: rockchip: Add NFC node for RK3308 SoC

2020-07-15 Thread Yifeng Zhao
From: Yifeng Zhao Add NAND FLASH Controller(NFC) node for RK3308 SoC. Signed-off-by: Yifeng Zhao Signed-off-by: Yifeng Zhao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3308.dtsi |

Re: [PATCH 1/4] dma-mapping: Add bounced DMA ops

2020-07-15 Thread Claire Chang
On Wed, Jul 15, 2020 at 11:46 AM Claire Chang wrote: > > On Tue, Jul 14, 2020 at 7:01 PM Christoph Hellwig wrote: > > > > On Mon, Jul 13, 2020 at 12:55:43PM +0100, Robin Murphy wrote: > > > On 2020-07-13 10:12, Claire Chang wrote: > > >> The bounced DMA ops provide an implementation of DMA ops th

[PATCH v7 5/8] arm64: dts: rockchip: Add NFC node for PX30 SoC

2020-07-15 Thread Yifeng Zhao
Add NAND FLASH Controller(NFC) node for PX30 SoC. Signed-off-by: Yifeng Zhao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/px30.dtsi | 15 +++ 1 file changed, 15 insertions(+)

Re: [Intel-gfx] [PATCH -next] drm/i915: Remove unused inline function drain_delayed_work()

2020-07-15 Thread Chris Wilson
Quoting YueHaibing (2020-07-15 04:21:04) > It is not used since commit 058179e72e09 ("drm/i915/gt: Replace > hangcheck by heartbeats") > > Signed-off-by: YueHaibing Indeed, it is no more. Reviewed-by: Chris Wilson -Chris

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

2020-07-15 Thread Xin Long
Hi, Steffen, I've confirmed the patchset I posted yesterday would fix this: [PATCH ipsec-next 0/3] xfrm: not register one xfrm(6)_tunnel object twice Thanks. On Tue, Jul 14, 2020 at 5:37 PM Steffen Klassert wrote: > > Xin, > > this looks a bit like it was introduced with one of your recent > p

[PATCH v7 6/8] arm: dts: rockchip: Add NFC node for RV1108 SoC

2020-07-15 Thread Yifeng Zhao
Add NAND FLASH Controller(NFC) node for RV1108 SoC. Signed-off-by: Yifeng Zhao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rv1108.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --gi

[PATCH v7 7/8] arm: dts: rockchip: Add NFC node for RK2928 and other SoCs

2020-07-15 Thread Yifeng Zhao
Add NAND FLASH Controller(NFC) node for RK2928, RK3066, RK3168 and RK3188 SoCs. Signed-off-by: Yifeng Zhao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3xxx.dtsi | 9 + 1 file changed, 9

[PATCH v7 8/8] arm: dts: rockchip: Add NFC node for RK3036 SoC

2020-07-15 Thread Yifeng Zhao
Add NAND FLASH Controller(NFC) node for RK3036 SoC. Signed-off-by: Yifeng Zhao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3036.dtsi | 52 +++ 1 file changed, 52

Re: [PATCH v5 6/7] x86/boot: Remove run-time relocations from head_{32,64}.S

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 11:03 AM Ard Biesheuvel wrote: > > On Wed, 15 Jul 2020 at 11:58, Sedat Dilek wrote: > > > > On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > > > > > The BFD linker generates run-time relocations for z_input_len and > > > z_output_len, even though they are absolute

Re: [PATCH] rtw88: 8822ce: add support for device ID 0xc82f

2020-07-15 Thread Kalle Valo
Aaron Ma wrote: > New device ID 0xc82f found on Lenovo ThinkCenter. > Tested it with c822 driver, works good. > > PCI id: > 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. > Device [10ec:c82f] > Subsystem: Lenovo Device [17aa:c02f] > > Signed-off-by: Aaron Ma Patch

[PATCH v7 1/8] dt-bindings: mtd: Describe Rockchip RK3xxx NAND flash controller

2020-07-15 Thread Yifeng Zhao
Documentation support for Rockchip RK3xxx NAND flash controllers Signed-off-by: Yifeng Zhao --- Changes in v7: - Fix some wrong define Changes in v6: - Fix some wrong define - Modified the definition of compatible Changes in v5: - Fix some wrong define. - Add boot-medium define. - Remove some

[PATCH v7 0/8] Add Rockchip NFC drivers for RK3308 and others

2020-07-15 Thread Yifeng Zhao
Rockchp's NFC(Nand Flash Controller) has four versions: V600, V622, V800 and V900.This series patch can support all four versions. Changes in v7: - Fix some wrong define - Rebase to linux-next. - Fix coding style. - Reserved 4 bytes at the begining of the oob area. - Page raw read and write inc

[PATCH v7 2/8] mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others

2020-07-15 Thread Yifeng Zhao
This driver supports Rockchip NFC (NAND Flash Controller) found on RK3308, RK2928, RKPX30, RV1108 and other SOCs. The driver has been tested using 8-bit NAND interface on the ARM based RK3308 platform. Support Rockchip SoCs and NFC versions: - PX30 and RK3326(NFCv900). ECC: 16/40/60/70 bit

Re: [PATCH] mwifiex: Use macro MWIFIEX_MAX_BSS_NUM for specifying limit of interfaces

2020-07-15 Thread Kalle Valo
Pali Rohár wrote: > This macro is already used in mwifiex driver for specifying upper limit and > is defined to value 3. So use it also in struct ieee80211_iface_limit. > > Signed-off-by: Pali Rohár Patch applied to wireless-drivers-next.git, thanks. 0ef0ace3e8e7 mwifiex: Use macro MWIFIEX_MA

Re: [PATCH v5 7/7] x86/boot: Check that there are no run-time relocations

2020-07-15 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 11:00 AM Sedat Dilek wrote: > > On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > > > Add a linker script check that there are no run-time relocations, and > > remove the old one that tries to check via looking for specially-named > > sections in the object files. >

Re: [PATCH v4 63/75] x86/sev-es: Handle #DB Events

2020-07-15 Thread Joerg Roedel
On Wed, Jul 15, 2020 at 10:47:52AM +0200, Peter Zijlstra wrote: > On Tue, Jul 14, 2020 at 02:09:05PM +0200, Joerg Roedel wrote: > > > @@ -1028,6 +1036,16 @@ DEFINE_IDTENTRY_VC_SAFE_STACK(exc_vmm_communication) > > struct ghcb *ghcb; > > > > lockdep_assert_irqs_disabled(); > > + > > + /

Re: [PATCH] mwifiex: Fix reporting 'operation not supported' error code

2020-07-15 Thread Kalle Valo
Pali Rohár wrote: > ENOTSUPP (double PP) is internal linux kernel code 524 available only in > kernel include file linux/errno.h and not exported to userspace. > > EOPNOTSUPP (OP; double PP) is standard code 95 for reporting 'operation not > supported' available via kernel include file uapi/asm-

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread Greg Kroah-Hartman
On Wed, Jul 15, 2020 at 04:41:52AM -0400, B K Karthik wrote: > On Wed, Jul 15, 2020 at 4:31 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Jul 15, 2020 at 01:56:45PM +0530, B K Karthik wrote: > > > On Wed, Jul 15, 2020, 12:38 PM Greg Kroah-Hartman < > > > gre...@linuxfoundation.org> wrote: > > > >

Re: AMD IOMMU + SME + amdgpu regression

2020-07-15 Thread Joerg Roedel
On Mon, Jun 22, 2020 at 11:30:04AM -0400, Alex Xu (Hello71) wrote: > Yes, it works with SME off with dbed452a078 ("dma-pool: decouple > DMA_REMAP from DMA_COHERENT_POOL") applied. Okay, I can reproduce the problem on my Ryzen System, and the boot log shows various warnings/bugs from the amdgpu dr

Re: [PATCH] Revert "thermal: mediatek: fix register index error"

2020-07-15 Thread Daniel Lezcano
On 07/07/2020 12:34, Enric Balletbo i Serra wrote: > This reverts commit eb9aecd90d1a39601e91cd08b90d5fee51d321a6 > > The above patch is supposed to fix a register index error on mt2701. It > is not clear if the problem solved is a hang or just an invalid value > returned, my guess is the second.

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread Greg Kroah-Hartman
On Wed, Jul 15, 2020 at 04:47:48AM -0400, B K Karthik wrote: > On Wed, Jul 15, 2020 at 4:41 AM B K Karthik wrote: > > > > On Wed, Jul 15, 2020 at 4:31 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Jul 15, 2020 at 01:56:45PM +0530, B K Karthik wrote: > > > > On Wed, Jul 15, 2020, 12:38 PM G

Re: [PATCH v7 0/2] s390: virtio: let arch validate VIRTIO features

2020-07-15 Thread Cornelia Huck
On Wed, 15 Jul 2020 10:31:07 +0200 Pierre Morel wrote: > Hi all, > > The goal of the series is to give a chance to the architecture > to validate VIRTIO device features. > > in this respin: > > 1) I kept removed the ack from Jason as I reworked the patch >@Jason, the nature and goal of the

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread B K Karthik
On Wed, Jul 15, 2020 at 5:14 AM Greg Kroah-Hartman wrote: > > On Wed, Jul 15, 2020 at 04:41:52AM -0400, B K Karthik wrote: > > On Wed, Jul 15, 2020 at 4:31 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Jul 15, 2020 at 01:56:45PM +0530, B K Karthik wrote: > > > > On Wed, Jul 15, 2020, 12:38

Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-15 Thread B K Karthik
On Wed, Jul 15, 2020 at 5:19 AM Greg Kroah-Hartman wrote: > > On Wed, Jul 15, 2020 at 04:47:48AM -0400, B K Karthik wrote: > > On Wed, Jul 15, 2020 at 4:41 AM B K Karthik wrote: > > > > > > On Wed, Jul 15, 2020 at 4:31 AM Greg Kroah-Hartman > > > wrote: > > > > > > > > On Wed, Jul 15, 2020 at 01

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