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

2019-07-01 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:

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

2019-07-01 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

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

2019-07-01 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 > >>

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

2019-07-01 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 > --- >

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

2019-07-01 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-07-01 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-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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,

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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 >

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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

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

2019-07-01 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-07-01 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

Re: RISC-V nommu support v2

2019-07-01 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

[PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev

2019-07-01 Thread Clement Leger
When preparing the subdevice for the vdev, also copy dma_pfn_offset since this is used for sub device dma allocations. Without that, there is incoherency between the parent dma settings and the childs one, potentially leading to dma_alloc_coherent failure (due to phys_to_dma using dma_pfn_offset

Re: [PATCH] mtd: rawnand: stm32_fmc2: avoid warnings when building with W=1 option

2019-07-01 Thread Miquel Raynal
Hi Christophe, Christophe Kerello wrote on Fri, 21 Jun 2019 16:43:09 +0200: > This patch solves warnings detected by setting W=1 when building. > > Warnings type detected: > drivers/mtd/nand/raw/stm32_fmc2_nand.c: In function ‘stm32_fmc2_calc_timings’: >

Re: [PATCH] mtd: rawnand: stm32_fmc2: avoid warnings when building with W=1 option

2019-07-01 Thread Miquel Raynal
Hi Christophe, Christophe Kerello wrote on Fri, 21 Jun 2019 16:43:09 +0200: > This patch solves warnings detected by setting W=1 when building. > > Warnings type detected: > drivers/mtd/nand/raw/stm32_fmc2_nand.c: In function ‘stm32_fmc2_calc_timings’: >

Re: [PATCH v4 1/2] mtd: Add flag to indicate panic_write

2019-07-01 Thread Miquel Raynal
Hi Kamal, Kamal Dasu wrote on Tue, 18 Jun 2019 14:26:42 -0400: > Added a flag to indicate a panic_write so that low level drivers can > use it to take required action where applicable, to ensure oops data > gets written to assigned mtd device. > > Signed-off-by: Kamal Dasu > --- Applied to

Re: [PATCH v2 1/3] mtd: nand: raw: brcmnand: Refactored code to introduce helper functions

2019-07-01 Thread Miquel Raynal
Hi Kamal, Kamal Dasu wrote on Tue, 4 Jun 2019 10:36:29 -0400: > Refactored NAND ECC and CMD address configuration code to use helper > functions. > > Signed-off-by: Kamal Dasu > --- Applied to nand/next, thanks. Miquèl

Re: [LKP] [x86/hotplug] e1056a25da: WARNING:at_arch/x86/kernel/apic/apic.c:#setup_local_APIC

2019-07-01 Thread Thomas Gleixner
Feng, On Sun, 30 Jun 2019, Thomas Gleixner wrote: > On Sun, 30 Jun 2019, Feng Tang wrote: > > On Sun, Jun 30, 2019 at 01:35:39PM +0200, Thomas Gleixner wrote: > > > On Sat, 29 Jun 2019, Thomas Gleixner wrote: > > > > On Fri, 28 Jun 2019, Thomas Gleixner wrote: > > > > > On Fri, 28 Jun 2019, Feng

Re: [PATCH][next] mtd: rawnand: gpmi: remove double assignment to block_size

2019-07-01 Thread Miquel Raynal
Hi Colin, Colin King wrote on Tue, 4 Jun 2019 11:58:59 +0100: > From: Colin Ian King > > The variable block_size is being assigned to itself and to > geo->ecc_chunk_size. Clean up the double assignment by removing > the assignment to itself. > > Addresses-Coverity: ("Evaluation order

Re: [PATCH v3] mtd: rawnand: Add Macronix NAND read retry support

2019-07-01 Thread Miquel Raynal
Hi Mason, Mason Yang wrote on Mon, 3 Jun 2019 10:42:04 +0800: > Add support for Macronix NAND read retry. > > Macronix NANDs support specific read operation for data recovery, > which can be enabled with a SET_FEATURE. > Driver checks byte 167 of Vendor Blocks in ONFI parameter page table >

Re: [PATCH v3 1/2] mtd: Add flag to indicate panic_write

2019-07-01 Thread Miquel Raynal
Hi Kamal, Kamal Dasu wrote on Thu, 16 May 2019 12:41:46 -0400: > Added a flag to indicate a panic_write so that low level drivers can > use it to take required action where applicable, to ensure oops data > gets written to assigned mtd device. > > Signed-off-by: Kamal Dasu > --- Applied to

linux-next: manual merge of the tip tree with the hwmon-staging tree

2019-07-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: drivers/hwmon/coretemp.c between commit: 601fdf7e6635 ("hwmon: Correct struct allocation style") from the hwmon-staging tree and commit: 835896a59b95 ("hwmon/coretemp: Cosmetic: Rename internal variables to zones from

Re: [PATCH 0/5] Minor ti-sysc cleanups

2019-07-01 Thread Roger Quadros
On 26/06/2019 02:33, Suman Anna wrote: > Hi Tony, > > The following series includes minor cleanup patches against the ti-sysc > code. Patches are based on top of all your 5.3 staged branches. Feel free > to pick them up for either 5.3 (if it is not too late) or 5.4 merge window. > > The first 4

Re: [PATCH] mtd: onenand_base: Mark expected switch fall-through

2019-07-01 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Tue, 4 Jun 2019 09:17:37 -0500: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > This patch fixes the following warning: > > drivers/mtd/nand/onenand/onenand_base.c: In function

Re: [PATCH] rbtree: avoid generating code twice for the cached versions

2019-07-01 Thread Peter Zijlstra
On Thu, Jun 27, 2019 at 09:50:08PM -0700, Michel Lespinasse wrote: > As was already noted in rbtree.h, the logic to cache rb_first (or rb_last) > can easily be implemented externally to the core rbtree api. > > Change the implementation to do just that. Previously the update of > rb_leftmost was

Re: [PATCH 2/2] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 05:49:52PM -0700, Michel Lespinasse wrote: > --- a/tools/include/linux/rbtree_augmented.h > +++ b/tools/include/linux/rbtree_augmented.h > @@ -74,39 +74,48 @@ rb_insert_augmented_cached(struct rb_node *node, > newleft, >rb_leftmost,

Re: [Patch 1/1] Input: edt-ft5x06 - disable irq handling during suspend

2019-07-01 Thread Dmitry Torokhov
On Mon, Jun 24, 2019 at 07:24:57AM -0500, Benoit Parrot wrote: > Dmitry Torokhov wrote on Sat [2019-Jun-22 > 22:59:40 -0700]: > > On Sat, Jun 22, 2019 at 01:37:10PM +0300, Andy Shevchenko wrote: > > > On Fri, Jun 21, 2019 at 9:53 PM Benoit Parrot wrote: > > > > > > > > As a wakeup source when

Re: [PATCH v3 1/5] mm: introduce MADV_COLD

2019-07-01 Thread Minchan Kim
On Fri, Jun 28, 2019 at 08:56:18AM +0900, Minchan Kim wrote: > On Thu, Jun 27, 2019 at 04:53:02PM +0200, Michal Hocko wrote: > > On Thu 27-06-19 07:36:50, Dave Hansen wrote: > > [...] > > > For MADV_COLD, if we defined it like this, I think we could use it for > > > both purposes (demotion and LRU

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

2019-07-01 Thread David Howells
Al Viro wrote: > /* The thing moved must be mounted... */ > if (!is_mounted(old_path->mnt)) > goto out; Um... Doesn't that stuff up fsmount()? David

Re: [PATCH v3 0/5] Introduce MADV_COLD and MADV_PAGEOUT

2019-07-01 Thread Minchan Kim
Hi Folks, Do you guys have comments? I think it would be long enough to be pending. If there is no further comments, I want to ask to merge. Thanks. On Thu, Jun 27, 2019 at 08:54:00PM +0900, Minchan Kim wrote: > This patch is part of previous series: >

Re: [PATCH v3 01/11] mm/memory_hotplug: Simplify and fix check_hotplug_memory_range()

2019-07-01 Thread Michal Hocko
[Sorry for a really late response] On Mon 27-05-19 13:11:42, David Hildenbrand wrote: > By converting start and size to page granularity, we actually ignore > unaligned parts within a page instead of properly bailing out with an > error. I do not expect any code path would ever provide an

Re: [PATCH v3 02/11] s390x/mm: Fail when an altmap is used for arch_add_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:43, David Hildenbrand wrote: > ZONE_DEVICE is not yet supported, fail if an altmap is passed, so we > don't forget arch_add_memory()/arch_remove_memory() when unlocking > support. Why do we need this? Sure ZONE_DEVICE is not supported for s390 and so might be the case for

Re: [PATCH v3 03/11] s390x/mm: Implement arch_remove_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:44, David Hildenbrand wrote: > Will come in handy when wanting to handle errors after > arch_add_memory(). I do not understand this. Why do you add a code for something that is not possible on this HW (based on the comment - is it still valid btw?) > Cc: Martin Schwidefsky

Re: [PATCH v3] Bluetooth: btrtl: HCI reset on close for Realtek BT chip

2019-07-01 Thread Daniel Drake
On Tue, Jun 25, 2019 at 4:32 PM Jian-Hong Pan wrote: > Realtek RTL8822BE BT chip on ASUS X420FA cannot be turned on correctly > after on-off several times. Bluetooth daemon sets BT mode failed when > this issue happens. Scanning must be active while turning off for this > bug to be hit. > >

Re: [PATCH 2/2] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 05:49:52PM -0700, Michel Lespinasse wrote: > - Change the definition of the RBCOMPUTE function. The propagate > callback repeatedly calls RBCOMPUTE as it moves from leaf to root. > it wants to stop recomputing once the augmented subtree information > doesn't change.

[PATCH v10 09/12] soc: mediatek: cmdq: define the instruction struct

2019-07-01 Thread Bibby Hsieh
Define an instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 103 +++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2

[PATCH v10 04/12] mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

2019-07-01 Thread Bibby Hsieh
The interrupt mask and thread number has positive correlation, so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate it by thread number. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 12 +++- 1 file changed, 7 insertions(+), 5

[PATCH v10 02/12] dt-binding: gce: add gce header file for mt8183

2019-07-01 Thread Bibby Hsieh
Add documentation for the mt8183 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8183. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- include/dt-bindings/gce/mt8183-gce.h | 177

[PATCH v10 03/12] dt-binding: gce: add binding for gce client reg property

2019-07-01 Thread Bibby Hsieh
cmdq driver provide a function that get the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-client-reg. Signed-off-by: Bibby Hsieh --- .../devicetree/bindings/mailbox/mtk-gce.txt| 18 ++ 1 file changed, 14

[PATCH v10 06/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-07-01 Thread Bibby Hsieh
GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event but not really trigger the corresponding hardware. In order to make sure that

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

2019-07-01 Thread Viresh Kumar
On 01-07-19, 13:37, Stephen Rothwell wrote: > 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_policy' has no > member named 'user_policy'; did you

[PATCH v10 12/12] arm64: dts: add gce node for mt8183

2019-07-01 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 08274bfcebd8..42b7cc9e7304 100644

[PATCH v10 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-07-01 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the cmdq_client_reg structure. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 ++ include/linux/soc/mediatek/mtk-cmdq.h | 21 +++ 2 files

[PATCH v10 01/12] dt-binding: gce: remove thread-num property

2019-07-01 Thread Bibby Hsieh
"thread-num" is an unused property so we remove it from example. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt

[PATCH v10 10/12] soc: mediatek: cmdq: add polling function

2019-07-01 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 15 + 3 files changed,

[PATCH v10 07/12] soc: mediatek: cmdq: reorder the parameter

2019-07-01 Thread Bibby Hsieh
The order of gce instructions is [subsys offset value] so reorder the parameter of cmdq_pkt_write_mask and cmdq_pkt_write function. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 6 +++--- include/linux/soc/mediatek/mtk-cmdq.h | 10 +- 2

[PATCH v10 08/12] soc: mediatek: cmdq: change the type of input parameter

2019-07-01 Thread Bibby Hsieh
According to the cmdq hardware design, the subsys is u8, the offset is u16 and the event id is u16. This patch changes the type of subsys, offset and event id to the correct type. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 10 +-

[PATCH v10 05/12] mailbox: mediatek: cmdq: support mt8183 gce function

2019-07-01 Thread Bibby Hsieh
add mt8183 compatible name for supporting gce function Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index

[PATCH v10 00/12] support gce on mt8183 platform

2019-07-01 Thread Bibby Hsieh
Changes since v8 and v9: - change the error return code in cmdq_dev_get_client_reg() Changes since v7: - remove the memory allocation out of cmdq_dev_get_client_reg() - rebase onto 5.2-rc1 Changes since v6: - remove cmdq_dev_get_event function and gce event property - separate some changes

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

2019-07-01 Thread Dmitry Torokhov
Hi Fuqian, On Mon, Jul 01, 2019 at 11:23:12AM +0800, Fuqian Huang wrote: > Using dev_get_drvdata directly. > I prefer using proper bus accessors. Thanks. -- Dmitry

[PATCH net] r8152: fix the setting of detecting the linking change for runtime suspend

2019-07-01 Thread Hayes Wang
1. Rename r8153b_queue_wake() to r8153_queue_wake(). 2. Correct the setting. The enable bit should be 0xd38c bit 0. Besides, the 0xd38a bit 0 and 0xd398 bit 8 have to be cleared for both enabled and disabled. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 38

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

2019-07-01 Thread wangxi
在 2019/7/1 12:14, 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 >

Re: [PATCH v3 05/11] drivers/base/memory: Pass a block_id to init_memory_block()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:46, David Hildenbrand wrote: > We'll rework hotplug_memory_register() shortly, so it no longer consumes > pass a section. > > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Signed-off-by: David Hildenbrand Acked-by: Michal Hocko > --- > drivers/base/memory.c | 15

Re: [PATCH v2] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-07-01 Thread Kuo-Hsin Yang
On Fri, Jun 28, 2019 at 10:32:01AM -0400, Johannes Weiner wrote: > On Fri, Jun 28, 2019 at 07:16:27PM +0800, Kuo-Hsin Yang wrote: > > Commit 2a2e48854d70 ("mm: vmscan: fix IO/refault regression in cache > > workingset transition") introduced actual_reclaim parameter. When file > > refaults are

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

2019-07-01 Thread Daniel Drake
On Mon, Jun 17, 2019 at 2:56 PM Chris Chiu wrote: > With this commit, the tx rate of each data and qos data packet will > be 39Mbps (MCS4) with the 0xF0 as the tx rate mask. The 20th bit > to 23th bit means MCS4 to MCS7. It means that the firmware still picks > the lowest rate from the rate

Re: [PATCH] dmaengine: at_xdmac: check for non-empty xfers_list before invoking callback

2019-07-01 Thread Ludovic Desroches
On Sat, Jun 29, 2019 at 01:50:48PM +0530, Raag Jadav wrote: > > tx descriptor retrieved from an empty xfers_list may not have valid > pointers to the callback functions. > Avoid calling dmaengine_desc_get_callback_invoke if xfers_list is empty. > > Signed-off-by: Raag Jadav Acked-by: Ludovic

Re: [Kernel BUG?] SMSW operation get success on UMIP KVM guest

2019-07-01 Thread Thomas Gleixner
On Mon, 1 Jul 2019, Li Wang wrote: > Hello there, > > LTP/umip_basic_test get failed on KVM UMIP system(kernel-v5.2-rc4.x86_64). > The test is only trying to do > asm volatile("smsw %0\n" : "=m" (val)); > and expect to get SIGSEGV in this SMSW operation, but it exits with 0 > unexpectedly.

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-01 Thread Viresh Kumar
On 28-06-19, 18:16, Subhra Mazumdar wrote: > > On 6/25/19 10:06 PM, Viresh Kumar wrote: > > We try to find an idle CPU to run the next task, but in case we don't > > find an idle CPU it is better to pick a CPU which will run the task the > > soonest, for performance reason. > > > > A CPU which

Re: [PATCH 0/3] Marvell HCI fixes and serdev support

2019-07-01 Thread Sascha Hauer
Hi, On Fri, Jun 14, 2019 at 09:23:48AM +0200, Sascha Hauer wrote: > First two patches are a fix for the Marvell HCI driver which fails to > properly upload the firmware. Third patch adds simple serdev support > to the driver. > > Sascha > > Sascha Hauer (3): > Bluetooth: hci_ldisc: Add

Re: [PATCH] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Fri, 28 Jun 2019 09:56:08 -0600 Alex Williamson wrote: > On Thu, 27 Jun 2019 10:19:14 +0200 > Cornelia Huck wrote: > > > On Wed, 26 Jun 2019 08:27:58 -0600 > > Alex Williamson wrote: > > > @@ -243,6 +247,8 @@ void mdev_unregister_device(struct device *dev) > > > up_write(>unreg_sem); >

Re: nvmem creates multiple devices with the same name

2019-07-01 Thread Sascha Hauer
Hi Srinivas, On Tue, May 21, 2019 at 11:21:07AM +0200, Sascha Hauer wrote: > On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: > > > > > > On 21/05/2019 09:56, Sascha Hauer wrote: > > > . Are there any suggestions how to register the nvmem devices > > > with a different name?

Re: [PATCH next] sysctl: add proc_dointvec_jiffies_minmax to limit the min/max write value

2019-07-01 Thread Zhiqiang Liu
friendly ping ... On 2019/6/4 23:27, Zhiqiang Liu wrote: >> On Wed, May 15, 2019 at 10:53:55PM +0800, Zhiqiang Liu wrote: >> >> (Please include akpm on CC for next versions of this, as he's likely >> the person to take this patch.) > Thanks for your advice. And sorry to reply you so late. >

Re: [PATCH v10 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-07-01 Thread CK Hu
Hi, Bibby: On Mon, 2019-07-01 at 15:48 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, this function > can help cmdq client to get the cmdq_client_reg structure. > Reviewed-by: CK Hu > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 28

Re: [PATCH] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Thu, 27 Jun 2019 19:42:32 +0530 Kirti Wankhede wrote: > On 6/27/2019 1:51 PM, Cornelia Huck wrote: > > On Thu, 27 Jun 2019 00:33:59 +0530 > > Kirti Wankhede wrote: > > > >> On 6/26/2019 11:35 PM, Alex Williamson wrote: > >>> On Wed, 26 Jun 2019 23:23:00 +0530 > >>> Kirti Wankhede

[PATCH] mm: vmscan: scan anonymous pages on file refaults

2019-07-01 Thread Kuo-Hsin Yang
When file refaults are detected and there are many inactive file pages, the system never reclaim anonymous pages, the file pages are dropped aggressively when there are still a lot of cold anonymous pages and system thrashes. This issue impacts the performance of applications with large

Re: [PATCH] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Wed, 26 Jun 2019 08:27:58 -0600 Alex Williamson wrote: > This allows udev to trigger rules when a parent device is registered > or unregistered from mdev. > > Signed-off-by: Alex Williamson > --- > drivers/vfio/mdev/mdev_core.c | 10 -- > 1 file changed, 8 insertions(+), 2

Re: WARNING in is_bpf_text_address

2019-07-01 Thread Dmitry Vyukov
On Fri, Jun 28, 2019 at 5:17 PM Bart Van Assche wrote: > > On 6/28/19 6:05 AM, syzbot wrote: > > syzbot has bisected this bug to: > > > > commit a0b0fd53e1e67639b303b15939b9c653dbe7a8c4 > > Author: Bart Van Assche > > Date: Thu Feb 14 23:00:46 2019 + > > > > locking/lockdep: Free lock

[PATCH v3 0/1] iio: common: cros_ec_sensors: Add protocol v3 support

2019-07-01 Thread Fabien Lahoudere
This patch is part of a split of the following patch: https://lkml.org/lkml/2019/6/18/268 To fix Enric comments from https://lkml.org/lkml/2019/6/25/949 I extract it from the other serie to speed up acceptance because other patches need it to be upstreamed. Changes since v2: - Use patch 1 from v1

[PATCH v3 1/1] iio: common: cros_ec_sensors: determine protocol version

2019-07-01 Thread Fabien Lahoudere
This patch adds a function to determine which version of the protocol is used to communicate with EC. Signed-off-by: Fabien Lahoudere Signed-off-by: Nick Vaccaro Reviewed-by: Gwendal Grignou Tested-by: Gwendal Grignou --- .../cros_ec_sensors/cros_ec_sensors_core.c| 36 ++-

Re: [PATCH v3 07/11] mm/memory_hotplug: Create memory block devices after arch_add_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:48, David Hildenbrand wrote: > Only memory to be added to the buddy and to be onlined/offlined by > user space using /sys/devices/system/memory/... needs (and should have!) > memory block devices. > > Factor out creation of memory block devices. Create all devices after >

[PATCH v2 2/4] regulator: add support for the stm32-booster

2019-07-01 Thread Fabrice Gasnier
Add support for the 3.3V booster regulator embedded in stm32h7 and stm32mp1 devices, that can be used to supply ADC analog input switches. This regulator is supplied by vdda. It's controlled by using SYSCFG: - STM32H7 has a unique register to set/clear the booster enable bit - STM32MP1 has

[PATCH v2 3/4] ARM: multi_v7_defconfig: enable STM32 booster regulator

2019-07-01 Thread Fabrice Gasnier
This enables the driver for STM32 booster regulator found on stm32mp1. Signed-off-by: Fabrice Gasnier --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 6b748f2..230e7e0

Re: [PATCH v3 08/11] mm/memory_hotplug: Drop MHP_MEMBLOCK_API

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:49, David Hildenbrand wrote: > No longer needed, the callers of arch_add_memory() can handle this > manually. > > Cc: Andrew Morton > Cc: David Hildenbrand > Cc: Michal Hocko > Cc: Oscar Salvador > Cc: Pavel Tatashin > Cc: Wei Yang > Cc: Joonsoo Kim > Cc: Qian Cai >

[PATCH v2 1/4] dt-bindings: regulator: add support for the stm32-booster

2019-07-01 Thread Fabrice Gasnier
Document the 3.3V booster regulator embedded in stm32h7 and stm32mp1 devices, that can be used to supply ADC analog input switches. It's controlled by using system configuration registers (SYSCFG). Introduce two compatibles as the booster regulator is controlled by: - a unique register/bit in

[PATCH v2 0/4] regulator: add support for the STM32 ADC booster

2019-07-01 Thread Fabrice Gasnier
Add support for the 3.3V booster regulator embedded in stm32h7 and stm32mp1 devices, that can be used to supply ADC analog input switches. It's useful to reach full ADC performance when their supply is below 2.7V (vdda by default). Changes in v2: - rebase on top of for-next branch Fabrice

[PATCH v2 4/4] ARM: dts: stm32: add booster for ADC analog switches on stm32mp157c

2019-07-01 Thread Fabrice Gasnier
Booster for ADC analog input switches can be used when Vdda is below 2.7V to get maximum ADC analog performances. Add booster for ADC analog switches on stm32mp157c. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH v3 7/7] Input: add IOC3 serio driver

2019-07-01 Thread Dmitry Torokhov
Hi Thomas, On Thu, Jun 13, 2019 at 07:06:33PM +0200, Thomas Bogendoerfer wrote: > This patch adds a platform driver for supporting keyboard and mouse > interface of SGI IOC3 chips. > > Signed-off-by: Thomas Bogendoerfer > --- > drivers/input/serio/Kconfig | 10 +++ >

Re: [PATCH v2] Input: atmel_mxt_ts - fix -Wunused-const-variable

2019-07-01 Thread Dmitry Torokhov
On Thu, Jun 13, 2019 at 11:26:41AM -0700, Nick Desaulniers wrote: > On Thu, Jun 13, 2019 at 11:24 AM 'Nathan Huckleberry' via Clang Built > Linux wrote: > > Changes from v1 -> v2 > > * Moved definition of mxt_video_fops into existing ifdef > > Thanks for the v2. > Reviewed-by: Nick Desaulniers

Re: [PATCH 1/2 RESEND3] perf/x86/amd/uncore: Do not set ThreadMask and SliceMask for non-L3 PMCs

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 09:59:20PM +, Phillips, Kim wrote: > From: Kim Phillips > > Commit d7cbbe49a930 ("perf/x86/amd/uncore: Set ThreadMask and SliceMask > for L3 Cache perf events") enables L3 PMC events for all threads and > slices by writing 1s in ChL3PmcCfg (L3 PMC PERF_CTL) register

Re: [PATCH] locking/lockdep: clean up #ifdef checks

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 12:03:54PM +0100, Will Deacon wrote: > Hi Arnd, > > On Fri, Jun 28, 2019 at 12:29:03PM +0200, Arnd Bergmann wrote: > > As Will Deacon points out, CONFIG_PROVE_LOCKING implies TRACE_IRQFLAGS, > > so the conditions I added in the previous patch, and some others in the > >

Re: [PATCH] media: davinci-vpbe: remove obsolete includes

2019-07-01 Thread Lad, Prabhakar
Hi Arnd, Thank you for the patch. On Fri, Jun 28, 2019 at 11:51 AM Arnd Bergmann wrote: > > The driver builds fine without these, and they cause build > problems once davinci multiplatform support is enabled. > > Signed-off-by: Arnd Bergmann > --- >

kernel panic: corrupted stack end in dput

2019-07-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7b75e49d net: dsa: mv88e6xxx: wait after reset deactivation git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=10f51b13a0 kernel config: https://syzkaller.appspot.com/x/.config?x=e7c31a94f66cc0aa

INFO: task hung in exit_mm

2019-07-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:249155c2 Merge branch 'parisc-5.2-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1306be61a0 kernel config: https://syzkaller.appspot.com/x/.config?x=9a31528e58cc12e2

[PATCH v3 2/2] drivers/staging/rtl8192u: style nonstyled comments

2019-07-01 Thread Christian Müller
The coding-styles.rst states, that multiline comments should allways contain a leading "*" in each line. For multiline comments in general they /* * should look * like this. */ For multiline comments in either net/ or drivers/net/ however, they should /* omit * the first * empty line. */

[PATCH v3 1/2] drivers/staging/rtl8192u: drop first comment line

2019-07-01 Thread Christian Müller
As stated in coding-styles.rst multiline comments should be structured in a way, that the actual comment starts on the second line of the commented portion. E.g: /* * Multiline comments * should look like * this. */ However, there is an exception to files in drivers/net/ and net/, where

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

2019-07-01 Thread Daniel Drake
Hi Chris, On Thu, Jun 27, 2019 at 5:53 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

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

2019-07-01 Thread Peter Zijlstra
On Mon, Jul 01, 2019 at 08:52:33AM +0200, Juri Lelli wrote: > 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

[PATCH v2] media: xilinx: fix leaked of_node references

2019-07-01 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: drivers/media/platform/xilinx/xilinx-vipp.c:487:3-9: ERROR: missing of_node_put; acquired a node

  1   2   3   4   5   6   7   8   9   >