Re: [PATCH] arm64: defconfig: Enable Qualcomm remoteproc dependencies

2019-10-15 Thread Vinod Koul
On 08-10-19, 17:14, Bjorn Andersson wrote: > Enable the the power domains, reset controllers and remote block device > memory access drivers necessary to boot the Audio, Compute and Modem > DSPs on Qualcomm SDM845. > > None of the power domains are system critical, but needs to be builtin > as

Re: [PATCH v2] ACPI / processor_idle: use ndelay instead of io port access for wait

2019-10-15 Thread Yin, Fengwei
Hi David, On 10/15/2019 7:48 PM, David Laight wrote: From: Yin Fengwei Sent: 15 October 2019 09:04 In function acpi_idle_do_entry(), an ioport access is used for dummy wait to guarantee hardware behavior. But it could trigger unnecessary vmexit in virtualization environment. If we run linux

Re: [PATCH v1 00/17] NVIDIA Tegra20 CPUFreq driver major update

2019-10-15 Thread Viresh Kumar
On 16-10-19, 00:16, Dmitry Osipenko wrote: > Hello, > > This series moves intermediate-clk handling from tegra20-cpufreq into > tegra-clk driver, this allows us to switch to generic cpufreq-dt driver > which brings voltage scaling, per-hardware OPPs and Tegra30 support out > of the box. All

Re: [PATCH v3 2/3] bpf: use copy_struct_from_user() in bpf_prog_get_info_by_fd()

2019-10-15 Thread Alexei Starovoitov
On Wed, Oct 16, 2019 at 05:44:31AM +0200, Christian Brauner wrote: > In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). > This helper is intended for all codepaths that copy structs from > userspace that are versioned by size. bpf_prog_get_info_by_fd() does > exactly what

Re: [PATCH 2/2] arm64: dts: sc7180: Add minimal dts/dtsi files for SC7180 soc

2019-10-15 Thread Vinod Koul
On 15-10-19, 16:03, Rajendra Nayak wrote: > + timer { > + compatible = "arm,armv8-timer"; > + interrupts = , > + , > + , > + ; > + }; > + > + clocks { Can we have these sorted

Re: [PATCH v1 11/17] ARM: dts: tegra20: Add CPU Operating Performance Points

2019-10-15 Thread Viresh Kumar
On 16-10-19, 00:16, Dmitry Osipenko wrote: > Operating Point are specified per HW version. The OPP voltages are kept > in a separate DTSI file because some boards may not define CPU regulator > in their device-tree if voltage scaling isn't necessary, like for example > in a case of

Re: [PATCH v3 1/3] bpf: use check_zeroed_user() in bpf_check_uarg_tail_zero()

2019-10-15 Thread Alexei Starovoitov
On Wed, Oct 16, 2019 at 05:44:30AM +0200, Christian Brauner wrote: > In v5.4-rc2 we added a new helper (cf. [1]) check_zeroed_user() which > does what bpf_check_uarg_tail_zero() is doing generically. We're slowly > switching such codepaths over to use check_zeroed_user() instead of > using their

Re: [PATCH] of-thermal: Disable polling when interrupt property is found in DT

2019-10-15 Thread Amit Kucheria
On Wed, Oct 16, 2019 at 10:27 AM Stephen Boyd wrote: > > Quoting Amit Kucheria (2019-10-15 16:13:16) > > Currently, in order to enable interrupt-only mode, one must set > > polling-delay-passive and polling-delay properties in the DT to 0, > > otherwise the thermal framework will continue to

Re: [PATCH 1/2] dt-bindings: qcom: Add SC7180 bindings

2019-10-15 Thread Vinod Koul
On 15-10-19, 16:03, Rajendra Nayak wrote: > Add a SoC string 'sc7180' for the qualcomm SC7180 SoC. > Also add a new board type 'idp' Reviewed-by: Vinod Koul > > Signed-off-by: Rajendra Nayak > --- > Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++ > 1 file changed, 2 insertions(+) >

Re: [PATCH v1 07/17] cpufreq: tegra20: Use generic cpufreq-dt driver (Tegra30 supported now)

2019-10-15 Thread Viresh Kumar
On 16-10-19, 00:16, Dmitry Osipenko wrote: > Re-parenting to intermediate clock is supported now by the clock driver > and thus there is no need in a customized CPUFreq driver, all that code > is common for both Tegra20 and Tegra30. The available CPU freqs are now > specified in device-tree in a

[PATCH 1/2] kbuild: reduce KBUILD_SINGLE_TARGETS as descending into subdirectories

2019-10-15 Thread Masahiro Yamada
KBUILD_SINGLE_TARGETS does not need to contain all the targets. Change it to keep track the targets only from the current directory and its subdirectories. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 2/2] kbuild: make target builds much faster

2019-10-15 Thread Masahiro Yamada
Since commit 394053f4a4b3 ("kbuild: make single targets work more correctly"), building single targets is really slow. Speed it up by not descending into unrelated directories. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

