[PATCH v2] IB/mlx5: avoid excessive warning msgs when creating VFs on 2nd port

2018-07-23 Thread Qing Huang
When a CX5 device is configured in dual-port RoCE mode, after creating many VFs against port 1, creating the same number of VFs against port 2 will flood kernel/syslog with something like "mlx5_*:mlx5_ib_bind_slave_port:4266:(pid 5269): port 2 already affiliated." So basically, when traversing mlx

Re: Linux 4.18-rc6

2018-07-23 Thread David Miller
From: Linus Torvalds Date: Mon, 23 Jul 2018 13:56:15 -0700 > Hmm. I assume it's > > arch/sparc/include/asm/cacheflush_32.h > > that wants a forward-declaration of 'struct page', and doesn't include > any header files. > > The fix is presumably to move the > >#include > > in drivers

Re: linux-next: Tree for Jul 23

2018-07-23 Thread Stephen Rothwell
Hi Michael, On Tue, 24 Jul 2018 00:35:22 +1000 Michael Ellerman wrote: > > Would you mind adding my "topic/hvc" branch to linux-next. > > We (ppc) are notionally the maintainers for that code but it's used by > some other folks, so I'd like it to get some wider testing before I > commit it. > >

Re: [PATCH v5] PCI: Check for PCIe downtraining conditions

2018-07-23 Thread Jakub Kicinski
On Mon, 23 Jul 2018 15:03:38 -0500, Alexandru Gagniuc wrote: > PCIe downtraining happens when both the device and PCIe port are > capable of a larger bus width or higher speed than negotiated. > Downtraining might be indicative of other problems in the system, and > identifying this from userspace

Re: [PATCH 0/4] ia64: switch to NO_BOOTMEM

2018-07-23 Thread Luck, Tony
On Mon, Jul 23, 2018 at 08:56:54AM +0300, Mike Rapoport wrote: > Hi, > > These patches convert ia64 to use NO_BOOTMEM. > > The first two patches are cleanups, the third patches reduces usage of > 'struct bootmem_data' for easier transition and the forth patch actually > replaces bootmem with memb

Re: Linux 4.18-rc6

2018-07-23 Thread Linus Torvalds
Adding davem for the sparc issue, Martin for the s390 one. On Mon, Jul 23, 2018 at 1:46 PM Guenter Roeck wrote: > > The s390 gcc plugins related build error reported previously has not really > been fixed; after feedback from the s390 maintainers, suggesting that it > won't get fixed in 4.18, I d

Re: [PATCH v6] pidns: introduce syscall translate_pid

2018-07-23 Thread Michael Tirado
Hey, I'm not seeing much activity on this so here's my $0.02 > Unix socket automatically translates pid attached to SCM_CREDENTIALS. > This requires CAP_SYS_ADMIN for sending arbitrary pids and entering > into pid namespace, this expose process and could be insecure. Perhaps it would be a good i

Re: [PATCH] tpm: add support for partial reads

2018-07-23 Thread Tadeusz Struk
On 07/23/2018 01:19 PM, Jarkko Sakkinen wrote: > In this case I do not have any major evidence of any major benefit *and* > the change breaks the ABI. As I said before - this does not break the ABI. As for the benefits - it help user space in how they implement the receive path. Application does n

[PATCH 07/15] staging:rtl8192u: Remove unused union QOS_INFO_FIELD - Style

2018-07-23 Thread John Whitmore
The union QOS_INFO_FIELD is unused in code so has been removed from source. This change is a coding style change so should have no impact on runtime code execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 86 --- 1 file changed, 86 deletio

[PATCH 03/15] staging:rtl8192u: Remove unused QOS definitions - Style

2018-07-23 Thread John Whitmore
Remove the unused QOS related types. Since definitions are not used simply remove from code. This change is a coding style change and should not impact runtime execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 22 --- 1 file changed, 22

[PATCH 10/15] staging:rtl8192u: Remove unused structure QOS_TSTREAM - Style

2018-07-23 Thread John Whitmore
The structure QOS_TSTREAM is unused in code so has simply been removed. This change is a coding style change and should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 11 --- 1 file changed, 11 deletions(-) d

[PATCH 06/15] staging:rtl8192u: Remove unused structure QOS_CTRL_FIELD - Style

2018-07-23 Thread John Whitmore
The structure QOS_CTRL_FIELD is unused in code so has simply been removed from source. This is a coding style change and should have no impact on runtime code execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 50 --- 1 file changed, 50 de

[PATCH 12/15] staging:rtl8192u: Remove unused enumerated type ACM_METHOD - Style

2018-07-23 Thread John Whitmore
Remove the enumerated type ACM_METHOD as it is unused in code. This is a coding style change and should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/sta

