Re: [PATCH 1/6] dma: amba-pl08x: no need to cast away call to debugfs_create_file()

2019-06-13 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 11:16:13AM +0530, Vinod Koul wrote: > On 12-06-19, 14:25, Greg Kroah-Hartman wrote: > > No need to check the return value of debugfs_create_file(), so no need > > to provide a fake "cast away" of the return value either. > > Applied all after fixing the subsystem tag

Re: [PATCH 5.1 000/155] 5.1.10-stable review

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 01:03:08PM -0700, Guenter Roeck wrote: > On 6/13/19 1:31 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.10 release. > > There are 155 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 5.1 000/155] 5.1.10-stable review

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 03:08:49PM -0500, Jiunn Chang wrote: > On Thu, Jun 13, 2019 at 10:31:52AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.10 release. > > There are 155 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 1/6] dma: amba-pl08x: no need to cast away call to debugfs_create_file()

2019-06-13 Thread Vinod Koul
On 12-06-19, 14:25, Greg Kroah-Hartman wrote: > No need to check the return value of debugfs_create_file(), so no need > to provide a fake "cast away" of the return value either. Applied all after fixing the subsystem tag (dmaengine), thanks -- ~Vinod

Re: [PATCH 5.1 000/155] 5.1.10-stable review

2019-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 06:44:40PM -0600, shuah wrote: > On 6/13/19 2:31 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.10 release. > > There are 155 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

Re: [PATCH 5.1 000/155] 5.1.10-stable review

2019-06-13 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 12:09:12AM +0530, Naresh Kamboju wrote: > On Thu, 13 Jun 2019 at 14:15, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.1.10 release. > > There are 155 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH v2] RDMA/cma: Make CM response timeout and # CM retries configurable

2019-06-13 Thread Håkon Bugge
> On 13 Jun 2019, at 22:25, Doug Ledford wrote: > > On Thu, 2019-06-13 at 18:58 +0200, Håkon Bugge wrote: >>> On 13 Jun 2019, at 16:25, Doug Ledford wrote: >>> >>> On Tue, 2019-02-26 at 08:57 +0100, Håkon Bugge wrote: During certain workloads, the default CM response timeout is too

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

2019-06-13 Thread Stephen Rothwell
G_SECURITY is not set for this build and the !CONFIG_SECURITY declarations were not fixed up in linux/security.h. I have used the integrity tree from next-20190613 for today. -- Cheers, Stephen Rothwell pgpIivfEWTn5B.pgp Description: OpenPGP digital signature

[PATCH 2/2] pinctrl: qcom: Add SM8150 pinctrl driver

2019-06-13 Thread Vinod Koul
From: Prasad Sodagudi Add initial pinctrl driver to support pin configuration with pinctrl framework for SM8150 Signed-off-by: Prasad Sodagudi Signed-off-by: Isaac J. Manjarres Signed-off-by: Vinod Koul --- drivers/pinctrl/qcom/Kconfig |9 + drivers/pinctrl/qcom/Makefile

[PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM8150 pinctrl binding

2019-06-13 Thread Vinod Koul
From: Prasad Sodagudi Add the binding for the TLMM pinctrl block found in the SM8150 platform. Signed-off-by: Prasad Sodagudi Signed-off-by: Isaac J. Manjarres Signed-off-by: Vinod Koul --- .../bindings/pinctrl/qcom,sm8150-pinctrl | 200 ++ 1 file changed, 200

Re: [PATCH] mm/vmalloc: Check absolute error return from vmap_[p4d|pud|pmd|pte]_range()

2019-06-13 Thread Anshuman Khandual
On 06/13/2019 09:01 PM, Matthew Wilcox wrote: > On Thu, Jun 13, 2019 at 08:51:17PM +0530, Anshuman Khandual wrote: >> acceptable ? What we have currently is wrong where vmap_pmd_range() could >> just wrap EBUSY as ENOMEM and send up the call chain. > > It's not wrong. We do it in lots of

[PATCH 2/2] mmc: mediatek: fix SDIO IRQ detection issue

2019-06-13 Thread Jjian Zhou
From: jjian zhou If cmd19 timeout or response crcerr occurs during execute_tuning(), it need invoke msdc_reset_hw(). Otherwise SDIO IRQ can't be detected. Signed-off-by: jjian zhou Signed-off-by: Chaotian Jing Signed-off-by: Yong Mao --- drivers/mmc/host/mtk-sd.c | 2 ++ 1 file changed, 2

[PATCH 1/2] mmc: mediatek: fix SDIO IRQ interrupt handle flow

2019-06-13 Thread Jjian Zhou
From: jjian zhou SDIO IRQ is triggered by low level. It need disable SDIO IRQ detected function. Otherwise the interrupt register can't be cleared. It will process the interrupt more. Signed-off-by: Jjian Zhou Signed-off-by: Chaotian Jing Signed-off-by: Yong Mao ---

Re: [PATCH 5/5] x86/vsyscall: Change the default vsyscall mode to xonly

2019-06-13 Thread Kees Cook
On Thu, Jun 13, 2019 at 12:14:50PM -0700, Andy Lutomirski wrote: > On Mon, Jun 10, 2019 at 1:44 PM Kees Cook wrote: > > > > On Mon, Jun 10, 2019 at 01:25:31PM -0700, Andy Lutomirski wrote: > > > The use case for full emulation over xonly is very esoteric. Let's > > > change the default to the

Re: [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-13 Thread Anshuman Khandual
On 06/14/2019 01:34 AM, Andrew Morton wrote: > On Thu, 13 Jun 2019 15:37:24 +0530 Anshuman Khandual > wrote: > >> Architectures which support kprobes have very similar boilerplate around >> calling kprobe_fault_handler(). Use a helper function in kprobes.h to unify >> them, based on the x86

Re: [RFC PATCH 0/1] security: add SECURE_KEEP_FSUID to preserve fsuid/fsgid across execve

2019-06-13 Thread James Morris
On Thu, 13 Jun 2019, Igor Lubashev wrote: > I've posted this in March but received no response. Reposting. > > This patch introduces SECURE_KEEP_FSUID to allow fsuid/fsgid to be > preserved across execve. It is currently impossible to execve a > program such that effective and filesystem uid

Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 09:28:48PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 08:58:48PM -0500, Josh Poimboeuf wrote: > > On Thu, Jun 13, 2019 at 06:42:45PM -0700, Alexei Starovoitov wrote: > > > On Thu, Jun 13, 2019 at 08:30:51PM -0500, Josh Poimboeuf wrote: > > > > On Thu, Jun 13,

[PATCH v4] platform/chrome: cros_ec_lpc: Choose Microchip EC at runtime

2019-06-13 Thread Enric Balletbo i Serra
On many boards, communication between the kernel and the Embedded Controller happens over an LPC bus. In these cases, the kernel config CONFIG_CROS_EC_LPC is enabled. Some of these LPC boards contain a Microchip Embedded Controller (MEC) that is different from the regular EC. On these devices, the

Re: [PATCH net v2] tcp: avoid creating multiple req socks with the same tuples

2019-06-13 Thread Eric Dumazet
On 6/13/19 9:19 PM, maowenan wrote: > > > @Eric, for this issue I only want to check TCP_NEW_SYN_RECV sk, is it OK like > below? > + if (!osk && sk->sk_state == TCP_NEW_SYN_RECV) > + reqsk = __inet_lookup_established(sock_net(sk), > _hashinfo, > +

Re: [PATCH 1/2] Input: synaptics-rmi4 - clear irqs before set irqs

2019-06-13 Thread Aaron Ma
On 6/12/19 1:35 AM, Dmitry Torokhov wrote: > On Tue, Jun 11, 2019 at 12:55:58AM +0800, Aaron Ma wrote: >> On 6/10/19 12:55 AM, Dmitry Torokhov wrote: >>> Hi Aaron, >>> >>> On Wed, Feb 20, 2019 at 05:41:59PM +0100, Aaron Ma wrote: rmi4 got spam data after S3 resume on some ThinkPads. Then

Re: memory leak in create_ctx

2019-06-13 Thread John Fastabend
Hillf Danton wrote: > > Hi Dmitry > > On Tue, 11 Jun 2019 19:45:28 +0800 Dmitry Vyukov wrote: > > > > I've run the repro as "./syz-execprog -repeat=0 -procs=6 repro" and > > in 10 mins I got the following splat, which indeed suggests a bpf bug. > > But we of course can have both bpf stack

Re: [PATCH net v2] tcp: avoid creating multiple req socks with the same tuples

2019-06-13 Thread maowenan
>>> diff --git a/net/ipv4/inet_connection_sock.c >>> b/net/ipv4/inet_connection_sock.c >>> index 13ec7c3a9c49..fd45ed2fd985 100644 >>> --- a/net/ipv4/inet_connection_sock.c >>> +++ b/net/ipv4/inet_connection_sock.c >>> @@ -749,7 +749,7 @@ static void reqsk_timer_handler(struct timer_list *t) >>>

[PATCH v2 10/11] OPP: Allow copying OPPs tables between devices

2019-06-13 Thread Saravana Kannan
Some hardware devices might create multiple children devices to manage different components of the hardware. In these cases, it might be necessary for the original hardware device to copy specific OPP tables to a specific the new child device. Add dev_pm_opp_add_opp_table() to do that.

[PATCH v2 09/11] interconnect: Add OPP table support for interconnects

2019-06-13 Thread Saravana Kannan
Interconnect paths can have different performance points. Now that OPP framework supports bandwidth OPP tables, add OPP table support for interconnects. Devices can use the interconnect-opp-table DT property to specify OPP tables for interconnect paths. And the driver can obtain the OPP table for

[PATCH v2 07/11] OPP: Add API to find an OPP table from its DT node

2019-06-13 Thread Saravana Kannan
This allows finding a device's OPP table (when it has multiple) from a phandle to the OPP table in DT. Signed-off-by: Saravana Kannan --- drivers/opp/of.c | 42 ++ include/linux/pm_opp.h | 7 +++ 2 files changed, 41 insertions(+), 8

[PATCH v2 06/11] OPP: Add helper function for bandwidth OPP tables

2019-06-13 Thread Saravana Kannan
The frequency OPP tables have helper functions to search for entries in the table based on frequency and get the frequency values for a given (or suspend) OPP entry. Add similar helper functions for bandwidth OPP tables to search for entries in the table based on peak bandwidth and to get the

[PATCH v2 02/11] OPP: Add function to look up required OPP's for a given OPP

2019-06-13 Thread Saravana Kannan
Add a function that allows looking up required OPPs given a source OPP table, destination OPP table and the source OPP. Signed-off-by: Saravana Kannan --- drivers/opp/core.c | 54 ++ include/linux/pm_opp.h | 11 + 2 files changed, 65

[PATCH v2 00/11] Introduce Bandwidth OPPs & interconnect devfreq driver

2019-06-13 Thread Saravana Kannan
I replied[1] to this patch series[2] and described how I think interconnect bandwidth voting should be captured in DT and how it should work. So sending out a patch series implementing that. This patch series does the following: - Allow required-opps to point to any device's OPP - Add support to

[PATCH v2 05/11] OPP: Add support for bandwidth OPP tables

2019-06-13 Thread Saravana Kannan
Not all devices quantify their performance points in terms of frequency. Devices like interconnects quantify their performance points in terms of bandwidth. We need a way to represent these bandwidth levels in OPP. So, add support for parsing bandwidth OPPs from DT. Signed-off-by: Saravana Kannan

[PATCH v2 04/11] dt-bindings: opp: Introduce opp-peak-KBps and opp-avg-KBps bindings

2019-06-13 Thread Saravana Kannan
Interconnects often quantify their performance points in terms of bandwidth. So, add opp-peak-KBps (required) and opp-avg-KBps (optional) to allow specifying Bandwidth OPP tables in DT. opp-peak-KBps is a required property that replace opp-hz for Bandwidth OPP tables. opp-avg-KBps is an optional

[PATCH v2 03/11] PM / devfreq: Add required OPPs support to passive governor

2019-06-13 Thread Saravana Kannan
Look at the required OPPs of the "parent" device to determine the OPP that is required from the slave device managed by the passive governor. This allows having mappings between a parent device and a slave device even when they don't have the same number of OPPs. Signed-off-by: Saravana Kannan

[PATCH v2 11/11] interconnect: Add devfreq support

2019-06-13 Thread Saravana Kannan
Add a icc_create_devfreq() and icc_remove_devfreq() to create and remove devfreq devices for interconnect paths. A driver can create/remove devfreq devices for the interconnects needed for its device by calling these APIs. This would allow various devfreq governors to work with interconnect paths

[PATCH v2 08/11] dt-bindings: interconnect: Add interconnect-opp-table property

2019-06-13 Thread Saravana Kannan
Add support for listing bandwidth OPP tables for each interconnect path listed using the interconnects property. Signed-off-by: Saravana Kannan --- .../devicetree/bindings/interconnect/interconnect.txt | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 01/11] OPP: Allow required-opps even if the device doesn't have power-domains

2019-06-13 Thread Saravana Kannan
A Device-A can have a (minimum) performance requirement on another Device-B to be able to function correctly. This performance requirement on Device-B can also change based on the current performance level of Device-A. The existing required-opps feature fits well to describe this need. So,

Re: [PATCH 1/1] PCI/IOV: Fix VF0 cached config space size for other VFs

2019-06-13 Thread 独孤败
Alex Williamson 于2019年6月5日周三 上午1:29写道: > > On Mon, 20 May 2019 21:17:24 +0800 > Hao Zheng wrote: > > > Set the pcie_cap field before getting the config space size for > > other VFs. Otherwise, the config space size of other VFs are error > > set to 256, while the size of VF0 is 4096. > > > >

Re: [PATCH] mfd: stmfx: Fix macro definition spelling

2019-06-13 Thread Nathan Chancellor
On Tue, May 14, 2019 at 07:54:04PM +0100, Lee Jones wrote: > On Tue, 14 May 2019, Nathan Chancellor wrote: > > > On Mon, May 13, 2019 at 08:30:59AM +0100, Lee Jones wrote: > > > On Fri, 10 May 2019, Nathan Chancellor wrote: > > > > > > > Clang warns: > > > > > > > > In file included from

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Dave Chinner
On Thu, Jun 13, 2019 at 01:34:06PM -0700, Ira Weiny wrote: > On Thu, Jun 13, 2019 at 10:55:52AM +1000, Dave Chinner wrote: > > On Wed, Jun 12, 2019 at 04:30:24PM -0700, Ira Weiny wrote: > > > On Wed, Jun 12, 2019 at 05:37:53AM -0700, Matthew Wilcox wrote: > > > > On Sat, Jun 08, 2019 at 10:10:36AM

Re: [RFC PATCH 0/1] security: add SECURE_KEEP_FSUID to preserve fsuid/fsgid across execve

2019-06-13 Thread James Morris
[Adding David and Al] On Thu, 13 Jun 2019, Igor Lubashev wrote: > I've posted this in March but received no response. Reposting. > > This patch introduces SECURE_KEEP_FSUID to allow fsuid/fsgid to be > preserved across execve. It is currently impossible to execve a > program such that

Re: [PATCH v2 1/2] mtd: concat: refactor concat_lock/concat_unlock

2019-06-13 Thread Chris Packham
Hi All, Ping? On 23/05/19 11:19 AM, Chris Packham wrote: > concat_lock() and concat_unlock() only differed in terms of the mtd_xx > operation they called. Refactor them to use a common helper function and > pass a boolean flag to indicate whether lock or unlock is needed. > > Signed-off-by:

Re: [PATCH] mtd: cfi_cmdset_0002: dynamically determine the max sectors

2019-06-13 Thread Chris Packham
Hi All, I think this may have got lost in the change of maintainer for mtd. On 22/05/19 12:06 PM, Chris Packham wrote: > Because PPB unlocking unlocks the whole chip cfi_ppb_unlock() needs to > remember the locked status for each sector so it can re-lock the > unaddressed sectors. Dynamically

[PATCH v9 0/6] support a new type of PMIC,including two chips(rk817 and rk809)

2019-06-13 Thread Tony Xie
Most of functions and registers of the rk817 and rk808 are the same, so they can share allmost all codes. Their specifications are as follows: 1) The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2) The dcdc5 is a boost dcdc for