linux-next: Tree for Oct 16

2019-10-15 Thread Stephen Rothwell
Hi all, Changes since 20191015: New tree: cel The pm tree lost its build failure. The drm-misc tree gained a semantic conflict against the amdgpu tree. The sound-asoc tree gained a conflict against the sound tree. The devicetree tree gained a conflict against Linus' tree. The drivers-x86

Re: [Outreachy kernel] [PATCH] staging: vc04_services: fix line over 80 characters checks warning

2019-10-15 Thread Julia Lawall
> #ifndef VCHI_BULK_GRANULARITY > # if __VCCOREVER__ >= 0x0400 > -# define VCHI_BULK_GRANULARITY 32 // Allows for the need to do cache > cleans > +#define VCHI_BULK_GRANULARITY 32 // Allows for the need of cache cleans > # else > # define VCHI_BULK_GRANULARITY 16 > #

Re: [PATCH v1 06/17] dt-bindings: cpufreq: Add binding for NVIDIA Tegra20/30

2019-10-15 Thread Viresh Kumar
On 16-10-19, 00:16, Dmitry Osipenko wrote: > Add device-tree binding that describes CPU frequency-scaling hardware > found on NVIDIA Tegra20/30 SoCs. > > Signed-off-by: Dmitry Osipenko > --- > .../cpufreq/nvidia,tegra20-cpufreq.txt| 56 +++ > 1 file changed, 56

[PATCH] kbuild: remove unneeded variable, single-all

2019-10-15 Thread Masahiro Yamada
When single-build is set, everything in $(MAKECMDGOALS) is a single target. You can use $(MAKECMDGOALS) to list out the single targets. Signed-off-by: Masahiro Yamada --- Makefile | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index

Re: [PATCH 09/12] iomap: lift the xfs writeback code to iomap

2019-10-15 Thread Darrick J. Wong
On Wed, Oct 16, 2019 at 09:07:21AM +1100, Dave Chinner wrote: > On Tue, Oct 15, 2019 at 05:43:42PM +0200, Christoph Hellwig wrote: > > Take the xfs writeback code and move it to fs/iomap. A new structure > > with three methods is added as the abstraction from the generic writeback > > code to the

Re: [PATCH 22/34] xen: Use CONFIG_PREEMPTION

2019-10-15 Thread Jürgen Groß
On 15.10.19 21:18, Sebastian Andrzej Siewior wrote: From: Thomas Gleixner CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. Both PREEMPT and PREEMPT_RT require the same functionality which today depends on CONFIG_PREEMPT. Switch the preempt anand xen-ops code over to

Re: [PATCH] dmaengine: axi-dmac: simple device_config operation implemented

2019-10-15 Thread Vinod Koul
On 15-10-19, 23:06, Lars-Peter Clausen wrote: > >> This DMA controller is a bit special. > >> It gets synthesized in FPGA, so the configuration is fixed and cannot be > >> changed at runtime. Maybe later we would allow/implement this > >> functionality, but this is a question for my HDL

Re: [PATCH 0/2] soundwire: Kconfig/build improvements

2019-10-15 Thread Vinod Koul
On 16-09-19, 13:57, Pierre-Louis Bossart wrote: > The Intel kbuild test reported issues with COMPILE_TEST or > cross-compilation when SOF is enabled, fix. This has no functional > impact. Applied, thanks -- ~Vinod

Re: [PATCH v2] ftrace: Introduce PERMANENT ftrace_ops flag

2019-10-15 Thread Kamalesh Babulal
On 10/14/19 4:29 PM, Miroslav Benes wrote: > Livepatch uses ftrace for redirection to new patched functions. It means > that if ftrace is disabled, all live patched functions are disabled as > well. Toggling global 'ftrace_enabled' sysctl thus affect it directly. > It is not a problem per se,

Re: [PATCH 03/34] powerpc: Use CONFIG_PREEMPTION

2019-10-15 Thread Christophe Leroy
Le 15/10/2019 à 21:17, Sebastian Andrzej Siewior a écrit : From: Thomas Gleixner CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. Both PREEMPT and PREEMPT_RT require the same functionality which today depends on CONFIG_PREEMPT. Switch the entry code over to use

Re: [PATCH] of-thermal: Disable polling when interrupt property is found in DT

2019-10-15 Thread Stephen Boyd
Quoting Amit Kucheria (2019-10-15 16:13:16) > Currently, in order to enable interrupt-only mode, one must set > polling-delay-passive and polling-delay properties in the DT to 0, > otherwise the thermal framework will continue to setup a periodic timers > to monitor the thermal zones. > > Change

RE: [PATCH V3 1/7] mdev: class id support

2019-10-15 Thread Parav Pandit
> -Original Message- > From: Jason Wang > Sent: Friday, October 11, 2019 3:16 AM > To: k...@vger.kernel.org; linux-s...@vger.kernel.org; linux- > ker...@vger.kernel.org; dri-de...@lists.freedesktop.org; intel- > g...@lists.freedesktop.org; intel-gvt-...@lists.freedesktop.org; >