[PATCH 08/15] staging:rtl8192u: Remove the unused AC_CODING definitions - Style

2018-07-23 Thread John Whitmore
The AC_CODING definitions are unused in code, so have simply been removed from source. This is a coding style change and should not impact runtime code execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 20 --- 1 file changed, 20 deletions

[PATCH 15/15] staging:rtl8192u: Remove unused definition of sQoSCtlLng - Style

2018-07-23 Thread John Whitmore
Remove sQoSCtlLng. The constant sQoSCtlLng is never used in code so has been removed. This is a coding style change so should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 6 -- 1 file changed, 6 deletions(-) di

[PATCH 11/15] staging:rtl8192u: Remove unused structure WMM_TSPEC - Style

2018-07-23 Thread John Whitmore
Remove the structure WMM_TSPEC as it is unused. This change is a coding style change and should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging

[PATCH 09/15] staging:rtl8192u: Remove unused enumerated type QOS_ELE_SUBTYPE - Style

2018-07-23 Thread John Whitmore
The enumerated type QOS_ELE_SUBTYPE is unused in code so has been removed from code. This is a coding style change which should have not impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 11 --- 1 file changed, 11 deleti

[PATCH 13/15] staging:rtl8192u: Remove unused structure ACM - Style

2018-07-23 Thread John Whitmore
Remove the structure ACM as it is unused in code. This change is a coding style change and should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/

[PATCH 14/15] staging:rtl8192u: Remove unused AC_UAPSD definitions - Style

2018-07-23 Thread John Whitmore
Remove the definitions associated with AC_UAPSD. These definitions are not used in code so have simply been removed. This is a coding style change and should have no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 15 --

[PATCH 01/15] staging:rtl8192u: Remove typedef of u32 to QOS_MODE - Style

2018-07-23 Thread John Whitmore
The typedef of QOS_MODE as a u32 is contrary to coding standard and fails the checkpatch tests for defining new types in code. Definitions of type QOS_MODE have simply been replaced with a u32 type. This is a coding style change which should not impact runtime execution. Signed-off-by: John Whitm

[PATCH 04/15] staging:rtl8192u: Removed unused structure BSS_QOS - Style

2018-07-23 Thread John Whitmore
The structure BSS_QOS is not used in code so has simply been removed. The change is a coding style change and should not impact runtime execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 19 --- 1 file changed, 19 deletions(-) diff --git

[PATCH 00/15] Removal of usused definitions - Style

2018-07-23 Thread John Whitmore
Clean up of the file drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h A number of the definitions in the file are unused so were removed from the file. John Whitmore (15): staging:rtl8192u: Remove typedef of u32 to QOS_MODE - Style staging:rtl8192u: Remove unused enumerated type ACK_POLICY -

[PATCH 02/15] staging:rtl8192u: Remove unused enumerated type ACK_POLICY - Style

2018-07-23 Thread John Whitmore
The enumerated type ACK_POLICY is not used in code so it has been removed from the source code. This is a coding style change and should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 9 - 1 file changed, 9 de

[PATCH 05/15] staging:rtl8192u: Remove unused structure STA_QOS - Style

2018-07-23 Thread John Whitmore
Remove structure STA_QOS as it is unused in code. This change is a coding style change so should not impact runtime code execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 53 --- 1 file changed, 53 deletions(-) diff --git a/drivers/stagi

Re: [PATCH v3 2/2] regulator: pfuze100: add support to en-/disable switch regulators