[PATCH v9 4/6] dt-bindings: mfd: rk808: Add binding information for RK809 and RK817.

2019-06-13 Thread Tony Xie
Add device tree bindings documentation for Rockchip's RK809 & RK817 PMIC. Signed-off-by: Tony Xie Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- .../devicetree/bindings/mfd/rk808.txt | 44 +++ 1 file changed, 44 insertions(+) diff --git

[PATCH v9 2/6] mfd: rk808: Add RK817 and RK809 support

2019-06-13 Thread Tony Xie
The RK809 and RK817 are a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators - RTC - Clocking Both RK809 and RK817 chips are using a similar register map, so we can reuse the RTC and Clocking functionality. Most of regulators

[PATCH v9 3/6] regulator: rk808: add RK809 and RK817 support.

2019-06-13 Thread Tony Xie
Add support for the rk809 and rk817 regulator driver. Their specifications are as follows: 1. The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2. The dcdc5 is a boost dcdc for RK817 and is a buck for RK809. 3.

[PATCH v9 1/6] mfd: rk808: remove the id_table

2019-06-13 Thread Tony Xie
Remove the id_table because it's not used. Signed-off-by: Tony Xie --- drivers/mfd/rk808.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 216fbf6adec9..94377782d208 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -568,14

Mrs patricia lugan