Re: [PATCH RFC v1 1/2] vhost: option to fetch descriptors through an independent struct

2019-10-15 Thread Jason Wang
On 2019/10/16 上午4:20, Michael S. Tsirkin wrote: On Mon, Oct 14, 2019 at 09:43:25AM +0800, Jason Wang wrote: On 2019/10/13 上午4:27, Michael S. Tsirkin wrote: On Sat, Oct 12, 2019 at 03:28:49PM +0800, Jason Wang wrote: On 2019/10/11 下午9:45, Michael S. Tsirkin wrote: The idea is to support

RE: [PATCH 2/2] usb: cdns3: gadget: Fix full-speed mode

2019-10-15 Thread Pawel Laszczak
>On 19-10-07 15:16:01, Roger Quadros wrote: >> We need to disable USB3 PHY for full-speed mode else >> gadget mode is broken. >> >> Signed-off-by: Roger Quadros >> Signed-off-by: Sekhar Nori >> --- >> drivers/usb/cdns3/gadget.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git

[PATCH v5 5/5] locking/qspinlock: Introduce the shuffle reduction optimization into CNA

2019-10-15 Thread Alex Kogan
This optimization reduces the probability threads will be shuffled between the main and secondary queues when the secondary queue is empty. It is helpful when the lock is only lightly contended. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare --- kernel/locking/qspinlock_cna.h | 30

[PATCH v5 0/5] Add NUMA-awareness to qspinlock

2019-10-15 Thread Alex Kogan
Changes from v4: - Switch to a deterministic bound on the number of intra-node handoffs, as suggested by Longman. - Scan the main queue after acquiring the MCS lock and before acquiring the spinlock (pre-scan), as suggested by Longman. If no thread is found in pre-scan, try