2018-07-23 Thread Fabio Estevam
On Mon, Jul 23, 2018 at 4:47 AM, Marco Felsch wrote: > Add enable/disable support for switch regulators on pfuze100. > > Based on commit 5fe156f1cab4 ("regulator: pfuze100: add enable/disable for > switch") which is reverted due to boot regressions by commit 464a5686e6c9 > ("regulator: Revert "reg

Re: [PATCH v3 1/2] dt-bindings: pfuze100: add optional disable switch-regulators binding

2018-07-23 Thread Fabio Estevam
On Mon, Jul 23, 2018 at 4:47 AM, Marco Felsch wrote: > This binding is used to keep the backward compatibility with the current > dtb's [1]. The binding informs the driver that the unused switch regulators > can be disabled. > If it is not specified, the driver doesn't disable the switch regulator

Re: Linux 4.18-rc6

2018-07-23 Thread Guenter Roeck
On Sun, Jul 22, 2018 at 02:23:39PM -0700, Linus Torvalds wrote: > So this was the week when the other shoe dropped ... The reason the > two previous rc releases were so nice and small was that David hadn't > sent me much networking fixes, and they came in this week. > Build results: tota

Re: kernel BUG at mm/shmem.c:LINE!

2018-07-23 Thread Matthew Wilcox
On Mon, Jul 23, 2018 at 12:14:41PM -0700, Hugh Dickins wrote: > On Mon, 23 Jul 2018, Matthew Wilcox wrote: > > On Sun, Jul 22, 2018 at 07:28:01PM -0700, Hugh Dickins wrote: > > > Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! > > > I don't know, but I'm afraid it has not fixed lin

Re: bisected: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-23 Thread Meelis Roos
> >> Now this seems more relevant: > >> > >> mroos@rx100s2:~/linux$ nice git bisect good > >> 24dea04767e6e5175f4750770281b0c17ac6a2fb is the first bad commit > >> commit 24dea04767e6e5175f4750770281b0c17ac6a2fb > >> Author: Daniel Borkmann > >> Date: Fri May 4 01:08:23 2018 +0200 > >> > >>

Re: [patch v3 -mm 3/6] mm, memcg: add hierarchical usage oom policy

2018-07-23 Thread David Rientjes
On Mon, 16 Jul 2018, David Rientjes wrote: > > And "tree" is different. It actually changes how the selection algorithm > > works, > > and sub-tree settings do matter in this case. > > > > "Tree" is considering the entity as a single indivisible memory consumer, > it is compared with siblings

Re: [PATCH] mm: thp: remove use_zero_page sysfs knob

2018-07-23 Thread David Rientjes
On Fri, 20 Jul 2018, Yang Shi wrote: > I agree to keep it for a while to let that security bug cool down, however, if > there is no user anymore, it sounds pointless to still keep a dead knob. > It's not a dead knob. We use it, and for reasons other than CVE-2017-1000405. To mitigate the cost

Re: [PATCH] mm: thp: remove use_zero_page sysfs knob

2018-07-23 Thread David Rientjes
On Sat, 21 Jul 2018, Matthew Wilcox wrote: > > The huge zero page can be reclaimed under memory pressure and, if it is, > > it is attempted to be allocted again with gfp flags that attempt memory > > compaction that can become expensive. If we are constantly under memory > > pressure, it gets

Re: Consolidating RCU-bh, RCU-preempt, and RCU-sched

2018-07-23 Thread Paul E. McKenney
On Mon, Jul 23, 2018 at 04:10:41PM -0400, Steven Rostedt wrote: > > Sorry for the late reply, just came back from the Caribbean :-) :-) :-) Welcome back, and I hope that the Caribbean trip was a good one! > On Fri, 13 Jul 2018 11:47:18 +0800 > Lai Jiangshan wrote: > > > On Fri, Jul 13, 2018 at

Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level

2018-07-23 Thread rishabhb
On 2018-07-23 04:17, Rafael J. Wysocki wrote: On Thu, Jul 19, 2018 at 11:24 PM, Rishabh Bhatnagar wrote: Drivers that are registered at an initcall level may have to wait until late_init before the probe deferral mechanism can retry their probe functions. It is possible that their dependencies

Re: [PATCH] tpm: add support for partial reads

2018-07-23 Thread Jarkko Sakkinen
On Thu, Jul 19, 2018 at 08:52:32AM -0700, Tadeusz Struk wrote: > Currently to read a response from the TPM device an application needs > provide "big enough" buffer for the whole response and read it in one go. > The application doesn't know how big the response it beforehand so it > always needs t

Re: [PATCH] mm/mempool: add missing parameter description

2018-07-23 Thread David Rientjes
On Mon, 23 Jul 2018, Mike Rapoport wrote: > The kernel-doc for mempool_init function is missing the description of the > pool parameter. Add it. > > Signed-off-by: Mike Rapoport Acked-by: David Rientjes My b.

Re: [PATCH 05/11] touchscreen: elants: Use octal permissions

2018-07-23 Thread Harshit Jain
I ran a treewide script and changed them all to octal and built a kernel which i am currently running on my machine, I have used DEVICE_ATTR_RO() for 0444's where possible if i dont find any regressions I will post a patch for review. I think i will be testing it at least for a week. On Tue, Jul 2

Re: Consolidating RCU-bh, RCU-preempt, and RCU-sched

2018-07-23 Thread Steven Rostedt
Sorry for the late reply, just came back from the Caribbean :-) :-) :-) On Fri, 13 Jul 2018 11:47:18 +0800 Lai Jiangshan wrote: > On Fri, Jul 13, 2018 at 8:02 AM, Paul E. McKenney > wrote: > > Hello! > > > > I now have a semi-reasonable prototype of changes consolidating the > > RCU-bh, RCU-p