2019-06-13 Thread Mrs.Patricia Lugan
Dear Friend, I am Mrs Patricia lugan.am sending you this brief letter to solicit your partnership to transfer $18.5 million US Dollars.I shall send you more information and procedures when I receive positive response from you. please send me a message in my Email

[PATCH v9 6/6] clk: RK808: add RK809 and RK817 support.

2019-06-13 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. most of their functions and registers are same, including the clkout funciton. Signed-off-by: Tony Xie Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 9 +++--- drivers/clk/clk-rk808.c | 64

[PATCH v9 5/6] rtc: rk808: add RK809 and RK817 support.

2019-06-13 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. Most of their functions and registers are same, including the rtc. Signed-off-by: Tony Xie Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 +-- drivers/rtc/rtc-rk808.c | 68

Re: pagecache locking (was: bcachefs status update) merged)

2019-06-13 Thread Linus Torvalds
On Thu, Jun 13, 2019 at 1:56 PM Dave Chinner wrote: > > - buffered read and buffered write can run concurrently if they > don't overlap, but right now they are serialised because that's the > only way to provide POSIX atomic write vs read semantics (only XFS > provides userspace with that

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Dave Chinner
On Thu, Jun 13, 2019 at 07:31:07PM -0700, Matthew Wilcox wrote: > On Fri, Jun 14, 2019 at 12:09:21PM +1000, Dave Chinner wrote: > > If the lease holder modifies the mapping in a way that causes it's > > own internal state to screw up, then that's a bug in the lease > > holder application. > >

Re: memory leak in vhost_net_ioctl

2019-06-13 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: memory leak in batadv_tvlv_handler_register 484.626788][ T156] bond0 (unregistering): Releasing backup interface bond_slave_1 Warning: Permanently added '10.128.0.87' (ECDSA) to the list of known

[linux-next:master 5930/6350] drivers/net/ethernet/amazon/ena/ena_netdev.c:1158:6: sparse: sparse: symbol 'ena_adjust_intr_moderation' was not declared. Should it be static?