[PATCH v5 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-10-15 Thread Alex Kogan
In CNA, spinning threads are organized in two queues, a main queue for threads running on the same node as the current lock holder, and a secondary queue for threads running on other nodes. After acquiring the MCS lock and before acquiring the spinlock, the lock holder scans the main queue looking

[PATCH v5 4/5] locking/qspinlock: Introduce starvation avoidance into CNA

2019-10-15 Thread Alex Kogan
Keep track of the number of intra-node lock handoffs, and force inter-node handoff once this number reaches a preset threshold. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare --- kernel/locking/qspinlock.c | 3 +++ kernel/locking/qspinlock_cna.h | 30 +++---

[PATCH v5 1/5] locking/qspinlock: Rename mcs lock/unlock macros and make them more generic

2019-10-15 Thread Alex Kogan
The mcs unlock macro (arch_mcs_pass_lock) should accept the value to be stored into the lock argument as another argument. This allows using the same macro in cases where the value to be stored when passing the lock is different from 1. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare ---

RE: [PATCH 1/2] usb: cdns3: fix cdns3_core_init_role()

2019-10-15 Thread Pawel Laszczak
Hi Roger > >At startup we should trigger the HW state machine >only if it is OTG mode. Otherwise we should just >start the respective role. > >Initialize idle role by default. If we don't do this then >cdns3_idle_role_stop() is not called when switching to >host/device role and so lane switch

[PATCH v5 2/5] locking/qspinlock: Refactor the qspinlock slow path

2019-10-15 Thread Alex Kogan
Move some of the code manipulating the spin lock into separate functions. This would allow easier integration of alternative ways to manipulate that lock. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare --- kernel/locking/qspinlock.c | 38 -- 1 file

Re: [PATCH 2/7] rcu: fix tracepoint string when RCU CPU kthread runs

2019-10-15 Thread Lai Jiangshan
On 2019/10/16 11:38 上午, Paul E. McKenney wrote: On Tue, Oct 15, 2019 at 10:23:57AM +, Lai Jiangshan wrote: "rcu_wait" is incorrct here, use "rcu_run" instead. Signed-off-by: Lai Jiangshan Signed-off-by: Lai Jiangshan --- kernel/rcu/tree.c | 4 ++-- 1 file changed, 2 insertions(+),

[v3,1/2] dt-bindings: i2c: support property idle-state

2019-10-15 Thread Biwen Li
This supports property idle-state Signed-off-by: Biwen Li --- Change in v3: - update subject and description - add some information for property idle-state Change in v2: - update subject and description - add property idle-state

[v3,2/2] i2c: mux: pca954x: support property idle-state

2019-10-15 Thread Biwen Li
This supports property idle-state Signed-off-by: Biwen Li --- Change in v3: - update subject and description - add a helper function pca954x_calculate_chan() Change in v2: - update subject and description - add property idle-state

Re: [PATCH 27/34] rcu: Use CONFIG_PREEMPTION where appropriate

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 09:18:14PM +0200, Sebastian Andrzej Siewior wrote: > The config option `CONFIG_PREEMPT' is used for the preemption model > "Low-Latency Desktop". The config option `CONFIG_PREEMPTION' is enabled > when kernel preemption is enabled which is true for the preemption model >

Re: [PATCH] rcu: move rcu_{expedited,normal} definitions into rcupdate.h

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 02:48:22PM +0100, Ben Dooks wrote: > Move the rcu_{expedited,normal} definitions into rcupdate.h > to make sure they are in sync, and avoid the following > warning from sparse: > > kernel/ksysfs.c:150:5: warning: symbol 'rcu_expedited' was not declared. > Should it be

Re: [PATCH] rcu: rcu_segcblist.c make undeclared items static

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 11:55:24AM +0100, Ben Dooks wrote: > The following are not used outside the unit they are > declared in, so make them static to avoid the following > sparse warnings: > > kernel/rcu/rcu_segcblist.c:91:6: warning: symbol 'rcu_segcblist_set_len' was > not declared. Should

Re: [PATCH] net: usb: sr9800: fix uninitialized local variable

2019-10-15 Thread David Miller
From: Valentin Vidic Date: Tue, 15 Oct 2019 22:20:20 +0200 > Make sure res does not contain random value if the call to > sr_read_cmd fails for some reason. > > Reported-by: syzbot+f1842130bbcfb335b...@syzkaller.appspotmail.com > Signed-off-by: Valentin Vidic Applied. But often in situation

Re: [PATCH net] net: bcmgenet: Fix RGMII_MODE_EN value for GENET v1/2/3

2019-10-15 Thread David Miller
From: Florian Fainelli Date: Tue, 15 Oct 2019 10:45:47 -0700 > The RGMII_MODE_EN bit value was 0 for GENET versions 1 through 3, and > became 6 for GENET v4 and above, account for that difference. > > Fixes: aa09677cba42 ("net: bcmgenet: add MDIO routines") > Signed-off-by: Florian Fainelli

Re: [PATCH net-next] net: bcmgenet: Add a shutdown callback

2019-10-15 Thread David Miller
From: Florian Fainelli Date: Tue, 15 Oct 2019 10:36:24 -0700 > Make sure that we completely quiesce the network device, including its > DMA to avoid having it continue to receive packets while there is no > software alive to service those. > > Signed-off-by: Florian Fainelli Applied.

Re: [PATCH] net: stmmac: make tc_flow_parsers static

2019-10-15 Thread David Miller
From: "Ben Dooks (Codethink)" Date: Tue, 15 Oct 2019 17:17:48 +0100 > The tc_flow_parsers is not used outside of the driver, so > make it static to avoid the following sparse warning: > > drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:516:3: warning: symbol > 'tc_flow_parsers' was not

Re: [PATCH] davinci_cpdma: make cpdma_chan_split_pool static

2019-10-15 Thread David Miller
From: "Ben Dooks (Codethink)" Date: Tue, 15 Oct 2019 17:15:58 +0100 > The cpdma_chan_split_pool() function is not used outside of > the driver, so make it static to avoid the following sparse > warning: > > drivers/net/ethernet/ti/davinci_cpdma.c:725:5: warning: symbol >

Re: [PATCH] vsock/virtio: remove unused 'work' field from 'struct virtio_vsock_pkt'

2019-10-15 Thread David Miller
From: Stefano Garzarella Date: Tue, 15 Oct 2019 17:00:51 +0200 > The 'work' field was introduced with commit 06a8fc78367d0 > ("VSOCK: Introduce virtio_vsock_common.ko") > but it is never used in the code, so we can remove it to save > memory allocated in the per-packet 'struct virtio_vsock_pkt'

Re: [PATCH 6/7] rcu: rename some CONFIG_PREEMPTION to CONFIG_PREEMPT_RCU

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 10:28:48AM +, Lai Jiangshan wrote: > CONFIG_PREEMPTION and CONFIG_PREEMPT_RCU are always identical, > but some code depends on CONFIG_PREEMPTION to access to > rcu_preempt functionalitis. This patch changes CONFIG_PREEMPTION > to CONFIG_PREEMPT_RCU in these cases. > >

RE: [PATCH v5 1/6] psci: Export psci_ops.conduit symbol as modules will use it.

2019-10-15 Thread Jianyong Wu (Arm Technology China)
Hi Mark, > -Original Message- > From: Mark Rutland > Sent: Wednesday, October 16, 2019 1:25 AM > To: Jianyong Wu (Arm Technology China) > Cc: net...@vger.kernel.org; yangbo...@nxp.com; john.stu...@linaro.org; > t...@linutronix.de; pbonz...@redhat.com; sean.j.christopher...@intel.com; >

Re: [PATCH net] net: i82596: fix dma_alloc_attr for sni_82596

2019-10-15 Thread David Miller
From: Thomas Bogendoerfer Date: Tue, 15 Oct 2019 16:42:45 +0200 > Commit 7f683b920479 ("i825xx: switch to switch to dma_alloc_attrs") > switched dma allocation over to dma_alloc_attr, but didn't convert > the SNI part to request consistent DMA memory. This broke sni_82596 > since driver doesn't

Re: [PATCH] usb: typec: Add sysfs node to show cc orientation

2019-10-15 Thread Randy Dunlap
On 10/15/19 8:43 PM, pumahsu wrote: > Export the Type-C cc orientation so that user space can > get this information. > > Signed-off-by: pumahsu Hi, what the * is cc orientation? > --- > Documentation/ABI/testing/sysfs-class-typec | 7 +++ > drivers/usb/typec/class.c |

Re: [PATCH 4/7] rcu: remove the declaration of call_rcu() in tree.h

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 10:28:46AM +, Lai Jiangshan wrote: > call_rcu() is external RCU API declared in include/linux/, > and doesn't need to be (re-)declared in internal files again. > > Signed-off-by: Lai Jiangshan > Signed-off-by: Lai Jiangshan Good catch! Queued for testing and

[PATCH v3 1/3] bpf: use check_zeroed_user() in bpf_check_uarg_tail_zero()

2019-10-15 Thread Christian Brauner
In v5.4-rc2 we added a new helper (cf. [1]) check_zeroed_user() which does what bpf_check_uarg_tail_zero() is doing generically. We're slowly switching such codepaths over to use check_zeroed_user() instead of using their own hand-rolled version. [1]: f5a1a536fa14 ("lib: introduce

[PATCH v3 3/3] bpf: use copy_struct_from_user() in bpf() syscall

2019-10-15 Thread Christian Brauner
In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). This helper is intended for all codepaths that copy structs from userspace that are versioned by size. The bpf() syscall does exactly what copy_struct_from_user() is doing. Note that copy_struct_from_user() is calling min()

