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

2019-08-18 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 +- include/l

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

2019-08-18 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 8fddd26288e8..69daaadc3a

Re: [PATCH v2 0/3] HID: intel-ish-hid: support s2idle and s3 in ish_suspend()

2019-08-18 Thread Srinivas Pandruvada
On Thu, 2019-08-08 at 18:21 +0800, Zhang Lixu wrote: > Currently, the NO_D3 flag is set in ish_probe(), the intel-ish-ipc > driver > puts the ISH into D0i3 when system enter both suspend-to-idle(S0ix) > and > suspend-to-mem(S3). These patches are to put the ISH into D3 when > system > enter S3 and

[GIT] Networking

2019-08-18 Thread David Miller
1) Fix jmp to 1st instruction in x64 JIT, from Alexei Starovoitov. 2) Severl kTLS fixes in mlx5 driver, from Tariq Toukan. 3) Fix severe performance regression due to lack of SKB coalescing of fragments during local delivery, from Guillaume Nault. 4) Error path memory leak in sch_taprio, fr

[PATCH v2] mtd: rawnand: Fix a memory leak bug

2019-08-18 Thread Wenwen Wang
In nand_scan_bbt(), a temporary buffer 'buf' is allocated through vmalloc(). However, if check_create() fails, 'buf' is not deallocated, leading to a memory leak bug. To fix this issue, free 'buf' before returning the error. Signed-off-by: Wenwen Wang --- drivers/mtd/nand/raw/nand_bbt.c | 10 +++

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 15:03, Greg KH wrote: On Fri, Aug 16, 2019 at 08:39:25AM +0200, Borislav Petkov wrote: On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: The first three patches are the changes under x86/acrn, which adds the required APIs for the driver and reports the X2APIC caps. T

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Paul E. McKenney
On Sun, Aug 18, 2019 at 09:46:23PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 09:41:43PM -0400, Joel Fernandes wrote: > > On Sun, Aug 18, 2019 at 06:21:53PM -0700, Paul E. McKenney wrote: > [snip] > > > > > Also, your commit log's point #2 is "in_irq() implies in_interrupt() > > > > > w

Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-08-18 Thread Sinan Kaya
On 8/12/2019 10:31 AM, Mika Westerberg wrote: > +int pciehp_card_present_or_link_active(struct controller *ctrl) > { > - return pciehp_card_present(ctrl) || pciehp_check_link_active(ctrl); > + int ret; > + > + ret = pciehp_card_present(ctrl); > + if (ret) > + return ret

Re: [PATCH V2 04/10] cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier

2019-08-18 Thread Viresh Kumar
On 09-08-19, 11:01, Rafael J. Wysocki wrote: > On Fri, Aug 9, 2019 at 4:34 AM Viresh Kumar wrote: > > > > On 23-07-19, 11:44, Viresh Kumar wrote: > > > The cpufreq core now takes the min/max frequency constraints via QoS > > > requests and the CPUFREQ_ADJUST notifier shall get removed later on. >

Re: How to turn scheduler tick on for current nohz_full CPU?

2019-08-18 Thread Paul E. McKenney
On Tue, Jul 30, 2019 at 10:36:37AM -0700, Paul E. McKenney wrote: > On Tue, Jul 30, 2019 at 06:43:10PM +0200, Frederic Weisbecker wrote: > > On Mon, Jul 29, 2019 at 03:32:38PM -0700, Paul E. McKenney wrote: > > > On Wed, Jul 24, 2019 at 06:12:43PM -0700, Paul E. McKenney wrote: > > > > > > The pat

RE: [EXT] Re: [v2 1/3] dt/bindings: clk: Add YAML schemas for LS1028A Display Clock bindings

2019-08-18 Thread Wen He
> -Original Message- > From: Stephen Boyd > Sent: 2019年8月17日 1:47 > To: Mark Rutland ; Michael Turquette > ; Rob Herring ; Shawn Guo > ; Wen He ; > devicet...@vger.kernel.org; linux-...@vger.kernel.org; > linux-de...@linux.nxdi.nxp.com; linux-kernel@vger.kernel.org > Cc: Leo Li ; liviu.d

Re: [PATCH RESEND v4 5/9] KVM: VMX: Add init/set/get functions for SPP

2019-08-18 Thread Yang Weijiang
On Fri, Aug 16, 2019 at 11:19:46AM -0700, Jim Mattson wrote: > On Fri, Aug 16, 2019 at 6:29 AM Yang Weijiang wrote: > > > Thanks Jim and Sean! Could we add a new flag in kvm to identify if nested > > VM is on > > or off? That would make things easier. When VMLAUNCH is trapped, > > set the flag,

Re: [PATCH 2/2] clk: Add support for AST2600 SoC

2019-08-18 Thread Joel Stanley
On Fri, 16 Aug 2019 at 17:14, Stephen Boyd wrote: > > Quoting Joel Stanley (2019-08-16 08:58:06) > > diff --git a/drivers/clk/clk-ast2600.c b/drivers/clk/clk-ast2600.c > > new file mode 100644 > > index ..083d5299238c > > --- /dev/null > > +++ b/drivers/clk/clk-ast2600.c > > @@ -0,0 +1

Re: [RFC V2 10/11] interconnect: mediatek: Add mt8183 interconnect provider driver

2019-08-18 Thread Henry Chen
Hi Georgi, Sorry for late reply. On Tue, 2019-05-14 at 09:43 +0300, Georgi Djakov wrote: > Hi Henry, > > On 4/30/19 11:51, Henry Chen wrote: > > Introduce Mediatek MT8183 specific provider driver using the > > interconnect framework. > > > > Signed-off-by: Henry Chen > > --- > > drivers/inter

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 14:39, Borislav Petkov wrote: On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: The first three patches are the changes under x86/acrn, which adds the required APIs for the driver and reports the X2APIC caps. The remaining patches add the ACRN driver module, which acc

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 09:41:43PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 06:21:53PM -0700, Paul E. McKenney wrote: [snip] > > > > Also, your commit log's point #2 is "in_irq() implies in_interrupt() > > > > which implies raising softirq will not do any wake ups." This mention > >

[PATCH v2] arch : arm : add a criteria for pfn_valid

2019-08-18 Thread Zhaoyang Huang
From: Zhaoyang Huang pfn_valid can be wrong when parsing a invalid pfn whose phys address exceeds BITS_PER_LONG as the MSB will be trimed when shifted. Signed-off-by: Zhaoyang Huang --- v2: use __pfn_to_phys/__phys_to_pfn instead of max_pfn as the criteria --- arch/arm/mm/init.c | 5 + 1 f

Re: [RFC V2 09/11] dt-bindings: interconnect: Add header for interconnect node

2019-08-18 Thread Henry Chen
On Wed, 2019-05-01 at 15:28 -0500, Rob Herring wrote: > On Tue, Apr 30, 2019 at 04:51:03PM +0800, Henry Chen wrote: > > Add header file for mt8183 interconnect node that could be shared between > > the interconeect provider driver and Device Tree source files. > > > > Signed-off-by: Henry Chen >

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 06:21:53PM -0700, Paul E. McKenney wrote: > On Sun, Aug 18, 2019 at 07:38:39PM -0400, Joel Fernandes wrote: > > On Sun, Aug 18, 2019 at 04:31:35PM -0700, Paul E. McKenney wrote: > > > On Sun, Aug 18, 2019 at 06:35:11PM -0400, Joel Fernandes wrote: > > > > On Sun, Aug 18, 201

Re: [RFC V2 08/11] dt-bindings: interconnect: add MT8183 interconnect dt-bindings

2019-08-18 Thread Henry Chen
Hi Rob, Sorry for late reply. On Wed, 2019-05-01 at 15:27 -0500, Rob Herring wrote: > On Tue, Apr 30, 2019 at 04:51:02PM +0800, Henry Chen wrote: > > Add interconnect provider dt-bindings for MT8183. > > > > Signed-off-by: Henry Chen > > --- > > .../bindings/interconnect/mtk,mt8183.txt

KMSAN: uninit-value in gp8psk_power_ctrl

2019-08-18 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f75e4cfe kmsan: use kmsan_handle_urb() in urb.c git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=158867eea0 kernel config: https://syzkaller.appspot.com/x/.config?

[PATCH] sock: fix potential memory leak in proto_register()

2019-08-18 Thread zhanglin
If protocols registered exceeded PROTO_INUSE_NR, prot will be added to proto_list, but no available bit left for prot in proto_inuse_idx. Signed-off-by: zhanglin --- net/core/sock.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/net/core/sock.c b/net/c

Re: [RFC V2 06/11] soc: mediatek: add MT8183 dvfsrc support

2019-08-18 Thread Henry Chen
On Mon, 2019-06-10 at 14:00 -0700, Ryan Case wrote: Hi Ryan, Sorry for late reply. > Hi Henry, > > On Tue, Apr 30, 2019 at 2:45 AM Henry Chen wrote: > > > > Add dvfsrc driver for MT8183 > > > > Signed-off-by: Henry Chen > > --- > > drivers/soc/mediatek/Kconfig | 15 ++ > > drivers/soc/m

[PATCH v2] arch : arm : add a criteria for pfn_valid

2019-08-18 Thread Zhaoyang Huang
From: Zhaoyang Huang pfn_valid can be wrong when parsing a invalid pfn whose phys address exceeds BITS_PER_LONG as the MSB will be trimed when shifted. Signed-off-by: Zhaoyang Huang --- arch/arm/mm/init.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm

Re: [PATCH linux-next] qcom: qcs404: remove COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404

2019-08-18 Thread maowenan
On 2019/8/18 9:09, Stephen Boyd wrote: > Quoting Mao Wenan (2019-08-15 00:48:48) >> There is one compilation error when CONFIG_INTERCONNECT_QCOM_QCS404=y and >> CONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well as CONFIG_COMPILE_TEST=y, >> but CONFIG_QCOM_SMD_RPM is not set, logs as below: >> >> drive

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Paul E. McKenney
On Sun, Aug 18, 2019 at 07:38:39PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 04:31:35PM -0700, Paul E. McKenney wrote: > > On Sun, Aug 18, 2019 at 06:35:11PM -0400, Joel Fernandes wrote: > > > On Sun, Aug 18, 2019 at 06:32:30PM -0400, Joel Fernandes wrote: > > > > On Sun, Aug 18, 2019

Re: [PATCH] iio: adc: sc27xx: Change to polling mode to read data

2019-08-18 Thread Baolin Wang
On Mon, 19 Aug 2019 at 03:27, Jonathan Cameron wrote: > > On Mon, 12 Aug 2019 10:37:44 +0800 > Baolin Wang wrote: > > > On Sun, 11 Aug 2019 at 16:03, Jonathan Cameron wrote: > > > > > > On Tue, 6 Aug 2019 15:39:45 +0800 > > > Baolin Wang wrote: > > > > > > > Hi Jonathan, > > > > > > > > On Mon,

RE: [PATCH] clk: imx8mn: fix int pll clk gate

2019-08-18 Thread Peng Fan
Hi Stephen, > Subject: Re: [PATCH] clk: imx8mn: fix int pll clk gate > > Quoting peng@nxp.com (2019-08-13 18:53:12) > > From: Peng Fan > > > > To Frac pll, the gate shift is 13, however to Int PLL the gate shift > > is 11. > > > > Cc: > > Fixes: 96d6392b54db ("clk: imx: Add support for i.MX

Re: Why the edge-triggered mode doesn't work for epoll file descriptor?

2019-08-18 Thread Heiher
On Sun, Aug 18, 2019 at 12:36 AM Heiher wrote: > > Hello, > > I've added a pipe file descriptor (fd1) to an epoll (fd3) with > EPOLLOUT in edge-triggered mode, and then added the fd3 to another > epoll (fd4) with EPOLLIN in edge-triggered too. > > Next, waiting for fd4 without timeout. When fd1 to

Re: [PATCH V1 1/1] serial: 8250_pci: Add F81504A series Support

2019-08-18 Thread Ji-Ze Hong (Peter Hong)
Hi, Andy Shevchenko 於 2019/8/16 下午 07:26 寫道: On Fri, Aug 16, 2019 at 01:27:29PM +0800, Ji-Ze Hong (Peter Hong) wrote: Fintek F81504A/508A/512A is PCIE to 4/8/12 UARTs device. It's support IO/MMIO/PCIE conf to access all functions. The old F81504/508/512 is only support IO. We have 8250_fintek

[GIT PULL] FPGA Manager (late) change for 5.3-rc6

2019-08-18 Thread Moritz Fischer
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga.git/ tags/fpga-fixes-for-5.3 for you to fetch changes up to dec43da46f

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

2019-08-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the fsverity tree got a conflict in: fs/f2fs/file.c between commits: d9a94abb3380 ("f2fs: support FS_IOC_{GET,SET}FSLABEL") 546155f73637 ("f2fs: Support case-insensitive file name lookups") from the f2fs tree and commit: 95ae251fe828 ("f2fs: add fs-

Re: [PATCH v2] arm: dts: rockchip: fix vcc_host_5v regulator for usb3 host

2019-08-18 Thread Kever Yang
Hi Heiko, On 2019/8/16 下午8:24, Heiko Stuebner wrote: Hi Kever, TL, [added TL Lim for clarification] Am Donnerstag, 15. August 2019, 10:12:52 CEST schrieb Kever Yang: According to rock64 schemetic V2 and V3, the VCC_HOST_5V output is controlled by USB_20_HOST_DRV, which is the same as VCC_HOST

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-18 Thread Andrew Lunn
> Yes, I believe the integration is neccessary. Using same binding is > neccessary for that, but not sufficient. For example, we need > compatible trigger names, too. Hi Pavel Please could you explain what you mean by compatible trigger names? > So... I'd really like to see proper integration is

Re: [PATCH v6 1/4] dt-bindings: net: phy: Add subnode for LED configuration

2019-08-18 Thread Andrew Lunn
On Fri, Aug 16, 2019 at 03:04:11PM -0700, Matthias Kaehlcke wrote: > On Fri, Aug 16, 2019 at 10:13:38PM +0200, Pavel Machek wrote: > > Hi! > > > > Please Cc led mailing lists on led issues. > > sorry for missing this > > > On Tue 2019-08-13 12:11:44, Matthias Kaehlcke wrote: > > > The LED behavi

linux-next: manual merge of the fsverity tree with the ext4 tree

2019-08-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the fsverity tree got a conflict in: fs/ext4/ioctl.c between commits: b0c013e2928d ("ext4: add a new ioctl EXT4_IOC_CLEAR_ES_CACHE") 1ad3ea6e0a69 ("ext4: add a new ioctl EXT4_IOC_GETSTATE") bb5835edcdf8 ("ext4: add new ioctl EXT4_IOC_GET_ES_CACHE") f

Re: [PATCH v2] toshiba: Add correct printk log level while emitting error log

2019-08-18 Thread Joe Perches
On Sun, 2019-08-18 at 13:04 +0530, Rishi Gupta wrote: > The printk functions are invoked without specifying required > log level when printing error messages. This commit replaces > all direct uses of printk with their corresponding pr_err/info/debug > variant. Mostly I wonder if CONFIG_TOSHIBA ne

linux-next: manual merge of the ext4 tree with the fscrypt tree

2019-08-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the ext4 tree got a conflict in: fs/ext4/ioctl.c between commit: 29b3692e6dbf ("ext4: wire up new fscrypt ioctls") from the fscrypt tree and commits: b0c013e2928d ("ext4: add a new ioctl EXT4_IOC_CLEAR_ES_CACHE") 1ad3ea6e0a69 ("ext4: add a new ioctl

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 04:31:35PM -0700, Paul E. McKenney wrote: > On Sun, Aug 18, 2019 at 06:35:11PM -0400, Joel Fernandes wrote: > > On Sun, Aug 18, 2019 at 06:32:30PM -0400, Joel Fernandes wrote: > > > On Sun, Aug 18, 2019 at 03:12:10PM -0700, Paul E. McKenney wrote: > > > > On Sun, Aug 18, 201

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Paul E. McKenney
On Sun, Aug 18, 2019 at 06:35:11PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 06:32:30PM -0400, Joel Fernandes wrote: > > On Sun, Aug 18, 2019 at 03:12:10PM -0700, Paul E. McKenney wrote: > > > On Sun, Aug 18, 2019 at 05:49:48PM -0400, Joel Fernandes (Google) wrote: > > > > When we're i

[PATCH] media: saa7134: keep demod i2c gate open on Medion 7134

2019-08-18 Thread Maciej S. Szmigiero
Medion 7134 has two i2c eeproms on the same i2c bus sharing the same bus addresses: the first one for SAA7134 chip config and the second one behind TDA10046 DVB-T demod chip i2c gate storing its firmware. The TV tuner on this board is not behind this i2c gate. Due to the bus conflict described abo

Re: [PATCH v3] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-18 Thread Mark Balantzyan
Hi Julian, all, I submitted a patch v4 following Julian's review. A function such as "mptctl_do_mpt_command" I don't think is a setup function and so the race condition (likelihood) remains. Again, this was mainly concerning the usage of "mptctl_id" variable in the driver. My objective was jus

[PATCH v4] lsilogic mpt fusion: mptctl: Fixed race condition in mptctl.ko concerning mptctl_id variable among parallel functions variable among parallel functions

2019-08-18 Thread Mark Balantzyan
Certain functions in the driver, such as mptctl_do_fw_download() and mptctl_do_mpt_command(), rely on the instance of mptctl_id, which does the id-ing. There is race condition possible when these functions operate in concurrency. Via, mutexes and global/local variable setting, the functions are mu

[no subject]

2019-08-18 Thread joe akaba
Hello My name is Joe Akaba I am a lawyer by profession. I wish to offer you the next of kin to my client. You will inherit the sum of ($8.5 Million) dollars my client left in the bank before his death. My client is a citizen of your country who died in auto crash with his wife and only son. I wil

Re: [BUG] removing and reinserting imx-media causes kernel to explode

2019-08-18 Thread Steve Longerbeam
On 8/14/19 2:25 AM, Russell King - ARM Linux admin wrote: I just did this: rmmod imx-media modprobe imx-media and was greeted by the below kernel messages. Yes this needs fixing, the CSI needs to check first that it is already registered before going through the ->registered() steps. Post

Greetings From Mr. Soumaila Sorgho

2019-08-18 Thread Mr Soumaila Sorgho
-- Greetings From Mr. Soumaila Sorgho I have a Mutual/Beneficial Business Project that would be beneficial to you. I only have two questions to ask of you, if you are interested. 1. Can you handle this project? 2. Can I give you this trust? Please note that the deal requires high level of m

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 06:32:30PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 03:12:10PM -0700, Paul E. McKenney wrote: > > On Sun, Aug 18, 2019 at 05:49:48PM -0400, Joel Fernandes (Google) wrote: > > > When we're in hard interrupt context in rcu_read_unlock_special(), we > > > can stil

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 03:12:10PM -0700, Paul E. McKenney wrote: > On Sun, Aug 18, 2019 at 05:49:48PM -0400, Joel Fernandes (Google) wrote: > > When we're in hard interrupt context in rcu_read_unlock_special(), we > > can still benefit from invoke_rcu_core() doing wake ups of rcuc > > threads when

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-18 Thread VMware
On 8/18/19 10:19 PM, Borislav Petkov wrote: On Sun, Aug 18, 2019 at 04:33:14PM +0200, Thomas Hellström (VMware) wrote: From: Thomas Hellstrom This is intended to be used by drivers using the backdoor, and we follow the kvm example using alternatives self-patching to choose between vmcall, vmmc

Re: [PATCH v2] wimax/i2400m: fix a memory leak bug

2019-08-18 Thread Perez-Gonzalez, Inaky
This driver should be orphaned. While I can’t certainly say nobody is using it, the HW has not been sold for years and it hasn’t been brought to current LK standards. If your assesment is the code shall not be used, it’s then another argument towards disconnecting it. > On Aug 18, 2019, at

Re: [PATCH v9 02/22] pinctrl: tegra: Flush pinctrl writes during resume

2019-08-18 Thread Linus Walleij
On Fri, Aug 16, 2019 at 9:42 PM Sowjanya Komatineni wrote: > This patch adds pinctrl register read to flush all the prior pinctrl > writes and then adds barrier for pinctrl register read to complete > during resume to make sure all pinctrl changes are effective. > > Acked-by: Thierry Reding > Re

Re: [PATCH v9 01/22] pinctrl: tegra: Fix write barrier placement in pmx_writel

2019-08-18 Thread Linus Walleij
On Fri, Aug 16, 2019 at 9:42 PM Sowjanya Komatineni wrote: > > pmx_writel uses writel which inserts write barrier before the > register write. > > This patch has fix to replace writel with writel_relaxed followed > by a readback and memory barrier to ensure write operation is > completed for succe

Re: [PATCH 2/2] arm64: dts: allwinner: h6: Introduce Tanix TX6 board

2019-08-18 Thread Clément Péron
Hi, On Sun, 18 Aug 2019 at 21:00, Jernej Škrabec wrote: > > Dne nedelja, 18. avgust 2019 ob 20:42:49 CEST je kbuild test robot napisal(a): > > Hi Jernej, > > > > Thank you for the patch! Yet something to improve: > > > > [auto build test ERROR on linus/master] > > [cannot apply to v5.3-rc4 next-2

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Paul E. McKenney
On Sun, Aug 18, 2019 at 05:49:48PM -0400, Joel Fernandes (Google) wrote: > When we're in hard interrupt context in rcu_read_unlock_special(), we > can still benefit from invoke_rcu_core() doing wake ups of rcuc > threads when the !use_softirq parameter is passed. This is safe > to do so because: >

Re: [PATCH 1/2] PTP: introduce new versions of IOCTLs

2019-08-18 Thread Joe Perches
On Sun, 2019-08-18 at 13:11 -0700, Richard Cochran wrote: > On Sat, Aug 17, 2019 at 09:17:20AM -0700, Joe Perches wrote: > > Is there a case where this initialization is > > unnecessary such that it impacts performance > > given the use in ptp_ioctl? > > None of these ioctls are sensitive WRT perf

[PATCH 1/2] rtc: class: add debug message when registration fails

2019-08-18 Thread Alexandre Belloni
Add a message when __rtc_register_device fails because rtc->ops is NULL. This may only happen when developing a new driver so use dev_dbg to avoid compiling it in by default. Signed-off-by: Alexandre Belloni --- drivers/rtc/class.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -

[PATCH 2/2] rtc: remove superfluous error message

2019-08-18 Thread Alexandre Belloni
The RTC core now has error messages in case of registration failure, there is no need to have other messages in the drivers. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-88pm80x.c | 5 ++--- drivers/rtc/rtc-ab-eoz9.c | 24 drivers/rtc/rtc-ac1

[PATCH] rtc: ds1672: remove unnecessary check

2019-08-18 Thread Alexandre Belloni
The rtc pointer is already checked earlier, it is not necessary to check it again. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1672.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c index e9e8d02743ee..9da84df9f152 100644 --- a

Linux 5.3-rc5

2019-08-18 Thread Linus Torvalds
Another week, another -rc. It's been calm, and nothing here stands out, except perhaps some of the VM noise where we un-reverted some changes wrt node-local vs hugepage allocations. The rest is the usual driver fixes (usb, sound, nvme, habanalabs, rdma..) some arch updates (arm64 and x86) along w

[RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes (Google)
When we're in hard interrupt context in rcu_read_unlock_special(), we can still benefit from invoke_rcu_core() doing wake ups of rcuc threads when the !use_softirq parameter is passed. This is safe to do so because: 1. We avoid the scheduler deadlock issues thanks to the deferred_qs bit introduce

[RFC] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes (Google)
When we're in hard interrupt context in rcu_read_unlock_special(), we can still benefit from invoke_rcu_core() doing wake ups of rcuc threads when the !use_softirq parameter is passed. This is safe to do so because: 1. We avoid the scheduler deadlock issues thanks to the deferred_qs bit introduce

Re: [PATCH] mtd: rawnand: Fix a memory leak bug

2019-08-18 Thread kbuild test robot
Hi Wenwen, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc4 next-20190816] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wen

linux-next: Fixes tag needs some work in the net tree

2019-08-18 Thread Stephen Rothwell
Hi all, In commit dd2ebf3404c7 ("bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails") Fixes tag Fixes: cb4d1d626145 ("bnxt_en: Retry failed NVM_INSTALL_UPDATE with defragmentation flag enabled.") has these problem(s): - Subject does not match target commit subject Ju

Re: [PATCH 28/79] libperf: Add perf_cpu_map struct

2019-08-18 Thread Guenter Roeck
On Sun, Aug 18, 2019 at 09:40:32PM +0200, Jiri Olsa wrote: > On Sun, Aug 18, 2019 at 07:04:36AM -0700, Guenter Roeck wrote: > > On Sun, Jul 21, 2019 at 01:24:15PM +0200, Jiri Olsa wrote: > > > Adding perf_cpu_map struct into libperf. > > > > > > It's added as a declaration into into: > > > inclu

Re: [PATCH net-next] net: hns: add phy_attached_info() to the hns driver

2019-08-18 Thread David Miller
From: Yonglong Liu Date: Sat, 17 Aug 2019 10:21:17 +0800 > This patch adds the call to phy_attached_info() to the hns driver > to identify which exact PHY drivers is in use. > > Suggested-by: Heiner Kallweit > Signed-off-by: Yonglong Liu Applied.

Re: [PATCH v2] wimax/i2400m: fix a memory leak bug

2019-08-18 Thread David Miller
From: Wenwen Wang Date: Thu, 15 Aug 2019 15:29:51 -0500 > In i2400m_barker_db_init(), 'options_orig' is allocated through kstrdup() > to hold the original command line options. Then, the options are parsed. > However, if an error occurs during the parsing process, 'options_orig' is > not dealloca

Re: [GIT PULL] MTD fixes for 5.3-rc5

2019-08-18 Thread pr-tracker-bot
The pull request you sent on Sun, 18 Aug 2019 21:45:14 +0200 (CEST): > git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git > tags/fixes-for-5.3-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6825e5a6c45dbd473f8b2993a065bbea15347632 Thank you! -- Deet-do

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-18 Thread Borislav Petkov
On Sun, Aug 18, 2019 at 10:19:42PM +0200, Borislav Petkov wrote: > #define X86_FEATURE_VMW_VMCALL( 8*32+18) /* "" VMware prefers > VMCALL hypercall instruction */ And you can call that one something generic too: X86_FEATURE_VMCALL. -- Regards/Gruss, Boris. Good mailing prac

[PATCH] IB/mlx4: Fix memory leaks

2019-08-18 Thread Wenwen Wang
In mlx4_ib_alloc_pv_bufs(), 'tun_qp->tx_ring' is allocated through kcalloc(). However, it is not always deallocated in the following execution if an error occurs, leading to memory leaks. To fix this issue, free 'tun_qp->tx_ring' whenever an error occurs. Signed-off-by: Wenwen Wang --- drivers/i

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-18 Thread Borislav Petkov
On Sun, Aug 18, 2019 at 04:33:14PM +0200, Thomas Hellström (VMware) wrote: > From: Thomas Hellstrom > > This is intended to be used by drivers using the backdoor, and > we follow the kvm example using alternatives self-patching to > choose between vmcall, vmmcall and inl instructions. > > This p

Re: [Linux-kernel-mentees][PATCH v6 0/2] get_user_pages changes

2019-08-18 Thread Bharath Vedartham
On Mon, Aug 19, 2019 at 01:08:53AM +0530, Bharath Vedartham wrote: CC'ing lkml, the mail id was wrong. > This version only converts put_page to put_user_page and removes > an unecessary ifdef. > > It does not convert atomic_pte_lookup to __get_user_pages as > gru_vtop could run in an interrupt c

Re: [PATCH 1/2] PTP: introduce new versions of IOCTLs

2019-08-18 Thread Richard Cochran
On Sat, Aug 17, 2019 at 09:17:20AM -0700, Joe Perches wrote: > Is there a case where this initialization is > unnecessary such that it impacts performance > given the use in ptp_ioctl? None of these ioctls are sensitive WRT performance. They are all setup or configuration, or in the case of the O

Re: [PATCH] tools: iio: add .gitignore

2019-08-18 Thread Jonathan Cameron
On Mon, 12 Aug 2019 14:41:41 +0200 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The generated files must not be tracked by git. Add a local .gitignore. > > Signed-off-by: Bartosz Golaszewski Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders t

RE: [PATCH] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-08-18 Thread Michael Kelley
From: Wei Hu Sent: Tuesday, August 13, 2019 2:55 AM > > Beginning from Windows 10 RS5+, VM screen resolution is obtained from host. > The "video=hyperv_fb" boot time option is not needed, but still can be > used to overwrite the VM resolution. The VM resolution on the host could be I would word

Re: [Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*()

2019-08-18 Thread Bharath Vedartham
CC'ing lkml. On Mon, Aug 19, 2019 at 01:08:54AM +0530, Bharath Vedartham wrote: > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is part a tree-wide conversion, as described

Re: [PATCH net-next 0/6] net: hns3: add some cleanups & bugfix

2019-08-18 Thread David Miller
From: Huazhong Tan Date: Fri, 16 Aug 2019 16:09:36 +0800 > This patch-set includes cleanups and bugfix for the HNS3 ethernet > controller driver. > > [patch 01/06 - 03/06] adds some cleanups. > > [patch 04/06] changes the print level of RAS. > > [patch 05/06] fixes a bug related to MAC TNL. >

Re: [Linux-kernel-mentees][PATCH 2/2] sgi-gru: Remove uneccessary ifdef for CONFIG_HUGETLB_PAGE

2019-08-18 Thread Bharath Vedartham
CC'ing lkml. On Mon, Aug 19, 2019 at 01:08:55AM +0530, Bharath Vedartham wrote: > is_vm_hugetlb_page will always return false if CONFIG_HUGETLB_PAGE is > not set. > > Cc: Ira Weiny > Cc: John Hubbard > Cc: Jérôme Glisse > Cc: Greg Kroah-Hartman > Cc: Dimitri Sivanich > Cc: Arnd Bergmann > C

Re: [PATCH 1/4] x86/vmware: Update platform detection code for VMCALL/VMMCALL hypercalls

2019-08-18 Thread VMware
On 8/18/19 9:20 PM, Thomas Gleixner wrote: On Sun, 18 Aug 2019, Thomas Hellström (VMware) wrote: From: Thomas Hellstrom Vmware has historically used an "inl" instruction for this, but recent hardware versions support using VMCALL/VMMCALL instead, so use this method if supported at platform de

Re: [PATCH 2/2] irq/irq_sim: use irq domain

2019-08-18 Thread Jonathan Cameron
On Mon, 12 Aug 2019 14:52:56 +0200 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We currently have a dedicated function to map the interrupt simulator > offsets to global interrupt numbers. This is something that irq_domain > should handle. > > Create a linear irq_domain when init

[GIT PULL] MTD fixes for 5.3-rc5

2019-08-18 Thread Richard Weinberger
Linus, The following changes since commit d45331b00ddb179e291766617259261c112db872: Linux 5.3-rc4 (2019-08-11 13:26:41 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/fixes-for-5.3-rc5 for you to fetch changes up to 834de5c1a

Re: [PATCH 1/2] irq/irq_sim: make the irq_sim structure opaque

2019-08-18 Thread Jonathan Cameron
On Sun, 18 Aug 2019 20:38:36 +0100 Jonathan Cameron wrote: > On Mon, 12 Aug 2019 14:52:55 +0200 > Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > There's no good reason to export the interrupt simulator structure to > > users and have them provide memory for it. Let's make

Re: [PATCH 28/79] libperf: Add perf_cpu_map struct

2019-08-18 Thread Jiri Olsa
On Sun, Aug 18, 2019 at 07:04:36AM -0700, Guenter Roeck wrote: > On Sun, Jul 21, 2019 at 01:24:15PM +0200, Jiri Olsa wrote: > > Adding perf_cpu_map struct into libperf. > > > > It's added as a declaration into into: > > include/perf/cpumap.h > > which will be included by users. > > > > The perf

[Linux-kernel-mentees][PATCH 2/2] sgi-gru: Remove uneccessary ifdef for CONFIG_HUGETLB_PAGE

2019-08-18 Thread Bharath Vedartham
is_vm_hugetlb_page will always return false if CONFIG_HUGETLB_PAGE is not set. Cc: Ira Weiny Cc: John Hubbard Cc: Jérôme Glisse Cc: Greg Kroah-Hartman Cc: Dimitri Sivanich Cc: Arnd Bergmann Cc: William Kucharski Cc: Christoph Hellwig Cc: linux-kernel@vger.kernel.org Cc: linux...@kvack.org

[Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*()

2019-08-18 Thread Bharath Vedartham
For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder versions"). Cc: Ira W

Re: [PATCH 1/2] irq/irq_sim: make the irq_sim structure opaque

2019-08-18 Thread Jonathan Cameron
On Mon, 12 Aug 2019 14:52:55 +0200 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > There's no good reason to export the interrupt simulator structure to > users and have them provide memory for it. Let's make all the related > data structures opaque and convert both users. This way w

Re: [PATCH 0/4] Add support for updated vmware hypercall instruction

2019-08-18 Thread Borislav Petkov
On Sun, Aug 18, 2019 at 09:02:04PM +0200, Thomas Hellström (VMware) wrote: > I was trying to be clever and avoid spamming people with stuff they might > not care about. Sure but if, for example, you're adding VMWARE_HYPERCALL in patch 2 and the users are in the following patches, it would be helpf

Re: iio: Is storing output values to non volatile registers something we should do automatically or leave to userspace action. [was Re: [PATCH] iio: potentiometer: max5432: update the non-volatile pos

2019-08-18 Thread Jonathan Cameron
On Mon, 12 Aug 2019 19:08:12 +0800 Phil Reid wrote: > G'day Martin / Jonathan, > > On 12/08/2019 18:37, Martin Kaiser wrote: > > Hi Jonathan, > > > > Thus wrote Jonathan Cameron (ji...@kernel.org): > > > >> The patch is fine, but I'm wondering about whether we need some element > >> of polic

[PATCH] infiniband: hfi1: fix a memory leak bug

2019-08-18 Thread Wenwen Wang
In fault_opcodes_read(), 'data' is not deallocated if debugfs_file_get() fails, leading to a memory leak. To fix this bug, introduce the 'free_data' label to free 'data' before returning the error. Signed-off-by: Wenwen Wang --- drivers/infiniband/hw/hfi1/fault.c | 3 ++- 1 file changed, 2 inser

Re: [PATCH] iio: adc: sc27xx: Change to polling mode to read data

2019-08-18 Thread Jonathan Cameron
On Mon, 12 Aug 2019 10:37:44 +0800 Baolin Wang wrote: > On Sun, 11 Aug 2019 at 16:03, Jonathan Cameron wrote: > > > > On Tue, 6 Aug 2019 15:39:45 +0800 > > Baolin Wang wrote: > > > > > Hi Jonathan, > > > > > > On Mon, 5 Aug 2019 at 21:50, Jonathan Cameron wrote: > > > > > > > > On Mon, 29

Re: [PATCH 1/4] x86/vmware: Update platform detection code for VMCALL/VMMCALL hypercalls

2019-08-18 Thread Thomas Gleixner
On Sun, 18 Aug 2019, Thomas Hellström (VMware) wrote: > From: Thomas Hellstrom > > Vmware has historically used an "inl" instruction for this, but recent > hardware versions support using VMCALL/VMMCALL instead, so use this method > if supported at platform detection time. We explicitly need to

Re: [PATCH v2] iio: adc: max1027: Use device-managed APIs

2019-08-18 Thread Jonathan Cameron
On Sun, 11 Aug 2019 20:51:46 +0800 Chuhong Yuan wrote: > Use device-managed APIs to simplify the code. > > Signed-off-by: Chuhong Yuan Great thanks, Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > Changes in v

Re: [PATCH v2] staging: iio: accel: adis16240: Improve readability on write_raw function

2019-08-18 Thread Jonathan Cameron
On Wed, 14 Aug 2019 06:56:18 + "Ardelean, Alexandru" wrote: > On Tue, 2019-08-13 at 16:31 -0300, Rodrigo Ribeiro wrote: > > [External] > > > > Replace shift and minus operation by GENMASK macro and remove the local > > variables used to store intermediate data. > > > > Reviewed-by: Alexa

[PATCH] powerpc: Don't add -mabi= flags when building with Clang

2019-08-18 Thread Nathan Chancellor
When building pseries_defconfig, building vdso32 errors out: error: unknown target ABI 'elfv1' Commit 4dc831aa8813 ("powerpc: Fix compiling a BE kernel with a powerpc64le toolchain") added these flags to fix building GCC but clang is multitargeted and does not need these flags. The ABI is prope

Re: [PATCH v4 0/3] iio: imu: st_lsm6dsx: Add support for LSM9DS1

2019-08-18 Thread Jonathan Cameron
On Tue, 13 Aug 2019 09:35:30 +0200 Martin Kepplinger wrote: > Add basic functionality for LSM9DS1. This has become a trivial addition > by now. > To me these look fine, but I'd ideally like an Ack or reviewed-by from Lorenzo. Thanks, Jonathan > revision history > > v4: reba

Re: [PATCH] leds: trigger: timer: remove redundant assignment to ret

2019-08-18 Thread Pavel Machek
On Sun 2019-08-18 20:00:03, Colin King wrote: > From: Colin Ian King > > Variable ret is initialized to a value that is never read and it > is re-assigned later. The initialization is redundant and can be > removed. Yes, it can. But it is not buggy or exceptionaly ugly. > diff --git a/drivers/l

Re: [PATCH V3 4/4] dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192

2019-08-18 Thread Jonathan Cameron
On Sun, 18 Aug 2019 19:46:27 +0100 Jonathan Cameron wrote: > On Wed, 14 Aug 2019 20:39:04 -0600 > Rob Herring wrote: > > > On Wed, Aug 14, 2019 at 1:32 AM Mircea Caprioru > > wrote: > > > > > > This patch add device tree binding documentation for AD7192 adc in YAML > > > format. > > > > > >

Re: [PATCH 0/4] Add support for updated vmware hypercall instruction

2019-08-18 Thread VMware
On 8/18/19 8:09 PM, Borislav Petkov wrote: On Sun, Aug 18, 2019 at 04:33:12PM +0200, Thomas Hellström (VMware) wrote: Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Cc: Dmitry Torokhov Cc: In the future, when you CC people on patches, pls CC them for all

[PATCH] leds: trigger: timer: remove redundant assignment to ret

2019-08-18 Thread Colin King
From: Colin Ian King Variable ret is initialized to a value that is never read and it is re-assigned later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/leds/trigger/ledtrig-timer.c | 4 ++-- 1 file changed,

Re: [PATCH 2/2] arm64: dts: allwinner: h6: Introduce Tanix TX6 board

2019-08-18 Thread Jernej Škrabec
Dne nedelja, 18. avgust 2019 ob 20:42:49 CEST je kbuild test robot napisal(a): > Hi Jernej, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3-rc4 next-20190816] > [if your patch is applied to the wrong git tree, please drop

Re: [PATCH] Skip deferred request irqs for devices known to fail

2019-08-18 Thread Hans de Goede
Hi Ian, et. al., On 23-03-19 04:39, Ian W MORRISON wrote: Hi Hans, IMHO we need to root-cause this problem a bit more before applying this kludge. Can you provide an ACPI dump of one of the affected machines ? Attached is an ACPI dump. First of all sorry for taking way too long to get ba

<    1   2   3   4   >