2019-06-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: da151e650328dcd37176cf49fc626a7f42bfbe17 commit: c2b542044761965db0e4cc400ab6abf670fc25b7 [5930/6350] net: ena: remove inline keyword from functions in *.c reproduce: # apt-get install sparse

[RFC PATCH linux-next] net: ena: ena_adjust_intr_moderation() can be static

2019-06-13 Thread kbuild test robot
Fixes: c2b542044761 ("net: ena: remove inline keyword from functions in *.c") Signed-off-by: kbuild test robot --- ena_netdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c

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

2019-06-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rdma tree got conflicts in: drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_std_types_cq.c between commit: 6876aaedc8a1 ("RDMA/uverbs: Pass udata on uverbs error unwind") from Linus' tree and commit: e39afe3d6dbd ("RDMA:

[PATCH] arm64: Allow user selection of ARM64_MODULE_PLTS

2019-06-13 Thread Florian Fainelli
Make ARM64_MODULE_PLTS a selectable Kconfig symbol, since some people might have very big modules spilling out of the dedicated module area into vmalloc. Help text is copied from the ARM 32-bit counterpart. Signed-off-by: Florian Fainelli --- arch/arm64/Kconfig | 14 +- 1 file

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Dave Chinner
On Thu, Jun 13, 2019 at 01:34:05PM -0700, Ira Weiny wrote: > On Thu, Jun 13, 2019 at 10:25:55AM +1000, Dave Chinner wrote: > > On Wed, Jun 12, 2019 at 05:37:53AM -0700, Matthew Wilcox wrote: > > > On Sat, Jun 08, 2019 at 10:10:36AM +1000, Dave Chinner wrote: > > > > On Fri, Jun 07, 2019 at

[Patch v2 3/3] staging: rtl8723bs: hal: sdio_halinit: fix Comparison to NULL

2019-06-13 Thread Hariprasad Kelam
This patch fixes below issue reported by checkpatch CHECK: Comparison to NULL could be written "psta" CHECK: Comparison to NULL could be written "psta" Signed-off-by: Hariprasad Kelam - changes in v2: Send proper patch with out corruption ---

[Patch v2 2/3] staging: rtl8723bs: hal: sdio_halinit: fix spaces preferred around that unary operator

2019-06-13 Thread Hariprasad Kelam
This patch fixes below issues reported by checkpatch CHECK: spaces preferred around that '+' (ctx:VxV) CHECK: spaces preferred around that '<<' (ctx:VxV) CHECK: spaces preferred around that '|' (ctx:VxV) Signed-off-by: Hariprasad Kelam -- changes in v2: Send proper patch without corruption

[Patch v2 1/3] staging: rtl8723bs: hal: sdio_halinit: fix comparison to true/false is error prone

2019-06-13 Thread Hariprasad Kelam
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 changes in v2: send proper patch without corruption --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 18

[PATCH -next] scsi: cxgb4i: remove set but not used variable 'ppmax'

2019-06-13 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/scsi/cxgbi/cxgb4i/cxgb4i.c: In function 'cxgb4i_ddp_init': drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:2072:15: warning: variable 'ppmax' set but not used [-Wunused-but-set-variable] It's not used since commit a248384e6420

Re: [PATCH 4.14 00/81] 4.14.126-stable review

2019-06-13 Thread shuah
On 6/13/19 2:32 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.126 release. There are 81 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 4.19 000/118] 4.19.51-stable review

2019-06-13 Thread shuah
On 6/13/19 2:32 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.51 release. There are 118 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

[PATCH -next] cxgbit: remove set but not used variable 'ppmax'

2019-06-13 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/target/iscsi/cxgbit/cxgbit_ddp.c: In function 'cxgbit_ddp_init': drivers/target/iscsi/cxgbit/cxgbit_ddp.c:303:15: warning: variable 'ppmax' set but not used [-Wunused-but-set-variable] It's not used since commit a248384e6420

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-06-13 Thread Walter Wu
On Fri, 2019-06-14 at 01:46 +0800, Walter Wu wrote: > On Thu, 2019-06-13 at 15:27 +0300, Andrey Ryabinin wrote: > > > > On 6/13/19 11:13 AM, Walter Wu wrote: > > > This patch adds memory corruption identification at bug report for > > > software tag-based mode, the report show whether it is

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Matthew Wilcox
On Fri, Jun 14, 2019 at 12:09:21PM +1000, Dave Chinner wrote: > On Thu, Jun 13, 2019 at 08:45:30PM -0300, Jason Gunthorpe wrote: > > On Thu, Jun 13, 2019 at 02:13:21PM -0700, Ira Weiny wrote: > > > On Thu, Jun 13, 2019 at 08:27:55AM -0700, Matthew Wilcox wrote: > > > > On Thu, Jun 13, 2019 at

Re: pagecache locking (was: bcachefs status update) merged)