[PATCH v3 0/3] bpf: switch to new usercopy helpers

2019-10-15 Thread Christian Brauner
Hey everyone, In v5.4-rc2 we added two new helpers check_zeroed_user() and copy_struct_from_user() including selftests (cf. [1]). It is a generic interface designed to copy a struct from userspace. The helpers will be especially useful for structs versioned by size of which we have quite a few.

[PATCH v3 2/3] bpf: use copy_struct_from_user() in bpf_prog_get_info_by_fd()

2019-10-15 Thread Christian Brauner
In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). This helper is intended for all codepaths that copy structs from userspace that are versioned by size. bpf_prog_get_info_by_fd() does exactly what copy_struct_from_user() is doing. Note that copy_struct_from_user() is calling

[PATCH] usb: typec: Add sysfs node to show cc orientation

2019-10-15 Thread pumahsu
Export the Type-C cc orientation so that user space can get this information. Signed-off-by: pumahsu --- Documentation/ABI/testing/sysfs-class-typec | 7 +++ drivers/usb/typec/class.c | 11 +++ 2 files changed, 18 insertions(+) diff --git

Re: [PATCH 3/7] rcu: trace_rcu_utilization() paired

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 10:28:45AM +, Lai Jiangshan wrote: > The notations include "Start" and "End", it is better > when there are paired. > > Signed-off-by: Lai Jiangshan > Signed-off-by: Lai Jiangshan > --- > kernel/rcu/tree.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >

Re: [PATCH 13/14] cpufreq: Use vtime aware kcpustat accessor to fetch CPUTIME_SYSTEM

2019-10-15 Thread Viresh Kumar
On 16-10-19, 04:56, Frederic Weisbecker wrote: > Now that we have a vtime safe kcpustat accessor for CPUTIME_SYSTEM, use > it to start fixing frozen kcpustat values on nohz_full CPUs. > > Reported-by: Yauheni Kaliuta > Signed-off-by: Frederic Weisbecker > Cc: Rafael J. Wysocki > Cc: Viresh

Re: [PATCH] ACPI: processor: Avoid NULL pointer dereferences at init time

2019-10-15 Thread Viresh Kumar
On 15-10-19, 19:35, Rafael J. Wysocki wrote: > rom: Rafael J. Wysocki > > If there are neither processor objects nor processor device objects > in the ACPI tables, the per-CPU processors table will not be > initialized and attempting to dereference pointers from there will > cause the kernel to

Re: [PATCH 2/7] rcu: fix tracepoint string when RCU CPU kthread runs

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 10:23:57AM +, Lai Jiangshan wrote: > "rcu_wait" is incorrct here, use "rcu_run" instead. > > Signed-off-by: Lai Jiangshan > Signed-off-by: Lai Jiangshan > --- > kernel/rcu/tree.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

[RFC][PATCH v3 00/11] HiKey960 USB support

2019-10-15 Thread John Stultz
I'm just trying to pick up a patch series submitted previously by Yu Chen to get HiKey960 dev-board's USB functionality working. The current full patchset can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=305b332b46901c82d762e44d2ef8c96107a0c94e Previously I

Re: [PATCH 1/7] rcu: fix incorrect conditional compilation

