[PATCH] staging: rtl8188eu: make efuse_power_switch() function static

2019-10-15 Thread Alexandru Ardelean
The `rtl8188eu` driver is built as a kmod in order to avoid symbol conflicts (at link-time) with other Realtek drivers. Internally, we use this driver as builtin [vs kmod], and we've identified the `efuse_power_switch()` symbol to be conflicting at link-time with the one from the `rtlwifi` driver.

Re: [PATCH v9 09/17] x86/split_lock: Handle #AC exception for split lock

2019-10-15 Thread Xiaoyao Li
On 9/26/2019 2:09 AM, Sean Christopherson wrote: On Wed, Jun 26, 2019 at 11:47:40PM +0200, Thomas Gleixner wrote: So only one of the CPUs will win the cmpxchg race, set te variable to 1 and warn, the other and any subsequent AC on any other CPU will not warn either. So you don't need WARN_ONCE()

Re: [PATCH] checkpatch: use patch subject when reading from stdin

2019-10-15 Thread Geert Uytterhoeven
Hi Joe, On Tue, Oct 15, 2019 at 7:24 PM Joe Perches wrote: > On Tue, 2019-10-15 at 18:40 +0200, Geert Uytterhoeven wrote: > > The advantage of formail over git-mailsplit is that the former doesn't > > create a bunch of files that need to be stored in a temporary place, > > and cleant up afterward

Re: [PATCH RFC 3/3] mtd: rawnand: Add support Macronix power down mode

2019-10-15 Thread masonccyang
Hi Miquel, > > > > > > > > + nand_select_target(chip, 0); > > > > > > > > > > On several NAND controllers there is no way to act on the CS line > > > > > without actually writing bytes to the NAND chip. So basically this > > > > > is very likely to not work. > > > > > > > > any other wa

Re: [PATCH v3] PCI: dwc: Add support to add GEN3 related equalization quirks

2019-10-15 Thread 'Christoph Hellwig'
On Tue, Oct 15, 2019 at 08:47:32PM +0530, Pankaj Dubey wrote: > OK, but do we think the current driver has only code which is being used by > some user? That is at least the intent of how we do kernel development. > At least I can see current driver has some features which is not being used > by

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-15 Thread Miroslav Benes
On Tue, 15 Oct 2019, Joe Lawrence wrote: > On 10/15/19 10:13 AM, Miroslav Benes wrote: > > Yes, it does. klp_module_coming() calls module_disable_ro() on all > > patching modules which patch the coming module in order to call > > apply_relocate_add(). New (patching) code for a module can be reloca

Re: imx6: i2c-transfer timeout issue after resume

2019-10-15 Thread Pintu Agarwal
On Fri, Oct 4, 2019 at 3:47 PM Pintu Agarwal wrote: > > Hi, > > On Sun, Sep 29, 2019 at 10:24 PM Pintu Agarwal wrote: > > > > > > > > On Mon, Sep 23, 2019 at 1:28 PM Pintu Agarwal > > > wrote: > > > > > > > > Dear Philipp, > > > > > > > > I have a iMX6dl custom board with custom Linux Kernel 4.

Re: [PATCH v5 4/8] mm: Add write-protect and clean utilities for address space ranges