2019-06-13 Thread Linus Torvalds
On Thu, Jun 13, 2019 at 1:56 PM Dave Chinner wrote: > > That said, the page cache is still far, far slower than direct IO, Bullshit, Dave. You've made that claim before, and it's been complete bullshit before too, and I've called you out on it then too. Why do you continue to make this

Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 08:58:48PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 06:42:45PM -0700, Alexei Starovoitov wrote: > > On Thu, Jun 13, 2019 at 08:30:51PM -0500, Josh Poimboeuf wrote: > > > On Thu, Jun 13, 2019 at 03:00:55PM -0700, Alexei Starovoitov wrote: > > > > > @@ -392,8

[PATCH] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723bs driver

2019-06-13 Thread Shobhit Kukreti
Cleaned up the code from the following files to get rid of check patch error "that open brace { should be on the previous line" drivers/staging/rtl8723bs/os_dep/mlme_linux.c drivers/staging/rtl8723bs/os_dep/recv_linux.c drivers/staging/rtl8723bs/os_dep/rtw_proc.c

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-13 Thread Dave Chinner
On Thu, Jun 13, 2019 at 08:45:30PM -0300, Jason Gunthorpe wrote: > On Thu, Jun 13, 2019 at 02:13:21PM -0700, Ira Weiny wrote: > > On Thu, Jun 13, 2019 at 08:27:55AM -0700, Matthew Wilcox wrote: > > > On Thu, Jun 13, 2019 at 10:25:55AM +1000, Dave Chinner wrote: > > > > e.g. Process A has an

Re: [PATCH] drivers/acpi: Turn off power resources while entering S5

2019-06-13 Thread Furquan Shaikh
On Fri, May 31, 2019 at 3:13 AM Rafael J. Wysocki wrote: > > On Wednesday, April 24, 2019 1:39:04 AM CEST Furquan Shaikh wrote: > > During boot-up, ACPI bus scan enables all power resources > > so that respective device drivers can talk to their device. This causes acpi > > ref_count for the

Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 06:42:45PM -0700, Alexei Starovoitov wrote: > On Thu, Jun 13, 2019 at 08:30:51PM -0500, Josh Poimboeuf wrote: > > On Thu, Jun 13, 2019 at 03:00:55PM -0700, Alexei Starovoitov wrote: > > > > @@ -392,8 +402,16 @@ bool unwind_next_frame(struct unwind_state *state) > > > >

Re: [PATCH 6/9] x86/bpf: Fix JIT frame pointer usage

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 06:39:05PM -0700, Alexei Starovoitov wrote: > On Thu, Jun 13, 2019 at 08:22:48PM -0500, Josh Poimboeuf wrote: > > On Thu, Jun 13, 2019 at 02:58:09PM -0700, Alexei Starovoitov wrote: > > > On Thu, Jun 13, 2019 at 08:21:03AM -0500, Josh Poimboeuf wrote: > > > > The BPF JIT

