Re: RISC-V nommu support v2

2019-06-30 Thread Christoph Hellwig
Palmer, Paul, any comments? Let me know if you think it is too late for 5.3 for the full series, then I can at least feed the mm bits to Andrew. On Mon, Jun 24, 2019 at 07:42:54AM +0200, Christoph Hellwig wrote: > Hi all, > > below is a series to support nommu mode on RISC-V. For now this seri

Re: [PATCH 01/10] staging/rtl8723bs/hal: fix comparison to true/false is error prone

2019-06-30 Thread Greg Kroah-Hartman
On Sat, Jun 29, 2019 at 03:49:09PM +0530, Hariprasad Kelam wrote: > fix below issues reported by checkpatch > > CHECK: Using comparison to false is error prone > CHECK: Using comparison to true is error prone > > Signed-off-by: Hariprasad Kelam > --- > drivers/staging/rtl8723bs/hal/hal_intf.c |

Re: [PATCH v4 05/15] Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.

2019-06-30 Thread Wu Hao
On Fri, Jun 28, 2019 at 10:13:33AM +0800, Wu Hao wrote: > On Thu, Jun 27, 2019 at 06:12:56PM -0700, Moritz Fischer wrote: > > Hi Wu, > > > > On Thu, Jun 27, 2019 at 12:44:45PM +0800, Wu Hao wrote: > > > This patch adds virtualization support description for DFL based > > > FPGA devices (based on P

Re: [PATCH v8 6/8] cgroup/cpuset: Change cpuset_rwsem and hotplug lock order

2019-06-30 Thread Juri Lelli
Hi, On 28/06/19 15:03, Peter Zijlstra wrote: > On Fri, Jun 28, 2019 at 10:06:16AM +0200, Juri Lelli wrote: > > cpuset_rwsem is going to be acquired from sched_setscheduler() with a > > following patch. There are however paths (e.g., spawn_ksoftirqd) in > > which sched_scheduler() is eventually cal

Re: [PATCH v2] Staging: most: fix coding style issues

2019-06-30 Thread Greg KH
On Sun, Jun 30, 2019 at 08:27:26AM -0700, Gabriel Beauchamp wrote: > This is a patch for the core.[ch] files that fixes up warnings > found with the checkpatch.pl tool. > > Signed-off-by: Gabriel Beauchamp Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that

[PATCH v2 05/15] Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.

2019-06-30 Thread Wu Hao
This patch adds virtualization support description for DFL based FPGA devices (based on PCIe SRIOV), and introductions to new interfaces added by new dfl private feature drivers. [m...@kernel.org: Fixed up to make it work with new reStructuredText docs] Signed-off-by: Xu Yilun Signed-off-by: Wu H

Re: [PATCH 11/12] iomap: move the xfs writeback code to iomap.c

2019-06-30 Thread Christoph Hellwig
On Mon, Jul 01, 2019 at 10:08:59AM +1000, Dave Chinner wrote: > > Why do you assume you have to test it? Back when we shared > > generic_file_read with everyone you also didn't test odd change to > > it with every possible fs. > > I'm not sure what function you are referring to here. Can you > cl

[PATCH] dt-bindings: i3c: cdns: Use correct cells for I2C device

2019-06-30 Thread qii.wang
From: Qii Wang I2C device reg should be "reg = <0x52 0x0 0x10>;" Signed-off-by: Qii Wang --- .../devicetree/bindings/i3c/cdns,i3c-master.txt|2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt b/Documentation/devi

[PATCH 1/4] kvm: x86: Add CONFIG_KVM_DEBUG

2019-06-30 Thread Yi Wang
There are some *_debug functions in KVM, it may be better to introduce CONFIG_DEBUG_KVM to replace the *_debug macro, which can avoid bloating and slowing KVM, as Sean suggested. Signed-off-by: Yi Wang --- arch/x86/kvm/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/

Re: [RFC PATCH 3/5] soundwire: add module_sdw_driver helper macro

2019-06-30 Thread Vinod Koul
On 11-06-19, 11:40, Srinivas Kandagatla wrote: > This Helper macro is for SoundWire drivers which do not do anything special in > module init/exit. This eliminates a lot of boilerplate. Each module may only > use this macro once, and calling it replaces module_init() and module_exit() Applied, tha

[PATCH 4/4] kvm: x86: convert TSC pr_debugs to be gated by CONFIG_KVM_DEBUG

2019-06-30 Thread Yi Wang
There are some pr_debug in TSC code, which may affect performance, so it may make sense to wrap them using a new macro tsc_debug which takes effect only when CONFIG_KVM_DEBUG is defined. Signed-off-by: Yi Wang --- arch/x86/kvm/x86.c | 18 -- 1 file changed, 12 insertions(+), 6 de

[PATCH 2/4] kvm: x86: allow set apic and ioapic debug dynamically

2019-06-30 Thread Yi Wang
There are two *_debug() macros in kvm apic source file: - ioapic_debug, which is disable using #if 0 - apic_debug, which is commented Maybe it's better to control these two macros using CONFIG_KVM_DEBUG, which can be set in make menuconfig. Signed-off-by: Yi Wang --- arch/x86/kvm/ioapic.c | 2 +

[PATCH 3/4] kvm: x86: replace MMU_DEBUG with CONFIG_KVM_DEBUG

2019-06-30 Thread Yi Wang
As CONFIG_KVM_DEBUG has been introduced in the former patch, it's better to replace MMU_DEBUG with CONFIG_KVM_DEBUG. Signed-off-by: Yi Wang --- arch/x86/kvm/mmu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 1e9ba81..d5421

Re: [GIT PULL] Hisilicon fixes for v5.2

2019-06-30 Thread Wei Xu
Hi Olof, On 2019/6/27 10:19, Olof Johansson wrote: On Tue, Jun 25, 2019 at 02:31:26PM +0100, John Garry wrote: On 25/06/2019 14:03, Olof Johansson wrote: are available in the Git repository at: git://github.com/hisilicon/linux-hisi.git tags/hisi-fixes-for-5.2 for you to fetch changes up t

[PATCH 0/4] kvm: x86: introduce CONFIG_KVM_DEBUG

2019-06-30 Thread Yi Wang
This series introduce CONFIG_KVM_DEBUG, using which we can make the invoking *_debug in KVM simly and uniform. FYI: the former discussion can been found in: https://www.spinics.net/lists/kvm/msg187026.html Yi Wang (4): kvm: x86: Add CONFIG_KVM_DEBUG kvm: x86: allow set apic and ioapic debug d

Re: [RFC PATCH 2/5] soundwire: core: add device tree support for slave devices

2019-06-30 Thread Vinod Koul
On 11-06-19, 11:40, Srinivas Kandagatla wrote: > This patch adds support to parsing device tree based > SoundWire slave devices. > > Signed-off-by: Srinivas Kandagatla > --- > drivers/soundwire/bus.c | 2 +- > drivers/soundwire/bus.h | 1 + > drivers/soundwire/slave.c | 54

[PATCH 06/22] mm/hmm: fix use after free with struct hmm in the mmu notifiers

2019-06-30 Thread Christoph Hellwig
From: Jason Gunthorpe mmu_notifier_unregister_no_release() is not a fence and the mmu_notifier system will continue to reference hmm->mn until the srcu grace period expires. Resulting in use after free races like this: CPU0 CPU1

[PATCH 10/22] mm/hmm: Remove duplicate condition test before wait_event_timeout

2019-06-30 Thread Christoph Hellwig
From: Jason Gunthorpe The wait_event_timeout macro already tests the condition as its first action, so there is no reason to open code another version of this, all that does is skip the might_sleep() debugging in common cases, which is not helpful. Further, based on prior patches, we can now sim

[PATCH 22/22] mm: remove the legacy hmm_pfn_* APIs

2019-06-30 Thread Christoph Hellwig
Switch the one remaining user in nouveau over to its replacement, and remove all the wrappers. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 +- include/linux/hmm.h| 36 -- 2 files changed, 1 insertion(+), 37 deletion

[PATCH 15/22] mm/hmm: Poison hmm_range during unregister

2019-06-30 Thread Christoph Hellwig
From: Jason Gunthorpe Trying to misuse a range outside its lifetime is a kernel bug. Use poison bytes to help detect this condition. Double unregister will reliably crash. Signed-off-by: Jason Gunthorpe Reviewed-by: Jérôme Glisse Reviewed-by: John Hubbard Acked-by: Souptick Joarder Reviewed-

Re: [RFC PATCH 1/5] dt-bindings: soundwire: add slave bindings

2019-06-30 Thread Vinod Koul
On 11-06-19, 11:40, Srinivas Kandagatla wrote: > This patch adds bindings for Soundwire Slave devices which includes how > SoundWire enumeration address is represented in SoundWire slave device > tree nodes. > > Signed-off-by: Srinivas Kandagatla > --- > .../devicetree/bindings/soundwire/bus.txt

Re: [PATCH 0/3] Enhance virtio rpmsg bus driver buffer allocation

2019-06-30 Thread Bjorn Andersson
On Wed 05 Jun 00:33 PDT 2019, Arnaud Pouliquen wrote: > Hi Bjorn, > > On 6/5/19 6:34 AM, Bjorn Andersson wrote: > > On Thu 31 Jan 07:41 PST 2019, Xiang Xiao wrote: > > > >> Hi, > >> This series enhance the buffer allocation by: > >> 1.Support the different buffer number in rx/tx direction > >> 2

Re: [PATCH v3] platform/chrome: Expose resume result via debugfs

2019-06-30 Thread Lee Jones
On Thu, 27 Jun 2019, Enric Balletbo Serra wrote: > Hi Evan, Lee, > > Missatge de Evan Green del dia dj., 27 de juny > 2019 a les 22:46: > > > > For ECs that support it, the EC returns the number of slp_s0 > > transitions and whether or not there was a timeout in the resume > > response. Expose t

Re: [PATCH v2 2/2] tty: add rpmsg driver

2019-06-30 Thread Bjorn Andersson
On Fri 10 May 08:02 PDT 2019, Arnaud Pouliquen wrote: > This driver exposes a standard tty interface on top of the rpmsg > framework through the "rpmsg-tty-channel" rpmsg service. > > This driver supports multi-instances, offering a /dev/ttyRPMSGx entry > per rpmsg endpoint. > > Signed-off-by: A

Re: WARNING in mark_lock

2019-06-30 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: KASAN: use-after-free Read in class_equal == BUG: KASAN: use-after-free in class_equal+0x40/0x50 kernel/locking/lockdep.c:1527 Read of size

Re: [Xen-devel] [PATCH] ALSA: xen-front: fix unintention integer overflow on left shifts

2019-06-30 Thread Oleksandr Andrushchenko
On 6/28/19 11:46 AM, Takashi Iwai wrote: On Thu, 27 Jun 2019 18:58:53 +0200, Colin King wrote: From: Colin Ian King Shifting the integer value 1 is evaluated using 32-bit arithmetic and then used in an expression that expects a 64-bit value, so there is potentially an integer overflow. Fix thi

Re: memory leak in create_ctx

2019-06-30 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: memory leak in create_ctx 2019/07/01 05:38:26 executed programs: 23 BUG: memory leak unreferenced object 0x888102914e00 (size 512): comm "syz-executor.4", pid 7333, jiffies 4294944085 (age 13.950s) h

Re: [PATCH REBASE v2 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig

2019-06-30 Thread Alex Ghiti
On 6/30/19 9:58 PM, Hanjun Guo wrote: On 2019/5/26 20:50, Alexandre Ghiti wrote: ARCH_WANT_HUGE_PMD_SHARE config was declared in both architectures: move this declaration in arch/Kconfig and make those architectures select it. Signed-off-by: Alexandre Ghiti Reviewed-by: Palmer Dabbelt --- a

[PATCH v2] arm64: zynqmp: Add ZynqMP SDHCI compatible string

2019-06-30 Thread Manish Narani
Add the new compatible string for ZynqMP SD Host Controller for its use in the Arasan SDHCI driver for some of the ZynqMP specific operations. Add required properties for the same. Signed-off-by: Manish Narani --- This patch depends on the below series of patches: https://lkml.org/lkml/2019/7/1/2

RE: [net/bpf] Re: WARNING in mark_lock

2019-06-30 Thread John Fastabend
Eric Biggers wrote: > [+bpf list] > > On Tue, Jun 25, 2019 at 08:20:56AM +0200, Thomas Gleixner wrote: > > On Mon, 24 Jun 2019, syzbot wrote: > > > > > Hello, > > > > CC++ Peterz > > > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:dc636f5d Add linux-next specific

Re: [PATCH v2 1/2] rpmsg: core: add possibility to get message payload length

2019-06-30 Thread Bjorn Andersson
On Fri 10 May 08:02 PDT 2019, Arnaud Pouliquen wrote: > Return the rpmsg buffer payload size for sending message, so rpmsg users > can split a long message in several sub rpmsg buffers. > > Signed-off-by: Arnaud Pouliquen > Signed-off-by: Fabien Dessenne This should list each person who dealt

[PATCH v2 07/11] dt-bindings: mmc: arasan: Add optional properties for Arasan SDHCI

2019-06-30 Thread Manish Narani
Add optional propeties for Arasan SDHCI which are used to set clk delays for different speed modes in the controller. Signed-off-by: Manish Narani --- Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicet

[PATCH v2 05/11] dt-bindings: mmc: arasan: Update Documentation for the input clock

2019-06-30 Thread Manish Narani
Add documentation for an optional input clock which is essentially used in sampling the input data coming from the card. Signed-off-by: Manish Narani --- Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Docu

[PATCH v2 06/11] mmc: sdhci-of-arasan: Add sampling clock for a phy to use

2019-06-30 Thread Manish Narani
There are some operations like setting the clock delays may need to have two clocks, one for output path and one for input path. Adding input path clock for some phys to use. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 118 ++--- 1 file c

[PATCH v2 00/11] Arasan SDHCI enhancements and ZynqMP Tap Delays Handling

2019-06-30 Thread Manish Narani
This patch series does the following: - Reorganize the Clock Handling in Arasan SD driver - Adds new sampling clock in Arasan SD driver - Adds support to set Clock Delays in SD Arasan Driver - Add SDIO Tap Delay handling in ZynqMP firmware driver - Add support for ZynqMP Tap Delays setting in

[PATCH v2 01/11] dt-bindings: mmc: arasan: Update documentation for SD Card Clock

2019-06-30 Thread Manish Narani
The clock handling is to be updated in the Arasan SDHCI. As the 'devm_clk_register' is deprecated in the clock framework, this needs to specify one more clock named 'clk_sdcard' to get the clock in the driver via 'devm_clk_get()'. This clock represents the clock from controller to the card. Signed

[PATCH v2 08/11] mmc: sdhci-of-arasan: Add support to set clock phase delays for SD

2019-06-30 Thread Manish Narani
Add support to read Clock Phase Delays from the DT and set it via clk_set_phase() API from clock framework. Some of the controllers might have their own handling of setting clock delays, for this keep the set_clk_delays as function pointer which can be assigned controller specific handling of the s

[PATCH v2 11/11] mmc: sdhci-of-arasan: Add support for ZynqMP Platform Tap Delays Setup

2019-06-30 Thread Manish Narani
Apart from taps set by auto tuning, ZynqMP platform has feature to set the tap values manually. Add support to set tap delay values in HW via ZynqMP SoC framework. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 200 - 1 file changed, 198

[PATCH v2 02/11] arm64: dts: rockchip: Add optional clock property indicating sdcard clock

2019-06-30 Thread Manish Narani
As devm_clk_register() is deprecated in the clock framework, it is mandatory to use devm_clk_get() for getting the clock. This patch adds sdcard clock which will be used for the same. Signed-off-by: Manish Narani --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 09/11] firmware: xilinx: Add SDIO Tap Delay APIs

2019-06-30 Thread Manish Narani
Add APIs for setting SDIO Tap Delays on ZynqMP platform. Signed-off-by: Manish Narani --- drivers/firmware/xilinx/zynqmp.c | 48 include/linux/firmware/xlnx-zynqmp.h | 15 ++- 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH v2 03/11] mmc: sdhci-of-arasan: Replace deprecated clk API calls