2019-10-15 Thread Paul E. McKenney
On Tue, Oct 15, 2019 at 10:23:56AM +, Lai Jiangshan wrote: > DO NOT pick it to stable tree. > (Since the title has "fix", this statement may help stop > AI pick it to stable tree) > > The tokens SRCU and TINY_RCU are not defined by any configurations, > they should be CONFIG_SRCU and

[RFC][PATCH v3 03/11] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2019-10-15 Thread John Stultz
From: Yu Chen It needs more time for the device controller to clear the CmdAct of DEPCMD on Hisilicon Kirin Soc. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de

[RFC][PATCH v3 05/11] usb: dwc3: Rework clock initialization to be more flexible

2019-10-15 Thread John Stultz
The dwc3 core binding specifies three clocks: ref, bus_early, and suspend which are all controlled in the driver together. However some variants of the hardware my not have all three clks So this patch reworks the reading of the clks from the dts to use devm_clk_bulk_get_all() will will fetch

[RFC][PATCH v3 08/11] dt-bindings: usb: generic: Add role-switch-default-host binding

2019-10-15 Thread John Stultz
Add binding to configure the default role the controller assumes is host mode when the usb role is USB_ROLE_NONE. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de

[RFC][PATCH v3 06/11] usb: dwc3: Rework resets initialization to be more flexible

2019-10-15 Thread John Stultz
The dwc3 core binding specifies one reset. However some variants of the hardware my not have more. So this patch reworks the reading of the resets to fetch all the resets specified in the dts together. This patch was reccomended by Rob Herring as an alternative to creating multiple bindings

[PATCH v4 4/7] iommu/mediatek: Delete the leaf in the tlb_flush

2019-10-15 Thread Yong Wu
In our tlb range flush, we don't care the "leaf". Remove it to simplify the code. no functional change. "granule" also is unnecessary for us, Keep it satisfy the format of tlb_flush_walk. Signed-off-by: Yong Wu Reviewed-by: Robin Murphy --- drivers/iommu/mtk_iommu.c | 21 -

[RFC][PATCH v3 11/11] misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960

2019-10-15 Thread John Stultz
From: Yu Chen The HiKey960 has a fairly complex USB configuration due to it needing to support a USB-C port for host/device mode and multiple USB-A ports in host mode using a single USB controller. See schematics here:

[RFC][PATCH v3 02/11] usb: dwc3: Execute GCTL Core Soft Reset while switch modes

2019-10-15 Thread John Stultz
From: Yu Chen On the HiKey960, we need to do a GCTL soft reset when switching modes. Jack Pham also noted that in the Synopsys databook it mentions performing a GCTL CoreSoftReset when changing the PrtCapDir between device & host modes. So this patch always does a GCTL Core Soft Reset when

[RFC][PATCH v3 01/11] dt-bindings: usb: rt1711h: Add connector bindings

2019-10-15 Thread John Stultz
Add connector binding documentation for Richtek RT1711H Type-C chip driver It was noted by Rob Herring that the rt1711h binding docs doesn't include the connector binding. Thus this patch adds such documentation following the details in Documentation/devicetree/bindings/usb/typec-tcpci.txt Cc:

[PATCH v4 6/7] iommu/mediatek: Get rid of the pgtlock

2019-10-15 Thread Yong Wu
Now we have tlb_lock for the HW tlb flush, then pgtable code hasn't needed the external "pgtlock" for a while. this patch remove the "pgtlock". Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git

[RFC][PATCH v3 10/11] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2019-10-15 Thread John Stultz
From: Yu Chen This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey960 Board. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc:

[PATCH v4 2/7] iommu/mediatek: Add a new tlb_lock for tlb_flush

2019-10-15 Thread Yong Wu
The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API TLB sync") help move the tlb_sync of unmap from v7s into the iommu framework. It helps add a new function "mtk_iommu_iotlb_sync", But it lacked the lock, then it will cause the variable "tlb_flush_active" may be changed

[RFC][PATCH v3 09/11] usb: dwc3: Add host-mode as default support

2019-10-15 Thread John Stultz
Support configuring the default role the controller assumes as host mode when the usb role is USB_ROLE_NONE This patch was split out from a larger patch originally by Yu Chen Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose

[PATCH v4 5/7] iommu/mediatek: Move the tlb_sync into tlb_flush

2019-10-15 Thread Yong Wu
Right now, the tlb_add_flush_nosync and tlb_sync always appear together. we merge the two functions into one(also move the tlb_lock into the new function). No functional change. Signed-off-by: Chao Hao Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 45

[PATCH v4 3/7] iommu/mediatek: Use gather to achieve the tlb range flush

2019-10-15 Thread Yong Wu
Use the iommu_gather mechanism to achieve the tlb range flush. Gather the iova range in the "tlb_add_page", then flush the merged iova range in iotlb_sync. Suggested-by: Tomasz Figa Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 12 1 file changed, 8 insertions(+), 4