Re: [PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 06:37:21PM -0700, Alexei Starovoitov wrote: > On Thu, Jun 13, 2019 at 08:20:30PM -0500, Josh Poimboeuf wrote: > > On Thu, Jun 13, 2019 at 01:57:11PM -0700, Alexei Starovoitov wrote: > > > On Thu, Jun 13, 2019 at 08:20:59AM -0500, Josh Poimboeuf wrote: > > > > Objtool

Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-13 Thread Alexei Starovoitov
On Thu, Jun 13, 2019 at 08:30:51PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 03:00:55PM -0700, Alexei Starovoitov wrote: > > > @@ -392,8 +402,16 @@ bool unwind_next_frame(struct unwind_state *state) > > >* calls and calls to noreturn functions. > > >*/ > > > orc =

RE: [EXT] Re: [V3 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs

2019-06-13 Thread Peng Ma
Hi Vinod, >-Original Message- >From: Vinod Koul >Sent: 2019年6月13日 19:03 >To: Peng Ma >Cc: dan.j.willi...@intel.com; Leo Li ; >linux-kernel@vger.kernel.org; dmaeng...@vger.kernel.org >Subject: Re: [EXT] Re: [V3 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 >qDMA controller driver for

[PATCH] perf vendor events: Add Icelake V1.00 event file

2019-06-13 Thread Haiyan Song
Add a Intel event file for perf. Signed-off-by: Haiyan Song --- tools/perf/pmu-events/arch/x86/icelake/cache.json | 552 + .../arch/x86/icelake/floating-point.json | 102 +++ .../perf/pmu-events/arch/x86/icelake/frontend.json | 424 ++

Re: [PATCH 6/9] x86/bpf: Fix JIT frame pointer usage

2019-06-13 Thread Alexei Starovoitov
On Thu, Jun 13, 2019 at 08:22:48PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 02:58:09PM -0700, Alexei Starovoitov wrote: > > On Thu, Jun 13, 2019 at 08:21:03AM -0500, Josh Poimboeuf wrote: > > > The BPF JIT code clobbers RBP. This breaks frame pointer convention and > > > thus

RE: [V4 1/2] dmaengine: fsl-dpaa2-qdma: Add the DPDMAI(Data Path DMA Interface) support

2019-06-13 Thread Peng Ma
Hi Vkoul, >+int dpdmai_set_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, >+ u16 token, u8 priority, >+ const struct dpdmai_rx_queue_cfg *cfg) { >+ struct fsl_mc_command cmd = { 0 }; >+ struct dpdmai_cmd_queue *cmd_params; >+ >+ /*

Re: [PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-13 Thread Alexei Starovoitov
On Thu, Jun 13, 2019 at 08:20:30PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 01:57:11PM -0700, Alexei Starovoitov wrote: > > On Thu, Jun 13, 2019 at 08:20:59AM -0500, Josh Poimboeuf wrote: > > > Objtool currently ignores ___bpf_prog_run() because it doesn't > > > understand the jump

Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 03:00:55PM -0700, Alexei Starovoitov wrote: > > @@ -392,8 +402,16 @@ bool unwind_next_frame(struct unwind_state *state) > > * calls and calls to noreturn functions. > > */ > > orc = orc_find(state->signal ? state->ip : state->ip - 1); > > - if (!orc) > > -

Re: [PATCH -next] mm/hotplug: skip bad PFNs from pfn_to_online_page()

2019-06-13 Thread Qian Cai
> On Jun 13, 2019, at 9:17 PM, Dan Williams wrote: > > On Thu, Jun 13, 2019 at 11:42 AM Qian Cai wrote: >> >> On Wed, 2019-06-12 at 12:37 -0700, Dan Williams wrote: >>> On Wed, Jun 12, 2019 at 12:16 PM Qian Cai wrote: The linux-next commit "mm/sparsemem: Add helpers track active

Re: [PATCH 6/9] x86/bpf: Fix JIT frame pointer usage

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 02:58:09PM -0700, Alexei Starovoitov wrote: > On Thu, Jun 13, 2019 at 08:21:03AM -0500, Josh Poimboeuf wrote: > > The BPF JIT code clobbers RBP. This breaks frame pointer convention and > > thus prevents the FP unwinder from unwinding through JIT generated code. > > > >

RE: [EXT] Re: [PATCH 1/3] dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1028a-pcie"

2019-06-13 Thread Xiaowei Bao
> -Original Message- > From: Rob Herring > Sent: 2019年6月14日 5:00 > To: Xiaowei Bao > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.com; a...@arndb.de; gre...@linuxfoundation.org; > M.h. Lian ;

Re: [PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 01:57:11PM -0700, Alexei Starovoitov wrote: > On Thu, Jun 13, 2019 at 08:20:59AM -0500, Josh Poimboeuf wrote: > > Objtool currently ignores ___bpf_prog_run() because it doesn't > > understand the jump table. This results in the ORC unwinder not being > > able to unwind

RE: [RFC 1/2] dt-bindings: imx-ocotp: Add fusable-node property

2019-06-13 Thread Peng Fan
Hi Rob, > Subject: Re: [RFC 1/2] dt-bindings: imx-ocotp: Add fusable-node property > > On Mon, May 20, 2019 at 03:06:35AM +, Peng Fan wrote: > > Introduce fusable-node property for i.MX OCOTP driver. > > The property will only be used by Firmware(eg. U-Boot) to runtime > > disable the nodes.

Re: [PATCH -next] mm/hotplug: skip bad PFNs from pfn_to_online_page()

2019-06-13 Thread Dan Williams
On Thu, Jun 13, 2019 at 11:42 AM Qian Cai wrote: > > On Wed, 2019-06-12 at 12:37 -0700, Dan Williams wrote: > > On Wed, Jun 12, 2019 at 12:16 PM Qian Cai wrote: > > > > > > The linux-next commit "mm/sparsemem: Add helpers track active portions > > > of a section at boot" [1] causes a crash below

[PATCH v4 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-06-13 Thread Wanpeng Li
From: Wanpeng Li Advance lapic timer tries to hidden the hypervisor overhead between the host emulated timer fires and the guest awares the timer is fired. However, even though after more sustaining optimizations, kvm-unit-tests/tscdeadline_latency still awares ~1000 cycles latency since we

[PATCH v4 2/2] KVM: LAPIC: remove the trailing newline used in the fmt parameter of TP_printk

2019-06-13 Thread Wanpeng Li
From: Wanpeng Li The trailing newlines will lead to extra newlines in the trace file which looks like the following output, so remove it. qemu-system-x86-15695 [002] ...1 15774.839240: kvm_hv_timer_state: vcpu_id 0 hv_timer 1 qemu-system-x86-15695 [002] ...1 15774.839309: kvm_hv_timer_state:

Re: [PATCHv4 0/2] Document memory-to-memory video codec interfaces

2019-06-13 Thread Nicolas Dufresne
Le jeudi 13 juin 2019 à 08:48 +0200, Hans Verkuil a écrit : > On 6/3/19 1:28 PM, Hans Verkuil wrote: > > Since Tomasz was very busy with other things, I've taken over this > > patch series. This v4 includes his draft changes and additional changes > > from me. > > > > This series attempts to add

[PATCH 3/3] module: Improve module __ro_after_init handling

2019-06-13 Thread Josh Poimboeuf
module_enable_ro() can be called in the following scenario: [load livepatch module] initcall klp_enable_patch() klp_init_patch() klp_init_object() klp_init_object_loaded() module_enable_ro(pmod, true) In this case, module_enable_ro()'s

[PATCH 0/3] module: Livepatch/ftrace fixes

2019-06-13 Thread Josh Poimboeuf
Patch 1 fixes a module loading race between livepatch and ftrace. Patch 2 adds lockdep assertions assocated with patch 1. Patch 3 fixes a theoretical bug in the module __ro_after_init section handling. Josh Poimboeuf (3): module: Fix livepatch/ftrace module text permissions race module: Add

[PATCH 2/3] module: Add text_mutex lockdep assertions for page attribute changes

2019-06-13 Thread Josh Poimboeuf
External callers of the module page attribute change functions now need to have the text_mutex. Enforce that with lockdep assertions. Signed-off-by: Josh Poimboeuf --- kernel/module.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git

[PATCH 1/3] module: Fix livepatch/ftrace module text permissions race

2019-06-13 Thread Josh Poimboeuf
It's possible for livepatch and ftrace to be toggling a module's text permissions at the same time, resulting in the following panic: BUG: unable to handle page fault for address: c005b1d9 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation

Re: [PATCH] ACPI: PM: Clear wake-up device GPEs before enabling

2019-06-13 Thread Furquan Shaikh
On Thu, Jun 13, 2019 at 1:24 PM Rafael J. Wysocki wrote: > > On Thursday, May 16, 2019 9:36:16 PM CEST Furquan Shaikh wrote: > > This change clears GPE status for wake-up devices before enabling that > > GPE. This is required to ensure that stale GPE status does > > not result in pre-mature wake

Re: [PATCH] livepatch: Fix ftrace module text permissions race

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 05:38:04PM -0400, Steven Rostedt wrote: > On Fri, 31 May 2019 17:25:27 -0500 > Josh Poimboeuf wrote: > > > On Fri, May 31, 2019 at 02:12:56PM -0500, Josh Poimboeuf wrote: > > > > Anyway, the above is a separate problem. This patch looks > > > > fine for the original

Re: [PATCH bpf v2] bpf: fix nested bpf tracepoints with per-cpu data

2019-06-13 Thread Alexei Starovoitov
On Thu, Jun 13, 2019 at 5:52 PM Matt Mullins wrote: > > On Fri, 2019-06-14 at 00:47 +0200, Daniel Borkmann wrote: > > On 06/12/2019 07:00 AM, Andrii Nakryiko wrote: > > > On Tue, Jun 11, 2019 at 8:48 PM Matt Mullins wrote: > > > > > > > > BPF_PROG_TYPE_RAW_TRACEPOINTs can be executed nested on

Re: [PATCH bpf v2] bpf: fix nested bpf tracepoints with per-cpu data

2019-06-13 Thread Matt Mullins
On Fri, 2019-06-14 at 00:47 +0200, Daniel Borkmann wrote: > On 06/12/2019 07:00 AM, Andrii Nakryiko wrote: > > On Tue, Jun 11, 2019 at 8:48 PM Matt Mullins wrote: > > > > > > BPF_PROG_TYPE_RAW_TRACEPOINTs can be executed nested on the same CPU, as > > > they do not increment bpf_prog_active

[RFC PATCH 1/1] security: add SECURE_KEEP_FSUID to preserve fsuid/fsgid across execve

2019-06-13 Thread Igor Lubashev
Many kernel interfaces require real and/or effective root uid instead of relying solely of capabilities. An executable that uses such interfaces has to be set-uid-root or be executed by a thread with effective root uid. Presently, fsuid and saved uid will reset to the effective uid during execve.

[RFC PATCH 0/1] security: add SECURE_KEEP_FSUID to preserve fsuid/fsgid across execve

2019-06-13 Thread Igor Lubashev
I've posted this in March but received no response. Reposting. This patch introduces SECURE_KEEP_FSUID to allow fsuid/fsgid to be preserved across execve. It is currently impossible to execve a program such that effective and filesystem uid differ. The need for this functionality arose from a

Re: [RFC PATCH v1 2/3] LSM/x86/sgx: Implement SGX specific hooks in SELinux

2019-06-13 Thread Sean Christopherson
On Thu, Jun 13, 2019 at 01:02:17PM -0400, Stephen Smalley wrote: > On 6/11/19 6:02 PM, Sean Christopherson wrote: > >On Tue, Jun 11, 2019 at 09:40:25AM -0400, Stephen Smalley wrote: > >>I haven't looked at this code closely, but it feels like a lot of > >>SGX-specific logic embedded into SELinux

  1   2   3   4   5   6   7   8   9   10   >