2019-06-30 Thread Manish Narani
The clk framework APIs devm_clk_register and of_clk_add_provider, which are used here, are deprecated. Replace the calls with the new API calls. Also add an API call devm_clk_get() to get the clock from DT. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 21

[PATCH v2 10/11] dt-bindings: mmc: arasan: Document 'xlnx,zynqmp-8.9a' controller

2019-06-30 Thread Manish Narani
Add documentation for 'xlnx,zynqmp-8.9a' SDHCI controller and optional properties followed by example. Signed-off-by: Manish Narani --- .../devicetree/bindings/mmc/arasan,sdhci.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 04/11] mmc: sdhci-of-arasan: Separate out clk related data to another structure

2019-06-30 Thread Manish Narani
To improve the code readability, use two different structs, one for clock provider data and one for mmc platform data. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/dri

RE: memory leak in create_ctx

2019-06-30 Thread John Fastabend
syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:79c3ba32 Merge tag 'drm-fixes-2019-06-07-1' of git://anong.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=170e0bfea0 > kernel config: https://syzkaller.appspot.com/x/

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

2019-06-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the nand tree got a conflict in: drivers/mtd/nand/raw/mtk_ecc.h between commit: d2912cb15bdd ("treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500") from Linus' tree and commit: b74e6985bfe8 ("mtd: rawnand: mtk: Re-license MTK NAND dri