Re: [PATCH net-next v2] net: bcmgenet: Generate a random MAC if none is valid

2019-10-15 Thread David Miller
From: Florian Fainelli Date: Mon, 14 Oct 2019 14:20:00 -0700 > Instead of having a hard failure and stopping the driver's probe > routine, generate a random Ethernet MAC address to keep going. > > Signed-off-by: Florian Fainelli Applied to net-next, thank you.

[RFC][PATCH v3 04/11] dt-bindings: usb: dwc3: Allow clock list & resets to be more flexible

2019-10-15 Thread John Stultz
Rather then adding another device specific binding to support hikey960, Rob Herring suggested we expand the current dwc3 binding to allow for variable numbers of clocks and resets. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose

[RFC][PATCH v3 07/11] usb: dwc3: Registering a role switch in the DRD code.

2019-10-15 Thread John Stultz
From: Yu Chen The Type-C drivers use USB role switch API to inform the system about the negotiated data role, so registering a role switch in the DRD code in order to support platforms with USB Type-C connectors. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc:

Re: [PATCH v2] rtc: ds1685: add indirect access method and remove plat_read/plat_write

2019-10-15 Thread Joshua Kinard
On 10/14/2019 17:46, Thomas Bogendoerfer wrote: > SGI Octane (IP30) doesn't have RTC register directly mapped into CPU > address space, but accesses RTC registers with an address and data > register. This is now supported by additional access functions, which > are selected by a new field in

Re: [PATCH v2 0/3] bpf: switch to new usercopy helpers

2019-10-15 Thread Christian Brauner
On Tue, Oct 15, 2019 at 07:14:42PM -0700, Alexei Starovoitov wrote: > On Tue, Oct 15, 2019 at 5:41 PM Christian Brauner > wrote: > > > > Hey everyone, > > > > In v5.4-rc2 we added two new helpers check_zeroed_user() and > > copy_struct_from_user() including selftests (cf. [1]). It is a generic >

RE: [EXT] Re: [v2,2/2] i2c: mux: pca954x: add property idle-state

2019-10-15 Thread Biwen Li
> > On 2019-10-15 06:48, Biwen Li wrote: > > This adds property idle-state > > > > Signed-off-by: Biwen Li > > --- > > Change in v2: > > - update subject and description > > - add property idle-state > > > > drivers/i2c/muxes/i2c-mux-pca954x.c | 47 > > ++---

RE: [EXT] Re: [v2,1/2] dt-bindings: i2c: add property idle-state

2019-10-15 Thread Biwen Li
> > On 2019-10-15 06:48, Biwen Li wrote: > > This adds property idle-state > > > > Signed-off-by: Biwen Li > > --- > > Change in v2: > > - update subject and description > > - add property idle-state > > > > Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt | 1 + > > 1 file

Re: [PATCH V2] arm64: psci: Reduce waiting time of cpu_psci_cpu_kill()

2019-10-15 Thread Yunfeng Ye
On 2019/10/16 0:23, Will Deacon wrote: > Hi, > > On Sat, Sep 21, 2019 at 07:21:17PM +0800, Yunfeng Ye wrote: >> If psci_ops.affinity_info() fails, it will sleep 10ms, which will not >> take so long in the right case. Use usleep_range() instead of msleep(), >> reduce the waiting time, and give

RE: [PATCH v3] clk: imx7ulp: do not export out IMX7ULP_CLK_MIPI_PLL clock

2019-10-15 Thread Fancy Fang
Hi Anson, Please see my below comments. Best regards, Fancy Fang -Original Message- From: Anson Huang Sent: Tuesday, October 15, 2019 11:28 AM To: Fancy Fang ; sb...@kernel.org; shawn...@kernel.org Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org;

Re: [PATCH v2 0/3] net: phy: switch to using fwnode_gpiod_get_index

2019-10-15 Thread David Miller
From: Dmitry Torokhov Date: Mon, 14 Oct 2019 10:40:19 -0700 > This series switches phy drivers form using fwnode_get_named_gpiod() and > gpiod_get_from_of_node() that are scheduled to be removed in favor > of fwnode_gpiod_get_index() that behaves more like standard > gpiod_get_index() and will

Re: [PATCH v2] net: dsa: sja1105: Use the correct style for SPDX License Identifier

2019-10-15 Thread David Miller
From: Nishad Kamdar Date: Mon, 14 Oct 2019 21:51:20 +0530 > This patch corrects the SPDX License Identifier style > in header files related to Distributed Switch Architecture > drivers for NXP SJA1105 series Ethernet switch support. > It uses an expilict block comment for the SPDX License >

[PATCH -next v2] arm64: mm: Fix unused variable warning in zone_sizes_init

2019-10-15 Thread Nathan Chancellor
When building arm64 allnoconfig, CONFIG_ZONE_DMA and CONFIG_ZONE_DMA32 get disabled so there is a warning about max_dma being unused. ../arch/arm64/mm/init.c:215:16: warning: unused variable 'max_dma' [-Wunused-variable] unsigned long max_dma = min; ^ 1 warning