2019-10-15 Thread VMware
On 10/10/19 4:17 PM, Peter Zijlstra wrote: On Thu, Oct 10, 2019 at 03:24:47PM +0200, Thomas Hellström (VMware) wrote: On 10/10/19 3:05 PM, Peter Zijlstra wrote: On Thu, Oct 10, 2019 at 02:43:10PM +0200, Thomas Hellström (VMware) wrote: +/** + * wp_shared_mapping_range - Write-protect all ptes

[PATCH] tools/lib/traceevent, perf tools: Handle %pU format correctly

2019-10-15 Thread Qu Wenruo
[BUG] For btrfs related events, there is a field for fsid, but perf never parse it correctly. # perf trace -e btrfS:qgroup_meta_convert xfs_io -f -c "pwrite 0 4k" \ /mnt/btrfs/file1 0.000 xfs_io/77915 btrfs:qgroup_meta_reserve:(nil)U: refroot=5(FS_TREE) type=0x0 diff=2

RE: [PATCH -next] usb: typec: add dependency for TYPEC_HD3SS3220

2019-10-15 Thread Biju Das
This patch is present in both usb-next and Linux-next. https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?h=usb-next&id=da4b5d18dd949abdda7c8ea76c9483b5edd49616 https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20191016&id=da4b5d18dd949abdda7

Re: [PATCH] PCI: sysfs: remove pci_bridge_groups and pcie_dev_groups

2019-10-15 Thread Christoph Hellwig
On Tue, Oct 15, 2019 at 03:00:59PM +0100, Ben Dooks wrote: > The pci_bridge_groups and pcie_dev_groups objects are > not exported and not used at-all, so remove them to > fix the following warnings from sparse: > > drivers/pci/pci-sysfs.c:1546:30: warning: symbol 'pci_bridge_groups' was not > dec

Re: [PATCH RFC v2 06/14] dt-bindings/interrupt-controller: pdc: add SPI config register

2019-10-15 Thread Stephen Boyd
Quoting Stephen Boyd (2019-09-30 15:33:01) > Quoting Lina Iyer (2019-09-13 14:59:14) > > In addition to configuring the PDC, additional registers that interface > > the GIC have to be configured to match the GPIO type. The registers on > > some QCOM SoCs are access restricted, while on other SoCs a

Re: [PATCH] hid: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()

2019-10-15 Thread Jiri Kosina
On Wed, 16 Oct 2019, Zhang Lixu wrote: > When allocating tx ring buffers failed, should free tx buffers, not rx > buffers. > > Signed-off-by: Zhang Lixu > Acked-by: Srinivas Pandruvada > --- > drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-15 Thread Uwe Kleine-König
On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > Because period and duty cycle are defined as ints with units of > nanoseconds, the maximum time duration that can be set is limited to > ~2.147 seconds. Change their definitions to u64 so that higher durations > may be set. > >

Re: clk: rockchip: Checking a kmemdup() call in rockchip_clk_register_pll()

2019-10-15 Thread Markus Elfring
>> Would you like to adjust such exception handling another bit? > > Nope. > > The big difference is that clocks rely heavily on their names to establish > the clock tree parentship. So the PLL cannot work without the name This error situation got a specific reaction. > but can provide some mean

[PATCH] scripts : prune-kernel : prune kernels generalized way

2019-10-15 Thread Bhaskar Chowdhury
This patch will remove old kernel from the system in a selective way. Signed-off-by: Bhaskar Chowdhury --- Thanks, a bunch to Randy for the hand holding . :) scripts/prune-kernel | 71 1 file changed, 59 insertions(+), 12 deletions(-) diff --git a/s

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

2019-10-15 Thread Bjorn Andersson
On Tue 08 Oct 17:14 PDT 2019, 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 built

Re: [PATCH] arm64: defconfig: Enable Qualcomm SPI and QSPI controller

2019-10-15 Thread Vinod Koul
On 11-10-19, 21:18, Bjorn Andersson wrote: > Enable the drivers for GENI SPI and QSPI controllers found on the > Qualcomm SDM845 platform, among others. lgtm, tested on db845c Reviewed-by: Vinod Koul Tested-by: Vinod Koul > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/configs/defconf

Re: [PATCH] arm64: defconfig: Enable Qualcomm socinfo driver

2019-10-15 Thread Vinod Koul
On 11-10-19, 16:48, Bjorn Andersson wrote: > The Qualcomm socinfo driver provides SoC information to userspace using > the standard soc interface as well as a number of debugfs entries. > > Enable this to allow certain user space tools to acquire this > information, as well as getting developers a

Re: [PATCH] arm64: defconfig: Enable Qualcomm CPUfreq HW driver

2019-10-15 Thread Vinod Koul
On 11-10-19, 16:44, Bjorn Andersson wrote: > The Qualcomm CPUfreq HW provides CPU voltage and frequency scaling on > many modern Qualcomm SoCs. Enable the driver for this hardware block to > enable this functionality on the SDM845 platform. lgtm, tested on db845c Reviewed-by: Vinod Koul Tested-b

Re: [RFC PATCH] mm: Fix a huge pud insertion race during faulting

2019-10-15 Thread VMware
Hi, Dan, On 10/16/19 3:44 AM, Dan Williams wrote: On Tue, Oct 15, 2019 at 3:06 AM Kirill A. Shutemov wrote: On Tue, Oct 08, 2019 at 11:37:11AM +0200, Thomas Hellström (VMware) wrote: From: Thomas Hellstrom A huge pud page can theoretically be faulted in racing with pmd_alloc() in __handle_m

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 the

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 as

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 boards

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 copy_str

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 alphabetic

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 tegra20-trimslic

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 ow

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 setup

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 fo

[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 a/scripts

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

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 insertions

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

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 us

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 colleagues

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

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 CONF

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 t

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; > kwankh..

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 mult

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 a/drivers/

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

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

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

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 mech

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

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(+), 2

[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 Documentation/devicetree/bindings

[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 drivers/i2c/muxes/i2c-mux-pca95

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 > `CO

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 stat

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 it

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 l

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 Ap

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 declared

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 > 'cpdma_chan_split_pool'

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

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; > m

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 d

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

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

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

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

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

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

[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 a/Documentation/ABI/testi

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 Kuma

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 c

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 a/kernel/rcu

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

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

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

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

[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: https://github.com/96boards/documentation/raw/master/consumer/hikey/hikey9

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

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

[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 a/driv

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

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

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

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

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 platf

  1   2   3   4   5   6   7   8   9   10   >