Re: [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting

2018-07-23 Thread Boris Brezillon
Hi Brian, On Mon, 23 Jul 2018 11:13:50 -0700 Brian Norris wrote: > Hello, > > I noticed this got merged, but I wanted to put my 2 cents in here: I wish you had replied to this thread when it was posted (more than 6 months ago). Reverting the patch now implies making some people unhappy because

Re: [PATCH v9 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-07-23 Thread Doug Anderson
Hi Mark, On Fri, Jul 13, 2018 at 6:50 PM, David Collins wrote: > Introduce bindings for RPMh regulator devices found on some > Qualcomm Technlogies, Inc. SoCs. These devices allow a given > processor within the SoC to make PMIC regulator requests which > are aggregated within the RPMh hardware b

Re: [PATCH] sched/numa: do not balance tasks onto isolated cpus

2018-07-23 Thread kbuild test robot
Hi Chen, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/sched/core] [also build test ERROR on v4.18-rc6 next-20180723] [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

Re: [PATCH] sched/numa: do not balance tasks onto isolated cpus

2018-07-23 Thread kbuild test robot
Hi Chen, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/sched/core] [also build test ERROR on v4.18-rc6 next-20180723] [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

[PATCH v5] PCI: Check for PCIe downtraining conditions

2018-07-23 Thread Alexandru Gagniuc
PCIe downtraining happens when both the device and PCIe port are capable of a larger bus width or higher speed than negotiated. Downtraining might be indicative of other problems in the system, and identifying this from userspace is neither intuitive, nor straightforward. The easiest way to detect

[PATCH v2] PCI/AER: Do not clear AER bits if we don't own AER

2018-07-23 Thread Alexandru Gagniuc
When we don't own AER, we shouldn't touch the AER error bits. Clearing error bits willy-nilly might cause firmware to miss some errors. In theory, these bits get cleared by FFS, or via ACPI _HPX method. These mechanisms are not subject to the problem. This race is mostly of theoretical significanc

Re: [PATCH v10 7/7] Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990

2018-07-23 Thread Matthias Kaehlcke
On Fri, Jul 20, 2018 at 07:02:43PM +0530, Balakrishna Godavarthi wrote: > Add support to set voltage/current of various regulators > to power up/down Bluetooth chip wcn3990. > > Signed-off-by: Balakrishna Godavarthi > --- > changes in v10: > * added support to read regulator currents from dts

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
On 07/23/2018 03:20 PM, Dmitry Osipenko wrote: On Monday, 23 July 2018 21:37:50 MSK Peter Geis wrote: On 07/23/2018 02:13 PM, Mark Brown wrote: On Mon, Jul 23, 2018 at 01:58:26PM -0400, Peter Geis wrote: SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra har

[PATCH 2/2 v2] Add support for CPCAP regulators on Tegra devices.

2018-07-23 Thread Peter Geis
Added support for the CPCAP power management regulator functions on Tegra devices. Added sw2_sw4 value tables, which provide power to the Tegra core and aux devices. Added the Tegra init tables and device tree compatibility match. Signed-off-by: Peter Geis --- .../bindings/regulator/cpcap-regula

[PATCH 1/2 v2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra. Signed-off-by: Peter Geis --- drivers/regulator/cpcap-regulator.c | 23 +++ 1

[PATCH 0/2 v2] Add support for cpcap regulators on Tegra devices.

2018-07-23 Thread Peter Geis
Good Afternoon, I am re-sending the whole patch set again. I have sent this to myself, and confirmed it still patches cleanly. I apologize once again. The CPCAP regulator driver can support various devices, but currently only supports Omap4 devices. Adds the sw2 and sw4 voltage tables, which po

Re: [PATCH 2/2] cpufreq: Fix a circular lock dependency problem

2018-07-23 Thread Waiman Long
On 07/23/2018 03:16 PM, Peter Zijlstra wrote: > On Mon, Jul 23, 2018 at 01:49:39PM -0400, Waiman Long wrote: >> drivers/cpufreq/cpufreq.c | 16 +++- >> 1 file changed, 15 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c >> index b0df

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Dmitry Osipenko
On Monday, 23 July 2018 21:37:50 MSK Peter Geis wrote: > On 07/23/2018 02:13 PM, Mark Brown wrote: > > On Mon, Jul 23, 2018 at 01:58:26PM -0400, Peter Geis wrote: > >> SW2 and SW4 use a shared table to provide voltage to the cpu core and > >> devices on Tegra hardware. > >> Added this table to the

Re: [PATCH 2/2] cpufreq: Fix a circular lock dependency problem

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 01:49:39PM -0400, Waiman Long wrote: > drivers/cpufreq/cpufreq.c | 16 +++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index b0dfd32..9cf02d7 100644 > --- a/drivers/cpufreq/cpufreq.

Re: kernel BUG at mm/shmem.c:LINE!

2018-07-23 Thread Hugh Dickins
On Mon, 23 Jul 2018, Matthew Wilcox wrote: > On Sun, Jul 22, 2018 at 07:28:01PM -0700, Hugh Dickins wrote: > > Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! > > I don't know, but I'm afraid it has not fixed linux-next breakage of > > huge tmpfs: I get a similar page_to_pgoff BUG

Applied "regulator: pfuze100: add support to en-/disable switch regulators" to the regulator tree

2018-07-23 Thread Mark Brown
The patch regulator: pfuze100: add support to en-/disable switch regulators has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in t

Re: Does /dev/urandom now block until initialised ?

2018-07-23 Thread Theodore Y. Ts'o
On Mon, Jul 23, 2018 at 12:11:12PM -0400, Jeffrey Walton wrote: > > I believe Stephan Mueller wrote up the weakness a couple of years ago. > He's the one who explained the interactions to me. Mueller was even > cited at https://github.com/systemd/systemd/issues/4167. Stephan had a lot of complain

Applied "regulator: pfuze100: add optional disable switch-regulators binding" to the regulator tree

2018-07-23 Thread Mark Brown
The patch regulator: pfuze100: add optional disable switch-regulators binding has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Re: [PATCH v2 3/6] dt-bindings: sound: rockchip-i2s: add description for px30

2018-07-23 Thread Mark Brown
On Mon, Jul 23, 2018 at 05:25:21PM +0800, c...@rock-chips.com wrote: > From: Liang Chen > > Add "rockchip,px30-i2s", "rockchip,rk3066-i2s" for i2s on px30 platform. Please submit patches using subject lines reflecting the style for the subsystem. This makes it easier for people to identify rele

Re: [PATCH 0/3] PTI for x86-32 Fixes and Updates

2018-07-23 Thread Linus Torvalds
On Mon, Jul 23, 2018 at 7:09 AM Pavel Machek wrote: > > Meanwhile... it looks like gcc is not slowed down significantly, but > other stuff sees 30% .. 40% slowdowns... which is rather > significant. That is more or less expected. Gcc spends about 90+% of its time in user space, and the system ca

Re: [PATCH v3 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-23 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 23, 2018 at 03:59:05PM -0300, Arnaldo Carvalho de Melo escreveu: > A quick hack is to do this instead: I'm going with this quick hack applied so that I can pass all tests, feel free to provide an alternative patch that makes tools/include/uapi/asm-generic/unistd.h be used when included

Re: [PATCH v3 2/3] perf arm64: Generate system call table from asm/unistd.h

2018-07-23 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 20, 2018 at 12:06:53PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jul 18, 2018 at 12:57:52PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Jul 06, 2018 at 04:34:43PM -0500, Kim Phillips escreveu: > > > This should speed up accessing new system calls introduced with the

Re: [PATCH] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-23 Thread Dmitry Torokhov
On Mon, Jul 23, 2018 at 11:27:10AM -0700, Guenter Roeck wrote: > On Mon, Jul 23, 2018 at 10:23:05AM -0700, Dmitry Torokhov wrote: > > On Mon, Jul 23, 2018 at 10:13:36AM -0700, Guenter Roeck wrote: > > > On Mon, Jul 23, 2018 at 07:48:57PM +0300, Anton Vasilyev wrote: > > > > static struct ro_vpd and

Re: [RFC RESEND PATCH] drm/rockchip: update cursors asynchronously through atomic.

2018-07-23 Thread Gustavo Padovan
Hi Enric, On 07/23/2018 11:36 AM, Sean Paul wrote: On Wed, Jun 27, 2018 at 11:14:47PM +0200, Enric Balletbo i Serra wrote: Add support to async updates of cursors by using the new atomic interface for that. Signed-off-by: Enric Balletbo i Serra LGTM. Given rockchip hasn't weighed in on the

Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-23 Thread Arnd Bergmann
On Mon, Jul 23, 2018 at 6:14 PM, Boris Brezillon wrote: > On Mon, 23 Jul 2018 18:04:52 +0200 > Arnd Bergmann wrote: > >> On Mon, Jul 23, 2018 at 5:40 PM, Arnd Bergmann wrote: >> > On Mon, Jul 23, 2018 at 11:41 AM, Boris Brezillon >> > wrote: >> >> On Mon, 23 Jul 2018 11:34:43 +0200 >> >> Arnd B

Re: [PATCH v2 1/3] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-07-23 Thread Andrey Smirnov
On Mon, Jul 23, 2018 at 5:41 AM Leonard Crestez wrote: > > On Fri, 2018-07-20 at 08:33 -0700, Andrey Smirnov wrote: > > On Fri, Jul 20, 2018 at 5:48 AM Leonard Crestez > > wrote: > > > > > > This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. > > > > > > That commit followed the refere

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
On 07/23/2018 02:13 PM, Mark Brown wrote: On Mon, Jul 23, 2018 at 01:58:26PM -0400, Peter Geis wrote: SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on Teg

Re: [PATCH 05/11] touchscreen: elants: Use octal permissions

2018-07-23 Thread Joe Perches
On Mon, 2018-07-23 at 11:24 -0700, Guenter Roeck wrote: > There are much more urgent issues to fix there (such as, for example, > converting the "offending" drivers to the latest API, which would > magically cause most of the offenders to disappear). Perhaps posting a list of desired hwmon changes

Re: [PATCH] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-23 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 10:23:05AM -0700, Dmitry Torokhov wrote: > On Mon, Jul 23, 2018 at 10:13:36AM -0700, Guenter Roeck wrote: > > On Mon, Jul 23, 2018 at 07:48:57PM +0300, Anton Vasilyev wrote: > > > static struct ro_vpd and rw_vpd are initialized by vpd_sections_init() > > > in vpd_probe() bas

[PATCH v2] staging: gasket: use vzalloc instead of vmalloc/memset

2018-07-23 Thread Ivan Bornyakov
Use vzalloc instead of vmalloc followed by memset with 0. Signed-off-by: Ivan Bornyakov --- drivers/staging/gasket/gasket_page_table.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.

Re: [PATCH] mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing.

2018-07-23 Thread Brian Norris
Hi, I'm a little late to this thread, but I recently noticed (and complained about) commit: 59b356ffd0b0 ("mtd: m25p80: restore the status of SPI flash when exiting"). On Mon, Apr 9, 2018 at 6:05 PM, NeilBrown wrote: > On Mon, Apr 09 2018, Marek Vasut wrote: > >> On 04/08/2018 11:56 PM, NeilBrow

Re: [PATCH 05/11] touchscreen: elants: Use octal permissions

2018-07-23 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 10:25:10AM -0700, Joe Perches wrote: > On Mon, 2018-07-23 at 10:18 -0700, Dmitry Torokhov wrote: > > On Mon, Jul 23, 2018 at 03:32:00PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Jul 23, 2018 at 06:49:20PM +0530, dev-harsh1998 wrote: > > > > WARNING: Symbolic permissions

Re: [PATCH v2 09/10] coresight: perf: Remove set_buffer call back

2018-07-23 Thread Mathieu Poirier
On Fri, 20 Jul 2018 at 03:04, Suzuki K Poulose wrote: > > Mathieu, > > On 19/07/18 21:36, Mathieu Poirier wrote: > > On Tue, Jul 17, 2018 at 06:11:40PM +0100, Suzuki K Poulose wrote: > >> In coresight perf mode, we need to prepare the sink before > >> starting a session, which is done via set_buff

Re: [PATCH] IB/mlx5: avoid binding a new mpi unit to the same devices repeatedly

2018-07-23 Thread Qing Huang
Hi Daniel, On 7/23/2018 11:11 AM, Daniel Jurgens wrote: On 7/23/2018 10:36 AM, Qing Huang wrote: Hi Daniel/Parav, Have you got a chance to review this patch? Thanks! Hi Qing, sorry for the delay, I just got back to the office today. I don't agree with the proposed fix, I provided an altern

Re: [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting

2018-07-23 Thread Brian Norris
Hello, I noticed this got merged, but I wanted to put my 2 cents in here: On Wed, Dec 06, 2017 at 10:53:42AM +0800, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > Restore the status to be compatible with legacy devices. > Take Freescale eSPI boot for example, it copies (in 3 Byte > addressing mod

Re: [PATCH i2c-next] i2c: aspeed: Handle master/slave combined irq events properly

2018-07-23 Thread Jae Hyun Yoo
Thanks James for the review. Please see my inline answers. On 7/23/2018 11:10 AM, James Feist wrote: On 07/23/2018 10:48 AM, Jae Hyun Yoo wrote: In most of cases, interrupt bits are set one by one but there are also a lot of other cases that Aspeed I2C IP sends multiple interrupt bits with comb

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Mark Brown
On Mon, Jul 23, 2018 at 01:58:26PM -0400, Peter Geis wrote: > SW2 and SW4 use a shared table to provide voltage to the cpu core and > devices on Tegra hardware. > Added this table to the cpcap regulator driver as the first step to > supporting this device on Tegra. This also doesn't apply against

Re: [PATCH] IB/mlx5: avoid binding a new mpi unit to the same devices repeatedly

2018-07-23 Thread Daniel Jurgens
On 7/23/2018 10:36 AM, Qing Huang wrote: > > Hi Daniel/Parav, > > Have you got a chance to review this patch? Thanks! Hi Qing, sorry for the delay, I just got back to the office today. I don't agree with the proposed fix, I provided an alternative suggestion below. > >>> Or. >>> Reported-b

Re: [PATCH i2c-next] i2c: aspeed: Handle master/slave combined irq events properly

2018-07-23 Thread James Feist
On 07/23/2018 10:48 AM, Jae Hyun Yoo wrote: In most of cases, interrupt bits are set one by one but there are also a lot of other cases that Aspeed I2C IP sends multiple interrupt bits with combining master and slave events using a single interrupt call. It happens much in multi-master environmen

Re: [PATCH v2 1/4] i2c: imx: Fix reinit_completion() use

2018-07-23 Thread Wolfram Sang
On Mon, Jul 09, 2018 at 11:43:01AM +0200, Esben Haabendal wrote: > From: Esben Haabendal > > Make sure to call reinit_completion() before dma is started to avoid race > condition where reinit_completion() is called after complete() and before > wait_for_completion_timeout(). > > Signed-off-by: E

Re: [PATCH v3 00/18] JZ4780 DMA patchset v3

2018-07-23 Thread Paul Burton
Hi Paul & Vinod, On Sat, Jul 21, 2018 at 01:06:25PM +0200, Paul Cercueil wrote: > This is the version 3 of my jz4780-dma driver update patchset. > > Apologies to the DMA people, the v2 of this patchset did not make it to > their mailing-list; see the bottom of this email for a description of > wh

[PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra. Signed-off-by: Peter Geis --- drivers/regulator/cpcap-regulator.c | 23 +++ 1

[PATCH 2/2] Add support for CPCAP regulators on Tegra devices.

2018-07-23 Thread Peter Geis
Added support for the CPCAP power management regulator functions on Tegra devices. Added sw2_sw4 value tables, which provide power to the Tegra core and aux devices. Added the Tegra init tables and device tree compatibility match. Signed-off-by: Peter Geis --- .../bindings/regulator/cpcap-regul

[PATCH 0/2 V1] Add support for cpcap regulators on Tegra devices.

2018-07-23 Thread Peter Geis
Good Afternoon, I am re-sending the whole patch set due to my error of accidentally converting the tabulation to spaces. The CPCAP regulator driver can support various devices, but currently only supports Omap4 devices. Adds the sw2 and sw4 voltage tables, which power the Tegra core, and a D

Re: [PATCH net-next 0/5] net/smc: patches 2018-07-23

2018-07-23 Thread David Miller
From: Ursula Braun Date: Mon, 23 Jul 2018 13:53:07 +0200 > here are some small patches for SMC: Just the first patch contains a > functional change. It allows to differ between the modes SMCR and SMCD > on s390 when monitoring SMC sockets. The remaining patches are cleanups > without functional c

Re: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-23 Thread Peter Geis
On 07/23/2018 01:01 PM, Mark Brown wrote: On Fri, Jul 20, 2018 at 08:43:49PM -0400, Peter Geis wrote: SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on Teg

Re: [PATCH] NTB: fix debugfs_simple_attr.cocci warnings

2018-07-23 Thread Logan Gunthorpe
On 21/07/18 12:47 AM, Julia Lawall wrote: > From: kbuild test robot > > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > for debugfs files. > > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() > imposes some significant overhead as compared to > DEFINE_DEBUGFS

HID: intel_ish-hid: tx_buf memory leak on probe/remove

2018-07-23 Thread Anton Vasilyev
ish_dev_init() allocates 512*176 bytes memory for tx_buf and stores it at &dev->wr_free_list_head.link list on ish_probe(). But there is no deallocation of this memory in ish_remove() and in ish_probe() error path. So current intel-ish-ipc provides 88 KB memory leak for each probe/release. I ha

Re: [PATCH v10 4/7] Bluetooth: hci_qca: Add wrapper functions for setting UART speed

2018-07-23 Thread Matthias Kaehlcke
On Fri, Jul 20, 2018 at 07:02:40PM +0530, Balakrishna Godavarthi wrote: > In function qca_setup, we set initial and operating speeds for Qualcomm > Bluetooth SoC's. This block of code is common across different > Qualcomm Bluetooth SoC's. Instead of duplicating the code, created > a wrapper functio

[RFT v2 10/10] pinctrl: samsung: Remove legacy API for handling external wakeup interrupts mask

2018-07-23 Thread Krzysztof Kozlowski
Remove the legacy, ugly API of exposing the static value of external wakeup interrupts mask, because all arch-machine users where converted to use generic implementation from pinctrl driver. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- dr

[RFT v2 08/10] ARM: s5pv210: Remove legacy setting of external wakeup interrupts

2018-07-23 Thread Krzysztof Kozlowski
Since Exynos/S5Pv210 pin-controller driver is taking care about setting the external wakeup interrupts mask, the legacy code can be removed. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/mach-s5pv210/common.h | 1 - arch/arm/mach

[RFT v2 09/10] ARM: exynos: Remove legacy setting of external wakeup interrupts

2018-07-23 Thread Krzysztof Kozlowski
Since Exynos/S5Pv210 pin-controller driver is taking care about setting the external wakeup interrupts mask, the legacy code can be removed. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/mach-exynos/common.h | 2 -- arch/arm/mac

[RFT v2 07/10] ARM: dts: s5pv210: Switch to S5Pv210 specific pinctrl wakeup compatible

2018-07-23 Thread Krzysztof Kozlowski
The pin controller block of S5Pv210 for handling external wakeup interrupts is different than in newer designs (Exynos). Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/boot/dts/s5pv210.dtsi | 2 +- 1 file changed, 1 insertion(+), 1

[RFT v2 01/10] pinctrl: samsung: Define suspend and resume callbacks for all banks and SoCs

2018-07-23 Thread Krzysztof Kozlowski
Suspend and resume callbacks in Exynos/S5Pv210 pin controller drivers, save and restore state of registers. This operations should be done for all banks which have external interrupts (as denoted by using EXYNOS_PIN_BANK_EINTG/EINTW macros). Add all banks of Exynos5260 and Exynos5420. This is ne

[RFT v2 06/10] pinctrl: samsung: Write external wakeup interrupt mask

2018-07-23 Thread Krzysztof Kozlowski
The pinctrl driver defines an IRQ chip which handles external wakeup interrupts, therefore from logical point of view, it is the owner of external interrupt mask. The register controlling the mask belongs to Power Management Unit address space so it has to be accessed with PMU syscon regmap handle

[RFT v2 00/10] pinctrl: samsung: Remove ugly hack for sharing eint_wakeup_mask

2018-07-23 Thread Krzysztof Kozlowski
Hi All, Changes since v1 1. Add Tomasz's ack. 2. Reword description in patch 6/10. Tests = This is both request for comments and requests for tests. Only basic tests were done, including suspend to RAM on Odroid U3 (Exynos4412) with max7768 RTC wakeup. Please kindly test it

[RFT v2 02/10] pinctrl: samsung: Document suspend and resume members

2018-07-23 Thread Krzysztof Kozlowski
Add missing documentation for suspend and resume members of struct samsung_pin_ctrl and samsung_pinctrl_drv_data. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- drivers/pinctrl/samsung/pinctrl-samsung.h | 8 1 file changed, 8 inser

[RFT v2 03/10] pinctrl: samsung: Document hidden requirement about one external wakeup

2018-07-23 Thread Krzysztof Kozlowski
Hardware (S5Pv210 and all Exynos SoCs) provides only 32 external interrupts which can wakeup device from deep sleep modes. On S5Pv210 these are gph0-gph3. On all Exynos designs these are gpx0-gpx3. There is only one 32-bit register for controlling the external wakeup interrupt mask (masking and u

[RFT v2 04/10] pinctrl: samsung: Add dedicated compatible for S5Pv210 wakeup interrupts

2018-07-23 Thread Krzysztof Kozlowski
The S5Pv210 external wakeup interrupts differ from Exynos therefore separate compatible is needed. Duplicate existing flavor specific data from exynos4210_wkup_irq_chip and add new compatible for S5Pv210. At this point this new compatible does not bring anything new and works exactly as existing "

[RFT v2 05/10] ARM: exynos: Define EINT_WAKEUP_MASK registers for S5Pv210 and Exynos5433

2018-07-23 Thread Krzysztof Kozlowski
S5Pv210 and Exynos5433/Exynos7 have different address of EINT_WAKEUP_MASK register. Rename existing S5P_EINT_WAKEUP_MASK to avoid confusion and add new ones. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- arch/arm/mach-exynos/suspend.c

[PATCH 1/2] cpu/hotplug: Add a cpus_read_trylock() function

2018-07-23 Thread Waiman Long
There are use cases where it can be useful to have a cpus_read_trylock() function to work around circular lock dependency problem involving the cpu_hotplug_lock. Signed-off-by: Waiman Long --- include/linux/cpu.h | 2 ++ kernel/cpu.c| 6 ++ 2 files changed, 8 insertions(+) diff --gi

[PATCH 2/2] cpufreq: Fix a circular lock dependency problem

2018-07-23 Thread Waiman Long
With lockdep turned on, the following circular lock dependency problem was reported: [ 57.470040] == [ 57.502900] WARNING: possible circular locking dependency detected [ 57.535208] 4.18.0-0.rc3.1.el8+7.x86_64+debug #1 Tainted: G [ 57.577

<    1   2   3   4   5   6   7   8   9   10   >