Re: About patch NFS: Fix O_DIRECT accounting of number of bytes read/written

2019-10-15 Thread Trond Myklebust
On Wed, 2019-10-16 at 01:00 +, Su, Yanjun wrote: > Hi trond, > Because My mail system cant receive nfs mail list’s mails, I reply > your patch here. > I have some question for the patch. > > > No. Basic O_DIRECT does not guarantee atomicity of requests, which > > is > > why we do not have

Re: [PATCH -next] arm64: mm: Fix unused variable warning in zone_sizes_init

2019-10-15 Thread Nathan Chancellor
On Wed, Oct 16, 2019 at 04:00:52AM +0100, Will Deacon wrote: > On Tue, Oct 15, 2019 at 03:43:04PM -0700, Nathan Chancellor wrote: > > When building arm64 allnoconfig, CONFIG_ZONE_DMA and CONFIG_ZONE_DMA32 > > get disabled so there is a warning about max_dma being unused. > > > >

[PATCH net-next] r8152: support request_firmware for RTL8153

2019-10-15 Thread Hayes Wang
This patch supports loading additional firmware file through request_firmware(). A firmware file may include a header followed by several blocks which have different types of firmware. Currently, the supported types are RTL_FW_END, RTL_FW_PLA, and RTL_FW_USB. The firmware is used to fix some

Re: [PATCH -next] arm64: mm: Fix unused variable warning in zone_sizes_init

2019-10-15 Thread Will Deacon
On Tue, Oct 15, 2019 at 03:43:04PM -0700, Nathan Chancellor wrote: > When building arm64 allnoconfig, CONFIG_ZONE_DMA and CONFIG_ZONE_DMA32 > get disabled so there is a warning about max_dma being unused. > > ../arch/arm64/mm/init.c:215:16: warning: unused variable 'max_dma' > [-Wunused-variable]

[PATCH 07/14] context_tracking: Introduce context_tracking_enabled_cpu()

2019-10-15 Thread Frederic Weisbecker
This allows us to check if a remote CPU runs context tracking (ie: is nohz_full). We'll need that to reliably support "nice" accounting on kcpustat. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar

[PATCH 04/14] context_tracking: Remove context_tracking_active()

2019-10-15 Thread Frederic Weisbecker
This function is a leftover from old removal or rename. We can drop it. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar --- include/linux/context_tracking_state.h | 1 - 1 file changed, 1

[PATCH 11/14] sched/kcpustat: Introduce vtime-aware kcpustat accessor for CPUTIME_SYSTEM

2019-10-15 Thread Frederic Weisbecker
Kcpustat is not correctly supported on nohz_full CPUs. The tick doesn't fire and the cputime therefore doesn't move forward. The issue has shown up after the vanishing of the remaining 1Hz which has made the stall visible. We are solving that with checking the task running on a CPU through RCU

[PATCH 06/14] context_tracking: Rename context_tracking_is_cpu_enabled() to context_tracking_enabled_this_cpu()

2019-10-15 Thread Frederic Weisbecker
Standardize the naming on top of the context_tracking_enabled_*() base. Also make it clear we are checking the context tracking state of the *current* CPU with this function. We'll need to add an API to check that state on remote CPUs as well, so we must disambiguate the naming. Signed-off-by:

[PATCH 12/14] procfs: Use vtime aware kcpustat accessor to fetch CPUTIME_SYSTEM

2019-10-15 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor for CPUTIME_SYSTEM, use it to start fixing frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li

[PATCH 09/14] sched/vtime: Introduce vtime_accounting_enabled_cpu()

2019-10-15 Thread Frederic Weisbecker
This allows us to check if a remote CPU runs vtime accounting (ie: is nohz_full). We'll need that to reliably support reading kcpustat on nohz_full CPUs. Also simplify a bit the condition in the local flavoured function while at it. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc:

[PATCH 08/14] sched/vtime: Rename vtime_accounting_cpu_enabled() to vtime_accounting_enabled_this_cpu()

2019-10-15 Thread Frederic Weisbecker
Standardize the naming on top of the vtime_accounting_enabled_*() base. Also make it clear we are checking the vtime state of the *current* CPU with this function. We'll need to add an API to check that state on remote CPUs as well, so we must disambiguate the naming. Signed-off-by: Frederic

[PATCH 14/14] leds: Use vtime aware kcpustat accessor to fetch CPUTIME_SYSTEM

2019-10-15 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor for CPUTIME_SYSTEM, use it to start fixing frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Jacek Anaszewski Cc: Pavel Machek Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel

[PATCH 13/14] cpufreq: Use vtime aware kcpustat accessor to fetch CPUTIME_SYSTEM

2019-10-15 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor for CPUTIME_SYSTEM, use it to start fixing frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Rafael J. Wysocki Cc: Viresh Kumar Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van

  1   2   3   4   5   6   7   8   9   10   >