Re: [RFC PATCH v5] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-06-30 Thread Chris Chiu
On Mon, Jun 17, 2019 at 2:56 PM Chris Chiu wrote: > > We have 3 laptops which connect the wifi by the same RTL8723BU. > The PCI VID/PID of the wifi chip is 10EC:B720 which is supported. > They have the same problem with the in-kernel rtl8xxxu driver, the > iperf (as a client to an ethernet-connect

Re: [PATCH] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-06-30 Thread Chris Chiu
On Thu, Jun 27, 2019 at 5:52 PM Chris Chiu wrote: > > The WiFi tx power of RTL8723BU is extremely low after booting. So > the WiFi scan gives very limited AP list and it always fails to > connect to the selected AP. This module only supports 1x1 antenna > and the antenna is switched to bluetooth d

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

2019-06-30 Thread Stephen Rothwell
Hi all, On Mon, 1 Jul 2019 14:57:22 +1000 Stephen Rothwell wrote: > > After merging the bpf-next tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/net/ethernet/mellanox/mlx5/core/en_main.c:1605:5: error: conflicting > types for 'mlx5e_open_cq' > int mlx5e_o

Re: [PATCH 12/87] dma: imx-sdma: Remove call to memset after dma_alloc_coherent

2019-06-30 Thread Vinod Koul
On 28-06-19, 01:35, Fuqian Huang wrote: > In commit af7ddd8a627c > ("Merge tag 'dma-mapping-4.21' of > git://git.infradead.org/users/hch/dma-mapping"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. Please point to the exact commit and not the merge com

linux-next: build failure after merge of the bpf-next tree

2019-06-30 Thread Stephen Rothwell
Hi all, After merging the bpf-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/net/ethernet/mellanox/mlx5/core/en_main.c:1605:5: error: conflicting types for 'mlx5e_open_cq' int mlx5e_open_cq(struct mlx5e_channel *c, struct dim_cq_moder moder, ^~~

Re: [PATCH v4 2/4] usb: xhci: Use register defined and field names

2019-06-30 Thread Vinod Koul
On 29-06-19, 00:42, Mathias Nyman wrote: > > Most of this patch should probably be squashed together with the previous > patch Will do -- ~Vinod

Re: [PATCH v4 1/4] usb: xhci: add firmware loader for uPD720201 and uPD720202 w/o ROM

2019-06-30 Thread Vinod Koul
On 29-06-19, 00:40, Mathias Nyman wrote: > On 26.6.2019 10.55, Vinod Koul wrote: > > From: Christian Lamparter > > > > This patch adds a firmware loader for the uPD720201K8-711-BAC-A > > and uPD720202K8-711-BAA-A variant. Both of these chips are listed > > in Renesas' R19UH0078EJ0500 Rev.5.00 "Us

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

2019-06-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: drivers/net/ethernet/mellanox/mlx5/core/en_main.c between commit: 8960b38932be ("linux/dim: Rename externally used net_dim members") from the net-next tree and commits: db05815b36cb ("net/mlx5e: Add XSK zero-copy s

[PATCHv2] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-06-30 Thread Po-Hsu Lin
The psock_tpacket test will need to access /proc/kallsyms, this would require the kernel config CONFIG_KALLSYMS to be enabled first. Apart from adding CONFIG_KALLSYMS to the net/config file here, check the file existence to determine if we can run this test will be helpful to avoid a false-positiv

Re: [PATCH v6 3/3] arm64: kexec_file: add rng-seed support

2019-06-30 Thread Hsin-Yi Wang
On Fri, Jun 28, 2019 at 7:47 PM Hsin-Yi Wang wrote: > > > > If the RNG wasn't initialised, we'd carry on with a warning. Why do we > > follow a different policy here? > > (Sorry, please ignore previous comment) I think this part should be same as kaslr, since they are both adding random seeds: If

[PATCH v5 0/2] clocksource/drivers: Create new Hyper-V clocksource driver

2019-06-30 Thread Michael Kelley
This patch series moves Hyper-V clock/timer code to a separate Hyper-V clocksource driver. Previously, Hyper-V clock/timer code and data structures were mixed in with other Hyper-V code in the ISA independent drivers/hv code as well as in ISA dependent code. The new Hyper-V clocksource driver is IS

[PATCH v5 2/2] clocksource/drivers: Continue making Hyper-V clocksource ISA agnostic

2019-06-30 Thread Michael Kelley
Continue consolidating Hyper-V clock and timer code into an ISA independent Hyper-V clocksource driver. Move the existing clocksource code under drivers/hv and arch/x86 to the new clocksource driver while separating out the ISA dependencies. Update Hyper-V initialization to call initialization and

[PATCH v5 1/2] clocksource/drivers: Make Hyper-V clocksource ISA agnostic

2019-06-30 Thread Michael Kelley
Hyper-V clock/timer code and data structures are currently mixed in with other code in the ISA independent drivers/hv directory as well as the ISA dependent Hyper-V code under arch/x86. Consolidate this code and data structures into a Hyper-V clocksource driver to better follow the Linux model. In

linux-next: build failure after merge of the rdma tree

2019-06-30 Thread Stephen Rothwell
Hi all, After merging the rdma tree, today's linux-next build (x86_64 allmodconfig) failed like this: WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_ah.o see include/linux/module.h for more information WARNING: modpost: missing MODULE_LICENSE() in drivers/infin

Re: [PATCH] tools/memory-model: Update the informal documentation

2019-06-30 Thread Paul E. McKenney
On Sat, Jun 29, 2019 at 11:10:44PM +0200, Andrea Parri wrote: > The formal memory consistency model has added support for plain accesses > (and data races). While updating the informal documentation to describe > this addition to the model is highly desirable and important future work, > update th

[RFC 1/3] rcu: Expedite the rcu quiescent state reporting if help needed

2019-06-30 Thread Joel Fernandes (Google)
The t->rcu_read_unlock_special union's need_qs bit can be set by the scheduler tick (in rcu_flavor_sched_clock_irq) to indicate that help is needed from the rcu_read_unlock path. When this help arrives however, we can do better to speed up the quiescent state reporting which if rcu_read_unlock_spec

[RFC 2/3] rcu: Simplify rcu_note_context_switch exit from critical section

2019-06-30 Thread Joel Fernandes (Google)
The rcu_preempt_note_context_switch() tries to handle cases where __rcu_read_unlock() got preempted and then the context switch path does the reporting of the quiscent state along with clearing any bits in the rcu_read_unlock_special union. This can be handled by just calling rcu_deferred_qs() whi

[RFC 3/3] Revert "rcutorture: Tweak kvm options"

2019-06-30 Thread Joel Fernandes (Google)
This reverts commit a6fda6dab93c2c06ef4b8cb4b9258df6674d2438 which causes kvm.sh to not run on my machines. The qemu-system-x86_64 command runs but does nothing. Signed-off-by: Joel Fernandes (Google) --- I am Ok if we want to drop this patch but it is in my tree because without it I can't run th

[PATCH] drm: bridge: DRM_SIL_SII8620 should depend on, not select INPUT

2019-06-30 Thread Randy Dunlap
From: Randy Dunlap A single driver should not enable (select) an entire subsystem, such as INPUT, so change the 'select' to "depends on". Fixes: d6abe6df706c ("drm/bridge: sil_sii8620: do not have a dependency of RC_CORE") Signed-off-by: Randy Dunlap Cc: Inki Dae Cc: Andrzej Hajda Cc: Laure

linux-next: build failure after merge of the pm tree

2019-06-30 Thread Stephen Rothwell
Hi all, After merging the pm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from drivers/cpufreq/intel_pstate.c:11: drivers/cpufreq/intel_pstate.c: In function 'intel_pstate_update_max_freq': drivers/cpufreq/intel_pstate.c:912:31: error: 'struct cpufreq_po

linux-next: manual merge of the pm tree with the pci tree

2019-06-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the pm tree got a conflict in: Documentation/power/pm_qos_interface.rst between commits: 151f4e2bdc7a ("docs: power: convert docs to ReST and rename to *.rst") 562fe2ef1a21 ("PM / QOS: Pass request type to dev_pm_qos_read_value()") from the pci tree an

[PATCH 4/4] platform: x86: Use dev_get_drvdata()

2019-06-30 Thread Fuqian Huang
Using dev_get_drvdata directly. Signed-off-by: Fuqian Huang --- drivers/platform/x86/asus-wmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 9b18a184e0aa..49049b02a015 100644 --- a/drivers/platform/x

[PATCH 1/2] drm/vkms: Add enable/disable functions per connector

2019-06-30 Thread Rodrigo Siqueira
Currently, virtual and writeback connectors have the code responsible for initialization and cleanup spread around different places in vkms. This patch creates an enable and disable function per connector which allows vkms to hotplug connectors easily. Signed-off-by: Rodrigo Siqueira --- drivers

[PATCH 2/2] drm/vkms: Introduce configfs for enabling/disabling connectors

2019-06-30 Thread Rodrigo Siqueira
This patch introduces an implementation of vkms subsystems through configfs; we want to be able to reconfigure vkms instance without having to reload the module. This commit adds the primary support for configfs by allowing vkms to expose the ability to enable/disable its connectors. Signed-off-by

[PATCH 2/4] input: keyboard/mouse/touchscreen/misc: Use dev_get_drvdata()

2019-06-30 Thread Fuqian Huang
Using dev_get_drvdata directly. Signed-off-by: Fuqian Huang --- drivers/input/keyboard/ep93xx_keypad.c | 10 -- drivers/input/keyboard/gpio_keys.c | 3 +-- drivers/input/keyboard/imx_keypad.c | 10 -- drivers/input/keyboard/lpc32xx-keys.c| 6 ++ drivers/inp

[PATCH 3/4] mailbox: Use dev_get_drvdata()

2019-06-30 Thread Fuqian Huang
Using dev_get_drvdata directly. Signed-off-by: Fuqian Huang --- drivers/mailbox/bcm-flexrm-mailbox.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index a64116586b4c..0cfdd53d04a1 100644 ---

[PATCH 0/2] drm/vkms: Introduce basic support for configfs

2019-06-30 Thread Rodrigo Siqueira
This patchset introduces the support for configfs in vkms by adding a primary structure for handling the vkms subsystem and exposing connectors as a use case. This series allows enabling/disabling virtual and writeback connectors on the fly. The first patch of this series reworks the initializatio

[PATCH 1/4] gpu: Use dev_get_drvdata()

2019-06-30 Thread Fuqian Huang
Using dev_get_drvdata directly. Signed-off-by: Fuqian Huang --- drivers/gpu/drm/msm/adreno/adreno_device.c | 6 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 13 + drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c| 6 ++ drivers/gpu/drm/msm/dsi/dsi_host.c

compensation

2019-06-30 Thread Ms. Jemilla Smith
Dear Friend, I'm sorry but happy to inform you about my success in getting those funds transferred under the cooperation of a new partner from Vietnam, though I tried my best to involve you in the business but God decided the whole situations. Presently I’m in Vietnam for investment projects with

Re: [RFC PATCH 03/12] powerpc/prom_init: Add the ESM call to prom_init

2019-06-30 Thread Alexey Kardashevskiy
On 29/06/2019 08:33, Thiago Jung Bauermann wrote: > > Hello Alexey, > > Thanks for reviewing this patch! > > Alexey Kardashevskiy writes: > >> On 21/05/2019 14:49, Thiago Jung Bauermann wrote: >>> @@ -1707,6 +1723,43 @@ static void __init prom_close_stdin(void) >>> } >>> } >>> >>> +#

Re: [RFC PATCH v3 0/4] Deliver vGPU display vblank event to userspace

2019-06-30 Thread Zhenyu Wang
On 2019.06.28 12:43:47 +, Zhang, Tina wrote: > Hi, > > How about GVT-g supports both vblank and page flip events. Then QEMU UI can > mask/unmask the events to decide which kind of event is expected. > For DRM UI, it can decide to mask vblank event and use page flip events. We > tried DRM UI

[v2 3/3] hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.

2019-06-30 Thread Amy.Shih
From: "amy.shih" NCT-7904D also supports reading of channel limitation registers and SMI status registers for fan, voltage and temperature monitoring, and also supports reading of temperature sensor type which is thermal diode, thermistor, AMD SB-TSI or Intel PECI, thus add below sysfs nodes: -f

[PATCH] cifs: fix build by selecting CONFIG_KEYS

2019-06-30 Thread Sergey Senozhatsky
CONFIG_CIFS_ACL had a dependency "depends on KEYS" which was dropped with the removal of CONFIG_CIFS_ACL. This breaks the build on systems which don't have CONFIG_KEYS in .config: cifsacl.c:37:15: error: variable ‘cifs_idmap_key_acl’ has initializer but incomplete type 37 | sta

Re: [PATCH 2/6] Adjust watch_queue documentation to mention mount and superblock watches. [ver #5]

2019-06-30 Thread Randy Dunlap
Hi David, On 6/28/19 8:50 AM, David Howells wrote: > Signed-off-by: David Howells > --- > > Documentation/watch_queue.rst | 20 +++- > drivers/misc/Kconfig |5 +++-- > 2 files changed, 22 insertions(+), 3 deletions(-) > > diff --git a/Documentation/watch_queue.rs

[PATCH v2] udf: Fix incorrect final NOT_ALLOCATED (hole) extent length

2019-06-30 Thread Steven J. Magnani
In some cases, using the 'truncate' command to extend a UDF file results in a mismatch between the length of the file's extents (specifically, due to incorrect length of the final NOT_ALLOCATED extent) and the information (file) length. The discrepancy can prevent other operating systems (i.e., Win

Re: nouveau: DRM: GPU lockup - switching to software fbcon

2019-06-30 Thread Sergey Senozhatsky
On (06/19/19 02:07), Ilia Mirkin wrote: > If all else fails, just remove nouveau_dri.so and/or boot with > nouveau.noaccel=1 -- should be perfect. nouveau.noaccel=1 did the trick. Is there any other, let's say less CPU-intensive, way to fix nouveau? -ss

linux-next: build warning after merge of the hwmon-staging tree

2019-06-30 Thread Stephen Rothwell
Hi all, After merging the hwmon-staging tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/hwmon/lm90.c: In function 'lm90_write_convrate': drivers/hwmon/lm90.c:597:42: warning: 'config_stop' may be used uninitialized in this function [-Wmaybe-uninitialized]

Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs

2019-06-30 Thread Joel Fernandes
On Fri, Jun 28, 2019 at 08:20:45PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-06-28 14:07:27 [-0400], Joel Fernandes wrote: > > On Fri, Jun 28, 2019 at 07:45:45PM +0200, Sebastian Andrzej Siewior wrote: > > > On 2019-06-28 10:30:11 [-0700], Paul E. McKenney wrote: > > > > > I believe the .bl

Re: [PATCH v4 4/4] drm/mtk: add panel orientation property

2019-06-30 Thread CK Hu
Hi, Derek: On Fri, 2019-06-21 at 20:41 -0700, Derek Basehore wrote: > This inits the panel orientation property for the mediatek dsi driver > if the panel orientation (connector.display_info.panel_orientation) is > not DRM_MODE_PANEL_ORIENTATION_UNKNOWN. > Reviewed-by: CK Hu > Signed-off-by: D

Re: [PATCH REBASE v2 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig

2019-06-30 Thread Hanjun Guo
On 2019/5/26 20:50, Alexandre Ghiti wrote: > ARCH_WANT_HUGE_PMD_SHARE config was declared in both architectures: > move this declaration in arch/Kconfig and make those architectures > select it. > > Signed-off-by: Alexandre Ghiti > Reviewed-by: Palmer Dabbelt > --- > arch/Kconfig | 3 +++

[PATCH] drm/nouveau: fix memory leak in nouveau_conn_reset()

2019-06-30 Thread Yongxin Liu
In nouveau_conn_reset(), if connector->state is true, __drm_atomic_helper_connector_destroy_state() will be called, but the memory pointed by asyc isn't freed. Memory leak happens in the following function __drm_atomic_helper_connector_reset(), where newly allocated asyc->state will be assigned to

Re: [PATCH] devfreq: tegra20: add COMMON_CLK dependency

2019-06-30 Thread Chanwoo Choi
Hi Arnd, Thanks for fixup. Reviewed-by: Chanwoo Choi Hi Myungjoo, This patch have to be merged for linux 5.3 before sending pull-request because it fixed the build error of merged patch[1] on devfreq.git. [1] https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/commit/?h=for-next&

Re: [v5 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-06-30 Thread CK Hu
Hi, Jitao: On Thu, 2019-06-27 at 16:01 +0800, Jitao Shi wrote: > Change the method of frame rate calc which can get more accurate > frame rate. > > data rate = pixel_clock * bit_per_pixel / lanes > Adjust hfp_wc to adapt the additional phy_data > > if MIPI_DSI_MODE_VIDEO_BURST > hfp_wc = h

Re: [PATCH 41/43] docs: extcon: convert it to ReST and move to acpi dir

2019-06-30 Thread Chanwoo Choi
Hi Mauro, On 19. 6. 28. 오후 9:20, Mauro Carvalho Chehab wrote: > The intel-int3496.txt file is a documentation for an ACPI driver. > > There's no reason to keep it on a separate directory. > > So, instead of keeping it on some random location, move it > to a sub-directory inside the ACPI document

Re: [v5 4/7] drm/mediatek: add frame size control

2019-06-30 Thread CK Hu
Hi, Jitao: On Thu, 2019-06-27 at 16:01 +0800, Jitao Shi wrote: > Our new DSI chip has frame size control. > So add the driver data to control for different chips. > > Signed-off-by: Jitao Shi > Reviewed-by: CK Hu This version is different than previous version, so you should remove the reviewe

Re: [PATCH] misc: fsa9480: Delete this driver

2019-06-30 Thread Chanwoo Choi
Hi Linus, On 19. 6. 30. 오후 11:03, Linus Walleij wrote: > The FSA9480 has a new driver more appropriately located > in the drivers/extcon subsystem. It is also more complete > and includes device tree support. Delete the old misc > driver. > > Cc: Paweł Chmiel > Cc: Chanwoo Choi > Cc: Arnd Bergm

Re: [PATCH 22/39] docs: ocxl.rst: add it to the uAPI book

2019-06-30 Thread Andrew Donnellan
On 28/6/19 10:30 pm, Mauro Carvalho Chehab wrote: The content of this file is user-faced. Signed-off-by: Mauro Carvalho Chehab Acked-by: Andrew Donnellan --- Documentation/{ => userspace-api}/accelerators/ocxl.rst | 2 -- Documentation/userspace-api/index.rst | 1 + M

linux-next: build failure after merge of the xfs tree

2019-06-30 Thread Stephen Rothwell
Hi all, After merging the xfs tree, today's linux-next build (x86_64 allmodconfig) failed like this: fs/orangefs/file.c: In function 'orangefs_getflags': fs/orangefs/file.c:372:7: warning: assignment to 'long unsigned int *' from '__u64' {aka 'long long unsigned int'} makes pointer from integer

Re: [PATCH] vfs: move_mount: reject moving kernel internal mounts

2019-06-30 Thread Al Viro
On Sat, Jun 29, 2019 at 09:39:16PM +0100, Al Viro wrote: > On Sat, Jun 29, 2019 at 01:27:44PM -0700, Eric Biggers wrote: > > > @@ -2600,7 +2600,7 @@ static int do_move_mount(struct path *old_path, > > struct path *new_path) > > if (attached && !check_mnt(old)) > > goto out; > >

linux-next: manual merge of the xfs tree with the f2fs tree

2019-06-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xfs tree got a conflict in: fs/f2fs/file.c between commit: 360985573b55 ("f2fs: separate f2fs i_flags from fs_flags and ext4 i_flags") from the f2fs tree and commits: de2baa49bbae ("vfs: create a generic checking and prep function for FS_IOC_SETF

[PATCH 0/7] Compile-test UAPI and kernel headers

2019-06-30 Thread Masahiro Yamada
1/7: add CONFIG_CC_CAN_LINK to use it in 2/7 2/7: Compile-test exported headers 3/7: Do not generate intermediate wrappers. This will avoid header search path issue. 4/7: maybe useful for 7/7 and in some other places. Add header-test-pattern-y syntax. 5/7: Minor cleanup of gen_khead

[PATCH 7/7] kbuild: compile-test kernel headers to ensure they are self-contained

2019-06-30 Thread Masahiro Yamada
The headers in include/ are globally used in the kernel source tree to provide common APIs. They are included from external modules, too. It will be useful to make as many headers self-contained as possible so that we do not have to rely on a specific include order. There are more than 4000 heade

[PATCH 2/7] kbuild: compile-test exported headers to ensure they are self-contained

2019-06-30 Thread Masahiro Yamada
Multiple people have suggested compile-testing UAPI headers to ensure they can be really included from user-space. "make headers_check" is obviously not enough to catch bugs, and we often leak unresolved references to user-space. Use the new header-test-y syntax to implement it. Please note export

[PATCH 3/7] kbuild: do not create wrappers for header-test-y

2019-06-30 Thread Masahiro Yamada
header-test-y does not work with headers in sub-directories. For example, you may want to write a Makefile, like this: include/linux/Kbuild: header-test-y += mtd/nand.h This entry will create a wrapper include/linux/mtd/nand.hdrtest.c with the following content: #include "mtd/nand.h" To m

[PATCH 1/7] init/Kconfig: add CONFIG_CC_CAN_LINK

2019-06-30 Thread Masahiro Yamada
Currently, scripts/cc-can-link.sh is run just for BPFILTER_UMH, but defining CC_CAN_LINK will be useful in other places. Signed-off-by: Masahiro Yamada --- Changes in v4: - New patch Changes in v3: None Changes in v2: None init/Kconfig | 3 +++ net/bpfilter/Kconfig | 2 +- 2 files ch

  1   2   >